:root {
  --ink: #19211d;
  --muted: #6d756f;
  --paper: #f5f4ef;
  --panel: #fffefb;
  --line: #deddd6;
  --line-strong: #c9c8c0;
  --forest: #193f32;
  --forest-2: #285d49;
  --sage: #dfe9df;
  --lime: #d8f177;
  --orange: #e86f3c;
  --red: #a93d32;
  --shadow: 0 18px 50px rgba(25, 33, 29, .08);
  --radius: 18px;
  font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }
h2 { margin-bottom: 5px; font-size: 20px; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; }
.eyebrow { color: var(--forest-2); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 18px; color: #fff; background: var(--forest); font: 800 20px Georgia, serif; letter-spacing: -.06em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand-mark.small { width: 39px; height: 39px; border-radius: 11px; font-size: 15px; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 20% 10%, #e6eadf 0, transparent 34%), linear-gradient(135deg, #f4f2ec 0%, #eae9e2 100%); }
.login-card { width: min(560px, 100%); padding: 48px; background: rgba(255,254,251,.94); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 90px rgba(25,63,50,.14); }
.login-card .brand-mark { margin-bottom: 28px; }
.login-card h1 { font-size: 36px; }
.login-lead { color: var(--muted); line-height: 1.75; }
.stack-form { margin: 32px 0 24px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; padding: 11px 12px; outline: none; transition: border .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(40,93,73,.12); }
.field-with-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.form-error { margin-top: 8px; color: var(--red); font-weight: 700; }
.privacy-note { display: flex; gap: 12px; padding: 15px; border-radius: 13px; background: #f0f4ed; color: var(--muted); line-height: 1.45; }
.privacy-note strong { color: var(--ink); }
.status-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #9aa19c; }
.status-dot.safe { background: #48a56f; box-shadow: 0 0 0 5px rgba(72,165,111,.11); }
.status-dot.waiting { background: #e1a339; box-shadow: 0 0 0 5px rgba(225,163,57,.12); }
.button { border: 1px solid transparent; border-radius: 10px; padding: 10px 15px; cursor: pointer; font-weight: 800; transition: transform .12s, background .12s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button.primary { color: #fff; background: var(--forest); }
.button.secondary { color: #fff; background: var(--forest-2); }
.button.ghost { border-color: var(--line-strong); background: transparent; }
.button.text { background: transparent; }
.button.danger { color: var(--red); }
.button.small { padding: 7px 10px; font-size: 12px; }
.button.wide { width: 100%; margin-top: 14px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 18px; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 244px; padding: 22px 16px 17px; color: #f6f5f0; background: #142d25; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 26px; border-bottom: 1px solid rgba(255,255,255,.11); }
.side-brand span:last-child { display: grid; gap: 2px; }
.side-brand small { color: #9eb5a8; font-size: 10px; letter-spacing: .08em; }
.nav-list { display: grid; gap: 7px; margin-top: 24px; }
.nav-list a { display: flex; gap: 12px; align-items: center; padding: 13px 12px; border-radius: 11px; color: #b9c9bf; font-weight: 700; }
.nav-list a:hover, .nav-list a.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-index { color: #789387; font: 700 10px ui-monospace, monospace; }
.nav-list a.active .nav-index { color: var(--lime); }
.side-boundary { display: flex; gap: 10px; margin-top: auto; padding: 14px; border: 1px solid rgba(216,241,119,.22); border-radius: 13px; color: #c7d5cc; background: rgba(216,241,119,.06); }
.boundary-icon { color: var(--lime); font-size: 21px; }
.side-boundary strong { color: #fff; font-size: 12px; }
.side-boundary p { margin: 3px 0 0; font-size: 11px; }
.side-user { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 13px 7px 0; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-weight: 900; }
.user-copy { min-width: 0; display: grid; flex: 1; }
.user-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-copy span { color: #8fa79a; font-size: 10px; }
.side-user .icon-button { color: #a8baaf; }
.main-column { margin-left: 244px; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; min-height: 70px; align-items: center; justify-content: space-between; padding: 14px 30px; border-bottom: 1px solid var(--line); background: rgba(245,244,239,.92); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb b { color: var(--ink); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.server-state { margin-right: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.server-state i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #e1a339; }
.server-state.ready i { background: #48a56f; box-shadow: 0 0 0 4px rgba(72,165,111,.1); }
.content { max-width: 1500px; margin: 0 auto; padding: 30px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.date-badge { display: grid; min-width: 124px; padding: 13px 17px; border-left: 3px solid var(--forest); background: rgba(255,255,255,.52); }
.date-badge span { color: var(--muted); font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.metric-card { position: relative; overflow: hidden; display: grid; gap: 4px; min-height: 120px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card b { font: 600 33px Georgia, serif; }
.metric-card small { align-self: end; color: #999e99; }
.metric-card.accent { color: #fff; border-color: var(--forest); background: var(--forest); }
.metric-card.accent span, .metric-card.accent small { color: #bfd0c6; }
.metric-card.accent::after { content: ""; position: absolute; width: 100px; height: 100px; right: -30px; bottom: -42px; border: 17px solid rgba(216,241,119,.18); border-radius: 50%; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 5px 20px rgba(25,33,29,.025); }
.intake-panel, .inventory-panel, .ocr-panel, .recent-panel { padding: 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-head > div:first-child { min-width: 0; }
.panel-head h2 { margin: 3px 0 0; }
.panel-head p { color: var(--muted); }
.step-chip { color: var(--forest-2); font: 800 9px ui-monospace, monospace; letter-spacing: .1em; }
.local-badge { padding: 6px 8px; border-radius: 7px; color: var(--forest); background: var(--lime); font: 900 9px ui-monospace, monospace; letter-spacing: .08em; }
.form-grid { display: grid; gap: 12px; margin-bottom: 13px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.span-two { grid-column: span 2; }
.label-help { color: var(--muted); font-size: 10px; font-weight: 500; }
.source-tabs, .mini-tabs { display: flex; gap: 5px; margin: 17px 0 8px; }
.source-tab, .mini-tabs button { padding: 8px 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; font-size: 12px; }
.source-tab.active, .mini-tabs button.active { color: var(--forest); background: var(--sage); }
.drop-zone { min-height: 135px; place-items: center; align-content: center; gap: 6px; border: 1.5px dashed #aeb7b0; border-radius: 13px; background: #fafaf6; text-align: center; cursor: pointer; }
.drop-zone.dragover { border-color: var(--forest-2); background: #edf3eb; }
.drop-zone small { color: var(--muted); font-weight: 500; }
.drop-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; color: var(--forest); background: var(--sage); font: 800 10px ui-monospace, monospace; }
.boundary-strip { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; padding: 9px; border-radius: 10px; color: var(--muted); background: #f2f2ed; font-size: 10px; }
.boundary-strip b { color: var(--forest); }
.boundary-strip i { color: #aaa; }
.state-pill { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.state-pill.neutral { color: #747b76; background: #eee; }
.state-pill.good { color: #24633f; background: #dcf0e3; }
.state-pill.warn { color: #855614; background: #f7e8c8; }
.inventory-file { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 11px; background: #f4f5f1; }
.file-cube { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 9px; color: var(--forest); background: #fff; border: 1px solid var(--line); }
.inventory-file div:last-child { min-width: 0; display: grid; gap: 3px; }
.inventory-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-file span { color: var(--muted); font-size: 10px; }
.inventory-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.inventory-stats > div { display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.inventory-stats span { color: var(--muted); font-size: 10px; }
.inventory-stats b { margin-top: 3px; font-size: 20px; }
.inventory-stats .safe-stat { border-color: #b9d2bf; background: #f0f7ef; }
.inventory-groups h3 { font-size: 12px; }
.inventory-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid #ecebe5; color: var(--muted); font-size: 11px; }
.inventory-row b { color: var(--ink); }
.inventory-row.safe b { color: #2d7048; }
.inline-warning { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid #e1a339; color: #765218; background: #fff7e7; line-height: 1.5; }
.span-two-panel { grid-column: 1 / -1; }
.ocr-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(320px, 1.1fr); gap: 20px; }
.preview-placeholder { position: relative; display: grid; min-height: 220px; place-items: center; align-content: center; border-radius: 14px; color: #819086; background: #e8eee8; overflow: hidden; }
.preview-placeholder span { font-weight: 800; }
.preview-placeholder small { margin-top: 5px; }
.scan-corners::before, .scan-corners::after { content: ""; position: absolute; width: 45px; height: 45px; border-color: var(--forest-2); }
.scan-corners::before { top: 24px; left: 24px; border-top: 2px solid; border-left: 2px solid; }
.scan-corners::after { right: 24px; bottom: 24px; border-right: 2px solid; border-bottom: 2px solid; }
.ocr-copy { display: grid; align-content: start; }
.ocr-status { display: flex; gap: 12px; }
.ocr-status p { margin: 4px 0; color: var(--muted); line-height: 1.55; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 16px 0 20px; list-style: none; }
.check-list li::before { content: "✓"; display: inline-grid; width: 20px; height: 20px; margin-right: 7px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--sage); font-weight: 900; }
.recent-panel { margin-top: 14px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-top: 1px solid #e9e8e2; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
td.product-cell { max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.product-cell small, .review-note { display: block; overflow: hidden; max-width: 320px; margin-top: 4px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.empty-row { padding: 34px; color: var(--muted); text-align: center; }
.empty-panel { padding: 50px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: var(--panel); text-align: center; }
.review-list, .download-list { display: grid; gap: 14px; }
.review-card, .download-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 5px 20px rgba(25,33,29,.025); }
.download-batch-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 12px; align-items: end; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.download-batch-toolbar .inline-check { align-self: center; }
.download-select { display: flex; align-items: center; gap: 8px; }
.download-select input { width: 19px; height: 19px; padding: 0; accent-color: var(--forest); }
.review-card-head, .download-card-head, .review-actions, .download-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.review-card-head h2, .download-card-head h2 { margin: 3px 0 0; }
.review-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.review-product { display: grid; gap: 5px; margin: 16px 0 12px; padding: 13px; border-radius: 11px; background: #f3f4ef; }
.review-product span { color: var(--muted); font-size: 11px; }
.review-assets { min-height: 125px; margin-bottom: 14px; }
.review-thumb { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #f0f1ed; cursor: zoom-in; text-align: left; }
.review-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.review-thumb span { display: block; overflow: hidden; padding: 7px; color: var(--muted); font-size: 9px; }
.review-thumb span b, .review-thumb span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-thumb span b { color: var(--ink); font-size: 10px; }
.review-thumb span small { margin-top: 3px; color: #59665f; }
.review-output-audit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 14px; border: 1px solid; border-radius: 10px; }
.review-output-audit.good { border-color: #8ebaa7; background: #eef8f2; color: #18533b; }
.review-output-audit.warn { border-color: #e5b35e; background: #fff7e7; color: #7a4a00; }
.review-output-audit span { flex: 1; font-size: 11px; }
.review-asset-group { margin: 12px 0; }
.review-asset-group h4 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 7px; font-size: 12px; }
.review-asset-group h4 span { color: var(--muted); font-weight: 500; }
.review-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 8px; }
.loading-line { align-self: center; color: var(--muted); }
.review-actions { justify-content: flex-end; margin-top: 12px; }
.export-note { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding: 14px 16px; border: 1px solid #b9d2bf; border-radius: 12px; background: #eef7ed; }
.export-note span { color: var(--muted); font-size: 11px; }
.download-card { display: grid; gap: 13px; }
.spec-limit { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid; border-radius: 10px; font-size: 11px; }
.spec-limit.good { border-color: #8ebaa7; background: #eef8f2; color: #18533b; }
.spec-limit.warn { border-color: #df9c4d; background: #fff4df; color: #7a3f00; }
.category-suggestion { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(280px, .7fr); gap: 14px; align-items: end; padding: 14px; border: 1px solid #bfd0c4; border-radius: 12px; background: #f0f6ee; }
.category-suggestion > div { display: grid; gap: 5px; }
.category-suggestion span { color: var(--muted); font-size: 10px; }
.download-actions { align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.download-actions small { color: var(--muted); line-height: 1.5; }
.workflow-heading { align-items: center; }
.workflow-case-picker { width: min(330px, 100%); padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.workflow-case-picker label { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.workflow-case-picker select { padding: 8px 10px; }
.workflow-rail { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; padding: 13px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 800; }
.workflow-rail i { width: 6vw; max-width: 90px; height: 1px; margin: 0 14px; background: var(--line-strong); }
.workflow-rail .active { color: var(--forest); }
.workflow-stack { display: grid; gap: 14px; }
.single-panel-grid { grid-template-columns: 1fr; }
.workflow-source-rows { display: grid; gap: 8px; }
.workflow-source-row { display: grid; grid-template-columns: 70px minmax(140px, .5fr) minmax(180px, 1fr) 90px 90px 90px; gap: 9px; align-items: center; }
.workflow-source-row > b { font-size: 12px; }
.workflow-source-row select, .workflow-source-row input { min-width: 0; }
.workflow-source-row [data-source-label] { color: var(--muted); background: #f7f7f3; }
.workflow-ocr-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); gap: 18px; }
.workflow-ocr-preview, .workflow-ocr-fields { display: grid; gap: 10px; align-content: start; }
.ocr-image-stage { display: grid; min-height: 330px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f2f3ef; }
.ocr-image-stage img { width: 100%; max-height: 520px; object-fit: contain; }
.ocr-image-stage span { color: var(--muted); font-size: 11px; }
.workflow-ocr-fields textarea { resize: vertical; }
.workflow-section { display: grid; grid-template-columns: 74px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.section-number { padding-top: 27px; border-right: 1px solid var(--line); color: #a9ada8; background: #f1f1ec; text-align: center; font: 500 22px Georgia, serif; }
.section-content { padding: 25px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); }
.choice-grid { display: grid; gap: 10px; margin: 8px 0 16px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice-card { grid-template-columns: auto 1fr; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--forest-2); background: #f1f6f0; }
.choice-card input { width: auto; margin-top: 3px; }
.choice-card span { display: grid; gap: 4px; }
.choice-card small { color: var(--muted); font-weight: 500; line-height: 1.5; }
.subsection-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 9px; }
.subsection-head h3 { margin-bottom: 2px; font-size: 14px; }
.variant-editor { overflow: hidden; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 11px; }
.variant-head, .variant-row { display: grid; grid-template-columns: 56px minmax(180px, 1fr) 90px 54px 54px 54px 42px; gap: 8px; align-items: center; padding: 9px 11px; }
.variant-head { color: var(--muted); background: #f0f1ec; font-size: 10px; font-weight: 800; }
.variant-row { border-top: 1px solid var(--line); }
.variant-row > input[type="checkbox"] { width: 17px; justify-self: center; }
.variant-row > input:not([type="checkbox"]) { padding: 8px 10px; }
.variant-row > b { font: 600 13px ui-monospace, monospace; }
.source-chip { padding: 5px 7px; border-radius: 999px; color: var(--muted); background: #eeeeea; text-align: center; font-size: 9px; font-weight: 800; }
.remove-variant { color: var(--red); }
.variant-empty { padding: 22px; color: var(--muted); background: #fafaf6; text-align: center; }
.selection-settings { align-items: end; }
.compact-toggles { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; background: #f1f2ed; }
.compact-toggles label, .inline-check { display: flex; grid-template-columns: none; gap: 6px; align-items: center; font-size: 11px; }
.compact-toggles input, .inline-check input { width: auto; }
.toggle-row { grid-template-columns: auto 1fr; align-items: center; padding: 10px 0; }
.toggle-row input { width: auto; }
.toggle-row span { display: grid; }
.toggle-row small { color: var(--muted); font-weight: 500; }
.size-editor { overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.size-settings { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf6; }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
.localized-size-note { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.localized-size-note b { color: var(--ink); }
.size-grid { min-width: 650px; }
.size-grid input { border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.size-grid thead input { font-weight: 800; background: #f1f2ed; }
.size-grid td, .size-grid th { padding: 0; }
.editor-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.editor-actions > div { display: flex; flex-wrap: wrap; gap: 4px; }
.product-profile-editor { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf6; }
.profile-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.profile-head h3 { margin-bottom: 2px; }
.profile-head p { margin: 0; color: var(--muted); font-size: 11px; }
.attribute-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.attribute-field, .rating-field { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.attribute-field legend, .rating-field legend { padding: 0 5px; color: var(--forest); font-size: 11px; font-weight: 900; }
.attribute-options { display: flex; flex-wrap: wrap; gap: 6px; }
.attribute-options label { display: flex; gap: 4px; align-items: center; padding: 5px 7px; border-radius: 999px; background: #eceee8; font-size: 10px; cursor: pointer; }
.attribute-options label:has(input:checked) { color: var(--forest); background: var(--sage); }
.attribute-options input { width: auto; }
.custom-attribute { display: grid; grid-template-columns: 1fr auto; gap: 5px; margin-top: 9px; }
.custom-attribute input { padding: 7px 9px; }
.rating-field { margin-top: 10px; }
.rating-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating-grid select { padding: 8px; font-size: 10px; }
.profile-generic { color: var(--muted); font-size: 11px; }
.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.template-card { position: relative; place-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.template-card:has(input:checked) { border-color: var(--forest-2); background: #f0f6ee; }
.template-card input { position: absolute; opacity: 0; }
.template-icon { display: grid; width: 58px; height: 50px; gap: 3px; padding: 4px; border: 1px solid #819086; }
.template-icon i { display: block; border: 1px solid #819086; background: #dfe7df; }
.template-icon.columns { grid-template-columns: repeat(3, 1fr); }
.template-icon.top-two { grid-template: 1fr 1fr / 1fr 1fr; }
.template-icon.top-two i:last-child { grid-column: 1 / -1; }
.template-icon.left-two { grid-template: 1fr 1fr / 1fr 1fr; }
.template-icon.left-two i:last-child { grid-column: 2; grid-row: 1 / 3; }
.b-slot-settings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.b-slot-card { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf6; }
.b-slot-title { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.b-slot-title b { font: 600 21px Georgia, serif; color: var(--forest); }
.b-slot-title span, .b-slot-card small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.b-slot-card select { padding: 8px; font-size: 11px; }
.settings-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.setting-card { padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.setting-card h3 { font-size: 12px; }
.output-switches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.output-switches label { display: flex; gap: 6px; align-items: center; padding: 8px; border-radius: 8px; background: #f2f3ee; font-size: 10px; }
.output-switches input { width: auto; }
.setting-card > .inline-check { margin-bottom: 12px; }
.delivery-section { border-color: #b8c7bc; }
.delivery-preview { margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f7f8f3; color: var(--muted); }
.delivery-preview-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.delivery-preview-grid > div { display: grid; gap: 3px; padding: 10px; border-radius: 8px; background: #fff; }
.delivery-preview-grid span { font-size: 9px; }
.delivery-preview-grid b { color: var(--forest); font-size: 18px; }
.delivery-preview p { margin: 10px 0 0; line-height: 1.5; }
.delivery-list-preview { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.delivery-list-preview span { padding: 5px 8px; border-radius: 6px; background: #fff; }
.delivery-list-preview strong { margin-top: 5px; color: var(--forest); }
.danger-text { color: var(--red) !important; }
.delivery-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.run-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.run-steps > div { min-height: 130px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.run-steps span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font: 700 11px Georgia, serif; }
.run-steps p { display: grid; gap: 5px; margin: 20px 0 0; }
.run-steps small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.delivery-summary { padding: 17px; border-radius: 12px; color: #eaf1ec; background: var(--forest); }
.delivery-summary ul { padding-left: 18px; line-height: 1.8; color: #bbccc2; }
.count-rule { display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.count-rule b { color: var(--lime); }
.count-rule span { font-size: 11px; }
.workflow-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.full-width { width: 100%; }
.desktop-panel-title { margin-bottom: 9px; font-weight: 900; }
.variant-table-head, .variant-candidate { display: grid; grid-template-columns: 72px minmax(240px, 1.4fr) minmax(170px, 1fr) 90px 70px; align-items: center; width: 100%; gap: 10px; padding: 10px 14px; }
.variant-table-head { color: var(--muted); background: #f0f1ec; font-size: 10px; font-weight: 900; }
.variant-candidate { border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.variant-candidate:hover { background: #f7f8f3; }
.variant-candidate.selected { background: #eaf1e8; box-shadow: inset 4px 0 var(--forest-2); }
.variant-candidate b { font: 700 13px ui-monospace, monospace; }
.variant-candidate span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-mark { color: var(--forest-2); font-size: 21px; font-weight: 900; text-align: center; }
.variant-approval-bar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 8px; align-items: end; margin-top: 10px; }
.bulk-variant-editor { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 10px; align-items: end; margin-top: 10px; padding: 12px; border-radius: 11px; background: #f5f5f0; }
.bulk-variant-editor textarea { min-height: 92px; resize: vertical; }
.desktop-action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.desktop-size-settings, .product-setting-panel { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf6; }
.material-row { display: grid; grid-template-columns: minmax(250px, 1fr) auto minmax(290px, auto); gap: 8px; align-items: end; margin-top: 10px; }
.desktop-size-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 11px; }
.static-size-preview { margin-top: 10px; }
.static-size-preview th, .static-size-preview td { min-width: 145px; text-align: center; }
.static-size-preview th { color: var(--ink); background: #f1f2ed; }
.desktop-run-stack { display: grid; gap: 9px; }
.desktop-run-stack .button { padding: 12px; background: #fff; }
.delivery-final-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery-final-actions .button { width: 100%; padding: 13px; }
.delivery-folder-note { margin: 14px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.reviewed-toolbar { display: grid; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px); gap: 12px; }
.reviewed-toolbar label { display: grid; gap: 6px; font-size: 11px; font-weight: 800; }
.reviewed-card-note { margin: 0; padding: 10px 12px; border-left: 3px solid var(--lime-strong); color: var(--muted); background: #f4f5ef; line-height: 1.55; }
.archive-state-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; padding: 11px 13px; border-radius: 10px; background: #f1f4ed; color: var(--muted); }
.archive-state-row span { display: flex; gap: 7px; align-items: center; }
.archive-state-row b { color: var(--forest); }
.reviewed-asset-toggle { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reviewed-asset-toggle small { color: var(--muted); }
.split-actions { justify-content: space-between; }
.archive-gallery-dialog { width: min(1320px, 98vw); max-height: 95vh; }
.archive-gallery-body { max-height: 74vh; overflow: auto; padding-right: 4px; }
.archive-load-error { display: flex; gap: 12px; align-items: center; }
.delete-case-dialog { width: min(680px, 94vw); }
.delete-impact { margin-bottom: 16px; padding: 16px; border: 1px solid #e6c8c2; border-radius: 12px; background: #fff5f2; line-height: 1.65; }
.delete-impact p { margin: 7px 0 0; }
.danger-text { color: #a53b2c; }
.reviewed-asset-toggle { display: flex; justify-content: flex-start; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(13,26,21,.62); backdrop-filter: blur(4px); }
.modal-dialog { width: min(1000px, 96vw); max-height: 92vh; overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.modal-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin-bottom: 0; }
.modal-head p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.modal-actions, .modal-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-toolbar { justify-content: space-between; }
.modal-toolbar > div { display: flex; flex-wrap: wrap; gap: 6px; }
.size-grid-dialog { width: min(1180px, 96vw); }
.size-grid-modal-body { margin-top: 15px; }
.modal-profile { margin-top: 15px; }
.asset-viewer-dialog { width: min(900px, 94vw); }
.asset-viewer-body { display: grid; place-items: center; min-height: 260px; padding-top: 16px; }
.asset-viewer-body img { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; }
.release-notes-dialog { width: min(720px, 94vw); }
.release-notes-body { padding: 20px 4px 4px; }
.release-notes-body h3 { margin: 0 0 12px; color: var(--forest); font-size: 18px; }
.release-notes-body ul { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.release-notes-body li { padding-left: 4px; color: var(--ink); font-size: 13px; line-height: 1.65; }
.release-notes-body li::marker { color: var(--lime-strong); font-weight: 900; }
.completed-long-backdrop { padding: 14px; }
.completed-long-dialog { display: flex; width: min(980px, 98vw); height: 96vh; max-height: 96vh; overflow: hidden; flex-direction: column; }
.completed-long-dialog .modal-head { flex: 0 0 auto; }
.completed-long-preview-scroll { min-height: 0; margin-top: 14px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 12px; background: #e6e8e3; flex: 1; scrollbar-gutter: stable; }
.completed-long-preview-scroll img { display: block; width: min(800px, 100%); height: auto; margin: 0 auto; background: #fff; }
.completed-long-toolbar { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-top: 12px; flex: 0 0 auto; }
.completed-long-toolbar span { color: var(--muted); font-size: 11px; text-align: center; }
.long-image-backdrop { padding: 14px; }
.long-image-dialog { display: flex; width: min(1380px, 98vw); max-height: 96vh; overflow: hidden; flex-direction: column; }
.size-image-picker-dialog { width: min(1180px, 96vw); max-height: 92vh; overflow: hidden; }
.size-image-picker-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.size-image-picker-toolbar span { margin-left: auto; font-weight: 800; color: var(--green); }
.size-image-picker-layout { display: grid; min-height: 420px; max-height: 62vh; grid-template-columns: minmax(420px, .95fr) minmax(360px, 1.05fr); gap: 14px; }
.size-image-picker-layout > div { min-height: 0; padding: 12px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #fafaf6; }
.size-image-picker-preview { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.size-image-picker-preview img { display: none; max-width: 100%; max-height: calc(62vh - 70px); object-fit: contain; }
.size-image-picker-preview img.ready { display: block; }
.long-image-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin: 14px 0; }
.long-image-toolbar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.long-image-toolbar strong { color: var(--forest); font-size: 12px; }
.long-image-layout { display: grid; min-height: 0; grid-template-columns: minmax(460px, .95fr) minmax(360px, 1.05fr); gap: 14px; flex: 1; }
.long-image-layout > div { display: flex; min-width: 0; min-height: 0; padding: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fafaf6; flex-direction: column; }
.long-image-candidates { display: grid; gap: 7px; min-height: 0; overflow-y: auto; padding-right: 4px; }
.long-image-item { display: grid; grid-template-columns: 30px 78px minmax(150px, 1fr) auto; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.long-image-item.excluded { opacity: .58; background: #f1f1ed; }
.long-image-item > label { display: grid; place-items: center; }
.long-image-item input[type="checkbox"] { width: 19px; height: 19px; padding: 0; accent-color: var(--forest); }
.long-image-thumb { display: block; width: 78px; height: 66px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #e7e9e4; cursor: zoom-in; }
.long-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.long-image-copy { min-width: 0; }
.long-image-copy b, .long-image-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.long-image-copy b { font-size: 12px; }
.long-image-copy span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.long-image-order-actions { display: grid; grid-template-columns: repeat(2, 34px); gap: 4px; }
.long-image-order-actions button { width: 34px; height: 31px; padding: 0; }
.long-image-preview-pane { overflow: hidden; }
.long-image-preview { width: min(420px, 100%); min-height: 0; margin: 0 auto; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--line-strong); background: #e6e8e3; box-shadow: 0 10px 35px rgba(25,33,29,.08); flex: 1; scrollbar-gutter: stable; }
.long-image-preview > span { display: grid; min-height: 390px; place-items: center; color: var(--muted); font-weight: 800; }
.long-image-preview figure { position: relative; margin: 0; border-bottom: 2px solid var(--lime); background: #fff; }
.long-image-preview figure:last-child { border-bottom: 0; }
.long-image-preview img { display: block; width: 100%; height: auto; }
.long-image-preview figcaption { position: absolute; top: 6px; left: 6px; max-width: calc(100% - 12px); padding: 3px 6px; overflow: hidden; border-radius: 5px; color: #fff; background: rgba(20,45,37,.8); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.b-editor-backdrop { padding: 14px; }
.b-editor-dialog { width: min(1460px, 98vw); max-height: 96vh; }
.b-editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 8px; }
.b-editor-toolbar span { margin-left: auto; color: var(--muted); font-size: 11px; }
.b-editor-layout { display: grid; grid-template-columns: minmax(430px, .85fr) minmax(420px, 1.15fr); gap: 14px; }
.b-editor-controls, .b-preview-pane { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf6; }
.b-overlay-options output { display: block; margin-top: 3px; color: var(--forest); font-weight: 900; text-align: right; }
.b-overlay-options :disabled { opacity: .48; cursor: not-allowed; }
.b-panel-controls { display: grid; gap: 8px; margin-top: 13px; }
.b-panel-row { display: grid; grid-template-columns: 65px minmax(180px, 1fr) minmax(160px, .8fr); gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.b-panel-row.selected { border-color: #d8a12b; box-shadow: 0 0 0 2px rgba(216,161,43,.15); }
.b-panel-row label { font-size: 10px; }
.b-panel-row input[type="range"] { padding: 0; }
.b-asset-picker { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.b-asset-picker-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.b-asset-picker-head span { color: var(--muted); font-size: 11px; }
.b-asset-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; max-height: 340px; padding: 3px; overflow: auto; }
.b-asset-option { min-width: 0; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.b-asset-option:hover { border-color: #86a998; }
.b-asset-option.selected { border-color: #d8a12b; box-shadow: 0 0 0 2px rgba(216,161,43,.2); }
.b-asset-thumb { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #e6e8e3; }
.b-asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-asset-option > span:last-child { display: block; margin-top: 4px; overflow: hidden; color: #47524b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.b-asset-empty { grid-column: 1/-1; padding: 24px; color: var(--muted); text-align: center; }
.canvas-shell { overflow: hidden; width: min(100%, 680px); margin: 0 auto; border: 1px solid var(--line-strong); background: #e6e8e3; }
#bPreviewCanvas { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; }
#bPreviewCanvas:active { cursor: grabbing; }
.b-preview-pane > p { margin: 9px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.b-editor-tabs { margin-bottom: 8px; }
.b-crop-backdrop { z-index: 90; }
.b-crop-dialog { width: min(1120px, 98vw); }
.b-crop-stage { display: grid; overflow: hidden; place-items: center; margin-top: 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #dfe3df; }
#bCropCanvas { display: block; width: min(100%, calc(52vh * 10 / 7)); height: auto; touch-action: none; cursor: default; }
.b-crop-controls { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 18px; align-items: center; margin-top: 12px; }
.b-crop-controls label { display: grid; grid-template-columns: auto minmax(160px, 1fr) 48px; gap: 10px; align-items: center; font-size: 11px; font-weight: 800; }
.b-crop-controls input { padding: 0; }
.b-crop-controls p { margin: 0; color: var(--muted); font-size: 11px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(13,26,21,.48); backdrop-filter: blur(3px); }
.drawer { position: absolute; inset: 0 0 0 auto; width: min(520px, 100%); overflow: auto; padding: 28px; background: var(--panel); box-shadow: -20px 0 60px rgba(0,0,0,.15); }
.drawer-head { display: flex; justify-content: space-between; }
.drawer-head .icon-button { font-size: 28px; }
.drawer-intro { color: var(--muted); line-height: 1.6; }
.add-user-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin: 24px 0; padding: 15px; border-radius: 13px; background: #f1f2ed; }
.issued-id { display: grid; gap: 8px; margin-bottom: 20px; padding: 15px; border: 1px solid #b5cfb9; border-radius: 12px; background: #eef7ed; }
.issued-id code { overflow-wrap: anywhere; color: var(--forest); font-size: 13px; }
.drawer-list-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.user-list { display: grid; }
.user-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.user-item-copy { display: grid; gap: 3px; }
.user-item-copy span { color: var(--muted); font-size: 10px; }
.user-item-actions { display: flex; gap: 6px; align-items: center; }
.user-item-actions select { width: 118px; padding: 7px; }
.toast-region { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 280px; max-width: 440px; padding: 13px 16px; border-radius: 10px; color: #fff; background: #193f32; box-shadow: var(--shadow); animation: toast-in .2s ease; }
.toast.error { background: #8e352d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
.mobile-only { display: none; }
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .span-two-panel { grid-column: auto; }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .b-slot-settings { grid-template-columns: repeat(3, 1fr); }
  .rating-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: 1fr; }
  .b-editor-layout { grid-template-columns: 1fr; }
  .long-image-layout { grid-template-columns: 1fr; }
  .size-image-picker-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .reviewed-toolbar { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main-column { margin-left: 0; }
  .mobile-only { display: grid; }
  .topbar { padding: 12px 16px; }
  .server-state, .breadcrumb span { display: none; }
  .content { padding: 20px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid, .form-grid.two, .form-grid.three, .form-grid.four, .choice-grid.two, .ocr-layout, .workflow-ocr-grid, .attribute-grid, .settings-split { grid-template-columns: 1fr; }
  .delivery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-source-row { grid-template-columns: 66px 1fr 1fr; }
  .workflow-source-row [data-source-label] { grid-column: 2 / -1; grid-row: 2; }
  .span-two { grid-column: auto; }
  .workflow-rail { overflow: auto; justify-content: flex-start; }
  .workflow-rail span { white-space: nowrap; }
  .workflow-section { grid-template-columns: 42px 1fr; }
  .section-content { padding: 18px 14px; }
  .section-number { font-size: 15px; }
  .run-steps { grid-template-columns: repeat(2, 1fr); }
  .variant-head { display: none; }
  .variant-row { grid-template-columns: 38px 1fr repeat(3, 36px) 36px; }
  .variant-row .source-chip { display: none; }
  .variant-table-head { display: none; }
  .variant-candidate { grid-template-columns: 42px 1fr 1fr 55px 38px; padding: 10px 8px; }
  .variant-approval-bar, .bulk-variant-editor, .material-row { grid-template-columns: 1fr; }
  .b-panel-row { grid-template-columns: 1fr; }
  .long-image-item { grid-template-columns: 28px 66px minmax(110px, 1fr) auto; }
  .long-image-thumb { width: 66px; height: 58px; }
  .b-crop-controls { grid-template-columns: 1fr; }
  .b-crop-controls label { grid-template-columns: 1fr 48px; }
  .b-crop-controls label > span { grid-column: 1 / -1; }
  #bCropCanvas { width: min(100%, calc(46vh * 10 / 7)); }
  .b-slot-settings { grid-template-columns: 1fr; }
  .add-user-form { grid-template-columns: 1fr; }
  .login-card { padding: 30px 22px; }
  .field-with-action { grid-template-columns: 1fr; }
  .review-card-head, .download-card-head, .download-actions, .export-note { align-items: stretch; flex-direction: column; }
  .download-batch-toolbar, .delivery-final-actions { grid-template-columns: 1fr; }
  .category-suggestion { grid-template-columns: 1fr; }
}
.sku-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; padding:12px; }
.sku-edit-card { min-width:0; padding:10px; border:2px solid #ddd; border-radius:12px; background:white; display:grid; gap:8px; }
.sku-edit-card.selected { border-color:#285c49; }
.sku-edit-card button { border:0; padding:0; background:transparent; cursor:pointer; }
.sku-edit-card canvas { width:100%; height:auto; display:block; }
.sku-edit-card small { overflow-wrap:anywhere; color:#56635c; }
