.product-module-switch { grid-template-columns: 1fr; }
.product-module-switch > button { min-height: 38px; padding: 6px 9px; }
.product-module-switch strong { font-size: 9px; }
.product-module-switch small { font-size: 6px; }
.gold-review-view { padding-bottom: 28px; }
.gold-review-heading { margin-bottom: 20px; }
.gold-file-button { cursor: pointer; }
.gold-review-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 180px); border: 1px solid var(--border); background: var(--surface); max-width: 1420px; margin: 0 auto; }
.gold-batch-panel { border-right: 1px solid var(--border); min-width: 0; }
.gold-batch-panel > header { align-items: center; border-bottom: 1px solid var(--border); display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; min-height: 52px; padding: 0 13px; }
.gold-batch-list { max-height: calc(100vh - 235px); overflow: auto; }
.gold-batch-row { background: #fff; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; display: block; padding: 13px; text-align: left; width: 100%; }
.gold-batch-row:hover { background: var(--surface-soft); }
.gold-batch-row.is-active { background: var(--primary-soft); box-shadow: inset 3px 0 var(--primary); }
.gold-batch-row strong, .gold-batch-row span { display: block; }
.gold-batch-row strong { font-size: 11px; line-height: 1.45; }
.gold-batch-row span { color: var(--muted); font-size: 9px; margin-top: 6px; }
.gold-main-panel { min-width: 0; }
.gold-batch-summary { align-items: center; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; min-height: 72px; padding: 12px 18px; }
.gold-batch-summary span, .gold-batch-summary strong { display: block; }
.gold-batch-summary span { color: var(--subtle); font-size: 8px; text-transform: uppercase; }
.gold-batch-summary strong { font-size: 14px; margin-top: 5px; }
.gold-progress-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gold-progress-chips span { background: var(--surface-soft); border: 1px solid var(--border); color: var(--muted); font-size: 9px; padding: 5px 7px; text-transform: none; }
.gold-progress-chips .yolo-prepared { background: #eaf8f3; border-color: #55a88d; color: #08745a; }
.gold-page-filters { align-items: center; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; padding: 8px 18px; }
.gold-page-filters button { background: #fff; border: 1px solid var(--border); color: var(--muted); cursor: pointer; min-height: 30px; padding: 0 9px; }
.gold-page-filters button:hover { border-color: var(--primary); color: var(--primary); }
.gold-page-filters button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gold-page-filters span { font-variant-numeric: tabular-nums; margin-left: 3px; }
.gold-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-height: calc(100vh - 303px); overflow: auto; padding: 14px; }
.gold-page-card { border: 1px solid var(--border); background: #fff; display: grid; gap: 11px; padding: 13px; }
.gold-page-card:hover { border-color: var(--border-strong); }
.gold-page-card header { display: flex; gap: 10px; justify-content: space-between; }
.gold-card-statuses { align-items: center; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.gold-page-card header span:first-child { color: var(--primary); font-size: 13px; font-weight: 750; }
.gold-page-card h3 { font-size: 11px; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.gold-page-card p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 0; }
.gold-page-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gold-page-actions button { flex: 1; min-height: 32px; padding: 0 8px; }
.gold-page-actions .gold-recall-button { align-items: center; border-color: #d79b46; color: #8a4b03; display: inline-flex; gap: 5px; justify-content: center; }
.gold-page-actions .gold-recall-button svg { height: 13px; width: 13px; }
.gold-recall-content { padding: 20px 22px 4px; }
.gold-recall-content > p { color: var(--muted); font-size: 10px; line-height: 1.65; margin: 14px 0 17px; }
.gold-recall-page { background: var(--surface-soft); border-left: 3px solid var(--amber); padding: 12px 13px; }
.gold-recall-page strong, .gold-recall-page span { display: block; }
.gold-recall-page strong { font-size: 12px; line-height: 1.45; }
.gold-recall-page span { color: var(--muted); font-size: 9px; margin-top: 5px; }
.gold-recall-content label { display: block; font-size: 10px; font-weight: 700; }
.gold-recall-content label span { color: var(--red); font-size: 8px; margin-left: 4px; }
.gold-recall-content textarea { border: 1px solid var(--border-strong); border-radius: 4px; line-height: 1.55; margin-top: 7px; min-height: 92px; padding: 9px 10px; resize: vertical; width: 100%; }
.gold-status { border: 1px solid var(--border); color: var(--muted); font-size: 8px; padding: 3px 5px; white-space: nowrap; }
.gold-status.in_progress { border-color: #dfad62; color: var(--amber); }
.gold-status.submitted { border-color: #6aa0df; color: var(--primary); }
.gold-status.approved { border-color: #6ab391; color: var(--cyan); }
.gold-training-status { border: 1px solid #9aa9b8; color: #526579; font-size: 8px; padding: 3px 5px; white-space: nowrap; }
.gold-training-status.prepared { background: #eaf8f3; border-color: #55a88d; color: #08745a; }
.gold-training-status.pending { background: #f6f8fa; border-color: #aeb8c3; color: #607080; }
.gold-maturity { border: 1px solid #9aa9b8; color: #41566b; font-size: 8px; padding: 3px 5px; white-space: nowrap; }
.gold-maturity.existing_gold { background: #ecfdf5; border-color: #6ab391; color: #08734e; }
.gold-maturity.final_reviewed { background: #edf6ff; border-color: #6aa0df; color: #0b5cad; }
.gold-maturity.first_reviewed { background: #fff8e8; border-color: #dfad62; color: #995405; }
.gold-empty { align-items: center; color: var(--muted); display: flex; font-size: 11px; justify-content: center; min-height: 160px; padding: 24px; text-align: center; }
.gold-workbench-layer { background: #e9f1f5; inset: 68px 0 0 var(--sidebar); position: fixed; z-index: 45; }
.gold-workbench-layer iframe { border: 0; height: 100%; width: 100%; }
.gold-workbench-close { align-items: center; background: #092b42; border: 1px solid #38566c; color: #fff; cursor: pointer; display: flex; gap: 6px; height: 34px; padding: 0 11px; position: absolute; right: 12px; top: 12px; z-index: 3; }
.gold-workbench-close svg { height: 14px; width: 14px; }
@media (max-width: 900px) {
  .product-module-switch { grid-template-columns: 1fr; }
  .gold-review-shell { grid-template-columns: 1fr; }
  .gold-batch-panel { border-bottom: 1px solid var(--border); border-right: 0; }
  .gold-batch-list { display: flex; max-height: none; overflow: auto; }
  .gold-batch-row { border-bottom: 0; border-right: 1px solid var(--border); min-width: 210px; }
  .gold-workbench-layer { inset: 68px 0 0; }
}

.review-body { --review-ink:#111827; --review-muted:#64748b; --review-line:#d8e0ea; --review-blue:#1464d2; --review-red:#c92c38; --review-green:#16845b; --review-amber:#b76505; background:#d4dfe7; color:var(--review-ink); font-family:Inter,"Noto Sans SC",sans-serif; margin:0; overflow:hidden; }
.review-body * { box-sizing:border-box; }
.review-body.submitting .review-layout { opacity:.72; pointer-events:none; }
.review-mode { background:#e8eef6; border:1px solid #bcc9d9; color:#3b4c61; font-size:9px; font-weight:750; margin-left:10px; padding:3px 7px; }
.review-body.second-review .review-mode { background:#eaf3ff; border-color:#71a6e7; color:#0b4f9c; }
.review-body.second-review .review-topbar { box-shadow:inset 3px 0 0 #1677d2; }
.review-body.readonly .review-decisions button,
.review-body.readonly .review-detail :is(input,select,textarea,.manual-review-actions button),
.review-body.readonly .red-box-button { pointer-events:none; opacity:.55; }
.review-body button,.review-body input,.review-body select,.review-body textarea { font:inherit; }
.review-topbar { align-items:center; background:#0a1f33; color:#fff; display:flex; height:58px; justify-content:space-between; padding:0 150px 0 16px; }
.review-topbar strong,.review-topbar span { display:block; }
.review-topbar strong { font-size:15px; }
.review-topbar span { color:#9db4c5; font-size:10px; margin-top:3px; }
.review-top-actions { display:flex; gap:7px; }
.review-top-actions button { background:#173650; border:1px solid #45627a; color:#fff; cursor:pointer; height:34px; padding:0 12px; }
.review-top-actions .complete { background:var(--review-green); border-color:var(--review-green); font-weight:700; }
.review-layout { display:grid; grid-template-columns:minmax(460px,1fr) 460px; height:calc(100vh - 58px); }
.review-stage { display:flex; flex-direction:column; min-height:0; min-width:0; }
.review-toolbar { align-items:center; background:#fff; border-bottom:1px solid var(--review-line); display:flex; flex:0 0 48px; gap:7px; padding:7px 10px; }
.review-toolbar button { background:#fff; border:1px solid var(--review-line); cursor:pointer; height:32px; min-width:34px; }
.review-toolbar button.active { background:var(--review-blue); border-color:var(--review-blue); color:#fff; }
.review-toolbar .red-box-button { background:var(--review-red); border-color:var(--review-red); color:#fff; font-weight:750; min-width:154px; }
.review-toolbar label { color:var(--review-muted); font-size:10px; white-space:nowrap; }
.review-spacer { flex:1; }
#zoom-value { color:var(--review-muted); font-size:10px; min-width:42px; text-align:center; }
.review-viewer { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:24px; }
.review-viewer.pan-ready { cursor:grab; }.review-viewer.panning { cursor:grabbing; user-select:none; }
.review-drawing { background:#fff; box-shadow:0 5px 23px #40536655; position:relative; transform-origin:0 0; }
.review-drawing.drawing { cursor:crosshair; touch-action:none; }
#drawing { display:block; height:100%; user-select:none; width:100%; }
#overlay { height:100%; inset:0; pointer-events:none; position:absolute; width:100%; }
.review-box { fill:transparent; stroke:#00a6c7; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.review-box.missing { stroke:var(--review-amber); stroke-dasharray:8 5; stroke-width:2; }.review-box.manual,.review-box.selected { stroke:var(--review-red); stroke-width:2.5; }
.review-box.draft { fill:#ef444418; stroke:var(--review-red); stroke-dasharray:10 6; }
.review-badge { fill:#093e5c; stroke:#fff; stroke-width:1; vector-effect:non-scaling-stroke; }.review-badge.missing { fill:#a45504; }.review-badge.manual { fill:var(--review-red); }
.review-badge-text { fill:#fff; font-size:28px; font-weight:750; }
.review-panel { background:#fff; border-left:1px solid var(--review-line); display:flex; flex-direction:column; min-height:0; min-width:0; }
.review-meta { border-bottom:1px solid var(--review-line); min-height:70px; padding:11px 13px; }.review-meta h1 { font-size:15px; margin:0 0 5px; }.review-meta p { color:var(--review-muted); font-size:10px; margin:0; }
.review-recall-banner { background:#fff8e8; border-bottom:1px solid #e6b96f; color:#8a4b03; padding:9px 12px; }
.review-recall-banner strong,.review-recall-banner span { display:block; }
.review-recall-banner strong { font-size:10px; }
.review-recall-banner span { font-size:9px; line-height:1.45; margin-top:3px; overflow-wrap:anywhere; }
.review-tabs { display:flex; height:40px; }.review-tabs button { background:#f5f7f9; border:0; border-bottom:1px solid var(--review-line); border-right:1px solid var(--review-line); cursor:pointer; flex:1; font-size:10px; }.review-tabs button.active { background:#fff; box-shadow:inset 0 -2px var(--review-blue); color:var(--review-blue); }
.review-filters { border-bottom:1px solid var(--review-line); display:flex; gap:7px; padding:8px; }.review-filters input,.review-filters select { border:1px solid var(--review-line); height:32px; padding:0 7px; }.review-filters input { flex:1; min-width:0; }
.review-items { flex:1; min-height:140px; overflow:auto; }.review-item { border-bottom:1px solid var(--review-line); cursor:pointer; padding:9px 11px; }.review-item:hover,.review-item.active { background:#eef7fb; }.review-item header { align-items:center; display:flex; gap:7px; }.review-number { color:#075985; font-weight:750; min-width:42px; }.review-kind { color:var(--review-muted); font-size:9px; }.review-status { border:1px solid var(--review-line); color:var(--review-muted); font-size:8px; margin-left:auto; padding:2px 5px; }.review-status.done { border-color:#75b99d; color:var(--review-green); }.review-raw { font-size:11px; font-weight:650; margin-top:5px; overflow-wrap:anywhere; }
.review-detail { background:#f9fbfd; border-top:1px solid var(--review-line); flex:0 0 360px; overflow:auto; padding:10px; }.review-empty { color:var(--review-muted); font-size:11px; padding:30px 12px; text-align:center; }
.review-crop { background:#fff; border:1px solid var(--review-line); height:105px; object-fit:contain; width:100%; }.review-source { background:#fff; border:1px solid var(--review-line); font-size:10px; line-height:1.5; margin-top:7px; padding:7px 8px; }.review-source strong { font-size:12px; }
.review-decisions { display:grid; gap:5px; grid-template-columns:repeat(2,1fr); margin-top:8px; }.review-decisions button { background:#fff; border:1px solid var(--review-line); cursor:pointer; min-height:31px; }.review-decisions button.active { background:#163d5d; color:#fff; }
.review-detail textarea { border:1px solid var(--review-line); margin-top:7px; min-height:50px; padding:6px; resize:vertical; width:100%; }
.manual-review-form { display:grid; font-size:10px; gap:6px 8px; grid-template-columns:78px 1fr; margin-top:8px; }.manual-review-form input,.manual-review-form select { border:1px solid var(--review-line); height:31px; min-width:0; padding:0 6px; width:100%; }.manual-review-actions { display:grid; gap:6px; grid-template-columns:1fr 1fr; margin-top:8px; }.manual-review-actions button { border:1px solid var(--review-line); height:33px; }.manual-review-actions .save { background:var(--review-blue); border-color:var(--review-blue); color:#fff; }
.structured-correction { background:#fff; border:1px solid #7aa5d9; margin-top:8px; padding:9px; }
.structured-correction header strong,.structured-correction header span { display:block; }
.structured-correction header strong { color:#0b4f9c; font-size:11px; }
.structured-correction header span { color:var(--review-muted); font-size:9px; line-height:1.45; margin-top:3px; }
.save-structured { background:var(--review-blue); border:1px solid var(--review-blue); color:#fff; cursor:pointer; height:33px; margin-top:9px; width:100%; }
.review-toast { background:#ecfdf5; border:1px solid #7ab79d; box-shadow:0 8px 28px #0f172a2e; color:#075d3c; font-size:11px; font-weight:650; left:50%; max-width:600px; padding:9px 12px; position:fixed; top:68px; transform:translateX(-50%); z-index:20; }.review-toast.error { background:#fff1f2; border-color:#e09ca3; color:#8f1723; }
