:root {
  --bg: #151719;
  --surface: #1d2023;
  --raised: #24282b;
  --line: #34393d;
  --muted: #adb5ba;
  --ink: #f3f5f4;
  --accent: #c4dfa1;
  --accent-dark: #293728;
  --status-width: 183px;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, select, input[type="checkbox"] { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1480px; width: calc(100% - 96px); margin-inline: auto; }
.top { background: #181a1d; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { background: #f5f6f5; border-radius: 8px; padding: 5px 8px; display: flex; }
.brand-text { display: grid; gap: 3px; }
.brand-text strong { font-size: 16px; }
.brand-text span { color: var(--muted); font-size: 12px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 650; color: var(--accent); background: var(--accent-dark); white-space: nowrap; }
.demo-pill span, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.nav-shell { border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 28px; }
.nav a { display: flex; gap: 8px; align-items: center; padding: 17px 2px 15px; text-decoration: none; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav a[aria-current="page"] { border-color: var(--accent); color: var(--ink); }
.nav a:hover { color: var(--ink); }
.nav-number, .mono { font-family: ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.nav-number { font-size: 11px; color: var(--muted); }
.nav a[aria-current="page"] .nav-number { color: var(--accent); }
.nav-count { background: var(--raised); border-radius: 5px; padding: 2px 6px; font-size: 11px; }
main { min-height: 60vh; padding-block: 42px 32px; }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.045em; margin: 0; }
.lead, .subtle { color: var(--muted); line-height: 1.5; }
.lead { margin: 11px 0 0; font-size: 15px; }
.subtle { margin: 0; font-size: 13px; }
.demo-note { display: flex; gap: 9px; align-items: baseline; border: 1px solid #42513c; border-radius: 9px; background: #202821; padding: 11px 14px; margin: 0 0 20px; color: #d5ddcf; font-size: 13px; line-height: 1.45; }
.demo-note strong { color: var(--accent); flex: none; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.metric { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.metric strong { font-size: 24px; font-weight: 650; line-height: 1; }
.metric span { color: var(--muted); font-size: 13px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 16px; }
.panel-head { padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.panel-foot { border-top: 1px solid var(--line); padding: 12px 18px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); scrollbar-color: #68716b var(--surface); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); background: var(--raised); font-size: 12px; line-height: 1.25; }
tbody tr:last-child > * { border-bottom: 0; }
.field { min-width: 170px; }
.field.compact { min-width: 118px; }
.field.wide { min-width: 218px; }
.pinned { position: sticky; z-index: 1; }
.status-col { left: 0; width: var(--status-width); min-width: var(--status-width); }
.sku-col { left: var(--status-width); min-width: 110px; border-right: 1px solid var(--line); }
.action-col { right: 0; min-width: 190px; border-left: 1px solid var(--line); }
.done-actions { display: flex; align-items: center; gap: 10px; }
.live-actions { display: grid; gap: 6px; }
.live-login { max-width: 560px; padding: 20px; }
.live-login form { display: grid; gap: 15px; }
.live-login label { display: grid; gap: 7px; }
.live-login button { justify-self: start; }
.live-busy { cursor: progress; }
.review-card textarea[data-comment] { margin-top: 9px; }
.sku { display: inline-block; font-size: 13px; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.3; font-weight: 650; }
.status.review, .status.done { color: var(--accent); }
.status.running .status-dot { background: none; border: 1px solid var(--accent); }
input:not([type="checkbox"]), select, textarea { width: 100%; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 9px; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #9ba5a9; }
textarea { resize: vertical; min-height: 58px; }
.cell-value { color: var(--muted); font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; gap: 6px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--raised); font-size: 13px; font-weight: 650; white-space: nowrap; }
.button:hover:not(:disabled) { border-color: var(--accent); }
.primary { background: var(--accent); color: #1b2619; border-color: var(--accent); }
.primary:hover:not(:disabled) { background: #d8ecc3; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.empty { padding: 25px 18px; border-top: 1px solid var(--line); color: var(--muted); }
.archive { padding: 14px 18px; }
summary { color: var(--muted); cursor: pointer; font-size: 13px; }
.archive-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.review-card { padding: 18px; }
.review-head, .review-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-head { margin-bottom: 16px; }
.review-head h2 { margin-bottom: 5px; }
.progress { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-size: 12px; color: var(--accent); white-space: nowrap; }
.frames { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); gap: 12px; }
.frame { min-width: 0; overflow: hidden; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); }
.frame:has(input:checked) { border-color: #7b926b; }
.frame-photo { display: block; width: 100%; position: relative; padding: 0; border: 0; background: var(--raised); }
.frame-photo:focus-visible { outline-offset: -3px; }
.frame-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.frame-photo span { position: absolute; right: 6px; bottom: 6px; border-radius: 5px; background: #151719e8; color: var(--ink); padding: 4px 7px; font-size: 13px; }
.frame-photo:hover span { background: var(--accent); color: var(--bg); }
.frame-body { padding: 9px; }
.frame-name { display: flex; gap: 6px; align-items: baseline; min-height: 39px; font-size: 12px; font-weight: 650; }
.frame-name span { color: var(--accent); }
.check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; cursor: pointer; }
.check input { accent-color: var(--accent); margin: 0; width: 15px; height: 15px; }
.revision { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.comments { border: 0; padding: 0; margin: 16px 0; min-width: 0; }
.comments legend { font-size: 13px; font-weight: 650; padding: 0; margin-bottom: 8px; }
.comment-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: 10px; }
.comment label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.review-actions { flex-wrap: wrap; margin-top: 16px; }
.footer { padding-block: 16px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.sep { padding: 0 4px; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); border: 1px solid var(--accent); color: var(--ink); padding: 12px 14px; background: #262f25; border-radius: 8px; font-size: 14px; z-index: 4; box-shadow: 0 12px 28px #0005; }
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0; max-width: calc(100vw - 24px); }
dialog::backdrop { background: #090b0dde; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 9px 13px; }
.dialog-head span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.dialog-head button { font-size: 22px; color: var(--ink); border: 1px solid var(--line); background: var(--raised); border-radius: 6px; width: 34px; height: 34px; }
dialog img { display: block; max-width: 100%; max-height: calc(90dvh - 57px); width: auto; height: auto; margin: auto; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .action-col { position: static; }
  main { padding-top: 32px; }
}
@media (max-width: 560px) {
  :root { --status-width: 110px; }
  .wrap { width: calc(100% - 24px); }
  .brand-mark { padding: 4px; }
  .brand-mark img { width: 65px; height: auto; }
  .brand { gap: 8px; }
  .brand-text strong { font-size: 13px; }
  .brand-text span { font-size: 11px; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; gap: 5px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric { padding: 10px; }
  .metric span { font-size: 12px; }
  .sku-col { min-width: 86px; }
  th, td { padding: 9px; }
  .heading { display: block; }
  .heading > .button { margin-top: 12px; }
  .review-card { padding: 12px; }
  .frames { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
