/* Visual source: approved design-koncepcje-20260926 mockups.
   Original palettes/materials, adapted selectors; no demo data or behaviour. */

:root {
  --ink:#263147;
  --muted:#5b6880;
  --faint:#65718a;
  --line:rgba(70,88,124,.13);
  --bg:#eef0f7;
  --surface:#fafbfe;
  --soft:#f1f4fb;
  --nav:rgba(255,255,255,.48);
  --nav-ink:#3c4960;
  --nav-muted:#5b687e;
  --accent:#4c60ca;
  --accent-hover:#3e50b8;
  --tint:#eceffc;
  --accent-rgb:76,96,202;
  --secondary:#94a1c8;
  --good:#21755e;
  --good-bg:#e8f4ee;
  --warn:#926020;
  --warn-bg:#fbf1de;
  --bad:#af4e43;
  --bad-bg:#fbebe8;
  --radius:20px;
  --small:11px;
  --button:12px;
  --shadow:0 5px 20px rgba(63,79,115,.045);
  --panel-border:1px solid rgba(255,255,255,.85);
  --nav-active:rgba(255,255,255,.74);
  --nav-active-ink:#34489e;
  --chart-grid:#e5e9f2;
  --study:#f6f7fb;
  --hero:#f8f9ff;
  --font:inherit;
}

:root[data-theme=office] {
  --ink:#1d2a3b;
  --muted:#626d7c;
  --faint:#687482;
  --bg:#f1f3f6;
  --surface:#fff;
  --soft:#f5f7fa;
  --nav:#182738;
  --nav-ink:#d9e1eb;
  --nav-muted:#9aabba;
  --accent:#245fbd;
  --accent-hover:#194d9e;
  --tint:#eaf1fc;
  --accent-rgb:36,95,189;
  --secondary:#9baabd;
  --radius:5px;
  --small:4px;
  --button:4px;
  --shadow:none;
  --line:#e1e5ea;
  --panel-border:1px solid #dce2e9;
  --nav-active:#294362;
  --nav-active-ink:#fff;
  --chart-grid:#e8ebf0;
  --study:#fff;
  --hero:#fff;
}

:root[data-theme=studio] {
  --ink:#2f3d36;
  --muted:#616d61;
  --faint:#6b7567;
  --bg:#f4f3ed;
  --surface:#fffefb;
  --soft:#f3f4ed;
  --nav:#eaece1;
  --nav-ink:#52624f;
  --nav-muted:#667260;
  --accent:#3d6854;
  --accent-hover:#2d5340;
  --tint:#e7eee3;
  --accent-rgb:61,104,84;
  --secondary:#c6a887;
  --good:#3a7451;
  --good-bg:#eaf1e6;
  --warn:#987037;
  --warn-bg:#f8efdf;
  --bad:#a55a43;
  --bad-bg:#f9ede5;
  --radius:20px;
  --small:10px;
  --button:10px;
  --shadow:0 3px 14px rgba(65,73,47,.025);
  --line:#e7e9df;
  --panel-border:1px solid #e7e9df;
  --nav-active:#fffefb;
  --nav-active-ink:#345a43;
  --chart-grid:#e8ebdf;
  --study:#f9f8f4;
  --hero:#fffefb;
}

:root[data-theme=glass2] {
  --ink: #273139;
  --muted: #5d6972;
  --faint: #65717a;
  --bg: #eceff1;
  --surface: #f1f3f4;
  --soft: #e8ecef;
  --nav: rgba(246,248,250,.57);
  --nav-ink: #43515b;
  --nav-muted: #62707a;
  --accent: #355f7c;
  --accent-hover: #284c66;
  --accent-rgb: 53,95,124;
  --tint: #e2e9ee;
  --secondary: #99a8b3;
  --line: rgba(47,66,80,.13);
  --good: #356952;
  --good-bg: #e3ede6;
  --warn: #866027;
  --warn-bg: #eee7d9;
  --bad: #9b5047;
  --bad-bg: #f1e5e1;
  --radius: 17px;
  --small: 9px;
  --button: 10px;
  --shadow: none;
  --panel-border: 1px solid rgba(52,69,82,.105);
  --nav-active: rgba(255,255,255,.66);
  --nav-active-ink: #2c4e65;
  --chart-grid: #dde3e7;
  --study: #e8ecef;
  --hero: #f2f4f5;
}

:root[data-theme=glass3] {
  --ink:#243b46;
  --muted:#536b76;
  --faint:#5b737d;
  --bg:#dce7ea;
  --surface:#edf3f4;
  --soft:#e2ecef;
  --nav:rgba(237,248,250,.42);
  --nav-ink:#344f5c;
  --nav-muted:#526c78;
  --accent:#326c83;
  --accent-hover:#285b70;
  --accent-rgb:50,108,131;
  --tint:#dcebef;
  --secondary:#8aa8b3;
  --line:rgba(42,77,94,.14);
  --good:#316b55;
  --good-bg:#deeee5;
  --warn:#856126;
  --warn-bg:#f1e8d4;
  --bad:#a14e45;
  --bad-bg:#f3e4df;
  --radius:20px;
  --small:11px;
  --button:12px;
  --panel-border:1px solid rgba(255,255,255,.72);
  --shadow:0 3px 14px rgba(36,72,91,.025);
  --nav-active:rgba(249,254,255,.58);
  --nav-active-ink:#255d74;
  --chart-grid:#d7e4e8;
  --study:rgba(229,239,243,.65);
  --hero:rgba(240,248,249,.79);
}

:root { --accent-soft:var(--tint); --solid:var(--surface); --glass:var(--nav); --row:12px; --pad:24px; --focus:var(--accent); }

/* Scrollbars stay visible: a sized ::-webkit-scrollbar makes Chromium and Safari draw a permanent bar
   instead of an overlay shown only while scrolling. Thumb ≥3:1 against the track in every theme.
   Never set scrollbar-color/-width outside the Firefox guard: Chromium then ignores these rules. */
:root { --scrollbar-thumb:rgba(var(--accent-rgb),.8); --scrollbar-thumb-hover:var(--accent); --scrollbar-track:rgba(var(--accent-rgb),.08); }
[data-theme=office] .sidebar { --scrollbar-thumb:rgba(217,225,235,.55); --scrollbar-thumb-hover:rgba(217,225,235,.8); --scrollbar-track:rgba(217,225,235,.08); }
@media screen and (any-pointer:fine) {
  ::-webkit-scrollbar {width:12px;height:12px}
  ::-webkit-scrollbar-track {background:var(--scrollbar-track);border-radius:999px}
  ::-webkit-scrollbar-thumb {border:3px solid transparent;border-radius:999px;background-color:var(--scrollbar-thumb);background-clip:padding-box}
  ::-webkit-scrollbar-thumb:vertical {min-height:40px}
  ::-webkit-scrollbar-thumb:horizontal {min-width:40px}
  ::-webkit-scrollbar-thumb:hover {background-color:var(--scrollbar-thumb-hover)}
  ::-webkit-scrollbar-corner {background:transparent}
  .nav-scroll::-webkit-scrollbar,.section-nav::-webkit-scrollbar {width:8px;height:8px}
  .nav-scroll::-webkit-scrollbar-thumb,.section-nav::-webkit-scrollbar-thumb {border-width:2px}
  /* Fixed lane, so opening a group never shifts the menu; it sits in the sidebar padding, not the items. */
  @supports selector(::-webkit-scrollbar) { .nav-scroll {scrollbar-gutter:stable;margin-right:-8px} }
  @supports not selector(::-webkit-scrollbar) { :root,.sidebar {scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track)} }
}

/* Shared layout follows the mockup; demo toolbar is deliberately omitted. */
body {font-size:14px;line-height:1.5;font-feature-settings:"cv11","ss01";min-width:320px;position:relative;isolation:isolate;min-height:100vh}
.ui-ambient {position:absolute;inset:0;z-index:-1;background:none;overflow:hidden}
.sidebar {left:20px;top:20px;bottom:20px;width:224px;padding:24px 14px 12px;border:var(--panel-border);border-radius:24px;background:var(--nav);color:var(--nav-ink);box-shadow:none;backdrop-filter:none}
.brand {gap:10px;padding:0 12px;color:var(--nav-ink);font-size:26px;font-weight:670;letter-spacing:-1.3px}
.brand-mark {display:grid;place-items:center;width:31px;height:35px;margin:0}
.brand-mark svg {width:30px;height:35px}
.brand-dot {font-size:20px;margin-left:-4px}
.workspace-label {font-size:9px;letter-spacing:.1em;font-weight:600;color:var(--nav-muted);margin:8px 12px 20px}
.nav-scroll {padding:0 2px}
.nav-item,.nav-group>summary {min-height:41px;padding:10px 12px;border-radius:var(--small);font-size:13px;gap:11px;color:var(--nav-ink);font-weight:400}
.nav-group>summary {font-weight:600;margin-top:4px}
.nav-caption {font-size:9px;letter-spacing:.14em;font-weight:700;padding:19px 12px 8px;margin:0;color:var(--nav-muted)}
.subnav {margin:3px 0 10px 20px;padding-left:9px;border-left:1px solid var(--line)}
.subnav .nav-item {min-height:31px;padding:6px 10px;font-size:12px}
.sidebar .nav-item[aria-current],.sidebar .nav-item[aria-current=location] {background:var(--nav-active);color:var(--nav-active-ink);box-shadow:0 2px 8px #1d314607;font-weight:650}
.sidebar .nav-item:hover,.nav-group>summary:hover {background:#ffffff20;text-decoration:none}
.nav-bottom {border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.sidebar-caption {font-size:10px;color:var(--nav-muted);margin:14px 13px 3px}
.nav-item small {font-size:8px;letter-spacing:.02em;padding:1px 4px;background:transparent;border:1px solid var(--line);border-radius:4px;color:var(--nav-muted)}
.nav-count {background:var(--warn-bg);color:var(--warn);font-size:10px;border-radius:6px;min-width:21px;height:19px}
.workspace {margin-left:264px;padding:0;min-height:100vh}
.top {height:82px;min-height:82px;margin:0 32px;gap:24px;border-bottom:1px solid var(--line);max-width:none}
.breadcrumb {display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}
.breadcrumb a {color:var(--muted)}
.breadcrumb strong {font-weight:500;color:var(--ink)}
.top .mode-bar {font-size:9px;letter-spacing:.04em;padding:3px 6px;margin-left:-10px;white-space:nowrap}
.global-search {flex:none;width:270px;max-width:270px;min-height:39px;height:39px;margin-left:auto;padding:8px 11px;gap:9px;border:1px solid var(--line);border-radius:var(--button);background:var(--surface)}
.global-search input {border:0;background:none;outline-offset:4px;color:var(--ink);font-size:12px;min-width:0;min-height:0;padding:0;line-height:20px}
.global-search input::placeholder {color:var(--muted)}
.global-search button {display:grid;place-items:center;width:17px;min-height:20px;padding:0;flex:none;color:var(--muted);border:0;border-radius:4px;background:none}
.global-search:focus-within {outline:2px solid var(--focus);outline-offset:3px}
.global-search input:focus-visible {outline:none}
.global-search kbd {font-family:inherit;font-size:10px;line-height:16px;color:var(--faint);border:1px solid var(--line);padding:0 4px;border-radius:4px;white-space:nowrap}
.status-icons {gap:5px}
.health-icon {width:35px;height:35px;min-height:35px;border:0;border-radius:50%;background:none;color:var(--muted)}
.health-icon svg {width:17px;height:17px}
.health-icon.good,.health-icon.warn,.health-icon.bad,.health-icon.unknown {color:var(--muted)}
.health-icon::after {width:5px;height:5px;right:5px;bottom:5px;border:2px solid var(--bg);box-sizing:content-box;background:var(--muted)}
.health-icon.good::after {background:var(--good)}
.health-icon.warn::after {background:var(--warn)}
.health-icon.bad::after {background:var(--bad)}
.health-icon:hover,.health[open]>summary {background:var(--surface)}
.profile {padding-left:18px;border-left:1px solid var(--line)}
.avatar {width:34px;height:34px;font-size:11px;font-weight:650;background:var(--tint);color:var(--accent)}
.profile-name {font-size:12px;font-weight:600}
.health-pop,.profile-pop {font-size:12px}
.health-pop p {font-size:12px}
main {max-width:1540px;padding:30px 32px 18px;margin:auto}
h1 {font-size:29px;font-weight:640;letter-spacing:-1.1px;line-height:1.2;margin:0 0 8px}
h2 {font-size:16px;font-weight:630;letter-spacing:-.32px;margin:0 0 16px}
h3 {font-size:13px;font-weight:630}
.eyebrow {font-size:9px;letter-spacing:.12em;margin-bottom:7px}
.page-header {gap:20px;margin-bottom:27px}
.page-description {font-size:12px;color:var(--muted);margin:0}
.page-header .actions {margin:0}
button,.button,.btn {padding:9px 14px;gap:7px;border:1px solid var(--line);border-radius:var(--button);background:var(--surface);font-size:12px;font-weight:550;min-height:37px}
button.primary,.button.primary {background:var(--accent);color:#fff;border-color:var(--accent)}
button.primary:hover,.button.primary:hover {background:var(--accent-hover)}
.button .ui-icon {width:15px;height:15px}
button:hover,.button:hover {background:var(--soft)}
input,select,textarea {font-size:12px;min-height:35px;border:1px solid var(--line);border-radius:var(--small);background:var(--surface)}
.icon-button {padding:7px;min-height:34px;width:34px}
.card {padding:var(--pad);background:var(--surface);border:var(--panel-border);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:none}
.card-heading {margin-bottom:21px}
.card-heading h2 {margin:0}
.card-heading>span,.card-heading>a {font-size:11px}
.dashboard-layout {grid-template-columns:minmax(0,1.75fr) minmax(295px,1fr);gap:18px;align-items:stretch;margin-bottom:23px}
.dashboard-layout .card {margin-bottom:0}
.dashboard-layout>div,#batch-live {display:flex;flex-direction:column}
.dashboard-layout>div>.batch-hero,#batch-live,#batch-live>.batch-hero {flex:1}
.batch-hero {display:flex;flex-direction:column}
.batch-hero {padding:25px 27px;background:var(--hero);min-height:0}
.batch-label {display:flex;align-items:center;gap:7px;margin-bottom:17px;color:var(--muted);font-size:9px;letter-spacing:.1em;font-weight:650}
.batch-label>.chip {margin-left:auto;letter-spacing:0}
.batch-title {margin-bottom:0;align-items:flex-start}
.batch-title h2 {font-size:25px;letter-spacing:-.7px;margin:0 0 4px}
.batch-summary {font-size:11px;margin:0;color:var(--muted)}
.batch-id-icon {height:48px;width:48px;flex:none;border-radius:14px;display:grid;place-items:center;background:var(--tint);color:var(--accent);border:1px solid rgba(var(--accent-rgb),.08)}
.batch-figures {display:flex;margin-top:25px;gap:0}
.batch-figure {padding:0 25px;border-right:1px solid var(--line)}
.batch-figure:first-child {padding-left:0}
.batch-figure:last-child {border:0}
.batch-figure b {display:block;font-size:24px;line-height:1.2;letter-spacing:-.7px;font-weight:590;font-variant-numeric:tabular-nums}
.batch-figure span {display:block;font-size:10px;color:var(--muted);margin-top:4px}
.progress-label {display:flex;justify-content:space-between;margin:24px 0 9px;font-size:11px;gap:10px;color:var(--muted)}
.progress-label strong,.progress-label strong span {font-size:11px;font-weight:600;color:var(--ink)}
progress {display:block;height:6px;border:0;border-radius:5px;background:var(--warn-bg);width:100%;overflow:hidden;appearance:none}
progress::-webkit-progress-bar {background:var(--warn-bg);border-radius:5px}
progress::-webkit-progress-value {background:var(--accent);border-radius:5px}
progress::-moz-progress-bar {background:var(--accent);border-radius:5px}
.batch-steps {display:flex;justify-content:space-between;margin:15px 0 23px;gap:6px;font-size:10px;color:var(--muted);padding:0;list-style:none}
.batch-steps li {display:flex;align-items:center;gap:5px}
.step-dot {width:16px;height:16px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;font-size:9px;font-style:normal;flex:none}
.batch-steps .finished {color:var(--good)}
.batch-steps .finished .step-dot {background:var(--good-bg);border:0}
.batch-steps .current {color:var(--accent);font-weight:600}
.batch-steps .current .step-dot {border-color:var(--accent);background:var(--tint)}
.batch-footer {padding-top:16px;gap:10px;margin-top:18px}
.batch-footer .small {font-size:11px;max-width:70%;display:flex;gap:6px;align-items:flex-start}
.batch-footer .button {white-space:nowrap}
.issues-card {padding:23px 23px 18px;align-self:stretch}
.issues-card .card-heading {flex-direction:row;align-items:center;margin-bottom:17px}
.issues-card .card-heading p {font-size:11px;color:var(--muted);margin:4px 0 0}
.issue-group {display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.issue-group:last-of-type {border-bottom:0}
.issues-card.is-condensed .issue-group {padding:11px 0}
.issues-card.is-condensed .issue-group p {display:none}
.quiet-empty {padding:28px 0;color:var(--muted)}
.quiet-empty strong {display:block;margin-top:10px}
.batch-label>span:first-child {display:flex;align-items:center;gap:6px;text-transform:uppercase}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.issue-group h3 {font-size:12px;margin:0 0 4px}
.issue-group h3 .issue-number {font-variant-numeric:tabular-nums;margin-right:5px;color:var(--accent)}
.issue-group p {font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.issue-group .issue-icon {background:var(--warn-bg);color:var(--warn)}
.issue-group .issue-icon.blue {background:var(--tint);color:var(--accent)}
.issue-group a,.text-link {display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:var(--accent)}
.quiet-notice {display:flex;align-items:center;gap:8px;padding:10px 11px;background:var(--soft);border-radius:var(--small);font-size:11px;color:var(--muted);margin-top:12px}
.quiet-notice a {color:var(--accent)}
.section-nav {gap:24px;margin-bottom:22px;padding-bottom:0;border-bottom:1px solid var(--line);overflow-x:auto;flex-wrap:nowrap}
.section-nav a {font-size:12px;padding:11px 0;border-radius:0;white-space:nowrap;border-bottom:2px solid transparent}
.section-nav a[aria-current=page] {background:none;border-color:var(--accent);color:var(--accent);box-shadow:none;font-weight:650}
.section-nav a:hover {background:none;color:var(--accent)}
.section-nav small {font-size:10px;margin-left:5px;background:var(--soft);border-radius:4px;padding:2px 5px}
.batch-table-card {padding:0;overflow:hidden}
.table-toolbar {display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line);margin:0}
.filter-set {display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.table-toolbar label {font-size:11px;color:var(--muted);display:flex;flex-direction:column;align-items:stretch;gap:5px}
.table-toolbar .table-search {margin-left:auto}
.table-toolbar .table-search input {width:240px}
.batch-table-card .table-wrap {margin:0;border:0;border-radius:0;background:transparent}
table {font-size:12px}
th {font-size:10px;font-weight:650;letter-spacing:.04em;background:var(--soft);text-transform:uppercase}
td,th {padding:var(--row) 16px;vertical-align:middle}
td p,td .small {font-size:11px;color:var(--muted);margin:5px 0 0}
td .order-product {max-width:330px;display:block;font-size:12px;font-weight:550}
td details:not(.nav-group,.health,.profile) {margin:6px 0 0;font-size:11px}
td details summary {padding:0;font-weight:400;color:var(--muted)}
.table-footer {padding:14px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.batch-secondary {margin-top:20px}
.batch-secondary>summary {font-size:12px;color:var(--muted)}
.batch-secondary>.card {margin-top:12px}
.chip {font-size:10px;font-weight:600;border-radius:6px;padding:3px 7px;background:var(--soft);color:var(--muted)}
.chip-ok,.chip-done,.chip-success,.chip-complete {background:var(--good-bg);color:var(--good)}
.chip-error,.chip-failed,.chip-blocked,.chip-manual {background:var(--bad-bg);color:var(--bad)}
.chip-warning,.chip-warn,.chip-unknown,.chip-accepted,.chip-waiting {background:var(--warn-bg);color:var(--warn)}
.chip-running,.chip-collecting,.chip-building {background:var(--tint);color:var(--accent)}
.pending-documents {padding:23px 25px}
.pending-documents .document-row {display:flex;align-items:center;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}
.pending-documents .document-row:last-child {border:0}
.document-row>span:last-child {margin-left:auto;white-space:nowrap}
.document-row strong {font-size:12px}
.document-row p {font-size:11px;color:var(--muted);margin:4px 0 0}
.workspace-footer {font-size:10px;padding:15px 32px 25px;max-width:1540px}
.issue h3 {font-size:13px}
.issue p {font-size:12px}
.issue a {font-size:12px}
.kv {font-size:13px}
.notice,.warning-box {font-size:12px}
.theme-option,.segmented button {font-size:12px}
.theme-preview {background:var(--bg)}
.theme-option[data-theme-choice=studio] .theme-preview {background:#f4f3ed}
.theme-option[data-theme-choice=studio] .theme-preview::before {background:#eaece1}
.theme-option[data-theme-choice=glass3] .theme-preview {background:linear-gradient(110deg,#c8dce4,#e5e7e0)}
.theme-option[data-theme-choice=glass] .theme-preview {background:linear-gradient(135deg,#bcd0f2,#cec3eb,#f2d9c5)}
.theme-option[data-theme-choice=glass2] .theme-preview {background:#eceff1}
.theme-option[data-theme-choice=office] .theme-preview::before {background:#182738}

/* Decision surface: existing form/guards, with the decision before diagnostics. */
.order-drawer.decision-drawer {width:480px}
.decision-drawer .drawer-toolbar {padding:14px 24px;background:var(--surface)}
.decision-drawer [data-order-content] {padding:0;display:flex;flex-direction:column}
.decision-view {min-height:100%;display:flex;flex-direction:column}
.decision-drawer .decision-view {flex:1 0 auto}
.decision-head {padding:25px 28px;border-bottom:1px solid var(--line)}
.decision-head h1 {font-size:23px;letter-spacing:-.6px;margin-bottom:8px}
.decision-head p {font-size:12px;color:var(--muted);margin-bottom:0}
.decision-body {padding:25px 28px;flex:1}
.decision-body .notice {margin-bottom:22px}
.decision-facts {margin-bottom:20px}
.decision-facts>div {display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}
.decision-facts dt {color:var(--muted)}
.decision-facts dd {margin:0;text-align:right;font-weight:550}
.quote-total {padding:20px;border-radius:var(--radius);background:var(--tint);margin-bottom:18px}
.quote-total>strong {display:block;font-size:32px;letter-spacing:-1px;font-weight:600;color:var(--ink)}
.quote-total>p {font-size:10px;color:var(--muted);margin:8px 0 0}
.decision-body>p {font-size:12px;color:var(--muted);line-height:1.65}
.decision-foot {padding:16px 28px;position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);margin-top:auto}
.decision-foot button {width:100%}
main>.decision-view {max-width:650px;margin:auto;background:var(--surface);border:var(--panel-border);border-radius:var(--radius);overflow:hidden}
.decision-drawer .decision-foot {padding:16px 28px}
.decision-inline {margin-bottom:24px}

@media(min-width:1600px) {
 .sidebar {width:234px}.workspace {margin-left:274px}.top {max-width:1476px;margin:auto}
 .dashboard-layout {grid-template-columns:minmax(0,1.9fr) minmax(295px,1fr)}
}
@media(max-width:1220px) {
 .sidebar {width:200px;left:14px}.workspace {margin-left:228px;padding:0}.top {margin:0 22px;gap:16px}
 main {padding:25px 22px 18px}.global-search {width:225px}.profile-name {display:none}.profile {padding-left:12px}
 .dashboard-layout {grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr)}
 .batch-hero {padding:23px}.issues-card {padding:21px 19px}.batch-figure {padding:0 18px}
 .top .mode-bar {font-size:8px;margin-left:0}.breadcrumb {font-size:11px}
 .table-toolbar {flex-wrap:wrap}.table-toolbar .table-search {margin-left:0}
}
@media(max-width:1000px) {
 .top {gap:10px}.breadcrumb a,.breadcrumb>svg {display:none}.global-search {width:220px}
 .dashboard-layout {grid-template-columns:1fr}.batch-footer .small {max-width:70%}
}
@media(max-width:850px) {
 .workspace {margin-left:0;padding:0}.sidebar {top:16px;left:12px;bottom:12px}.nav-open .sidebar {width:245px}
 .top {min-height:72px;height:auto;margin:0 20px;padding:14px 0;flex-wrap:wrap;gap:10px}
 .mobile-menu {display:inline-flex}.global-search {width:auto;flex:1;max-width:none;min-width:180px}
 .global-search>svg {display:block}.top .mode-bar {display:block;max-width:none}
 .health-pop {position:fixed;top:72px;right:16px}.nav-dismiss {border-radius:0}
 main {padding:24px 20px 18px}.breadcrumb {display:none}.profile {padding-left:8px}
 .section-nav {gap:20px}.workspace-footer {padding:15px 20px 22px}
}
@media(max-width:600px) {
 .top {margin:0 17px;gap:8px}.top .global-search {order:5;flex-basis:100%;padding:8px 11px;margin-bottom:4px}
 .health-icon {width:35px;height:35px}.status-icons {margin-left:auto}.profile {padding-left:8px}
 main {padding:24px 17px 15px}.page-header {display:flex;flex-wrap:wrap;align-items:flex-start;margin:0 0 21px}
 h1 {font-size:25px}.page-description {font-size:12px}.page-header .actions {margin-top:8px}
 .batch-hero {padding:22px}.issues-card {padding:20px 22px}.batch-figures {margin-top:22px}
 .batch-figure {padding:0 18px}.batch-figure b {font-size:24px}.batch-figure span {font-size:10px}
 .batch-steps {font-size:9px;gap:4px}.batch-steps li {gap:3px}
 .batch-footer {flex-wrap:wrap;flex-direction:row;align-items:center}.batch-footer .small {max-width:100%;flex:1;min-width:140px}
 .dashboard-layout {gap:14px}
 .table-toolbar {padding:15px;gap:10px}.table-toolbar .filter-set {width:100%}
 .table-toolbar label {width:auto;flex:1}.table-toolbar .table-search {width:100%}.table-toolbar .table-search input {width:100%}
 .document-row {flex-wrap:wrap}.document-row>span:last-child {margin-left:30px}
 .order-drawer.decision-drawer {width:min(480px,100vw)}
 .decision-head,.decision-body {padding:20px 22px}.decision-drawer .decision-foot {padding:14px 22px}
 .decision-drawer .drawer-toolbar {padding:12px 16px}
 .workspace-footer {font-size:9px;padding:12px 17px 22px}
}
@media(max-height:780px) {
 .sidebar {padding-top:20px}.workspace-label {margin-bottom:13px}.nav-caption {padding-top:13px}
 .nav-group>summary {min-height:36px;padding-top:8px;padding-bottom:8px}
 .nav-bottom {padding-top:8px;margin-top:8px}.nav-bottom .nav-item {min-height:35px;padding-top:7px;padding-bottom:7px}
}

/* Original theme-specific materials. */
[data-theme=glass] .ui-ambient { background:radial-gradient(ellipse at 4% 35%,#bcd0f2 0,transparent 38%),radial-gradient(ellipse at 70% -25%,#cec3eb 0,transparent 55%),radial-gradient(ellipse at 108% 75%,#f2d9c5 0,transparent 42%),linear-gradient(135deg,#ecf0f7,#e7edf9 60%,#f5edec) }
[data-theme=glass] .sidebar { backdrop-filter:blur(36px) saturate(1.45);-webkit-backdrop-filter:blur(36px) saturate(1.45);box-shadow:inset 1px 1px 0 #fff9,0 14px 42px #3143670e }
[data-theme=office] .sidebar { background:var(--nav);border-radius:5px;border:1px solid #182738 }
[data-theme=office] h1 {font-weight:650}
[data-theme=studio] .sidebar { border-radius:20px;border-color:#e1e5d8 }
[data-theme=glass] .global-search { background:#ffffff60;box-shadow:inset 0 1px 0 #fff8 }
[data-theme=glass] .button:not(.primary) { background:linear-gradient(135deg,#ffffffb5,#ffffff65);border-color:#ffffff;box-shadow:inset 0 1px 0 #fff8,0 2px 4px #32406408;backdrop-filter:blur(12px) }
[data-theme=glass] .button.primary { background:linear-gradient(135deg,#6676d4eb,#4b5fcbee);border-color:#6f7ed4;box-shadow:inset 0 1px 0 #ffffff40,0 3px 10px #596bca1a }
[data-theme=glass] .nav-item[aria-current] { background:linear-gradient(125deg,#ffffffb5,#ffffff60);border:1px solid #ffffffa0;padding:9px 11px;box-shadow:inset 0 1px 0 #fff9,0 3px 10px #34476708 }
[data-theme=glass] .subnav .nav-item[aria-current] { padding:7px 9px }
[data-theme=office] .brand { color:#fff }
[data-theme=office] .brand-dot { color:#8db1e5 }
[data-theme=office] .brand-mark { color:#adc5e4 }
[data-theme=office] .batch-id-icon,[data-theme=office] .issue-icon,[data-theme=office] .tag,[data-theme=office] .account-avatar { border-radius:4px }
[data-theme=office] .nav-item[aria-current] { box-shadow:inset 2px 0 0 #8eb7ed }
[data-theme=studio] .batch-id-icon { background:#edf1e3;color:#607854 }
[data-theme=studio] .batch-hero { background:linear-gradient(110deg,#fffefb,#fbfcf5) }
[data-theme=studio] .brand-mark { color:#497050 }
[data-theme=studio] .nav-item[aria-current] { box-shadow:0 2px 4px #354e3010 }
[data-theme=studio] .button.primary { box-shadow:0 2px 3px #25432b0c }
[data-theme=glass] .subnav .nav-item[aria-current] { padding-top:5px;padding-bottom:5px }
[data-theme="glass2"] .ui-ambient { background:none; }
[data-theme="glass2"] .sidebar { border:1px solid rgba(255,255,255,.78);
  border-radius:21px;
  backdrop-filter:blur(24px) saturate(1.06);
  -webkit-backdrop-filter:blur(24px) saturate(1.06);
  box-shadow:inset 0 1px 0 #ffffff8c,0 0 0 1px #263c5009,0 8px 24px #263c5008; }
[data-theme="glass2"] .nav-item[aria-current] { box-shadow:inset 0 1px 0 #ffffffc7,inset 0 -1px 0 #3449580c,0 1px 3px #34495806; }
[data-theme="glass2"] .nav-item:hover,
[data-theme="glass2"] .nav-group>summary:hover { background:rgba(255,255,255,.38); }
[data-theme="glass2"] .nav-item[aria-current]:hover { background:var(--nav-active); }
[data-theme="glass2"] .brand-dot { color:var(--nav-muted); }
[data-theme="glass2"] .global-search { background:#f6f8f966;
  border-color:#aab7c338;
  box-shadow:inset 0 1px 0 #ffffff85; }
[data-theme="glass2"] .button:not(.primary) { background:#f7f9fa8c;
  border-color:#b9c3cc80;
  box-shadow:inset 0 1px 0 #ffffff94,0 1px 2px #263b4a05; }
[data-theme="glass2"] .button:not(.primary):hover { background:#fafbfcc9; }
[data-theme="glass2"] .button.primary { background:#355f7c;
  border-color:#2d5571;
  box-shadow:inset 0 1px 0 #ffffff30,0 1px 2px #1c344b1a; }
[data-theme="glass2"] .button.primary:hover { background:var(--accent-hover); }
[data-theme="glass2"] .button.ghost { background:transparent; box-shadow:none; border-color:var(--line); }
[data-theme="glass2"] .issues-card,
[data-theme="glass2"] .accounts-panel { background:#eef1f3; }
[data-theme="glass2"] .batch-id-icon { background:transparent;
  color:#667a89;
  border-color:#cbd5dc; }
[data-theme="glass2"] .quiet-notice { background:#e7ecef; }
[data-theme="glass2"] .table-toolbar,
[data-theme="glass2"] .table-footer { background:#ecf0f2; }
[data-theme="glass2"] th { background:#e5ebee; color:#556570; }
[data-theme="glass2"] td { background:transparent; }
[data-theme="glass2"] tbody tr:hover { background:#e6edf1; }
[data-theme="glass2"] .table-toolbar select,
[data-theme="glass2"] .table-toolbar .table-search input { background:#f4f6f78c; }
[data-theme="glass2"] .health-pop { background:rgba(244,247,249,.91);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  border-color:#ffffffb8;
  box-shadow:0 10px 32px #20364817,inset 0 1px 0 #fff; }
[data-theme="glass2"] dialog { background:#eff2f4; border-color:#cad3da; box-shadow:-12px 0 42px #23394912; }
[data-theme="glass2"] dialog::backdrop { background:#23334026; backdrop-filter:blur(2px); }
[data-theme="glass2"] .dialog-head { background:#f3f6f78c; }
[data-theme="glass2"] .dialog-foot { background:#eef2f4e8; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
[data-theme="glass2"] .quote-total { background:#e2e9ee; }
[data-theme="glass3"] .ui-ambient { position:absolute;
  overflow:hidden;
  background:linear-gradient(110deg,#c8dce4 0%,#dbe7eb 36%,#e4ebeb 72%,#e5e7e0 100%); }
[data-theme="glass3"] .ui-ambient::before { content:"";
  position:absolute;
  width:780px;
  height:1050px;
  left:-450px;
  top:-390px;
  border-radius:45%;
  transform:rotate(28deg);
  background:linear-gradient(110deg,rgba(99,145,163,.04),rgba(242,255,255,.26));
  border:1px solid rgba(255,255,255,.46);
  box-shadow:35px 10px 70px rgba(61,103,124,.11),inset -22px 0 50px rgba(248,255,255,.36);
  filter:blur(4px); }
[data-theme="glass3"] .sidebar { background:linear-gradient(145deg,rgba(244,254,255,.60),rgba(218,236,241,.31));
  backdrop-filter:blur(30px) saturate(1.22);
  -webkit-backdrop-filter:blur(30px) saturate(1.22);
  border:1px solid rgba(255,255,255,.76);
  box-shadow:inset 1px 1px 0 #ffffffa8,inset -1px -1px 0 #58889b16,0 12px 40px #305b7110,0 1px 4px #3c708e0e; }
[data-theme="glass3"] .nav-item[aria-current] { box-shadow:inset 0 1px 0 #ffffffe0,inset 0 -1px 0 #779fad36,0 3px 9px #31546c10; }
[data-theme="glass3"] .nav-item:hover,
[data-theme="glass3"] .nav-group>summary:hover { background:#ffffff40; }
[data-theme="glass3"] .nav-item[aria-current]:hover { background:var(--nav-active); }
[data-theme="glass3"] .brand-mark { color:#37697c; }
[data-theme="glass3"] .global-search { background:linear-gradient(160deg,#f9ffff8c,#e5f1f55c);
  border-color:#ffffffad;
  box-shadow:inset 0 1px 0 #ffffff9c,0 1px 2px #3c677719;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px); }
[data-theme="glass3"] .batch-hero { background:linear-gradient(120deg,rgba(245,252,254,.86),rgba(231,242,246,.77));
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:inset 0 1px 0 #ffffffc7,0 5px 18px #39607905; }
[data-theme="glass3"] .batch-id-icon { background:linear-gradient(135deg,#ffffffc4,#b6d2de6b);
  border:1px solid #ffffffd6;
  box-shadow:inset 0 1px 0 #ffffff,0 4px 8px #285d7512; }
[data-theme="glass3"] .issues-card,
[data-theme="glass3"] .accounts-panel { background:#eaf1f3; }
[data-theme="glass3"] .quiet-notice { background:#dce9ed; }
[data-theme="glass3"] .table-toolbar,
[data-theme="glass3"] .table-footer { background:#e4eef1; }
[data-theme="glass3"] th { background:#dae8ed; color:#456370; }
[data-theme="glass3"] td { background:transparent; }
[data-theme="glass3"] tbody tr:hover { background:#dfecf0; }
[data-theme="glass3"] .notice { background:#dbe9ed; }
[data-theme="glass3"] .health-pop { background:rgba(232,245,249,.90);
  backdrop-filter:blur(26px) saturate(1.12);
  -webkit-backdrop-filter:blur(26px) saturate(1.12);
  border-color:#ffffffd6;
  box-shadow:inset 0 1px 0 #fff,0 12px 35px #365c6b23; }
[data-theme="glass3"] dialog { background:#edf4f6; border-color:#effcff; box-shadow:-12px 0 42px #23394920; }
[data-theme="glass3"] dialog::backdrop { background:#2747552b; backdrop-filter:blur(3px); }
[data-theme="glass3"] .dialog-head { background:#e8f2f5; }
[data-theme="glass3"] .dialog-foot { background:#e5f1f4db; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }
[data-theme="glass3"] .quote-total { background:#d9e9ef; }

/* Browser preferences and safe fallbacks take precedence over materials. */
[data-theme=office] .sidebar .nav-item[aria-current=page],
[data-theme=office] .sidebar .nav-item[aria-current=location] {background:var(--nav-active);color:var(--nav-active-ink);box-shadow:inset 2px 0 0 #8eb7ed}
[data-theme=office] .sidebar .nav-item:hover,[data-theme=office] .sidebar .nav-group>summary:hover {background:#ffffff20}
[data-theme=office] .sidebar .workspace-label,[data-theme=office] .sidebar .nav-caption,[data-theme=office] .sidebar-caption {color:var(--nav-muted)}
[data-theme=glass3] progress::-webkit-progress-value {background:linear-gradient(90deg,#38758b,#6398aa);box-shadow:inset 0 1px 0 #ffffff4d}
[data-theme=glass3] progress::-moz-progress-bar {background:linear-gradient(90deg,#38758b,#6398aa)}
[data-theme=glass3] .decision-foot {background:#e5f1f4eb;backdrop-filter:blur(20px)}
[data-theme=glass3] .decision-head {background:#e8f2f5}
[data-theme=glass2] .card {box-shadow:none}
[data-theme=glass2] .decision-foot {background:#eef2f4e8;backdrop-filter:blur(18px)}
[data-theme=glass2] .decision-head {background:#f3f6f78c}
[data-effects=reduced] .sidebar,[data-effects=reduced] .card,[data-effects=reduced] .health-pop,[data-effects=reduced] .decision-foot {backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--surface)}
[data-theme=office][data-effects=reduced] .sidebar {background:var(--nav)}
[data-effects=reduced] .ui-ambient {display:none}
[data-density=compact] {--pad:18px;--row:9px}
[data-density=compact] .batch-hero,[data-density=compact] .issues-card {padding:20px}
@supports not (backdrop-filter:blur(1px)) {.sidebar,.card,.health-pop {background:var(--surface)}[data-theme=office] .sidebar {background:var(--nav)}}
@media(prefers-reduced-transparency:reduce) {.sidebar,.card,.health-pop {backdrop-filter:none!important;background:var(--surface)!important}[data-theme=office] .sidebar {background:var(--nav)!important}}
@media print {.sidebar,.top,.workspace-footer,.ui-ambient,.batch-steps,.decision-foot {display:none!important}.workspace {margin:0;padding:0}.card,main>.decision-view {box-shadow:none!important;background:white!important}body {background:white}}

/* Review and pickups: the same compact components as the approved studies. */
.review-toolbar,.section-head {display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0 18px;flex-wrap:wrap}
.filter-chips {display:flex;gap:6px;flex-wrap:wrap}
.filter-chip {font-size:11px;padding:7px 12px;border-radius:var(--button);color:var(--muted);border:1px solid var(--line);background:var(--surface);text-decoration:none}
.filter-chip[aria-current] {background:var(--tint);color:var(--accent);border-color:rgba(var(--accent-rgb),.25)}
.review-filter {position:relative;font-size:11px;color:var(--muted)}
.review-filter>.filters {position:absolute;right:0;top:30px;width:310px;z-index:8;background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:var(--small);padding:16px;display:grid;gap:12px}
.review-card {padding:0;overflow:hidden}
.review-card .issue-list {display:block}
.issue-big {display:flex;align-items:center;gap:18px;padding:21px 24px;border-bottom:1px solid var(--line)}
.issue-big:last-child {border:0}
.issue-symbol {width:35px;height:35px;border-radius:10px;background:var(--warn-bg);color:var(--warn);display:grid;place-items:center;flex:none}
.issue-symbol.blue {background:var(--tint);color:var(--accent)}
.issue-copy {min-width:0;flex:1}
.issue-copy h3 {font-size:13px;margin:0;font-weight:630}
.issue-copy>p {margin:5px 0 0;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.issue-meta {display:flex;flex-wrap:wrap;gap:10px;margin-top:9px;font-size:9px;color:var(--muted)}
.issue-meta a {color:inherit}
.issue-reasons {font-size:10px;margin-top:7px;color:var(--muted)}
.issue-reasons summary {font-weight:400}
.issue-reasons p {overflow-wrap:anywhere}
.issue-big>.button {margin-left:auto;flex:none}
.review-note {margin-top:20px;font-size:11px;display:flex;gap:10px;align-items:center}
.review-note>.icon {flex:none;color:var(--accent)}
.cards-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.mini-card {padding:23px;margin:0}
.mini-card h3 {font-size:14px;margin:16px 0 6px}
.mini-card p {font-size:11px;color:var(--muted);margin:0 0 20px;min-height:34px}
.mini-icon {display:grid;place-items:center;background:var(--tint);color:var(--accent);width:40px;height:40px;border-radius:12px}
.pickup-request {margin-bottom:20px;font-size:12px}.pickup-request:not([open]) {display:none}
.pickup-request .actions {margin-top:18px}.pickup-request form {margin:0}
.pickup-detail>summary {font-size:12px;margin-bottom:16px}
.pickup-detail .grid {grid-template-columns:1fr}
.table-card {padding:0;overflow:hidden}.table-card>.table-wrap {border:0;margin:0;box-shadow:none}
.table-card td small {display:block;color:var(--muted);font-size:9px;margin-top:3px}
[data-theme=office] .issue-symbol,[data-theme=office] .mini-icon {border-radius:4px}
[data-density=compact] .issue-big {padding:15px 20px}

/* The input retains the mockup proportions; richer results stay in a separate panel. */
.global-search-wrap {position:relative;margin-left:auto;min-width:0}
.global-search-wrap .global-search {margin-left:0}
.search-popover {position:absolute;top:calc(100% + 10px);right:0;width:430px;max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 14px 40px #23394926;overflow:hidden;z-index:35;color:var(--ink);max-height:min(620px,75vh);overflow-y:auto;backdrop-filter:blur(24px)}
.search-hint {font-size:10px;color:var(--muted);padding:12px 16px;margin:0;line-height:1.6}
.search-hint:empty {display:none}
.search-result {display:flex;gap:12px;align-items:center;padding:13px 16px;color:var(--ink);border-top:1px solid var(--line);text-decoration:none}
.search-result>span {flex:1;min-width:0}.search-result>.icon {flex:none;color:var(--accent)}
.search-result strong {font-size:12px;font-weight:630}.search-result em {font-size:9px;font-style:normal;margin-left:9px;color:var(--muted)}
.search-result small {display:block;font-size:10px;color:var(--muted);overflow-wrap:anywhere;margin-top:3px}
.search-result:hover,.search-result:focus-visible {background:var(--tint);text-decoration:none;outline:2px solid var(--accent);outline-offset:-2px}
.search-all {display:flex;align-items:center;justify-content:space-between;padding:13px 16px;font-size:11px;border-top:1px solid var(--line);color:var(--accent);font-weight:600}
.search-message {padding:16px;font-size:12px;margin:0}
@media(max-width:1050px) {.cards-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.review-filter>.filters{position:static;margin-top:10px}}
@media(max-width:600px) {
 .cards-grid {grid-template-columns:1fr}.issue-big {padding:18px 16px;gap:10px;flex-wrap:wrap;align-items:flex-start}
 .issue-big>.button,.issue-big>.chip {margin-left:45px}.issue-copy {flex-basis:calc(100% - 45px)}
 .review-toolbar {align-items:flex-start}.review-filter {width:100%}.review-filter>.filters {width:100%}
 .page-header>.button {font-size:11px;padding:8px 10px}
 .global-search-wrap {width:100%;order:2}.global-search-wrap .global-search {width:100%}.search-popover {width:100%;max-width:none}
}
.review-card .issue-reasons {margin:6px 0 0}
.review-card .issue-reasons summary {padding:0}
.section-head h2 {margin:0}
.pickup-request:target {display:block}
.search-customer {font-size:11px;white-space:normal;min-width:160px;max-width:260px;margin:7px 0 0}
.table-toolbar input,.table-toolbar select {font-size:11px;min-height:33px;padding:7px 10px;max-width:190px}
.table-toolbar label {font-size:10px;color:var(--muted)}
.table-toolbar .small {font-size:10px}.table-toolbar .filter-set {flex-wrap:wrap}
.shipment-filters {flex-wrap:wrap;justify-content:flex-start;gap:10px}.shipment-filters label {flex-direction:column;align-items:flex-start;gap:4px}
.shipment-filters .filter-reset {font-size:11px}
.table-help {padding:0 20px}.table-card .table-help {font-size:10px;margin:8px 0}.table-help p {font-size:11px;padding-bottom:10px}
.system-cards {margin-bottom:24px}.account-details>summary {font-size:12px;color:var(--accent)}
/* The mobile viewport clips off-screen layers; tables scroll in their own regions. */
@media(max-width:600px) {html {overflow-x:clip}}

/* (i) tip fallback for every theme; the floating bubble itself is Glass Balance only (glass-controls.css). */
.info-tip {display:inline-block;vertical-align:middle}
.info-tip>summary {list-style:none;display:inline-flex;align-items:center;cursor:pointer;color:var(--accent);padding:0}
.info-tip>summary::-webkit-details-marker {display:none}
.info-tip[open]>p {margin:6px 0 0;max-width:62ch;font-size:12px;line-height:1.45;color:var(--muted)}
