/* CWBT ILOMS: shared tokens, layout and components. No external font/CDN dependency. */
:root {
  color-scheme: light;
  --workspace: #f8f9fa; --surface: #ffffff; --surface-muted: #f1f5f9;
  --primary: #2563eb; --primary-hover: #1d4ed8; --primary-soft: #eff6ff;
  --text: #0f172a; --muted: #6b7280; --border: #e5e7eb; --input: #ffffff;
  --success: #15803d; --success-soft: #f0fdf4; --danger: #b91c1c; --danger-soft: #fef2f2;
  --warning: #92400e; --warning-soft: #fffbeb; --shadow: 0 4px 24px rgb(15 23 42 / .035);
  --radius: 14px; --sidebar-width: 252px; --focus: #2563eb; --backdrop: rgb(15 23 42 / .38);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --workspace: #0f172a; --surface: #1e293b; --surface-muted: #172337;
  --primary: #2563eb; --primary-hover: #1d4ed8; --primary-soft: #152b4c;
  --text: #f8fafc; --muted: #94a3b8; --border: #334155; --input: #0f172a;
  --success: #86efac; --success-soft: #173b32; --danger: #fca5a5; --danger-soft: #42242d;
  --warning: #fcd34d; --warning-soft: #3d3423; --shadow: none; --focus: #93c5fd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--workspace); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img, svg { vertical-align: middle; }
img { max-width: 100%; }
svg.icon { width: 20px; height: 20px; flex: 0 0 auto; }
svg.icon-sm { width: 16px; height: 16px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.035em; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 14px; }
p + p { margin-top: 12px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
strong { font-weight: 650; }
small, .text-sm { font-size: 13px; }
.text-lg { font-size: 17px; }
.muted, .text-muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -100px; background: var(--surface); border: 2px solid var(--primary); padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow, .overline { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stack { display: grid; gap: 24px; }
.stack-sm { display: grid; gap: 12px; }
.section-gap { margin-top: 24px; }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:20px; }
.main-content > section + section, .main-content > section + .grid, .main-content > .grid + section { margin-top:24px; }
.card > h2 { margin-bottom:16px; }
.card > h3 { margin-bottom:10px; }
.card > h2 + p { margin-bottom:16px; }
.history-item { padding:18px 0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; }
.history-item:last-child { border-bottom:0; }
.history-item h3 + p { margin-top:8px; }
.stat-card { color:var(--text); }
.stat-card h2 { font-size:32px; margin-bottom:8px; }
.stat-card:hover { text-decoration:none; border-color:var(--primary); }
.profile-photo { width:96px; height:96px; border-radius:50%; object-fit:cover; margin-bottom:20px; }
.help-text { font-size:12px; color:var(--muted); margin-top:6px; }
fieldset { border:0; margin:0; padding:0; }
legend { font-weight:600; margin-bottom:12px; }
.selectable-card { display:flex; align-items:center; gap:12px; padding:20px; border:1px solid var(--border); border-radius:10px; cursor:pointer; }
.selectable-card:has(input:checked) { background:var(--primary-soft); border-color:var(--primary); }
.selectable-card small { display:block; color:var(--muted); }
:root[data-theme="dark"] a:not(.btn-primary):not(.brand):not(.nav-link), :root[data-theme="dark"] .alert-info, :root[data-theme="dark"] .badge-info { color:#93c5fd; }
:root[data-theme="dark"] .hero-badge, :root[data-theme="dark"] .icon-tile { color:#93c5fd; }
.grid, .form-grid { display: grid; gap: 24px; }
.grid-2, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2, .full-width { grid-column: 1 / -1; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-muted); border-color: var(--muted); }
.btn-danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
.btn-danger:hover { filter: brightness(.97); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-muted); }
.btn-sm { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.btn-lg { min-height: 48px; padding: 12px 22px; }
.btn-block { width: 100%; }
.icon-button { display: inline-flex; width: 38px; height: 38px; justify-content: center; align-items: center; padding: 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); }
.icon-button:hover { color: var(--text); background: var(--surface-muted); }
.is-loading { cursor: wait; opacity: .7; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; color: #fff; background: var(--primary); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { display: block; line-height: 1.2; font-size: 20px; letter-spacing: -.05em; font-weight: 800; }
.brand-caption { display: block; font-size: 9px; font-weight: 650; color: var(--muted); letter-spacing: .12em; margin-top: 4px; text-transform: uppercase; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--border); font-size: 12px; font-weight: 700; flex: 0 0 auto; object-fit: cover; }
.avatar-lg { width: 80px; height: 80px; font-size: 24px; }
.card { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-pad, .card-body { padding: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.card-header p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.card-footer { padding: 15px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.card > form { padding: 0; margin-top: 20px; }
.card > .card-body > form, .card-pad > form { padding: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head p:not(.eyebrow) { margin-top: 9px; color: var(--muted); max-width: 740px; }
.page-head > h1, .page-head > .eyebrow, .page-head > p { width: 100%; }
.page-head > .eyebrow { margin-bottom: -10px; }
.page-head > p { margin-top: -12px !important; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.alert { padding: 15px 18px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 10px; display: flex; gap: 12px; align-items: flex-start; }
.alert > .icon { margin-top: 1px; }
.alert a { color: inherit; text-decoration: underline; }
.alert-info { color: var(--primary); background: var(--primary-soft); border-color: #93c5fd; }
.alert-success { color: var(--success); background: var(--success-soft); border-color: #86b799; }
.alert-error, .alert-danger { color: var(--danger); background: var(--danger-soft); border-color: #e7a7a7; }
.alert-warning { color: var(--warning); background: var(--warning-soft); border-color: #dac481; }
.alert ul { margin: 4px 0 0; padding-left: 20px; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; font-size: 11px; font-weight: 650; line-height: 1.5; padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: var(--surface-muted); white-space: nowrap; }
.badge-blue, .badge-info { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.badge-green, .badge-success { color: var(--success); background: var(--success-soft); border-color: transparent; }
.badge-warning { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.badge-danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; }
.icon-tile-green { color: var(--success); background: var(--success-soft); }
.empty-state { padding: 42px 24px; text-align: center; }
.empty-state .icon-tile { margin-bottom: 18px; width: 52px; height: 52px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 460px; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 13px; }
.empty-state .btn { margin-top: 20px; }
.field { min-width: 0; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { display: block; width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--input); color: var(--text); font-size: 13px; line-height: 1.6; transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: #aab3c0; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input[readonly], textarea[readonly] { background: var(--surface-muted) !important; color: var(--muted) !important; }
textarea { resize: vertical; min-height: 105px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 17px; height: 17px; vertical-align: middle; }
input[type="file"] { font-size: 12px; padding: 8px !important; }
input[type="file"]::file-selector-button { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); padding: 5px 9px; margin-right: 10px; cursor: pointer; }
.field-help, .help, .hint { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: 12px; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.required { color: var(--danger); }
.form-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.form-actions > p { flex: 1; font-size: 12px; color: var(--muted); }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.form-section h3 { margin-bottom: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; }
.checkbox-row input { flex: 0 0 auto; margin: 3px 0 0; }
.upload-zone { padding: 22px; border: 2px dashed var(--border); border-radius: 10px; text-align: center; }
.upload-zone .icon { width: 28px; height: 28px; color: var(--muted); margin-bottom: 10px; }
.upload-zone input { margin-top: 14px; }
.upload-zone p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.table-wrap { width: 100%; overflow-x: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 13px 20px; background: var(--workspace); color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 650; white-space: nowrap; }
td { padding: 16px 20px; border-top: 1px solid var(--border); vertical-align: top; }
td .btn { white-space: nowrap; }
tbody tr:hover { background: var(--workspace); }
td strong { display: block; color: var(--text); }
td .muted { display: block; margin-top: 3px; }
caption { text-align: left; padding: 16px 20px; color: var(--muted); }
.filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters .field { flex: 1; min-width: 180px; }
.filters label { font-size: 11px; }
.list { list-style: none; padding: 0; margin: 0; }
.list-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 24px; }
.list-item + .list-item { border-top: 1px solid var(--border); }
.list-item > :not(.icon-tile):not(.avatar) { min-width: 0; }
.list-item p { font-size: 12px; margin-top: 5px; color: var(--muted); }
.list-item .grow, .grow { flex: 1; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.detail-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.detail-grid dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 22px; }
.tabs a, .tabs button { display: inline-flex; padding: 8px 14px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface); font-weight: 600; font-size: 12px; }
.tabs [aria-current="page"], .tabs .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; margin-left: 9px; padding: 0 0 26px 26px; border-left: 1px solid var(--border); }
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline li::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); top: 6px; left: -5px; outline: 4px solid var(--surface); }
.timeline p { font-size: 12px; color: var(--muted); margin-top: 4px; }
progress { appearance: none; display: block; border: 0; height: 7px; width: 100%; border-radius: 10px; background: var(--surface-muted); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-muted); border-radius: 10px; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 10px; }
.progress { margin-top: 12px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: 24px -24px -24px; background: var(--surface); border-top: 1px solid var(--border); padding: 16px 24px; display: flex; justify-content: flex-end; gap: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--surface); border-right: 1px solid var(--border); z-index: 40; display: flex; flex-direction: column; padding: 28px 16px 16px; }
.sidebar-brand { padding: 0 13px 28px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding-bottom: 24px; }
.nav-heading { font-size: 9px; color: var(--muted); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 23px 14px 9px; }
.nav-heading:first-child { margin-top: 0; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid transparent; color: var(--muted); border-radius: 7px; font-weight: 500; font-size: 12px; margin: 3px 0; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover { background: var(--workspace); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.nav-link[aria-current="page"]::before { position: absolute; content: ""; width: 3px; border-radius: 0 3px 3px 0; inset: 9px auto 9px -17px; background: var(--primary); }
:root[data-theme="dark"] .nav-link[aria-current="page"] { background: var(--workspace); color: #93c5fd; }
.sidebar-bottom { border-top: 1px solid var(--border); padding-top: 15px; }
.sidebar-account { display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px; }
.sidebar-account > div { min-width: 0; flex: 1; }
.sidebar-account strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sidebar-account small { font-size: 10px; color: var(--muted); }
.theme-switch { width: 100%; justify-content: flex-start; gap: 10px; padding-left: 12px; font-size: 11px; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; }
.app-header { position: sticky; top: 0; height: 73px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; background: var(--surface); border-bottom: 1px solid var(--border); z-index: 20; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.breadcrumb .current { color: var(--text); font-weight: 550; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-divider { width: 1px; height: 24px; background: var(--border); }
.search-trigger { display: flex; gap: 9px; align-items: center; border: 1px solid var(--border); background: var(--workspace); color: var(--muted); border-radius: 7px; padding: 7px 10px; font-size: 11px; }
kbd { padding: 0 4px; border: 1px solid var(--border); border-radius: 3px; font: 9px var(--font); }
.mobile-menu, .drawer-close { display: none; }
.main-content { width: 100%; max-width: 1580px; padding: 34px 36px 48px; margin: 0 auto; }
.app-footer { color: var(--muted); font-size: 10px; margin: 36px 0 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.metric-card { padding: 22px; position: relative; }
.metric-card .metric-icon { position: absolute; right: 20px; top: 20px; color: var(--muted); }
.metric-label { color: var(--muted); font-size: 12px; padding-right: 26px; }
.metric-value { font-size: 30px; font-weight: 750; letter-spacing: -.05em; line-height: 1.3; margin-top: 12px; }
.metric-description { font-size: 10px; color: var(--muted); margin-top: 8px; }
.metric-card a { display: block; color: inherit; text-decoration: none; }
.metric-card:has(a):hover { border-color: var(--primary); }
.dashboard-columns { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.welcome-panel { background: var(--primary-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.welcome-panel h2 { font-size: 20px; }
.welcome-panel p { color: var(--muted); font-size: 12px; margin-top: 7px; max-width: 640px; }
.date-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; min-height: 50px; border: 1px solid var(--border); border-radius: 9px; background: var(--workspace); }
.date-tile b { font-size: 19px; line-height: 1.3; }
.date-tile span { font-size: 8px; color: var(--muted); text-transform: uppercase; }
.profile-columns { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.profile-cover { height: 64px; background: var(--primary-soft); border-bottom: 1px solid var(--border); }
.profile-summary { text-align: center; padding: 0 24px 24px; }
.profile-summary .avatar { margin-top: -33px; border: 4px solid var(--surface); }
.profile-summary h2 { margin-top: 12px; font-size: 19px; }
.profile-summary p { margin: 6px 0 12px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.settings-layout { max-width: 950px; }
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.theme-option { cursor: pointer; display: block; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0; }
.theme-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.theme-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.theme-option-caption { display: flex; justify-content: space-between; padding: 13px 15px; font-size: 12px; }
.theme-preview { height: 105px; display: grid; grid-template-columns: 24% 1fr; gap: 1px; padding: 12px 12px 0; background: #f8f9fa; border-bottom: 1px solid var(--border); }
.theme-preview > span { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 5px 5px 0 0; padding: 10px 8px; }
.theme-preview i { height: 6px; border-radius: 3px; background: #e5e7eb; display: block; margin-bottom: 8px; }
.theme-preview i:first-child { background: #2563eb; width: 70%; }
.theme-preview-dark { background: #0f172a; }
.theme-preview-dark > span { background: #1e293b; border-color: #334155; }
.theme-preview-dark i { background: #334155; }
.public-header { position: fixed; z-index: 30; top: 0; inset-inline: 0; height: 78px; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.public-header.is-scrolled { background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); border-color: var(--border); backdrop-filter: blur(12px); }
.public-nav { max-width: 1160px; height: 100%; padding: 0 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-nav-links { display: flex; align-items: center; gap: 30px; }
.public-nav-links a { color: var(--muted); font-size: 12px; font-weight: 550; }
.public-nav-links a:hover { color: var(--primary); text-decoration: none; }
.public-nav-actions { display: flex; align-items: center; gap: 10px; }
.landing-main { overflow: hidden; }
.hero { position: relative; padding: 144px 28px 0; text-align: center; }
.hero::before { content: ""; position: absolute; width: 700px; height: 440px; top: 20px; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, var(--primary-soft), transparent 65%); z-index: -1; pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--primary); background: var(--surface); border: 1px solid var(--border); padding: 6px 11px; border-radius: 30px; font-weight: 600; }
.hero-badge .badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -.065em; line-height: 1.1; font-weight: 780; margin: 23px auto 20px; max-width: 880px; }
.hero h1 span { color: var(--primary); }
.hero-description { max-width: 590px; font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0 auto; }
.hero-actions { display: flex; justify-content: center; gap: 11px; margin-top: 28px; }
.hero-note { margin-top: 15px; color: var(--muted); font-size: 10px; }
.product-preview { color-scheme: light; --text: #0f172a; --muted: #6b7280; --border: #e5e7eb; --primary-soft: #eff6ff; --surface: #fff; --surface-muted: #f1f5f9; --workspace: #f8f9fa; --success: #15803d; --success-soft: #f0fdf4; text-align: left; max-width: 1010px; margin: 54px auto 0; border: 1px solid #dce2ea; border-radius: 13px; background: #fff; box-shadow: 0 24px 70px rgb(15 23 42 / .07); overflow: hidden; }
.preview-browser { display: flex; align-items: center; gap: 5px; height: 33px; padding: 0 14px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.preview-browser > i { height: 5px; width: 5px; border: 1px solid #cbd5e1; border-radius: 50%; }
.preview-browser > span { text-align: center; font-size: 8px; color: #94a3b8; margin: auto; padding-right: 20px; }
.preview-app { display: grid; grid-template-columns: 165px minmax(0, 1fr); min-height: 425px; color: #0f172a; }
.preview-sidebar { padding: 21px 13px; border-right: 1px solid #e5e7eb; background: #fff; }
.preview-sidebar .brand-mark { width: 25px; height: 25px; border-radius: 7px; }
.preview-sidebar .brand-mark .icon { width: 16px; height: 16px; }
.preview-sidebar .brand-name { font-size: 15px; }
.preview-sidebar .brand-caption { font-size: 6px; }
.preview-sidebar .nav-heading { font-size: 6px; margin: 25px 7px 9px; }
.preview-nav-item { display: flex; align-items: center; gap: 8px; border-radius: 5px; color: #64748b; padding: 9px; margin-top: 3px; font-size: 8px; }
.preview-nav-item .icon { width: 13px; height: 13px; }
.preview-nav-item.active { background: #eff6ff; color: #2563eb; }
.preview-main { min-width: 0; padding: 24px; background: #f8f9fa; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.preview-heading h2 { font-size: 17px; }
.preview-heading p { color: #6b7280; font-size: 8px; margin-top: 5px; }
.preview-heading .avatar { width: 27px; height: 27px; font-size: 8px; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 15px; }
.preview-metric { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 13px; }
.preview-metric p { font-size: 8px; color: #64748b; }
.preview-metric strong { display: block; font-size: 21px; letter-spacing: -.04em; margin-top: 6px; }
.preview-metric small { color: #64748b; font-size: 7px; }
.preview-columns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 13px; }
.preview-card { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 16px; }
.preview-card h3 { font-size: 10px; }
.preview-card .overline { font-size: 6px; margin-bottom: 7px; }
.preview-card .badge { font-size: 7px; padding: 2px 5px; }
.preview-card p { font-size: 8px; color: #64748b; margin-top: 7px; }
.preview-card progress { height: 5px; margin-top: 10px; }
.preview-path { margin-top: 17px; display: flex; align-items: center; gap: 5px; font-size: 7px; }
.preview-path .step { border: 1px solid #e5e7eb; border-radius: 5px; background: #f8f9fa; padding: 6px 8px; color: #64748b; }
.preview-path .step.active { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.preview-session { display: flex; gap: 9px; margin-top: 14px; align-items: center; }
.preview-session .icon-tile { width: 28px; height: 28px; border-radius: 7px; }
.preview-session .icon { width: 14px; height: 14px; }
.preview-session strong { font-size: 8px; display: block; }
.preview-session small { font-size: 7px; color: #64748b; }
.preview-caption { margin: 14px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.landing-section { max-width: 1130px; margin: 0 auto; padding: 90px 28px 0; }
.section-intro { text-align: center; max-width: 630px; margin: 0 auto 34px; }
.section-intro h2 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -.045em; }
.section-intro p:not(.eyebrow) { margin-top: 13px; color: var(--muted); font-size: 13px; }
.feature-card { padding: 27px; }
.feature-card h3 { font-size: 16px; margin: 18px 0 10px; }
.feature-card p { font-size: 12px; line-height: 1.85; color: var(--muted); }
.feature-card .overline { margin-top: 18px; font-size: 8px; }
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; padding-top: 8px; }
.journey-step { position: relative; padding: 20px 0; }
.journey-step::before { position: absolute; content: ""; top: 42px; left: 50px; right: -25px; height: 1px; background: var(--border); }
.journey-step:last-child::before { display: none; }
.journey-number { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 50%; color: var(--primary); font-size: 13px; font-weight: 650; }
.journey-step h3 { margin-top: 19px; font-size: 15px; }
.journey-step p { color: var(--muted); margin-top: 8px; font-size: 12px; }
.program-row { display: flex; align-items: center; gap: 20px; padding: 23px; }
.program-row + .program-row { border-top: 1px solid var(--border); }
.program-row p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.program-row > .icon:last-child { margin-left: auto; color: var(--muted); }
.landing-cta { max-width: 1074px; margin: 80px auto 0; padding: 50px 30px; background: var(--primary-soft); border: 1px solid var(--border); border-radius: 15px; text-align: center; }
.landing-cta h2 { font-size: 30px; }
.landing-cta p { margin: 12px auto 22px; color: var(--muted); max-width: 490px; font-size: 13px; }
.public-footer { max-width: 1130px; margin: 60px auto 0; padding: 30px 28px; display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid var(--border); }
.public-footer p { font-size: 10px; color: var(--muted); }
.public-footer .brand-name { font-size: 15px; }
.public-footer .brand-caption { font-size: 8px; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-story { display: flex; flex-direction: column; padding: 40px 56px; border-right: 1px solid var(--border); background: var(--primary-soft); }
.auth-story-content { margin: auto 0; padding: 70px 0; max-width: 430px; }
.auth-story h1 { font-size: clamp(35px, 4vw, 52px); letter-spacing: -.055em; line-height: 1.13; }
.auth-story h1 span { color: var(--primary); }
.auth-story-content > p { margin-top: 22px; font-size: 14px; color: var(--muted); line-height: 1.85; }
.auth-benefits { margin-top: 34px; display: grid; gap: 22px; }
.auth-benefit { display: flex; gap: 13px; align-items: center; }
.auth-benefit .icon-tile { background: var(--surface); }
.auth-benefit h3 { font-size: 12px; letter-spacing: 0; }
.auth-benefit p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.auth-story-footer { color: var(--muted); font-size: 10px; }
.auth-main { display: flex; flex-direction: column; padding: 40px; background: var(--surface); }
.auth-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; color: var(--muted); }
.auth-toolbar a { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.auth-panel { width: 100%; max-width: 390px; margin: auto; padding: 50px 0; }
.auth-panel h2 { font-size: 28px; letter-spacing: -.045em; }
.auth-panel > p { margin-top: 11px; color: var(--muted); font-size: 13px; }
.auth-panel .auth-google { margin-top: 28px; }
.google-button { width: 100%; height: 48px; gap: 14px; border-color: var(--border); background: var(--surface); color: var(--text); }
.google-button:hover { background: var(--workspace); border-color: var(--muted); }
.google-letter { font-size: 20px; color: var(--primary); font-weight: 750; line-height: 1; }
.auth-info { display: flex; gap: 10px; padding: 16px; background: var(--workspace); border: 1px solid var(--border); border-radius: 9px; margin-top: 21px; color: var(--muted); font-size: 11px; }
.auth-info .icon { width: 17px; height: 17px; margin-top: 2px; }
.auth-info strong { color: var(--text); display: block; margin-bottom: 4px; }
.auth-help { padding-top: 23px; margin-top: 28px; border-top: 1px solid var(--border); }
.auth-help summary { font-size: 12px; font-weight: 600; }
.auth-help p { margin-top: 12px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.auth-privacy { margin-top: 24px; font-size: 10px; line-height: 1.8; color: var(--muted); }
.auth-footer { font-size: 10px; color: var(--muted); text-align: center; }
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.error-panel { max-width: 500px; }
.error-panel .icon-tile { width: 64px; height: 64px; margin-bottom: 24px; }
.error-panel .error-code { margin-bottom: 10px; font-size: 11px; color: var(--muted); letter-spacing: .13em; }
.error-panel h1 { font-size: 30px; }
.error-panel p { color: var(--muted); margin-top: 14px; font-size: 13px; }
.error-panel .row { justify-content: center; margin-top: 25px; }
.nav-search { max-width: 530px; width: calc(100% - 32px); padding: 0; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.nav-search::backdrop { background: var(--backdrop); }
.nav-search-head { display: flex; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--border); gap: 10px; }
.nav-search-head input { border: 0 !important; padding: 3px !important; min-height: 30px !important; background: transparent !important; }
.nav-search-links { padding: 10px; max-height: 340px; overflow-y: auto; }
.nav-search-links a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 7px; color: var(--text); font-size: 13px; }
.nav-search-links a:hover { background: var(--primary-soft); text-decoration: none; }
.nav-search-empty { color: var(--muted); padding: 20px; font-size: 13px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 35; background: var(--backdrop); }
@media (min-width: 1600px) { .main-content { padding-inline: 48px; } }
@media (max-width: 1180px) {
  :root { --sidebar-width: 224px; }
  .app-header { padding-inline: 26px; } .main-content { padding: 28px 26px 40px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-columns { grid-template-columns: 1fr 1fr; }
  .auth-story { padding: 36px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 265px; }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-menu, .drawer-close { display: inline-flex; }
  .drawer-close { position: absolute; right: 12px; top: 22px; }
  .app-header { padding-inline: 20px; }
  .breadcrumb { margin-right: auto; }
  .main-content { padding: 27px 22px 36px; }
  .profile-columns { grid-template-columns: 1fr; }
  .public-nav-links { display: none; }
  .auth-story { padding: 30px; }
  .auth-story h1 { font-size: 39px; }
  .auth-main { padding: 30px; }
  .landing-cta { margin-inline: 28px; }
  .grid-3 { gap: 16px; }
  .feature-card { padding: 22px; }
}
@media (max-width: 640px) {
  h1 { font-size: 27px; }
  .main-content { padding: 23px 16px 30px; }
  .app-header { height: 64px; padding-inline: 12px; gap: 8px; }
  .breadcrumb { gap: 8px; font-size: 10px; }
  .breadcrumb .root, .breadcrumb .separator { display: none; }
  .header-actions { gap: 8px; }
  .search-trigger { border: 0; background: transparent; padding: 7px; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .header-divider { display: none; }
  .grid, .form-grid { gap: 18px; }
  .grid-2, .grid-3, .dashboard-columns, .form-grid { grid-template-columns: 1fr; }
  .grid-4 { gap: 12px; }
  .card-pad, .card-body, .card > form { padding: 20px; }
  .card-header { padding: 18px 20px; }
  .card-header h2 { font-size: 17px; }
  .metric-card { padding: 17px; }
  .metric-card .metric-icon { right: 15px; top: 15px; }
  .metric-value { font-size: 26px; }
  .metric-label { font-size: 11px; }
  .metric-description { font-size: 9px; }
  .page-head { margin-bottom: 22px; gap: 16px; }
  .page-head p:not(.eyebrow) { font-size: 12px; }
  .page-actions { width: 100%; }
  .welcome-panel { align-items: flex-start; flex-direction: column; padding: 20px; }
  .welcome-panel .btn { margin-top: 2px; }
  .list-item { padding: 17px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  th, td { padding-inline: 15px; }
  .table-wrap { border-radius: 8px; }
  .form-actions { align-items: stretch; }
  .form-actions > p { flex-basis: 100%; }
  .form-actions .btn { flex: 1; }
  .public-header { height: 68px; }
  .public-nav { padding-inline: 20px; gap: 12px; }
  .public-nav .brand-mark { width: 32px; height: 32px; }
  .public-nav .brand-name { font-size: 18px; }
  .public-nav .brand-caption { font-size: 7px; }
  .public-nav-actions { gap: 4px; }
  .public-nav-actions .btn { min-height: 36px; padding: 7px 11px; font-size: 11px; }
  .hero { padding: 114px 20px 0; }
  .hero h1 { font-size: 39px; line-height: 1.14; margin-top: 21px; }
  .hero-description { font-size: 12px; max-width: 400px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { padding-inline: 14px; font-size: 11px; }
  .hero-note { font-size: 9px; }
  .product-preview { margin-top: 35px; width: calc(100% + 20px); max-width: none; margin-left: -10px; }
  .preview-app { grid-template-columns: 1fr; min-height: auto; }
  .preview-sidebar { display: none; }
  .preview-main { padding: 17px; }
  .preview-heading h2 { font-size: 15px; }
  .preview-heading p { max-width: 220px; line-height: 1.8; }
  .preview-metrics { gap: 7px; }
  .preview-metric { padding: 10px; }
  .preview-metric strong { font-size: 19px; }
  .preview-metric p { font-size: 7px; }
  .preview-columns { grid-template-columns: 1fr; }
  .preview-card { padding: 14px; }
  .preview-card:last-child { display: none; }
  .preview-card h3 { font-size: 11px; }
  .preview-card p { font-size: 9px; }
  .preview-path { margin-top: 13px; }
  .preview-path .step { font-size: 8px; }
  .landing-section { padding: 62px 20px 0; }
  .section-intro { margin-bottom: 25px; }
  .section-intro h2 { font-size: 28px; }
  .section-intro p:not(.eyebrow) { font-size: 12px; }
  .feature-card { padding: 24px; }
  .journey { grid-template-columns: 1fr 1fr; gap: 15px 23px; }
  .journey-step::before { display: none; }
  .journey-step { padding-top: 0; }
  .journey-step p { font-size: 11px; }
  .program-row { padding: 20px; gap: 14px; }
  .program-row h3 { font-size: 14px; }
  .program-row p { font-size: 11px; }
  .program-row > .icon:last-child { display: none; }
  .landing-cta { padding: 35px 23px; margin: 55px 20px 0; }
  .landing-cta h2 { font-size: 25px; }
  .landing-cta p { font-size: 12px; }
  .public-footer { padding: 25px 20px; margin-top: 40px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .public-footer .brand { gap: 9px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { padding: 25px 24px 28px; border-right: 0; border-bottom: 1px solid var(--border); }
  .auth-story-content { padding: 30px 0 0; max-width: 100%; }
  .auth-story h1 { font-size: 29px; }
  .auth-story-content > p { font-size: 12px; margin-top: 13px; max-width: 450px; }
  .auth-benefits, .auth-story-footer { display: none; }
  .auth-main { padding: 18px 24px 26px; }
  .auth-panel { padding: 27px 0 34px; max-width: 100%; }
  .auth-panel h2 { font-size: 25px; }
  .auth-panel > p { font-size: 12px; }
  .theme-preview { height: 85px; padding: 9px 8px 0; }
  .theme-options { gap: 12px; }
  .theme-option-caption { padding: 10px; }
  .sticky-actions { margin: 24px -20px -20px; padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media print { .sidebar, .app-header, .public-header, .form-actions, .page-actions, .btn { display: none !important; } .workspace { margin: 0; } .main-content { padding: 0; } body, .card { background: #fff !important; color: #000 !important; box-shadow: none; } }

/* Product illustration follows the selected theme without changing the landing layout. */
.product-preview{color-scheme:inherit;--text:inherit;--muted:inherit;--border:inherit;--primary-soft:inherit;--surface:inherit;--surface-muted:inherit;--workspace:inherit;--success:inherit;--success-soft:inherit;background:var(--surface);border-color:var(--border)}
.preview-browser,.preview-sidebar,.preview-metric,.preview-card{background:var(--surface);border-color:var(--border)}.preview-app{color:var(--text)}.preview-main,.preview-path .step{background:var(--workspace)}.preview-browser>i,.preview-sidebar,.preview-path .step{border-color:var(--border)}.preview-nav-item,.preview-heading p,.preview-metric p,.preview-metric small,.preview-card p,.preview-path .step,.preview-session small{color:var(--muted)}.preview-nav-item.active,.preview-path .step.active{color:var(--primary);background:var(--primary-soft);border-color:var(--border)}
