/* SE Business Partners — design system (navy / white / gold enterprise) */
:root {
  --navy-950: #061226; --navy-900: #0A1C38; --navy-800: #102A50; --navy-700: #1A3A69; --navy-600: #2A4F86;
  --gold-300: #EBCB84; --gold-400: #DDB055; --gold-500: #C9962B; --gold-600: #A87A16; --gold-700: #8A630F; --gold-50: #FDF8EC; --gold-100: #F8EDD3;
  --bg: #F5F7FB; --surface: #FFFFFF; --surface-2: #F9FAFC; --text: #0F1E36; --text-2: #3A4A63; --muted: #5A6A82;
  --border: #E2E8F1; --border-strong: #CBD5E3;
  --success: #157347; --success-bg: #E5F5EC; --danger: #B42318; --danger-bg: #FDECEA; --warning: #A15C07; --warning-bg: #FEF3E2; --info: #1F5FC8; --info-bg: #E8F0FE;
  --cat-erp: #B85C00; --cat-erp-bg: #FFF0DE; --cat-ai: #6D3BD8; --cat-ai-bg: #F1EAFE; --cat-it: #1C5ED6; --cat-it-bg: #E6EFFF;
  --cat-em: #137A3A; --cat-em-bg: #E3F5EA; --cat-co: #1E3A8A; --cat-co-bg: #E7ECF8;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 56, .06);
  --shadow: 0 1px 2px rgba(10, 28, 56, .05), 0 4px 14px rgba(10, 28, 56, .06);
  --shadow-lg: 0 10px 40px rgba(10, 28, 56, .16);
  --ring: 0 0 0 3px rgba(201, 150, 43, .45);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sidebar-w: 256px; --topbar-h: 68px;
  --z-sticky: 20; --z-sidebar: 40; --z-modal: 100; --z-toast: 200;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
p { margin: 0; }
a { color: var(--navy-700); }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip-link:focus { top: 12px; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; } .icon.lg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn { --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .18s var(--ease), border-color .18s, color .18s, box-shadow .18s, transform .12s; touch-action: manipulation; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-600), var(--gold-700)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 2px 6px rgba(168,122,22,.3); }
.btn-gold:hover:not(:disabled) { background: linear-gradient(180deg, #B4851C, #946B11); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-800); }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--navy-700); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: rgba(10,28,56,.06); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #921C12; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); position: relative; }
.icon-btn:hover { background: rgba(10,28,56,.06); color: var(--text); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: 13.5px; color: var(--text); }
.req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: #AEBBCF; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--ring); }
.select { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%233A4A63' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea, .field.invalid .dropzone { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.help { color: var(--muted); font-size: 13px; }
.help .icon, .muted .icon, p .icon.sm { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-600); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: span 2; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold-500); background: var(--gold-50); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { box-shadow: var(--ring); }
.dropzone .icon { color: var(--gold-600); width: 28px; height: 28px; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; }
.file-item .name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.file-item a.name { color: var(--navy-700); text-decoration: none; }
.file-item a.name:hover { text-decoration: underline; }

/* ---------- cards & badges ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-success { background: var(--success-bg); color: var(--success); }
.b-danger { background: var(--danger-bg); color: var(--danger); }
.b-warning { background: var(--warning-bg); color: var(--warning); }
.b-info { background: var(--info-bg); color: var(--info); }
.b-neutral { background: #EDF1F6; color: var(--text-2); }
.b-gold { background: var(--gold-100); color: var(--gold-700); }
.b-navy { background: var(--navy-900); color: #fff; }
.cat { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cat-erp { color: var(--cat-erp); background: var(--cat-erp-bg); } .cat-ai { color: var(--cat-ai); background: var(--cat-ai-bg); }
.cat-it { color: var(--cat-it); background: var(--cat-it-bg); } .cat-em { color: var(--cat-em); background: var(--cat-em-bg); }
.cat-co { color: var(--cat-co); background: var(--cat-co-bg); }
.cat-teal { color: #0E6F67; background: #DFF4F1; } .cat-gold { color: var(--gold-700); background: var(--gold-100); }
.subtags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subtags li { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 2px 9px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; line-height: 1.5; white-space: nowrap; }
.subtags li.more { border-style: dashed; color: var(--muted); }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; align-items: flex-start; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--info-bg); border-color: #C6D8FB; color: #173F86; }
.alert-warning { background: var(--warning-bg); border-color: #F6D6A6; color: #6E3F05; }
.alert-danger { background: var(--danger-bg); border-color: #F6C3BD; color: #7A1A12; }
.alert-success { background: var(--success-bg); border-color: #B5E2C8; color: #0F5434; }
.alert-gold { background: var(--gold-50); border-color: var(--gold-300); color: #5B420A; }
.alert a { color: inherit; font-weight: 700; }

/* ---------- app shell ---------- */
/* Sidebar: expanded 256px / collapsed 72px. The grid column animates, so the workspace grows with it. */
:root { --sb-w: var(--sidebar-w); --sb-dur: 220ms; }
:root[data-sidebar="collapsed"] { --sb-w: 72px; }
.shell { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100dvh; transition: grid-template-columns var(--sb-dur) var(--ease); }
.no-anim *, .no-anim *::before, .no-anim *::after, .no-anim .shell { transition: none !important; }
.sidebar { position: sticky; top: 0; height: 100dvh; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #DCE4F2; display: flex; flex-direction: column; z-index: var(--z-sidebar); overflow: hidden; min-width: 0; }
.sidebar .brand { position: relative; display: flex; align-items: center; gap: 8px; padding-block: 22px 18px; padding-inline: 22px 12px; border-bottom: 1px solid rgba(255,255,255,.08); min-height: 82px; }
.sidebar .brand .logo { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.sidebar nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; overflow-x: hidden; }
.nav-section { padding-block: 16px 6px; padding-inline: 12px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #8FA0BD; font-weight: 700; white-space: nowrap; overflow: hidden; }
.nav-link { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; color: #E3E9F5; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s, padding var(--sb-dur) var(--ease); position: relative; white-space: nowrap; min-height: 44px; }
.nav-link .icon { flex: none; }
.nav-label { overflow: hidden; text-overflow: clip; transition: opacity calc(var(--sb-dur) * .6) var(--ease); }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link[aria-current="page"] { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); color: #fff; box-shadow: 0 4px 14px rgba(201,150,43,.35); }
.nav-link .count { margin-inline-start: auto; background: var(--gold-500); color: var(--navy-950); font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }

.sb-toggle { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #B9C6DC; transition: background .15s, color .15s, border-color .15s; }
.sb-toggle:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(221,176,85,.5); }
.sb-toggle .icon { transition: transform var(--sb-dur) var(--ease); }
:root[dir="rtl"] .sb-toggle .icon { transform: scaleX(-1); }

/* ----- collapsed (desktop only) ----- */
@media (min-width: 1025px) {
  :root[data-sidebar="collapsed"] .sidebar .brand { flex-direction: column; justify-content: center; padding: 16px 0 14px; gap: 10px; }
  :root[data-sidebar="collapsed"] .sidebar .brand .logo { flex: none; justify-content: center; }
  :root[data-sidebar="collapsed"] .logo-text { display: none; }
  :root[data-sidebar="collapsed"] .logo-mark { width: 40px; height: 30px; }
  :root[data-sidebar="collapsed"] .sb-toggle .icon { transform: scaleX(-1); }
  :root[dir="rtl"][data-sidebar="collapsed"] .sb-toggle .icon { transform: none; }
  :root[data-sidebar="collapsed"] .sidebar nav { padding-inline: 12px; }
  :root[data-sidebar="collapsed"] .nav-section { height: 1px; padding: 0; margin: 10px 8px; background: rgba(255,255,255,.1); color: transparent; }
  :root[data-sidebar="collapsed"] .nav-link { justify-content: center; padding-inline: 0; gap: 0; }
  :root[data-sidebar="collapsed"] .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; } /* stays readable by screen readers */
  :root[data-sidebar="collapsed"] .nav-link .count { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--navy-900); }
  :root[data-sidebar="collapsed"] .sidebar-foot { padding-inline: 12px; }
  :root[data-sidebar="collapsed"] .support-btn { padding: 0; gap: 0; }
}
.sb-tip { position: fixed; z-index: 300; transform: translateY(-50%) translateX(-4px); pointer-events: none; opacity: 0; padding: 7px 11px; border-radius: 8px; background: var(--navy-950); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(221,176,85,.45); box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: opacity .12s ease, transform .12s ease; }
.sb-tip[data-side="start"] { transform: translateY(-50%) translateX(4px); }
.sb-tip.on { opacity: 1; transform: translateY(-50%); }
.nav-link[aria-current="page"] .count { background: #fff; color: var(--gold-700); }
.nav-link.disabled { opacity: .55; }
/* Nav scrolls on short screens; the support button stays pinned beneath it, never overlapping. */
.sidebar nav { flex: 1 1 auto; min-height: 0; }
.sidebar-foot { flex: none; padding: 12px 14px 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.support-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 42px; padding: 0 14px; border-radius: 10px;
  background: var(--navy-950); border: 1px solid rgba(221, 176, 85, .45); color: #F3F6FB; font-size: 14px; font-weight: 600; letter-spacing: .005em;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.support-btn .icon { width: 18px; height: 18px; color: var(--gold-400); transition: transform .2s var(--ease); }
.support-btn:hover { border-color: var(--gold-400); background: #0C2142; box-shadow: 0 0 0 3px rgba(221, 176, 85, .12), 0 6px 18px rgba(0, 0, 0, .25); }
.support-btn:hover .icon { transform: translateY(-1px); }
.support-btn:active { background: #0E2750; }
.support-btn:focus-visible { box-shadow: var(--ring); border-radius: 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.support-done { text-align: center; padding: 8px 4px 4px; }
.support-done .ok { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-bottom: 12px; }
.support-done h3 { font-size: 19px; margin-bottom: 6px; }
.ticket-ref { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 8px 10px 16px; border: 1px solid var(--gold-300); background: var(--gold-50); border-radius: 12px; }
.ticket-ref b { font-size: 18px; letter-spacing: .04em; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark { width: 46px; height: 34px; direction: ltr; flex: none; } /* brand mark never mirrors in RTL */
.logo-text { font-weight: 800; font-size: 17px; line-height: 1.05; letter-spacing: -.01em; }
.logo-text span { display: block; }
.logo.dark { color: var(--navy-900); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); height: var(--topbar-h); display: flex; align-items: center; gap: 16px; padding: 0 28px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.topbar .search { flex: 1; max-width: 560px; position: relative; }
.topbar .search .input { background: var(--surface-2); padding-right: 74px; }
.kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--text-2); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 7px; background: #fff; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 0; background: transparent; text-align: left; }
.user-chip:hover { background: rgba(10,28,56,.05); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); flex: none; font-size: 14px; }
.user-chip .who { line-height: 1.2; }
.user-chip .who b { display: block; font-size: 14px; }
.user-chip .who span { font-size: 12.5px; color: var(--muted); }
.notif-dot { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold-500); color: var(--navy-950); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; box-sizing: content-box; }
.menu-btn { display: none; }
/* The workspace always fills the column beside the sidebar (expanded or collapsed); grids inside size to it. */
.content { padding: 28px; flex: 1; width: 100%; min-width: 0; container: workspace / inline-size; }

.dropdown { position: relative; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; animation: pop .16s var(--ease); }
.dropdown-panel[hidden] { display: none; }
.dropdown-panel a, .dropdown-panel button.item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); border: 0; background: none; font-weight: 600; font-size: 14px; text-align: left; }
.dropdown-panel a:hover, .dropdown-panel button.item:hover { background: var(--surface-2); }
.notif-list { width: min(380px, 92vw); max-height: 420px; overflow: auto; }
.notif { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.notif:hover { background: var(--surface-2); }
.notif b { font-size: 14px; display: block; }
.notif p { font-size: 13px; color: var(--text-2); }
.notif time { font-size: 12px; color: var(--muted); }
.notif.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); margin-right: 8px; vertical-align: 1px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- page header ---------- */
/* Page header: quiet, type-led. A thin gold rule spans the title block and fades out under the subtitle. */
.page-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 32px; padding: 2px 0 2px 22px; }
.page-head::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 2px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--gold-500) 0%, var(--gold-400) 55%, rgba(221, 176, 85, 0) 100%); }
.page-head h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.022em; color: var(--navy-900); }
.page-head p { color: #4A5A73; margin-top: 8px; max-width: 64ch; font-size: 15.5px; line-height: 1.55; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--navy-700); text-decoration: underline; }

/* ---------- stats ---------- */
/* KPI row: 4 across, 2×2 when the workspace (not the viewport) is narrow — so it tracks the sidebar state. */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
@container workspace (max-width: 880px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stat .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.stat .ic .icon { width: 26px; height: 26px; }
.stat b { font-size: 28px; font-weight: 800; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-size: 14px; font-weight: 500; }
.ic-green { background: var(--success-bg); color: var(--success); } .ic-blue { background: var(--info-bg); color: var(--info); }
.ic-gold { background: var(--gold-100); color: var(--gold-700); } .ic-purple { background: var(--cat-ai-bg); color: var(--cat-ai); }
.ic-red { background: var(--danger-bg); color: var(--danger); } .ic-navy { background: #E7ECF6; color: var(--navy-700); }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .search-f { flex: 1 1 240px; }
.toolbar .select { width: auto; min-width: 140px; flex: 0 1 180px; }
.clear-link { margin-left: auto; background: none; border: 0; color: var(--gold-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; font-weight: 700; font-size: 14px; color: var(--text); transition: all .15s; }
.chip:hover { border-color: var(--gold-500); }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(201,150,43,.3); }
.chip .n { font-weight: 500; opacity: .85; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { width: 44px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); color: #fff; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.view-tools { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.sort .select { min-width: 150px; font-weight: 700; color: var(--text); }

/* ---------- tender tiles ---------- */
/* Tender cards: as many 300px+ columns as fit the available width, so collapsing the sidebar adds columns.
   auto-fill (not auto-fit) keeps a lone search result at card width instead of stretching it edge to edge.
   min(100%, …) lets a single column shrink on narrow screens without horizontal scroll. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 18px; }
.tiles.list { grid-template-columns: 1fr; }
.tile { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s var(--ease), transform .2s var(--ease); overflow: hidden; }
.tile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent, var(--gold-500)); }
.tile:hover { box-shadow: 0 8px 28px rgba(10,28,56,.12); transform: translateY(-2px); }
[data-tone="erp"] { --accent: linear-gradient(90deg, #E39A2E, #F2C47A); --bar: linear-gradient(90deg, #C9700F, #EBAA4B); }
[data-tone="ai"] { --accent: linear-gradient(90deg, #7B3FE4, #B794F6); --bar: linear-gradient(90deg, #6D2DD6, #A36BF2); }
[data-tone="it"] { --accent: linear-gradient(90deg, #2563EB, #7AA7F7); --bar: linear-gradient(90deg, #1D4ED8, #60A5FA); }
[data-tone="em"] { --accent: linear-gradient(90deg, #16A34A, #86D9A5); --bar: linear-gradient(90deg, #15803D, #4ADE80); }
[data-tone="co"] { --accent: linear-gradient(90deg, #1E3A8A, #6C8BD6); --bar: linear-gradient(90deg, #1E3A8A, #4F74D1); }
[data-tone="teal"] { --accent: linear-gradient(90deg, #0F766E, #5EC8BC); --bar: linear-gradient(90deg, #0F766E, #2DD4BF); }
[data-tone="gold"] { --accent: linear-gradient(90deg, #A87A16, #EBCB84); --bar: linear-gradient(90deg, #A87A16, #DDB055); }
.tile-top { display: flex; align-items: center; gap: 12px; }
.tile-top .ref { font-size: 13.5px; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.fav { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); }
.fav:hover { background: var(--danger-bg); color: var(--danger); }
.fav[aria-pressed="true"] { color: var(--danger); }
.fav[aria-pressed="true"] .icon { fill: currentColor; }
.tile h3 { font-size: 17px; font-weight: 800; line-height: 1.3; }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.tile-mid { display: flex; gap: 12px; align-items: flex-start; }
.tile-meta { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-2); min-width: 0; }
.tile-meta div { display: flex; gap: 8px; align-items: center; }
.tile-meta .icon { width: 16px; height: 16px; color: var(--muted); }
.remain { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 10px; line-height: 1.15; flex: none; }
.remain .icon { width: 22px; height: 22px; }
.remain b { display: block; font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.remain small { font-size: 12px; font-weight: 600; }
.remain.urgent { background: var(--danger-bg); color: var(--danger); }
.remain.soon { background: var(--warning-bg); color: var(--warning); }
.remain.ok { background: var(--success-bg); color: var(--success); }
.remain.far { background: var(--info-bg); color: var(--info); }
.remain.ended { background: #EDF1F6; color: var(--text-2); }
.countdown-line { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); font-weight: 600; gap: 8px; }
.progress { height: 7px; border-radius: 999px; background: #E9EDF3; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--bar, var(--gold-500)); width: 0; transition: width .6s var(--ease); }
.tile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.tile .status-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tiles.list .tile { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(220px, .7fr); gap: 14px 28px; align-items: center; }
.tiles.list .tile-head { grid-column: 1; }
.tiles.list .tile-actions { grid-column: 3; grid-row: 1 / span 2; }
.tiles.list .tile-mid { grid-column: 2; grid-row: 1; }
.tiles.list .progress-wrap { grid-column: 1 / span 2; }
.tile-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* List rows stack when the workspace is narrow (sidebar-aware, unlike a viewport breakpoint). */
@container workspace (max-width: 940px) {
  .tiles.list .tile { grid-template-columns: 1fr; }
  .tiles.list .tile > * { grid-column: auto !important; grid-row: auto !important; }
}

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pages button { min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.pages button:hover:not(:disabled) { border-color: var(--gold-500); }
.pages button[aria-current="page"] { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); color: #fff; border-color: transparent; }
.pages button:disabled { opacity: .45; cursor: not-allowed; }
.pages .gap { display: grid; place-items: center; min-width: 30px; color: var(--muted); }

.empty { text-align: center; padding: 56px 20px; color: var(--text-2); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--gold-600); }
.empty h3 { margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, #EEF2F7 25%, #F7F9FC 50%, #EEF2F7 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-tile { height: 236px; border-radius: var(--radius-lg); }

/* ---------- guest timer ---------- */
.guest-timer { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--navy-900); color: #fff; font-size: 13.5px; font-weight: 600; }
.guest-timer .t { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--gold-300); font-size: 15px; min-width: 46px; }
.guest-timer.low { background: var(--danger); }
.guest-timer.low .t { color: #fff; }
.guest-bar { position: sticky; top: var(--topbar-h); z-index: 15; height: 4px; background: #E3E8F0; }
.guest-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); transition: width 1s linear; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(6, 18, 38, .62); backdrop-filter: blur(6px); z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; animation: fade .2s var(--ease); }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: rise .24s var(--ease); }
.modal.wide { width: min(860px, 100%); }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal-head h2 { font-size: 20px; }
.modal-body { padding: 16px 24px 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.expired-modal .hero { background: radial-gradient(120% 120% at 0% 0%, var(--navy-700), var(--navy-950)); color: #fff; padding: 30px 28px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; position: relative; overflow: hidden; }
.expired-modal .hero h2 { color: #fff; font-size: 24px; margin: 14px 0 8px; }
.expired-modal .hero p { color: #C9D4E8; }
.expired-modal .hero .lock { width: 56px; height: 56px; border-radius: 16px; background: rgba(201,150,43,.18); color: var(--gold-300); display: grid; place-items: center; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.benefits .icon { color: var(--success); margin-top: 2px; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--navy-900); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; animation: rise .22s var(--ease); }
.toast.success .icon { color: #6EE7A8; } .toast.error { background: #7A1A12; } .toast.error .icon { color: #FFB4AB; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .18s; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover, .table tbody tr.selected { background: var(--gold-50); }
.table .t-title { font-weight: 700; color: var(--text); }
.table .t-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { padding: 12px 16px; border: 0; background: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--navy-900); border-bottom-color: var(--gold-500); }
.tabs .badge { padding: 1px 8px; }

/* ---------- details / layout helpers ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.sticky-side { position: sticky; top: calc(var(--topbar-h) + 20px); }
.prose h3 { font-size: 16px; margin: 0 0 8px; }
.prose p, .prose .pre { color: var(--text-2); white-space: pre-line; }
.prose section + section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.locked { position: relative; border-radius: var(--radius); overflow: hidden; }
.locked .blur { filter: blur(6px); user-select: none; pointer-events: none; opacity: .7; }
.locked .lock-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.92)); }
.lock-overlay .icon { width: 30px; height: 30px; color: var(--gold-600); margin: 0 auto 8px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border-strong); background: var(--border-strong); }
.timeline .tdot.ok { background: var(--success); box-shadow: 0 0 0 2px var(--success-bg); }
.timeline .tdot.warn { background: var(--warning); box-shadow: 0 0 0 2px var(--warning-bg); }
.timeline .tdot.bad { background: var(--danger); box-shadow: 0 0 0 2px var(--danger-bg); }
.timeline .tdot.gold { background: var(--gold-500); box-shadow: 0 0 0 2px var(--gold-100); }
.timeline .tdot.internal { background: var(--navy-600); box-shadow: 0 0 0 2px #E7ECF6; }
.timeline b { font-size: 14px; display: block; }
.timeline time { font-size: 12.5px; color: var(--muted); }
.timeline .note { margin-top: 6px; font-size: 13.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; white-space: pre-line; }
.timeline .note.internal { background: #EEF2FA; border-color: #D5DEEF; }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; flex-wrap: wrap; }
.steps li { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-weight: 700; font-size: 13.5px; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #EDF1F6; color: var(--text-2); font-size: 13px; flex: none; }
.steps li[aria-current="step"] { border-color: var(--gold-500); color: var(--navy-900); box-shadow: 0 0 0 3px var(--gold-100); }
.steps li[aria-current="step"]::before { background: var(--gold-600); color: #fff; }
.steps li.done { color: var(--success); }
.steps li.done::before { content: '✓'; background: var(--success-bg); color: var(--success); }

.type-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.type-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; }
.type-card:hover { border-color: var(--gold-400); }
.type-card input { position: absolute; opacity: 0; }
.type-card:has(input:checked) { border-color: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-100); }
.type-card:has(input:focus-visible) { box-shadow: var(--ring); }
.type-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700); }
.type-card h3 { font-size: 17px; }
.type-card p { font-size: 13.5px; color: var(--text-2); }
.type-card .check-ic { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: transparent; }
.type-card:has(input:checked) .check-ic { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.form-section { padding: 24px; }
.form-section + .form-section { border-top: 1px solid var(--border); }
.form-section h2 { font-size: 17px; margin-bottom: 4px; }
.form-section > .help { margin-bottom: 18px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; padding: 18px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); flex-wrap: wrap; }
.members { display: flex; flex-direction: column; gap: 10px; }
.member-row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 90px 44px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.line-items .member-row { grid-template-columns: 2fr 100px 160px 140px 44px; }
.line-total { font-weight: 800; font-variant-numeric: tabular-nums; padding: 10px 0; text-align: right; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; font-size: 14.5px; max-width: 360px; margin-left: auto; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 18px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--border); }
.err-summary { margin-bottom: 18px; }
.err-summary ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- country picker ---------- */
.cc { position: relative; }
.cc-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px 8px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; font-size: 15px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.cc-trigger:hover { border-color: #AEBBCF; }
.cc-trigger[aria-expanded="true"], .cc-trigger:focus-visible { border-color: var(--gold-500); box-shadow: var(--ring); border-radius: 10px; }
.cc-trigger .cc-value { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-trigger .icon { color: var(--text-2); }
.field.invalid .cc-trigger { border-color: var(--danger); }
.flag { font-size: 18px; line-height: 1; width: 22px; text-align: center; flex: none; }
.flag-code { display: inline-grid; place-items: center; width: 26px; height: 18px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: var(--navy-700); background: #EEF2F8; border: 1px solid #D6DEEA; border-radius: 4px; }
.country { display: inline-flex; align-items: center; gap: 8px; }
.cc-pop { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; animation: pop .14s var(--ease); }
.cc-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.cc-list [role=option] { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.cc-list [role=option] .nm { flex: 1; min-width: 0; }
.cc-list [role=option] .cd { font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-list [role=option].active { background: var(--gold-50); box-shadow: inset 2px 0 0 var(--gold-500); }
.cc-list [role=option][aria-selected="true"] { font-weight: 700; }
.cc-list [role=option] .icon { color: var(--gold-700); }
.cc-group { padding: 10px 10px 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cc-empty { padding: 16px 10px; color: var(--text-2); font-size: 14px; }

/* ---------- taxonomy picker ---------- */
.tx-picker { display: flex; flex-direction: column; gap: 14px; }
.tx-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tx-search { flex: 1 1 280px; }
.tx-count { font-weight: 700; font-size: 14px; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.tx-selected { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; align-items: center; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.tx-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 8px; border: 1px solid var(--gold-300); background: var(--gold-50); font-size: 13px; font-weight: 600; color: var(--text); }
.tx-tag:hover { border-color: var(--gold-600); }
.tx-tag .icon { width: 14px; height: 14px; color: var(--muted); }
.tx-tag-c { color: var(--gold-700); font-weight: 700; }
.tx-groups { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.tx-group { position: relative; padding: 14px 16px 16px 20px; }
.tx-group + .tx-group { border-top: 1px solid var(--border); }
.tx-group::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.tx-group header { display: flex; align-items: center; gap: 12px; }
.tx-group header .tx-toggle { margin-left: auto; transition: transform .2s var(--ease); }
.tx-group.collapsed .tx-toggle { transform: rotate(-90deg); }
.tx-group.collapsed .tx-subs { display: none; }
.tx-cat { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.tx-cat input, .tx-sub input { width: 18px; height: 18px; accent-color: var(--gold-600); flex: none; margin: 0; }
.tx-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 12px; }
.tx-sub { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; min-height: 42px; }
.tx-sub:hover { border-color: var(--gold-400); }
.tx-sub:has(input:checked) { border-color: var(--gold-500); background: var(--gold-50); font-weight: 600; }
.tx-sub:has(input:focus-visible), .tx-cat:has(input:focus-visible) { box-shadow: var(--ring); border-radius: 10px; }
.tx-empty { padding: 20px; text-align: center; }
.field.invalid .tx-groups { border-color: var(--danger); }
.spec-list { display: flex; flex-direction: column; gap: 10px; }
.spec-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.spec-row .cat { flex: none; }
.sub-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.sub-filter .lbl { font-size: 13px; font-weight: 700; color: var(--text-2); margin-right: 4px; }
.sub-chip { min-height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.sub-chip:hover { border-color: var(--gold-500); }
.sub-chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.sub-chip .n { font-weight: 500; opacity: .75; }

/* ---------- matching & invitations ---------- */
.match-meter { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; }
.match-meter b { font-size: 34px; line-height: 1; font-weight: 800; color: var(--gold-300); font-variant-numeric: tabular-nums; min-width: 1.6ch; }
.match-meter p { color: #C9D5EA; font-size: 13.5px; }
.match-meter .t { font-weight: 700; color: #fff; font-size: 15px; }
.match-meter.updating b { opacity: .5; }
.inv-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.inv-funnel div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.inv-funnel b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.inv-funnel span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.cat-admin { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.cat-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.cat-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: none; text-align: left; position: relative; }
.cat-item:hover { background: var(--surface-2); }
.cat-item[aria-current="true"] { background: var(--gold-50); box-shadow: inset 3px 0 0 var(--gold-500); }
.cat-item .sw { width: 12px; height: 12px; border-radius: 4px; background: var(--accent); flex: none; }
.cat-item .nm { flex: 1; font-weight: 700; min-width: 0; }
.cat-item.off .nm { color: var(--muted); text-decoration: line-through; }
.tone-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.tone-pick label { position: relative; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.tone-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tone-pick label:has(input:checked) { outline: 3px solid var(--navy-900); outline-offset: 2px; }
.tone-pick label:has(input:focus-visible) { box-shadow: var(--ring); }
.sub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sub-row:last-child { border-bottom: 0; }
.sub-row.off .input { color: var(--muted); text-decoration: line-through; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: #CBD5E3; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--success); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { box-shadow: var(--ring); }
@media (max-width: 1024px) { .cat-admin { grid-template-columns: 1fr; } .inv-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sub-row { grid-template-columns: 1fr auto; } .tx-subs { grid-template-columns: 1fr; } }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-art { background: radial-gradient(130% 90% at 0% 0%, var(--navy-700), var(--navy-950) 70%); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-art h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-top: auto; max-width: 460px; }
.auth-art p { color: #C3CFE4; margin-top: 12px; max-width: 440px; }
.auth-art .skyline { position: absolute; bottom: 0; right: -20px; width: 85%; color: var(--gold-500); opacity: .25; }
.auth-art ul { position: relative; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 28px; font-weight: 800; }
.auth-card .sub { color: var(--text-2); margin: 8px 0 26px; }
.public-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: var(--z-sticky); }
.reg-page { max-width: 1040px; margin: 0 auto; padding: 32px 20px 64px; }

/* ---------- landing ---------- */
.lp-nav { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(6, 18, 38, .9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-nav .in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.lp-nav .links { display: flex; gap: 2px; margin-inline-start: 12px; }
.lp-nav .links a { position: relative; color: #C9D4E8; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; transition: color .2s var(--ease); }
/* Gold underline grows from the centre on hover/focus and stays on the active section. */
.lp-nav .links a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); transform: scaleX(0); transition: transform .28s var(--ease); }
.lp-nav .links a:hover, .lp-nav .links a:focus-visible { color: #fff; }
.lp-nav .links a:hover::after, .lp-nav .links a:focus-visible::after { transform: scaleX(1); }
.lp-nav .links a[aria-current="location"] { color: var(--gold-300); }
.lp-nav .links a[aria-current="location"]::after { transform: scaleX(1); }
.lp-nav .cta { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.lp-menu { display: none; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; }
.lp-menu:hover { border-color: var(--gold-400); }
.lp-sheet { position: absolute; inset-inline: 0; top: 100%; background: rgba(6, 18, 38, .97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(221,176,85,.25); padding: 6px 24px 22px; animation: pop .18s var(--ease); }
.lp-sheet nav a { display: block; padding: 14px 4px; color: #E3E9F5; text-decoration: none; font-weight: 600; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-sheet nav a[aria-current="location"] { color: var(--gold-300); box-shadow: inset 3px 0 0 var(--gold-500); padding-inline-start: 12px; }
.lp-sheet-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.lp-nav.menu-open { background: rgba(6, 18, 38, .97); }
/* Anchored sections clear the sticky header when scrolled to; programmatic focus shows no ring on the whole block. */
.lp-anchor { scroll-margin-top: 80px; }
.lp-anchor:focus, .lp-anchor:focus-visible { outline: none; box-shadow: none; }
@media (max-width: 1180px) { .lp-nav .links { display: none; } .lp-menu { display: inline-grid; } }
@media (max-width: 480px) { .lp-nav .cta > .btn-gold { display: none; } .lp-nav .in { gap: 12px; } }

/* ---------- Meet the founder: Concept 01 "Executive Vision" (shared by the landing page and the design lab) ----------
   Responds to its container named "stage". --c1-edge / --c1-edge-end let a host align it with the page grid. */
.founder-stage { container: stage / inline-size; --c1-edge: max(24px, calc((100cqw - 1240px) / 2 + 24px)); --c1-edge-end: max(0px, calc((100cqw - 1240px) / 2 + 24px)); }
.c1 { --mx: 72%; --my: 38%; position: relative; overflow: hidden; color: #fff; min-height: 680px; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 80% 0%, #0E254B 0%, #06122A 55%, #030A18 100%); font-family: var(--font); }
.c1-light { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 55% at var(--mx) var(--my), rgba(242,201,120,.28), rgba(242,201,120,.08) 45%, rgba(242,201,120,0) 70%); opacity: 0; transition: opacity 1.4s .5s ease; }
.c1.on .c1-light { opacity: 1; }
.c1-curtain { position: absolute; inset: 0; background: #02060F; z-index: 5; pointer-events: none; transition: opacity 1.1s cubic-bezier(.4,0,.2,1); }
.c1.on .c1-curtain { opacity: 0; }
.c1-grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: end; gap: 24px;
  padding: 64px var(--c1-edge-end, 0px) 0 var(--c1-edge, clamp(28px, 5cqw, 72px)); }
.c1-copy { align-self: center; padding-bottom: 40px; }
.c1-kicker { font-size: 14px; font-weight: 600; color: var(--gold-300); letter-spacing: .01em; margin-bottom: 18px; opacity: 0; transform: translateY(8px); transition: all .8s .9s var(--ease); }
.c1-name { font-family: 'Bodoni Moda', 'Didot', serif; font-weight: 500; font-size: clamp(46px, 6.6cqw, 96px); line-height: .98; letter-spacing: -.015em; color: #fff; }
.c1-name .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.c1-name .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.75,.15,1);
  background: linear-gradient(100deg, #fff 0%, #fff 42%, #F4D99B 50%, #fff 58%, #fff 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.c1.on .c1-name .ln > span { transform: none; animation: c1-sheen 2.6s 1.9s ease-in-out 1 both; }
.c1.on .c1-name .ln:nth-child(1) > span { transition-delay: .95s; }
.c1.on .c1-name .ln:nth-child(2) > span { transition-delay: 1.08s; }
@keyframes c1-sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.c1-role { margin-top: 22px; font-size: 15px; color: #B9C6DC; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; opacity: 0; transition: opacity .9s 1.4s; }
.c1-role b { color: #fff; font-weight: 700; }
.c1-bar { display: inline-block; width: 28px; height: 1px; background: var(--gold-400); margin: 0 12px; }
.c1-vision { margin: 34px 0 0; max-width: 30em; position: relative; padding-inline-start: 26px; opacity: 0; transform: translateY(10px); transition: all 1s 1.6s var(--ease); }
.c1-vision::before { content: ''; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 2px; background: linear-gradient(180deg, var(--gold-300), rgba(221,176,85,0)); }
.c1-vision p { font-family: 'Bodoni Moda', serif; font-style: italic; font-weight: 400; font-size: clamp(20px, 2.15cqw, 28px); line-height: 1.42; color: #E9EEF7; }
.c1.on .c1-kicker, .c1.on .c1-role, .c1.on .c1-vision { opacity: 1; transform: none; }
.c1-portrait { margin: 0; align-self: end; position: relative; display: flex; justify-content: center; }
.c1-portrait::before { content: ''; position: absolute; bottom: 0; left: 8%; right: 8%; height: 78%; border-radius: 50% 50% 0 0; background: radial-gradient(60% 70% at 50% 40%, rgba(70,110,180,.35), rgba(70,110,180,0) 70%); }
.c1-portrait img { position: relative; width: min(100%, 560px); height: auto; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 99%); mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
  filter: brightness(.35) saturate(.6) drop-shadow(-14px 0 28px rgba(242,201,120,.22)); transform: translateY(24px); transition: filter 1.8s .4s ease, transform 1.6s .4s var(--ease); }
.c1.on .c1-portrait img { filter: brightness(1) saturate(1) drop-shadow(-14px 0 28px rgba(242,201,120,.22)); transform: none; }
.c1-credits { position: relative; z-index: 3; list-style: none; margin: 0; padding: 0 var(--c1-edge, clamp(28px, 5cqw, 72px)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.12); background: rgba(3,10,24,.72); backdrop-filter: blur(10px); }
.c1-credits li { padding: 22px 22px 24px 0; display: flex; flex-direction: column; gap: 6px; position: relative; opacity: 0; transform: translateY(10px); transition: all .8s var(--ease); }
.c1-credits li + li { padding-inline-start: 22px; border-inline-start: 1px solid rgba(221,176,85,.28); }
.c1.on .c1-credits li { opacity: 1; transform: none; }
.c1.on .c1-credits li:nth-child(1) { transition-delay: 1.5s; } .c1.on .c1-credits li:nth-child(2) { transition-delay: 1.6s; }
.c1.on .c1-credits li:nth-child(3) { transition-delay: 1.7s; } .c1.on .c1-credits li:nth-child(4) { transition-delay: 1.8s; }
.c1-credits b { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: clamp(32px, 3.2cqw, 44px); line-height: 1; color: var(--gold-300); font-variant-numeric: lining-nums tabular-nums; }
.c1-credits p { font-size: 13.5px; line-height: 1.45; color: #C9D4E8; max-width: 26ch; }
@container stage (max-width: 980px) {
  .c1-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); padding-top: 48px; }
  .c1-credits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c1-credits li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .c1-credits li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}
@container stage (max-width: 640px) {
  .c1 { min-height: 0; }
  .c1-grid { grid-template-columns: 1fr; padding: 36px 22px 0; }
  .c1-portrait { order: -1; }
  .c1-portrait img { width: min(86%, 340px); }
  .c1-copy { padding-bottom: 28px; }
  .c1-credits { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .c1-curtain { display: none; }
  .c1 * { transition: none !important; animation: none !important; }
  .c1-name .ln > span, .c1-kicker, .c1-role, .c1-vision, .c1-credits li { opacity: 1 !important; transform: none !important; }
  .c1-portrait img { filter: none !important; transform: none !important; }
  .c1-light { opacity: 1; }
}

/* ---------- photo hero + signal network ---------- */
.lp-nav { background: transparent; border-bottom-color: transparent; margin-bottom: -73px; transition: background .35s var(--ease), border-color .35s; }
.lp-nav.solid { background: rgba(6, 18, 38, .9); border-bottom-color: rgba(255,255,255,.08); }
.hp { position: relative; isolation: isolate; min-height: clamp(640px, 100svh, 960px); display: flex; align-items: flex-start; overflow: hidden; background: #0B1E4A; color: #fff; }
.hp-media { position: absolute; inset: 0; z-index: -1; animation: hp-settle 2.8s cubic-bezier(.2, .7, .2, 1) both; }
.hp-media img, .hp-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-media img { object-fit: cover; object-position: 50% 50%; animation: hp-light 2.8s ease-out both; }
.hp-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 95% at 0% 30%, rgba(6, 18, 38, .85) 0%, rgba(6, 18, 38, .55) 48%, rgba(6, 18, 38, 0) 76%),
    linear-gradient(180deg, rgba(6, 18, 38, .55) 0%, rgba(6, 18, 38, 0) 16%),
    linear-gradient(0deg, rgba(6, 18, 38, .45) 0%, rgba(6, 18, 38, 0) 22%); }
.hp-net { pointer-events: none; }
@keyframes hp-settle { from { transform: scale(1.07); } }
@keyframes hp-light { from { filter: brightness(.55) saturate(.75); } }
.hp-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(128px, 17vh, 176px) 24px 96px; }
.hp-title { font-size: clamp(36px, 4.4vw, 62px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; color: #fff; max-width: 13.5em; text-shadow: 0 2px 30px rgba(6, 18, 38, .45); }
.hp-title > span { display: block; overflow: hidden; padding-bottom: .06em; }
.hp-title > span > span { display: block; animation: hp-rise 1s cubic-bezier(.2, .75, .15, 1) both; }
.hp-title > span:nth-child(1) > span { animation-delay: .35s; }
.hp-title > span:nth-child(2) > span { animation-delay: .47s; }
.hp-title > span:nth-child(3) > span { animation-delay: .59s; }
@keyframes hp-rise { from { transform: translateY(105%); } }
.hp-lead { margin-top: 22px; max-width: 34em; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; color: #DCE5F5; animation: hp-fade .8s .95s ease-out both; }
.hp-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; animation: hp-fade .8s 1.1s ease-out both; }
.hp-note { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: #C9D5EA; animation: hp-fade .8s 1.25s ease-out both; }
.hp-note > span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes hp-fade { from { opacity: 0; transform: translateY(8px); } }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .38); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .6); }

.hn-arc { fill: none; stroke-width: 2; stroke-linecap: round; opacity: .62; transition: opacity .6s, stroke-width .6s; }
.hn-arc.hn-casing { stroke: #061226; stroke-width: 6; opacity: .32; }
.hp-net.drawing .hn-arc { animation: hn-draw 1.7s var(--d, 1.2s) cubic-bezier(.6, .05, .25, 1) forwards; }
@keyframes hn-draw { to { stroke-dashoffset: 0; } }
.hn-arc.active { opacity: 1; stroke-width: 2.6; filter: url(#hn-glow); }
.hn-trail { fill: none; stroke-width: 3.4; stroke-linecap: round; opacity: 0; transition: opacity .25s; }
.hn-head { fill: #fff; opacity: 0; transition: opacity .25s; }
.hn-origin { fill: #62D0FF; transform-box: fill-box; transform-origin: center; }
.hn-origin.fire { animation: hn-fire .9s ease-out; }
@keyframes hn-fire { 40% { transform: scale(2.1); } }
.hn-node { fill: #F2B84B; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .8s, transform .5s var(--ease); }
.hp-net.live .hn-node, .hp-net.static .hn-node { opacity: .85; }
.hn-node.lit { transform: scale(1.8); opacity: 1; }
.hn-ring { fill: none; stroke: #F2B84B; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hn-ring.bloom { animation: hn-bloom 1.5s cubic-bezier(.1, .6, .3, 1); }
@keyframes hn-bloom { from { opacity: .95; transform: scale(1); } to { opacity: 0; transform: scale(8); } }
.hn-tag { opacity: 0; transition: opacity .5s var(--ease); }
.hn-tag.on { opacity: 1; }
.hn-tag rect { fill: rgba(6, 18, 38, .8); stroke: rgba(242, 184, 75, .6); stroke-width: 1; }
.hn-tag-cat { fill: #F2B84B; font: 700 15px var(--font); }
.hn-tag-n { fill: #FFFFFF; font: 500 15px var(--font); }
.open-now .tiles { margin-top: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(201,150,43,.14); border: 1px solid rgba(221,176,85,.35); color: var(--gold-300); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; color: var(--gold-500); opacity: .16; width: 100%; height: auto; }
.live { display: inline-flex; align-items: center; gap: 8px; color: #7EE2A8; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #34D17A; box-shadow: 0 0 0 4px rgba(52,209,122,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52,209,122,.05); } }
.mini-tile { padding: 14px 16px; gap: 8px; }
.mini-tile h3 { font-size: 15px; }
.section { max-width: 1240px; margin: 0 auto; padding: 88px 24px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .kicker { color: var(--gold-700); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-top: 10px; text-wrap: balance; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 16.5px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.feature .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14.5px; }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: j; }
.journey li { list-style: none; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); position: relative; counter-increment: j; }
.journey li::before { content: '0' counter(j); font-weight: 800; font-size: 34px; color: var(--gold-500); opacity: .9; display: block; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.journey h3 { font-size: 16.5px; margin-bottom: 6px; }
.journey p { font-size: 14px; color: var(--text-2); }
.cats-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat-card { padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.cat-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.cat-card b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cat-card span.muted { font-size: 13px; }
.confid { background: linear-gradient(135deg, var(--navy-900), var(--navy-950)); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.confid h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.confid p { color: #C3CFE4; margin-top: 12px; }
.confid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.confid li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.confid li .icon { color: var(--gold-400); margin-top: 2px; }
.confid li b { display: block; }
.confid li span { color: #B9C6DC; font-size: 14px; }
.cta-band { text-align: center; padding: 64px 24px; border-radius: 28px; background: linear-gradient(180deg, var(--gold-50), #fff); border: 1px solid var(--gold-100); }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: var(--text-2); margin: 12px auto 26px; max-width: 560px; }
.footer { background: var(--navy-950); color: #9FB0CC; }
.footer .in { max-width: 1240px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.footer a { color: #C9D4E8; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- admin ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); gap: 20px; align-items: start; }
.split .detail { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100dvh - var(--topbar-h) - 32px); overflow: auto; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.data-grid .full { grid-column: 1 / -1; }
.data-grid dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.data-grid dd { margin: 3px 0 0; font-size: 14px; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.decision { display: grid; gap: 10px; }
.decision .btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proposal-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proposal-box { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.proposal-box header { padding: 12px 16px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 800; }
.proposal-box header > span { display: flex; gap: 8px; align-items: center; }
.proposal-box.tech header { background: var(--info-bg); color: #173F86; }
.proposal-box.fin header { background: var(--gold-50); color: #5B420A; }
.proposal-box .body { padding: 16px; font-size: 14px; }
.audit-row code { font-size: 12.5px; background: #EEF2F7; padding: 2px 6px; border-radius: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .two-col { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .split { grid-template-columns: 1fr; }
  .split .detail { position: static; max-height: none; }
  .cats-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  /* Off-canvas drawer; the desktop collapsed preference is ignored here. */
  .sidebar { position: fixed; inset-inline-start: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  :root[dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open, :root[dir="rtl"] .sidebar.open { transform: none; }
  .sb-toggle { display: none; }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(6,18,38,.5); z-index: 35; }
  .menu-btn { display: inline-grid; }
  .features, .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confid { grid-template-columns: 1fr; padding: 32px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .type-cards { grid-template-columns: 1fr; }
  .proposal-panels { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .content { padding: 18px 16px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .search, .user-chip .who, .kbd { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .stat .ic { width: 42px; height: 42px; } .stat b { font-size: 22px; }
  .grid-2, .grid-3, .data-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .features, .journey, .cats-band { grid-template-columns: 1fr; }
  .toolbar .select { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .view-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .clear-link { margin-left: 0; }
  .member-row, .line-items .member-row { grid-template-columns: 1fr 1fr; }
  .member-row .wide { grid-column: 1 / -1; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .lp-nav .cta .btn-ghost { display: none; }
  .hp { min-height: 720px; }
  .hp-in { padding: 112px 16px 72px; }
  .hp-shade { background: linear-gradient(180deg, rgba(6,18,38,.8) 0%, rgba(6,18,38,.58) 50%, rgba(6,18,38,.62) 80%, rgba(6,18,38,.75) 100%); }
  .hp-net { display: none; }
  .hp-ctas .btn { flex: 1 1 100%; }
  .hp-title { font-size: clamp(32px, 9vw, 40px); text-wrap: balance; animation: hp-fade .9s .3s ease-out both; }
  .hp-title > span, .hp-title > span > span { display: inline; overflow: visible; padding: 0; animation: none; }
  .section { padding: 56px 16px; }
  .guest-timer .lbl { display: none; }
  .decision .btns { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }
  .card-pad, .form-section { padding: 18px; }
  .pager { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Founder meetings: Schedule a Meeting (request only; founder approval required) ---------- */
.c1-cta { margin-top: 34px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; opacity: 0; transform: translateY(10px); transition: all 1s 1.9s var(--ease); }
.c1.on .c1-cta { opacity: 1; transform: none; }
.c1-schedule { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 12px; border: 1px solid rgba(235,203,132,.65);
  background: linear-gradient(180deg, var(--gold-500), var(--gold-700)); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .005em;
  box-shadow: 0 10px 28px rgba(201,150,43,.28), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s; }
.c1-schedule .icon { width: 18px; height: 18px; }
.c1-schedule:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(201,150,43,.38), inset 0 1px 0 rgba(255,255,255,.3); filter: brightness(1.05); }
.c1-schedule:active { transform: none; }
.c1-schedule:focus-visible { box-shadow: var(--ring); }
.c1-cta p { font-size: 13.5px; color: #9FB0CC; }
@media (prefers-reduced-motion: reduce) { .c1-cta { opacity: 1 !important; transform: none !important; } }

/* ---------- Founder CTA pair: Schedule (primary gold) + Message on LinkedIn (secondary outline) ---------- */
.c1-cta { display: grid; justify-items: start; gap: 14px; }
.c1-cta p { max-width: 46ch; line-height: 1.55; }
/* Equal-width pair: side by side when the column allows, otherwise stacked full-width. Never ragged. */
.c1-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(242px, 1fr)); gap: 12px; width: min(100%, 520px); }
.c1-actions > * { min-width: 0; }
.c1-schedule, .c1-linkedin { position: relative; isolation: isolate; overflow: hidden; justify-content: center; white-space: nowrap; }
.c1-linkedin { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 16px 0 8px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.04); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .005em; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s; }
/* the logo sits in its own tile so the mark reads as the official LinkedIn badge */
.c1-li-logo { box-sizing: content-box; width: 16px; height: 16px; padding: 9px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .45s cubic-bezier(.34,1.56,.64,1); }
.c1-li-out { width: 14px; height: 14px; margin-inline-start: 2px; color: var(--gold-300, #EBCB84); opacity: .7; transition: transform .3s var(--ease), opacity .3s; }
/* gold sheen that sweeps across on hover (both CTAs) */
.c1-schedule::after, .c1-linkedin::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 66%); transform: translateX(-120%); }
.c1-linkedin::after { background: linear-gradient(105deg, transparent 30%, rgba(235,203,132,.18) 48%, transparent 66%); }
.c1-linkedin:hover { transform: translateY(-1px); border-color: rgba(235,203,132,.7); background: rgba(235,203,132,.08); box-shadow: 0 12px 30px rgba(3,10,28,.45), 0 0 0 4px rgba(235,203,132,.08); }
.c1-linkedin:hover .c1-li-logo { background: linear-gradient(180deg, var(--gold-500), var(--gold-700)); transform: rotate(-6deg) scale(1.06); }
.c1-linkedin:hover .c1-li-out { transform: translate(2px, -2px); opacity: 1; }
.c1-schedule:hover::after, .c1-linkedin:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.c1-linkedin:active { transform: translateY(0) scale(.985); }
.c1-schedule:active { transform: scale(.985); }
.c1-linkedin:focus-visible { outline: none; box-shadow: var(--ring); border-color: rgba(235,203,132,.85); }
@media (max-width: 560px) {
  .c1-cta { justify-items: stretch; }
  .c1-actions { grid-template-columns: 1fr; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .c1-schedule::after, .c1-linkedin::after { display: none; }
  .c1-linkedin:hover .c1-li-logo { transform: none; }
}

.modal.sch-modal { width: min(880px, 100%); }
.sch-sub { color: var(--text-2); font-size: 14.5px; margin-top: -6px; }
.sch-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 16px 0 18px; counter-reset: s; }
.sch-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--border); counter-increment: s; transition: color .2s, border-color .2s; }
.sch-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #EDF1F6; font-size: 12px; }
.sch-steps li[aria-current="step"] { color: var(--navy-900); border-color: var(--gold-500); }
.sch-steps li[aria-current="step"]::before { background: var(--gold-600); color: #fff; }
.sch-steps li.done { color: var(--success); border-color: var(--success); }
.sch-steps li.done::before { content: '\2713'; background: var(--success-bg); color: var(--success); }
.sch-pane { animation: sch-in .3s var(--ease); }
@keyframes sch-in { from { opacity: 0; transform: translateX(10px); } }
.sch-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.sch-cal { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: #fff; }
.sch-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sch-cal-head b { font-size: 15px; color: var(--navy-900); }
.sch-cal-head .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.sch-week, .sch-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sch-week span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.sch-day { position: relative; aspect-ratio: 1; min-height: 38px; border-radius: 10px; border: 1px solid transparent; background: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); transition: background .15s, border-color .15s, color .15s; }
.sch-day.empty { pointer-events: none; }
.sch-day.off { color: #B4BFCE; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(180,191,206,.6); }
.sch-day.today { box-shadow: inset 0 0 0 1px var(--border-strong); text-decoration: none; }
.sch-day.on { background: var(--gold-50); border-color: rgba(221,176,85,.35); color: var(--navy-900); cursor: pointer; }
.sch-day.on::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-600); translate: -50% 0; }
.sch-day.on:hover { border-color: var(--gold-500); background: var(--gold-100); }
.sch-day.sel { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.sch-day.sel::after { background: var(--gold-300); }
.sch-day:focus-visible { box-shadow: var(--ring); }
.sch-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 12.5px; font-weight: 600; }
.sch-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-600); }
.sch-legend .muted { font-weight: 500; flex-basis: 100%; }
.sch-slots { min-height: 260px; }
.sch-empty { height: 100%; min-height: 260px; display: grid; place-content: center; text-align: center; gap: 8px; color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: 16px; padding: 20px; }
.sch-empty .icon { width: 30px; height: 30px; color: var(--gold-600); margin: 0 auto; }
.sch-slots-title { font-weight: 800; color: var(--navy-900); margin-bottom: 10px; }
.sch-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
.sch-time { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; padding: 8px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; transition: all .15s var(--ease); }
.sch-time b { font-size: 14.5px; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.sch-time span { font-size: 11.5px; color: var(--muted); }
.sch-time:hover { border-color: var(--gold-500); background: var(--gold-50); }
.sch-time[aria-checked="true"] { background: var(--navy-900); border-color: var(--navy-900); box-shadow: 0 6px 16px rgba(10,28,56,.25); }
.sch-time[aria-checked="true"] b { color: #fff; } .sch-time[aria-checked="true"] span { color: var(--gold-300); }
.sch-chosen { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--gold-50); border: 1px solid var(--gold-300); margin-bottom: 16px; }
.sch-chosen > span { color: var(--gold-700); }
.sch-chosen b { display: block; color: var(--navy-900); }
.sch-approval { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; margin-top: 12px; }
.sch-approval .icon { color: var(--gold-700); }
.sch-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; flex-wrap: wrap; }
.sch-foot .sch-approval { margin: 0 auto 0 0; }
.sch-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0; }
.sch-done .ok { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--warning-bg); color: var(--warning); }
.sch-done h3 { font-size: 20px; }
.sch-done .kv { text-align: left; margin-top: 6px; }
.sch-next { text-align: left; max-width: 520px; margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14px; display: grid; gap: 6px; }
@media (max-width: 760px) {
  .sch-grid { grid-template-columns: 1fr; }
  .sch-slots, .sch-empty { min-height: 0; }
  .sch-steps li { font-size: 11.5px; }
  .sch-foot .sch-approval { flex-basis: 100%; margin: 0; }
  .sch-foot .btn { flex: 1; }
}

/* ---------- Founder dashboard: meetings ---------- */
.mt-card { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.mt-when { padding: 12px 14px; border-radius: 12px; background: var(--navy-900); color: #fff; }
.mt-when b { display: block; font-size: 15px; line-height: 1.35; }
.mt-when span { font-size: 12.5px; color: #C9D5EA; }
.mt-actions { display: flex; flex-direction: column; gap: 8px; min-width: 170px; }
.mt-days { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-days label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mt-days label:has(input:checked) { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.mt-days input { accent-color: var(--gold-500); }
@media (max-width: 900px) { .mt-card { grid-template-columns: 1fr; } .mt-actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Sign in: "Forgot password?" next to the Password label ---------- */
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row label { margin: 0; font-weight: 600; font-size: 13.5px; color: var(--text); }
.auth-forgot { font-size: 13px; font-weight: 700; color: var(--gold-700); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
.auth-forgot:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ---------- Admin Email Log ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy-900); text-align: left; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.mail-table .mail-to { overflow-wrap: anywhere; min-width: 150px; }
.mail-table td:nth-child(4) { min-width: 220px; }
.mail-table .mail-reason { min-width: 180px; max-width: 380px; font-size: 13px; }
.mail-table tr.mail-body td { background: var(--surface-2); }
