/* Jane design system: friendly, bold and calm.
   Jane's own colour is the violet of the logo (every main button, the active page, notifications).
   Each business keeps its own colour for its stripe, dot and labels: Seller Central rose, Embroidery teal,
   Cross Stitches Vault orange. Red is kept for real problems only. Layout: left menu with one dropdown per
   business, work area on the right; the menu folds behind a Menu button under 860px. */
:root{
  --bg:#f4f5fb; --surface:#ffffff; --surface-2:#f7f7fc; --line:#e6e8f1; --line-2:#d9dcea; --fg:#171a2c; --muted:#676c85;
  --brand:#6b3fd4; --brand-2:#8a5cf0; --brand-soft:#efe9fe; --on-brand:#ffffff;
  --accent:#e2456d; --accent-soft:#fde8ee; --on-accent:#ffffff;
  --etsy:#0e9f8a; --etsy-soft:#dcf5ef; --xs:#ec7a12; --xs-soft:#fff0df; --gh:#c2537a; --gh-soft:#fbe7ef;
  --ok:#15985a; --ok-soft:#e1f6ea; --warn:#b86e00; --warn-soft:#fff2d6; --bad:#dc3545; --bad-soft:#fde8ea; --info:#3566e0; --info-soft:#e7eefd;
  --scrim:rgba(18,16,40,.45);
  --danger-solid:#dc3545; --on-danger:#ffffff;
  --shadow:0 1px 2px rgba(23,26,44,.04),0 6px 20px rgba(23,26,44,.05);
  --shadow-lg:0 12px 36px rgba(23,26,44,.14);
  --f-display:"Plus Jakarta Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-body:"Plus Jakarta Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --r:16px; --r-sm:11px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root{
  --bg:#0f1019; --surface:#181a27; --surface-2:#1f2233; --line:#2b2f44; --line-2:#363b54; --fg:#eceef8; --muted:#a3a8c2;
  --brand:#a98bfa; --brand-2:#c3abff; --brand-soft:#2a2347; --on-brand:#160d2e;
  --accent:#ff7a98; --accent-soft:#3a1824; --on-accent:#2a0712;
  --etsy:#3fd6bd; --etsy-soft:#11302b; --xs:#ffab5c; --xs-soft:#3a2713; --gh:#f08bb0; --gh-soft:#3a1a27;
  --ok:#4fd88f; --ok-soft:#12301f; --warn:#f5b84a; --warn-soft:#3a2c0f; --bad:#ff7a7a; --bad-soft:#3d1718; --info:#86a8ff; --info-soft:#18233f;
  --scrim:rgba(0,0,0,.6); --shadow:0 1px 2px rgba(0,0,0,.3); --shadow-lg:0 14px 40px rgba(0,0,0,.5); color-scheme:dark}}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--fg);font:500 14.5px/1.55 var(--f-body);-webkit-font-smoothing:antialiased;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
a{color:var(--brand);font-weight:600;text-underline-offset:2px}
h1,h2,h3{font-family:var(--f-display);text-wrap:balance;margin:0;letter-spacing:-.015em}
h1{font-size:26px;font-weight:800}
h2{font-size:17px;font-weight:800}
h3{font-size:14.5px;font-weight:700}
p{margin:0}
b,strong{font-weight:700}
[hidden]{display:none!important}
.booting{padding:40px;color:var(--muted)}
.muted{color:var(--muted)}
.sm{font-size:12.5px}
.mono{font-family:var(--f-mono);font-size:12.5px}
.app{display:grid;grid-template-columns:268px minmax(0,1fr);min-height:100%}

/* sidebar */
.side{background:var(--surface);border-right:1px solid var(--line);padding:20px 14px 24px;display:flex;flex-direction:column;gap:14px;position:sticky;top:0;height:100vh;overflow:auto}
.brand{display:flex;align-items:center;gap:11px;padding:2px 6px 6px}
.mark{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none}
.brand b{font:800 19px var(--f-display);letter-spacing:-.02em}
.brand small{display:block;color:var(--muted);font-size:12px;line-height:1.25;font-weight:500}
.navwrap{display:flex;flex-direction:column;gap:10px}
.nav{display:flex;flex-direction:column;gap:2px}
.nav button,.grp summary{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;border-radius:10px;color:var(--muted);cursor:pointer;font-weight:600;font-size:14px}
.nav button:hover{background:var(--surface-2);color:var(--fg)}
.nav button:focus-visible,.grp summary:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.nav button.on{background:var(--brand-soft);color:var(--brand);font-weight:700}
.grp.cl .nav button.on{background:var(--accent-soft);color:var(--accent)}
.grp.et .nav button.on{background:var(--etsy-soft);color:var(--etsy)}
.nav .cnt{margin-left:auto;font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums;background:var(--brand);color:var(--on-brand);border-radius:999px;padding:1px 8px;min-width:22px;text-align:center}
.grp,.navfoot{border-top:1px solid var(--line);padding-top:10px}
.grp summary{color:var(--fg);font-family:var(--f-display);font-weight:800;font-size:15px;padding:9px 10px}
.grp summary::-webkit-details-marker{display:none}
.grp summary .sw{width:12px;height:12px;border-radius:4px;background:var(--accent);flex:none}
.grp.et summary .sw{background:var(--etsy)}
.grp summary .car{margin-left:auto;transition:transform .15s;color:var(--muted);font-size:16px}
.grp[open] summary .car{transform:rotate(90deg)}
.grp summary small{display:block;font:500 11.5px var(--f-body);color:var(--muted)}
.grp .nav{padding:4px 0 2px 12px}
.side .foot{margin-top:auto;font-size:11.5px;color:var(--muted);padding:0 6px}

/* top */
.top{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line);padding:16px 32px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.top .where{display:flex;flex-direction:column;min-width:0;flex:1 1 200px}
.top .crumb{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.asbox{display:flex;align-items:center;gap:8px}
.asbox label{font-size:12px;color:var(--muted);flex-direction:row;align-items:center}
.asbox select{width:auto;max-width:220px}
.who-chip{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
.upd{font-size:12.5px;border-radius:999px;padding:6px 14px;background:var(--brand);color:var(--on-brand);border:0;cursor:pointer;font-weight:700;box-shadow:var(--shadow)}
.only-m{display:none}
.content{padding-block:26px 72px;padding-inline:32px;max-width:none;display:flex;flex-direction:column;gap:20px}
.preview-bar{background:var(--warn-soft);color:var(--fg);border-bottom:1px solid var(--line);padding:10px 32px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13.5px;font-weight:600}

/* blocks */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;min-width:0;box-shadow:var(--shadow)}
.ch{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.cf{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}
.split{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px}
@media (max-width:1000px){.split{grid-template-columns:minmax(0,1fr)}}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:14px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:3px;box-shadow:var(--shadow);min-width:0}
.tile .l{font-size:11.5px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.tile .v{font:800 30px/1.15 var(--f-display);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.tile .s{font-size:12.5px;color:var(--muted);font-weight:500}
.tile.warn{background:var(--warn-soft);border-color:transparent} .tile.warn .v{color:var(--warn)}
.tile.bad{background:var(--bad-soft);border-color:transparent} .tile.bad .v{color:var(--bad)}
.tile.ok .v{color:var(--ok)}
.lede{color:var(--muted);max-width:68ch;font-weight:500}
.note{font-size:13px;color:var(--muted);max-width:75ch;font-weight:500}
.banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--warn-soft);border:0;padding:12px 16px;border-radius:var(--r-sm);font-weight:600}
.banner p{flex:1 1 280px}
.empty{color:var(--muted);padding:16px 0;font-size:13.5px;font-weight:500}
.viewonly{font-size:13px;color:var(--muted);background:var(--surface-2);border-radius:var(--r-sm);padding:10px 14px;font-weight:500}
/* "How it works" notes: one click away instead of always on screen */
details.help{font-size:13px;color:var(--muted)}
details.help>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--brand);font-size:12.5px;padding:3px 10px 3px 6px;border-radius:999px;background:var(--brand-soft)}
details.help>summary::before{content:"i";display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--brand);color:var(--on-brand);font:800 11px/1 var(--f-display)}
details.help>summary::-webkit-details-marker{display:none}
details.help[open]>summary{margin-bottom:8px}
details.help p{max-width:75ch;font-weight:500}

/* home business cards */
.bizgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.bizcard{all:unset;box-sizing:border-box;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px 24px;display:flex;flex-direction:column;gap:4px;border-top:6px solid var(--accent);box-shadow:var(--shadow);transition:transform .12s,box-shadow .12s}
.bizcard.et{border-top-color:var(--etsy)}
.bizcard:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.bizcard:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.bizcard .bn{font:800 22px var(--f-display);letter-spacing:-.02em}
.bizcard .bs{color:var(--muted);font-size:13px}
.bstats{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;font-size:13px;color:var(--muted)}
.bstats b{color:var(--fg);font-variant-numeric:tabular-nums}
.checklist{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.checklist div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
/* Owner and partner home: a greeting, what needs attention, then each business at a glance */
.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.hero h2{font-size:24px;font-weight:800}
.hero p{color:var(--muted);font-weight:500;margin-top:2px}
.attn .alert{padding:11px 0}
.attn .alert .pill{margin-left:6px}
.bizrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px}
.bizrow .tiles,.bizsum .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bizrow .tile,.bizsum .tile{box-shadow:none;background:var(--surface-2);border-color:transparent;padding:12px 14px}
.bizrow .tile .v,.bizsum .tile .v{font-size:24px}
.bizrow .tile.warn,.bizsum .tile.warn{background:var(--warn-soft)} .bizrow .tile.bad,.bizsum .tile.bad{background:var(--bad-soft)}

/* table */
.tw{overflow-x:auto;margin-inline:-4px}
table{width:100%;border-collapse:collapse;font-size:13.5px}
th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:left;font-weight:800;padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface-2)}
th:first-child{border-top-left-radius:10px} th:last-child{border-top-right-radius:10px}
td{padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:top}
tbody tr:hover td{background:color-mix(in srgb,var(--brand-soft) 35%,transparent)}
tr:last-child td{border-bottom:0}
.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td.num b{font-weight:800}
td.zero{color:var(--muted);opacity:.45}
tfoot td{font-weight:800;border-top:2px solid var(--line)}
td input{max-width:90px}

/* pills */
.pill{display:inline-flex;align-items:center;gap:5px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;background:var(--surface-2);color:var(--muted);white-space:nowrap;border:1px solid var(--line)}
.pill.ok{background:var(--ok-soft);color:var(--ok);border-color:transparent}
.pill.warn{background:var(--warn-soft);color:var(--warn);border-color:transparent}
.pill.bad{background:var(--bad-soft);color:var(--bad);border-color:transparent}
.pill.info{background:var(--info-soft);color:var(--info);border-color:transparent}
.pill.cl{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.pill.et{background:var(--etsy-soft);color:var(--etsy);border-color:transparent}

/* controls */
.btn{font:700 13.5px var(--f-body);padding:8px 15px;border-radius:var(--r-sm);border:1px solid var(--line-2);background:var(--surface);color:var(--fg);cursor:pointer;white-space:nowrap;transition:background .12s,box-shadow .12s,transform .06s}
.btn:hover{background:var(--surface-2)}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.btn:disabled{opacity:.5;cursor:default;transform:none}
.btn.pri,.btn.pri.et,.btn.pri.xs{background:linear-gradient(180deg,var(--brand-2),var(--brand));border-color:transparent;color:var(--on-brand);box-shadow:0 2px 8px color-mix(in srgb,var(--brand) 35%,transparent)}
.btn.pri:hover{filter:brightness(1.06)}
.btn.sm{padding:5px 11px;font-size:12.5px;border-radius:9px}
/* "Click again to confirm" and delete buttons: always readable, in light and dark mode */
.btn.danger{background:var(--surface);color:var(--bad);border-color:var(--bad)}
.btn.danger:hover{background:var(--bad-soft)}
.itemacts{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
.itemacts .btn{padding:4px 12px}
.btn.pri.danger,.btn.pri.et.danger,.btn.pri.xs.danger{background:var(--danger-solid);border-color:var(--danger-solid);color:var(--on-danger);box-shadow:none}
.btn.link{border:0;background:none;padding:0;font-weight:700;white-space:normal;text-align:left;color:var(--brand);box-shadow:none}
input,select,textarea{font:inherit;font-size:14px;font-weight:500;padding:9px 12px;border:1px solid var(--line-2);border-radius:var(--r-sm);background:var(--surface);color:var(--fg);width:100%;min-width:0;transition:border-color .12s,box-shadow .12s}
input:hover,select:hover,textarea:hover{border-color:color-mix(in srgb,var(--brand) 35%,var(--line-2))}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}
textarea{min-height:80px;resize:vertical}
label{display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:var(--muted);font-weight:700;min-width:0}
.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:12px;align-items:end}
.form .wide{grid-column:1/-1}
.form .span2{grid-column:span 2}
@media (max-width:520px){.form .span2{grid-column:1/-1}}
.ferr{color:var(--bad);font-size:13px;grid-column:1/-1;font-weight:700}
details.add>summary{list-style:none;cursor:pointer;display:inline-flex}
details.add>summary::-webkit-details-marker{display:none}
details.add[open]>summary{margin-bottom:14px}
.preview{grid-column:1/-1;font-size:12.5px;color:var(--muted);background:var(--surface-2);border-radius:var(--r-sm);padding:9px 12px}
.checks{display:flex;flex-wrap:wrap;gap:6px 14px}
.checks label,.inline{flex-direction:row;align-items:center;gap:7px;color:var(--fg);font-weight:600;font-size:13.5px}
.checks input,.inline input{width:auto;accent-color:var(--brand)}
/* People pickers: big chips with a coloured initial; ticked ones turn violet with a check */
.checks.people{gap:8px;margin-top:6px}
.checks .pchip{position:relative;display:inline-flex;align-items:center;gap:9px;padding:6px 14px 6px 6px;border:1.5px solid var(--line-2);border-radius:999px;background:var(--surface);cursor:pointer;font-size:15px;font-weight:700;color:var(--fg);transition:border-color .12s,background .12s,transform .1s;user-select:none}
.checks .pchip:hover{border-color:var(--brand);transform:translateY(-1px)}
.checks .pchip input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.pchip .av{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:#fff;font:800 14px/1 var(--f-display);flex:none}
.pchip .pn small{font-weight:600;color:var(--muted);font-size:12.5px}
.pchip .tick{display:none;width:18px;height:18px;border-radius:50%;background:var(--brand);position:relative;flex:none}
.pchip .tick::after{content:"";position:absolute;left:6px;top:3px;width:4px;height:8px;border:solid var(--on-brand);border-width:0 2px 2px 0;transform:rotate(45deg)}
.pchip:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
.pchip:has(input:checked) .tick{display:block}
.pchip:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.pwrow{display:flex;gap:6px}

/* tasks */
.task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 14px;align-items:start;padding:14px 0;border-bottom:1px solid var(--line)}
.task:last-child{border-bottom:0}
.chk{all:unset;box-sizing:border-box;width:20px;height:20px;border-radius:6px;border:1.5px solid var(--muted);display:grid;place-items:center;cursor:pointer;margin-top:1px;font-size:13px;color:#fff}
.chk:disabled{opacity:.4;cursor:default}
.chk:focus-visible{outline:2px solid var(--info);outline-offset:2px}
/* Task status dropdown: coloured like the status pills, always readable */
.tstat{width:auto;font-size:12.5px;font-weight:800;padding:5px 26px 5px 12px;border-radius:999px;cursor:pointer}
.tstat.open{background:var(--warn-soft);color:var(--warn);border-color:transparent}
.tstat.doing{background:var(--info-soft);color:var(--info);border-color:transparent}
.tstat.done{background:var(--ok-soft);color:var(--ok);border-color:transparent}
.tstat.review{background:var(--brand-soft);color:var(--brand);border-color:transparent}
.tstat option{background:var(--surface);color:var(--fg)}
/* Task feedback: chat bubbles and the last message under a task */
.chat{display:flex;flex-direction:column;gap:8px;max-height:46vh;overflow:auto;padding:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px}
.msg{max-width:88%;align-self:flex-start;background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:10px;padding:7px 10px}
.msg.me{align-self:flex-end;background:var(--brand-soft);border-color:transparent}
.msg.back{border-color:var(--bad)}
.msg .who{font-size:11.5px;color:var(--muted);margin-bottom:2px}
.msg .txt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13.5px}
.tnote{font-size:12.5px;color:var(--fg);background:var(--surface-2);border-radius:6px;padding:5px 8px;margin-top:6px}
.tnote.back{background:var(--bad-soft)}
.task.done .ttl{color:var(--fg)}
.ttl{font-weight:700;font-size:14.5px;line-height:1.35}
.meta{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;font-size:12.5px;color:var(--muted);margin-top:5px;font-weight:500}
.tdet{font-size:12.5px;color:var(--muted);margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}
.tact{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
/* Edit and Delete sit behind a small "more" menu so each task stays one tidy card */
details.more{position:relative}
details.more>summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:32px;height:30px;border-radius:9px;border:1px solid var(--line-2);background:var(--surface);color:var(--muted);font-weight:800;letter-spacing:1px}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary:hover{background:var(--surface-2);color:var(--fg)}
details.more[open]>summary{background:var(--brand-soft);color:var(--brand);border-color:transparent}
details.more .menu{position:absolute;right:0;top:calc(100% + 6px);z-index:20;min-width:150px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);padding:6px;display:flex;flex-direction:column;gap:2px}
details.more .menu .btn{border:0;background:none;text-align:left;box-shadow:none;width:100%}
details.more .menu .btn:hover{background:var(--surface-2)}
details.more .menu .btn.danger,details.more .menu .btn[data-act="delTask"],details.more .menu .btn[data-act="del"]{color:var(--bad)}
.late{color:var(--bad);font-weight:700}
.alert{all:unset;box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:10px 6px;border-bottom:1px solid var(--line);cursor:pointer;font-weight:600;border-radius:8px}
.alert:hover{background:var(--surface-2)}
.alert>span:last-child::after{content:"›";color:var(--muted);font-size:18px;line-height:1}
.alert:last-child{border-bottom:0}
.alert:focus-visible{outline:2px solid var(--brand)}
.alert .dot{width:10px;height:10px;border-radius:50%;background:var(--muted);box-shadow:0 0 0 4px color-mix(in srgb,currentColor 0%,transparent)}
.alert.bad .dot{background:var(--bad)} .alert.warn .dot{background:var(--warn)} .alert.info .dot{background:var(--info)} .alert.et .dot{background:var(--etsy)}
.src{display:flex;flex-direction:column;gap:6px}
.src div{display:flex;justify-content:space-between;gap:10px;font-size:13px}

/* chart */
.bars{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:5px;align-items:end;height:140px;padding-top:18px;border-bottom:1px solid var(--line);background-image:linear-gradient(var(--line) 1px,transparent 1px);background-size:100% 25%}
.bar{position:relative;background:var(--brand);border-radius:5px 5px 0 0;min-height:2px;opacity:.75}
.bar.today{opacity:1}
.bar span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:11px;font-variant-numeric:tabular-nums;color:var(--fg);padding-bottom:2px}
.days{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:5px;font-size:10.5px;color:var(--muted);text-align:center;margin-top:4px;font-variant-numeric:tabular-nums}
.hbar{height:8px;border-radius:4px;background:var(--etsy);opacity:.75}

/* pipeline + stepper */
.pipe{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px}
.col{background:var(--surface-2);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0}
.col h3{font-size:13px;font-weight:800;display:flex;justify-content:space-between}
.col .who{font-size:11.5px;color:var(--muted)}
.ship-chip{all:unset;box-sizing:border-box;display:block;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:12.5px;cursor:pointer;overflow-wrap:anywhere;box-shadow:var(--shadow)}
.ship-chip:hover{border-color:var(--brand)}
.steps{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.step{flex:1 1 90px;font-size:12px;font-weight:600;padding:7px 2px 0;border-top:4px solid var(--line);color:var(--muted);border-radius:2px}
.step.done{border-color:var(--ok);color:var(--fg)}
.step.now{border-color:var(--info);color:var(--info);font-weight:800}
.ship{border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;background:var(--surface);box-shadow:var(--shadow)}
.draftrow{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 0;border-top:1px dashed var(--line)}
.draftrow:first-of-type{border-top:0}
.draftrow .pill{margin-left:8px}
.draftedit{padding:4px 0 16px;border-top:1px dashed var(--line)}
.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:6px 18px;font-size:13px}
.kv div{min-width:0;overflow-wrap:anywhere}
.kv span{color:var(--muted);font-size:11.5px;display:block;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.step-form{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}

/* copy blocks */
.cp{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;padding:7px 0;border-bottom:1px solid var(--line)}
.cp:last-child{border-bottom:0}
.cp .k{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}
.cp .t{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.lgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.skus{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.mx td,.mx th{text-align:left}
.mx select{max-width:150px}

/* drawer / toast */
.scrim{position:fixed;inset:0;background:var(--scrim);z-index:29}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(580px,100%);background:var(--surface);border-left:1px solid var(--line);z-index:30;overflow:auto;padding:calc(22px + env(safe-area-inset-top,0px)) 24px calc(28px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:16px;box-shadow:var(--shadow-lg);border-radius:20px 0 0 20px}
@media (max-width:620px){.drawer{border-radius:0}}
.drawer .dh{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.drawer .dh h2{font-size:19px}
.toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:11px 18px;border-radius:999px;z-index:40;max-width:calc(100% - 32px);font-size:13.5px;font-weight:700;box-shadow:var(--shadow-lg)}

/* sign in */
.auth{min-height:100vh;display:grid;place-items:center;padding:24px 16px;background:radial-gradient(1200px 600px at 15% -10%,var(--brand-soft),transparent 60%),radial-gradient(900px 500px at 110% 110%,color-mix(in srgb,var(--etsy-soft) 70%,transparent),transparent 60%),var(--bg)}
.authcard{width:min(420px,100%);background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:30px 28px;display:flex;flex-direction:column;gap:16px;box-shadow:var(--shadow-lg)}
.authcard .btn.pri{padding:11px 16px;font-size:14.5px}
.authcard .brand{padding:0}

@media (max-width:860px){
  .app{grid-template-columns:minmax(0,1fr)}
  .side{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:12px 16px}
  .side .navwrap,.side .foot{display:none}
  .side.open .navwrap,.side.open .foot{display:flex}
  .only-m{display:inline-flex}
  .brand{justify-content:space-between}
  .top{padding:12px 16px;position:static;backdrop-filter:none}
  .top .crumb{display:none}
  h1{font-size:22px}
  .asbox label{display:none}
  .asbox select{max-width:150px;padding:6px 10px;font-size:13px}
  /* tasks on a phone: status and title on top, the buttons in one row underneath */
  .task{grid-template-columns:minmax(0,1fr);gap:8px}
  .task>div:first-child{order:0}
  .tact{justify-content:flex-start}
  .card{padding:16px}
  .bizrow .tiles,.bizsum .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .preview-bar{padding:10px 16px}
  .content{padding-inline:16px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* Monthly statement */
table.stmt td{padding:6px 10px}
table.stmt tr.grp td{font-weight:600;color:var(--muted);text-transform:uppercase;font-size:12px;letter-spacing:.04em;padding-top:14px}
table.stmt tr.tot td{border-top:1px solid var(--line)}
table.stmt tr.big td{border-top:2px solid var(--fg);font-size:16px}
tr.sel td{background:var(--brand-soft)}

/* Embroidery batch progress */
.pbar{height:10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);overflow:hidden;margin:8px 0}
.pbar span{display:block;height:100%;background:linear-gradient(90deg,var(--etsy),color-mix(in srgb,var(--etsy) 70%,#fff))}
/* Task "Open": the item itself in the drawer, and a short highlight on a batch */
.openrec .cp{grid-template-columns:minmax(0,1fr);border:0;padding:0}
.openrec .cp>div:last-child{flex-direction:row!important;margin-top:10px}
.ship.flash,.card.flash{animation:flash 1.6s ease-out}
@keyframes flash{0%{box-shadow:0 0 0 4px var(--brand)}100%{box-shadow:0 0 0 0 transparent}}
/* Files on fixes, customer issues and custom orders */
.fpair{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;margin-top:10px}
.fpanel{border:1px solid var(--line);border-radius:14px;padding:10px 12px 12px;background:var(--surface-2);min-width:0}
.fpanel.ask{border-color:color-mix(in srgb,var(--warn) 45%,var(--line));background:color-mix(in srgb,var(--warn) 7%,var(--surface))}
.fpanel.fix{border-color:color-mix(in srgb,var(--ok) 45%,var(--line));background:color-mix(in srgb,var(--ok) 7%,var(--surface))}
.fph{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-bottom:8px;font-size:13.5px}
.fpn{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font:800 11.5px/1 var(--f-display);color:var(--surface);background:var(--warn)}
.fpanel.fix .fpn{background:var(--ok)}
.fnote{margin:10px 0 0;padding:8px 10px;border-radius:9px;background:var(--surface);font-size:13px;font-weight:600}
.fnote::before{content:"Note: ";color:var(--muted);font-weight:700}
.fwait{margin:0;padding:14px;border:2px dashed color-mix(in srgb,var(--ok) 35%,var(--line-2));border-radius:10px;text-align:center;color:var(--muted);font-size:13px}
.frow{display:flex;flex-wrap:wrap;gap:10px}
.fitem{position:relative;width:150px;display:flex;flex-direction:column;gap:4px}
.thumb{all:unset;box-sizing:border-box;cursor:zoom-in;display:block;width:150px;height:112px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface);transition:transform .12s,box-shadow .12s}
.thumb:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.fdoc{cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:var(--fg)}
.fext{display:grid;place-items:center;min-width:58px;height:40px;padding:0 8px;border-radius:9px;background:var(--brand);color:var(--on-brand);font:800 15px/1 var(--f-display);letter-spacing:.04em}
.fdl{font-size:12px;font-weight:700;color:var(--brand)}
.fcap{display:flex;flex-direction:column;min-width:0;font-size:12px;line-height:1.3}
.fcap b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.fcap small{color:var(--muted)}
.fx{position:absolute;top:-7px;right:-7px;width:22px;height:22px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--muted);cursor:pointer;font-size:14px;line-height:1;padding:0}
.fx:hover{color:var(--bad,#b42318)}
/* File upload: a friendly drop zone (click, drag files onto it, or paste a screenshot) and the chosen files as chips */
.filefield{display:flex;flex-direction:column;gap:6px;min-width:0}
.ff-label{font-size:12.5px;color:var(--muted);font-weight:700}
.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;padding:18px 16px;border:2px dashed color-mix(in srgb,var(--brand) 35%,var(--line-2));border-radius:14px;background:color-mix(in srgb,var(--brand-soft) 55%,var(--surface));cursor:pointer;transition:background .15s,border-color .15s,transform .1s;color:var(--fg)}
.drop:hover{border-color:var(--brand);background:var(--brand-soft)}
.drop.over{border-color:var(--brand);border-style:solid;background:var(--brand-soft);transform:scale(1.01)}
.drop:focus-within{outline:3px solid color-mix(in srgb,var(--brand) 30%,transparent);outline-offset:2px}
.ff-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.drop-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--brand);color:var(--on-brand);box-shadow:0 4px 12px color-mix(in srgb,var(--brand) 35%,transparent);margin-bottom:4px}
.drop-t{font-size:14px;font-weight:600}
.drop-t b{color:var(--brand);font-weight:800}
.drop-s{font-size:12px;color:var(--muted);font-weight:500;max-width:46ch}
.filefield.has .drop{padding:12px 16px;flex-direction:row;gap:10px}
.filefield.has .drop-s{display:none}
.filefield.has .drop-ic{width:30px;height:30px;margin:0}
.fpick{display:flex;flex-wrap:wrap;gap:8px}
.fpick:empty{display:none}
.fp{display:flex;align-items:center;gap:8px;max-width:100%;padding:5px 6px 5px 5px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}
.fp img,.fp-doc{width:38px;height:38px;border-radius:8px;object-fit:cover;flex:none;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font:800 10.5px var(--f-display)}
.fp-n{display:flex;flex-direction:column;min-width:0;max-width:220px;font-size:12.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp-n small{color:var(--muted);font-weight:500}
.fp-x{all:unset;cursor:pointer;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:var(--muted);font-size:16px}
.fp-x:hover{background:var(--bad-soft);color:var(--bad)}
.addfiles{margin-top:8px}
/* Any folded action whose label is a button: a small button with a turning chevron, never a full-width bar. */
details>summary.btn{list-style:none;display:inline-flex;align-items:center;gap:6px;width:auto;max-width:100%}
details>summary.btn::-webkit-details-marker{display:none}
details:not(.addfiles)>summary.btn::after{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin-left:2px;opacity:.7;transition:transform .15s}
details[open]:not(.addfiles)>summary.btn::after{transform:rotate(45deg) translateY(-2px)}
details.addfiles>summary{color:var(--brand)}
details.addfiles>summary::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M21.4 11.6 12.2 20.8a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M21.4 11.6 12.2 20.8a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center/contain no-repeat}
details.addfiles[open]>summary{background:var(--brand-soft);border-color:transparent}
#lightbox{position:fixed;inset:0;z-index:1000;background:rgba(10,12,16,.86);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;gap:10px}
#lightbox[hidden]{display:none}
#lightbox img{max-width:100%;max-height:calc(100vh - 90px);object-fit:contain;border-radius:6px;background:#fff}
.lbbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#fff;max-width:100%}
.lbbar span{overflow-wrap:anywhere;margin-right:6px;font-size:13px}

/* Cross Stitches Vault */
.grp.xs .nav button.on{background:var(--xs-soft);color:var(--xs)}
.grp.xs summary .sw{background:var(--xs)}
.bizcard.xs{border-top-color:var(--xs)}
.pill.xs{background:var(--xs-soft);color:var(--xs);border-color:transparent}
.alert.xs .dot{background:var(--xs)}
.grp.gh .nav button.on{background:var(--gh-soft);color:var(--gh)}
.grp.gh summary .sw{background:var(--gh)}
.bizcard.gh{border-top-color:var(--gh)}
.pill.gh{background:var(--gh-soft);color:var(--gh);border-color:transparent}
.alert.gh .dot{background:var(--gh)}
.xlink{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) auto;gap:8px;align-items:end;margin-top:6px}
@media (max-width:640px){.xlink{grid-template-columns:1fr}}
/* Finance: all months together */
.split-bar{margin-top:14px}
.sb-head{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;margin-bottom:6px}
.sb-track{display:flex;height:16px;border-radius:999px;overflow:hidden;background:var(--line)}
.sb-track .sb-none{flex:1}
.sb-f{background:var(--brand)} .sb-d{background:var(--etsy)}
.sb-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:6px;font-size:13px}
.sb-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:middle}
.ch-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:16px 0 6px;font-size:12.5px;color:var(--muted)}
.ch-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:middle}
.ch-legend i.ch-profit,.ch-legend i.ch-loss{border-radius:50%}
.ch-wrap{overflow-x:auto}
.fchart{display:block;width:100%;height:auto;max-height:300px;font:11px var(--f-body)}
.fchart .ch-grid{stroke:var(--line);stroke-width:1}
.fchart .ch-grid.zero{stroke:var(--muted)}
.fchart .ch-ax{fill:var(--muted)}
.ch-sales{fill:var(--info);background:var(--info)} .ch-exp{fill:var(--warn);background:var(--warn)}
.fchart .ch-net{fill:none;stroke:var(--fg);stroke-width:1.5;stroke-dasharray:4 3;opacity:.6}
.ch-profit{fill:var(--ok);background:var(--ok)} .ch-loss{fill:var(--bad);background:var(--bad)}
/* Pop-up notes (new task, feedback, waiting for your check): slide in from the right, gone after 4 seconds */
#notes{position:fixed;top:14px;right:14px;z-index:900;display:flex;flex-direction:column;gap:8px;width:min(340px,calc(100vw - 28px));pointer-events:none}
.note-pop{pointer-events:auto;display:flex;align-items:flex-start;background:var(--brand-soft);border:1px solid color-mix(in srgb,var(--brand) 45%,transparent);border-left:6px solid var(--brand);border-radius:14px;box-shadow:var(--shadow-lg);transform:translateX(calc(100% + 24px));opacity:0;transition:transform .28s ease,opacity .28s ease}
.note-pop.in{transform:none;opacity:1}
/* every note is Jane violet, so it is clearly a notification; the business shows as a small line under the text */
.np-body{all:unset;cursor:pointer;flex:1;min-width:0;padding:10px 4px 10px 12px;display:flex;flex-direction:column;gap:2px}
.np-body b{font-size:13.5px;font-weight:800;color:var(--brand)}
.np-text{font-size:13px;overflow-wrap:anywhere}
.np-sub{font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}
.np-body:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:8px}
.np-x{all:unset;cursor:pointer;padding:6px 10px;color:var(--brand);font-size:16px;line-height:1}
@media (prefers-reduced-motion:reduce){.note-pop{transition:opacity .2s}.note-pop:not(.in){transform:none}}
/* Jane logo */
.mark{background:none;overflow:visible}
.mark svg{width:100%;height:100%;display:block}
.bdot{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:9px;vertical-align:1px}
.attn{border-left:6px solid var(--warn)}
.cline{grid-column:1/-1;font-size:13.5px}
.cline em{font-style:normal;color:var(--muted);font-weight:500}
.bizrow .tile .l,.bizsum .tile .l{text-transform:none;letter-spacing:0;font-size:12.5px;color:var(--muted)}
.pill.brand{background:var(--brand-soft);color:var(--brand);border-color:transparent}
/* names in the first column of a table stay on one or two lines */
.tw table td:first-child{min-width:170px}
.tw table td:first-child .muted.sm{margin-top:2px}
/* Tasks: the Whose filter and the "came from" chips in one row */
.taskbar{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin:4px 0 10px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{all:unset;cursor:pointer;font-size:12.5px;font-weight:700;padding:5px 11px;border-radius:999px;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.chip b{color:var(--fg);font-weight:800;margin-left:2px}
.chip:hover{border-color:var(--brand)}
.chip.on{background:var(--brand);color:var(--on-brand);border-color:transparent}
.chip.on b{color:var(--on-brand)}
.chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* ---------- Profile pictures: one look everywhere ---------- */
.uav{display:inline-grid;place-items:center;flex:none;border-radius:50%;overflow:hidden;color:#fff;font-family:var(--f-display);font-weight:800;line-height:1;vertical-align:middle;box-shadow:0 0 0 2px var(--surface)}
.uav img{width:100%;height:100%;object-fit:cover;display:block}
.uav.sys{background:var(--brand-soft)}
.uav.sys svg{width:70%;height:70%}
.whoav{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:var(--fg)}
.whos{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.whos .whoav+.whoav{margin-left:2px}
.tnote{display:flex;align-items:flex-start;gap:6px}
.tnote .uav{margin-top:1px}
.msg .who{display:flex;align-items:center;gap:6px}
.pcell{display:flex;align-items:center;gap:10px}
.cp.arow{grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}
.herome{display:flex;align-items:center;gap:14px}
.herome .uav{box-shadow:0 0 0 3px var(--brand-soft)}
.meav{all:unset;cursor:pointer;margin-left:auto;border-radius:50%;display:grid;place-items:center;transition:transform .12s}
.meav:hover{transform:scale(1.06)}
.meav:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.meav .uav{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--brand)}
.top .where+.meav{order:5}
.profile .pbig{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.profile .pav{box-shadow:0 0 0 4px var(--surface),0 0 0 7px var(--brand);font-size:46px!important}
.profile .pinfo{flex:1 1 260px;min-width:0}
.profile .pbtns{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.pick{position:relative;overflow:hidden;cursor:pointer}
.pick input{position:absolute;inset:0;opacity:0;cursor:pointer}

/* ---------- The greeting when Jane opens ---------- */
.greet{position:fixed;inset:0;z-index:2000;display:grid;place-items:start center;padding:12vh 16px 16px;background:color-mix(in srgb,var(--bg) 55%,transparent);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:gIn .35s ease both;cursor:pointer}
.greet.out{animation:gOut .3s ease both}
.gcard{position:relative;width:min(520px,100%);border-radius:24px;padding:26px 26px 22px;color:#fff;box-shadow:0 30px 80px rgba(20,10,50,.45);overflow:hidden;background:linear-gradient(135deg,#6b3fd4,#9b5cf0 55%,#e2456d);animation:gPop .45s cubic-bezier(.2,1.3,.4,1) both}
.greet.morning .gcard{background:linear-gradient(135deg,#f59e0b,#f97362 50%,#e2456d)}
.greet.afternoon .gcard{background:linear-gradient(135deg,#0ea5e9,#6b3fd4)}
.greet.evening .gcard{background:linear-gradient(135deg,#6b3fd4,#c0399b 55%,#f97362)}
.greet.night .gcard{background:linear-gradient(135deg,#1e1b4b,#4c1d95 60%,#6b3fd4)}
.gtop{display:flex;align-items:center;gap:16px}
.gtop .gav{box-shadow:0 0 0 3px rgba(255,255,255,.85)}
.gicon{font-size:26px;line-height:1;margin-bottom:4px}
.gcard h2{font-size:28px;font-weight:800;color:#fff;letter-spacing:-.01em;line-height:1.15}
.gsub{margin-top:4px;font-weight:600;opacity:.9;font-size:14px}
.gq{margin:18px 0 0;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.16);font-size:17px;font-weight:700;line-height:1.45}
.gql{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;opacity:.8;margin-bottom:4px;font-weight:800}
.gbar{margin-top:16px;height:4px;border-radius:4px;background:rgba(255,255,255,.25);overflow:hidden}
.gbar span{display:block;height:100%;background:#fff;transform-origin:left;animation:gBar 4s linear both}
@keyframes gIn{from{opacity:0}to{opacity:1}}
@keyframes gOut{to{opacity:0}}
@keyframes gPop{from{opacity:0;transform:translateY(-16px) scale(.96)}to{opacity:1;transform:none}}
@keyframes gBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.greet,.gcard,.greet.out{animation:none}.gbar span{animation-duration:4s}}
@media (max-width:560px){.gcard{padding:20px}.gcard h2{font-size:23px}.gq{font-size:15px}}

/* ---------- Online dot on a picture ---------- */
.avwrap{position:relative;display:inline-flex;flex:none}
.avwrap .odot{display:none;position:absolute;right:-1px;bottom:-1px;width:28%;height:28%;min-width:9px;min-height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px var(--surface)}
.avwrap.on .odot{display:block}

/* ---------- Messages: the chat corner ---------- */
#chatw{position:fixed;right:22px;bottom:22px;z-index:25;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
#chatw>*{pointer-events:auto}
.cfab{all:unset;cursor:pointer;position:relative;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#6b3fd4,#9b5cf0);box-shadow:0 10px 28px rgba(107,63,212,.45);transition:transform .15s,box-shadow .15s}
.cfab:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 14px 34px rgba(107,63,212,.55)}
.cfab:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
#chatw.open .cfab{transform:scale(.92)}
.cfab.ping{animation:cping .6s ease}
@keyframes cping{0%,100%{transform:none}30%{transform:scale(1.15) rotate(-8deg)}60%{transform:scale(1.05) rotate(6deg)}}
.cfab-n{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e2456d;color:#fff;font:800 12px/22px var(--f-display);text-align:center;box-shadow:0 0 0 3px var(--bg)}
.cwin{width:380px;height:min(600px,calc(100vh - 120px));display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 70px rgba(20,12,50,.35);overflow:hidden;animation:cwIn .22s ease both;transform-origin:bottom right}
.cwin[hidden]{display:none}
@keyframes cwIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
.cwbtn{all:unset;cursor:pointer;flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-size:20px;line-height:1;color:var(--muted)}
.cwbtn:hover{background:var(--surface-2);color:var(--fg)}
.cwbtn:focus-visible{outline:2px solid var(--brand)}
.clbar{padding:10px 12px;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--line)}
.clbtns{display:flex;gap:8px}
.clbtns .btn{flex:1;justify-content:center}
.clitems{overflow-y:auto;flex:1;padding:6px}
.cbodyw{overflow-y:auto;flex:1;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
div.cpick{cursor:default}
.clbtns{display:flex;gap:8px}
.conline{padding:6px 8px 10px;border-bottom:1px solid var(--line);margin-bottom:6px}
.conline .k{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.cstrip{display:flex;gap:10px;overflow-x:auto;padding-bottom:2px}
.cperson{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;font-weight:700;width:54px;text-align:center}
.cperson span:last-child{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.citem{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;border-radius:12px;transition:background .12s}
.citem:hover{background:var(--surface)}
.citem.on{background:var(--brand-soft)}
.citem:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.cmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.crow{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.crow b{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crow small{color:var(--muted);font-size:11.5px;flex:none}
.cprev{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.citem.unread .cprev{color:var(--fg);font-weight:700}
.citem.unread .crow small{color:var(--brand);font-weight:800}
.crow .cnt{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:var(--on-brand);font-size:11.5px;font-weight:800;display:grid;place-items:center}
.cempty{color:var(--muted);text-align:center;padding:24px 12px;font-size:13.5px}
.gicons{position:relative;display:inline-block;flex:none}
.gicons .uav{position:absolute}
.gicons .uav:first-child{left:0;top:0}
.gicons .uav:nth-child(2){right:0;bottom:0}
.gicons .uav:only-child{left:50%;top:50%;transform:translate(-50%,-50%)}
.chead{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 12%,var(--surface)),var(--surface))}
.chi{flex:1;min-width:0;display:flex;flex-direction:column}
.chi b{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chi small{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chi small.is-on{color:#16a34a;font-weight:700}
.cmsgs{flex:1;overflow-y:auto;padding:12px 12px;display:flex;flex-direction:column;gap:3px;background:radial-gradient(circle at 20% 0,color-mix(in srgb,var(--brand) 5%,transparent),transparent 60%)}
.cmore{text-align:center;margin-bottom:6px}
.cday{display:flex;justify-content:center;margin:12px 0 6px}
.cday span{font-size:11.5px;font-weight:800;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);padding:3px 10px;border-radius:999px}
.csys{align-self:center;font-size:12px;color:var(--muted);margin:6px 0;text-align:center}
.cmsg{display:flex;align-items:flex-end;gap:7px;max-width:85%}
.cmsg.first{margin-top:8px}
.cmsg.own{align-self:flex-end;flex-direction:row-reverse}
.cgap{width:28px;flex:none}
.cbody{display:flex;flex-direction:column;min-width:0;position:relative}
.cmsg.own .cbody{align-items:flex-end}
.cwho{font-size:12px;font-weight:800;color:var(--brand);margin:0 0 2px 4px}
.bub{position:relative;background:var(--surface-2);border:1px solid var(--line);border-radius:16px 16px 16px 6px;padding:8px 12px 6px;color:var(--fg);font-size:14.5px;line-height:1.45;min-width:64px;overflow-wrap:anywhere}
.cmsg.own .bub{background:linear-gradient(135deg,#6b3fd4,#8b5cf6);border-color:transparent;color:#fff;border-radius:16px 16px 6px 16px}
.cmsg.own .bub a{color:#fff;text-decoration:underline}
.bub.del{font-style:italic;color:var(--muted);background:transparent}
.cmsg.own .bub.del{background:transparent;color:var(--muted);border:1px dashed var(--line-2)}
.ctext{white-space:pre-wrap}
.ctime{display:block;text-align:right;font-size:10.5px;opacity:.65;margin-top:2px}
.cfiles{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 4px}
.cimg{all:unset;cursor:zoom-in;display:block;border-radius:10px;overflow:hidden;max-width:220px;background:var(--surface)}
.cimg img{display:block;max-width:220px;max-height:200px;object-fit:cover}
.cfile{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:var(--surface);color:var(--fg);text-decoration:none;min-width:180px;max-width:260px}
.cfile b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
.cfile small{color:var(--muted);font-size:11.5px}
.cfile .fext{min-width:44px;height:34px;font-size:12px}
.cacts{display:flex;gap:2px;opacity:0;transition:opacity .12s}
.cmsg.own .cacts{justify-content:flex-end}
.cmsg:hover .cacts,.cacts:focus-within,.cacts:has(.danger){opacity:1}
@media (hover:none){.cacts{opacity:.75}}
.cact{all:unset;cursor:pointer;font-size:11.5px;font-weight:700;color:var(--muted);padding:3px 6px;border-radius:6px}
.cact:hover{color:var(--brand);background:var(--brand-soft)}
.cact:focus-visible{outline:2px solid var(--brand)}
.cdel.danger{color:var(--bad)}
.cseen{align-self:flex-end;font-size:11.5px;color:var(--muted);font-weight:700;margin:2px 4px 0}
.ctyping{min-height:20px;padding:0 14px;font-size:12.5px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px}
.dots{display:inline-flex;gap:3px}
.dots i{width:5px;height:5px;border-radius:50%;background:var(--brand);animation:dot 1s infinite ease-in-out}
.dots i:nth-child(2){animation-delay:.15s}
.dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.ccomp{border-top:1px solid var(--line);padding:8px 10px 10px;background:var(--surface)}
.ccomp.busy{opacity:.6;pointer-events:none}
.crowc{display:flex;align-items:flex-end;gap:8px}
.cattach{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:var(--brand);background:var(--brand-soft);cursor:pointer;flex:none}
.cattach input{position:absolute;inset:0;opacity:0;cursor:pointer}
#chatText{flex:1;resize:none;min-height:40px;max-height:140px;border-radius:14px;padding:9px 12px;font-size:14.5px;line-height:1.4}
.csend{width:44px;height:40px;padding:0;justify-content:center;border-radius:12px;flex:none}
.cpicked{display:flex;flex-wrap:wrap;gap:6px}
.cpicked:not(:empty){margin-bottom:8px}
.cpk{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;background:var(--brand-soft);border-radius:999px;padding:4px 6px 4px 10px}
.cpk small{color:var(--muted)}
.cpk button{all:unset;cursor:pointer;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--surface)}
.cpicks{display:flex;flex-direction:column;gap:4px}
.cpick{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;width:100%}
button.cpick:hover{background:var(--brand-soft)}
.cpick>span{flex:1;min-width:0;display:flex;flex-direction:column}
.cpick small{color:var(--muted);font-size:12px}
.note-pop.msgnote .np-body{flex-direction:row;align-items:flex-start;gap:10px}
.np-av{flex:none;padding-top:2px}
.np-txt{display:flex;flex-direction:column;gap:2px;min-width:0}

@media (max-width:600px){
  #chatw{right:14px;bottom:14px}
  #chatw.open{inset:0;right:0;bottom:0}
  #chatw.open .cfab{display:none}
  .cwin{width:100vw;height:100vh;height:100dvh;border-radius:0;border:0}
  .cfab{width:54px;height:54px}
}

/* Voice messages */
.cmic{all:unset;cursor:pointer;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:var(--brand);background:var(--brand-soft);flex:none}
.cmic:hover{background:color-mix(in srgb,var(--brand) 22%,var(--surface))}
.cmic:focus-visible{outline:2px solid var(--brand)}
.crec{display:none;align-items:center;gap:10px;min-height:40px}
.ccomp.recording .crowc,.ccomp.recording .cpicked{display:none}
.ccomp.recording .crec{display:flex}
.recdot{width:12px;height:12px;border-radius:50%;background:#e2456d;animation:recp 1s infinite}
@keyframes recp{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}
#recTime{font-variant-numeric:tabular-nums;font-size:15px}
.recl{flex:1;color:var(--muted);font-size:13px}
.vmsg{display:flex;align-items:center;gap:9px;min-width:200px;padding:2px 0}
.vplay{all:unset;cursor:pointer;flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:var(--brand);color:var(--on-brand)}
.cmsg.own .vplay{background:#fff;color:#6b3fd4}
.vplay:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.vbars{flex:1;display:flex;align-items:center;gap:2px;height:28px}
.vbars i{flex:1;min-width:2px;border-radius:2px;background:color-mix(in srgb,currentColor 35%,transparent)}
.vbars i.on{background:currentColor}
.cmsg:not(.own) .vbars{color:var(--brand)}
.vtime{font-size:12px;font-variant-numeric:tabular-nums;opacity:.85;min-width:30px;text-align:right}

/* Replies: the quote inside a message, and the "Replying to" bar above the message box */
.cquote{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:1px;width:100%;margin:0 0 6px;padding:5px 9px;border-left:3px solid var(--brand);border-radius:8px;background:color-mix(in srgb,var(--brand) 10%,var(--surface));font-size:12.5px;line-height:1.35}
.cquote b{color:var(--brand);font-size:12px}
.cquote span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cmsg.own .cquote{background:rgba(255,255,255,.16);border-left-color:#fff}
.cmsg.own .cquote b{color:#fff}
.cmsg.own .cquote span{color:rgba(255,255,255,.85)}
.crbar{display:flex;align-items:center;gap:8px;margin-bottom:8px;padding:6px 6px 6px 10px;border-left:3px solid var(--brand);border-radius:10px;background:var(--brand-soft)}
.crbar>div{flex:1;min-width:0;display:flex;flex-direction:column;font-size:12.5px}
.crbar b{color:var(--brand);font-size:12px}
.crbar span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmsg.flash .bub{animation:cflash 1.4s ease}
@keyframes cflash{0%,40%{box-shadow:0 0 0 3px #f5b84a}100%{box-shadow:0 0 0 0 transparent}}
/* The back arrow: its own colour so it is easy to find */
.cwbtn.cback{background:var(--brand);color:var(--on-brand);border-radius:50%;width:32px;height:32px;box-shadow:0 3px 10px rgba(107,63,212,.35)}
.cwbtn.cback:hover{background:#7c4fe6;color:#fff;transform:translateX(-1px)}

/* Right-click menu on a chat message */
.cmenu{position:fixed;z-index:1200;min-width:180px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;animation:cwIn .12s ease both}
.cmenu button{all:unset;cursor:pointer;padding:8px 12px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--fg)}
.cmenu button:hover,.cmenu button:focus-visible{background:var(--brand-soft);color:var(--brand)}
.cmenu button.danger{color:var(--bad)}

/* ---------- Seller Central > PPC ---------- */
.good{color:var(--ok);font-weight:700}
.ppcday{margin:14px 0 4px;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ppcday:first-of-type{margin-top:6px}
.ppcrow{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.ppcrow:last-child{border-bottom:0}
.ppcrow.weekly .ppcmain{background:var(--brand-soft);border-radius:12px;padding:8px 12px}
.ppcmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ppchead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ppchead b{font-size:14.5px}
.ppctext{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.ppcnums{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--muted)}
.ppcnums b{color:var(--fg)}
.ppcnotes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px}
.ppcnote{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--surface-2);display:flex;flex-direction:column;gap:8px;min-width:0}
.ppcnote.pinned{border-color:color-mix(in srgb,var(--brand) 45%,var(--line));background:var(--brand-soft)}
.ppcnt{display:flex;align-items:center;gap:6px;font-size:15px}
.ppcnacts{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}

/* Chat list: people you have not talked to yet */
.cstart{margin-top:6px;padding-top:8px;border-top:1px solid var(--line)}
.cstart .k{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:2px 8px 4px}

/* ---------- Grace & Hue: the designs board and customer issues ---------- */
.ghboard{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:12px;overflow-x:auto;padding-bottom:6px}
.ghcol{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}
.ghcol h3{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin:0 2px 2px}
.ghgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:10px}
.ghd{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--gh);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:5px;min-width:0;box-shadow:var(--shadow)}
.ghd-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.ghd-top b{font-size:14.5px;line-height:1.3;overflow-wrap:anywhere}
.ghd .meta{margin:0}
.ghd-note{background:var(--surface-2);border-radius:8px;padding:5px 8px}
.ghd-links a{font-weight:700}
.ghd-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:2px;flex-wrap:wrap}
.ghissue{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.ghissue:last-child{border-bottom:0}
.ghissue.done{opacity:.8}
.ghissue-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ghissue-act{display:flex;gap:6px;align-items:center}
@media (max-width:860px){.ghboard{grid-template-columns:repeat(5,minmax(240px,82vw));scroll-snap-type:x mandatory}.ghcol{scroll-snap-align:start}}
.ghstage{margin-top:14px}
.ghstage h3{display:flex;align-items:center;gap:8px;font-size:13px;margin:0 0 8px}
.ghup{display:flex;gap:8px;flex-wrap:wrap}
.ghsizes{display:flex;flex-wrap:wrap;gap:6px 14px}
.ghsize{white-space:nowrap;font-size:13.5px}
tr.click{cursor:pointer}
tr.click:hover td{background:var(--surface-2)}
/* Grace & Hue profit bars */
.pbars{display:flex;align-items:flex-end;gap:6px;height:150px;margin:6px 0 14px;overflow-x:auto;padding-bottom:2px}
.pbar{flex:1 0 22px;max-width:56px;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%}
.pbar-track{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center}
.pbar-track span{display:block;width:70%;border-radius:6px 6px 2px 2px}
.pbar-track .gain{background:var(--ok)}
.pbar-track .loss{background:var(--bad)}
.pbar small{font-size:10.5px;color:var(--muted);white-space:nowrap}
.ghwhat{min-width:220px}
.ghd-img{display:block;width:calc(100% + 24px);margin:-10px -12px 4px;aspect-ratio:1/1;object-fit:cover;border-radius:11px 11px 0 0;background:var(--surface-2)}
.ghd{overflow:hidden}

/* A list you can search (e.g. the SKU on an FBA shipment) */
.combo{position:relative;display:block}
.combo-sel{display:none}
.combo-list{position:absolute;z-index:45;left:0;right:0;top:calc(100% + 4px);max-height:330px;overflow-y:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);padding:4px;min-width:min(420px,90vw)}
.combo-opt{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;width:100%;padding:7px 10px;border-radius:8px;cursor:pointer;font-size:13.5px;font-weight:600;color:var(--fg)}
.combo-opt small{font-size:11.5px;font-weight:500;color:var(--muted)}
.combo-opt.on,.combo-opt:hover{background:var(--brand-soft);color:var(--brand)}
.combo-more{margin:0;padding:8px 10px;font-size:12.5px;color:var(--muted)}
/* Client files on tasks (up to 1 GB, deleted when the task is completed) */
.bigup .note{margin:4px 0 0}
.bigprog{margin-top:8px;display:grid;gap:6px}
.bigprog .bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.bigprog .bar span{display:block;height:100%;width:0;background:var(--brand);transition:width .2s}
.bigprog b{font-size:13px;font-weight:600}
.bigfile{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:6px;padding:8px 10px;border:1px dashed var(--line);border-radius:10px;font-size:13px}
.bigfile.gone{color:var(--muted);border-style:dotted}
/* FBA board (Flarko Hub layout) */
.ktabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px;border-bottom:1px solid var(--line)}
.ktab{all:unset;cursor:pointer;padding:9px 14px;font-weight:600;font-size:14px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.ktab b{font-weight:700;margin-left:4px;background:var(--surface-2);border-radius:99px;padding:1px 8px;font-size:12px}
.ktab.on{color:var(--brand);border-bottom-color:var(--brand)}
.ktab:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.fbaadd{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
.fbaadd .help{flex:1 1 260px}
.ktiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px;margin-bottom:14px}
.ktile{all:unset;box-sizing:border-box;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--shadow);position:relative;min-width:0}
.ktile.static{cursor:default}
.ktile:not(.static):hover{border-color:var(--brand)}
.ktile.on{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
.ktile i{position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 4px 4px 0}
.ktile span{font-size:12.5px;color:var(--muted);font-weight:600}
.ktile b{font-size:24px;font-family:var(--f-display)}
.ktile small{font-size:11.5px;color:var(--muted)}
.ktile:focus-visible,.schip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.schips{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch;margin-bottom:14px}
.schip{all:unset;box-sizing:border-box;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 12px;display:flex;flex-direction:column;gap:3px;min-width:150px;max-width:260px}
.schip b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schip small{font-size:11.5px;color:var(--muted)}
.schip.on{border-color:var(--brand);background:var(--brand-soft)}
.schips .hist{align-self:center;margin-left:auto}
.sbar{display:flex;height:6px;border-radius:99px;overflow:hidden;background:var(--line);margin-top:2px}
.sbar i{display:block;height:100%}
.sbar i.gray{background:#b4b9cc}.sbar i.violet{background:#8b5cf6}.sbar i.blue{background:#3b82f6}.sbar i.orange{background:#f59e0b}.sbar i.green{background:#16a34a}
.spill.violet{background:#8b5cf6}.spill.blue{background:#3b82f6}.spill.orange{background:#f59e0b}.spill.green{background:#16a34a}
.ktile i.gray{background:#9aa0b8}.ktile i.violet{background:#8b5cf6}.ktile i.blue{background:#3b82f6}.ktile i.orange{background:#f59e0b}.ktile i.green{background:#16a34a}
.spill{display:inline-block;font-size:12px;font-weight:700;padding:2px 9px;border-radius:99px;color:#fff;white-space:nowrap}
.spill.gray{background:#8a90a8}
.fbabar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.fbabar input[type=search]{flex:1 1 260px;max-width:420px}
.fbaback{margin-bottom:10px}
table.board td{vertical-align:middle}
table.board .bgrp td{background:var(--surface-2);padding:10px 12px}
.bgrp-in{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bgrp-in .btn:last-child{margin-left:auto}
tr.bline{cursor:pointer}
tr.bline:hover td{background:var(--brand-soft)}
td.chev{font-size:22px;color:var(--muted);width:20px}
.bprod{display:flex;gap:10px;align-items:center;min-width:220px}
.mono.b{font-weight:700}
.pph{border-radius:10px;object-fit:cover;background:var(--surface-2);border:1px solid var(--line);flex:none;display:inline-flex;align-items:center;justify-content:center}
.pph.none{font-weight:800;color:var(--brand);background:var(--brand-soft);font-size:13px}
.lchips{display:flex;gap:4px;flex-wrap:wrap}
.lchip{font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:99px;white-space:nowrap;text-decoration:none}
.lchip.ok{background:var(--ok-soft);color:var(--ok)}
.lchip.miss{background:var(--bad-soft);color:var(--bad)}
.ok-t{color:var(--ok);font-weight:600}
.lwin{display:grid;grid-template-columns:minmax(0,230px) 1fr;gap:18px}
.lwin-side{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.lwin .pph.none{font-size:44px}
@media (max-width:640px){.lwin{grid-template-columns:minmax(0,1fr)}}
.ktile b em{font-style:normal;font-size:12px;font-weight:600;color:var(--muted)}
/* Product Database (Flarko Hub layout) */
.seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.seg button{all:unset;cursor:pointer;padding:6px 12px;font-size:13px;font-weight:600;color:var(--muted)}
.seg button.on{background:var(--brand);color:var(--on-brand)}
.seg button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:14px}
.pcard{all:unset;box-sizing:border-box;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.pcard:hover{border-color:var(--brand);box-shadow:var(--shadow-lg)}
.pcard:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.pimg{position:relative;background:var(--surface-2);aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.pimg .pph{width:100%!important;height:100%!important;border:0;border-radius:0;object-fit:contain;background:#fff}
.pimg .pph.none{font-size:38px;background:var(--brand-soft)}
.pbadges{position:absolute;left:8px;bottom:8px;display:flex;gap:4px;flex-wrap:wrap}
.pflags{position:absolute;left:8px;top:8px;display:flex;gap:4px;flex-wrap:wrap}
.pbadge,.pflag{font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;background:var(--surface);border:1px solid var(--line);color:var(--fg)}
.pbadge.fba{background:#ff9900;color:#111;border-color:#ff9900}.pbadge.fbm{background:var(--info-soft);color:var(--info);border-color:transparent}
.pbadge.ok{color:var(--ok)}.pbadge.warn{color:var(--warn)}.pbadge.bad,.pflag.bad{color:var(--bad)}.pflag.bad{background:var(--bad-soft);border-color:transparent}
.pflag.warn{background:var(--warn-soft);color:var(--warn);border-color:transparent}.pbadge.mute,.pflag.mute{color:var(--muted)}
.pbody{padding:10px 12px 12px;display:flex;flex-direction:column;gap:3px}
.ptitle{font-weight:700;font-size:14px;line-height:1.3}
.pmeta{display:flex;gap:8px;justify-content:space-between;font-size:12.5px}
tr.prow{cursor:pointer}tr.prow:hover td{background:var(--brand-soft)}
tr.prow.sub td{background:var(--surface-2)}tr.prow.sub td:first-child{padding-left:42px}
.pexp{all:unset;cursor:pointer;width:22px;text-align:center;color:var(--muted);font-size:14px}
.ptabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:12px;border-bottom:1px solid var(--line)}
.sibs{display:flex;gap:6px;flex-wrap:wrap}
.extlog{list-style:none;margin:0;padding:0}.extlog li{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px;display:flex;flex-direction:column;gap:2px}
.extlog li.bad span{color:var(--bad)}.extlog li i{font-style:normal;color:var(--muted);font-size:12px}
.amzchip{display:inline-flex;gap:4px;align-items:center;font-size:12px;font-weight:600;padding:2px 8px;border-radius:99px;background:#fff4e0;color:#8a5300;border:1px solid #ffd38a}
@media (prefers-color-scheme: dark){.amzchip{background:#3a2a10;color:#ffc469;border-color:#5a4318}}
/* Message card in the product window */
.cardpane{display:grid;grid-template-columns:minmax(0,260px) 1fr;gap:16px;align-items:start}
.cardimg img{width:100%;border-radius:12px;border:1px solid var(--line);display:block}
.cardimg .empty{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:var(--surface-2);border-radius:12px;color:var(--muted);text-align:center;padding:12px}
.cardup{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
@media (max-width:640px){.cardpane{grid-template-columns:minmax(0,1fr)}}

/* FBA Shipments: Flarko Hub's layout */
:root{--st-gray:#7b819a;--st-violet:#7c4dff;--st-blue:#2f6fe4;--st-orange:#e08a00;--st-green:#14955a;--st-gray-bg:#eef0f5;--st-violet-bg:#efe9ff;--st-blue-bg:#e6efff;--st-orange-bg:#fff2dc;--st-green-bg:#e2f6ec}
@media (prefers-color-scheme: dark){:root{--st-gray:#a9aec4;--st-violet:#b39cff;--st-blue:#86a8ff;--st-orange:#ffc069;--st-green:#5fdc9a;--st-gray-bg:#262a3b;--st-violet-bg:#2b2350;--st-blue-bg:#1c2847;--st-orange-bg:#3a2b12;--st-green-bg:#123323}}
.pagehead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.pagehead .phacts{margin-left:auto;display:flex;gap:8px}
.seg.big{background:var(--surface-2);border:0;padding:4px;border-radius:12px;gap:2px;flex-wrap:wrap}
.seg.big button{padding:8px 14px;border-radius:9px;font-size:13.5px;font-weight:700;color:var(--muted);display:inline-flex;gap:7px;align-items:center}
.seg.big button b{font-size:11.5px;background:var(--line);color:var(--muted);border-radius:20px;padding:1px 7px}
.seg.big button.on{background:var(--surface);color:var(--fg);box-shadow:var(--shadow)}
.seg.big button.on b{background:var(--brand-soft);color:var(--brand)}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;margin-bottom:18px}
.kpi{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:15px 16px;border-radius:14px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);transition:transform .12s}
.kpi:hover{transform:translateY(-1px);border-color:var(--brand)}
.kpi.on{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft),var(--shadow)}
.kpi.static{cursor:default}.kpi.static:hover{transform:none;border-color:var(--line)}
.kpi:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.klab{font-size:12.5px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:6px}
.kval{font-size:26px;font-weight:800;font-family:var(--f-display);line-height:1.15}
.kpi.gray .kval{color:var(--st-gray)}.kpi.violet .kval{color:var(--st-violet)}.kpi.blue .kval{color:var(--st-blue)}.kpi.orange .kval{color:var(--st-orange)}.kpi.green .kval{color:var(--st-green)}
.ksub{font-size:11.5px;color:var(--muted)}
.sdot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none;background:var(--st-gray)}
.sdot.violet{background:var(--st-violet)}.sdot.blue{background:var(--st-blue)}.sdot.orange{background:var(--st-orange)}.sdot.green{background:var(--st-green)}
.shipchips{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 10px;margin-bottom:8px;scrollbar-width:thin}
.shipchips .schip{flex:0 0 auto;min-width:160px;box-shadow:var(--shadow)}
.shipchips .schip span{font-size:11.5px;color:var(--muted);white-space:nowrap}
.shipchips .schip b{font-size:13.5px;white-space:nowrap}
.shipchips .schip.closed{border-style:dashed}
.schip.hist{flex-direction:row;align-items:center;gap:6px;min-width:0;color:var(--muted);font-weight:600;font-size:13px}
.schip.hist select{border:0;background:none;font-weight:700;color:var(--fg);cursor:pointer;padding:0;width:auto}
.fbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 14px}
.fbar .seg{background:var(--surface-2);border:0;padding:3px;border-radius:10px;flex-wrap:wrap}
.fbar .seg button{border-radius:8px;padding:5px 12px;font-weight:700}
.fbar .seg button.on{background:var(--surface);color:var(--fg);box-shadow:var(--shadow)}
.fbar select{width:auto;max-width:220px}
.fbar .search{flex:1 1 240px;max-width:360px}.fbar .search input{width:100%}
.card.flush{padding:0;overflow:hidden}
table.fbal{margin:0}table.fbal td{vertical-align:middle}
table.fbal .grouprow td{background:var(--surface-2);padding:10px 14px;border-top:2px solid var(--line)}
.grp1{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.grp1 .lnk b{font-size:14.5px;color:var(--fg)}
.gsp{flex:1 1 0;min-width:0}
.grp1 .sbar{width:200px;max-width:30%;height:8px}
.lnk{all:unset;cursor:pointer;color:var(--brand);font-weight:600}.lnk:hover{text-decoration:underline}
.xs{font-size:11.5px}
b.big{font-size:17px}
table.fbal tr.fline td:first-child{box-shadow:inset 3px 0 0 var(--st-gray)}
table.fbal tr.fline.violet td:first-child{box-shadow:inset 3px 0 0 var(--st-violet)}table.fbal tr.fline.blue td:first-child{box-shadow:inset 3px 0 0 var(--st-blue)}
table.fbal tr.fline.orange td:first-child{box-shadow:inset 3px 0 0 var(--st-orange)}table.fbal tr.fline.green td:first-child{box-shadow:inset 3px 0 0 var(--st-green)}
table.fbal .click{cursor:pointer}table.fbal tr.fline:hover td{background:var(--brand-soft)}
.fp2{display:flex;gap:11px;align-items:center;min-width:250px}
.fp2i .pph{border-radius:10px}
.fp2t{display:flex;flex-direction:column;gap:2px;min-width:0}
.fp2a{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:12px}
.fp2b b{font-size:13.5px}
.fp2c{font-size:12px;color:var(--muted)}
.amzid{font-family:var(--f-mono);font-size:11px;font-weight:700;padding:1px 7px;border-radius:6px;background:#fff1d6;color:#8a5300;border:1px solid #ffd58f}
.amzid.none{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
@media (prefers-color-scheme: dark){.amzid{background:#3a2a10;color:#ffc469;border-color:#5a4318}}
.urgtag{display:inline-flex;align-self:flex-start;margin-top:3px;font-size:10.5px;font-weight:800;letter-spacing:.04em;color:#fff;background:var(--bad);border-radius:99px;padding:1px 8px}
.cartcell b{display:block;font-size:14px}.cartcell span{font-size:11.5px;color:var(--muted)}.cartcell i{display:block;font-style:normal;font-size:11.5px;color:var(--muted)}
.labcell{display:table-cell}.labcell .lchip{display:inline-block;margin:0 4px 4px 0}
.stcell{display:table-cell}.stcell>*{margin:0 6px 4px 0}
.spill{color:#fff}.spill.gray{background:var(--st-gray)}
.amzline{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;color:var(--muted)}
.amzline:hover{color:var(--fg)}
.nextstep{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--brand);background:var(--brand-soft);border-radius:99px;padding:5px 12px}
.nextstep:hover{background:var(--brand);color:var(--on-brand)}
.nextstep.big{font-size:14px;padding:9px 16px;background:var(--brand);color:var(--on-brand)}
.nextstep:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.waitfor{font-size:12.5px;color:var(--muted);font-weight:600;background:var(--surface-2);border-radius:99px;padding:5px 12px}
.nextrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.iconbtn{all:unset;cursor:pointer;width:30px;height:30px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:22px;color:var(--muted)}
.iconbtn:hover{background:var(--surface-2);color:var(--fg)}
.shortchip{font-size:11.5px;font-weight:700;color:var(--bad);background:var(--bad-soft);border-radius:99px;padding:2px 9px}
.lsteps{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.lsteps b{flex:1 1 12px;min-width:10px;height:2px;background:var(--line)}
.ls{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--muted)}
.ls i{font-style:normal;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:800;background:var(--surface-2);border:1px solid var(--line)}
.ls.past{color:var(--fg)}.ls.past i{background:var(--st-green);color:#fff;border-color:var(--st-green)}
.ls.now{color:var(--fg);font-weight:800}.ls.now i{color:#fff;border-color:transparent;background:var(--brand)}
.ls.now.gray i{background:var(--st-gray)}.ls.now.violet i{background:var(--st-violet)}.ls.now.blue i{background:var(--st-blue)}.ls.now.orange i{background:var(--st-orange)}.ls.now.green i{background:var(--st-green)}
.shipcard .chead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.shipcard .chead h3{margin:0;font-size:18px}
.shipcard .ship.inner{border:0;box-shadow:none;padding:0;background:none}
.shipcard .ship.inner>.ch:first-child,.shipcard .ship.inner>.steps{display:none}
.amzbox{border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;width:100%;box-sizing:border-box}
.drawer.wide{width:min(860px,100%)}
.kv .urgtag{display:inline-block;width:auto}
/* Easy to read and press: the dashboard's jobs, big buttons, message cards */
.bigbtn{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 20px;border-radius:12px;font:700 16px var(--f-body);background:var(--brand);color:var(--on-brand);text-decoration:none;white-space:nowrap}
.bigbtn:hover{filter:brightness(1.08)}
.bigbtn:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.bigbtn.ghost{background:var(--surface);color:var(--fg);border:2px solid var(--line-2)}
.bigbtn.ghost:hover{border-color:var(--brand);color:var(--brand)}
.bigbtn.sm{min-height:38px;padding:7px 14px;font-size:14px}
.nextstep.big{font-size:16px;padding:12px 20px;border-radius:12px;min-height:46px;box-sizing:border-box}
.waitfor{font-size:14px;padding:8px 14px}
.jobs{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:20px 22px;margin-bottom:18px;display:flex;flex-direction:column;gap:12px}
.jobshead h2{font-size:24px;margin:0}.jobshead p{margin:4px 0 0;font-size:16px;color:var(--muted)}
.job{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 18px;border-radius:14px;border:2px solid var(--line);background:var(--surface-2)}
.job.violet{border-color:#c9b6ff}.job.blue{border-color:#b4ccff}.job.orange{border-color:#ffd38a}.job.green{border-color:#a8e3c4}.job.gray{border-color:var(--line-2)}
.job.done{border-color:#a8e3c4;background:var(--ok-soft)}
.jnum{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;background:var(--brand);color:var(--on-brand);flex:none}
.job.done .jnum{background:var(--ok)}
.jtext{flex:1 1 260px;display:flex;flex-direction:column;gap:3px}.jtext b{font-size:18px;line-height:1.3}.jtext span{font-size:15px;color:var(--muted)}
.jbtns{display:flex;gap:10px;flex-wrap:wrap}
.dship{border:1px solid var(--line);border-left:5px solid var(--st-gray);border-radius:14px;padding:16px 18px;margin-top:12px;background:var(--surface)}
.dship.violet{border-left-color:var(--st-violet)}.dship.blue{border-left-color:var(--st-blue)}.dship.orange{border-left-color:var(--st-orange)}.dship.green{border-left-color:var(--st-green)}
.dshead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}.dshead h3{font-size:19px;margin:0 0 3px}.dshead .muted{font-size:14px}
.spill.big{font-size:14px;padding:5px 14px}
.dship .lsteps .ls{font-size:13.5px}.dship .lsteps .ls i{width:26px;height:26px;font-size:13px}
.dcards{margin-top:12px;border-top:1px dashed var(--line);padding-top:10px}
.dcards>summary{cursor:pointer;font-weight:700;font-size:15px;padding:6px 0}
.mcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:12px;margin-top:10px}
.mcard{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);display:flex;flex-direction:column}
.mcard>a,.mcard>.cardpic{display:block}
.mcard .cardpic{width:100%!important;height:auto!important;aspect-ratio:1/1;border-radius:0;border:0}
.mcbody{padding:10px 12px 12px;display:flex;flex-direction:column;gap:8px}
.mcrow{display:flex;gap:8px;align-items:center}.mcrow b{font-size:14px;line-height:1.25}
.mcqty{font-size:15px}.mcqty b{font-size:18px}
.mcard .bigbtn{min-height:42px;font-size:15px;width:100%}
.cardpic{object-fit:cover;border-radius:8px;border:1px solid var(--line);background:#fff;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.cardpic.none{font-size:11px;color:var(--muted);background:var(--surface-2);padding:4px}
.mccell{display:table-cell}.mccell a{display:inline-block}.mccell .lnk{display:block;margin-top:3px}
.sidecard{border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px;width:100%;box-sizing:border-box}
.sidecard .cardpic{width:100%!important;height:auto!important;aspect-ratio:1/1}
.bignote{font-size:16px;margin:0 0 6px}
@media (max-width:640px){.jobs{padding:16px}.jtext b{font-size:17px}.jbtns{width:100%}.jbtns .bigbtn{flex:1}}
details.dmore{margin-top:12px;border:1px solid var(--line);border-radius:12px;padding:0 14px;background:var(--surface)}
details.dmore>summary{cursor:pointer;padding:12px 0;font-weight:700;font-size:15px;color:var(--muted)}
details.dmore[open]>summary{color:var(--fg)}
details.dmore>*:last-child{margin-bottom:12px}
.shipnote{background:var(--warn-soft);border:1px solid #f3d38c;border-radius:12px;padding:12px 14px;font-size:15px;margin:10px 0;line-height:1.45}
/* One card per FBA shipment */
.card.indship{border-left:6px solid var(--st-gray);margin-bottom:16px}
.card.indship.violet{border-left-color:var(--st-violet)}.card.indship.blue{border-left-color:var(--st-blue)}.card.indship.orange{border-left-color:var(--st-orange)}.card.indship.green{border-left-color:var(--st-green)}
.card.indship.open{box-shadow:0 0 0 2px var(--brand-soft),var(--shadow)}
.indship .tw{margin-top:6px}
.indship .dshead h3{font-size:20px}
/* Barcode and shipping label upload boxes on every shipment */
.upboxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin:12px 0}
.upbox{border:2px dashed var(--line-2);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;background:var(--surface-2)}
.upbox.has{border-style:solid;border-color:#a8e3c4;background:var(--ok-soft)}
.uptitle{font-size:16px;font-weight:800}
.upbox.has .uptitle{color:var(--ok)}
.upbox .muted{font-size:14px}
.uplabel{cursor:pointer}
/* FBA shipment window (Flarko Hub's line window) */
.drawer.wide{width:min(1080px,100%)}
.fbawin{display:flex;flex-direction:column;gap:14px}
.lwtop{display:flex;flex-direction:column;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.lwacts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lwacts .nextstep{font-size:15px;padding:10px 18px;border-radius:12px;background:var(--brand);color:var(--on-brand)}
.lwgrid{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:760px){.lwgrid{grid-template-columns:minmax(0,1fr)}}
.lwside{display:flex;flex-direction:column;gap:12px}
.lwside .pics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lwside .pics .pph,.lwside .pics .cardpic{width:100%!important;height:auto!important;aspect-ratio:1/1;border-radius:12px;border:1px solid var(--line)}
.lwside .pics a{display:block}
.btn.wide{display:flex;justify-content:center;width:100%;box-sizing:border-box;text-decoration:none}
.btn.ok{background:var(--ok-soft);color:var(--ok);border-color:transparent;text-decoration:none}
.facts{border:1px solid var(--line);border-radius:12px;padding:4px 14px;background:var(--surface)}
.frow1{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.frow1:last-child{border-bottom:0}.frow1 span{color:var(--muted)}.frow1 b{text-align:right}
.amzside{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--surface-2);display:flex;flex-direction:column;gap:6px}
.cap{font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.lwmain{display:flex;flex-direction:column;gap:12px}
.lwmain .sec{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--surface-2);display:flex;flex-direction:column;gap:10px}
.g4{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:10px}
.g2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:10px;align-items:end}
@media (max-width:560px){.g2{grid-template-columns:1fr}}
.fl{display:flex;flex-direction:column;gap:5px;font-size:13.5px;font-weight:700}
.fl i{font-style:normal;font-weight:500;color:var(--muted)}
.fl input,.fl select,.fl textarea{font-weight:500}
.fl.wide{grid-column:1/-1}
.filerow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-height:38px}
.chkline{display:flex;gap:8px;align-items:center;font-weight:600;font-size:14px}
.lwfoot{display:flex;gap:10px;align-items:center;position:sticky;bottom:-28px;background:var(--surface);padding:12px 0;border-top:1px solid var(--line)}
.lwmain .cartons{margin-top:0}
.notechip{display:inline-flex;align-self:flex-start;margin-top:3px;font-size:11.5px;font-weight:700;color:#8a5a00;background:var(--warn-soft);border-radius:99px;padding:1px 9px}
.stcell .nextstep{margin-top:4px;font-size:12px;padding:4px 10px}.stcell .waitfor{display:inline-block;margin-top:4px;font-size:11.5px;padding:3px 9px}
.chkline input{width:auto;margin:0}
.lwfoot{bottom:calc(-28px - env(safe-area-inset-bottom,0px));z-index:2}
.g2f{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
.g2f .fl{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface)}
.lwmain .chkline{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;text-align:left}
.notechip{color:var(--warn)}
/* New FBA shipment form: barcode and label uploads, the SKU's locked message card */
.shipline .upslot,.shipline .cardlock{display:flex;flex-direction:column;gap:6px;min-width:0}
.shipline .upslot .fl,.shipline .cardlock .fl{font-size:13px;color:var(--muted);font-weight:600}
.shipline .upline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:38px}
.shipline .upname{font-size:13px;overflow-wrap:anywhere}
.shipline .upslot.busy .btn{pointer-events:none;opacity:.5}
.shipline .cardlockin{display:flex;gap:10px;align-items:center}
.shipline .cardlockin .cardpic{border-radius:8px;flex:none}
.form.shipline{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);align-items:start}
.form.shipline>.span2{grid-column:auto}
.form.shipline>label.inline{align-self:center!important;margin-top:22px}
@media (max-width:1100px){.form.shipline{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.form.shipline>.span2{grid-column:1/-1}.form.shipline>label.inline{margin-top:0}}
.form.shipline{position:relative}.shipline .linedel{position:absolute;right:0;top:8px}
/* A task opened from a pop-up note: its own row (status, Open) on top of the feedback */
.drawtask{margin:-4px 0 12px}.drawtask .task{border:1px solid var(--line);border-radius:12px;padding:10px 12px}
/* Shipment window on a phone: long links in a note wrap, the cartons table scrolls inside its box */
#drawer .shipnote,#drawer .shipnote a,#drawer .note a{overflow-wrap:anywhere;word-break:break-word}
.lwmain,.lwmain .sec{min-width:0}.lwmain .tw{max-width:100%;overflow-x:auto}
/* Tracking number in the New FBA shipment form, and the one-click Track buttons */
.form.shipline>.amzf{grid-column:1/2}.form.shipline>.trkf{grid-column:2/4}
@media (max-width:1100px){.form.shipline>.amzf{grid-column:1/2}.form.shipline>.trkf{grid-column:2/3}}
@media (max-width:520px){.form.shipline>.amzf,.form.shipline>.trkf{grid-column:1/-1}}
.trkrow{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.trkrow .btn{max-width:100%;overflow-wrap:anywhere}
