/* One token set for both wizards. Light is the bare :root; dark is redefined
   twice so the OS setting and an explicit data-theme both win in the right
   direction. Every color below comes from a token, so a component never
   hardcodes one theme's ground. */
:root{
  --bg:#eef1ef;--panel:#fff;--panel-2:#f6f8f7;--ink:#15201c;--muted:#5d6b66;--line:#d9dfdc;--line-2:#e8ece9;
  --accent:#166d5b;--accent-ink:#fff;--accent-soft:#e3f1ec;--sel:#e6f2ee;
  --ok:#1a8f4e;--ok-bg:#e6f5ec;--warn:#b7791f;--warn-bg:#fbf3e3;--bad:#c8322b;--bad-bg:#fbe9e7;
  --radius:10px;--shadow:0 1px 2px rgba(21,32,28,.06),0 6px 20px -12px rgba(21,32,28,.18);--side:200px;
  color-scheme:light;
  --scrim:rgba(21,32,28,.42);
  --display:"Bricolage Grotesque","IBM Plex Sans",system-ui,sans-serif;
  --body:"IBM Plex Sans",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  color-scheme:dark;
  --bg:#121816;--panel:#1a2320;--panel-2:#1f2a26;--ink:#e8ede9;--muted:#93a29c;--line:#2a3531;--line-2:#233029;
  --accent:#3fb392;--accent-ink:#0d1a15;--accent-soft:#1d3a31;--sel:#1c332b;
  --ok:#4fc27f;--ok-bg:#173327;--warn:#e0a445;--warn-bg:#3a2e14;--bad:#f06a60;--bad-bg:#3d1f1c;
  --shadow:0 1px 2px rgba(0,0,0,.3);--scrim:rgba(0,0,0,.55);
}}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#121816;--panel:#1a2320;--panel-2:#1f2a26;--ink:#e8ede9;--muted:#93a29c;--line:#2a3531;--line-2:#233029;
  --accent:#3fb392;--accent-ink:#0d1a15;--accent-soft:#1d3a31;--sel:#1c332b;
  --ok:#4fc27f;--ok-bg:#173327;--warn:#e0a445;--warn-bg:#3a2e14;--bad:#f06a60;--bad-bg:#3d1f1c;
  --shadow:0 1px 2px rgba(0,0,0,.3);--scrim:rgba(0,0,0,.55);
}
*{box-sizing:border-box}
body{margin:0;font:14px/1.5 var(--body);color:var(--ink);background:var(--bg)}
h1,h2,h3{font-family:var(--display);letter-spacing:-.01em;text-wrap:balance}
a{color:var(--accent)}

/* the shell: a left rail holding the store, the two wizards, History,
   Settings and Account. A .page.soon row is a placeholder shown greyed. */
.app{display:grid;grid-template-columns:var(--side) 1fr;min-height:100dvh}
.side{position:sticky;top:0;align-self:start;height:100dvh;display:flex;flex-direction:column;background:var(--panel);border-right:1px solid var(--line);z-index:6}
.side .brand{display:flex;align-items:center;gap:9px;font-family:var(--display);font-weight:700;font-size:15px;margin:0;padding:0 16px;height:56px;flex:none;border-bottom:1px solid var(--line-2)}
.side .brand::before{content:"P";width:22px;height:22px;border-radius:6px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-size:12px;flex:none}
.side .store{padding:12px 16px 14px;border-bottom:1px solid var(--line-2);display:grid;gap:6px}
.side .store label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}
.side .store select{width:100%;padding:6px 10px}
.side nav{padding:10px;display:flex;flex-direction:column;gap:2px}
.page{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:8px;background:none;color:var(--muted);text-decoration:none;font:inherit;font-weight:500;text-align:left;cursor:pointer}
.page:hover{background:var(--panel-2);color:var(--ink)}
.page.on{background:var(--accent-soft);color:var(--accent);font-weight:600}
.page svg{width:17px;height:17px;flex:none;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.page.soon{color:var(--muted);opacity:.55;cursor:default}
.page.soon:hover{background:none;color:var(--muted)}
.page em{margin-left:auto;font-family:var(--mono);font-size:11px;font-style:normal;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:0}

select,input[type=text],input[type=search]{font:inherit;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);max-width:100%}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
main{width:100%;padding:22px 28px 96px;min-width:0}

/* the stepper: a circle per step with its name under it, joined by a rail
   that fills as steps complete. Below 980px the rail cannot fit, so it
   collapses to the position and a progress bar instead. */
.stepper{display:flex;align-items:flex-start;margin:0 0 20px;padding:0 4px 4px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
.stepper .s{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0;color:var(--muted)}
.stepper .n{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;font-size:12px;font-weight:600;background:var(--panel);font-family:var(--mono);flex:none}
.stepper .s b{font-size:12px;font-weight:500;white-space:nowrap}
.stepper .s small{display:none;font-size:11px;line-height:1.35;color:var(--muted);max-width:17ch;text-wrap:balance}
.stepper .s.active{color:var(--ink)}
.stepper .s.active b{font-weight:600}
.stepper .s.active .n{background:var(--ink);color:var(--bg);border-color:var(--ink);box-shadow:0 0 0 4px var(--accent-soft)}
.stepper .s.done{color:var(--ink)}
.stepper .s.done .n{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.stepper .rail{flex:1;height:1.5px;background:var(--line);margin:12.25px 8px 0;min-width:10px}
.stepper .rail.done{background:var(--accent)}
/* only a short stepper has room for a note under each step */
@media (min-width:1180px){.stepper.roomy .s small{display:block}}

.stepnarrow{display:none;margin:0 0 18px}
.stepnarrow .row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:7px}
.stepnarrow strong{font-family:var(--display);font-size:15px}
.stepnarrow .pbar{display:block;height:6px;border-radius:3px;background:var(--line-2);overflow:hidden}
.stepnarrow .pbar i{display:block;height:100%;background:var(--accent);transition:width .3s}
@media (prefers-reduced-motion:reduce){.stepnarrow .pbar i{transition:none}}
@media (max-width:980px){.stepper{display:none}.stepnarrow{display:block}}

.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px 24px 22px;margin-bottom:16px;box-shadow:var(--shadow)}
.card h2{font-size:20px;margin:0 0 3px}
.card .sub{color:var(--muted);margin:0 0 16px;max-width:78ch}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse}
th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap;font-weight:600}
td{padding:10px;border-bottom:1px solid var(--line-2);vertical-align:middle}
tr.selectable{cursor:pointer}
tr.selectable:hover{background:var(--panel-2)}
tr.selected{background:var(--sel)}

/* badges carry a status dot so the kind reads without relying on hue alone */
.badge{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:6px;font-size:12px;font-weight:500;white-space:nowrap;background:var(--panel-2);color:var(--muted)}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.badge.ok{background:var(--ok-bg);color:var(--ok)}
.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.bad{background:var(--bad-bg);color:var(--bad)}
.badge.gray{background:var(--panel-2);color:var(--muted)}
/* the dot is the status marker; a badge whose text is already a glyph drops it */
.badge.gray::before,.badge.plain::before{display:none}
.badge.plain{min-width:22px;justify-content:center;font-weight:600}
.thumb{width:46px;height:46px;border-radius:6px;border:1px solid var(--line);background:var(--panel-2) center/cover no-repeat;display:grid;place-items:center;font-size:10px;color:var(--muted)}
.thumb.empty{background:repeating-linear-gradient(45deg,var(--panel-2),var(--panel-2) 6px,var(--line-2) 6px,var(--line-2) 12px)}
/* preview: featured picker — a colour row's thumbnail doubles as the button
   that features it; the corner star shows filled/empty, and on hover/focus
   for an unfeatured row so the click target reads as clickable */
.thumb-btn{position:relative;width:46px;height:46px;padding:0;border-radius:6px;border:2px solid var(--line);background:var(--panel-2);cursor:pointer;display:grid;place-items:center;overflow:hidden}
.thumb-btn .tb-img{width:100%;height:100%;background:center/cover no-repeat;display:block}
.thumb-btn .tb-img.empty{background:repeating-linear-gradient(45deg,var(--panel-2),var(--panel-2) 6px,var(--line-2) 6px,var(--line-2) 12px);display:grid;place-items:center;font-size:9px;color:var(--muted)}
.thumb-btn .star{position:absolute;right:1px;bottom:0;font-size:12px;line-height:1;color:#fff;text-shadow:0 0 3px rgba(0,0,0,.6);opacity:0}
.thumb-btn:hover{border-color:var(--muted)}
.thumb-btn:hover .star{opacity:1}
.thumb-btn.on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.thumb-btn.on .star{opacity:1;color:#ffd23f}
.thumb-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
tr.on td{background:var(--sel)}
.feat{color:var(--ink);font-weight:600}
.feat .src{font-weight:400;color:var(--muted)}
/* the Designs step's From Printify list: the product's current Shopify image,
   large enough to read as a mockup; Printify's image is dashed */
.thumb.lg{width:64px;height:64px;border-radius:8px;position:relative;overflow:hidden}
.thumb.lg.pfy{border-style:dashed}
.thumb.lg .src{position:absolute;right:0;bottom:0;font-size:9px;line-height:1.4;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:1px 5px;border-radius:6px 0 0 0;background:var(--ok);color:#fff} /* own line-height: the link wrapper's is 0 */
.thumb.lg.pfy .src{background:var(--muted)}
a.thumb-link{display:inline-block;line-height:0;border-radius:8px}
a.thumb-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
th label.all{display:inline-flex;align-items:center;gap:6px;text-transform:none;letter-spacing:0;font-weight:500;cursor:pointer;margin-right:8px}
.rownote{font-size:12px;color:var(--muted)}
.rownote.warn{color:var(--warn)}
.rownote.bad{color:var(--bad)}

/* the summary numbers read as one strip, not a grid of boxes; a .tile used on
   its own (mapping's unmatched-file lists) stays a bordered box */
.tile{border:1px solid var(--line-2);border-radius:8px;padding:12px 14px;background:var(--panel-2)}
.tiles{display:flex;flex-wrap:wrap;gap:0;border:1px solid var(--line-2);border-radius:8px;background:var(--panel-2);margin:0 0 16px}
.tiles:empty{display:none}
.tiles > .tile{border:0;border-right:1px solid var(--line-2);border-radius:0;background:none;padding:10px 18px;min-width:118px;flex:1;display:flex;flex-direction:column}
.tiles > .tile .v{margin-top:auto}
.tiles > .tile:last-child{border-right:0}
.tile .k{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.tile .v{font-family:var(--display);font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;margin-top:1px}
.tile .v.small{font-size:15px;font-family:var(--body);font-weight:600}
.tile .v.bad{color:var(--bad)}

.checks{padding:0;margin:0}
.checks li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--line-2);list-style:none}
.checks .lbl{flex:1}
.checks .note{color:var(--muted);font-size:13px}
.drop{border:1.5px dashed var(--line);border-radius:10px;padding:26px;text-align:center;color:var(--muted);margin-bottom:16px;background:var(--panel-2);cursor:pointer}
.drop.over{border-color:var(--accent);background:var(--accent-soft);color:var(--ink)}
.drop strong{color:var(--ink)}

/* banners lead with a colored rule rather than a full outline */
.banner{padding:10px 14px;border-radius:8px;margin-bottom:14px;font-size:13px;display:flex;gap:10px;align-items:flex-start;border:1px solid transparent}
.banner::before{content:"";width:3px;align-self:stretch;border-radius:2px;flex:none}
.banner.warn{background:var(--warn-bg)}
.banner.warn::before{background:var(--warn)}
.banner.bad{background:var(--bad-bg)}
.banner.bad::before{background:var(--bad)}
.banner.info{background:var(--accent-soft)}
.banner.info::before{background:var(--accent)}
.cols{display:grid;grid-template-columns:2fr 1fr;gap:16px}
@media (max-width:760px){.cols{grid-template-columns:1fr}}
.list{margin:0;padding:0;list-style:none}
.list li{padding:7px 0;border-bottom:1px solid var(--line-2);display:flex;justify-content:space-between;gap:8px;font-size:13px;word-break:break-all}
.mono{font-family:var(--mono);font-size:12px}
.nav{position:fixed;left:var(--side);right:0;bottom:0;background:var(--panel);border-top:1px solid var(--line);padding:12px 24px;display:flex;align-items:center;gap:16px;z-index:5}
.nav .hint{color:var(--muted);font-size:13px;flex:1}
.nav button.primary,.nav button.danger{padding:9px 18px}
button{font:inherit;padding:7px 14px;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer}
button:hover{border-color:var(--muted)}
button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:600}
button.primary:hover{border-color:var(--accent);filter:brightness(1.06)}
button.danger{background:var(--bad);color:#fff;border-color:var(--bad);font-weight:600}
button:disabled{opacity:.45;cursor:not-allowed}
button:disabled:hover{border-color:var(--line);filter:none}
.opts{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:8px 0 16px;font-size:13px}
.opts label{display:flex;gap:6px;align-items:center}
.log{padding:0;margin:0}
.log li{list-style:none;display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line-2)}
.log .msg{color:var(--muted);font-size:12px;margin-left:auto}
.dot{width:10px;height:10px;border-radius:50%;background:var(--line);flex:none}
.dot.run{background:var(--warn);animation:pulse 1s infinite}
.dot.ok{background:var(--ok)}.dot.bad{background:var(--bad)}
@keyframes pulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.dot.run{animation:none}}
.hidden{display:none}
.kbd{font-size:12px;color:var(--muted)}
.note-block{font-size:12px;color:var(--muted);margin-top:14px}
.sw{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--line);margin-right:6px;vertical-align:middle}
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.filters input[type=search]{flex:1;min-width:220px;max-width:420px}
tr.skip td{opacity:.55}
.bar{height:6px;background:var(--line-2);border-radius:3px;overflow:hidden;width:140px;display:inline-block;vertical-align:middle}
.bar i{display:block;height:100%;background:var(--accent);width:0;transition:width .3s}
@media (prefers-reduced-motion:reduce){.bar i{transition:none}}
/* bulk mapping: one collapsible section per product */
.prod{border:1px solid var(--line);border-radius:8px;margin-bottom:12px;background:var(--panel)}
.prod summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:12px 14px;flex-wrap:wrap}
.prod summary::-webkit-details-marker{display:none}
.prod summary .chev{width:18px;color:var(--muted);transition:transform .15s}
.prod[open] summary .chev{transform:rotate(90deg)}
@media (prefers-reduced-motion:reduce){.prod summary .chev{transition:none}}
.prod summary .title{font-weight:600;flex:1;min-width:180px}
.prod summary .meta{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px;flex-wrap:wrap}
.prod .body{border-top:1px solid var(--line-2);padding:12px 14px 6px}
.prod.skip{background:var(--panel-2)}
.prod.skip summary .title{color:var(--muted)}
summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.bar.wide{width:100%;height:8px;display:block}
button.small{padding:4px 10px;font-size:12px}
/* cards (packs, placements) */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.pcard{border:1px solid var(--line);border-radius:8px;padding:12px 14px;cursor:pointer;background:var(--panel)}
.pcard:hover{border-color:var(--muted)}
.pcard.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.pcard .grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin:8px 0}
.pcard .grid div{aspect-ratio:1;border-radius:4px;border:1px solid var(--line-2);background:var(--panel-2) center/cover no-repeat}
.pcard .meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px}
.pcard .art{aspect-ratio:1;border-radius:6px;border:1px solid var(--line-2);margin:8px 0;background:var(--panel-2) center/cover no-repeat}
/* preview grid */
/* swatches + dialogs + editor */
.swatches{display:flex;gap:6px;flex-wrap:wrap}
.sw{display:inline-block;width:28px;height:28px;border-radius:50%;border:2px solid var(--panel);box-shadow:0 0 0 1px var(--line);background:var(--line-2) center/cover no-repeat;cursor:pointer;margin:0;vertical-align:middle}
.sw.on{box-shadow:0 0 0 2px var(--accent)}
.sw.custom{box-shadow:0 0 0 2px var(--warn)}
.sw.on.custom{box-shadow:0 0 0 2px var(--accent),0 0 0 4px var(--warn)}
/* The dialog owns its height: head and foot are pinned and the body is the
   only scroller. A max-height on .body alone ignored the head and foot, so
   on a short window the dialog scrolled too — two nested scrollbars, with
   Save scrolled out of reach. */
dialog{border:1px solid var(--line);border-radius:12px;padding:0;max-width:min(1100px,96vw);width:100%;max-height:calc(100dvh - 2.5rem);color:var(--ink);background:var(--panel);box-shadow:0 24px 60px -20px rgba(0,0,0,.4)}
dialog[open]{display:flex;flex-direction:column}
dialog::backdrop{background:var(--scrim)}
dialog .head{flex:none;display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line)}
dialog .head h2{font-size:17px;margin:0}
dialog .body{flex:1 1 auto;min-height:0;padding:18px 20px;overflow:auto}
dialog .foot{flex:none;display:flex;justify-content:flex-end;gap:10px;padding:12px 20px;border-top:1px solid var(--line);background:var(--panel-2)}
.colors{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px;margin-top:10px}
.colors .c{display:flex;align-items:center;gap:8px;font-size:13px;border:1px solid var(--line-2);border-radius:6px;padding:4px 6px}
.colors .c input{flex:1;min-width:0;padding:3px 6px}
.editor{display:grid;grid-template-columns:320px 1fr;gap:18px}
/* Stacked, the preview leads — it is what you drag. Flex, not a one-column
   grid: the body is a shrinkable flex item, and in that context a grid row
   resolves the square stage's height to nothing, so the stage overlapped
   the controls. A flex column sizes it from its own aspect-ratio. */
@media (max-width:900px){.editor{display:flex;flex-direction:column}.editor > *{flex:none;min-width:0}.editor .stage{order:-1}}
.stage{position:relative;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;overflow:hidden;user-select:none;touch-action:none}
.stage canvas{display:block;width:100%;height:auto}
.box{position:absolute;border:1.5px solid #fff;outline:1.5px dashed var(--accent);cursor:move;box-shadow:0 0 0 9999px rgba(0,0,0,.08)}
.h{position:absolute;width:12px;height:12px;background:#fff;border:1.5px solid var(--accent);border-radius:2px}
.h.nw{left:-7px;top:-7px;cursor:nwse-resize}.h.ne{right:-7px;top:-7px;cursor:nesw-resize}.h.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.h.se{right:-7px;bottom:-7px;cursor:nwse-resize}
.h.rot{left:50%;top:-34px;margin-left:-6px;border-radius:50%;cursor:grab}
.rotline{position:absolute;left:50%;top:-22px;width:1.5px;height:22px;background:var(--accent)}
.field{display:grid;grid-template-columns:100px 1fr;gap:8px;align-items:center;margin:6px 0;font-size:13px}
.field>*{min-width:0}
.field .pair{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.field input[type=number]{width:84px;font-variant-numeric:tabular-nums}
.section{border-top:1px solid var(--line-2);padding-top:12px;margin-top:12px}
.section .eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px;display:flex;justify-content:space-between;font-weight:600}
input[type=range]{width:160px;accent-color:var(--accent)}
input[type=checkbox],input[type=radio]{accent-color:var(--accent)}
input[type=text],input[type=number]{font:inherit;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);max-width:100%}
input[type=text]:disabled,input[type=number]:disabled,select:disabled,textarea:disabled{color:var(--muted);background:var(--panel-2);cursor:not-allowed}
textarea{font:13px/1.5 var(--mono);padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);max-width:100%;width:100%}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.gallery .shot{display:block;border:1px solid var(--line);border-radius:8px;overflow:hidden;text-decoration:none;color:var(--ink);background:var(--panel)}
.gallery .shot .img{display:block;aspect-ratio:1;background:var(--panel-2) center/cover no-repeat}
.gallery .shot .cap{display:block;font-size:12px;padding:6px 8px;text-align:center}
.gallery .shot:hover{border-color:var(--accent)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:999px;padding:3px 10px 3px 6px;font-size:12px;background:var(--panel);cursor:pointer;user-select:none}
.chip.off{opacity:.45}
.chip.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.chip .sw{width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.2);display:inline-block;box-shadow:none}
.chip .sw.none{background:repeating-linear-gradient(45deg,var(--line),var(--line) 3px,var(--panel) 3px,var(--panel) 6px)}
.chip input.hex{width:64px;padding:1px 4px;font-size:11px}
.price td,.price th{padding:6px 8px}
.price input{width:110px;text-align:right}
.pbox{border:1px solid var(--line-2);border-radius:8px;padding:14px;margin:10px 0;background:var(--panel)}
.pbox h3{margin:0 0 8px;font-size:14px;display:flex;justify-content:space-between;align-items:center;font-family:var(--body)}
.list{list-style:none;margin:0;padding:0}
.list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line-2);border-radius:8px;margin-bottom:6px}
.list li.on{border-color:var(--accent);background:var(--accent-soft)}
.catlist{position:absolute;z-index:4;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);max-height:240px;overflow:auto;width:min(560px,90vw)}
.catlist div{padding:7px 10px;font-size:13px;cursor:pointer}
.catlist div:hover{background:var(--panel-2)}
.pcard.add{border-style:dashed;display:grid;place-items:center;text-align:center;color:var(--muted);min-height:120px}
.swatches{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0;align-items:center}
.swatches .sw{width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.2);display:inline-block}

/* import step 3: tinted tees */
.designrow{border:1px solid var(--line-2);border-radius:10px;padding:14px 16px;margin-bottom:14px;background:var(--panel)}
.designrow .head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.designrow .pair,#swQuick .pair{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.teegrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tee{position:relative;border:1px solid var(--line-2);border-radius:8px;overflow:hidden;background:var(--panel-2)}
.tee svg{display:block;width:100%;aspect-ratio:1}
/* the mockup page's cards carry the composite of the pack photo, not a drawing */
.tee .shot{display:grid;place-items:center;width:100%;background:var(--panel-2) center/cover no-repeat;color:var(--bad);font-weight:700}
.tee.off .shot{opacity:.25}
.tee .cap .sw{border-radius:50%}
.colors{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 16px}
.colors .lbl{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600;margin-right:6px}
.colors .chip.off{text-decoration:line-through}
/* .field sets display after .hidden is declared; a hidden field must still hide */
.field.hidden{display:none}
.tee .cap{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;padding:6px 8px;background:var(--panel);border-top:1px solid var(--line-2)}
.tee .cap .sw{width:12px;height:12px;border:1px solid rgba(0,0,0,.2);box-shadow:none;margin:0;cursor:default}
.tee.off svg{opacity:.25}
.tee.off::after{content:"excluded";position:absolute;top:8px;left:8px;font-size:11px;background:var(--bad-bg);color:var(--bad);padding:2px 8px;border-radius:6px;font-weight:500}
.tee .tag{position:absolute;top:8px;left:8px;font-size:11px;background:var(--warn-bg);color:var(--warn);padding:2px 8px;border-radius:6px;font-weight:500}
.tee .tag.r{top:auto;bottom:38px;background:var(--accent-soft);color:var(--accent)}
.tee.off .tag{top:32px}
.tee.off .tag.r{top:auto}
.tee .acts{position:absolute;inset:0 0 31px 0;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--scrim);opacity:0;transition:opacity .15s}
.tee:hover .acts,.tee:focus-within .acts{opacity:1}
@media (prefers-reduced-motion:reduce){.tee .acts{transition:none}}
.tee .acts button{width:34px;height:34px;border-radius:50%;padding:0;display:grid;place-items:center;font-size:15px}
.tee .acts button.x{color:var(--bad)}
.tee .acts button:disabled{opacity:.4}
/* the sign-in page: one card, centred; the brand mark carries over */
main.login{min-height:100dvh;display:grid;place-items:center;padding:24px}
main.login .card{max-width:440px;width:100%}
main.login .brand{display:flex;align-items:center;gap:9px;font-size:18px;margin:0 0 6px}
main.login .brand::before{content:"P";width:24px;height:24px;border-radius:6px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-size:13px;flex:none}
main.login .sub{margin-bottom:18px}
a.button{display:inline-block;padding:9px 18px;border-radius:8px;border:1px solid var(--line);text-decoration:none;font-weight:600}
a.button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
/* settings: each store is two halves side by side; the add-brand form sits
   above the rows and is outlined in the accent so it reads as the one thing
   being worked on */
dialog .head .pair{display:flex;gap:8px;align-items:center}
#stBody .eyebrow .name{text-transform:none;letter-spacing:0;font-size:14px;color:var(--ink)}
#stBody .eyebrow .pair{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.half h4{margin:0 0 6px;font-size:13px;font-weight:600;font-family:var(--body);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.half .badge{font-weight:400;white-space:normal}
.section.shadowed .half{opacity:.55}
.brandform{border:1px solid var(--accent);box-shadow:inset 0 0 0 1px var(--accent);border-radius:10px;padding:14px 16px 12px;margin:0 0 4px;background:var(--panel)}
.brandform h3{margin:0 0 10px;font-size:15px}
.brandform .field{grid-template-columns:130px 1fr}
.brandform .steps{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.brandform .steps h4{margin:0 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-family:var(--body)}
.brandform .foot{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid var(--line-2)}
.brandform .foot .kbd{margin-right:auto}
.keyprev{font-family:var(--mono);font-size:12px;color:var(--muted)}
.verify{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted);min-height:22px}
.verify:empty{display:none}
.howto{font-size:12px;color:var(--muted);background:var(--panel-2);border-radius:8px;padding:8px 12px;margin:6px 0 0}
.howto .mono{user-select:all}
/* settings guide (the ⓘ button) */
.ico-i{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-right:6px;border:1.5px solid currentColor;border-radius:50%;font:600 10px/1 var(--mono);vertical-align:-2px}
.guide{background:var(--panel-2);border:1px solid var(--line);border-radius:10px;padding:14px 18px 16px;margin:0 0 16px;font-size:13px}
.guide .guidehead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px}
.guide h3{margin:0;font-size:15px}
.guide>p{max-width:72ch}
.guide .two{margin-top:12px}
.guide h4{margin:0 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.guide h4+*{margin-top:0}
.guide h4:not(:first-child){margin-top:18px}
.guide p{margin:6px 0}
.guide ol,.guide ul{margin:4px 0 0;padding-left:22px}
.guide li{margin:5px 0}
.guide li::marker{color:var(--muted)}
.guide .mono{user-select:all}
/* a value to copy, on its own line: breaks between scopes, never inside a word unless it must */
.guide .val{display:block;margin:4px 0;padding:5px 8px;background:var(--panel);border:1px solid var(--line);border-radius:6px;font:12px/1.5 var(--mono);user-select:all;overflow-wrap:anywhere}
.guide p.kbd{margin-top:8px}
@media (max-width:820px){.brandform .steps{grid-template-columns:1fr}}
/* placement dialog */
/* The stage is a square capped at 560px, so the 1100px dialog left ~145px of
   empty column beside it. Size the dialog to what its two columns need:
   320 controls + 18 gap + 560 stage + 40 body padding + 2 border. */
#plDlg{max-width:min(940px,96vw)}
.plstage{aspect-ratio:1;max-width:560px;background:var(--panel-2)}
/* Stacked: keep the square within the window so the controls under it stay
   reachable. After .plstage, or the base max-width would win on order. */
@media (max-width:900px){#plDlg{max-width:min(600px,96vw)}.plstage{align-self:center;width:100%;max-width:min(560px,55dvh)}}
.plstage #plSvg svg{display:block;width:100%;height:auto}
/* Numeric controls in the editor's 320px column. The label sits above the
   field: a 100px label track leaves 43px beside it, which no number input
   fits in, so .field there overflowed into the stage. */
.numrow{display:flex;align-items:center;gap:10px;margin:12px 0}
.numgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;margin:12px 0}
.num{display:flex;flex-direction:column;gap:5px;min-width:0}
.numrow>label,.num>span{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.num>span{display:flex;gap:5px;align-items:baseline;min-width:0}
.num em{font-style:normal;font-weight:400;font-size:11px;text-transform:none;letter-spacing:0;color:var(--muted);opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.num input[type=number],.numrow .unit input[type=number]{font-variant-numeric:tabular-nums}
.num input[type=number]{width:100%;min-width:0}
.numrow input[type=range]{flex:1;width:auto;min-width:60px}
.numrow .unit{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--muted)}
.numrow .unit input[type=number]{width:66px}
.scope{list-style:none;margin:14px 0 0;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.scope li{border-top:1px solid var(--line-2);margin:0;border-radius:0;padding:0}
.scope li:first-child{border-top:0}
.scope li label{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;cursor:pointer;font-size:13px}
.scope li label input{margin-top:3px}
.scope li small{display:block;color:var(--muted);font-size:11px}
.scope li.on{background:var(--accent-soft)}
.scope li.adv{border-top:1px dashed var(--line)}
#swDlg .eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:600}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width:820px){.two{grid-template-columns:1fr}}
@media (max-width:760px){.teegrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* swap dialog */
.picks{display:flex;gap:8px;flex-wrap:wrap}
.picks .pick{width:72px;height:72px;border-radius:8px;border:1px solid var(--line);background:var(--panel-2) center/contain no-repeat;padding:0;font-size:12px;color:var(--muted)}
.picks .pick.upload{border-style:dashed}
.picks .pick.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
#swQuick{flex-wrap:wrap}
#swQuick .pair{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
#swQuick label{display:flex;gap:6px;align-items:center;text-transform:none;letter-spacing:0;font-weight:500}
#swColors li{display:flex;justify-content:space-between;align-items:center}
#swColors label{display:flex;gap:8px;align-items:center;cursor:pointer}
#swColors .sw{width:14px;height:14px;border:1px solid rgba(0,0,0,.2);box-shadow:none;margin:0;cursor:default}

/* import step 4: review */
#rvRows tr.bad td,#runRows tr.bad td{background:var(--bad-bg)}
#runRows td .mono{white-space:nowrap}
.tabs{display:flex;gap:4px;margin:0 0 14px;border-bottom:1px solid var(--line)}
.tabs .tab{border:0;background:none;border-radius:0;padding:8px 14px;margin-bottom:-1px;border-bottom:2px solid transparent;color:var(--muted);font-weight:600;cursor:pointer}
.tabs .tab.on{color:var(--ink);border-bottom-color:var(--accent)}
.tabs .tab:hover{color:var(--ink);border-color:transparent;border-bottom-color:var(--line)}
.tabs .tab.on:hover{border-bottom-color:var(--accent)}
.steps{display:flex;gap:4px;flex-wrap:wrap}
.steps .st{font-size:11px;padding:2px 8px;border-radius:5px;border:1px solid var(--line-2);color:var(--muted);background:var(--panel)}
.steps .st.done{background:var(--ok-bg);color:var(--ok);border-color:transparent}
.steps .st.now{background:var(--ink);color:var(--bg);border-color:transparent}
.steps .st.fail{background:var(--bad-bg);color:var(--bad);border-color:transparent}
.steps .st.skip{opacity:.4;text-decoration:line-through}
.rv-title strong{font-size:14px}
.strip{display:flex;gap:10px;overflow-x:auto;padding:4px 0;min-height:40px;align-items:center}
.strip .shot{flex:0 0 130px;border:1px solid var(--line-2);border-radius:8px;overflow:hidden;background:var(--panel-2)}
.strip .shot img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.strip .shot span{display:block;font-size:11px;text-align:center;padding:4px}
#poDlg .pbox h3 label,#eaDlg .pbox h3 label{font-weight:400;font-size:12px}
#poBody .pair,#rvSelInfo{display:inline-flex;gap:8px;align-items:center}

/* below 980px the rail folds back into a top bar: the shell collapses, the type does not */
@media (max-width:980px){
  .app{grid-template-columns:1fr}
  .side{position:sticky;height:auto;flex-direction:row;align-items:center;gap:10px;border-right:0;border-bottom:1px solid var(--line);padding-right:14px;flex-wrap:wrap}
  .side .brand{border-bottom:0;height:52px}
  .side .store{border-bottom:0;padding:0;order:3;margin-left:auto}
  .side .store label{display:none}
  .side .store select{width:auto;max-width:220px}
  .side nav{flex-direction:row;gap:4px;padding:0;flex-wrap:wrap;min-width:0}
  .page{white-space:nowrap;width:auto}
  .page em{display:none}
  .nav{left:0}
  main{padding:20px 18px 96px}
}

/* History: one card per run, its status on the left edge; design thumbnails
   overlap into a strip; the kind tabs are a pill group. Class names carry
   an h- prefix: the wizards already use .bar, .tabs, .list, .run and .strip. */
.h-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.h-head h1{margin:0;font-size:24px}
.h-head .sub{margin:2px 0 0;color:var(--muted)}
.hist .tiles > .tile{min-width:150px}
.hist .tile .v{font-size:24px}
.hist .tile .v.ok{color:var(--ok)}
.hist .tile .v.warn{color:var(--warn)}
.hist .tile .v.mut{color:var(--muted)}
.hist .tile .s{font-size:12px;color:var(--muted);margin-top:2px}
.h-filters{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.h-filters select{border-radius:999px;padding:6px 12px}
.h-tabs{display:inline-flex;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:3px}
.h-tabs button{border:0;background:none;padding:5px 13px;border-radius:999px;color:var(--muted);font-weight:500;cursor:pointer;box-shadow:none}
.h-tabs button.on{background:var(--ink);color:var(--panel);font-weight:600}
.h-tabs button .h-n{font-family:var(--mono);font-size:11px;margin-left:6px;opacity:.7}
.h-list{display:grid;gap:10px}
.h-run{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;background:var(--panel);border:1px solid var(--line);border-left-width:4px;border-radius:var(--radius);padding:12px 16px 12px 14px;box-shadow:var(--shadow)}
.h-run.done{border-left-color:var(--ok)}
.h-run.partial{border-left-color:var(--warn)}
.h-run.failed{border-left-color:var(--bad)}
.h-run.cancelled{border-left-color:var(--line)}
.h-run.running{border-left-color:var(--accent)}
.h-strip{display:flex;padding-right:14px}
.h-th{width:56px;height:56px;border-radius:10px;border:2px solid var(--panel);background:var(--panel-2) center/cover no-repeat;margin-right:-14px;display:grid;place-items:center;font-family:var(--display);font-weight:700;color:var(--muted);font-size:16px;box-shadow:0 0 0 1px var(--line-2);flex:none}
.h-th.more{background:var(--ink);color:var(--panel);font-family:var(--mono);font-size:12px;font-weight:500}
.h-body{min-width:0}
.h-title{display:flex;align-items:center;gap:8px;font-weight:600;flex-wrap:wrap}
.h-title .h-id{font-family:var(--mono);font-size:11px;color:var(--muted);font-weight:400}
.h-meta{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:13px;margin-top:2px}
.h-meta b{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
.h-err{color:var(--bad)}
.h-right{display:flex;align-items:center;gap:8px}
.h-kind{font-size:12px;font-weight:500;padding:2px 9px;border-radius:999px;border:1px solid var(--line);color:var(--muted);white-space:nowrap}
.h-run[role="button"]{cursor:pointer}
.h-run[role="button"]:hover{border-color:var(--line);background:var(--panel-2)}
.h-run[role="button"]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.h-x{width:22px;height:22px;display:grid;place-items:center;color:var(--muted);font-size:18px}
/* the detail dialog */
#hdDlg > .head{align-items:flex-start;gap:12px}
#hdDlg > .head h2{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:18px}
#hdDlg .tiles{margin-bottom:14px}
#hdDlg .tile .v.ok{color:var(--ok)}#hdDlg .tile .v.bad{color:var(--bad)}#hdDlg .tile .v.mut{color:var(--muted)}
.h-acts{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.h-item{display:grid;grid-template-columns:56px 1fr auto;gap:14px;align-items:center;border:1px solid var(--line-2);border-radius:10px;padding:10px 12px;margin-bottom:8px}
.h-item .t{font-weight:600}
.h-item .m{color:var(--muted);font-size:13px;display:flex;gap:12px;flex-wrap:wrap}
.h-item .m b{color:var(--ink);font-weight:500}
.h-item .r{display:flex;gap:8px;align-items:center}
.h-item .h-th,.h-sec .h-th{margin:0;border:1px solid var(--line-2);box-shadow:none}
.h-th.zoom{cursor:zoom-in}
.h-th.zoom:focus-visible{outline:2px solid var(--accent)}
.h-mark{text-align:center;padding:4px 0 16px}
.h-mark .ic{width:52px;height:52px;border-radius:50%;border:3px solid currentColor;display:grid;place-items:center;margin:0 auto 10px;font-size:26px}
.h-mark.ok{color:var(--ok)}.h-mark.warn{color:var(--warn)}.h-mark.bad{color:var(--bad)}
.h-mark h3{font-size:19px;margin:0;color:var(--ink)}
.h-mark p{margin:2px 0 0;color:var(--muted)}
.h-sec{border:1px solid var(--line-2);border-radius:10px;padding:12px;margin-bottom:10px}
.h-sec .head{display:flex;justify-content:flex-start;align-items:center;gap:12px;margin-bottom:10px;padding:0;border:0}
.h-sec .head .h-th{width:40px;height:40px;font-size:13px}
.h-sec .t{font-weight:600}
.h-cells{display:flex;flex-wrap:wrap;gap:6px}
.h-cell{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;padding:3px 10px 3px 5px;font-size:12px;background:var(--panel)}
.h-cell .sw{width:16px;height:16px;border:1px solid rgba(0,0,0,.2);box-shadow:none;margin:0;cursor:default}
.h-cell.failed{border-color:var(--bad);color:var(--bad)}
.h-cell.skipped{opacity:.55;text-decoration:line-through}
.h-cell.swapped{border-color:var(--warn)}
.h-cell .tag{font-family:var(--mono);font-size:10px;color:var(--muted);text-decoration:none;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.banner.info{background:var(--panel-2);border-color:var(--line-2)}
.banner.info::before{background:var(--line)}
/* the lightbox: a second modal over the detail */
dialog.h-lb{max-width:min(1100px,96vw);background:transparent;border:0;box-shadow:none;overflow:visible}
dialog.h-lb::backdrop{background:rgba(10,14,12,.92)}
dialog.h-lb[open]{display:grid;grid-template-columns:1fr 320px;gap:20px;align-items:center;padding:8px}
.h-lb-img{background:center/contain no-repeat;border-radius:10px;height:min(72vh,640px);min-width:0}
.h-lb-info{background:var(--panel);border-radius:12px;padding:18px;color:var(--ink)}
.h-lb-info h3{font-size:17px;margin:0 0 10px}
.h-lb-name{font-size:12px;background:var(--panel-2);padding:6px 10px;border-radius:6px;margin-bottom:12px;word-break:break-all}
.h-lb-info dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0 0 14px;font-size:13px}
.h-lb-info dt{color:var(--muted)}.h-lb-info dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.h-lb-dl{display:block;text-align:center;text-decoration:none;background:var(--accent);color:var(--accent-ink);border-radius:8px;padding:8px 12px;font-weight:600}
.h-lb-nav{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.h-lb-close{position:absolute;top:-4px;right:-4px;width:34px;height:34px;border-radius:50%;background:var(--panel);border:1px solid var(--line);color:var(--ink);cursor:pointer;box-shadow:none;padding:0}
@media (max-width:820px){.h-item{grid-template-columns:48px 1fr}.h-item .r{grid-column:2}dialog.h-lb[open]{grid-template-columns:1fr}.h-lb-img{height:48vh}}
.badge.acc{background:var(--accent-soft);color:var(--accent)}
.badge.acc::before{animation:pulse 1.2s infinite} /* keyframes: see .dot.run */
@media (prefers-reduced-motion:reduce){.badge.acc::before{animation:none}}
@media (max-width:820px){.h-run{grid-template-columns:1fr;gap:10px}.h-right{justify-content:flex-start}}

/* The Account page: roles and placement edited inline, and an owner's team. */
.badge.owner{background:var(--accent-soft);color:var(--accent)}
.badge.owner::before{display:none}
select.small{font-size:12.5px;padding:4px 8px;height:28px}
.saved{color:var(--ok);font-size:12px;font-weight:500;margin-left:6px}
.team-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 2px;border-bottom:1px solid var(--line-2)}
.team-row:last-child{border-bottom:0}
.team-empty{border:1px dashed var(--line);border-radius:var(--radius);padding:22px 20px;text-align:center;background:var(--panel-2);color:var(--muted);line-height:1.6}

/* Sweep progress in the Import-from-Printify dialog. The shop's list arrives
   in one request that answers only when every page is in, so the status line
   carries a bar: determinate once Printify has said how many pages there are,
   indeterminate while that first page is out or during a single-product read. */
#pkStatus:has(.sweepbar){display:inline-flex;align-items:center;gap:8px;flex:1;min-width:0}
#pkStatus .sweepbar{display:inline-block;width:120px;height:6px;border-radius:999px;background:var(--line-2);overflow:hidden;flex:none}
#pkStatus .sweepbar > i{display:block;height:100%;border-radius:999px;background:var(--accent);width:0;transition:width .25s ease}
#pkStatus .sweepbar.indet > i{width:40%;animation:sweepslide 1.1s ease-in-out infinite}
@keyframes sweepslide{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
@media (prefers-reduced-motion:reduce){
  #pkStatus .sweepbar.indet > i{animation:none;width:100%;opacity:.45}
  #pkStatus .sweepbar > i{transition:none}
}

/* pack manager: featured colours */
.frow{margin-top:16px}
.frow .lbl{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}
.frow .chips{margin:8px 0 6px}
.frow .chip.pref{border-color:var(--accent);background:var(--accent-soft)}
.frow .chip .n{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:11px;font-weight:700;font-family:var(--mono);flex:none}
.frow .chip .sw{width:18px;height:18px;border-radius:5px}
.frow .hint{font-size:12px;color:var(--muted);margin:0}
