/* SellerSpring staff workspace: native controls, no external assets or fonts. */
:root {
  color-scheme: light;
  --ink:#172d2b; --body:#2e4541; --muted:#596e69; --border:#d7e2dd;
  --surface:#fff; --canvas:#f3f7f4; --side:#102d29; --side-deep:#0b2421;
  --mint:#0f6956; --mint-dark:#0a5243; --mint-soft:#e0f2e9;
  --coral:#a43e28; --coral-soft:#fff0e9; --error:#a13143; --error-soft:#fff0f2;
  --ring:#26745f; --rad:14px; --small:8px; --side-w:238px;
  font: 100%/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;background:var(--canvas);color:var(--body);min-height:100vh;}
h1,h2,h3,h4 {color:var(--ink);line-height:1.28;text-wrap:balance}
h1 {font-size:clamp(1.7rem,2.6vw,2.5rem);letter-spacing:-.04em;margin:.2em 0 .3em}
h2 {font-size:1.3rem;letter-spacing:-.025em;margin:0 0 1rem}
h3 {font-size:1.06rem;margin:0 0 .65rem}
small,.muted {color:var(--muted);font-size:.875rem}
p {margin:.4em 0 .8em}
a {color:var(--mint-dark);text-underline-offset:.19em;overflow-wrap:anywhere}
a:hover {color:#063e33}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--ring);outline-offset:3px
}
button,.btn,input,select,textarea {font:inherit;color:inherit}
button,.btn {
  display:inline-flex;justify-content:center;align-items:center;gap:.4rem;text-align:center;
  min-height:39px;padding:.43rem .86rem;border:1px solid #c5d5ce;border-radius:var(--small);
  color:#26473d;background:#fff;cursor:pointer;font-size:.9rem;font-weight:600;text-decoration:none;
  line-height:1.45;transition:background .15s,border-color .15s,box-shadow .15s;
}
button:not(:disabled):hover,.btn:not([aria-disabled=true]):hover {background:#eff6f1;border-color:#92b4a6}
button:disabled,.btn[aria-disabled=true] {background:#f1f3f1;color:#68716d;border-color:#dce2dd;cursor:not-allowed}
.primary:not(:disabled) {background:var(--mint);border-color:var(--mint);color:white}
.primary:not(:disabled):hover {background:var(--mint-dark);border-color:var(--mint-dark);color:white}
.danger:not(:disabled) {color:var(--error);background:#fff8f8;border-color:#e8b6be}
.danger:not(:disabled):hover {background:var(--error-soft);border-color:#c67584}
input:not([type=checkbox]):not([type=radio]),select,textarea {
  display:block;max-width:100%;min-width:0;min-height:40px;padding:.45rem .66rem;border:1px solid #bdcfc5;
  border-radius:var(--small);background:#fff;color:var(--ink);font-size:.94rem;line-height:1.5
}
input[type=checkbox],input[type=radio] {accent-color:var(--mint);width:1.05rem;height:1.05rem;vertical-align:middle}
input::placeholder,textarea::placeholder {color:#64766e}
textarea {resize:vertical;width:100%;min-height:6rem}
select {
  appearance:none;padding-right:2.25rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23405b50' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position:right .6rem center;background-repeat:no-repeat
}
.shell {display:grid;grid-template-columns:var(--side-w) minmax(0,1fr);min-height:100vh}
.sidebar {
  position:sticky;top:0;align-self:start;height:100vh;height:100dvh;overflow:auto;
  display:flex;flex-direction:column;gap:1.4rem;color:#e3f0e8;background:linear-gradient(160deg,var(--side),var(--side-deep));
  padding:1.65rem .95rem 1.1rem;border-right:1px solid #1c3931
}
.brand {display:flex;align-items:center;gap:.72rem;color:#f1faf4;font-size:1.06rem;font-weight:750;letter-spacing:.01em;text-decoration:none;padding:0 .45rem}
.brand img,.brand svg {flex:none;max-width:40px;max-height:40px}
.sidebar small,.sidebar .muted {color:#b0c9bc}
.sidebar a {color:inherit}
.nav {display:grid;align-content:start;gap:.25rem}
.nav-item,.nav a,.nav button {
  display:flex;justify-content:flex-start;align-items:center;gap:.65rem;color:#d5e6dc;background:transparent;
  width:100%;padding:.64rem .72rem;border:1px solid transparent;text-decoration:none;border-radius:8px;
  text-align:start;font-size:.94rem;line-height:1.5;font-weight:520
}
.sidebar .nav :is(button,a):hover {color:white;background:#214238;border-color:#2a5045}
.nav .active,.nav .nav-item.active,.nav [aria-current=page] {color:#f6fff9;background:#285145;border-color:#396856;box-shadow:inset 3px 0 #a6e2bc;font-weight:700}
.sidebar :focus-visible {outline-color:#b4efcb}
.main {min-width:0;width:100%;padding:0 clamp(1.15rem,3vw,3.15rem) 3.2rem}
.topbar {display:flex;align-items:center;justify-content:space-between;gap:.85rem;flex-wrap:wrap;border-bottom:1px solid var(--border);padding:1rem 0;color:var(--muted);font-size:.9rem}
.hero {margin:1.5rem 0 1.2rem;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.9rem}
.hero :is(p,h1,h2):last-child {margin-bottom:0}
.eyebrow {font-size:.75rem;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--mint);margin:0 0 .2rem}
.stats {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),1fr));gap:.85rem;margin:1.15rem 0}
.stat,.panel,.card,.details {
  background:var(--surface);border:1px solid var(--border);border-radius:var(--rad);
  box-shadow:0 2px 6px -5px #153b2780
}
.stat {padding:1rem 1.1rem;min-width:0;border-top:3px solid #aecfbb;color:var(--muted);font-size:.9rem}
.stat strong,.stat b,.metric {font-variant-numeric:tabular-nums;color:var(--ink);font-size:clamp(1.45rem,2.25vw,2rem);font-weight:730;line-height:1.3}
.stat strong,.stat b {display:block;margin:.16rem 0}
.panel,.details {padding:clamp(.95rem,1.7vw,1.55rem);margin-bottom:1rem;min-width:0}
.card {padding:1rem;min-width:0}
.stack {display:grid;gap:.8rem}
.sku-review-item {display:flex;align-items:flex-start;gap:.65rem;margin:.55rem 0;padding:.65rem .8rem;border:1px solid var(--border);border-radius:var(--small)}
.sku-review-item input {flex:none;margin-top:.3rem}
.sku-review-item:has(input:checked) {background:var(--mint-soft);border-color:var(--mint)}
.sku-product {display:block;color:var(--muted)}
.grid2 {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.row,.toolbar,.bar,.tabs {display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.toolbar,.bar {justify-content:space-between;margin-bottom:.8rem}
.tabs {gap:.3rem;margin:.5rem 0 1rem}
.tabs .active,.tabs [aria-selected=true] {background:var(--mint-soft);border-color:#a6c3b2;color:var(--mint-dark)}
.filters {display:flex;align-items:end;flex-wrap:wrap;gap:.65rem;margin:.65rem 0 .9rem;padding:.8rem;background:#f6f9f6;border:1px solid #e1e9e2;border-radius:10px}
.field,.filters label {display:flex;flex-direction:column;gap:.25rem;font-size:.875rem;font-weight:550;color:#3e574a}
.filters :is(input,select):not([type=checkbox]) {max-width:16rem}
.field>:is(input,select,textarea):not([type=checkbox]) {width:100%}
.tablewrap {max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:10px;scrollbar-color:#acc2b6 #f1f5f1}
table {width:100%;border-collapse:collapse;font-size:.925rem;line-height:1.55}
th,td {text-align:start;vertical-align:middle;padding:.78rem .82rem;border-bottom:1px solid #e8eee9;font-variant-numeric:tabular-nums}
th {background:#f1f6f1;color:#4a6053;font-size:.875rem;font-weight:680;white-space:nowrap;position:sticky;top:0;z-index:1}
td {background:white}
tbody tr:hover td {background:#f7faf7}
tbody tr:last-child td {border-bottom:none}
td button,td .btn {min-height:33px;padding:.29rem .6rem;white-space:nowrap}
th button {border:0;box-shadow:none;background:transparent!important;font-size:inherit;color:inherit;min-height:30px;padding:.15rem .2rem}
.chip,.pill {display:inline-flex;align-items:center;max-width:100%;gap:.3rem;white-space:normal;border-radius:99px;padding:.18rem .58rem;background:#eaf0eb;color:#435a4c;line-height:1.5;font-size:.875rem;font-weight:600}
.good {color:#14563f;background:#e0f3e7}
.warn {color:var(--coral);background:var(--coral-soft)}
.bad {color:var(--error);background:var(--error-soft)}
.notice {padding:.75rem .95rem;background:#e9f4eb;color:#244f3e;border:1px solid #c2dcca;border-radius:9px;margin:.75rem 0;font-size:.92rem}
.notice.warn {background:var(--coral-soft);border-color:#efd0bd;color:#85351f}
.notice.bad {background:var(--error-soft);border-color:#efc5cd;color:var(--error)}
.empty {border:1px dashed #bfd0c5;border-radius:10px;background:#fafcf9;color:var(--muted);text-align:center;padding:2rem 1rem}
details:not(.details) {border-bottom:1px solid var(--border);padding:.5rem .1rem}
summary {cursor:pointer;font-weight:630;color:var(--ink)}
.modal,dialog {border:1px solid #c2d0c6;border-radius:17px;background:white;color:var(--body);width:min(620px,calc(100vw - 2rem));max-height:83vh;max-height:83dvh;padding:1.4rem;overflow:auto;box-shadow:0 20px 75px #0c2e2a30}
dialog::backdrop {background:#102a26a6}
/* Let the evidence scroll without moving the decision or close controls off screen. */
dialog[open]:has(#reviewScope) {display:flex;flex-direction:column;overflow:hidden}
dialog:has(#reviewScope) #dialogbody, #reviewScope {display:flex;flex-direction:column;min-height:0}
dialog:has(#reviewScope) > :is(hr,button) {flex:none}
dialog:has(#reviewScope) > button {align-self:flex-start}
.review-scroll {min-height:0;overflow:auto;overscroll-behavior:contain;padding:.2rem .4rem .65rem}
.review-performance {margin-bottom:1rem}
.review-performance[open] > .grid2 {margin:.6rem 0;gap:.35rem 1rem}
.review-scroll > button {margin-top:.65rem}
.review-actions {flex:none;display:flex;justify-content:space-between;align-items:center;gap:.45rem 1rem;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:.65rem}
.review-actions .row {margin-inline-start:auto}
dialog:has(#reviewScope) > hr {margin:.55rem 0}
dialog form {display:grid;gap:.75rem}
:is(form,dialog) .row:last-child {justify-content:flex-end}
hr {border:0;border-top:1px solid var(--border);margin:1rem 0}
code {overflow-wrap:anywhere}
@media(max-width:1020px) {
  :root {--side-w:194px}
  .sidebar {padding-inline:.7rem}
  .main {padding-inline:1.05rem}
}
@media(max-width:760px) {
  .shell {display:block}
  .sidebar {position:relative;height:auto;width:100%;padding:.75rem 1rem;gap:.6rem;overflow:visible}
  .nav {display:flex;overflow-x:auto;gap:.35rem;padding:.25rem .18rem .42rem}
  .nav-item,.nav button,.nav a {width:auto;flex:0 0 auto;white-space:nowrap;min-height:36px;padding:.4rem .65rem}
  .nav .active,.nav [aria-current=page] {box-shadow:inset 0 -2px #a6e2bc}
  .main {padding-inline:.85rem}
  .topbar {padding-block:.75rem}
  .hero {margin:1.1rem 0 .75rem}
  .stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
  .stat {padding:.7rem .78rem}
  .grid2 {grid-template-columns:1fr}
  .filters {align-items:stretch}
  .filters label {flex:1 1 9rem}
  .filters :is(input,select):not([type=checkbox]) {max-width:100%}
  .tablewrap table {min-width:38rem}
  th,td {padding:.6rem}
  dialog {padding:1rem}
}
@media(max-width:360px) {.stats {grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce) {* {scroll-behavior:auto!important;transition:none!important}}
@media print {
  .shell {display:block}
  .sidebar,.topbar,.toolbar,.filters,button,dialog {display:none!important}
  body,.main {background:white;color:black;padding:0}
  .stat,.panel,.card,.details {box-shadow:none;break-inside:avoid}
  .tablewrap {overflow:visible}
  th {position:static}
}
