/* Product Tracking: canonical visual system. Component behavior lives in app.css. */
:root {
  color-scheme: light;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sidebar: 224px;
  --page-gutter: 22px;
  /* Palette: black ink, navy structure, blue action. */
  --ink: #0a0f1c;
  --navy-950: #070f20;
  --navy-900: #0b1a33;
  --navy-800: #112548;
  --navy-700: #1a3566;
  --blue: #1f5bd8;
  --blue-hover: #1848b4;
  --blue-50: #eef4ff;
  --blue-100: #dce7fe;
  --blue-200: #bcd0fb;
  --bg: #f3f5f9;
  --surface: #fff;
  --surface-2: #f7f9fc;
  --surface-3: #edf1f7;
  --text: #0b1220;
  --muted: #475467;
  --subtle: #5f6b7d;
  --line: #e2e7ef;
  --border: var(--line);
  --line-strong: #c7d1e0;
  --ring: #8fb0f2;
  --primary: var(--blue);
  --primary-hover: var(--blue-hover);
  --primary-soft: var(--blue-50);
  --primary-line: var(--blue-200);
  --success: #0f7a4a;
  --success-soft: #e9f7f0;
  --success-line: #b6e2cb;
  --warning: #a65408;
  --warning-soft: #fff6e8;
  --warning-line: #f3d29a;
  --danger: #c0262d;
  --danger-soft: #fff1f1;
  --danger-line: #f4c3c5;
  --green: var(--success);
  --red: var(--danger);
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px #0b1a330a, 0 1px 3px #0b1a330d;
  --shadow-md: 0 4px 14px #0b1a3314;
  --shadow-lg: 0 18px 50px #0b1a3333;
  --chart-1: #1f5bd8;
  --chart-2: #0b1a33;
  --chart-3: #5b8def;
  --chart-4: #2f4a7a;
  --chart-5: #9dbcf7;
  --chart-6: #475467;
  --chart-7: #c8d7f7;
  --chart-8: #94a3b8;
}
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
h1 { font-size: 23px; font-weight: 650; letter-spacing: -.5px; line-height: 1.3; }
h2 { font-size: 16px; font-weight: 650; line-height: 1.4; }
h3 { font-size: 14px; line-height: 1.4; }
a { color: var(--primary); }
:where(button,input,select,textarea,a,[tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
button { min-height: 34px; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 13px; gap: 6px; box-shadow: none; }
button.primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: none; }
button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
button.icon { min-width: 34px; min-height: 34px; padding: 7px; }
button.text { min-height: 30px; padding: 4px 2px; }
button:disabled { opacity: .5; }
.sidebar { padding: 16px 10px 10px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { font-size: 15px; gap: 8px; padding: 0 4px 16px; letter-spacing: -.3px; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; color: white; background: var(--primary); }
.workspace { padding: 9px; gap: 8px; margin-bottom: 16px; border-radius: 6px; background: var(--surface-2); }
.workspace > div { min-width: 0; overflow-wrap: break-word; }
.workspace strong { font-size: 12px; }
.workspace-icon { width: 28px; height: 30px; }
.nav-label { font-size: 10px; letter-spacing: .8px; margin: 0 10px 7px; }
.nav { gap: 3px; }
.nav button { min-height: 38px; padding: 8px 10px; font-size: 13px; gap: 8px; color: var(--muted); background: transparent; border-color: transparent; }
.nav button.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.nav button:nth-child(5) { margin-top: 0; }
.sidebar-bottom .help-link { font-size: 12px; }
.profile { padding: 12px 4px 0; gap: 8px; }
.avatar { background: var(--primary-soft); color: var(--primary); width: 30px; height: 30px; }
.topbar { height: 54px; padding: 0 var(--page-gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.crumb { font-size: 13px; }
.top-actions { gap: 10px; }
.global-search { width: 250px; padding: 6px 9px; background: var(--surface-2); border-color: var(--line); border-radius: 6px; }
.content { max-width: 1920px; padding: 18px var(--page-gutter); margin: 0 auto; }
.page-heading { margin-bottom: 14px; gap: 12px; align-items: center; }
.page-heading p { font-size: 13px; margin-top: 3px; color: var(--muted); }
.heading-actions, .detail-controls, .row-actions { gap: 6px; }
.footer { margin-top: 14px; font-size: 11px; color: var(--muted); }
.panel, .metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.panel-head { padding: 12px 14px; gap: 10px; min-height: 48px; }
.panel-head h2 { font-size: 15px; }
.panel-subtitle, .section-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tabs { padding: 0 14px; gap: 18px; overflow-x: auto; }
.tabs button { font-size: 13px; padding: 9px 0; min-height: 38px; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .number { padding: 1px 5px; background: var(--surface-3); color: var(--muted); }
.workspace-actions { margin-bottom: 12px; }
.detail-header { padding: 14px 14px 10px; gap: 10px; }
.detail-header h1, .detail-header h2 { font-size: 21px; line-height: 1.3; }
.detail-header p { margin-top: 2px; font-size: 13px; }
.detail-header .picon { width: 36px; height: 38px; }
.product-statuses { gap: 16px; }
.product-statuses small, .detail-meta small { font-size: 11px; letter-spacing: .2px; }
.detail-meta { padding: 4px 14px 12px; gap: 16px; }
.detail-meta strong { font-size: 13px; }
.detail-body { margin-top: 12px; }
.detail-grid { padding: 14px; gap: 14px; }
.detail-box { padding: 14px; border-radius: 6px; }
/* Explicit colgroups are built from header meanings, never from column positions. */
.table-wrap { max-width: 100%; min-width: 0; overflow: auto; border-radius: 0 0 8px 8px; scrollbar-gutter: stable; }
.table-wrap:focus-visible { outline-offset: -2px; }
table.data-grid { width: 100%; min-width: var(--table-min-width); table-layout: fixed; border-collapse: collapse; }
table.data-grid :is(th,td) { width: auto; min-width: 0; max-width: none; padding: 9px 12px; vertical-align: middle; text-align: left; white-space: normal; overflow-wrap: break-word; word-break: normal; line-height: 1.45; }
table.data-grid th { font-size: 11px; font-weight: 600; letter-spacing: .25px; background: var(--surface-2); color: var(--muted); border-block: 1px solid var(--line); }
table.data-grid th button { font-size: inherit; min-height: 26px; text-transform: none; white-space: normal; align-items: center; width: 100%; }
table.data-grid td { font-size: 13px; border-bottom: 1px solid var(--line); }
table.data-grid tbody tr:last-child td { border-bottom: 0; }
table.data-grid [data-column="number"] { text-align: right; font-variant-numeric: tabular-nums; }
table.data-grid [data-column="actions"] { text-align: right; padding-inline: 6px; overflow: visible; }
table.data-grid [data-column="sequence"], table.data-grid [data-column="related"], table.data-grid [data-column="date"] { font-variant-numeric: tabular-nums; }
table.data-grid .product-name { min-width: 0; gap: 8px; }
table.data-grid .product-name > div { min-width: 0; }
table.data-grid .product-name strong { max-width: none; font-size: 13px; }
table.data-grid :is(.product-name small,.table-subline,.cell-secondary) { font-size: 12px; color: var(--muted); margin-top: 3px; }
table.data-grid .badge { white-space: nowrap; }
table.data-grid .assignee-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; }
table.data-grid .assignee-chips > * { max-width: 100%; white-space: normal; overflow-wrap: break-word; word-break: normal; }
table.data-grid [data-column="people"] { padding-inline: 10px; }
.table-controls, .table-tools { padding: 8px 14px; gap: 8px; }
.table-controls .table-search { max-width: 280px; }
.table-search input { min-height: 32px; }
.table-controls select, .table-controls .field { min-height: 32px; }
.table-pagination { padding: 8px 14px; font-size: 12px; border-top: 1px solid var(--line); }
.toolbar, .product-toolbar, .filter-bar { padding: 10px 14px; gap: 8px; }
.filter-bar > div { flex: 0 1 180px; min-width: 140px; }
.filter-bar > div.filter-search { flex: 1 1 240px; }
.filter-bar label { font-size: 11px; }
.filter-bar .field, .submission-filters .field { min-height: 32px; }
.badge { font-size: 11px; line-height: 1.4; padding: 3px 7px; border-radius: 4px; }
.metrics { gap: 12px; margin-bottom: 14px; }
.metric { padding: 14px; }
.metric-number { font-size: 28px; line-height: 1.15; }
.metric-foot { margin-top: 5px; font-size: 12px; }
.middle-grid, .portfolio-grid { gap: 14px; margin-bottom: 14px; }
.quick-actions { gap: 6px; margin-bottom: 12px; }
.widget .panel-head { padding: 12px 14px; }
.summary-tiles { gap: 10px; margin-block: 12px; }
.summary-tile { padding: 12px; }
.activity-card, .alert-card { padding: 12px 14px; margin-bottom: 8px; }
.reminder-grid { gap: 0 16px; }
.reminder-item { padding-block: 10px; }
.correspondence { margin: 0 14px 10px; padding: 12px; }
.correspondence-head { gap: 10px; }
.correspondence-head p { margin-top: 3px; }
.correspondence .requirement { margin-block: 8px; padding: 8px 10px; }
.correspondence-foot { margin-top: 10px; padding-top: 8px; }
.file-item { padding: 10px 14px; gap: 10px; }
.file-item > div { min-width: 0; overflow-wrap: anywhere; }
.folder-summary { padding: 12px 14px; gap: 12px; background: var(--surface-2); }
.folder-path { font: 12px/1.5 ui-monospace,monospace; overflow-wrap: anywhere; }
.folder-notes { margin: 10px 14px; font-size: 12px; color: var(--muted); }
.folder-notes summary { cursor: pointer; color: var(--primary); padding-block: 6px; }
.folder-notes p { margin-top: 6px; }
.folder-help { margin: 10px 14px; }
.settings-grid { grid-template-columns: 200px minmax(0,1fr); gap: 14px; align-items: start; }
.settings-nav { gap: 3px; }
.settings-nav button { min-height: 36px; font-size: 13px; padding: 8px 10px; min-width: 0; white-space: normal; text-align: left; line-height: 1.3; }
.settings-body { padding: 16px; max-width: none; }
.settings-body > p { font-size: 13px; margin: 4px 0 14px; }
.settings-section { margin-top: 16px; padding-top: 12px; }
.settings-actions { margin-top: 16px; padding-top: 12px; }
.form-grid, .settings-section .form-grid { gap: 12px 16px; }
.form-grid > div { min-width: 0; }
label { font-size: 12px; margin-bottom: 4px; }
.field, .smtp-fields .field { min-height: 34px; padding: 6px 9px; font-size: 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
textarea.field { min-height: 80px; height: auto; line-height: 1.5; }
.form-help { font-size: 12px; line-height: 1.5; margin-top: 4px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
[aria-invalid="true"] { border-color: var(--danger); }
.info-box { padding: 10px 12px; margin: 12px 0; font-size: 13px; line-height: 1.5; border-radius: 6px; }
.info-box.warn { background: var(--warning-soft); border-color: var(--warning-line); }
.empty { padding: 24px 16px; }
.empty p { line-height: 1.5; }
dialog { width: min(760px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 10px; padding: 0; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: #172b4966; }
.modal-head { padding: 14px 18px; gap: 12px; }
.modal-head h2 { font-size: 18px; }
.modal-head p { margin-top: 4px; font-size: 13px; }
.modal-body { padding: 16px 18px; }
.modal-footer { padding: 12px 18px; gap: 8px; background: var(--surface-2); }
.rd-grid { gap: 12px 20px; }
.rd-grid dt { font-size: 12px; color: var(--muted); }
.rd-grid dd { font-size: 13px; overflow-wrap: break-word; }
.rd-section { padding-block: 12px; }
.kanban { gap: 12px; padding: 12px; }
.kanban-col { min-width: 240px; background: var(--surface-2); border-color: var(--line); }
.kanban-card { padding: 12px; border-radius: 6px; box-shadow: none; }
.reports-grid { gap: 14px; }
.report-summary { gap: 10px; }
.report-chart { padding: 14px; }
.email-preview { padding: 14px; font-size: 13px; line-height: 1.6; }
@media (max-width: 1050px) {
  .middle-grid,.portfolio-grid { grid-template-columns: minmax(0,1fr); }
  .settings-grid { grid-template-columns: 180px minmax(0,1fr); }
  .global-search { width: 210px; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 12px; }
  .shell { grid-template-columns: minmax(0,1fr); }
  .main { grid-column: 1; }
  .sidebar { width: 240px; }
  .content { padding-top: 12px; }
  .page-heading { display: flex; align-items: flex-start; flex-wrap: wrap; }
  .heading-actions { margin-top: 0; }
  .page-heading h1 { font-size: 21px; }
  .topbar { height: 54px; }
  .global-search { width: min(38vw,220px); }
  .global-search .key { display: none; }
  .detail-header { flex-wrap: wrap; }
  .product-statuses { width: 100%; margin-left: 0; }
  .detail-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-grid { grid-template-columns: minmax(0,1fr); }
  .settings-nav { display: flex; flex-direction: row; overflow-x: auto; flex-wrap: nowrap; }
  .settings-nav button { flex: 0 0 auto; white-space: nowrap; }
  .form-grid,.settings-section .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid .full { grid-column: 1; }
  .filter-bar > div { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .filter-bar > div.filter-search { flex-basis: 100%; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .table-controls { flex-wrap: wrap; }
  .table-controls .table-search { flex: 1 1 100%; max-width: none; }
  dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .modal-body,.modal-head,.modal-footer { padding: 12px; }
  .rd-grid,.rd-grid.two { grid-template-columns: minmax(0,1fr); }
  .footer { flex-wrap: wrap; }
}
@media (pointer: coarse) {
  button,button.icon,button.text,.tabs button,.nav button,.settings-nav button { min-height: 44px; }
  button.icon { min-width: 44px; }
  table.data-grid th button { min-height: 44px; }
  .field,.smtp-fields .field,.filter-bar .field,.table-controls .field { min-height: 44px; font-size: 16px; }
  .cal-day { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Searchable selects use the same control rhythm as native inputs. */
.select-trigger { min-height: 34px; font-size: 13px; padding: 6px 9px; }
.select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-options button { padding: 8px 10px; font-size: 13px; line-height: 1.5; text-align: left; }
.select-search { min-height: 34px; font-size: 13px; }
.submission-filter-grid { gap: 8px 10px; }
.submission-filter-grid .smart-select, .submission-filter-grid .select-trigger { max-width: 210px; }
.submission-filter-grid input[type="date"] { width: 145px; }
.rd-columns { gap: 16px; }
.auth-card { padding: 24px; }
.auth-layout { gap: 20px; }
@media (max-width: 760px) {
  .submission-filter-grid .smart-select,.submission-filter-grid .select-trigger { max-width: none; }
}
@media (pointer: coarse) {
  .select-trigger,.select-search,.select-options button { min-height: 44px; }
  .select-trigger,.select-search { font-size: 16px; }
}
/* Filters stay visible; their labels and selected values are part of the task. */
.product-filters, .submission-filter-grid { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
.product-filters { padding: 8px 14px 10px; border-bottom: 1px solid var(--line); }
.product-filters > div { flex: 0 1 180px; min-width: 130px; }
.product-filters .smart-select, .product-filters .select-trigger { display: block; width: 100%; max-width: 210px; }
.product-filters label,.submission-filter-grid label { font-size: 11px; margin-bottom: 3px; color: var(--muted); }
.product-filters .field,.product-search-row .field,.submission-filters .field { min-height: 34px; height: auto; font-size: 13px; }
.submission-filters { padding: 8px 14px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.submission-filter-heading { margin-bottom: 6px; }
.submission-filter-heading strong { font-size: 12px; }
@media (max-width: 760px) {
  .product-filters > div,.submission-filter-grid > div { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .product-filters .smart-select,.product-filters .select-trigger,.submission-filter-grid .smart-select,.submission-filter-grid .select-trigger { width: 100%; max-width: none; }
  .submission-filter-grid input[type="date"] { width: 100%; }
}
@media (pointer: coarse) {
  .product-filters .field,.product-search-row .field,.submission-filters .field { min-height: 44px; font-size: 16px; }
}

/* Operational hierarchy: neutral surfaces, navy navigation, explicit urgency. */
.sidebar { background: #101e33; color: #fff; border-right: 0; }
.sidebar .brand { color: #fff; }
.sidebar .workspace { background: #1b2c45; border: 1px solid #34445b; }
.sidebar .workspace strong,.sidebar .profile strong { color: #fff; }
.sidebar .muted,.sidebar .nav-label,.sidebar .profile .small { color: #c2ccda; }
.sidebar .nav button { color: #d1d9e5; }
.sidebar .nav button:hover { background: #243750; color: #fff; }
.sidebar .nav button.active { background: #fff; color: #172d4d; box-shadow: inset 3px 0 #8b9bb1; }
.sidebar .nav button.active .count-pill { background: #e8edf4; color: #172d4d; }
.sidebar .help-link { color: #c2ccda; }
.sidebar .profile { border-color: #34445b; }
.sidebar .brand-mark { background: #fff; color: #172d4d; }
.topbar { box-shadow: 0 1px 3px #11182705; }
.page-heading h1 { color: #101e33; font-size: 24px; letter-spacing: -.6px; }
.panel-head { border-bottom: 1px solid var(--line); }
.panel-head h2 { color: var(--primary); }
.table-controls { background: var(--surface); }
table.data-grid th { background: #eef1f5; color: #394452; font-weight: 650; }
table.data-grid tbody tr:hover { background: #f0f4f9; }
table.data-grid tbody tr:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.badge { font-weight: 600; border: 1px solid #bdd8c8; color: var(--success); background: var(--success-soft); }
.badge.blue { color: #233d61; background: #edf2f8; border-color: #c9d5e5; }
.badge.gray { color: #4b5563; background: #f0f2f5; border-color: #d7dde5; }
.badge.amber { color: #80500b; background: #fff3d6; border-color: #e8c779; }
.badge.red { color: #9e262b; background: #ffeaeb; border-color: #eab6ba; }
.kpi-grid.portfolio-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 6px; background: #fff; text-align: left; }
.kpi:hover { background: var(--surface-2); border-color: var(--primary-line); }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 30px; line-height: 1.15; color: var(--primary); font-variant-numeric: tabular-nums; }
.kpi-foot { color: var(--muted); font-size: 12px; }
.kpi-danger { border-top-color: var(--danger); background: #fff9f9; }
.kpi-danger .kpi-value { color: var(--danger); }
.kpi-warning { border-top-color: var(--warning); background: #fffcf5; }
.kpi-warning .kpi-value { color: var(--warning); }
.deadline-cards { display: grid; gap: 8px; padding-top: 10px; }
.deadline-card { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; padding: 10px 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary); }
.deadline-card:hover { background: var(--surface-2); border-color: var(--primary-line); }
.deadline-card.tone-danger { border-left-color: var(--danger); background: #fff9f9; }
.deadline-card.tone-warning { border-left-color: var(--warning); background: #fffdf7; }
.deadline-card-top,.deadline-card-foot,.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deadline-card-top strong { font-size: 13px; color: var(--text); }
.deadline-product { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.deadline-context { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.deadline-card-foot { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.tone-danger .deadline-card-foot strong { color: var(--danger); }
.tone-warning .deadline-card-foot strong { color: var(--warning); }
.product-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-top: 12px; }
.product-card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; padding: 12px; background: #fff; border: 1px solid var(--line); }
.product-card:hover { border-color: #879ab5; background: #fafbfd; }
.product-card .picon { width: 30px; height: 30px; background: var(--primary-soft); color: var(--primary); }
.product-card-name { font-size: 14px; line-height: 1.4; color: var(--primary); }
.product-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.product-card dt { font-size: 11px; color: var(--muted); }
.product-card dd { font-size: 12px; color: var(--text); margin: 2px 0 0; overflow-wrap: anywhere; }
.product-card-deadline { border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
.product-card-deadline > span:last-child { display: grid; gap: 3px; }
.client-directory-filters { display: flex; flex-wrap: wrap; align-items: flex-end; border-bottom: 1px solid var(--line); }
.client-directory-filters > div { width: 190px; }
.client-directory-filters .register-summary { margin-left: auto; align-self: center; }
.sequence-optional { border: 1px solid var(--line); border-radius: 6px; }
.sequence-optional summary { padding: 10px 12px; cursor: pointer; font-weight: 600; color: var(--primary); background: var(--surface-2); }
.sequence-optional > .form-grid { padding: 12px; }
.sequence-form .product-context { padding: 10px 12px; }
.sequence-form .product-context dl { gap: 8px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width:1100px) { .product-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .product-cards { grid-template-columns: 1fr; } .kpi-grid.portfolio-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } .client-directory-filters > div { width: calc(50% - 6px); min-width: 0; } .deadline-card-top { flex-wrap: wrap; } }

.vbars { display: flex; gap: 8px; height: 190px; align-items: stretch; padding-top: 12px; overflow-x: auto; }
.vbar { flex: 1 0 30px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.vbar-value { height: 18px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vbar-track { width: min(100%,32px); height: 125px; display: flex; align-items: flex-end; background: var(--surface-3); border-radius: 3px 3px 0 0; }
.vbar-fill { display: block; width: 100%; background: var(--primary); border-radius: 3px 3px 0 0; }
.vbar-label { font-size: 10px; line-height: 1.3; text-align: center; color: var(--muted); }
.widget-body:has(> .chart-empty) { flex: 0; }
.widget:has(> .widget-body > .chart-empty) { min-height: 125px; }
.chart-empty { padding: 16px 0; }
.dash-filters .filter-bar { padding: 10px 14px; }
.dash-grid { align-items: start; }
.widget-recent .activity-list { max-height: 240px; overflow-y: auto; }
@media (max-width:760px) { .sequence-form .product-context dl { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Sign-in: navy showcase beside the form; the form alone on narrow screens. */
.auth-page.auth-split { display: grid; grid-template-columns: minmax(360px,44%) 1fr; align-items: stretch; justify-content: stretch; gap: 0; padding: 0; min-height: 100vh; }
.auth-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 48px; color: #e8edf5; background: linear-gradient(160deg,#1b3459 0%,#122440 60%,#0c1a30 100%); }
.auth-brand-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; color: #fff; }
.auth-brand-logo .brand-mark { width: 34px; height: 34px; background: #ffffff1f; border: 1px solid #ffffff33; }
.auth-brand-copy { max-width: 440px; }
.auth-brand-copy h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.6px; color: #fff; margin: 0 0 28px; }
.auth-brand-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.auth-brand-copy li { display: flex; gap: 14px; align-items: flex-start; }
.auth-brand-copy li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #ffffff14; border: 1px solid #ffffff26; color: #c9d6ea; }
.auth-brand-copy li > span svg { width: 18px; height: 18px; }
.auth-brand-copy strong { display: block; font-size: 14px; color: #fff; }
.auth-brand-copy p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #b8c5d9; }
.auth-brand-foot { margin: 0; font-size: 12px; color: #8fa1bb; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; background: var(--bg); }
.auth-main .auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-main .auth-foot { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .auth-page.auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
@media (min-width: 901px) {
  .auth-split .auth-main .auth-logo { display: none; }
}

/* Product rows: one consistent icon tile so names align in every row. */
table.data-grid td .picon, table.data-grid td .picon:is(.blue,.purple,.amber) { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary); }
table.data-grid td .picon svg { width: 15px; height: 15px; }
table.data-grid .product-name { display: flex; align-items: center; gap: 10px; }
/* Date inputs keep their calendar control inside the field. */
input[type="date"].field, .filter-bar input[type="date"] { min-width: 140px; }
.due-cell { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.due-cell small { font-size: 11px; font-weight: 600; }
.due-danger { color: var(--danger); } .due-danger small { color: var(--danger); }
.due-warning small { color: var(--warning); }
.due-muted small { color: var(--subtle); font-weight: 500; }
/* Select triggers keep value and arrow on one line; long values truncate. */
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.select-trigger > svg { flex: none; }
@media (max-width: 760px) {
  .product-filters > div { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .product-filters .smart-select, .product-filters .select-trigger { width: 100%; max-width: none; }
}

/* ==========================================================================
   2 November 2026 redesign: black ink, navy structure, blue actions.
   Overrides earlier component colors; tokens live in :root above.
   ========================================================================== */
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); }

/* Navigation rail */
.sidebar { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); color: #fff; border-right: 0; padding: 18px 12px 12px; }
.sidebar .brand { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.sidebar .brand-mark { background: var(--blue); color: #fff; box-shadow: 0 4px 12px #1f5bd866; }
.sidebar .workspace { background: #ffffff0d; border: 1px solid #ffffff1a; border-radius: 9px; }
.sidebar .workspace strong, .sidebar .profile strong { color: #fff; }
.sidebar .muted, .sidebar .nav-label, .sidebar .profile .small { color: #9fb0cc; }
.sidebar .nav-label { font-weight: 600; letter-spacing: 1px; }
.sidebar .nav button { color: #c9d4e6; border-radius: 8px; transition: background .15s, color .15s; }
.sidebar .nav button svg { opacity: .85; }
.sidebar .nav button:hover { background: #ffffff12; color: #fff; }
.sidebar .nav button.active { background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 4px 14px #1f5bd84d; }
.sidebar .nav button.active svg { opacity: 1; }
.sidebar .count-pill, .sidebar .nav button .count-pill { background: #ffffff1f; color: #fff; font-weight: 600; }
.sidebar .nav button.active .count-pill { background: #fff; color: var(--blue); }
.sidebar .help-link { color: #9fb0cc; }
.sidebar .help-link:hover { color: #fff; }
.sidebar .profile { border-color: #ffffff1a; }
.sidebar .avatar { background: var(--blue); color: #fff; }

/* Top bar */
.topbar { background: #ffffffeb; backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); box-shadow: none; }
.crumb { color: var(--muted); font-weight: 500; }
.global-search { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.global-search:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-100); }
.avatar { background: var(--blue-50); color: var(--blue); font-weight: 700; }

/* Page */
.content { padding: 22px var(--page-gutter) 28px; }
.page-heading { margin-bottom: 18px; }
.page-heading h1 { color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -.7px; }
.page-heading p { color: var(--muted); }

/* Buttons and fields */
button { border-radius: var(--radius-sm); font-weight: 550; transition: background .15s, border-color .15s, box-shadow .15s; }
button:not(.primary):not(.text):not(.icon):not(.danger):hover { border-color: var(--line-strong); background: var(--surface-2); }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 1px 2px #1f5bd833; }
button.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
button.text { color: var(--blue); }
.field, input.field, select.field, textarea.field, .select-trigger { border-color: var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.field:hover, .select-trigger:hover { border-color: #a9b7cc; }
.field:focus, .select-trigger:focus-visible, .select-trigger[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); outline: none; }
label { color: var(--ink); }
:where(button,input,select,textarea,a,[tabindex]):focus-visible { outline-color: var(--blue); }

/* Panels */
.panel, .metric { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.panel-head { border-bottom: 1px solid var(--line); padding: 13px 16px; }
.panel-head h2 { color: var(--ink); font-size: 15px; font-weight: 650; }
.tabs { border-bottom: 1px solid var(--line); }
.tabs button { color: var(--muted); font-weight: 550; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--blue); border-bottom: 2px solid var(--blue); }
.tabs button.active .number { background: var(--blue-50); color: var(--blue); }

/* Key figures */
.kpi-grid.portfolio-kpis { gap: 12px; }
.kpi { position: relative; overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: var(--radius); background: #fff; padding: 16px 16px 14px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--blue); }
.kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--blue-200); background: #fff; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.kpi-value { color: var(--ink); font-size: 32px; font-weight: 700; letter-spacing: -1px; }
.kpi-foot { color: var(--subtle); }
.kpi:nth-child(2)::before { background: var(--navy-800); }
.kpi:nth-child(3)::before { background: #5b8def; }
.kpi-danger { background: linear-gradient(180deg, var(--danger-soft), #fff 70%); }
.kpi-danger::before { background: var(--danger) !important; }
.kpi-danger .kpi-value { color: var(--danger); }
.kpi-warning { background: linear-gradient(180deg, var(--warning-soft), #fff 70%); }
.kpi-warning::before { background: var(--warning) !important; }
.kpi-warning .kpi-value { color: var(--warning); }
.metric-number { color: var(--ink); font-weight: 700; }

/* Tables */
.table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
table.data-grid th { background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .45px; border-block: 1px solid var(--line); }
table.data-grid th button { color: inherit; font-weight: inherit; }
table.data-grid th button:hover { color: var(--ink); background: transparent; }
table.data-grid td { border-bottom: 1px solid #edf0f5; color: var(--text); }
table.data-grid tbody tr { transition: background .12s; }
table.data-grid tbody tr:hover { background: var(--blue-50); }
table.data-grid .product-name strong, table.data-grid td > strong { color: var(--ink); font-weight: 600; }
table.data-grid tbody tr.click-row:hover .product-name strong { color: var(--blue); }

/* Status badges: soft fill, matching border, readable dark text */
.badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--success-line); color: var(--success); background: var(--success-soft); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.blue { color: var(--blue-hover); background: var(--blue-50); border-color: var(--blue-200); }
.badge.gray { color: #475467; background: #f2f4f7; border-color: #dde3ea; }
.badge.amber { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-line); }
.badge.red { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }

/* Deadline and product cards */
.deadline-card { border-radius: var(--radius-sm); border-left: 3px solid var(--blue); box-shadow: var(--shadow); }
.deadline-card:hover { box-shadow: var(--shadow-md); }
.deadline-card.tone-danger { background: var(--danger-soft); }
.deadline-card.tone-warning { background: var(--warning-soft); }
.product-card { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-card:hover { border-color: var(--blue-200); background: #fff; box-shadow: var(--shadow-md); }
.product-card-name { color: var(--ink); font-weight: 650; }
.product-card .picon, table.data-grid td .picon, table.data-grid td .picon:is(.blue,.purple,.amber) { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue); }

/* Charts */
.vbar-fill, .hbar-fill, .bar-fill { background: linear-gradient(180deg, #4a7fe8, var(--blue)); }
.vbar-track { background: var(--surface-3); border-radius: 4px 4px 0 0; }

/* Dialogs and toasts */
#modal { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); }
#modal::backdrop { background: #070f2099; }
#toast { background: var(--navy-900); color: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* Sign-in showcase */
.auth-brand { background: radial-gradient(120% 80% at 0% 0%, #1f5bd83d 0%, transparent 55%), linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.auth-brand-logo .brand-mark { background: var(--blue); border-color: #ffffff33; }
.auth-brand-copy li > span { background: #1f5bd833; border-color: #5b8def55; color: #cfe0ff; }
.auth-main .auth-card { border-radius: 14px; box-shadow: var(--shadow-md); }
.auth-card h1 { color: var(--ink); }

/* Attention notice and empty states */
.notice { border: 1px solid var(--warning-line); border-left: 4px solid var(--warning); background: var(--warning-soft); border-radius: var(--radius); color: #5c3305; box-shadow: var(--shadow); }
.notice svg { color: var(--warning); }
.notice button { color: var(--warning); font-weight: 650; background: transparent; border-color: transparent; }
.chart-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; margin: 4px 0; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--subtle); text-align: center; }
.empty, .empty-state { color: var(--subtle); }
.empty svg, .empty-state svg { color: var(--blue); opacity: .7; }
.empty-start { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; text-align: center; }
.empty-start > svg { width: 30px; height: 30px; padding: 10px; box-sizing: content-box; border-radius: 12px; background: var(--blue-50); color: var(--blue); opacity: 1; }
.empty-start p { margin: 0; }
.empty-start strong { color: var(--ink); font-size: 15px; }
.empty-start button { margin-top: 8px; }
.empty button svg { width: 16px; height: 16px; padding: 0; margin: 0; background: none; color: currentColor; opacity: 1; }

/* Product overview: status cards, upcoming deadlines and history timeline. */
.status-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 0 16px 14px; }
.status-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 0; padding: 12px 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue-200); border-radius: var(--radius-sm); box-shadow: none; }
.status-card:hover { background: var(--surface-2); border-color: var(--blue-200); }
.status-card.tone-warning { border-left-color: var(--warning); }
.status-card.tone-danger { border-left-color: var(--danger); }
.status-card-label { font-size: 12px; font-weight: 600; color: var(--subtle); }
.status-card-value { font-size: 20px; font-weight: 650; color: var(--ink); letter-spacing: -.3px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.status-card.tone-danger .status-card-value { color: var(--danger); }
.status-card-note { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; border-top: 1px solid var(--line); }
.overview-section { padding: 14px 16px 16px; min-width: 0; }
.overview-section + .overview-section { border-left: 1px solid var(--line); }
.overview-section h3 { font-size: 12px; font-weight: 650; color: var(--subtle); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.overview-section .deadline-cards { padding-top: 6px; }
.product-timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.product-timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.product-timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.product-timeline li:last-child::before { display: none; }
.timeline-icon { width: 27px; height: 27px; min-width: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.timeline-icon svg { width: 14px; height: 14px; }
.product-timeline .tone-info .timeline-icon { background: var(--blue-50); color: var(--blue); }
.product-timeline .tone-success .timeline-icon { background: var(--success-soft); color: var(--success); }
.product-timeline .tone-warning .timeline-icon { background: var(--warning-soft); color: var(--warning); }
.product-timeline li > div { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.product-timeline time { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.timeline-title { font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; padding: 0; min-height: 0; justify-content: flex-start; white-space: normal; }
button.timeline-title { color: var(--ink); }
button.timeline-title:hover { color: var(--blue); }
.timeline-detail { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .status-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px 12px; }
  .status-card { padding: 10px 12px; }
  .status-card-value { font-size: 18px; }
}
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-section + .overview-section { border-left: 0; border-top: 1px solid var(--line); }
}

/* Product register: attention filters */
.attention-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.attention-label { font-size: 12px; font-weight: 650; color: var(--subtle); margin-right: 4px; }
.attention-chip { min-height: 30px; padding: 4px 10px; gap: 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: none; }
.attention-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.attention-chip.tone-warning::before { background: var(--warning); }
.attention-chip.tone-danger::before { background: var(--danger); }
.attention-chip:hover:not(:disabled) { border-color: var(--blue-200); color: var(--ink); background: var(--surface); }
.attention-chip.active { background: var(--blue-50); border-color: var(--blue); color: var(--blue-hover); }
.attention-chip.active .number { background: var(--blue); color: #fff; }
.attention-chip:disabled { opacity: .55; cursor: default; }
@media (pointer: coarse) { .attention-chip { min-height: 40px; } }

/* Global search results */
/* The top bar paints above page content so search results are never covered;
   it stays below the mobile navigation backdrop (30) and drawer (40). */
.topbar { position: relative; z-index: 25; }
.global-search { position: relative; width: 320px; }
.search-results { position: absolute; top: calc(100% + 6px); right: 0; width: min(460px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; }
.search-results[hidden] { display: none; }
.search-group + .search-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.search-group-label { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); padding: 6px 10px 4px; }
.search-results [role=option] { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 0; padding: 7px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; box-shadow: none; text-align: left; white-space: normal; }
.search-results [role=option] strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.search-results [role=option] span { font-size: 12px; color: var(--muted); }
.search-results [role=option]:hover, .search-results [role=option][aria-selected="true"] { background: var(--blue-50); }
.search-results [data-search-all] strong { color: var(--blue); }
.search-empty { margin: 0; padding: 12px 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 1050px) { .global-search { width: 240px; } }
@media (max-width: 760px) { .global-search { width: min(46vw, 240px); } .search-results { position: fixed; top: 58px; left: 12px; right: 12px; width: auto; } }

/* Multi-client: branding, subscription notices, settings and vendor console */
.brand-mark.brand-logo { background: #fff; padding: 3px; overflow: hidden; }
.brand-mark.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.client-banner { margin-bottom: 14px; }
.client-banner.tone-danger { background: var(--danger-soft); border-color: var(--danger-line); }
.settings-actions.left { justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; }
.button-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.button-link:hover { background: var(--surface-2); }
.button-link svg { width: 15px; height: 15px; }
.storage-request { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.storage-request h4 { margin: 0 0 4px; font-size: 14px; }
.settings-section code, .vendor-register code, .rd-grid code { font-size: 12px; background: var(--surface-3); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.panel-pad { padding: 0 16px 14px; }

/* Data storage choices */
.storage-statement .storage-where { margin: 0 0 6px; }
.storage-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.storage-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.storage-option h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.storage-option h4 svg { width: 16px; height: 16px; color: var(--blue); }
.storage-option .steps { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; color: var(--muted); }
.storage-option .steps li { margin-bottom: 3px; }
.text-warning { color: var(--warning) !important; }
.folder-scope code { font-size: 12px; background: var(--surface-3); border-radius: 4px; padding: 1px 5px; }

/* Settings: provider storage, setup checklist and domains */
.storage-option { position: relative; display: grid; gap: 6px; align-content: start; }
.storage-option h4 { margin: 0; }
.storage-option .storage-current { justify-self: start; }
.storage-option .option-text, .storage-option .option-how { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.storage-option .option-how strong { color: var(--text); font-weight: 600; }
.settings-section .subhead { margin: 16px 0 6px; font-size: 14px; }
.domain-steps { margin: 0; padding-left: 20px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.setup-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.setup-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.setup-checks li > div { display: grid; gap: 2px; min-width: 0; }
.setup-checks li strong { font-size: 13px; }
.setup-checks .check-state svg { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.setup-checks li[data-status="ok"] .check-state svg { color: var(--success, #15803d); }
.setup-checks li[data-status="todo"] .check-state svg { color: var(--warning, #b45309); }
.setup-checks li[data-status="todo"] { border-color: color-mix(in srgb, var(--warning, #b45309) 35%, var(--line)); }
.cloud-facts { margin-bottom: 4px; }
.storage-options { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.activation-code { margin: 10px 0 14px; padding: 14px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); }
.activation-code code { font-size: 22px; letter-spacing: .12em; font-weight: 600; background: none; }
#activation-message { width: 100%; font-family: inherit; font-size: 13px; }

/* Storage changes and provider setup guidance */
.storage-change .change-steps { margin: 0 0 14px; display: grid; gap: 8px; }
.storage-change .change-steps button { margin-left: 8px; vertical-align: middle; }
.storage-change .storage-option .form-grid { margin: 10px 0; }
.storage-change [data-chg-result]:not(:empty) { margin-top: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--ink); }
.setup-howto { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--warning-line); border-left: 4px solid var(--warning); border-radius: var(--radius); background: var(--warning-soft); }
.setup-howto h4 { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.setup-howto .steps { margin: 0; display: grid; gap: 8px; }
.sql-line { margin: 6px 0 2px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--navy-900); color: #dbe7ff; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.sql-line code { background: none; color: inherit; padding: 0; border: 0; font-size: inherit; }
.legacy-local { width: 100%; max-width: 420px; padding: 12px 14px; border: 1px solid var(--warning-line); border-left: 4px solid var(--warning); border-radius: var(--radius); background: var(--warning-soft); }
.legacy-local p { margin: 0 0 8px; color: var(--ink); }

/* Settings: grouped navigation, one intro line, sections as cards */
.settings-grid { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 18px; align-items: start; }
.settings-nav { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.settings-group { display: flex; flex-direction: column; gap: 2px; }
.settings-group-label { padding: 0 10px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .8px; text-transform: uppercase; color: var(--subtle); }
.settings-nav button { justify-content: flex-start; gap: 9px; width: 100%; min-height: 36px; padding: 7px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-weight: 550; text-align: left; }
.settings-nav button svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.settings-nav button:hover { background: var(--surface-2); color: var(--ink); }
.settings-nav button.active { background: var(--blue-50); color: var(--blue); font-weight: 650; box-shadow: inset 3px 0 var(--blue); }
.settings-nav button.active svg { opacity: 1; }
.settings-body { padding: 20px 22px 22px; }
.settings-body > h2 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; margin: 0; }
.settings-desc { margin: 4px 0 18px; color: var(--muted); font-size: 13px; }
.settings-body .settings-section { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.settings-body .settings-section > h3, .settings-body .detail-box > h3 { margin: 0 0 10px; font-size: 14px; font-weight: 650; color: var(--ink); }
.settings-body .detail-box { margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
/* The settings menu stays on the left; only phones stack it above the page. */
@media (max-width: 1050px) {
  .settings-grid { grid-template-columns: 200px minmax(0,1fr); }
}
@media (max-width: 760px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: column; overflow: visible; }
  .settings-group { flex-direction: column; align-items: stretch; }
  .settings-nav button { width: 100%; white-space: normal; }
}
.backup-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.backup-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.backup-card h3 { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.backup-card p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.backup-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-50); color: var(--blue); }
.backup-icon svg { width: 17px; height: 17px; }
.domain-request { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.domain-request h4 { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.domain-request .inline-actions { margin-top: 10px; }
.domain-request input { flex: 1 1 260px; max-width: 360px; }
.hosting-guide { margin: 10px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.hosting-guide summary { padding: 9px 12px; cursor: pointer; font-weight: 600; color: var(--blue); }
.hosting-guide > :not(summary) { margin: 0 12px 10px; }
.hosting-guide td { font-size: 12.5px; vertical-align: top; }
table.perm-matrix th { white-space: normal; line-height: 1.25; text-align: center; }
table.perm-matrix td:not(:first-child) { text-align: center; }

/* Team: overview tiles, role labels, role choice cards, member access view */
.team-summary { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.team-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.team-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--blue); }
.team-admin::before { background: var(--navy-800); } .team-it::before { background: #5b8def; } .team-user::before { background: var(--success); } .team-inactive::before { background: #98a2b3; }
.team-label { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.team-value { font-size: 28px; font-weight: 700; letter-spacing: -.8px; color: var(--ink); line-height: 1.1; }
.team-value small { font-size: 14px; font-weight: 600; color: var(--subtle); margin-left: 3px; letter-spacing: 0; }
.team-foot { font-size: 12px; color: var(--subtle); }
.role-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; border: 1px solid; }
.role-admin { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.role-it { color: var(--blue-hover); background: var(--blue-50); border-color: var(--blue-200); }
.role-user { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.role-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.role-card:hover { border-color: var(--blue-200); }
.role-card.selected { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); }
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.role-card strong { display: block; font-size: 13.5px; color: var(--ink); }
.role-card small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.role-card-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; }
.role-card-icon svg { width: 16px; height: 16px; }
.role-card-icon.role-admin { background: var(--navy-800); color: #fff; }
.member-form .form-section-title { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.member-form .form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.member-form .form-section-title strong { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.member-modules { display: contents; }
.member-modules[hidden] { display: none; }
.perm-chip { display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 2px 0; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--blue-hover); background: var(--blue-50); border: 1px solid var(--blue-100); }
.perm-chip svg { width: 12px; height: 12px; }
.perm-full { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }
.perm-none { color: var(--subtle); background: #f2f4f7; border-color: #e1e6ee; }
.role-overview table.permissions td { vertical-align: top; }
.member-view h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.member-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.member-head h3 { margin: 0; font-size: 18px; color: var(--ink); }
.member-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.member-avatar { width: 46px; height: 46px; font-size: 16px; }
.member-badges { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.member-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.member-facts > div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.member-facts span { display: block; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .4px; color: var(--subtle); }
.member-facts strong { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--ink); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.product-chip { display: inline-flex; flex-direction: column; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.product-chip small { font-size: 11px; font-weight: 500; color: var(--subtle); }
.member-perms td:first-child { width: 170px; font-weight: 600; color: var(--ink); }
@media (max-width: 1100px) { .team-summary { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .team-summary { grid-template-columns: repeat(2, minmax(0,1fr)); } .member-facts { grid-template-columns: 1fr; } .member-head { flex-wrap: wrap; } .member-badges { margin-left: 0; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Control center */
.cc-setup { padding: 22px 24px; }
.cc-setup-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cc-setup-head h2 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.cc-setup-head p { margin: 0; color: var(--muted); max-width: 680px; }
.cc-setup-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-800); color: #fff; }
.cc-setup-icon svg { width: 22px; height: 22px; }
.cc-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.cc-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cc-step > div > strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.cc-step p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.cc-step-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 13px; border: 1px solid var(--blue-200); }
.cc-step.done { background: var(--success-soft); border-color: var(--success-line); }
.cc-step.done .cc-step-num { background: var(--success); color: #fff; border-color: var(--success); }
.cc-step-num svg { width: 15px; height: 15px; }
.cc-step [data-cc-result]:not(:empty) { margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--ink); }
.cc-summary .cc-warn::before { background: var(--warning); }
.cc-summary .cc-warn .team-value { color: var(--warning); }
.vendor-register .row-actions { flex-wrap: wrap; justify-content: flex-end; }
