@font-face {
  font-family: "Geist";
  src: url("/static/vendor/geist/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/static/vendor/geist/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --app-bg: #f4f3f1;
  --surface: #ffffff;
  --surface-soft: #f8f7f5;
  --ink: #1d252f;
  --muted: #66717f;
  --line: #dedfdf;
  --accent: #d5253f;
  --accent-dark: #a61d31;
  --accent-soft: #fbecef;
  --accent-contrast: #ffffff;
  --chrome: #172033;
  --chrome-soft: #222d3d;
  --app-font: "Geist", "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --type-scale: 1;
  --success: #087a55;
  --warning: #9a6700;
  --danger: #b42318;
  --radius: 16px;
  --shadow-soft: 0 18px 48px rgba(31, 40, 52, .08);
  --motion: 220ms cubic-bezier(.2, .8, .2, 1);
  --z-header: 30;
  --z-menu: 40;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body.saas-body { margin: 0; min-height: 100dvh; background: var(--app-bg); color: var(--ink); font-family: var(--app-font); font-size: calc(15px * var(--type-scale)); }
body[data-font-size="small"] { --type-scale: .92; }
body[data-font-size="large"] { --type-scale: 1.1; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: calc(var(--z-menu) + 1); padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 800; text-decoration: none; transform: translateY(-160%); transition: transform var(--motion); }
.skip-link:focus { transform: translateY(0); }

.global-header { position: sticky; top: 0; z-index: var(--z-header); color: white; box-shadow: 0 10px 30px rgba(23, 32, 51, .1); }
.saas-topbar {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 9px max(22px, calc((100vw - 1440px) / 2));
  background: var(--chrome);
}
.saas-brand { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; white-space: nowrap; }
.saas-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--accent-contrast); font-size: calc(17px * var(--type-scale)); font-weight: 900; box-shadow: inset 0 1px rgba(255,255,255,.18); }
.brand-copy { display: grid; gap: 0; line-height: 1.05; }
.brand-copy strong { font-size: calc(15px * var(--type-scale)); letter-spacing: -.02em; }
.brand-copy small { margin-top: 3px; color: #9eabba; font-size: calc(10px * var(--type-scale)); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.workspace-context { min-width: 0; display: flex; justify-content: flex-end; gap: 10px; }
.context-switcher { min-width: 0; }
.context-switcher label { display: grid; gap: 4px; }
.context-switcher label > span { display: flex; align-items: center; gap: 7px; color: #aab5c3; font-size: calc(9px * var(--type-scale)); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.context-switcher label > span b { padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.09); color: #d8e0ea; font-size: calc(8px * var(--type-scale)); }
.context-switcher select { width: clamp(170px, 17vw, 260px); min-height: 33px; padding: 0 34px 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: var(--chrome-soft); color: white; outline: none; }
.context-switcher select:hover { border-color: rgba(255,255,255,.28); }
.context-switcher select:focus-visible { border-color: var(--accent); outline-color: rgba(255,255,255,.18); }
.account-menu, .mobile-menu, .route-menu { position: relative; }
.account-menu summary, .mobile-menu summary, .route-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker, .route-menu summary::-webkit-details-marker { display: none; }
.account-menu > summary { min-width: 170px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; color: white; transition: background var(--motion); }
.account-menu > summary:hover, .account-menu[open] > summary { background: rgba(255,255,255,.07); }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--accent-contrast); font-size: calc(12px * var(--type-scale)); font-weight: 900; }
.account-copy { min-width: 0; display: grid; gap: 2px; }
.account-copy strong { overflow: hidden; font-size: calc(11px * var(--type-scale)); text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: #9eabba; font-size: calc(9px * var(--type-scale)); }
.account-popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: var(--z-menu); width: 250px; padding: 8px; border: 1px solid rgba(23,32,51,.08); border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 20px 54px rgba(23,32,51,.18); }
.account-identity { display: grid; gap: 3px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.account-identity strong { font-size: calc(12px * var(--type-scale)); }
.account-identity span { overflow: hidden; color: var(--muted); font-size: calc(10px * var(--type-scale)); text-overflow: ellipsis; }
.account-popover a, .account-popover button { width: 100%; display: flex; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: calc(11px * var(--type-scale)); font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.account-popover a:hover, .account-popover button:hover { background: var(--surface-soft); }
.account-popover form { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.account-popover button { color: var(--danger); }
.routebar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(22px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid #e5e6e7; background: rgba(255,255,255,.98); color: var(--ink); }
.desktop-routes { min-width: 0; display: flex; align-items: center; gap: 3px; }
.route-link, .route-menu > summary { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 8px; color: #526071; font-size: calc(11px * var(--type-scale)); font-weight: 750; text-decoration: none; white-space: nowrap; transition: color var(--motion), background var(--motion), transform var(--motion); }
.route-link:hover, .route-menu > summary:hover, .route-link.active, .route-menu.active > summary, .route-menu[open] > summary { background: var(--accent-soft); color: var(--accent-dark); }
.route-link:active, .route-menu > summary:active { transform: translateY(1px); }
.route-menu > summary span { font-size: .9em; transition: transform var(--motion); }
.route-menu[open] > summary span { transform: rotate(180deg); }
.route-popover { position: absolute; top: calc(100% + 7px); left: 0; z-index: var(--z-menu); width: 300px; padding: 8px; border: 1px solid rgba(23,32,51,.08); border-radius: 14px; background: white; box-shadow: 0 20px 54px rgba(23,32,51,.16); }
.route-popover-right { right: 0; left: auto; }
.route-popover a { display: grid; gap: 3px; padding: 10px 11px; border-radius: 9px; text-decoration: none; transition: background var(--motion), transform var(--motion); }
.route-popover a:hover, .route-popover a.active { background: var(--accent-soft); transform: translateX(2px); }
.route-popover strong { font-size: calc(11px * var(--type-scale)); }
.route-popover span { color: var(--muted); font-size: calc(9px * var(--type-scale)); line-height: 1.35; }
.route-context { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: calc(10px * var(--type-scale)); font-weight: 700; white-space: nowrap; }
.context-status { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px #e1f5ed; }
.mobile-menu { display: none; }

.page-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 68px; }
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.page-header h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.page-header p { max-width: 65ch; margin: 8px 0 0; color: var(--muted); font-size: calc(13px * var(--type-scale)); line-height: 1.55; text-wrap: pretty; }
.eyebrow { margin: 0 0 4px; color: var(--accent-dark); font-size: calc(10px * var(--type-scale)); font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.header-buttons { display: flex; gap: 9px; flex-wrap: wrap; }

.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-size: calc(12px * var(--type-scale)); font-weight: 800; text-decoration: none; cursor: pointer; transition: background var(--motion), border-color var(--motion), color var(--motion), transform var(--motion); }
.button:active { transform: translateY(1px) scale(.99); }
.button-primary { background: var(--accent); color: var(--accent-contrast); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border-color: var(--line); background: white; color: var(--ink); }
.button-secondary:hover { border-color: #c5c8ca; background: var(--surface-soft); }
.button-danger { border-color: #fecaca; background: #fff1f2; color: var(--danger); }
.button-small { min-height: 34px; padding: 0 11px; border-radius: 8px; font-size: calc(11px * var(--type-scale)); }

.flash-stack { width: min(1240px, calc(100% - 40px)); margin: 16px auto -8px; display: grid; gap: 8px; }
.flash { padding: 12px 14px; border-radius: 11px; border: 1px solid; font-size: calc(12px * var(--type-scale)); font-weight: 700; }
.flash-success { border-color: #a7f3d0; background: #ecfdf5; color: #05603f; }
.flash-error { border-color: #fecaca; background: #fff1f2; color: #9f1239; }
.flash-warning { border-color: #fde68a; background: #fffbeb; color: #854d0e; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color var(--motion), transform var(--motion); }
.metric-card:hover { border-color: #c9cccf; transform: translateY(-1px); }
.metric-label { color: var(--muted); font-size: calc(11px * var(--type-scale)); font-weight: 750; }
.metric-value { margin-top: 8px; font-size: 31px; font-weight: 900; letter-spacing: -.04em; }
.metric-helper { margin-top: 5px; color: var(--muted); font-size: calc(10px * var(--type-scale)); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: calc(15px * var(--type-scale)); }
.panel-heading a { color: var(--accent-dark); font-size: calc(11px * var(--type-scale)); font-weight: 800; text-decoration: none; }
.panel-body { padding: 18px; }
.quick-actions { display: grid; gap: 10px; }
.quick-action { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; transition: border-color var(--motion), background var(--motion), transform var(--motion); }
.quick-action:hover { border-color: #c3c7cb; background: var(--surface-soft); transform: translateX(2px); }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 900; }
.quick-action strong { display: block; font-size: calc(12px * var(--type-scale)); }
.quick-action span { color: var(--muted); font-size: calc(10px * var(--type-scale)); }
.quick-arrow { color: #9aa4b2; font-size: 20px; }
.workspace-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 9px; background: var(--line); }
.workspace-links a { padding: 10px 11px; background: var(--surface); color: #526071; font-size: calc(10px * var(--type-scale)); font-weight: 750; text-decoration: none; transition: color var(--motion), background var(--motion); }
.workspace-links a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.recent-import { padding: 8px 0; border-bottom: 1px solid #edf0f4; }
.recent-import:last-child { border-bottom: 0; }
.recent-import strong { font-size: calc(11px * var(--type-scale)); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid #edf0f4; text-align: left; font-size: calc(11px * var(--type-scale)); vertical-align: middle; }
.data-table th { color: var(--muted); font-size: calc(9px * var(--type-scale)); letter-spacing: .07em; text-transform: uppercase; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table tr:last-child td { border-bottom: 0; }
.table-title { font-weight: 800; }
.table-subtitle { margin-top: 3px; color: var(--muted); font-size: calc(10px * var(--type-scale)); }
.status-badge { display: inline-flex; padding: 5px 7px; border-radius: 999px; background: #ecfdf5; color: var(--success); font-size: calc(9px * var(--type-scale)); font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.status-warning { background: #fffbeb; color: var(--warning); }
.empty-state { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.search-form { min-width: min(480px, 100%); display: flex; gap: 8px; }
.search-form input { flex: 1; }

.form-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field > span, .field-label { color: #384357; font-size: calc(10px * var(--type-scale)); font-weight: 800; }
.field input, .field select, .field textarea, .search-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfd6e0; border-radius: 9px; background: white; color: var(--ink); outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.helper { color: var(--muted); font-size: calc(10px * var(--type-scale)); line-height: 1.45; }
.two-column-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr); gap: 18px; align-items: start; }
.sticky-panel { position: sticky; top: 18px; }
.usage-meter { margin: 16px 0; }
.usage-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11px; font-weight: 750; }
.usage-track { height: 8px; border-radius: 99px; background: #e8ecf1; overflow: hidden; }
.usage-fill { height: 100%; background: var(--accent); }
.import-box { padding: 15px; border: 1px dashed #bcc5d2; border-radius: 11px; background: #fafbfc; }

.auth-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, .62fr); background: #111827; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; padding: 52px; color: white; background: radial-gradient(circle at 18% 12%, rgba(226,29,47,.28), transparent 35%), #111827; }
.auth-story h1 { max-width: 700px; margin: 0; font-size: clamp(44px, 6vw, 76px); letter-spacing: -.055em; line-height: .96; }
.auth-story p { max-width: 580px; color: #cbd5e1; font-size: 17px; line-height: 1.6; }
.auth-proof { display: flex; gap: 14px; flex-wrap: wrap; }
.auth-proof span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #e2e8f0; font-size: 11px; font-weight: 750; }
.auth-panel { display: grid; place-items: center; padding: 32px; background: #f7f8fa; }
.auth-card { width: min(440px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-soft); }
.auth-card h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.auth-card > p { margin: 8px 0 24px; color: var(--muted); line-height: 1.5; }
.auth-form { display: grid; gap: 14px; }
.auth-form .button { margin-top: 4px; }
.auth-link { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; }
.auth-link a { color: var(--accent); font-weight: 800; }
.demo-credentials { margin-top: 18px; padding: 12px; border-radius: 10px; background: #f7f8fa; color: #4b5563; font-size: 11px; line-height: 1.55; }

@media (max-width: 1120px) {
  .saas-topbar { grid-template-columns: 1fr auto; padding: 9px 18px; }
  .desktop-context, .desktop-account, .routebar { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu > summary { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.07); }
  .mobile-menu > summary span { position: absolute; width: 18px; height: 2px; border-radius: 2px; background: white; transition: transform var(--motion), opacity var(--motion); }
  .mobile-menu > summary span:nth-child(1) { transform: translateY(-6px); }
  .mobile-menu > summary span:nth-child(3) { transform: translateY(6px); }
  .mobile-menu[open] > summary span:nth-child(1) { transform: rotate(45deg); }
  .mobile-menu[open] > summary span:nth-child(2) { opacity: 0; }
  .mobile-menu[open] > summary span:nth-child(3) { transform: rotate(-45deg); }
  .mobile-nav-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: var(--z-menu); width: min(410px, calc(100vw - 24px)); max-height: calc(100dvh - 88px); overflow-y: auto; padding: 14px; border: 1px solid rgba(23,32,51,.09); border-radius: 16px; background: white; color: var(--ink); box-shadow: 0 24px 70px rgba(23,32,51,.24); }
  .mobile-account { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; padding: 3px 3px 14px; border-bottom: 1px solid var(--line); }
  .mobile-account > span:last-child { display: grid; gap: 3px; }
  .mobile-account strong { font-size: calc(12px * var(--type-scale)); }
  .mobile-account small { color: var(--muted); font-size: calc(9px * var(--type-scale)); }
  .mobile-context { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mobile-context .context-switcher label > span { color: var(--muted); }
  .mobile-context .context-switcher select { width: 100%; color: var(--ink); border-color: var(--line); background: var(--surface-soft); }
  .mobile-routes { display: grid; gap: 4px; padding: 10px 0; }
  .mobile-routes > .route-link, .mobile-routes > .route-menu > summary { width: 100%; min-height: 40px; justify-content: space-between; padding: 0 10px; }
  .mobile-routes .route-popover { position: static; width: auto; margin: 3px 0 7px 10px; padding: 4px; border: 0; border-left: 2px solid var(--accent-soft); border-radius: 0; box-shadow: none; }
  .mobile-routes .route-popover a { padding: 9px 11px; }
  .mobile-logout { padding-top: 10px; border-top: 1px solid var(--line); }
  .mobile-logout .button { width: 100%; }
}

@media (max-width: 980px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .two-column-page { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { min-height: 360px; padding: 36px; }
}

@media (max-width: 640px) {
  .saas-topbar { padding: 10px 14px; gap: 10px; }
  .brand-copy small { display: none; }
  .mobile-nav-panel { position: fixed; top: 70px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 82px); }
  .mobile-context { grid-template-columns: 1fr; }
  .page-shell, .flash-stack { width: min(100% - 24px, 1240px); }
  .page-shell { padding-top: 24px; }
  .page-header { align-items: start; flex-direction: column; }
  .metric-grid, .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-form { min-width: 0; width: 100%; }
  .auth-story { min-height: 300px; padding: 28px 22px; }
  .auth-panel { padding: 20px 12px; }
  .auth-card { padding: 22px; }
}

body[data-density="compact"] .page-shell { padding-top: 24px; }
body[data-density="compact"] .page-header { margin-bottom: 18px; }
body[data-density="compact"] .metric-grid { gap: 10px; margin-bottom: 18px; }
body[data-density="compact"] .metric-card,
body[data-density="compact"] .panel-body,
body[data-density="compact"] .form-card { padding: 14px; }
body[data-density="compact"] .panel-heading { padding: 13px 14px; }
body[data-density="compact"] .data-table th,
body[data-density="compact"] .data-table td { padding: 9px 11px; }
body[data-density="compact"] .quick-action { padding: 10px; }

/* v4.1 price change operations */
.change-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.change-toolbar p { margin: 4px 0 0; }
.change-toolbar-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.compact-field { min-width: 240px; }
.checkbox-column { width: 42px; }
.change-checkbox, #selectAllChanges { width: 17px; height: 17px; accent-color: var(--accent); }
.price-stack { display: grid; gap: 3px; color: #64748b; font-size: 12px; }
.price-stack strong { color: #334155; }
.price-stack-current strong { color: var(--accent); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; min-width: 160px; }
.button-ghost { border-color: var(--line); background: transparent; color: #475569; }
.status-generated { background: #eff6ff; color: #1d4ed8; }
.status-printed { background: #fff7ed; color: #c2410c; }
.status-placed { background: #ecfdf5; color: #047857; }
.status-dismissed { background: #f1f5f9; color: #64748b; }
.status-pending { background: #fff1f2; color: #be123c; }
.change-table td { vertical-align: middle; }
@media (max-width: 980px) {
  .change-toolbar { align-items: stretch; flex-direction: column; }
  .change-toolbar-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .compact-field { min-width: 0; grid-column: 1 / -1; }
}

/* v4.2 promotion operations */
.promotion-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .62fr); gap: 18px; align-items: start; }
.promotion-form-card { position: sticky; top: 18px; }
.promotion-form-card h2 { margin: 0 0 5px; font-size: 20px; }
.promotion-date-grid { gap: 10px; }
.promotion-workflow-note { display: grid; gap: 5px; margin-top: 16px; padding: 13px; border-radius: 10px; background: #f7f8fa; color: var(--muted); font-size: 11px; }
.promotion-workflow-note strong { color: var(--ink); }
.promotion-table td { vertical-align: middle; }
.promotion-actions { min-width: 120px; }
.inline-stack-form { display: grid; gap: 6px; min-width: 145px; }
.inline-stack-form select { width: 100%; min-height: 34px; padding: 5px 8px; border: 1px solid #cfd6e0; border-radius: 8px; background: white; color: var(--ink); font-size: 11px; }
.status-draft { background: #f1f5f9; color: #475569; }
.status-pending_approval { background: #fff7ed; color: #c2410c; }
.status-approved { background: #eff6ff; color: #1d4ed8; }
.status-active { background: #ecfdf5; color: #047857; }
.status-expired { background: #f1f5f9; color: #64748b; }
.status-rejected { background: #fff1f2; color: #be123c; }
.status-cancelled { background: #f1f5f9; color: #64748b; }
@media (max-width: 1040px) {
  .promotion-layout { grid-template-columns: 1fr; }
  .promotion-form-card { position: static; }
}
.reject-form { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 6px; }
.reject-form input { min-height: 34px; padding: 5px 8px; border: 1px solid #cfd6e0; border-radius: 8px; font-size: 11px; }

/* v4.3 multi-branch operations */
.branch-create-inline{display:grid;grid-template-columns:minmax(160px,1fr) 100px auto;gap:10px;align-items:end;min-width:min(520px,100%)}
.branch-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding:18px}
.branch-card{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid #dfe4ea;border-radius:14px;background:#fff}
.branch-card-active{border-color:#dc2626;background:#fff7f7}
.branch-code{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#111827;color:#fff;font-weight:800;font-size:12px}
.branch-card small{display:block;color:#667085;margin-top:3px}
.branch-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;margin-top:18px}
.branch-price-form{display:grid;grid-template-columns:95px 95px minmax(110px,1fr) auto;gap:6px;min-width:420px}
.branch-price-form input{width:100%;padding:8px 9px;border:1px solid #d0d5dd;border-radius:8px}
.template-lock-list{display:grid;gap:10px}.template-lock-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border:1px solid #e4e7ec;border-radius:12px}.template-lock-row span{display:block;color:#667085;font-size:12px;margin-top:4px}
.branch-queue-panel{margin-top:18px}.branch-queue-toolbar{display:flex;justify-content:flex-end;gap:12px;align-items:end;padding:16px;border-bottom:1px solid #eaecf0}.branch-queue-toolbar .field{min-width:260px}
.branch-switcher select{max-width:190px}
@media(max-width:1100px){.branch-layout{grid-template-columns:1fr}.branch-side-panel{order:-1}.branch-create-inline{grid-template-columns:1fr 100px auto}}
@media(max-width:760px){.branch-create-inline{grid-template-columns:1fr}.branch-card{grid-template-columns:44px 1fr}.branch-card button{grid-column:1/-1}.branch-price-form{grid-template-columns:1fr 1fr;min-width:360px}.branch-queue-toolbar{align-items:stretch;flex-direction:column}.branch-queue-toolbar .field{min-width:0}}
.branch-target-fieldset{border:1px solid #dfe4ea;border-radius:12px;padding:12px}.branch-target-fieldset legend{font-weight:700;padding:0 6px}.branch-target-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:10px}.branch-target-option{display:flex;gap:8px;align-items:flex-start;border:1px solid #e4e7ec;border-radius:10px;padding:9px;background:#fff}.branch-target-option span{display:grid;font-size:12px;color:#667085}.branch-target-option strong{color:#101828}

/* v4.4 commercial readiness */
.setup-banner { width:min(1180px,calc(100% - 40px)); margin:14px auto -2px; padding:12px 14px; display:flex; justify-content:space-between; align-items:center; gap:16px; border:1px solid #bfdbfe; border-radius:12px; background:#eff6ff; color:#1e3a5f; }
.setup-banner div { display:grid; gap:3px; }
.setup-banner strong { font-size:13px; }
.setup-banner span { font-size:11px; color:#47627f; }
.plan-chip-light { background:#eef2f7; color:#475467; align-self:center; }
.email-preview { max-width:440px; white-space:pre-wrap; word-break:break-word; margin:0; font:11px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace; color:#344054; }
.onboarding-score { min-width:150px; display:grid; gap:2px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:white; text-align:right; }
.onboarding-score strong { font-size:26px; letter-spacing:-.04em; }
.onboarding-score span { color:var(--muted); font-size:11px; }
.onboarding-list { display:grid; gap:12px; }
.onboarding-step { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:15px; padding:17px; border:1px solid var(--line); border-radius:14px; background:white; }
.onboarding-step.complete { border-color:#a7f3d0; background:#f5fffa; }
.onboarding-step.optional { border-style:dashed; }
.step-mark { width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:#eef2f7; color:#475467; font-weight:900; }
.onboarding-step.complete .step-mark { background:#d1fae5; color:#087a55; }
.onboarding-step h2 { margin:0 0 4px; font-size:15px; }
.onboarding-step p { margin:0; color:var(--muted); font-size:12px; }
.onboarding-complete { margin-top:18px; display:flex; justify-content:flex-end; }
.team-list { display:grid; }
.team-member { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(360px,1.35fr) auto; gap:14px; align-items:start; padding:17px; border-bottom:1px solid #edf0f4; }
.team-member:last-child { border-bottom:0; }
.team-person { display:flex; align-items:flex-start; gap:11px; }
.avatar { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:#fff1f2; color:var(--accent); font-weight:900; }
.team-person div:last-child { display:grid; gap:2px; }
.team-person strong { font-size:13px; }
.team-person span,.team-person small { color:var(--muted); font-size:11px; }
.member-access-form { display:grid; grid-template-columns:1fr 1fr auto; gap:9px; align-items:end; }
.member-branches { grid-column:1/-1; display:flex; gap:7px; flex-wrap:wrap; }
.branch-check { display:inline-flex; align-items:center; gap:6px; padding:6px 8px; border:1px solid var(--line); border-radius:8px; background:#fafbfc; font-size:11px; font-weight:750; }
.pending-invite { display:grid; gap:4px; padding:11px 0; border-bottom:1px solid #edf0f4; }
.pending-invite strong { font-size:12px; }
.pending-invite span { color:var(--muted); font-size:11px; }
.pricing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.pricing-card { min-height:370px; display:flex; flex-direction:column; justify-content:space-between; gap:20px; padding:19px; border:1px solid var(--line); border-radius:15px; background:white; }
.pricing-card.current { border-color:var(--accent); box-shadow:0 0 0 3px rgba(226,29,47,.08); }
.pricing-card h2 { margin:14px 0 8px; }
.price-line { margin:0; font-size:32px; font-weight:900; letter-spacing:-.04em; }
.price-line small { font-size:12px; color:var(--muted); letter-spacing:0; }
.pricing-card ul { padding-left:18px; color:var(--muted); font-size:12px; line-height:1.7; }
.pricing-card form { display:grid; gap:10px; }
.local-billing-note { margin-top:18px; padding:15px; border:1px solid #fde68a; border-radius:12px; background:#fffbeb; color:#713f12; }
.local-billing-note p { margin:5px 0 0; font-size:12px; line-height:1.5; }
.billing-alert { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px max(18px,calc((100vw - 1440px)/2)); border-bottom:1px solid; }
.billing-alert>div { display:grid; gap:2px; }
.billing-alert strong { font-size:12px; }
.billing-alert span { font-size:11px; }
.billing-alert-grace { background:#fffbeb; border-color:#fcd34d; color:#713f12; }
.billing-alert-read_only { background:#fff1f2; border-color:#fda4af; color:#9f1239; }
.billing-header-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.subscription-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin-bottom:18px; border:1px solid var(--line); border-radius:15px; background:#111827; color:white; overflow:hidden; }
.subscription-summary article { display:grid; gap:7px; padding:17px; border-right:1px solid rgba(255,255,255,.1); }
.subscription-summary article:last-child { border-right:0; }
.subscription-summary span { color:#98a2b3; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.subscription-summary strong { font-size:14px; }
.billing-state { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; padding:16px 18px; border:1px solid; border-radius:14px; }
.billing-state strong { font-size:13px; }
.billing-state p { margin:4px 0 0; font-size:12px; line-height:1.5; }
.billing-state-warning { color:#713f12; background:#fffbeb; border-color:#fcd34d; }
.billing-state-danger { color:#9f1239; background:#fff1f2; border-color:#fda4af; }
.billing-metrics { margin-top:18px; }
.billing-history { margin-top:18px; }
.billing-history .panel-heading p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.billing-history td strong,.billing-history td small { display:block; }
.billing-history td small { margin-top:3px; color:var(--muted); font-size:10px; }
.billing-cancel { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:18px; padding:18px; border:1px solid #fecdd3; border-radius:14px; background:#fffafb; }
.billing-cancel p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.status-trialing { background:#ede9fe; color:#6d28d9; }
.status-past_due,.status-open { background:#fef3c7; color:#92400e; }
.status-canceled,.status-unpaid,.status-failed { background:#ffe4e6; color:#be123c; }
.status-paid,.status-completed { background:#d1fae5; color:#087a55; }
.status-pending { background:#e0f2fe; color:#075985; }
.pricing-card button[disabled] { cursor:not-allowed; opacity:.45; }
.readiness-list { display:grid; }
.readiness-item { display:grid; grid-template-columns:32px 1fr; gap:10px; padding:13px 16px; border-bottom:1px solid #edf0f4; }
.readiness-item:last-child { border-bottom:0; }
.readiness-mark { width:28px; height:28px; display:grid; place-items:center; border-radius:8px; font-weight:900; }
.readiness-item.pass .readiness-mark { background:#d1fae5; color:#087a55; }
.readiness-item.fail .readiness-mark { background:#fff1f2; color:#b42318; }
.readiness-item strong { font-size:12px; }
.readiness-item p { margin:3px 0 0; color:var(--muted); font-size:11px; line-height:1.4; }

@media (max-width:1100px){
  .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .subscription-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .team-member{grid-template-columns:1fr}
  .member-access-form{grid-template-columns:1fr 1fr}
}
@media (max-width:700px){
  .billing-alert,.billing-state,.billing-cancel{align-items:flex-start;flex-direction:column}
  .subscription-summary{grid-template-columns:1fr 1fr}
  .setup-banner{align-items:flex-start;flex-direction:column}
  .onboarding-step{grid-template-columns:38px 1fr}.onboarding-step>a{grid-column:2}
  .pricing-grid{grid-template-columns:1fr}
  .member-access-form{grid-template-columns:1fr}
}

/* v4.8 onboarding and import excellence */
.import-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px;align-items:start}
.import-upload-card{padding:26px}.import-upload-card h2,.calibration-layout h2{margin:7px 0 6px;font-size:21px}
.step-kicker{color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.import-upload-card form{display:grid;gap:14px;margin-top:18px}
.upload-drop{position:relative;min-height:154px;display:grid;place-items:center;align-content:center;gap:7px;padding:22px;border:1.5px dashed #b8c2cf;border-radius:14px;background:#fafbfc;text-align:center;cursor:pointer}
.upload-drop:hover{border-color:var(--accent);background:#fff8f8}.upload-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-drop strong{font-size:15px}.upload-drop span{color:var(--muted);font-size:11px}
.sample-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.sample-links a{color:var(--accent);font-size:11px;font-weight:800;text-decoration:none}
.mapping-list{display:grid;gap:0}.mapping-list article{display:grid;grid-template-columns:1fr auto;gap:4px;padding:11px 0;border-bottom:1px solid #edf0f4}.mapping-list article:last-child{border-bottom:0}.mapping-list strong{font-size:12px}.mapping-list span,.mapping-list small{color:var(--muted);font-size:10px}.mapping-list small{grid-column:1/-1}
.import-history-panel,.validation-panel,.source-preview,.profile-panel{margin-top:18px}.import-history-panel .panel-heading p,.validation-panel .panel-heading p,.source-preview .panel-heading p{margin:4px 0 0;color:var(--muted);font-size:11px}
.mapping-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.55fr);gap:18px;align-items:start}.mapping-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:18px}.import-policy-card{position:sticky;top:18px;display:grid;gap:14px}.import-policy-card p{margin:0}
.validation-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:14px 14px 0 0;background:#111827;color:white;overflow:hidden}.validation-summary article{display:grid;gap:6px;padding:16px;border-right:1px solid rgba(255,255,255,.1)}.validation-summary article:last-child{border-right:0}.validation-summary span{color:#98a2b3;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.validation-summary strong{font-size:23px}.validation-summary .has-errors{background:#7f1d1d}.validation-panel .validation-summary{border:0;border-radius:0}.table-note{padding:0 16px 16px}
.status-created{background:#d1fae5;color:#087a55}.status-updated{background:#dbeafe;color:#1d4ed8}.status-skipped{background:#f1f5f9;color:#475569}.status-error,.status-rejected{background:#ffe4e6;color:#be123c}.status-completed_with_errors,.status-rolled_back_with_conflicts{background:#fef3c7;color:#92400e}.status-rolled_back{background:#ede9fe;color:#6d28d9}
.bulk-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fafbfc}.bulk-toolbar>label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800}.bulk-toolbar>div{display:flex;gap:7px}.bulk-toolbar select,.bulk-toolbar input,.first-print-form select{min-height:34px;padding:6px 8px;border:1px solid #cfd6e0;border-radius:8px;background:white}.muted-row{opacity:.58}
.catalog-actions{display:grid!important;gap:8px!important}.bulk-edit-controls,.mixed-print-controls{display:flex;justify-content:flex-end;gap:7px}.mixed-print-controls{padding-top:8px;border-top:1px solid #e5e7eb}.selection-count{padding:3px 7px;border-radius:999px;background:#e8edf5;color:#475569;font-size:10px}.bulk-print-hint{display:flex;gap:5px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff8e8;color:#74540a;font-size:11px}.bulk-print-hint span{margin-left:auto;font-weight:800}.tag-quantity{width:68px;min-height:34px;padding:6px 8px;border:1px solid #cfd6e0;border-radius:8px;background:#fff;font-weight:800}
.import-detail-summary{margin-bottom:18px;border-radius:14px}.summary-status{font-size:14px!important}.rollback-bar,.rollback-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:17px 18px;border:1px solid #fecdd3;border-radius:14px;background:#fffafb}.rollback-bar p{margin:4px 0 0;color:var(--muted);font-size:11px}.rollback-notice{display:grid;gap:4px;border-color:#c4b5fd;background:#f5f3ff}.rollback-notice span{color:#5b21b6;font-size:11px}
.calibration-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:18px;align-items:start}.calibration-layout .form-card{display:grid;gap:17px}.calibration-guide ol{margin:0;padding:18px 38px;color:#475467;font-size:12px;line-height:1.9}.calibration-warning{margin:0 18px 18px;padding:13px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb;color:#713f12;font-size:11px;line-height:1.5}.first-print-form{display:flex;gap:8px;align-items:center;margin-top:11px}.first-print-form select{min-width:280px}
@media(max-width:1050px){.import-layout,.mapping-grid,.calibration-layout{grid-template-columns:1fr}.import-policy-card{position:static}.mapping-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.mapping-fields{grid-template-columns:1fr}.validation-summary{grid-template-columns:1fr 1fr}.bulk-toolbar,.bulk-toolbar>div,.rollback-bar,.first-print-form{align-items:stretch;flex-direction:column}.bulk-toolbar>div>*{width:100%}.bulk-edit-controls,.mixed-print-controls{align-items:stretch;flex-direction:column}.bulk-edit-controls>*,.mixed-print-controls>*{width:100%}.bulk-print-hint{align-items:flex-start;flex-direction:column}.bulk-print-hint span{margin-left:0}.first-print-form select{min-width:0;width:100%}}

/* v4.9 pilot hardening */
.pilot-strip{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr)) auto;align-items:center;gap:0;margin:-6px 0 24px;border:1px solid var(--line);border-radius:14px;background:#111827;color:white;overflow:hidden}
.pilot-strip>div{display:grid;gap:5px;padding:14px 16px;border-right:1px solid rgba(255,255,255,.1)}.pilot-strip span{color:#98a2b3;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.pilot-strip strong{font-size:20px}.pilot-strip>a{padding:18px;color:#fff;font-size:11px;font-weight:850;text-decoration:none}
.analytics-layout,.support-layout,.settings-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.65fr);gap:18px;align-items:start}.analytics-layout .form-card h2,.support-layout .form-card h2{margin:7px 0 6px}.analytics-history,.support-history,.settings-grid{margin-top:18px}.analytics-history .panel-heading p,.settings-grid .panel-heading p,.support-thread .panel-heading p{margin:4px 0 0;color:var(--muted);font-size:11px}
.support-thread .panel-body p{margin:0;white-space:pre-wrap;line-height:1.55}.support-comment{display:grid;grid-template-columns:1fr auto;gap:4px;padding:14px 18px;border-top:1px solid var(--line)}.support-comment>strong{font-size:12px}.support-comment>span{color:var(--muted);font-size:10px}.support-comment>p{grid-column:1/-1;margin:4px 0 0;white-space:pre-wrap;font-size:12px;line-height:1.5}.support-comment-form{display:grid;gap:8px;padding:16px 18px;border-top:1px solid var(--line)}.support-comment-form textarea{min-height:80px;padding:9px 11px;border:1px solid #cfd6e0;border-radius:9px;resize:vertical}.support-status-form{display:flex;gap:8px;padding:0 18px 18px}.support-status-form select{flex:1;min-height:34px;padding:6px 8px;border:1px solid #cfd6e0;border-radius:8px;background:white}.settings-row{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #edf0f4;font-size:11px}.settings-row:last-child{border-bottom:0}.settings-row span{color:var(--muted)}.revoke-session-form{margin-top:16px}.print-profile-banner{max-width:1180px;margin:0 auto 18px;display:flex;justify-content:space-between;gap:18px;padding:12px 14px;border:1px solid #a7f3d0;border-radius:11px;background:#ecfdf5;color:#05603f;font-size:11px}.print-profile-warning{border-color:#fde68a;background:#fffbeb;color:#854d0e}.status-passed,.status-resolved,.status-closed{background:#d1fae5;color:#087a55}.status-needs_review,.status-investigating{background:#fef3c7;color:#92400e}.status-failed,.status-blocking{background:#ffe4e6;color:#be123c}
@media(max-width:1100px){.pilot-strip{grid-template-columns:repeat(3,1fr)}.pilot-strip>a{grid-column:1/-1}.analytics-layout,.support-layout,.settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){.pilot-strip{grid-template-columns:1fr 1fr}.pilot-strip>a{grid-column:1/-1}.print-profile-banner{align-items:flex-start;flex-direction:column}}

/* v4.9.2 interface refinement */
.section-kicker { margin: 0 0 4px; color: var(--accent-dark); font-size: calc(9px * var(--type-scale)); font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.panel-heading > div > p:not(.section-kicker) { margin: 4px 0 0; color: var(--muted); font-size: calc(10px * var(--type-scale)); line-height: 1.45; }
.appearance-panel { scroll-margin-top: 136px; }
.appearance-panel > .panel-heading { padding: 20px 22px; }
.settings-scope { align-self: flex-start; padding: 6px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-dark); font-size: calc(9px * var(--type-scale)); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.appearance-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr); gap: 0; }
.appearance-controls { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 18px; padding: 22px; border-right: 1px solid var(--line); }
.choice-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-field legend, .colour-field > label { display: block; margin: 0 0 7px; color: #384357; font-size: calc(10px * var(--type-scale)); font-weight: 800; }
.segmented-control { display: flex; padding: 3px; border-radius: 10px; background: #eeefef; }
.segmented-control label { min-width: 0; flex: 1; cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { min-height: 34px; display: grid; place-items: center; padding: 0 8px; border-radius: 8px; color: var(--muted); font-size: calc(10px * var(--type-scale)); font-weight: 750; text-align: center; transition: background var(--motion), color var(--motion), box-shadow var(--motion); }
.segmented-control input:checked + span { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(31,40,52,.08); }
.segmented-control input:focus-visible + span { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.colour-field { min-width: 0; }
.colour-input-row { height: 42px; display: flex; align-items: center; gap: 10px; padding: 5px 9px; border: 1px solid #cfd6e0; border-radius: 9px; background: white; }
.colour-input-row input { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.colour-input-row input::-webkit-color-swatch-wrapper { padding: 0; }
.colour-input-row input::-webkit-color-swatch { border: 0; border-radius: 6px; }
.colour-input-row output { color: var(--muted); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: calc(10px * var(--type-scale)); font-weight: 700; }
.colour-presets { display: flex; gap: 8px; margin-top: 9px; }
.colour-presets button { width: 26px; height: 26px; padding: 0; border: 3px solid white; border-radius: 8px; background: var(--swatch); box-shadow: 0 0 0 1px #d7d9dc; cursor: pointer; transition: transform var(--motion), box-shadow var(--motion); }
.colour-presets button:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--swatch); }
.appearance-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; padding-top: 3px; }
.appearance-preview { display: grid; align-content: center; gap: 11px; padding: 28px; background: var(--surface-soft); }
.appearance-preview > p { margin: 0; color: var(--muted); font-size: calc(9px * var(--type-scale)); text-align: center; }
.preview-window { overflow: hidden; border: 7px solid #e7e6e3; border-radius: 18px; background: white; box-shadow: 0 18px 42px rgba(31,40,52,.12); }
.preview-topbar { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--chrome); color: white; font-size: calc(9px * var(--type-scale)); font-weight: 750; }
.preview-brand { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: var(--accent); color: var(--accent-contrast); font-weight: 900; }
.preview-topbar i { width: 22px; height: 22px; margin-left: auto; border-radius: 7px; background: rgba(255,255,255,.1); }
.preview-routes { min-height: 35px; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: calc(8px * var(--type-scale)); }
.preview-routes > * { padding: 5px 7px; }
.preview-routes strong { border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); }
.preview-content { padding: 22px; }
.preview-content > p { margin: 0 0 4px; color: var(--accent-dark); font-size: calc(8px * var(--type-scale)); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.preview-content h3 { margin: 0 0 18px; font-size: calc(20px * var(--type-scale)); letter-spacing: -.035em; }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview-metrics > span { display: grid; gap: 5px; padding: 11px; border-radius: 10px; background: var(--surface-soft); }
.preview-metrics small { color: var(--muted); font-size: calc(8px * var(--type-scale)); }
.preview-metrics strong { font-size: calc(17px * var(--type-scale)); }
.preview-content button { min-height: 34px; margin-top: 14px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-contrast); font-family: inherit; font-size: calc(9px * var(--type-scale)); font-weight: 800; }
.settings-primary-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 18px; align-items: start; margin-top: 18px; }
.section-heading { margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: calc(17px * var(--type-scale)); }
.runtime-list { padding-top: 9px; padding-bottom: 9px; }
.endpoint-list { display: grid; gap: 8px; }
.endpoint-list code { overflow-x: auto; padding: 8px 10px; border-radius: 8px; background: var(--surface-soft); color: #435064; font-size: calc(9px * var(--type-scale)); white-space: nowrap; }
.endpoint-list a { margin-top: 4px; color: var(--accent-dark); font-size: calc(10px * var(--type-scale)); font-weight: 800; text-decoration: none; }
.form-error { margin: 0; padding: 9px 12px; border-bottom: 1px solid #fecaca; background: #fff1f2; color: #9f1239; font-size: calc(10px * var(--type-scale)); font-weight: 750; }

@media(max-width:980px){
  .appearance-layout,.settings-primary-grid{grid-template-columns:1fr}
  .appearance-controls{border-right:0;border-bottom:1px solid var(--line)}
}
@media(max-width:640px){
  .appearance-controls{grid-template-columns:1fr;padding:17px}
  .appearance-preview{padding:18px}
  .appearance-actions{grid-column:auto;align-items:stretch;flex-direction:column-reverse}
  .appearance-actions .button{width:100%}
}

/* v4.9.3 TasteSkill interface system */
:root {
  --app-bg: #f3f2ef;
  --surface: #fffefa;
  --surface-soft: #f8f7f3;
  --surface-strong: #eeece6;
  --ink: #202226;
  --ink-strong: #111317;
  --muted: #686d75;
  --muted-strong: #50555d;
  --line: #e1dfd9;
  --line-strong: #cecbc3;
  --chrome: #17191d;
  --chrome-soft: #22252b;
  --success: #217354;
  --warning: #8a5a12;
  --danger: #b3262e;
  --radius-panel: 14px;
  --radius-control: 9px;
  --radius-small: 6px;
  --shadow-soft: 0 14px 34px rgba(25, 28, 33, .055);
  --shadow-menu: 0 18px 46px rgba(18, 20, 24, .16);
  --motion: 180ms cubic-bezier(.2, .72, .2, 1);
  --sidebar-width: 246px;
  --workspace-bar-height: 68px;
  --z-sidebar: 20;
  --z-header: 25;
  --z-menu: 40;
}

html { background: var(--app-bg); }
body.saas-body {
  background:
    radial-gradient(circle at 92% 0, rgba(47, 52, 61, .035), transparent 27rem),
    var(--app-bg);
  color: var(--ink);
  font-size: calc(15px * var(--type-scale));
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, strong { color: var(--ink-strong); }
::selection { background: var(--accent-soft); color: var(--ink-strong); }
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}
.app-stage { min-width: 0; }
.app-sidebar {
  position: sticky;
  top: 0;
  z-index: var(--z-sidebar);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--chrome);
  color: #f2f1ed;
  box-shadow: inset -1px 0 rgba(255, 255, 255, .06);
}
.sidebar-brand {
  min-height: var(--workspace-bar-height);
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}
.saas-brand { gap: 10px; }
.saas-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: calc(15px * var(--type-scale));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .22),
    0 7px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}
.brand-copy strong {
  color: #fff;
  font-size: calc(14px * var(--type-scale));
  font-weight: 720;
  letter-spacing: -.025em;
}
.brand-copy small {
  margin-top: 2px;
  color: #8f949d;
  font-size: calc(9px * var(--type-scale));
  font-weight: 620;
  letter-spacing: .055em;
}
.sidebar-nav {
  min-height: 0;
  overflow-y: auto;
  padding: 13px 11px 20px;
  scrollbar-width: thin;
  scrollbar-color: #3a3e46 transparent;
}
.nav-group + .nav-group { margin-top: 17px; }
.nav-group-title {
  margin: 0;
  padding: 0 10px 6px;
  color: #7e848e;
  font-size: calc(10px * var(--type-scale));
  font-weight: 650;
  letter-spacing: .02em;
}
.nav-item {
  position: relative;
  min-height: 38px;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 8px;
  color: #b8bcc4;
  font-size: calc(12px * var(--type-scale));
  font-weight: 570;
  text-decoration: none;
  transition: color var(--motion), background var(--motion), transform var(--motion);
}
.nav-item i {
  color: #858b95;
  font-size: calc(18px * var(--type-scale));
  transition: color var(--motion);
}
.nav-item:hover {
  background: rgba(255, 255, 255, .055);
  color: #fff;
  transform: translateX(1px);
}
.nav-item:hover i { color: #d8dbe0; }
.nav-item.active {
  background: color-mix(in srgb, var(--accent) 19%, #24262c);
  color: #fff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}
.nav-item.active i { color: color-mix(in srgb, var(--accent) 52%, white); }
.sidebar-status {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 10px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}
.sidebar-status-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #b9bdc5;
  font-size: 16px;
}
.sidebar-status > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.sidebar-status small {
  color: #777d87;
  font-size: calc(9px * var(--type-scale));
}
.sidebar-status strong {
  overflow: hidden;
  color: #d9dce1;
  font-size: calc(11px * var(--type-scale));
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--workspace-bar-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px max(24px, calc((100vw - var(--sidebar-width) - 1430px) / 2));
  border-bottom: 1px solid rgba(32, 34, 38, .08);
  background: rgba(255, 254, 250, .94);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.workspace-context {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  gap: 18px;
}
.context-switcher label { display: grid; gap: 2px; }
.context-switcher label > span {
  color: var(--muted);
  font-size: calc(9px * var(--type-scale));
  font-weight: 650;
  letter-spacing: .01em;
  text-transform: none;
}
.context-switcher label > span b {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: calc(8px * var(--type-scale));
  font-weight: 720;
  text-transform: uppercase;
}
.context-switcher select {
  width: clamp(150px, 17vw, 250px);
  min-height: 28px;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-strong);
  font-size: calc(12px * var(--type-scale));
  font-weight: 650;
}
.context-switcher select:hover { border-color: transparent; color: var(--accent-dark); }
.context-switcher select:focus-visible { border-color: transparent; outline-color: var(--accent); }
.workspace-help {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  color: var(--muted-strong);
  font-size: calc(11px * var(--type-scale));
  font-weight: 650;
  text-decoration: none;
  transition: background var(--motion), color var(--motion);
}
.workspace-help i { font-size: 17px; }
.workspace-help:hover { background: var(--surface-strong); color: var(--ink); }
.account-menu { position: relative; }
.account-menu > summary {
  min-width: 160px;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  padding: 4px 6px;
  border-radius: 10px;
  color: var(--ink);
}
.account-menu > summary:hover,
.account-menu[open] > summary { background: var(--surface-strong); }
.account-avatar {
  border-radius: 8px;
  font-size: calc(11px * var(--type-scale));
}
.account-copy strong {
  color: var(--ink-strong);
  font-size: calc(11px * var(--type-scale));
  font-weight: 680;
}
.account-copy small { color: var(--muted); font-size: calc(9px * var(--type-scale)); }
.account-menu > summary > i { color: var(--muted); font-size: 12px; }
.account-popover {
  top: calc(100% + 9px);
  width: 258px;
  padding: 7px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px rgba(32, 34, 38, .08),
    var(--shadow-menu);
}
.account-identity {
  padding: 11px 10px 12px;
  border-bottom-color: var(--line);
}
.account-popover a,
.account-popover button {
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 7px;
  font-size: calc(11px * var(--type-scale));
  font-weight: 620;
}
.account-popover i { width: 17px; color: var(--muted); font-size: 16px; }
.account-popover a:hover,
.account-popover button:hover { background: var(--surface-soft); }
.mobile-menu { display: none; position: relative; }

.page-shell {
  width: min(1410px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 72px;
}
.page-header {
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
}
.page-header > div:first-child { min-width: 0; }
.page-header h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(28px, 3vw, 37px);
  font-weight: 730;
  letter-spacing: -.045em;
  line-height: 1.05;
  text-wrap: balance;
}
.page-header p {
  max-width: 68ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: calc(13px * var(--type-scale));
  line-height: 1.55;
}
.eyebrow,
.section-kicker,
.step-kicker {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: calc(11px * var(--type-scale));
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}
.header-buttons { gap: 8px; }

.button {
  min-height: 40px;
  gap: 7px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  font-size: calc(12px * var(--type-scale));
  font-weight: 680;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition:
    background var(--motion),
    border-color var(--motion),
    color var(--motion),
    box-shadow var(--motion),
    transform var(--motion);
}
.button i { font-size: 16px; }
.button:active { transform: translateY(1px) scale(.985); }
.button-primary {
  border-color: color-mix(in srgb, var(--accent) 88%, black);
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: inset 0 1px rgba(255, 255, 255, .18);
}
.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 18%, transparent);
}
.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.button-secondary:hover { border-color: #aaa69f; background: var(--surface-soft); }
.button-ghost { border-color: transparent; color: var(--muted-strong); }
.button-ghost:hover { background: var(--surface-strong); color: var(--ink); }
.button-danger { border-color: #efc6c9; background: #fff7f7; color: var(--danger); }
.button-small {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: calc(11px * var(--type-scale));
}

.panel,
.form-card {
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px rgba(32, 34, 38, .085),
    var(--shadow-soft);
}
.panel-heading {
  min-height: 58px;
  padding: 16px 18px;
  border-bottom-color: var(--line);
}
.panel-heading h2 {
  color: var(--ink-strong);
  font-size: calc(15px * var(--type-scale));
  font-weight: 680;
  letter-spacing: -.018em;
}
.panel-heading a { font-size: calc(11px * var(--type-scale)); font-weight: 650; }
.panel-body { padding: 18px; }
.form-card { padding: 19px; }
.section-heading h2 { font-size: calc(17px * var(--type-scale)); font-weight: 690; }

.metric-grid {
  gap: 12px;
  margin-bottom: 22px;
}
.metric-card {
  position: relative;
  padding: 17px 18px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(32, 34, 38, .075);
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
  opacity: .55;
}
.metric-card:hover {
  border-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(32, 34, 38, .11),
    0 10px 25px rgba(31, 34, 39, .045);
}
.metric-label {
  color: var(--muted);
  font-size: calc(11px * var(--type-scale));
  font-weight: 620;
}
.metric-value {
  margin-top: 9px;
  color: var(--ink-strong);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: calc(28px * var(--type-scale));
  font-weight: 660;
  letter-spacing: -.06em;
}
.metric-helper { margin-top: 6px; font-size: calc(10px * var(--type-scale)); line-height: 1.4; }
.metric-helper a { color: var(--accent-dark); text-decoration: none; }

.data-table th,
.data-table td {
  padding: 13px 15px;
  border-bottom-color: #eceae5;
  font-size: calc(12px * var(--type-scale));
  line-height: 1.35;
}
.data-table th {
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: calc(10px * var(--type-scale));
  font-weight: 650;
  letter-spacing: .025em;
  text-transform: none;
}
.data-table tbody tr { transition: background var(--motion); }
.data-table tbody tr:hover { background: #faf9f6; }
.table-title { color: var(--ink-strong); font-weight: 670; }
.table-subtitle { margin-top: 4px; color: var(--muted); font-size: calc(10px * var(--type-scale)); line-height: 1.35; }
.table-subtitle a { color: var(--accent-dark); }
.status-badge {
  align-items: center;
  padding: 4px 7px;
  border-radius: var(--radius-small);
  font-size: calc(9px * var(--type-scale));
  font-weight: 690;
  letter-spacing: .015em;
  text-transform: none;
}
.empty-state {
  min-height: 190px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 38px 24px;
  color: var(--muted);
  font-size: calc(12px * var(--type-scale));
  line-height: 1.55;
}
.empty-state::before {
  content: "\e9b8";
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--muted);
  font-family: "Phosphor";
  font-size: 20px;
}
.empty-state strong { margin-bottom: 4px; font-size: calc(14px * var(--type-scale)); font-weight: 680; }

.field { gap: 7px; }
.field > span,
.field-label,
.choice-field legend,
.colour-field > label {
  color: var(--muted-strong);
  font-size: calc(11px * var(--type-scale));
  font-weight: 650;
}
.field input,
.field select,
.field textarea,
.search-form input,
.bulk-toolbar select,
.bulk-toolbar input,
.first-print-form select,
.support-comment-form textarea,
.support-status-form select {
  min-height: 42px;
  padding: 9px 11px;
  border-color: var(--line-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  font-size: calc(12px * var(--type-scale));
  transition: border-color var(--motion), box-shadow var(--motion), background var(--motion);
}
.field input:hover,
.field select:hover,
.field textarea:hover,
.search-form input:hover { border-color: #b8b4ac; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}
.helper { font-size: calc(11px * var(--type-scale)); line-height: 1.5; }
.search-form { max-width: 540px; }
.search-form input { padding-left: 13px; }

.quick-actions { gap: 2px; }
.quick-action {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 11px 10px;
  border: 0;
  border-radius: 9px;
}
.quick-action + .quick-action { border-top: 1px solid var(--line); border-radius: 0; }
.quick-action:hover { border-color: transparent; background: var(--surface-soft); transform: translateX(1px); }
.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 16px;
}
.quick-action strong { font-size: calc(12px * var(--type-scale)); font-weight: 650; }
.quick-action span { font-size: calc(10px * var(--type-scale)); }
.quick-arrow { color: var(--muted); font-size: 18px; }

.flash-stack,
.setup-banner {
  width: min(1410px, calc(100% - 48px));
}
.flash {
  border: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: calc(12px * var(--type-scale));
  font-weight: 620;
}
.setup-banner {
  margin-top: 16px;
  border-color: #c8d5e5;
  background: #f3f7fb;
}
.billing-alert { padding-right: 24px; padding-left: 24px; }

.pilot-strip {
  border: 0;
  border-radius: 13px;
  background: var(--chrome);
  box-shadow: 0 14px 28px rgba(23, 25, 29, .1);
}
.pilot-strip span { font-size: calc(9px * var(--type-scale)); font-weight: 620; letter-spacing: .02em; text-transform: none; }
.pilot-strip strong { color: white; font-family: "Geist Mono", ui-monospace, monospace; font-size: calc(18px * var(--type-scale)); font-weight: 620; }
.pilot-strip > a { font-size: calc(11px * var(--type-scale)); font-weight: 650; }

.bulk-toolbar,
.change-toolbar {
  border-bottom-color: var(--line);
  background: var(--surface-soft);
}
.selection-count {
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--muted-strong);
}
.bulk-print-hint {
  border-bottom-color: #ead9a7;
  background: #fffaf0;
  color: #6b4f16;
  line-height: 1.45;
}
.tag-quantity { border-color: var(--line-strong); border-radius: 7px; }
.usage-track { height: 6px; background: var(--surface-strong); }
.usage-fill { border-radius: 10px; }

.settings-scope {
  border-radius: var(--radius-small);
  font-size: calc(9px * var(--type-scale));
  text-transform: none;
}
.segmented-control { background: var(--surface-strong); }
.segmented-control span { font-size: calc(11px * var(--type-scale)); }
.appearance-preview { background: #efede7; }
.preview-window {
  border: 6px solid #ddd9d1;
  border-radius: 15px;
  box-shadow: 0 16px 36px rgba(31, 34, 39, .11);
}
.preview-routes strong { border-radius: 5px; }
.settings-row { font-size: calc(11px * var(--type-scale)); }
.endpoint-list code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: calc(10px * var(--type-scale));
}

.auth-page {
  background: #ecebe7;
}
.auth-story {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 30rem),
    var(--chrome);
}
.auth-story::after {
  content: "";
  position: absolute;
  right: -11%;
  bottom: -28%;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(255, 255, 255, .025),
    0 0 0 92px rgba(255, 255, 255, .018);
  pointer-events: none;
}
.auth-story h1 {
  max-width: 670px;
  color: #fbfaf7;
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 690;
  letter-spacing: -.06em;
  line-height: .98;
  text-wrap: balance;
}
.auth-story p { max-width: 540px; color: #b8bcc4; font-size: calc(15px * var(--type-scale)); }
.auth-proof { position: relative; z-index: 1; gap: 8px; }
.auth-proof span {
  padding: 7px 9px;
  border-color: rgba(255, 255, 255, .11);
  border-radius: 6px;
  color: #cdd0d5;
  font-size: calc(10px * var(--type-scale));
  font-weight: 580;
}
.auth-panel { background: #ecebe7; }
.auth-card {
  padding: 32px;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px rgba(32, 34, 38, .08),
    0 22px 50px rgba(30, 32, 36, .08);
}
.auth-card h2 { font-size: 27px; font-weight: 700; }
.auth-card > p { font-size: 13px; }
.demo-credentials { border-radius: 8px; background: var(--surface-soft); }

@media (max-width: 1120px) {
  .app-layout { grid-template-columns: 218px minmax(0, 1fr); }
  :root { --sidebar-width: 218px; }
  .nav-item { padding-right: 8px; padding-left: 8px; }
  .workspace-context { gap: 10px; }
  .context-switcher select { width: clamp(125px, 15vw, 190px); }
}

@media (max-width: 1100px) {
  :root { --sidebar-width: 0px; }
  .app-layout { display: block; }
  .app-sidebar { display: none; }
  .workspace-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 14px;
  }
  .mobile-menu { display: block; }
  .mobile-menu > summary {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--surface-strong);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu > summary i { font-size: 21px; }
  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: var(--z-menu);
    width: min(330px, calc(100vw - 28px));
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    padding: 10px;
    border: 0;
    border-radius: 13px;
    background: var(--chrome);
    color: white;
    box-shadow: var(--shadow-menu);
  }
  .mobile-nav-heading {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 5px 5px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .mobile-nav-heading > div { display: grid; gap: 2px; }
  .mobile-nav-heading strong { color: white; font-size: 12px; }
  .mobile-nav-heading small { overflow: hidden; color: #8f949d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-routes { display: block; padding: 5px 0 10px; }
  .mobile-routes .nav-group + .nav-group { margin-top: 12px; }
  .mobile-logout { padding: 10px 2px 2px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .mobile-logout .button { width: 100%; border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: white; }
  .workspace-help span,
  .account-copy { display: none; }
  .account-menu > summary { min-width: 0; grid-template-columns: 34px 12px; }
  .page-shell { width: min(100% - 30px, 1410px); }
  .flash-stack,
  .setup-banner { width: min(100% - 30px, 1410px); }
}

@media (max-width: 640px) {
  .workspace-bar { min-height: 62px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .workspace-context { min-width: 0; display: block; }
  .workspace-context .context-switcher:not(:first-child) { display: none; }
  .context-switcher select { width: min(45vw, 190px); }
  .context-switcher label > span { display: none; }
  .workspace-help { display: none; }
  .account-menu > summary { grid-template-columns: 34px; }
  .account-menu > summary > i { display: none; }
  .account-popover { right: 0; width: min(258px, calc(100vw - 28px)); }
  .page-shell { width: min(100% - 24px, 1410px); padding-top: 25px; }
  .page-header { gap: 16px; }
  .page-header h1 { font-size: 29px; }
  .page-header p { font-size: calc(12px * var(--type-scale)); }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { padding: 15px; }
  .metric-value { font-size: calc(24px * var(--type-scale)); }
  .header-buttons { width: 100%; }
  .header-buttons .button { flex: 1; }
  .auth-story { min-height: 320px; padding: 28px 22px; }
  .auth-story h1 { font-size: clamp(36px, 11vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .app-layout { display: block; }
  .app-stage { min-width: 0; }
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .45fr);
  gap: 14px;
  margin-bottom: 18px;
}
.overview-metrics,
.attention-panel {
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px rgba(32, 34, 38, .085),
    var(--shadow-soft);
}
.overview-heading {
  min-height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.overview-heading > div { display: grid; gap: 3px; }
.overview-heading h2 { margin: 0; font-size: calc(15px * var(--type-scale)); font-weight: 680; }
.overview-heading p { margin: 0; color: var(--muted); font-size: calc(10px * var(--type-scale)); }
.overview-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-dark);
  font-size: calc(11px * var(--type-scale));
  font-weight: 650;
  text-decoration: none;
}
.overview-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.overview-metric-grid article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 19px 18px 20px;
  border-right: 1px solid var(--line);
}
.overview-metric-grid article:last-child { border-right: 0; }
.overview-metric-grid span,
.overview-metric-grid small {
  overflow: hidden;
  color: var(--muted);
  font-size: calc(10px * var(--type-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-metric-grid strong {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: calc(29px * var(--type-scale));
  font-weight: 640;
  letter-spacing: -.07em;
}
.attention-panel {
  background: var(--chrome);
  color: white;
  box-shadow: 0 14px 28px rgba(23, 25, 29, .1);
}
.attention-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #aeb3bb;
  font-size: calc(11px * var(--type-scale));
  font-weight: 620;
}
.attention-heading i { color: color-mix(in srgb, var(--accent) 52%, white); font-size: 17px; }
.attention-panel > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: white;
  text-decoration: none;
  transition: background var(--motion);
}
.attention-panel > a:hover { background: rgba(255, 255, 255, .055); }
.attention-panel > a > span {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}
.attention-panel > a strong {
  color: white;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: calc(17px * var(--type-scale));
  font-weight: 620;
}
.attention-panel > a small { color: #b6bac2; font-size: calc(11px * var(--type-scale)); }
.attention-panel > a > i { color: #7e848e; font-size: 14px; }
.attention-foot {
  margin: 5px 11px 11px;
  padding: 9px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .055);
  color: #9ca1aa;
  font-size: calc(10px * var(--type-scale));
}
.attention-foot strong { color: #dfe2e7; font-weight: 650; }
.pilot-strip { margin-top: 0; }
.pilot-strip > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.recent-work-panel { min-width: 0; }
.task-panel .compact-heading { min-height: 50px; }
.recent-imports-list { padding-top: 9px; padding-bottom: 9px; }

@media (max-width: 1120px) {
  .dashboard-overview { grid-template-columns: 1fr; }
  .attention-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .attention-heading,
  .attention-foot { grid-column: 1 / -1; }
  .attention-panel > a + a { border-left: 1px solid rgba(255, 255, 255, .08); }
}

@media (max-width: 720px) {
  .overview-metric-grid { grid-template-columns: 1fr 1fr; }
  .overview-metric-grid article:nth-child(2) { border-right: 0; }
  .overview-metric-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .attention-panel { grid-template-columns: 1fr; }
  .attention-panel > a + a { border-top: 1px solid rgba(255, 255, 255, .08); border-left: 0; }
  .pilot-strip { grid-template-columns: 1fr 1fr; }
}

.catalogue-sidebar { display: grid; gap: 16px; }
.side-card-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.side-card-heading > div { display: grid; gap: 2px; }
.side-card-heading h2 {
  margin: 0;
  font-size: calc(15px * var(--type-scale));
  font-weight: 680;
}
.side-card-heading p { margin: 0; color: var(--muted); font-size: calc(10px * var(--type-scale)); }
.side-card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 17px;
}
.full-width-button { width: 100%; margin-top: 10px; }
.form-submit-space { margin-top: 15px; }
.import-box > strong { font-size: calc(12px * var(--type-scale)); font-weight: 680; }
.search-input {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding-left: 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: #fff;
  transition: border-color var(--motion), box-shadow var(--motion);
}
.search-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}
.search-input i { color: var(--muted); font-size: 16px; }
.search-input input {
  min-height: 40px;
  padding-left: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.search-input input:focus { border: 0; box-shadow: none; }
.bulk-print-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.bulk-print-hint > i { font-size: 16px; }
.bulk-print-hint > span { margin-left: 0; }
.bulk-print-hint > strong:last-child { white-space: nowrap; }

.preview-shell {
  min-height: 270px;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
}
.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 7px;
  background: var(--chrome);
  color: #9499a2;
  font-size: calc(7px * var(--type-scale));
}
.preview-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 0 3px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.preview-logo strong { color: white; font-size: calc(8px * var(--type-scale)); }
.preview-sidebar > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 5px;
}
.preview-sidebar > span i { font-size: calc(10px * var(--type-scale)); }
.preview-sidebar .preview-nav-active {
  background: color-mix(in srgb, var(--accent) 20%, #24262c);
  color: white;
}
.preview-stage { min-width: 0; background: var(--surface-soft); }
.preview-topbar {
  min-height: 38px;
  justify-content: space-between;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.preview-topbar i { margin-left: 0; background: var(--surface-strong); }
.preview-content { padding: 21px; }
.preview-content > p {
  color: var(--accent-dark);
  font-size: calc(8px * var(--type-scale));
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.preview-content h3 { color: var(--ink-strong); font-weight: 700; }
.import-card-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}
.import-card-heading > div { display: grid; gap: 3px; }
.import-card-heading h2 { margin: 0; font-size: calc(18px * var(--type-scale)); font-weight: 690; }
.import-card-heading p { margin: 0; color: var(--muted); font-size: calc(11px * var(--type-scale)); line-height: 1.4; }
.upload-drop { border-color: var(--line-strong); background: var(--surface-soft); }
.upload-drop > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--muted-strong);
  font-size: 20px;
  transition: color var(--motion), background var(--motion), transform var(--motion);
}
.upload-drop:hover > i {
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: translateY(-1px);
}
.upload-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, white); }

@media (max-width: 640px) {
  .bulk-print-hint { grid-template-columns: auto minmax(0, 1fr); }
  .bulk-print-hint > strong:last-child { grid-column: 2; }
  .preview-shell { grid-template-columns: 80px minmax(0, 1fr); }
  .preview-sidebar { padding: 7px 5px; }
}

/* v4.9.4 extended display preferences */
body[data-font-size="xlarge"] { --type-scale: 1.22; }
body[data-density="spacious"] .page-shell { padding-top: 42px; }
body[data-density="spacious"] .page-header { margin-bottom: 32px; }
body[data-density="spacious"] .metric-grid { gap: 20px; margin-bottom: 30px; }
body[data-density="spacious"] .metric-card,
body[data-density="spacious"] .panel-body,
body[data-density="spacious"] .form-card { padding: 24px; }
body[data-density="spacious"] .panel-heading { padding: 20px 24px; }
body[data-density="spacious"] .data-table th,
body[data-density="spacious"] .data-table td { padding: 16px 18px; }

body[data-theme="warm"] {
  --app-bg: #f7f2e9;
  --surface: #fffdf8;
  --surface-soft: #f5eee2;
  --ink: #29251f;
  --muted: #746b60;
  --line: #ddd2c3;
}
body[data-theme="dark"] {
  color-scheme: dark;
  --app-bg: #11151b;
  --surface: #1a2029;
  --surface-soft: #222a35;
  --ink: #eef2f7;
  --muted: #aab4c2;
  --line: #34404f;
  --chrome: #0b0f15;
  --chrome-soft: #161d27;
  --shadow-soft: 0 18px 48px rgba(0,0,0,.28);
}
@media (prefers-color-scheme: dark) {
  body[data-theme="system"] {
    color-scheme: dark;
    --app-bg: #11151b;
    --surface: #1a2029;
    --surface-soft: #222a35;
    --ink: #eef2f7;
    --muted: #aab4c2;
    --line: #34404f;
    --chrome: #0b0f15;
    --chrome-soft: #161d27;
    --shadow-soft: 0 18px 48px rgba(0,0,0,.28);
  }
}
body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .segmented-control input:checked + span,
body[data-theme="dark"] .colour-input-row,
body[data-theme="dark"] .preview-window,
body[data-theme="dark"] .bulk-toolbar,
body[data-theme="dark"] .bulk-toolbar select,
body[data-theme="dark"] .bulk-toolbar input,
body[data-theme="dark"] .first-print-form select { background: var(--surface); color: var(--ink); border-color: var(--line); }
body[data-theme="dark"] .segmented-control { background: #121821; }

body[data-contrast="high"] {
  --ink: #05070a;
  --muted: #303844;
  --line: #687384;
}
body[data-theme="dark"][data-contrast="high"] {
  --ink: #ffffff;
  --muted: #d5dce5;
  --line: #8190a3;
}
@media (prefers-color-scheme: dark) {
  body[data-theme="system"][data-contrast="high"] {
    --ink: #ffffff;
    --muted: #d5dce5;
    --line: #8190a3;
  }
}
body[data-contrast="high"] .button,
body[data-contrast="high"] input,
body[data-contrast="high"] select,
body[data-contrast="high"] textarea { border-width: 2px; }

body[data-radius="square"] { --radius: 4px; }
body[data-radius="soft"] { --radius: 12px; }
body[data-radius="rounded"] { --radius: 22px; }
body[data-radius="square"] .panel,
body[data-radius="square"] .form-card,
body[data-radius="square"] .metric-card,
body[data-radius="square"] .button,
body[data-radius="square"] input,
body[data-radius="square"] select,
body[data-radius="square"] textarea { border-radius: 4px !important; }
body[data-radius="rounded"] .panel,
body[data-radius="rounded"] .form-card,
body[data-radius="rounded"] .metric-card { border-radius: 22px !important; }
body[data-radius="rounded"] .button,
body[data-radius="rounded"] input,
body[data-radius="rounded"] select,
body[data-radius="rounded"] textarea { border-radius: 14px !important; }

body[data-motion="reduced"] { --motion: 0ms linear; }
body[data-motion="reduced"] *,
body[data-motion="reduced"] *::before,
body[data-motion="reduced"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) {
  body[data-motion="full"] { --motion: 0ms linear; }
}
.segmented-control-wide { flex-wrap: wrap; }
.segmented-control-wide label { min-width: 110px; }

/* v4.10 personal preferences and company branding */
.saas-brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  border-radius: 8px;
}
.mobile-nav-heading .saas-brand-logo { width: 36px; height: 36px; }

.settings-page { display: grid; align-content: start; gap: 18px; }
.settings-header { margin-bottom: 0; }
.settings-nav {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
}
.settings-nav-group { min-width: max-content; display: flex; align-items: center; gap: 4px; }
.settings-nav-group + .settings-nav-group { padding-left: 14px; border-left: 1px solid var(--line); }
.settings-nav-group > span { padding: 0 8px; color: var(--muted); font-size: calc(9px * var(--type-scale)); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.settings-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: var(--radius-control);
  color: var(--muted-strong);
  font-size: calc(11px * var(--type-scale));
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.settings-nav a i { color: var(--muted); font-size: 17px; }
.settings-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.settings-nav a.active { background: var(--accent-soft); color: var(--accent-dark); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.settings-nav a.active i { color: var(--accent-dark); }
.settings-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}
.settings-note > div { display: flex; align-items: center; gap: 12px; }
.settings-note > div > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-strong); color: var(--muted-strong); font-size: 19px; }
.settings-note span { display: grid; gap: 3px; }
.settings-note small { color: var(--muted); font-size: calc(10px * var(--type-scale)); }
.security-event-list, .migration-list { max-height: 520px; overflow: auto; }
.danger-panel { border-color: color-mix(in srgb, var(--danger) 28%, var(--line)); }
.system-readiness .readiness-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.branding-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, .72fr); }
.branding-controls { display: grid; gap: 24px; padding: 22px; border-right: 1px solid var(--line); }
.brand-colour-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand-colour-grid .colour-field { min-height: 178px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-soft); }
.brand-assets-section { display: grid; gap: 14px; padding-top: 4px; }
.brand-assets-section .section-heading { align-items: center; }
.brand-asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.branding-preview { display: grid; align-content: center; gap: 12px; padding: 28px; background: var(--surface-soft); }
.branding-preview > p { margin: 0; color: var(--muted); font-size: calc(10px * var(--type-scale)); text-align: center; }
.brand-preview-window { min-height: 390px; display: grid; grid-template-columns: 155px minmax(0, 1fr); overflow: hidden; border: 6px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.brand-preview-sidebar { display: grid; align-content: start; gap: 5px; padding: 13px 9px; background: var(--chrome); color: white; }
.brand-preview-identity { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 14px; }
.brand-preview-identity > img { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; }
.brand-preview-identity .saas-brand-mark { width: 34px; height: 34px; font-size: 12px; }
.brand-preview-identity > div { min-width: 0; display: grid; gap: 2px; }
.brand-preview-identity strong, .brand-preview-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview-identity strong { color: white; font-size: 10px; }
.brand-preview-identity small { color: rgba(255,255,255,.58); font-size: 7px; text-transform: uppercase; }
.brand-preview-sidebar > span { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 6px; color: rgba(255,255,255,.66); font-size: 8px; }
.brand-preview-sidebar > span.active { background: color-mix(in srgb, var(--accent) 20%, var(--chrome)); color: white; box-shadow: inset 2px 0 var(--accent); }
.brand-preview-stage { min-width: 0; background: var(--app-bg); }
.brand-preview-topbar { min-height: 45px; display: flex; align-items: center; padding: 0 13px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 8px; }
.brand-preview-content { padding: 25px 18px; }
.brand-preview-content small { color: var(--accent-dark); font-size: 8px; font-weight: 700; }
.brand-preview-content h3 { margin: 5px 0 20px; font-size: 18px; line-height: 1.05; }
.brand-preview-content button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-contrast); font-size: 8px; font-weight: 700; }
.compact-empty { display: grid; justify-items: center; gap: 8px; border: 1px dashed var(--line); border-radius: var(--radius-control); }

body[data-content-width="focused"] .page-shell,
body[data-content-width="focused"] .flash-stack,
body[data-content-width="focused"] .setup-banner { width: min(980px, calc(100% - 48px)); }
body[data-content-width="standard"] .page-shell,
body[data-content-width="standard"] .flash-stack,
body[data-content-width="standard"] .setup-banner { width: min(1240px, calc(100% - 48px)); }
body[data-content-width="wide"] .page-shell,
body[data-content-width="wide"] .flash-stack,
body[data-content-width="wide"] .setup-banner { width: min(1410px, calc(100% - 48px)); }

@media (min-width: 901px) {
  body[data-sidebar="compact"] { --sidebar-width: 78px; }
  body[data-sidebar="compact"] .app-layout { grid-template-columns: 78px minmax(0, 1fr); }
  body[data-sidebar="compact"] .sidebar-brand { justify-content: center; padding-right: 8px; padding-left: 8px; }
  body[data-sidebar="compact"] .saas-brand { justify-content: center; }
  body[data-sidebar="compact"] .brand-copy,
  body[data-sidebar="compact"] .nav-group-title,
  body[data-sidebar="compact"] .sidebar-status > span:last-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
  body[data-sidebar="compact"] .sidebar-nav { overflow-x: visible; padding-right: 10px; padding-left: 10px; }
  body[data-sidebar="compact"] .nav-group + .nav-group { margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.065); }
  body[data-sidebar="compact"] .nav-item { grid-template-columns: 1fr; place-items: center; min-height: 43px; padding: 7px; }
  body[data-sidebar="compact"] .nav-item i { font-size: 20px; }
  body[data-sidebar="compact"] .nav-item span {
    position: absolute;
    left: calc(100% + 10px);
    z-index: calc(var(--z-sidebar) + 2);
    min-width: max-content;
    padding: 7px 9px;
    border-radius: 7px;
    background: var(--chrome);
    color: white;
    box-shadow: var(--shadow-menu);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-4px);
    transition: opacity var(--motion), transform var(--motion);
  }
  body[data-sidebar="compact"] .nav-item:hover span,
  body[data-sidebar="compact"] .nav-item:focus-visible span { opacity: 1; transform: translateX(0); }
  body[data-sidebar="compact"] .nav-item.active::before { top: 9px; bottom: 9px; }
  body[data-sidebar="compact"] .sidebar-status { grid-template-columns: 1fr; place-items: center; margin: 9px; padding: 9px 0; }
}

@media (max-width: 1040px) {
  .branding-layout { grid-template-columns: 1fr; }
  .branding-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .branding-preview { padding: 22px; }
}
@media (max-width: 760px) {
  .settings-nav { display: grid; gap: 8px; }
  .settings-nav-group { overflow-x: auto; }
  .settings-nav-group + .settings-nav-group { padding-top: 8px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .settings-nav-group > span { display: none; }
  .settings-note { align-items: stretch; flex-direction: column; }
  .settings-note .button { width: 100%; }
  .brand-colour-grid, .brand-asset-grid, .system-readiness .readiness-list { grid-template-columns: 1fr; }
  .brand-preview-window { grid-template-columns: 115px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body[data-content-width] .page-shell,
  body[data-content-width] .flash-stack,
  body[data-content-width] .setup-banner { width: min(100% - 24px, 1410px); }
  .branding-controls { padding: 17px; }
  .branding-preview { padding: 16px; }
  .brand-preview-window { min-height: 330px; grid-template-columns: 94px minmax(0, 1fr); }
  .brand-preview-sidebar { padding: 9px 5px; }
  .brand-preview-identity { grid-template-columns: 30px minmax(0, 1fr); gap: 5px; }
}

/* v4.11 platform administration */
.platform-body { min-height: 100dvh; margin: 0; background: #f5f7fa; color: #182033; font-family: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
.platform-layout { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.platform-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 22px 16px; background: #111827; color: #f8fafc; }
.platform-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 22px; color: white; text-decoration: none; }
.platform-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #e21d2f; color: white; font-size: 19px; font-weight: 950; }
.platform-brand strong, .platform-brand small { display: block; }
.platform-brand small { margin-top: 2px; color: #94a3b8; font-size: 10px; }
.platform-nav { display: grid; gap: 5px; }
.platform-nav a, .platform-sidebar-footer a, .platform-sidebar-footer button { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #cbd5e1; font: inherit; font-size: 12px; font-weight: 750; text-decoration: none; cursor: pointer; }
.platform-nav a:hover, .platform-nav a.active, .platform-sidebar-footer a:hover, .platform-sidebar-footer button:hover { background: rgba(255,255,255,.08); color: white; }
.platform-nav a.active { box-shadow: inset 3px 0 #e21d2f; }
.platform-sidebar-footer { display: grid; gap: 5px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.platform-sidebar-footer form { margin: 0; }
.platform-stage { min-width: 0; }
.platform-topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 30px; border-bottom: 1px solid #dfe4ea; background: white; }
.platform-topbar > div > strong, .platform-topbar > div > span { display: block; }
.platform-topbar > div > span { margin-top: 2px; color: #64748b; font-size: 10px; }
.platform-user { display: flex; align-items: center; gap: 9px; }
.platform-user > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #eef2f7; font-weight: 850; }
.platform-user strong, .platform-user small { display: block; }
.platform-user small { color: #64748b; font-size: 10px; }
.platform-main { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 60px; }
.platform-page-header { align-items: start; }
.platform-page-header h1 { font-size: clamp(30px, 4vw, 46px); }
.platform-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-word { font-size: 23px; text-transform: none; }
.platform-table-heading { align-items: center; }
.platform-table-heading p { margin: 4px 0 0; color: #64748b; font-size: 11px; }
.platform-search { min-width: min(480px, 100%); }
.platform-table td { white-space: nowrap; }
.platform-usage-line { display: flex; flex-wrap: wrap; gap: 6px; }
.platform-usage-line span { padding: 4px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 9px; font-weight: 750; }
.plan-chip { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.muted-text { color: #64748b; font-size: 11px; }
.platform-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 18px; align-items: start; }
.platform-detail-main, .platform-detail-side { display: grid; gap: 18px; }
.platform-section { overflow: visible; }
.entitlement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.feature-admin-list { display: grid; gap: 10px; }
.feature-admin-row { display: grid; grid-template-columns: minmax(230px, 1fr) 100px 140px minmax(130px, .6fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 11px; }
.feature-admin-row > div:first-of-type strong, .feature-admin-row > div:first-of-type span { display: block; }
.feature-admin-row > div:first-of-type span { margin-top: 3px; color: #64748b; font-size: 10px; line-height: 1.4; }
.feature-admin-row select, .feature-admin-row input { min-height: 38px; padding: 7px 9px; border: 1px solid #cfd6e0; border-radius: 8px; background: white; }
.feature-state small, .feature-state strong { display: block; }
.feature-state small { color: #64748b; font-size: 9px; }
.feature-state strong { margin-top: 3px; font-size: 11px; }
.support-access-form { display: grid; gap: 13px; }
.support-warning { margin: 14px 0 0; padding: 10px; border-radius: 9px; background: #fff7ed; color: #9a3412; }
.usage-event-list, .support-session-list { display: grid; gap: 9px; }
.usage-event-list > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #edf0f4; font-size: 11px; }
.support-session-list > div { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid #edf0f4; }
.support-session-list span { color: #475569; font-size: 10px; line-height: 1.45; }
.support-session-list small { color: #94a3b8; font-size: 9px; }
.audit-json { display: inline-block; max-width: 390px; overflow: hidden; color: #475569; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.support-access-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 24px; background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #9a3412; }
.support-access-banner > div strong, .support-access-banner > div span { display: block; }
.support-access-banner > div span { margin-top: 2px; font-size: 10px; }
.suspended-shell { min-height: calc(100dvh - 80px); display: grid; place-items: center; }
.suspended-card { width: min(620px, 100%); padding: 36px; border: 1px solid #fecaca; border-radius: 18px; background: white; box-shadow: 0 18px 50px rgba(15,23,42,.08); }
.suspended-card h1 { margin: 7px 0 10px; font-size: 35px; letter-spacing: -.04em; }
.suspended-card > p { color: #64748b; line-height: 1.6; }
.suspended-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #fff1f2; color: #be123c; font-size: 24px; }
.suspension-reason { display: grid; gap: 4px; margin: 20px 0; padding: 13px; border-radius: 11px; background: #f8fafc; }
.suspension-reason span { color: #475569; font-size: 12px; }

@media (max-width: 1180px) {
  .platform-layout { grid-template-columns: 84px minmax(0, 1fr); }
  .platform-brand > span:last-child, .platform-nav a:not(.active) span, .platform-sidebar-footer a span { display: none; }
  .platform-brand { justify-content: center; }
  .platform-nav a, .platform-sidebar-footer a, .platform-sidebar-footer button { justify-content: center; font-size: 0; }
  .platform-nav i, .platform-sidebar-footer i { font-size: 19px; }
  .platform-detail-grid { grid-template-columns: 1fr; }
  .platform-detail-side .sticky-panel { position: static; }
  .feature-admin-row { grid-template-columns: 1fr 100px 140px; }
  .feature-admin-row input { grid-column: 1 / 3; }
}
@media (max-width: 760px) {
  .platform-layout { display: block; }
  .platform-sidebar { position: static; width: 100%; height: auto; display: block; }
  .platform-brand { justify-content: flex-start; }
  .platform-brand > span:last-child { display: block; }
  .platform-nav { grid-template-columns: repeat(3, 1fr); }
  .platform-nav a { justify-content: center; font-size: 10px; }
  .platform-sidebar-footer { display: none; }
  .platform-topbar { padding: 12px 16px; }
  .platform-main { width: min(100% - 24px, 1500px); padding-top: 22px; }
  .platform-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-table-heading { align-items: stretch; flex-direction: column; }
  .entitlement-grid { grid-template-columns: 1fr 1fr; }
  .feature-admin-row { grid-template-columns: 1fr; }
  .feature-admin-row input { grid-column: auto; }
}
.platform-health-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; margin-bottom: 18px; }
.health-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.health-stat-grid > div { padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.health-stat-grid span, .health-stat-grid strong { display: block; }
.health-stat-grid span { color: #64748b; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.health-stat-grid strong { margin-top: 7px; font-size: 22px; }
.health-stat-grid .health-text { overflow: hidden; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.health-danger { color: #be123c; }
.platform-action-list { display: grid; gap: 8px; }
.platform-action-list > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding-bottom: 8px; border-bottom: 1px solid #edf0f4; }
.platform-action-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #eef2ff; color: #4338ca; }
.platform-action-list strong, .platform-action-list span { display: block; }
.platform-action-list span { margin-top: 2px; color: #64748b; font-size: 9px; }
.platform-action-list small { color: #94a3b8; font-size: 8px; }
@media (max-width: 980px) { .platform-health-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .health-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.platform-ticket-list { display: grid; gap: 11px; }
.platform-ticket { display: grid; gap: 10px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.platform-ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.platform-ticket-head > div { display: flex; gap: 6px; align-items: center; }
.platform-ticket-head small, .platform-ticket > div > small { color: #94a3b8; font-size: 9px; }
.platform-ticket p { margin: 4px 0; color: #475569; font-size: 11px; line-height: 1.5; }
.ticket-severity { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.severity-urgent, .severity-critical { background: #fff1f2; color: #be123c; }
.platform-ticket-controls { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 8px; }
.platform-ticket-controls select, .platform-ticket-controls input { min-height: 38px; padding: 7px 9px; border: 1px solid #cfd6e0; border-radius: 8px; }
@media (max-width: 700px) { .platform-ticket-controls { grid-template-columns: 1fr; } }

/* v4.12 production billing lifecycle */
.billing-capabilities{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.billing-profile-panel{margin:18px 0}
.billing-profile-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px}
.billing-field-wide{grid-column:span 2}
.billing-profile-actions{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:4px}
.subscription-summary strong small{display:block;margin-top:4px;color:#98a2b3;font-size:10px;font-weight:700}
.status-awaiting_payment,.status-awaiting_webhook,.status-previewed,.status-running{background:#e0f2fe;color:#075985}
.status-expired,.status-cancelled,.status-ignored{background:#f3f4f6;color:#475467}
.billing-preview-shell{max-width:1120px}
.billing-preview-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;align-items:start}
.billing-preview-card{padding-bottom:18px}
.billing-preview-flow{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;padding:22px}
.billing-preview-flow>div:not(.billing-preview-arrow){display:grid;gap:5px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fafbfc}
.billing-preview-flow span{color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.billing-preview-flow strong{font-size:20px}
.billing-preview-flow small{color:var(--muted);font-size:12px}
.billing-preview-arrow{font-size:24px;font-weight:900;color:var(--accent)}
.billing-preview-totals{display:grid;margin:0 22px;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.billing-preview-totals>div{display:flex;justify-content:space-between;gap:20px;padding:13px 15px;border-bottom:1px solid var(--line)}
.billing-preview-totals>div:last-child{border-bottom:0}
.billing-preview-totals dt{color:var(--muted);font-size:12px}
.billing-preview-totals dd{margin:0;font-size:12px;font-weight:850}
.billing-preview-totals .billing-preview-total{background:#111827;color:#fff}
.billing-preview-totals .billing-preview-total dt{color:#cbd5e1}
.billing-preview-totals .billing-preview-total dd{font-size:16px}
.billing-preview-card>.helper{display:block;margin:15px 22px 0;line-height:1.5}
.billing-proration-lines{display:grid;padding:8px 18px}
.billing-proration-lines>div{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.billing-proration-lines>div:last-child{border-bottom:0}
.billing-proration-lines span{color:var(--muted);font-size:11px;line-height:1.45}
.billing-proration-lines strong{font-size:12px;white-space:nowrap}
.billing-preview-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}
@media (max-width:1000px){.billing-profile-form{grid-template-columns:1fr 1fr}.billing-preview-grid{grid-template-columns:1fr}}
@media (max-width:650px){.billing-profile-form{grid-template-columns:1fr}.billing-field-wide{grid-column:auto}.billing-preview-flow{grid-template-columns:1fr}.billing-preview-arrow{transform:rotate(90deg);justify-self:center}.billing-preview-actions{align-items:stretch;flex-direction:column}.billing-preview-actions form,.billing-preview-actions button{width:100%}}

/* v4.12.1 configurable navigation text colour */
.app-sidebar { color: var(--chrome-text); }
.brand-copy strong,
.mobile-nav-heading strong { color: var(--chrome-text); }
.brand-copy small,
.mobile-nav-heading small { color: color-mix(in srgb, var(--chrome-text) 58%, transparent); }
.nav-group-title { color: color-mix(in srgb, var(--chrome-text) 48%, transparent); }
.nav-item { color: color-mix(in srgb, var(--chrome-text) 72%, transparent); }
.nav-item i { color: color-mix(in srgb, var(--chrome-text) 55%, transparent); }
.nav-item:hover,
.nav-item.active { color: var(--chrome-text); }
.nav-item:hover i { color: color-mix(in srgb, var(--chrome-text) 90%, transparent); }
.nav-item.active i { color: color-mix(in srgb, var(--accent) 52%, var(--chrome-text)); }
.sidebar-status-icon { color: color-mix(in srgb, var(--chrome-text) 72%, transparent); }
.sidebar-status small { color: color-mix(in srgb, var(--chrome-text) 45%, transparent); }
.sidebar-status strong { color: color-mix(in srgb, var(--chrome-text) 86%, transparent); }
.mobile-nav-panel { color: var(--chrome-text); }
.mobile-logout .button { color: var(--chrome-text); }
.brand-preview-sidebar { color: var(--chrome-text); }
.brand-preview-identity strong { color: var(--chrome-text); }
.brand-preview-identity small { color: color-mix(in srgb, var(--chrome-text) 58%, transparent); }
.brand-preview-sidebar > span { color: color-mix(in srgb, var(--chrome-text) 66%, transparent); }
.brand-preview-sidebar > span.active { color: var(--chrome-text); }
.contrast-status { margin: 10px 0 0; font-size: calc(9px * var(--type-scale)); font-weight: 750; }
.contrast-status.is-good { color: #087a55; }
.contrast-status.is-warning { color: #b54708; }
@media (min-width: 981px) {
  .brand-colour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.app-sidebar { box-shadow: inset -1px 0 color-mix(in srgb, var(--chrome-text) 8%, transparent); }
.sidebar-brand,
.sidebar-status,
.mobile-nav-heading,
.mobile-logout { border-color: color-mix(in srgb, var(--chrome-text) 10%, transparent); }
.sidebar-nav { scrollbar-color: color-mix(in srgb, var(--chrome-text) 24%, transparent) transparent; }
.nav-item:hover { background: color-mix(in srgb, var(--chrome-text) 8%, transparent); }
.nav-item.active {
  background: color-mix(in srgb, var(--accent) 19%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}
.sidebar-status-icon { background: color-mix(in srgb, var(--chrome-text) 8%, transparent); }
.mobile-logout .button {
  border-color: color-mix(in srgb, var(--chrome-text) 14%, transparent);
  background: color-mix(in srgb, var(--chrome-text) 7%, transparent);
}

/* v4.13 print governance */
.governance-page{max-width:1500px}.governance-header{align-items:flex-end}.governance-summary{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;margin:0 0 18px}.governance-summary article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid var(--line,#dde3eb);border-radius:14px;background:var(--surface,#fff);box-shadow:0 8px 24px rgba(15,23,42,.04)}.governance-summary article strong{font-size:26px}.governance-layout{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:18px;align-items:start}.governance-list-panel{position:sticky;top:90px;max-height:calc(100vh - 120px);overflow:auto}.governance-template-list{display:grid;gap:8px;padding:4px 14px 16px}.governance-template-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:13px;border:1px solid var(--line,#dde3eb);border-radius:12px;background:#fff;color:inherit;text-decoration:none}.governance-template-item:hover,.governance-template-item.active{border-color:var(--accent,#d5253f);box-shadow:0 0 0 3px var(--accent-soft,#feecef)}.governance-template-item span:first-child{display:grid;gap:3px}.governance-template-item small{color:#64748b}.governance-template-item em{grid-column:1/-1;color:#047857;font-size:11px;font-style:normal;font-weight:800}.governance-detail{display:grid;gap:18px}.governance-title-row{align-items:flex-start}.governance-large-status{font-size:12px;padding:8px 11px}.governance-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0 18px 18px;border:1px solid var(--line,#dde3eb);border-radius:12px;overflow:hidden;background:var(--line,#dde3eb)}.governance-facts>div{display:grid;gap:5px;padding:13px;background:#fff}.governance-facts span{font-size:11px;color:#64748b}.governance-facts strong{font-size:14px}.preflight-card{margin:0 18px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid #dbe5ef;border-radius:12px;background:#f8fafc}.preflight-card>div{display:grid;gap:3px}.preflight-card span{font-size:12px;color:#64748b}.preflight-pass{border-color:#a7f3d0;background:#ecfdf5}.preflight-warning{border-color:#fde68a;background:#fffbeb}.preflight-fail{border-color:#fecaca;background:#fff1f2}.preflight-details{margin:0 18px 18px;border:1px solid var(--line,#dde3eb);border-radius:12px}.preflight-details summary{cursor:pointer;padding:12px 14px;font-weight:800}.preflight-issue-list{display:grid;gap:8px;padding:0 14px 14px}.preflight-issue{display:flex;gap:9px;padding:10px;border-radius:9px}.preflight-issue span{display:grid;gap:2px}.preflight-issue small{color:#64748b}.preflight-issue.error{background:#fff1f2;color:#9f1239}.preflight-issue.warning{background:#fffbeb;color:#854d0e}.governance-action-form{padding:0 18px 18px}.governance-action-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.version-list{display:grid}.version-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 18px;border-top:1px solid var(--line,#e5eaf0)}.version-row.published-version{background:#ecfdf5}.version-marker{display:grid;place-items:center;min-height:40px;border-radius:10px;background:#eef2f7;font-weight:900}.version-copy{display:grid;gap:3px}.version-copy span{font-size:12px;color:#64748b}.version-copy em{font-size:11px;color:#047857;font-style:normal;font-weight:800}.version-current{font-size:11px;color:#64748b;font-weight:800}.workflow-timeline{padding:0 18px 18px}.workflow-event{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;padding:12px 0;border-top:1px solid var(--line,#e5eaf0)}.workflow-dot{width:10px;height:10px;margin-top:5px;border-radius:50%;background:var(--accent,#d5253f)}.workflow-event p{margin:3px 0 0;color:#64748b;font-size:12px}.workflow-event blockquote{margin:8px 0 0;padding:8px 10px;border-left:3px solid #cbd5e1;background:#f8fafc;color:#475569}.workflow-transition{font-size:11px;color:#64748b;text-align:right}.status-draft{background:#f1f5f9;color:#475569}.status-in_review{background:#eff6ff;color:#1d4ed8}.status-approved{background:#f5f3ff;color:#6d28d9}.status-published{background:#ecfdf5;color:#047857}.status-archived{background:#fff1f2;color:#be123c}@media(max-width:1050px){.governance-summary{grid-template-columns:repeat(2,1fr)}.governance-layout{grid-template-columns:1fr}.governance-list-panel{position:static;max-height:none}.governance-facts{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.governance-summary{grid-template-columns:1fr}.governance-facts{grid-template-columns:1fr}.version-row{grid-template-columns:48px minmax(0,1fr)}.version-row form,.version-current{grid-column:2}.workflow-event{grid-template-columns:18px minmax(0,1fr)}.workflow-transition{grid-column:2;text-align:left}}

/* v4.14 public launch, data controls and readiness */
.public-body{margin:0;background:#f7f7f5;color:#16181c;font-family:"Geist","Segoe UI",system-ui,sans-serif;min-height:100vh}.public-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:28px;justify-content:space-between;padding:16px clamp(22px,5vw,72px);background:rgba(255,255,255,.94);border-bottom:1px solid #dde1e7;backdrop-filter:blur(14px)}.public-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.public-brand>span:last-child{display:flex;flex-direction:column}.public-brand small{color:#6b7280;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}.public-header nav,.public-actions{display:flex;align-items:center;gap:18px}.public-header nav a,.public-footer a{color:#48505e;text-decoration:none;font-weight:650}.public-header nav a:hover,.public-footer a:hover{color:#111827}.public-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);align-items:center;gap:clamp(36px,7vw,100px);padding:clamp(70px,10vw,140px) clamp(24px,7vw,110px);background:radial-gradient(circle at 82% 15%,rgba(213,37,63,.11),transparent 32%),linear-gradient(180deg,#fff,#f5f4f1)}.public-hero h1,.public-page-head h1{font-size:clamp(3rem,6vw,6.2rem);line-height:.94;letter-spacing:-.065em;max-width:950px;margin:.25em 0}.public-lead{font-size:clamp(1.05rem,1.6vw,1.4rem);line-height:1.65;color:#525b69;max-width:720px}.public-hero-actions,.public-proof{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.public-proof{gap:24px;color:#4b5563;font-weight:650}.public-proof span{display:flex;align-items:center;gap:8px}.public-product-card{background:#fff;border:1px solid #d6dce5;border-radius:28px;padding:24px;box-shadow:0 28px 80px rgba(21,27,38,.12);transform:rotate(1deg)}.public-product-top{display:flex;justify-content:space-between;gap:18px;align-items:center}.public-flow{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;padding:22px 0;color:#687184;font-size:.82rem;font-weight:750}.public-flow span{padding:8px 10px;background:#f4f6f8;border-radius:10px}.public-tag-demo{position:relative;min-height:300px;border:8px solid #d5253f;border-radius:18px;padding:40px;background:linear-gradient(135deg,#fff 0 68%,#f6e4e8 68%);display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}.public-tag-demo:before{content:"";position:absolute;inset:18px;border:1px solid rgba(213,37,63,.25);border-radius:10px}.public-tag-demo strong{font-size:clamp(3rem,6vw,5.8rem);line-height:.9;letter-spacing:-.06em;color:#d5253f;z-index:1}.public-tag-demo p,.public-tag-demo small,.public-tag-badge{z-index:1}.public-tag-badge{position:absolute;top:32px;left:32px;background:#d5253f;color:#fff;padding:8px 12px;border-radius:999px;font-weight:800;font-size:.78rem}.public-section{padding:clamp(70px,9vw,120px) clamp(24px,7vw,110px)}.public-section-heading{max-width:850px;margin-bottom:42px}.public-section-heading h2,.public-cta h2{font-size:clamp(2.2rem,4vw,4rem);line-height:1;letter-spacing:-.045em;margin:.25em 0}.public-section-heading>p:last-child,.public-cta p{font-size:1.1rem;line-height:1.65;color:#5b6472}.public-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.public-feature-grid article{background:#fff;border:1px solid #dce1e7;border-radius:20px;padding:28px;box-shadow:0 8px 30px rgba(24,30,40,.04)}.public-feature-grid article>i{font-size:1.8rem;color:#d5253f}.public-feature-grid h3{font-size:1.2rem;margin:18px 0 8px}.public-feature-grid p{color:#606978;line-height:1.6}.public-cta{display:flex;align-items:center;justify-content:space-between;gap:40px;background:#141b2a;color:#fff}.public-cta>div{max-width:800px}.public-cta p{color:#c7cfdb}.public-page-head{text-align:center;padding:90px 24px 44px;background:#fff}.public-page-head h1{max-width:900px;margin:.25em auto;font-size:clamp(2.7rem,5vw,5rem)}.public-page-head p{max-width:760px;margin:auto;color:#5f6775;line-height:1.65}.public-pricing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:30px clamp(24px,5vw,80px) 80px}.public-price-card{background:#fff;border:1px solid #d8dee6;border-radius:22px;padding:28px;display:flex;flex-direction:column;min-height:440px}.public-price-card.featured{border:2px solid #d5253f;box-shadow:0 18px 50px rgba(213,37,63,.12)}.public-price-card h2{font-size:1.5rem}.public-price{display:flex;align-items:baseline;gap:8px;margin:16px 0}.public-price strong{font-size:2.3rem;letter-spacing:-.04em}.public-price-card p{color:#667080}.public-price-card ul{padding-left:20px;line-height:1.8;flex:1}.public-legal-note{max-width:920px;margin:0 auto 90px;padding:24px;border:1px solid #e2c98e;background:#fff8df;border-radius:18px}.public-legal-page{max-width:900px;margin:0 auto;padding:80px 24px 120px}.public-legal-page h1{font-size:clamp(2.8rem,5vw,5rem);letter-spacing:-.05em;margin:.2em 0}.public-legal-page h2{font-size:1.35rem;margin-top:38px}.public-legal-page p{font-size:1.02rem;line-height:1.75;color:#4f5968}.legal-version{font-family:ui-monospace,monospace}.legal-warning{border:1px solid #e0b94c;background:#fff8db;border-radius:16px;padding:20px;margin:30px 0}.legal-warning p{margin-bottom:0}.public-footer{display:grid;grid-template-columns:1fr auto;gap:18px 40px;padding:38px clamp(24px,7vw,110px);background:#fff;border-top:1px solid #dde1e7}.public-footer p{margin:6px 0;color:#667080}.public-footer nav{display:flex;gap:18px}.public-footer small{grid-column:1/-1;color:#7b8492}.choice-row{display:flex;align-items:flex-start;gap:12px;border:1px solid #d9dee5;border-radius:14px;padding:14px;background:#fff}.choice-row input{margin-top:4px}.choice-row span{display:flex;flex-direction:column;gap:3px}.choice-row small{color:#6a7381}.legal-consent{font-size:.88rem;padding:12px}.legal-consent span{display:block}.data-control-hero .panel-heading>i,.danger-zone .panel-heading>i{font-size:2.3rem;color:var(--accent)}.data-settings-grid{align-items:start}.settings-summary-list{display:grid;gap:0}.inline-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:16px}.stack-form{display:grid;gap:16px}.callout{display:flex;align-items:flex-start;gap:12px;padding:15px;border-radius:14px}.callout i{font-size:1.3rem;margin-top:1px}.callout p{margin:3px 0 0}.callout-info{background:#eef5ff;border:1px solid #c9dcfa}.callout-warning{background:#fff7df;border:1px solid #ead69a}.button-danger{background:#b42318;color:#fff;border-color:#b42318}.button-danger:hover{background:#8f1d15}.danger-zone{border-color:#ecc0bb}.danger-zone .panel-heading{background:#fff8f7}.deletion-active-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border:1px solid #e2b4ae;background:#fff7f6;border-radius:15px}.deletion-active-card p{margin:5px 0 0}.launch-score-card{display:flex;align-items:center;gap:28px;padding:28px}.launch-score{width:150px;height:150px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:conic-gradient(var(--accent) calc(var(--launch-progress,1)*1%),#e8ebef 0);position:relative;text-align:center;border:10px solid #f3f4f6}.launch-score strong{font-size:2.1rem}.launch-score span{font-size:.75rem;color:#687182;max-width:105px}.launch-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.launch-group .readiness-list{padding:0 24px 22px}.setup-sequence{display:grid;gap:0;counter-reset:steps;padding:0;margin:0}.setup-sequence li{display:grid;grid-template-columns:minmax(210px,.35fr) 1fr;gap:24px;padding:17px 0;border-bottom:1px solid #e3e7ec;counter-increment:steps;list-style:none}.setup-sequence li strong:before{content:counter(steps) ". ";color:var(--accent)}.setup-sequence li span{color:#646e7c}.next-setup-panel .callout{margin-top:24px}.legal-review-panel{margin-top:20px}.platform-deletion-queue{margin-bottom:20px}
@media (max-width:1050px){.public-hero{grid-template-columns:1fr}.public-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.launch-groups{grid-template-columns:1fr}}@media (max-width:720px){.public-header nav{display:none}.public-actions .button-secondary{display:none}.public-hero{padding-top:55px}.public-feature-grid,.public-pricing-grid{grid-template-columns:1fr}.public-cta,.launch-score-card,.deletion-active-card{align-items:flex-start;flex-direction:column}.public-footer{grid-template-columns:1fr}.public-footer nav{flex-wrap:wrap}.setup-sequence li{grid-template-columns:1fr;gap:6px}.launch-score{width:120px;height:120px}.public-product-card{transform:none}.public-tag-demo{min-height:240px}}

/* v4.15 integrations and developer platform */
.integration-page { display: grid; gap: 1.25rem; }
.integration-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.6rem; background: linear-gradient(135deg, var(--panel, #fff), var(--accent-soft)); }
.integration-hero h2 { margin: .2rem 0 .45rem; }
.integration-hero p { max-width: 75ch; }
.integration-hero-mark { width: 4.5rem; height: 4.5rem; border-radius: var(--radius-lg, 18px); display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); font-size: 2rem; flex: 0 0 auto; }
.secret-reveal { border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.secret-copy-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: 0 1.25rem 1rem; }
.secret-copy-row code { display: block; overflow-x: auto; padding: .9rem 1rem; border-radius: .75rem; background: var(--surface-muted, #f4f4f5); border: 1px solid var(--border); font-size: .88rem; }
.secret-reveal > .muted { padding: 0 1.25rem 1.25rem; margin: 0; }
.integration-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .85rem; }
.integration-metrics .metric-card { min-width: 0; }
.integration-section { overflow: hidden; }
.feature-pill { display: inline-flex; align-items: center; padding: .35rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.feature-pill.enabled { background: #e7f7ed; color: #17643a; }
.feature-pill.disabled { background: #fff3dd; color: #7c4b00; }
.integration-split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: 1.4rem; padding: 0 1.25rem 1.3rem; }
.integration-create-form { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); background: var(--surface-subtle, #fafafa); }
.scope-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.scope-fieldset legend { font-weight: 750; margin-bottom: .6rem; }
.scope-fieldset .choice-row { margin-bottom: .45rem; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .45rem; }
.event-grid > label { display: flex; gap: .55rem; align-items: flex-start; padding: .6rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--panel, #fff); }
.event-grid span { min-width: 0; display: grid; gap: .15rem; }
.event-grid code { font-size: .74rem; overflow-wrap: anywhere; }
.event-grid small { color: var(--muted); }
.developer-quickstart { padding: 1rem; border-radius: var(--radius-lg, 16px); background: color-mix(in srgb, var(--chrome) 94%, white); color: var(--chrome-text); align-self: start; }
.developer-quickstart h3 { margin: 0 0 .5rem; }
.developer-quickstart p { color: color-mix(in srgb, var(--chrome-text) 78%, transparent); }
.developer-quickstart pre { overflow-x: auto; padding: .85rem; border-radius: .7rem; background: rgba(0,0,0,.28); }
.developer-quickstart pre code { color: inherit; }
.endpoint-list { display: grid; gap: .45rem; }
.endpoint-list > div { display: grid; gap: .1rem; padding: .55rem .65rem; border: 1px solid rgba(255,255,255,.14); border-radius: .6rem; }
.endpoint-list span { font-size: .78rem; opacity: .78; }
.signature-headers { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }
.signature-headers code { padding: .35rem .5rem; border-radius: .45rem; background: rgba(0,0,0,.25); }
.developer-quickstart .callout { margin-top: 1rem; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: inherit; }
.chip-list { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip-list span { display: inline-flex; max-width: 100%; padding: .2rem .42rem; border-radius: 999px; background: var(--surface-muted, #f1f1f2); color: var(--text); font-size: .7rem; overflow-wrap: anywhere; }
.table-subline { display: block; color: var(--muted); margin-top: .2rem; max-width: 32rem; overflow-wrap: anywhere; }
.webhook-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; padding: 0 1.25rem 1.25rem; }
.webhook-card { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); background: var(--panel, #fff); display: grid; gap: .8rem; }
.webhook-card-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.webhook-card-head > div { min-width: 0; display: grid; gap: .25rem; }
.webhook-card-head code { overflow-wrap: anywhere; color: var(--muted); }
.webhook-card dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem; margin: 0; }
.webhook-card dl div { padding: .55rem; background: var(--surface-muted, #f6f6f7); border-radius: .6rem; }
.webhook-card dt { font-size: .7rem; color: var(--muted); }
.webhook-card dd { margin: .15rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.inline-warning, .error-text { color: #a33a12; }
.subsection-title { margin: .25rem 1.25rem .75rem; }
.button-row.wrap { flex-wrap: wrap; }
.plain-check-list { display: grid; gap: .6rem; padding-left: 1.1rem; color: color-mix(in srgb, var(--chrome-text) 82%, transparent); }
.detail-code { white-space: normal; overflow-wrap: anywhere; font-size: .72rem; }
.empty-state.compact { grid-column: 1/-1; min-height: 10rem; }
@media (max-width: 1050px) {
  .integration-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .integration-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .integration-hero { align-items: flex-start; }
  .integration-hero-mark { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
  .integration-metrics, .webhook-card-grid, .event-grid { grid-template-columns: 1fr; }
  .secret-copy-row { grid-template-columns: 1fr; }
  .webhook-card dl { grid-template-columns: 1fr; }
}

/* v4.15 developer API guide */
.endpoint-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.endpoint-doc-grid article {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--surface-subtle);
}
.endpoint-doc-grid article > code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-bottom: .65rem;
}
.endpoint-doc-grid h3 { margin: 0 0 .4rem; }
.endpoint-doc-grid p { margin: 0 0 .65rem; }
.developer-docs-page pre { overflow-x: auto; }

/* v4.16 production security and operations */
.security-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border,#dededb);border-top:1px solid var(--border,#dededb)}
.security-summary-grid>div{background:var(--surface,#fff);padding:1rem 1.15rem;display:grid;gap:.25rem}.security-summary-grid span{font-size:.78rem;color:var(--muted,#687078)}.security-summary-grid strong{font-size:1.15rem}
.session-device-list{display:grid;gap:.7rem}.session-device-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.85rem;align-items:center;padding:.9rem;border:1px solid var(--border,#dededb);border-radius:var(--radius-md,12px)}.session-device-card.current{border-color:var(--accent,#d5253f);box-shadow:inset 3px 0 0 var(--accent,#d5253f)}
.session-device-icon{width:40px;height:40px;border-radius:10px;background:var(--surface-soft,#f3f3f0);display:grid;place-items:center;font-size:1.2rem}.session-device-copy{display:grid;gap:.2rem;min-width:0}.session-device-copy span,.session-device-copy small{color:var(--muted,#687078);font-size:.78rem}.session-device-title{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.security-event-list{max-height:420px;overflow:auto}
.maintenance-controls{display:grid;gap:1rem}.maintenance-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.maintenance-option{border:1px solid var(--border,#dededb);border-radius:12px;padding:.85rem;display:grid;gap:.3rem;cursor:pointer}.maintenance-option:has(input:checked){border-color:var(--accent,#d5253f);box-shadow:inset 0 0 0 1px var(--accent,#d5253f)}.maintenance-option input{width:auto}.operations-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.operations-health-card{border:1px solid var(--border,#dededb);border-radius:12px;padding:.9rem;display:grid;gap:.25rem}.operations-health-card span{font-size:.75rem;color:var(--muted,#687078)}.operations-health-card strong{font-size:1.1rem}.operations-health-card.problem{border-color:#d97706;background:#fff8eb}
@media(max-width:900px){.security-summary-grid,.operations-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.maintenance-option-grid{grid-template-columns:1fr}.session-device-card{grid-template-columns:auto 1fr}.session-device-card form{grid-column:2}}

/* v4.17 infrastructure staging and deployment */
.infrastructure-hero .panel-heading{align-items:center}.infrastructure-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.infrastructure-actions form{margin:0}.infrastructure-actions .helper{flex:1;min-width:280px}.infrastructure-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.infrastructure-config-card{display:grid;grid-template-columns:42px 1fr 28px;gap:13px;align-items:start;padding:18px}.infrastructure-config-card .infrastructure-config-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#f1f4f7;font-size:1.3rem}.infrastructure-config-card span{font-size:.75rem;color:var(--muted)}.infrastructure-config-card strong{display:block;margin:3px 0}.infrastructure-config-card p{margin:0;color:var(--muted);font-size:.78rem;line-height:1.45}.infrastructure-config-card.configured .readiness-mark{background:#d1fae5;color:#087a55}.infrastructure-config-card.pending .readiness-mark{background:#fff1f2;color:#b42318}.probe-result-list{display:grid}.probe-result{display:grid;grid-template-columns:32px 1fr auto;gap:12px;align-items:start;padding:15px 20px;border-top:1px solid var(--border)}.probe-result:first-child{border-top:0}.probe-result-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-weight:900}.probe-result p{margin:4px 0 0;color:var(--muted);font-size:.82rem}.probe-result>span:last-child{font-size:.75rem;color:var(--muted);white-space:nowrap}.probe-pass .probe-result-icon,.probe-status.probe-pass{background:#d1fae5;color:#087a55}.probe-warning .probe-result-icon,.probe-status.probe-warning{background:#fff4cf;color:#8a5b00}.probe-fail .probe-result-icon,.probe-status.probe-fail{background:#ffe4e1;color:#b42318}.probe-skipped .probe-result-icon,.probe-status.probe-skipped{background:#edf0f4;color:#667080}.probe-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:.72rem;font-weight:800}.probe-history-row{text-decoration:none;color:inherit}.probe-history-row:hover{background:var(--surface-muted)}.infrastructure-history-grid{align-items:start}.staging-toolkit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.staging-toolkit-grid>div{display:flex;flex-direction:column;gap:8px;border:1px solid var(--border);border-radius:14px;padding:15px}.staging-toolkit-grid code{overflow-wrap:anywhere}.infrastructure-page .empty-state>i{font-size:2rem}
@media(max-width:1100px){.infrastructure-config-grid,.staging-toolkit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.infrastructure-config-grid,.staging-toolkit-grid{grid-template-columns:1fr}.probe-result{grid-template-columns:32px 1fr}.probe-result>span:last-child{grid-column:2}.infrastructure-actions{align-items:stretch}.infrastructure-actions form,.infrastructure-actions button{width:100%}}
.operations-health-card[href]{text-decoration:none;color:inherit}.operations-health-card[href]:hover{border-color:var(--accent)}


/* v4.17.2 PostgreSQL team-page and narrow-desktop layout hotfix */
.app-layout,
.app-stage {
  min-width: 0;
}
.app-layout {
  overflow-x: clip;
}
body:not([data-sidebar="compact"]) .app-sidebar,
body:not([data-sidebar="compact"]) .sidebar-nav {
  overflow-x: hidden;
}
.sidebar-brand,
.sidebar-brand .saas-brand,
.brand-copy,
.sidebar-nav,
.nav-group,
.nav-item {
  min-width: 0;
  max-width: 100%;
}
.sidebar-brand .saas-brand,
.nav-item {
  width: 100%;
}
.brand-copy strong,
.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-context {
  overflow: hidden;
}
.workspace-context .context-switcher {
  flex: 0 1 290px;
  max-width: min(290px, 42vw);
}
.context-switcher select {
  max-width: 100%;
  text-overflow: ellipsis;
}
@media (max-width: 1100px) {
  .workspace-context .context-switcher {
    max-width: min(320px, 38vw);
  }
}
@media (max-width: 640px) {
  .workspace-context .context-switcher {
    max-width: 100%;
  }
}
