/* Quick Start is an independent, one-screen view of Grid Gen. */
body.quick-page {
  --quick-bg:#141719;
  --quick-panel:#1b2022;
  --quick-field:#232b2d;
  --quick-border:#3d4947;
  --quick-muted:#afbbb5;
  --quick-ink:#eef2e8;
  --quick-lime:#d5ff5f;
  margin:0;
  min-width:0;
  color:var(--quick-ink);
  background:var(--quick-bg);
  color-scheme:dark;
  font:14px/1.6 "Segoe UI","Leelawadee UI",Tahoma,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.quick-page *, .quick-page *::before, .quick-page *::after { box-sizing:border-box; }
.quick-page [hidden] { display:none !important; }
.quick-page :is(h1,h2,h3,p,figure,dl,dd) { margin:0; }
.quick-page :is(button,input,select) { font:inherit; }
.quick-page :is(button,a,input,select) { -webkit-tap-highlight-color:transparent; }
.quick-page :is(button,a,input,select):focus-visible { outline:2px solid var(--quick-lime); outline-offset:4px; }
.quick-page button { cursor:pointer; }
.quick-page button:disabled { cursor:wait; opacity:.55; }
.quick-page a { color:inherit; }
.quick-page ::selection { background:var(--quick-lime); color:var(--quick-bg); }
.quick-shell { width:min(1180px,calc(100% - 64px)); margin-inline:auto; }
.quick-header { border-bottom:1px solid #323b38; background:#191e1f; }
.quick-nav { display:flex; min-height:82px; align-items:center; justify-content:space-between; gap:24px; }
.quick-brand { display:inline-flex; flex:none; align-items:center; gap:10px; color:#f3f5eb; font-size:19px; font-weight:750; line-height:1.15; letter-spacing:-.6px; text-decoration:none; }
.quick-brand > :is(svg,.quick-brand-icon,.quick-brand-mark) { display:grid; flex:none; place-items:center; width:34px; height:34px; border:1px solid #8d9f55; border-radius:7px; color:var(--quick-lime); font-size:26px; font-weight:400; }
.quick-brand-light { margin-left:2px; color:#b8c1b5; font-weight:400; }
.quick-brand small { display:block; margin-top:5px; color:#b2c1a4; font-size:8px; font-weight:500; letter-spacing:1.3px; }
.quick-nav-actions { display:flex; min-width:0; align-items:center; gap:24px; }
.quick-language { display:flex; align-items:center; gap:9px; color:#c0cbc2; font-size:12px; }
.quick-language select { min-width:88px; min-height:44px; padding:8px 28px 8px 11px; border:1px solid #64715b; border-radius:6px; background:#232c25; color:#f0f4e9; }
.quick-page a.quick-editor-link { display:inline-flex; justify-content:center; align-items:center; min-height:48px; min-width:0; padding:11px 16px; border:1px solid var(--quick-lime); border-radius:8px; background:var(--quick-lime); color:#17220c; font-size:13px; font-weight:750; line-height:1.4; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.quick-page a.quick-editor-link:hover { background:#e4ff92; border-color:#e4ff92; color:#17220c; }
.quick-editor-entry { width:310px; max-width:100%; padding-block:12px; }
.quick-page a.quick-editor-entry-button { display:flex; width:100%; min-height:54px; gap:12px; border-radius:10px; font-size:15px; box-shadow:0 3px 12px #0003; }
.quick-editor-entry-icon { font-size:24px; font-weight:400; line-height:1; }
.quick-editor-entry-button > :last-child { font-size:21px; font-weight:500; }
.quick-editor-entry > p { margin:7px 0 0; color:#c5d6b2; font-size:11px; line-height:1.5; text-align:center; }
.quick-link:hover { color:var(--quick-lime); }
.quick-page .quick-intro > .quick-editor-help { margin-top:14px; color:#c7d3bf; font-size:12px; line-height:1.7; }
.quick-done-actions .quick-editor-link { flex:1 1 210px; }
.quick-intro { padding:42px 0 30px; max-width:800px; }
.quick-intro .eyebrow,.quick-preview-heading .eyebrow,.quick-page .quick-eyebrow { color:#bed39a; font-size:10px; font-weight:600; letter-spacing:1.6px; text-transform:uppercase; }
.quick-intro h1 { margin:12px 0 14px; color:#f2f5eb; font-size:clamp(32px,4vw,48px); font-weight:700; line-height:1.15; letter-spacing:-1.65px; }
.quick-intro > p:not(.quick-eyebrow) { max-width:650px; color:#b8c4bc; font-size:15px; line-height:1.8; }
.quick-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); align-items:start; gap:24px; padding-bottom:36px; }
.quick-controls { min-width:0; padding:27px; border:1px solid var(--quick-border); border-radius:12px; background:var(--quick-panel); }
.quick-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 26px; padding:0 0 23px; border-bottom:1px solid #37413b; list-style:none; }
.quick-progress-item { display:flex; min-width:0; align-items:center; gap:8px; color:#a9b6ac; font-size:11px; line-height:1.45; }
.quick-progress-number { display:grid; flex:none; place-items:center; width:27px; height:27px; border:1px solid #5a6858; border-radius:50%; font-size:11px; font-weight:650; }
.quick-progress-item:is([aria-current="step"],.active,.is-active) { color:#ecf7dc; }
.quick-progress-item:is([aria-current="step"],.active,.is-active) .quick-progress-number { border-color:var(--quick-lime); background:var(--quick-lime); color:#202914; }
.quick-progress-item[data-complete="true"] .quick-progress-number { border-color:#9ab36d; color:#c6e69f; }
#quick-step-title { margin:0 0 21px; font-size:23px; font-weight:650; line-height:1.4; letter-spacing:-.6px; }
.quick-step { min-width:0; }
.quick-step h3 { margin:20px 0 11px; color:#e3edda; font-size:13px; font-weight:600; }
.quick-step > p { margin:0 0 18px; color:var(--quick-muted); font-size:12px; line-height:1.8; }
.quick-field { display:grid; min-width:0; gap:8px; margin-bottom:19px; }
.quick-field > span,.quick-page .quick-field-label { color:#d1dbcf; font-size:12px; font-weight:500; line-height:1.5; }
.quick-field small { color:var(--quick-muted); font-size:11px; line-height:1.7; }
.quick-field :is(input:not([type="file"]),select) { width:100%; min-width:0; min-height:46px; padding:10px 12px; border:1px solid #63725e; border-radius:7px; background:var(--quick-field); color:#f2f5ec; }
.quick-field input::placeholder { color:#a9b6ac; opacity:1; }
.quick-field input[aria-invalid="true"],.quick-field select[aria-invalid="true"] { border-color:#efa38f; }
.quick-choice-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:0 0 20px; }
.quick-preset-card { display:flex; min-width:0; min-height:142px; align-items:center; flex-direction:column; justify-content:center; gap:10px; padding:16px 8px 12px; border:1px solid #52614e; border-radius:8px; background:#202822; color:#edf3e5; text-align:center; }
.quick-preset-card .quick-preset-ratio { display:block; width:43px; height:25px; border:1px solid #a5be7d; border-radius:2px; background:linear-gradient(90deg,transparent 49%,#8caa5d60 50%,transparent 51%),linear-gradient(transparent 49%,#8caa5d60 50%,transparent 51%),#101b13; }
.quick-preset-card[data-quick-preset="square"] .quick-preset-ratio { width:25px; }
.quick-preset-card[data-quick-preset="led6x3"] .quick-preset-ratio { height:22px; }
.quick-preset-card strong { font-size:12px; font-weight:600; line-height:1.5; }
.quick-preset-card small { color:#b4c1ad; font-size:10px; line-height:1.5; }
.quick-page :is(.quick-preset-card,.quick-pattern-card,.quick-palette-card):hover { border-color:#b0cd77; background-color:#293328; }
.quick-page :is(.quick-preset-card,.quick-pattern-card,.quick-palette-card)[aria-pressed="true"] { border-color:var(--quick-lime); background-color:#d5ff5f0d; box-shadow:inset 0 0 0 1px #d5ff5f35; }
.quick-size-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.quick-input-unit { position:relative; display:flex; min-width:0; align-items:center; }
.quick-input-unit input { padding-right:40px !important; }
.quick-input-unit > span { position:absolute; right:12px; color:#b2c1a6; font-size:12px; pointer-events:none; }
.quick-size-note,#quick-size-summary { color:#c0d4a8; font-size:12px; line-height:1.75; overflow-wrap:anywhere; }
#quick-size-summary { padding:12px 14px; border:1px solid #526546; border-radius:7px; background:#d5ff5f06; }
#quick-size-summary:empty { display:none; }
.quick-size-note { margin:10px 0 18px; }
.quick-pattern-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:20px; }
.quick-option-group { min-width:0; margin:0; padding:0; border:0; }
.quick-option-group legend { margin-bottom:11px; padding:0; color:#d1dbcf; font-size:12px; font-weight:500; }
.quick-pattern-card { display:flex; min-width:0; min-height:90px; align-items:center; flex-direction:column; justify-content:center; gap:9px; padding:12px 6px; border:1px solid #52614e; border-radius:8px; background:#202822; color:#e7edde; font-size:11px; }
.quick-pattern-swatch { display:block; width:44px; height:27px; border:1px solid #9bac8b; border-radius:2px; background:#007cf0; }
.quick-pattern-swatch.checker { background:conic-gradient(#007cf0 25%,#00a2eb 0 50%,#007cf0 0 75%,#00a2eb 0) 0 0/16px 16px; }
.quick-pattern-swatch.checker3 { background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3'%3E%3Cpath fill='%23007cf0' d='M0 0h1v1H0zM2 1h1v1H2zM1 2h1v1H1z'/%3E%3Cpath fill='%2300a2eb' d='M1 0h1v1H1zM0 1h1v1H0zM2 2h1v1H2z'/%3E%3Cpath fill='%23f45fbc' d='M2 0h1v1H2zM1 1h1v1H1zM0 2h1v1H0z'/%3E%3C/svg%3E") 0 0/24px 24px; }
.quick-palette-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:20px; }
.quick-palette-card { display:flex; min-width:0; min-height:68px; align-items:center; justify-content:center; flex-direction:column; gap:7px; padding:10px 6px; border:1px solid #52614e; border-radius:7px; background:#202822; color:#e4edda; font-size:11px; }
.quick-palette-card strong { font-weight:500; }
.quick-color-dot { display:block; width:18px; height:18px; border:1px solid #e7f0dc70; border-radius:50%; background:#007cf0; }
.quick-palette-card[data-quick-palette="lime"] .quick-color-dot { background:#d5ff5f; }
.quick-palette-card[data-quick-palette="red"] .quick-color-dot { background:#e83e43; }
.quick-palette-card[data-quick-palette="mono"] .quick-color-dot { background:linear-gradient(90deg,#f1f4ec 50%,#161c18 50%); }
.quick-branding { min-width:0; border:1px solid #52614e; border-radius:8px; background:#19231d; }
.quick-branding > summary { min-height:48px; padding:12px 15px; color:#d5e9b0; font-size:12px; line-height:1.8; cursor:pointer; overflow-wrap:anywhere; }
.quick-branding > summary:hover { background:#d5ff5f07; }
.quick-branding > summary:focus-visible { outline:2px solid var(--quick-lime); outline-offset:4px; }
.quick-branding[open] > summary { border-bottom:1px solid #43503f; }
.quick-branding-fields { min-width:0; padding:17px 15px 15px; }
.quick-upload { padding:15px; border:1px dashed #738267; border-radius:8px; background:#18221b; }
.quick-upload input[type="file"] { width:100%; min-width:0; min-height:44px; padding:3px 0; color:#b9c9b2; font-size:11px; overflow:hidden; }
.quick-upload input::file-selector-button { min-height:40px; margin-right:10px; padding:7px 10px; border:1px solid #7c925c; border-radius:5px; background:#2d3c27; color:#eef5e5; font:inherit; cursor:pointer; }
.quick-text-button { min-width:44px; min-height:44px; padding:6px 0; border:0; background:transparent; color:#d6eaa9; font-size:12px; text-align:left; text-decoration:underline; text-underline-offset:4px; }
.quick-export-note { margin:0 0 20px; padding:14px 15px; border:1px solid #536747; border-radius:8px; background:#d5ff5f07; color:#d0dec2; font-size:12px; line-height:1.8; }
.quick-button { display:inline-flex; min-width:44px; min-height:46px; align-items:center; justify-content:center; gap:10px; padding:11px 18px; border:1px solid #697a59; border-radius:7px; color:#edf4e6; background:#273025; font-size:13px; font-weight:600; line-height:1.5; text-align:center; text-decoration:none; }
.quick-button.primary { border-color:var(--quick-lime); color:#202817; background:var(--quick-lime); }
.quick-button.primary:hover:not(:disabled) { background:#e2ff8c; }
.quick-button.secondary { background:transparent; color:#d3dfca; }
.quick-button.secondary:hover:not(:disabled) { background:#d5ff5f0a; border-color:#b6cc90; }
#quick-download { width:100%; min-height:52px; }
.quick-done { margin-top:16px; padding:15px; border:1px solid #7c9c56; border-radius:8px; background:#243222; color:#e0f0cd; font-size:13px; line-height:1.8; }
.quick-done .quick-text-button { display:inline-flex; align-items:center; }
.quick-done-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 15px; margin-top:13px; }
.quick-error { margin-top:17px; padding:12px 14px; border:1px solid #a56957; border-radius:7px; background:#462b24; color:#ffe1d6; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.quick-error:empty { display:none; }
.quick-working { min-height:21px; margin-top:12px; color:#c5d7b4; font-size:12px; line-height:1.8; }
.quick-working:empty { display:none; }
.quick-form-navigation { display:flex; min-width:0; justify-content:flex-end; gap:10px; margin-top:24px; padding-top:20px; border-top:1px solid #37433b; }
#quick-back { margin-right:auto; }
.quick-preview-panel { position:sticky; top:24px; min-width:0; overflow:hidden; border:1px solid #4b5947; border-radius:12px; background:#191f1c; }
.quick-preview-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:22px 24px; border-bottom:1px solid #3a463b; }
.quick-preview-heading h2 { margin-top:5px; color:#e9f2df; font-size:18px; font-weight:600; letter-spacing:-.35px; }
.quick-preview-stage { display:grid; min-height:300px; align-items:center; justify-items:center; padding:24px; background:linear-gradient(#879c6c0a 1px,transparent 1px),linear-gradient(90deg,#879c6c0a 1px,transparent 1px),#0c110e; background-size:24px 24px; }
#quick-preview { display:block; width:100%; max-width:100%; height:auto; max-height:380px; object-fit:contain; box-shadow:0 0 0 1px #5d6d54; }
#quick-preview-caption { padding:15px 23px; border-top:1px solid #37433a; color:#b4c3ad; font-size:11px; line-height:1.7; overflow-wrap:anywhere; }
.quick-preview-specs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; padding:21px 24px; border-top:1px solid #37433a; }
.quick-preview-specs > div { min-width:0; }
.quick-preview-specs dt { margin-bottom:5px; color:#b1c0a7; font-size:10px; font-weight:500; line-height:1.6; }
.quick-preview-specs dd { color:#edf4e7; font-size:14px; font-weight:600; line-height:1.55; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.quick-preview-footer { padding:17px 23px; border-top:1px solid #37433a; color:#b4c3ac; font-size:11px; line-height:1.8; }
.quick-preview-panel > .quick-link { margin:0 23px 16px; }
.quick-link { display:inline-flex; min-height:44px; align-items:center; color:#d5e9b0; text-underline-offset:4px; }
.quick-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 25px; padding-block:24px 30px; border-top:1px solid #354038; color:#aab9a9; font-size:11px; line-height:1.8; }
.quick-footer p { max-width:760px; }
.quick-footer a { display:inline-flex; min-height:44px; align-items:center; color:#cbdcbb; text-underline-offset:4px; }

@media(max-width:1000px) {
  .quick-layout { gap:18px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .quick-controls { padding:22px; }
  .quick-progress { gap:7px; }
  .quick-progress-item { flex-direction:column; gap:6px; text-align:center; }
  .quick-preset-card { min-height:136px; }
  .quick-preview-stage { min-height:255px; padding:18px; }
  .quick-preview-specs { gap:14px; padding:18px; }
}
@media(max-width:760px) {
  .quick-shell { width:calc(100% - 36px); }
  .quick-nav { display:grid; grid-template-columns:minmax(0,1fr) auto; min-height:78px; gap:12px; padding-block:14px; }
  .quick-nav-actions { display:contents; }
  .quick-language { grid-column:2; grid-row:1; }
  .quick-editor-entry { grid-column:1/-1; width:100%; padding:0; }
  .quick-language { font-size:11px; }
  .quick-intro { padding:30px 0 24px; }
  .quick-intro h1 { font-size:35px; letter-spacing:-1.25px; }
  .quick-intro > p:not(.quick-eyebrow) { font-size:14px; }
  .quick-layout { grid-template-columns:minmax(0,1fr); gap:22px; }
  .quick-controls { padding:24px; }
  .quick-progress-item { flex-direction:row; gap:8px; text-align:left; }
  .quick-field :is(input:not([type="file"]),select),.quick-language select { font-size:16px; }
  .quick-preview-panel { position:static; }
  .quick-preview-stage { min-height:190px; padding:20px; }
  #quick-preview { max-height:240px; }
}
@media(max-width:480px) {
  .quick-shell { width:calc(100% - 28px); }
  .quick-nav { gap:12px 8px; padding-block:13px; }
  .quick-brand { font-size:18px; }
  .quick-nav-actions .quick-editor-link { padding-inline:12px; }
  .quick-language { gap:8px; }
  .quick-language select { min-width:86px; }
  .quick-intro { padding-top:25px; }
  .quick-intro h1 { font-size:31px; line-height:1.2; letter-spacing:-1.05px; }
  .quick-intro > p:not(.quick-eyebrow) { font-size:13px; }
  .quick-controls { padding:19px 16px; }
  .quick-progress { gap:6px; margin-bottom:21px; padding-bottom:19px; }
  .quick-progress-item { flex-direction:column; gap:6px; font-size:10px; text-align:center; }
  .quick-progress-number { width:25px; height:25px; }
  #quick-step-title { font-size:21px; }
  .quick-choice-grid,.quick-pattern-grid { gap:6px; }
  .quick-preset-card { gap:8px; min-height:132px; padding:12px 5px; }
  .quick-preset-card strong { font-size:11px; }
  .quick-preset-card small { font-size:9px; }
  .quick-size-fields { gap:10px; }
  .quick-field { margin-bottom:17px; }
  .quick-field > span { font-size:11px; }
  .quick-field :is(input:not([type="file"]),select) { padding-inline:10px; }
  .quick-pattern-card { min-height:86px; font-size:10px; }
  .quick-palette-grid { gap:6px; }
  .quick-palette-card { font-size:10px; }
  .quick-form-navigation { margin-top:20px; padding-top:18px; }
  .quick-button { padding-inline:14px; font-size:12px; }
  .quick-preview-heading { padding:18px; }
  .quick-preview-stage { min-height:160px; padding:15px; }
  #quick-preview-caption { padding:13px 16px; }
  .quick-preview-specs { padding:16px; gap:15px; }
  .quick-preview-specs dd { font-size:13px; }
  .quick-preview-footer { padding:15px 16px; }
  .quick-footer { padding-top:20px; font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .quick-page * { scroll-behavior:auto !important; transition:none !important; }
}

.quick-controls .quick-preview-figure { margin:0 0 20px; overflow:hidden; border:1px solid #4b5947; border-radius:8px; }

.quick-logo-tools { display:grid; gap:14px; margin-block:16px; padding-top:16px; border-top:1px solid #4b5947; }
.quick-logo-tools[hidden] { display:none; }
.quick-logo-sample { display:flex; align-items:center; gap:12px; font-size:11px; color:#c6cfbe; }
#quick-logo-preview { width:110px; height:70px; object-fit:contain; padding:6px; border:1px solid #67745a; border-radius:6px; background-color:#d6d6d6; background-image:linear-gradient(45deg,#969696 25%,transparent 25%),linear-gradient(-45deg,#969696 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#969696 75%),linear-gradient(-45deg,transparent 75%,#969696 75%); background-size:16px 16px; background-position:0 0,0 8px,8px -8px,-8px 0; }
.quick-logo-tools .quick-field { margin:0; }
.quick-logo-tools .quick-field > span { display:flex; justify-content:space-between; gap:10px; }
.quick-logo-tools output { font-variant-numeric:tabular-nums; color:#d5ff5f; }
.quick-logo-tools input[type="range"] { display:block; width:100%; height:44px; margin:0; padding:0; accent-color:#d5ff5f; border:0; background:transparent; cursor:pointer; }
.quick-logo-tools input[type="color"] { width:80px; min-height:44px; padding:4px; }
.quick-logo-tools .quick-size-note { margin:0; }
.quick-logo-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.quick-logo-actions button { min-height:44px; }
.quick-logo-options { font-size:12px; }
.quick-logo-options summary { min-height:44px; display:list-item; align-content:center; cursor:pointer; color:#dbe7c9; }
.quick-logo-option-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding-top:12px; }
.quick-logo-option-fields > label:last-child { grid-column:1/-1; }
.quick-logo-option-fields button { align-self:end; min-height:44px; }
@media(max-width:480px) { .quick-logo-actions { align-items:stretch; } .quick-logo-actions .quick-button { flex:1; padding-inline:10px; } }

/* User-supplied panel data stays a bounded reference beside the calculator. */
.led-panel-reference{margin-top:14px;border-top:1px solid var(--border,#405044);padding-top:12px;min-width:0}
.led-panel-reference>summary{cursor:pointer;font-size:12px;font-weight:650;padding:8px 0;min-height:44px}
.led-panel-reference-table{max-width:100%;max-height:320px;overflow:auto;margin-top:10px;border:1px solid var(--border,#405044);border-radius:8px}
.led-panel-reference-table:focus-visible{outline:2px solid #d5ff5f;outline-offset:2px}
.led-panel-reference-table table{width:100%;min-width:620px;border-collapse:collapse;font-size:11px;text-align:left;line-height:1.5}
.led-panel-reference-table th,.led-panel-reference-table td{padding:9px 10px;vertical-align:top;border-bottom:1px solid var(--border,#405044)}
.led-panel-reference-table th{position:sticky;top:0;background:#1a2522;color:#edf4e7;font-weight:650;z-index:1}
.led-panel-reference-table td{color:inherit}.led-panel-reference-table small{display:block;font-size:10px;color:var(--muted,#b2c2b6);line-height:1.5}
.led-panel-reference-table a{color:#d5ff5f}.led-panel-reference-table button{display:block;min-height:44px;padding:7px 10px;margin-top:6px;border:1px solid #5a7043;border-radius:6px;background:#263821;color:#e0f3bd;cursor:pointer;font:inherit}
