/* GrowX admin kit v1 (2026-10-03) — one look for every GrowX panel in the Shoper iframe.
   Copy to <app>/assets/gx/gx-admin.css, load it BEFORE the app's admin.css, cache-bust with ?v=filemtime.
   Only .gx-* classes and --gx-* tokens. Pick the app accent by overriding --gx-action* on :root.
   Rules that keep it iframe-safe: no sticky/fixed, no 100vh, no background gradients, nothing below 12px,
   pickers and popovers are in flow or display:none when closed.
   1 tokens/base · 2 shell (app bar, tabs, page head, footer) · 3 cards, sections, layout
   4 controls (buttons, inputs, field rows, hint, segmented, switch, choice cards, chips, combobox)
   5 feedback (status pill, notes, inline status, empty state) · 6 setup guide · 7 lists, stats, preview */

/* 1 ─ tokens and base */
:root{
  --gx-bg:#efefed;--gx-card:#fff;--gx-inset:#f5f5f4;--gx-soft:#fafaf9;
  --gx-text:#292524;--gx-label:#44403c;--gx-body:#57534e;--gx-muted:#78716c;--gx-faint:#a8a29e;
  --gx-line:#e7e5e4;--gx-line-strong:#d6d3d1;
  --gx-action:#2155d9;--gx-action-hover:#1a46b8;--gx-action-text:#1a46b8;--gx-action-soft:#eef3ff;--gx-action-line:#b9caf5;
  --gx-live:#c8f0df;--gx-live-fg:#14532d;--gx-live-dot:#15803d;
  --gx-draft:#fef3c7;--gx-draft-fg:#92400e;--gx-draft-dot:#d97706;
  --gx-danger:#b91c1c;--gx-danger-soft:#fef2f2;
  --gx-info-soft:#eff6ff;--gx-info-fg:#1e40af;
  --gx-r-sm:8px;--gx-r-md:12px;--gx-r-lg:16px;--gx-r-full:999px;
  --gx-card-shadow:0 1px 3px rgba(41,37,36,.06),0 8px 24px -6px rgba(41,37,36,.10);
  --gx-pop-shadow:0 4px 12px rgba(41,37,36,.10),0 16px 40px -12px rgba(41,37,36,.22);
  --gx-control-h:40px;
  --gx-font:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
.gx-body{margin:0;background:var(--gx-bg);color:var(--gx-text);font-family:var(--gx-font)}
.gx-app{max-width:1180px;margin:0 auto;padding:0 24px 32px;color:var(--gx-text);font:14px/1.45 var(--gx-font);-webkit-font-smoothing:antialiased}
:where(.gx-app) :where(*,*::before,*::after){box-sizing:border-box}
/* resets have zero specificity so the app's own classes always win */
:where(.gx-app) :where(h1,h2,h3,h4,p,ul,ol,figure,fieldset){margin:0}
:where(.gx-app) :where(ul,ol){padding:0}
:where(.gx-app) :where(fieldset){min-width:0;padding:0;border:0}
:where(.gx-app) :where(button,input,select,textarea){font:inherit;color:inherit}
.gx-app [hidden]{display:none!important}
:where(.gx-app) :focus-visible{outline:2px solid var(--gx-action);outline-offset:2px}
:where(.gx-app) :where(a){color:var(--gx-action-text)}
.gx-sprite{position:absolute;width:0;height:0;overflow:hidden}
.gx-ico{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}
.gx-ico--14{width:14px;height:14px;vertical-align:-2px}
.gx-ico--20{width:20px;height:20px;vertical-align:-4px}
.gx-ico--24{width:24px;height:24px}
.gx-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.gx-num{font-variant-numeric:tabular-nums}
.gx-muted{color:var(--gx-muted)}
.gx-stack{display:flex;flex-direction:column;gap:16px}
.gx-stack--lg{gap:24px}
.gx-row-flex{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.gx-spacer{flex:1 1 auto}
@media (prefers-reduced-motion:reduce){:where(.gx-app) :where(*,*::before,*::after){transition:none!important;animation:none!important}}

/* 2 ─ shell */
.gx-appbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-height:72px;padding:12px 0}
.gx-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;color:var(--gx-text)!important;text-decoration:none;border-radius:var(--gx-r-sm)}
.gx-brand__icon{width:36px;height:36px;flex:none;border-radius:10px}
.gx-brand__name{font-size:16px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.gx-plan{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:var(--gx-r-full);background:var(--gx-inset);color:var(--gx-label);font-size:12px;font-weight:500;white-space:nowrap}
.gx-plan[data-plan="trial"]{background:var(--gx-draft);color:var(--gx-draft-fg)}
.gx-plan[data-plan="pro"],.gx-plan[data-plan="active"]{background:var(--gx-live);color:var(--gx-live-fg)}
.gx-plan[data-plan="inactive"]{background:var(--gx-danger-soft);color:var(--gx-danger)}
.gx-appbar__end{display:flex;align-items:center;gap:4px;margin-left:auto}
.gx-tabs{display:flex;gap:4px;margin:0 0 24px;border-bottom:1px solid var(--gx-line-strong);overflow-x:auto;scrollbar-width:none}
.gx-tabs::-webkit-scrollbar{display:none}
.gx-tab{display:inline-flex;align-items:center;gap:8px;flex:none;height:44px;padding:0 12px;border:0;background:none;color:var(--gx-body)!important;font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap;cursor:pointer;border-radius:var(--gx-r-sm) var(--gx-r-sm) 0 0;box-shadow:inset 0 -2px 0 transparent}
.gx-tab:hover{color:var(--gx-text)!important;background:rgba(41,37,36,.04)}
.gx-tab[aria-current="page"],.gx-tab[aria-selected="true"]{color:var(--gx-text)!important;font-weight:600;box-shadow:inset 0 -2px 0 var(--gx-action)}
.gx-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:var(--gx-r-full);background:var(--gx-inset);color:var(--gx-label);font-size:12px;font-weight:500}
.gx-pagehead{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 24px;margin:0 0 20px}
.gx-pagehead__text{flex:1 1 360px;min-width:0}
.gx-h1{font-size:20px;line-height:1.25;font-weight:600;letter-spacing:-.01em}
.gx-lead{margin-top:4px!important;color:var(--gx-body);font-size:14px;max-width:68ch}
.gx-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:32px;padding-top:16px;border-top:1px solid var(--gx-line-strong);color:var(--gx-muted);font-size:13px}
.gx-footer a{display:inline-flex;align-items:center;gap:6px;font-weight:500}

/* 3 ─ cards, sections, layout */
.gx-card{background:var(--gx-card);border:1px solid var(--gx-line);border-radius:var(--gx-r-lg);box-shadow:var(--gx-card-shadow)}
.gx-section{padding:24px}
.gx-section__head{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.gx-section__head > div{flex:1 1 auto;min-width:0}
.gx-h2{display:flex;align-items:center;gap:8px;font-size:16px;line-height:1.3;font-weight:600}
.gx-h2 .gx-ico{color:var(--gx-muted)}
.gx-h3{font-size:14px;line-height:1.35;font-weight:600}
.gx-section__lead{margin-top:4px!important;color:var(--gx-body);font-size:13px}
.gx-section + .gx-section,.gx-card + .gx-card{margin-top:16px}
.gx-stack > .gx-card + .gx-card,.gx-stack > .gx-section + .gx-section{margin-top:0}
.gx-card__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:16px 20px;border-bottom:1px solid var(--gx-line)}
.gx-card__head .gx-section__lead{flex-basis:100%;margin-top:-4px!important}
:is(.gx-choices,.gx-fields,.gx-note,.gx-combo,.gx-swatches) + :is(.gx-details,.gx-choices,.gx-swatches){margin-top:16px}
.gx-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
@media (min-width:961px){.gx-layout{grid-template-columns:minmax(0,1fr) minmax(360px,460px)}}
.gx-layout__main,.gx-layout__aside{min-width:0}
.gx-divider{height:1px;margin:16px 0;background:var(--gx-line);border:0}
.gx-details{border-top:1px solid var(--gx-line)}
.gx-details > summary{display:flex;align-items:center;gap:8px;min-height:48px;cursor:pointer;list-style:none;font-weight:500}
.gx-details > summary::-webkit-details-marker{display:none}
.gx-details > summary .gx-details__value{margin-left:auto;color:var(--gx-muted);font-weight:400;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50%}
.gx-details > summary .gx-ico:last-child{color:var(--gx-muted);transition:transform .16s}
.gx-details[open] > summary .gx-ico:last-child{transform:rotate(180deg)}
.gx-details__body{padding:0 0 16px}

/* 4 ─ controls */
.gx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--gx-control-h);padding:0 16px;border:1px solid transparent;border-radius:var(--gx-r-sm);font-size:14px;font-weight:500;line-height:1;white-space:nowrap;text-decoration:none!important;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
.gx-btn:disabled,.gx-btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.gx-btn--primary{background:var(--gx-action);color:#fff!important;font-weight:600}
.gx-btn--primary:hover:not(:disabled){background:var(--gx-action-hover)}
.gx-btn--secondary{background:var(--gx-card);border-color:var(--gx-line-strong);color:var(--gx-text)!important}
.gx-btn--secondary:hover:not(:disabled){background:var(--gx-inset)}
.gx-btn--ghost{background:transparent;color:var(--gx-label)!important}
.gx-btn--ghost:hover:not(:disabled){background:rgba(41,37,36,.05);color:var(--gx-text)!important}
.gx-btn--danger{background:transparent;color:var(--gx-danger)!important}
.gx-btn--danger:hover:not(:disabled){background:var(--gx-danger-soft)}
.gx-btn--sm{height:32px;padding:0 12px;font-size:13px}
.gx-btn--block{width:100%}
.gx-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;padding:0;border:0;border-radius:var(--gx-r-sm);background:transparent;color:var(--gx-muted);cursor:pointer}
.gx-iconbtn:hover{background:rgba(41,37,36,.06);color:var(--gx-text)}
.gx-iconbtn--danger:hover{background:var(--gx-danger-soft);color:var(--gx-danger)}
.gx-textbtn{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:var(--gx-action-text);font-weight:500;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.gx-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:20px}
.gx-actions--end{justify-content:flex-end}

.gx-input,.gx-select,.gx-textarea{display:block;width:100%;min-height:var(--gx-control-h);padding:8px 12px;border:1px solid var(--gx-line-strong);border-radius:var(--gx-r-sm);background:var(--gx-card);color:var(--gx-text);font-size:14px;line-height:1.4;transition:border-color .15s,box-shadow .15s}
.gx-textarea{min-height:88px;resize:vertical}
.gx-select{-webkit-appearance:none;appearance:none;max-width:100%;min-width:0;padding-right:28px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;background-size:14px 14px}
.gx-select[multiple],.gx-select[size]:not([size="1"]){-webkit-appearance:auto;appearance:auto;background-image:none;padding-right:12px}
.gx-input::placeholder,.gx-textarea::placeholder{color:var(--gx-faint)}
.gx-input:hover,.gx-select:hover,.gx-textarea:hover{border-color:var(--gx-faint)}
.gx-input:focus,.gx-select:focus,.gx-textarea:focus{outline:none;border-color:var(--gx-action);box-shadow:0 0 0 3px var(--gx-action-soft)}
.gx-input[aria-invalid="true"],.gx-select[aria-invalid="true"],.gx-textarea[aria-invalid="true"]{border-color:var(--gx-danger);box-shadow:0 0 0 3px var(--gx-danger-soft)}
.gx-input--narrow{max-width:160px}
.gx-affix{display:flex;align-items:stretch;max-width:220px}
.gx-affix .gx-input{border-radius:var(--gx-r-sm) 0 0 var(--gx-r-sm);min-width:0}
.gx-affix__text{display:inline-flex;align-items:center;padding:0 12px;border:1px solid var(--gx-line-strong);border-left:0;border-radius:0 var(--gx-r-sm) var(--gx-r-sm) 0;background:var(--gx-inset);color:var(--gx-body);font-size:13px;white-space:nowrap}
.gx-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.gx-check input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--gx-action)}
.gx-check small{display:block;color:var(--gx-muted);font-size:12px}

/* field row: label left, control right; stacked when the .gx-fields box is narrower than 600px */
.gx-fields{display:flex;flex-direction:column;container-type:inline-size;inline-size:100%;min-inline-size:0}
.gx-field{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:16px 0;border-top:1px solid var(--gx-line)}
.gx-fields > .gx-field:first-child{border-top:0;padding-top:0}
.gx-fields > .gx-field:last-child{padding-bottom:0}
/* label-left only when the field list itself is wide (editor column next to a preview stays stacked) */
@container (min-width:600px){.gx-field{grid-template-columns:minmax(160px,220px) minmax(0,1fr);gap:24px}}
@container (max-width:599px){.gx-field{padding:14px 0}.gx-field__label{padding-top:0}}
.gx-field__label{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;align-self:start;padding-top:9px;color:var(--gx-label);font-weight:500}
.gx-field__label label{cursor:pointer}
.gx-field--top .gx-field__label{padding-top:0}
.gx-optional{color:var(--gx-muted);font-weight:400;font-size:13px}
.gx-field__control{min-width:0}
.gx-field__help{margin-top:6px!important;color:var(--gx-muted);font-size:13px;line-height:1.4}
.gx-field__error{display:flex;align-items:flex-start;gap:6px;margin-top:6px!important;color:var(--gx-danger);font-size:13px;font-weight:500}
.gx-field--stacked{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
.gx-field--stacked .gx-field__label{padding-top:0}

/* hint: ? button + small popover, closed = display:none (does not widen the iframe) */
.gx-hint{position:relative;display:inline-flex}
.gx-hint__btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--gx-faint);cursor:pointer}
.gx-hint__btn:hover,.gx-hint__btn[aria-expanded="true"]{color:var(--gx-action-text);background:var(--gx-action-soft)}
.gx-hint__pop{position:absolute;z-index:30;top:calc(100% + 6px);left:-8px;width:max-content;max-width:280px;padding:10px 12px;border:1px solid var(--gx-line);border-radius:var(--gx-r-md);background:var(--gx-card);box-shadow:var(--gx-pop-shadow);color:var(--gx-body);font-size:13px;font-weight:400;line-height:1.45;text-align:left;white-space:normal}
.gx-hint__pop:not(.is-open){display:none}
.gx-hint__pop b{color:var(--gx-text);font-weight:600}
.gx-hint__pop a{font-weight:500}

/* segmented control (2–4 options); radios stay native for tests and keyboard */
.gx-seg{display:inline-flex;flex-wrap:wrap;gap:2px;padding:3px;border-radius:var(--gx-r-md);background:var(--gx-inset);border:1px solid var(--gx-line)}
.gx-seg label{position:relative;display:inline-flex}
.gx-seg input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.gx-seg span{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:var(--gx-r-sm);color:var(--gx-body);font-size:13px;font-weight:500;white-space:nowrap}
.gx-seg input:checked + span{background:var(--gx-card);color:var(--gx-text);box-shadow:0 1px 2px rgba(41,37,36,.12),0 0 0 1px var(--gx-line)}
.gx-seg input:focus-visible + span{outline:2px solid var(--gx-action);outline-offset:1px}
.gx-seg label:hover input:not(:checked):not(:disabled) + span{color:var(--gx-text)}
.gx-seg input:disabled{cursor:not-allowed}
.gx-seg input:disabled + span{opacity:.45}

/* switch (checkbox role=switch) */
.gx-switch{position:relative;display:flex;align-items:flex-start;gap:12px;cursor:pointer}
/* the real checkbox sits exactly over the track: clickable, focusable and visible to test tools */
.gx-switch input{position:absolute;left:0;top:1px;z-index:1;width:36px;height:20px;margin:0;opacity:0;cursor:pointer}
.gx-switch__track{position:relative;flex:none;width:36px;height:20px;margin-top:1px;border-radius:var(--gx-r-full);background:var(--gx-line-strong);transition:background-color .16s}
.gx-switch__track::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .16s}
.gx-switch input:checked + .gx-switch__track{background:var(--gx-action)}
.gx-switch input:checked + .gx-switch__track::after{transform:translateX(16px)}
.gx-switch input:focus-visible + .gx-switch__track{outline:2px solid var(--gx-action);outline-offset:2px}
.gx-switch b{display:block;font-weight:500}
.gx-switch small{display:block;color:var(--gx-muted);font-size:12px}

/* choice cards: named looks / modes with a small thumbnail */
.gx-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(156px,1fr));gap:12px}
.gx-choice{position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--gx-line-strong);border-radius:var(--gx-r-md);background:var(--gx-card);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.gx-choice:hover{border-color:var(--gx-faint)}
.gx-choice input{position:absolute;opacity:0;width:1px;height:1px}
.gx-choice__thumb{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;overflow:hidden;border-radius:var(--gx-r-sm);background:var(--gx-inset);color:var(--gx-muted)}
.gx-choice__thumb img,.gx-choice__thumb svg:not(.gx-ico){width:100%;height:100%;object-fit:cover}
.gx-choice__name{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.gx-choice__desc{color:var(--gx-muted);font-size:12px;line-height:1.35}
.gx-choice:has(input:checked){border-color:var(--gx-action);box-shadow:0 0 0 1px var(--gx-action)}
.gx-choice:has(input:focus-visible){outline:2px solid var(--gx-action);outline-offset:2px}
.gx-choice__tick{position:absolute;top:8px;right:8px;display:none;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--gx-action);color:#fff}
.gx-choice:has(input:checked) .gx-choice__tick{display:inline-flex}
/* row cards: icon + name + one line; the container variant lays them out as a responsive list */
.gx-choices--row{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.gx-choices--row > .gx-choice:not(.gx-choice--row){flex-direction:row;align-items:flex-start;gap:12px;padding:12px 14px}
.gx-choice--row{flex-direction:row;align-items:flex-start;gap:12px;padding:12px 14px}
.gx-choice--row .gx-choice__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border-radius:var(--gx-r-sm);background:var(--gx-inset);color:var(--gx-label)}
.gx-choice--row:has(input:checked) .gx-choice__icon{background:var(--gx-action-soft);color:var(--gx-action-text)}

/* colour swatches: radios with data-swatch="#hex" (GX.init paints them via CSSOM — no style attributes) + optional custom picker */
.gx-swatches{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gx-swatch{position:relative;display:inline-flex;cursor:pointer}
.gx-swatch input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.gx-swatch span{display:block;width:28px;height:28px;border-radius:50%;background:var(--gx-swatch,#d6d3d1);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.gx-swatch input:checked + span{box-shadow:0 0 0 2px var(--gx-card),0 0 0 4px var(--gx-text)}
.gx-swatch input:focus-visible + span{outline:2px solid var(--gx-action);outline-offset:4px}
.gx-swatch--custom{align-items:center;gap:6px;height:32px;padding:0 10px 0 4px;border:1px solid var(--gx-line-strong);border-radius:var(--gx-r-full);font-size:13px;color:var(--gx-label)}
.gx-swatch--custom input[type=color]{position:static;width:24px;height:24px;padding:0;border:0;border-radius:50%;opacity:1;background:none}

/* chips */
.gx-chips{display:flex;flex-wrap:wrap;gap:6px}
.gx-chips:empty{display:none}
.gx-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:28px;padding:0 4px 0 10px;border:1px solid var(--gx-line-strong);border-radius:var(--gx-r-full);background:var(--gx-card);color:var(--gx-text);font-size:13px}
.gx-chip > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gx-chip__x{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none;padding:0;border:0;border-radius:50%;background:none;color:var(--gx-muted);cursor:pointer}
.gx-chip__x:hover{background:var(--gx-inset);color:var(--gx-danger)}
.gx-chip--static{padding-right:10px}
.gx-chip img{width:20px;height:20px;margin-left:-6px;border-radius:50%;object-fit:cover}

/* combobox with suggestions — the list is IN FLOW under the field (never clipped by the iframe) */
.gx-combo{display:flex;flex-direction:column;gap:8px}
.gx-combo__field{position:relative}
.gx-combo__field > .gx-ico{position:absolute;left:12px;top:12px;color:var(--gx-muted);pointer-events:none}
.gx-combo__field .gx-input{padding-left:36px}
.gx-combo__list{max-height:300px;overflow-y:auto;padding:4px;border:1px solid var(--gx-line);border-radius:var(--gx-r-md);background:var(--gx-card);box-shadow:var(--gx-pop-shadow);list-style:none}
.gx-combo__list:not(.is-open){display:none}
.gx-combo__group{padding:8px 8px 4px;color:var(--gx-muted);font-size:12px;font-weight:500}
.gx-option{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 8px;border-radius:var(--gx-r-sm);cursor:pointer}
.gx-option[aria-selected="true"],.gx-option.is-active{background:var(--gx-action-soft)}
.gx-option__thumb{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;overflow:hidden;border-radius:6px;background:var(--gx-inset);color:var(--gx-muted)}
.gx-option__thumb img{width:100%;height:100%;object-fit:cover}
.gx-option__text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.gx-option__text b{overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.gx-option__text small{overflow:hidden;color:var(--gx-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.gx-option__check{color:var(--gx-action);visibility:hidden}
.gx-option[data-picked="true"] .gx-option__check{visibility:visible}
.gx-combo__empty{padding:12px 8px;color:var(--gx-muted);font-size:13px}

/* 5 ─ feedback */
.gx-status{display:inline-flex;align-items:center;gap:8px;flex:none;height:28px;padding:0 12px 0 10px;border-radius:var(--gx-r-full);background:var(--gx-inset);color:var(--gx-label);font-size:13px;font-weight:500;white-space:nowrap}
.gx-status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--gx-faint)}
.gx-status--sm{height:24px;padding:0 10px 0 8px;font-size:12px}
.gx-status[data-tone="live"]{background:var(--gx-live);color:var(--gx-live-fg)}
.gx-status[data-tone="live"]::before{background:var(--gx-live-dot)}
.gx-status[data-tone="draft"],.gx-status[data-tone="dirty"]{background:var(--gx-draft);color:var(--gx-draft-fg)}
.gx-status[data-tone="draft"]::before,.gx-status[data-tone="dirty"]::before{background:var(--gx-draft-dot)}
.gx-status[data-tone="error"]{background:var(--gx-danger-soft);color:var(--gx-danger)}
.gx-status[data-tone="error"]::before{background:var(--gx-danger)}
.gx-note{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--gx-line);border-radius:var(--gx-r-md);background:var(--gx-soft);color:var(--gx-body);font-size:13px;line-height:1.45}
.gx-note > .gx-ico{margin-top:1px;color:var(--gx-muted)}
.gx-note b{color:var(--gx-text);font-weight:600}
.gx-note__body{flex:1 1 auto;min-width:0}
.gx-note__body > * + *{margin-top:4px!important}
.gx-note[data-tone="info"]{background:var(--gx-info-soft);border-color:#c7d7fe}
.gx-note[data-tone="info"] > .gx-ico{color:var(--gx-info-fg)}
.gx-note[data-tone="success"]{background:#f0fdf4;border-color:#bbf7d0}
.gx-note[data-tone="success"] > .gx-ico{color:var(--gx-live-dot)}
.gx-note[data-tone="warn"]{background:#fffbeb;border-color:#fde68a}
.gx-note[data-tone="warn"] > .gx-ico{color:var(--gx-draft-dot)}
.gx-note[data-tone="error"]{background:var(--gx-danger-soft);border-color:#fecaca;color:#7f1d1d}
.gx-note[data-tone="error"] > .gx-ico{color:var(--gx-danger)}
.gx-inline{display:inline-flex;align-items:center;gap:6px;min-height:24px;color:var(--gx-body);font-size:13px;font-weight:500}
.gx-inline:empty{display:none}
.gx-inline[data-tone="success"]{color:var(--gx-live-fg)}
.gx-inline[data-tone="error"]{color:var(--gx-danger)}
.gx-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 24px;text-align:center}
.gx-empty__icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;margin-bottom:4px;border-radius:var(--gx-r-md);background:var(--gx-action-soft);color:var(--gx-action-text)}
.gx-empty h3{font-size:16px;font-weight:600}
.gx-empty p{max-width:48ch;color:var(--gx-body)}
.gx-empty .gx-actions{justify-content:center;margin-top:12px}

/* 6 ─ setup guide ("Pierwsze kroki"): numbered steps, one open at a time */
.gx-setup{padding:20px 24px}
.gx-setup__head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.gx-setup__title{flex:1 1 240px;min-width:0}
.gx-setup__title p{margin-top:2px!important;color:var(--gx-body);font-size:13px}
.gx-progress{display:inline-flex;align-items:center;gap:10px;color:var(--gx-body);font-size:13px;white-space:nowrap}
.gx-progress progress{appearance:none;-webkit-appearance:none;width:96px;height:6px;border:0;border-radius:var(--gx-r-full);background:var(--gx-line);overflow:hidden}
.gx-progress progress::-webkit-progress-bar{background:var(--gx-line);border-radius:var(--gx-r-full)}
.gx-progress progress::-webkit-progress-value{background:var(--gx-live-dot);border-radius:var(--gx-r-full)}
.gx-progress progress::-moz-progress-bar{background:var(--gx-live-dot);border-radius:var(--gx-r-full)}
.gx-steps{display:flex;flex-direction:column;margin-top:12px!important;list-style:none}
.gx-step{display:grid;grid-template-columns:28px minmax(0,1fr);gap:0 12px;padding:10px 0;border-top:1px solid var(--gx-line)}
.gx-step:first-child{border-top:0}
.gx-step__mark{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-top:2px;border:1.5px dashed var(--gx-faint);border-radius:50%;color:var(--gx-muted);font-size:12px;font-weight:600}
.gx-step[data-done="true"] .gx-step__mark{border:0;background:var(--gx-live-dot);color:#fff}
.gx-step[aria-current="step"] .gx-step__mark{border:2px solid var(--gx-action);color:var(--gx-action-text)}
.gx-step__toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:28px;padding:0;border:0;background:none;text-align:left;font-weight:500;cursor:pointer}
.gx-step[data-done="true"] .gx-step__toggle{color:var(--gx-muted);text-decoration:line-through;text-decoration-color:var(--gx-faint)}
.gx-step__detail{padding:4px 0 6px;color:var(--gx-body);font-size:13px}
.gx-step:not(.is-open) .gx-step__detail{display:none}
.gx-step__detail .gx-actions{margin-top:12px}
.gx-setup.is-collapsed .gx-steps{display:none}

/* range + table (several apps needed them) */
input[type=range].gx-range{width:100%;accent-color:var(--gx-action);cursor:pointer}
.gx-table-wrap{overflow-x:auto;border:1px solid var(--gx-line);border-radius:var(--gx-r-md);background:var(--gx-card)}
.gx-table{width:100%;border-collapse:collapse;font-size:13px}
.gx-table th{padding:8px 12px;border-bottom:1px solid var(--gx-line);background:var(--gx-soft);color:var(--gx-muted);font-size:12px;font-weight:500;text-align:left;white-space:nowrap}
.gx-table td{padding:10px 12px;border-bottom:1px solid var(--gx-line);color:var(--gx-body);vertical-align:top}
.gx-table tr:last-child td{border-bottom:0}
.gx-table .gx-num{text-align:right}

/* 7 ─ lists, stats, preview */
.gx-list{display:flex;flex-direction:column;list-style:none}
.gx-item{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:16px 20px;border-top:1px solid var(--gx-line)}
.gx-list > .gx-item:first-child{border-top:0}
.gx-item__main{flex:1 1 320px;min-width:0}
.gx-item__title{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-weight:600}
.gx-item__title a{color:var(--gx-text);text-decoration:none}
.gx-item__title a:hover{text-decoration:underline}
.gx-facts{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px!important;color:var(--gx-muted);font-size:13px}
.gx-facts > span{display:inline-flex;align-items:center;gap:5px}
.gx-item__actions{display:flex;align-items:center;gap:4px;margin-left:auto}
.gx-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.gx-stat{padding:16px;border:1px solid var(--gx-line);border-radius:var(--gx-r-md);background:var(--gx-card)}
.gx-stat__label{color:var(--gx-muted);font-size:13px}
.gx-stat__value{margin-top:4px;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.gx-stat__hint{margin-top:2px;color:var(--gx-muted);font-size:12px}
.gx-preview{overflow:hidden}
.gx-preview__head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 16px;border-bottom:1px solid var(--gx-line)}
.gx-preview__head .gx-h3{flex:1 1 auto}
.gx-sample{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--gx-r-full);background:var(--gx-inset);color:var(--gx-muted);font-size:12px;font-weight:500}
.gx-shopbar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--gx-inset);border-bottom:1px solid var(--gx-line);color:var(--gx-muted);font-size:12px}
.gx-shopbar__url{flex:1 1 auto;min-width:0;height:24px;padding:3px 10px;border-radius:var(--gx-r-full);background:var(--gx-card);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gx-preview__stage{padding:16px;background:var(--gx-soft)}
.gx-preview__foot{padding:10px 16px;border-top:1px solid var(--gx-line);color:var(--gx-muted);font-size:12px}

/* phone width */
@media (max-width:600px){
  .gx-app{padding:0 16px 24px}
  .gx-appbar{min-height:60px}
  .gx-section,.gx-setup{padding:16px}
  .gx-item{padding:14px 16px}
  .gx-item__actions{margin-left:0}
  .gx-actions > .gx-btn--primary{flex:1 1 100%}
  .gx-hint__pop{max-width:calc(100vw - 48px)}
}
