/* The app shell shared by every page, including the quote editor: design tokens, the navy
   sidebar and the mobile drawer. From the "Workspace" design (docs/design/editor-workspace-README.md). */

:root {
  --navy: #02237b; --navy-tint: #eef0f9;
  --sb-muted: #c3c9e6; --sb-label: #9aa3d1;
  --orange: #fa8537; --orange-text: #e06b1f; --orange-tint: #fff1e8;
  --text: #1a1d29; --text-2: #5b6072; --text-3: #8b8f9e;
  --border: #e3e5ea; --border-strong: #cbced8;
  --surface: #ffffff; --bg: #f6f7f9; --surface-2: #f2f3f6;
  --green: #1f8a4c; --green-bg: #e8f6ec;
  --amber: #a15c00; --amber-bg: #fdf1de;
  --red: #c62828; --red-bg: #fceceb;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sidebar-w: 232px;
}

body.has-shell { margin: 0; }
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--navy); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; font-family: var(--font); z-index: 50;
}
.sb-brand { padding: 0 8px; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.sb-brand img { height: 30px; width: auto; display: block; }
.sb-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.sb-sub { font-size: 11px; color: var(--sb-muted); }
.sb-project { background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.sb-project .sb-sub { font-size: 11px; }
.sb-project-ref { font-size: 13.5px; font-weight: 600; }
.sb-project-cust { font-size: 11.5px; color: var(--sb-muted); }
.sb-group { display: flex; flex-direction: column; gap: 2px; }
.sb-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sb-label); padding: 0 8px 6px; }
.sb-item {
  font: 13px/1.35 var(--font); padding: 7px 10px; border-radius: 6px; color: #fff; text-decoration: none;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: none; border: none; text-align: left; cursor: pointer; width: 100%;
}
.sb-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sb-item[aria-current] { background: #fff; color: var(--navy); font-weight: 600; }
.sb-item[aria-current]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
.sb-item:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.sb-item .sb-count { font-size: 11px; background: var(--orange); color: #fff; border-radius: 10px; padding: 0 6px; font-weight: 600; }
/* Dashboard · Projects · Production, at the top of every page. */
.sb-main { display: flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 3px; }
.sb-top { flex: 1 1 0; text-align: center; font: 600 12px/1.3 var(--font); padding: 7px 4px; border-radius: 6px; color: #fff; text-decoration: none; }
.sb-top:hover { background: rgba(255, 255, 255, .1); }
.sb-top[aria-current] { background: #fff; color: var(--navy); }
.sb-top:focus-visible, .sb-more:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
/* More: the less-used pages, small, at the bottom. */
.sb-more-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.sb-more-group .sb-label { padding-bottom: 2px; }
.sb-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-more { font: 12px/1.35 var(--font); color: var(--sb-muted); text-decoration: none; padding: 4px 10px; border-radius: 5px; background: none; border: none; text-align: left; cursor: pointer; }
.sb-more:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sb-more[aria-current] { color: #fff; font-weight: 700; background: rgba(255, 255, 255, .12); }
/* The open job's stage, in the project box. */
.sb-job { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 8px; padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.sb-job:empty { display: none; }
.sb-stage { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-bg); color: #1f6b3d; }
.sb-stage.quote { background: var(--amber-bg); color: #8a4f00; }
.sb-job-who { font-size: 11.5px; color: var(--sb-muted); }
.sb-job a { font-size: 12px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.sb-note { font-size: 11.5px; color: var(--sb-muted); padding: 2px 10px 0; line-height: 1.4; margin: 0; }
.sb-footer { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 12px; }
.sb-user { padding: 6px 10px 4px; font-size: 12.5px; line-height: 1.35; }
.sb-user small { display: block; color: var(--sb-muted); font-size: 11px; }

/* ---------- Mobile: sidebar becomes a drawer ---------- */
.mobilebar { display: none; }
.sb-scrim { display: none; }
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .mobilebar {
    display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 14px;
    font: 600 14px var(--font); position: sticky; top: 0; z-index: 40;
  }
  .mobilebar button { background: none; border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 16px; cursor: pointer; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, .25); }
  .shell.drawer-open .sidebar { transform: none; }
  .shell.drawer-open .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(16, 20, 40, .4); z-index: 45; }
}
@media print {
  .sidebar, .mobilebar, .sb-scrim { display: none !important; }
  .shell { display: block; }
}

/* ---------- Sign-in (also shown over the editor) ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); font: 13.5px/1.5 var(--font); color: var(--text); background: var(--bg); }
.auth-side { background: var(--navy); color: #fff; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-side .sb-brand { padding: 0; }
.auth-side .sb-title { font-size: 18px; }
.auth-side h2 { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 0 0 10px; max-width: 420px; }
.auth-side p { color: var(--sb-muted); max-width: 420px; margin: 0; }
.auth-accent { width: 48px; height: 4px; background: var(--orange); border-radius: 2px; margin-bottom: 18px; }
.auth-foot { font-size: 12px; color: var(--sb-label); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 20px; }
.auth-logo { width: min(300px, 70vw); height: auto; display: block; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; box-shadow: 0 1px 2px rgba(16, 20, 40, .05); }
.auth-card h1 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.auth-card p { margin: 0 0 12px; }
.auth-card .stack { display: grid; gap: 12px; }
.auth-card .stack label { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.auth-card input { font: inherit; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px; width: 100%; box-sizing: border-box; background: #fff; color: var(--text); }
.auth-card input:focus, .auth-card button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.auth-card button { font: 500 14px/1.3 var(--font); padding: 9px 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); cursor: pointer; }
.auth-card button.primary { background: var(--orange); border-color: var(--orange); color: #fff; width: 100%; }
.auth-card button.link { border: none; background: none; color: var(--navy); padding: 4px 0; text-decoration: underline; width: auto; }
.auth-card .form-error { color: var(--red); background: var(--red-bg); border-radius: 6px; padding: 8px 10px; margin: 0; font-size: 13px; }
.auth-card .hint { color: var(--text-2); font-size: 12.5px; }
.auth-card .steps { padding-left: 20px; display: grid; gap: 10px; }
.auth-card .qr img { width: 180px; height: 180px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px; margin: 10px 0; }
.auth-card .secret { display: block; word-break: break-all; background: var(--surface-2); padding: 8px; border-radius: 6px; font-size: 13px; }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 18px 20px; }
  .auth-side h2, .auth-side p, .auth-side .auth-accent, .auth-foot { display: none; }
}

/* ---------- Brand: Jost (SIL Open Font License), logo and loader ---------- */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2"); }
.sb-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.sb-wordmark { height: 15px; width: auto; display: block; }
.sb-brand .sb-sub { font: 500 10px/1.2 "Jost", var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--sb-muted); }
.auth-side .sb-wordmark { height: 22px; }
.auth-side .sb-brand .sb-sub { font-size: 11.5px; }

.abc-logo { width: 100%; height: auto; display: block; overflow: visible; }
.abc-logo rect, .abc-logo .abc-tile { fill: var(--navy); }
.abc-logo text { fill: var(--navy); font-family: "Jost", sans-serif; font-weight: 500; }
.abc-abc { font-size: 187px; }
.abc-tag { font-size: 48px; }
.abc-rise, .abc-drop, .abc-grow, .abc-slide { animation-duration: .7s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); animation-fill-mode: both; transform-box: fill-box; }
.abc-rise { animation-name: abcRise; }
.abc-drop { animation-name: abcDrop; animation-duration: .55s; }
.abc-grow { animation-name: abcGrow; animation-duration: .45s; transform-origin: center; }
.abc-slide { animation-name: abcSlide; animation-duration: .6s; }
.abc-wave { animation: abcWave 1.8s ease-in-out infinite; }
.abc-wave .abc-tile { animation: abcWaveFill 1.8s ease-in-out infinite; }
@keyframes abcRise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes abcDrop { from { transform: translateY(-34px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes abcWave { 0%, 45%, 100% { transform: translateY(0); } 20% { transform: translateY(-7px); } }
@keyframes abcWaveFill { 0%, 45%, 100% { fill: #02237b; } 20% { fill: #3d5aa8; } }
@keyframes abcGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes abcSlide { from { transform: translateX(-36px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.abc-welcome { position: fixed; inset: 0; z-index: 2000; background: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; transition: opacity .35s ease; cursor: pointer; }
.abc-welcome.leaving { opacity: 0; pointer-events: none; }
.abc-welcome-logo { width: min(560px, 80vw); }

.abc-spinner { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-2); font: 12.5px var(--font); }
.abc-spinner svg { width: 72px; height: auto; overflow: visible; }
.abc-spinner .abc-tile { fill: var(--navy); }
.loading-block { display: flex; justify-content: center; padding: 15vh 0; }

@media (prefers-reduced-motion: reduce) {
  .abc-rise, .abc-drop, .abc-grow, .abc-slide, .abc-wave, .abc-wave .abc-tile { animation: none !important; }
}

/* ---------- Quote status pills (projects list and editor header) ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.warning { background: var(--amber-bg); color: var(--amber); }
.status-pill.orange { background: var(--orange-tint); color: var(--orange-text); }
.status-pill.success { background: var(--green-bg); color: var(--green); }
.status-pill.navy { background: var(--navy-tint); color: var(--navy); }
.status-pill.muted { background: var(--surface-2); color: var(--text-3); }

/* Signing out after 3 hours without activity (idle.js) */
.idle-warning { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(16, 20, 40, .45); }
.idle-box { background: #fff; border-radius: 12px; padding: 22px 24px; max-width: 380px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.idle-box h2 { margin: 0 0 8px; font-size: 18px; }
.idle-box p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.idle-lock { position: fixed; inset: 0; z-index: 1001; overflow: auto; background: var(--bg, #f6f7f9); }

/* Choice pop-up (js/choice-dialog.js): overwrite or new revision, copy a project. */
.choice-dialog { border: none; border-radius: 12px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(16, 20, 40, .25); color: var(--text); }
.choice-dialog::backdrop { background: rgba(10, 16, 40, .45); }
.choice-dialog form { padding: 22px 24px 18px; }
.choice-dialog h2 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.choice-body { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.choice-body p { margin: 0 0 10px; }
.choice-body .choice-warning { background: var(--orange-tint); border-left: 4px solid var(--orange); color: var(--text); padding: 9px 12px; border-radius: 6px; }
.choice-field { display: block; font-size: 13px; font-weight: 600; margin: 4px 0 2px; }
.choice-field input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; font: inherit; font-size: 15px; border: 1px solid var(--border-strong); border-radius: 6px; text-transform: uppercase; }
.choice-error { min-height: 18px; margin: 4px 0 4px; font-size: 13px; color: #c62828; }
.choice-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.choice-dialog .choice-option { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
.choice-option:hover:not([disabled]) { border-color: var(--navy); background: var(--navy-tint); }
.choice-option strong { font-size: 14.5px; }
.choice-option span { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.choice-dialog .choice-option.recommended { border-color: var(--navy); border-width: 2px; background: var(--surface); color: var(--text); }
.choice-dialog .choice-option.recommended:hover { background: var(--navy-tint); }
.choice-option.warn strong { color: var(--orange-text); }
.choice-option[disabled] { opacity: .55; cursor: not-allowed; }
.choice-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.choice-cancel { background: none; border: none; color: var(--text-2); font: inherit; cursor: pointer; padding: 6px 10px; }
.choice-cancel:hover { color: var(--text); text-decoration: underline; }

/* A brief "Saved" confirmation. */
.save-toast { position: fixed; top: 18px; left: 50%; transform: translate(-50%, -20px); opacity: 0; z-index: 1000; background: var(--green); color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: 14.5px; box-shadow: 0 8px 24px rgba(16, 20, 40, .22); transition: opacity .25s, transform .25s; pointer-events: none; }
.save-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Test system banner (js/supabase.js, Abitus 5 Nov 2026). */
.test-banner { position: relative; z-index: 2000; background: repeating-linear-gradient(-45deg, #fa8537 0 14px, #f77a24 14px 28px); color: #1a1d29; font: 700 13px/1.3 var(--font); letter-spacing: .02em; text-align: center; padding: 6px 12px; box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
@media print { .test-banner { display: none; } }
.is-test body::after { content: "TEST"; position: fixed; right: 12px; bottom: 12px; z-index: 2000; background: #fa8537; color: #1a1d29; font: 800 12px/1 var(--font); letter-spacing: .1em; padding: 6px 10px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: none; }
@media print { .is-test body::after { display: none; } }

/* ---------- Master catalogue (update 1.3): register, picker and bundle status ---------- */
.cat-code { display: inline-flex; align-items: center; gap: 2px; }
.cat-code code { font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--navy-tint); color: var(--navy); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.cat-copy { border: none; background: none; color: var(--text-3); cursor: pointer; font-size: 13px; padding: 2px 4px; }
.cat-copy:hover { color: var(--navy); }
.cat-bu { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.cat-filters { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.cat-filters .cat-search, #catPickSearch { width: 100%; box-sizing: border-box; padding: 9px 12px; font: inherit; font-size: 14px; border: 1px solid var(--border-strong); border-radius: 8px; }
.cat-filter-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 10px; }
.cat-filter-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.cat-filter-grid select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 7px; min-width: 150px; background: #fff; }
.cat-filter-grid .ed-switch { flex-direction: row; align-items: center; }
.cat-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.cat-seg button { border: none; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 6px 12px; cursor: pointer; }
.cat-seg button + button { border-left: 1px solid var(--border); }
.cat-seg button.on { background: var(--navy); color: #fff; }
.cat-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 12.5px; }
.cat-count { color: var(--text-2); margin-right: 6px; }
.cat-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--navy-tint); color: var(--navy); font-weight: 600; padding: 2px 4px 2px 10px; border-radius: 999px; }
.cat-pill button { border: none; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; }
.cat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cat-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cat-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cat-table td:nth-child(6), .cat-table td:nth-child(5) { white-space: nowrap; }
.cat-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cat-table tr.inactive td { opacity: .55; }
.cat-table tr.open td { background: #fafbfd; border-bottom-color: transparent; }
.cat-exp { width: 26px; }
.cat-chev { border: none; background: none; cursor: pointer; color: var(--text-2); font-size: 13px; padding: 2px 4px; }
.cat-drawer > td { background: #fafbfd; padding: 4px 16px 16px 42px; }
.cat-meta { margin: 6px 0 8px; font-size: 12.5px; color: var(--text-2); }
.cat-notes { margin: 0 0 8px; font-size: 12.5px; }
.cat-items { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.cat-items th { text-align: left; font-size: 10.5px; text-transform: uppercase; color: var(--text-3); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.cat-items td { padding: 6px 10px; border-bottom: 1px solid #f0f1f4; }
.cat-items .num { text-align: right; }
.cat-drawer-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cat-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.cat-edit label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.cat-edit input:not([type=checkbox]) { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 7px; }
.cat-edit .wide { grid-column: 1 / -1; }
.cat-edit .cat-offer { flex-direction: row; align-items: center; gap: 6px; }
.cat-edit-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.cat-empty { padding: 18px 10px !important; text-align: center; }
.muted.small, .cat-table .small { font-size: 11.5px; }
.cat-view { padding: 4px 0; }
.cat-view-head h2 { margin: 0 0 4px; }
.cat-view-head .hint { margin: 0 0 12px; }
.cat-dlg { width: min(860px, calc(100vw - 32px)); max-width: 860px; border: none; border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(2, 35, 123, .25); }
.cat-dlg::backdrop { background: rgba(10, 16, 40, .45); }
.cat-dlg-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cat-dlg-head > div { flex: 1; }
.cat-dlg-head h2 { margin: 0; font-size: 18px; }
.cat-dlg-head .hint { margin: 2px 0 0; }
.ed .cat-dlg-head .ed-close, .cat-dlg-head .ed-close { position: static; margin: -4px -8px 0 0; }
.cat-dlg-head .link { white-space: nowrap; padding-top: 2px; }
.cat-dlg .cat-seg { margin: 10px 0; }
.cat-dlg-table { max-height: 340px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.cat-dlg-table thead th { position: sticky; top: 0; background: #fff; }
.cat-dlg-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.cat-dlg-foot .spacer { flex: 1; }
.ed-cat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; font-size: 12.5px; color: var(--text-2); }
.ed-cat-tick { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); cursor: pointer; margin-left: auto; }
.ed-cat-now { font-weight: 600; color: var(--text); }
@media (max-width: 700px) { .cat-edit { grid-template-columns: 1fr; } .cat-drawer > td { padding-left: 12px; } }
