/* Vyssor Client Portal prototype. One stylesheet; every token lives here. */

:root {
  /* Brand */
  /* Read from the vyssor.com Elementor kit, 25 Nov 2026 */
  --navy: #0E1A3C;            /* headings */
  --ink: #1D212B;             /* body text */
  --blue: #3C67FF;            /* primary: buttons, active nav, eyebrows */
  --blue-hover: #2F57E8;
  --blue-ink: #3059F0;        /* blue small text on the grey page (5.2:1) */
  --blue-tint: #EEF2FF;       /* icon tiles, active nav */
  --blue-line: #DCE3FD;
  --gold: #F2B62C;
  --gold-ink: #7A5200;
  --page: #F7F8FB;            /* site's light section grey */
  --card: #FFFFFF;
  --slate: #6A7181;
  --border: #E5E7EB;
  --hover: #F9FAFB;
  --neutral: #F3F4F6;
  --success: #1E7F4F;
  --warning: #B7791F;
  --warning-ink: #8A5A12;     /* #B7791F misses 4.5:1 for small text */
  --danger: #B42318;

  /* Soft fills, 8% of each */
  --navy-soft: rgba(15, 27, 61, .08);
  --blue-soft: rgba(60, 103, 255, .08);
  --gold-soft: rgba(242, 182, 44, .12);
  --success-soft: rgba(30, 127, 79, .08);
  --warning-soft: rgba(183, 121, 31, .08);
  --danger-soft: rgba(180, 35, 24, .08);
  --slate-soft: rgba(106, 113, 129, .08);

  /* Type */
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-title: 26px;
  --fs-hero: 32px;

  /* Shape */
  --r-card: 16px;
  --r-input: 8px;
  --r-btn: 8px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-pop: 0 12px 32px rgba(14, 26, 60, .12), 0 2px 6px rgba(14, 26, 60, .06);

  /* Layout */
  --sidebar: 240px;
  --sidebar-mini: 72px;
  --topbar: 56px;
  --content: 1180px;
  --gutter: 24px;
  --focus: 0 0 0 3px rgba(60, 103, 255, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--fs-md)/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; color: var(--navy); }
h1 { font-size: var(--fs-title); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 700; line-height: 1.35; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--blue); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--blue); color: #fff;
  padding: 8px 14px; border-radius: var(--r-btn); font-weight: 600;
}
.skip-link:focus { top: 10px; text-decoration: none; }

.muted { color: var(--slate); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }
.t-danger { color: var(--danger); }
.t-success { color: var(--success); }
.t-warning { color: var(--warning-ink); }
.nowrap { white-space: nowrap; }

/* ---------- Shell ---------- */

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; transition: width .18s ease, transform .2s ease;
}
.sb-head { height: var(--topbar); display: flex; align-items: center; padding: 0 20px; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-word { font: 800 19px/1 var(--font-head); letter-spacing: .08em; }
.logo-mark { flex: none; }

.nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-group { margin: 14px 0 6px 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.nav a, .nav .nav-btn {
  display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: var(--r-input);
  color: var(--slate); font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav a svg, .nav .nav-btn svg { flex: none; }
.nav a:hover, .nav .nav-btn:hover { background: var(--neutral); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-ink); font-weight: 600; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center;
}

.sb-foot { padding: 12px; border-top: 1px solid var(--border); flex: none; }

/* Contact person card (sidebar footer, mobile page footer, Home) */
.contact-card { background: var(--page); border: 1px solid var(--border); border-radius: var(--r-card); padding: 12px; }
.contact-top { display: flex; align-items: center; gap: 10px; }
.contact-name { font-weight: 600; font-size: var(--fs-md); line-height: 1.3; }
.contact-role { font-size: var(--fs-sm); color: var(--slate); line-height: 1.3; }
.contact-eyebrow { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--slate); margin-bottom: 8px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.contact-note { font-size: 12px; color: var(--slate); margin-top: 8px; line-height: 1.4; }
.avatar { border-radius: 50%; flex: none; background: var(--navy-soft); }
.sb-mini-contact { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
}
.app { margin-left: var(--sidebar); min-height: 100vh; transition: margin-left .18s ease; }
.crumbs { flex: 1; min-width: 0; }
.crumbs ol { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--slate); white-space: nowrap; overflow: hidden; }
.crumbs li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li:last-child { overflow: hidden; text-overflow: ellipsis; }
.crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--slate); }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: var(--r-input); border: 1px solid transparent;
  background: transparent; display: inline-grid; place-items: center; color: var(--navy); flex: none;
}
.icon-btn:hover { background: var(--neutral); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px #fff; }

.switcher-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; max-width: 280px;
  border: 1px solid var(--border); background: var(--card); border-radius: var(--r-input); box-shadow: var(--shadow); font-weight: 600;
}
.switcher-btn .sw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-btn:hover { border-color: #D1D5DB; }

/* Dropdown panels */
.dd { position: relative; }
.dd-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 340px; max-width: calc(100vw - 24px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-pop);
}
.dd-search { padding: 10px; border-bottom: 1px solid var(--border); }
.dd-list { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; }
.dd-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-input);
  background: none; border: 0; text-align: left; color: var(--navy); text-decoration: none;
}
.dd-item:hover, .dd-item:focus-visible { background: var(--hover); text-decoration: none; }
.dd-item .grow { flex: 1; min-width: 0; }
.dd-item .sub { display: block; font-size: 12px; color: var(--slate); }
.dd-foot { border-top: 1px solid var(--border); padding: 6px; }
.dd-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; }
.dd-group { padding: 8px 14px 2px; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--slate); }
.notif-item { align-items: flex-start; }
.notif-item .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.notif-time { font-size: 12px; color: var(--slate); white-space: nowrap; }
.flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(15,27,61,.12); flex: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-dot.ok { background: var(--success); }
.status-dot.warn { background: var(--warning); }
.status-dot.info { background: var(--blue); }
.status-dot.bad { background: var(--danger); }

.backdrop { position: fixed; inset: 0; background: rgba(14, 26, 60, .35); z-index: 35; }

/* ---------- Content ---------- */

.main { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head .ph-text { min-width: 0; flex: 1 1 360px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 10px; }
.eyebrow svg { display: none; }
.page-sub { color: var(--slate); margin-top: 6px; font-size: 15px; }
.page-sub strong { font-weight: 600; color: var(--navy); }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 20px; align-content: start; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 24px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 12px 24px 20px; }
.card-link { font-size: var(--fs-sm); font-weight: 600; }
.card.accent-gold { border-color: var(--blue-line); background: #F5F7FF; }
.card.accent-gold .gold-bar { display: none; }

/* Stat cards */
.stat { padding: 22px 24px; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.stat-value { font: 700 var(--fs-hero)/1.15 var(--font-head); color: var(--navy); margin-top: 12px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-value.text { font-size: 22px; line-height: 1.3; }
.stat-sub { font-size: var(--fs-sm); color: var(--slate); margin-top: 4px; }
.stat-sub strong { color: var(--navy); font-weight: 600; }
.progress { height: 6px; border-radius: var(--r-pill); background: var(--neutral); overflow: hidden; margin-top: 14px; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.progress.gold > span { background: var(--blue); }
.progress.ok > span { background: var(--blue); }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); margin-top: 6px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--neutral); color: #4B5263;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill.ok { background: #ECF6F0; color: var(--success); }
.pill.warn { background: #FBF4E8; color: var(--warning-ink); }
.pill.bad { background: #FCEEEC; color: var(--danger); }
.pill.info { background: var(--blue-tint); color: var(--blue-ink); }
.pill.gold { background: var(--blue-tint); color: var(--blue-ink); }
.pill.navy { background: var(--neutral); color: #4B5263; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; background: var(--neutral); color: #4B5263; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--card); font-size: 12px; font-weight: 500; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: var(--r-btn); border: 1px solid var(--border); background: var(--card); color: var(--navy);
  font-weight: 600; font-size: var(--fs-md); white-space: nowrap; text-decoration: none; box-shadow: var(--shadow);
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; border-color: #D1D5DB; background: var(--hover); }
.btn-primary, .btn-gold { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: none; }
.btn-primary:hover, .btn-gold:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--blue-ink); padding: 0 8px; }
.btn-ghost:hover { background: var(--blue-tint); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-wa:not(.btn-primary) svg { color: #1E8E4F; }

/* Inputs */
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-input);
  background: var(--card); font-size: var(--fs-md);
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: 12px; color: var(--slate); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.search { position: relative; display: block; width: 260px; max-width: 100%; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.search input { padding-left: 34px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-md); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.switch { position: relative; display: inline-block; vertical-align: middle; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #C3C8D2; transition: background .15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

/* Segmented control (period toggle, ecomflow style) */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #EDEFF3; }
.seg button { border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 8px; font-size: var(--fs-sm); font-weight: 600; color: #535A6A; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }

/* Filter tabs above tables */
.dv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ftabs { display: flex; gap: 4px; flex-wrap: wrap; }
.ftab {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-btn);
  border: 1px solid transparent; background: none; font-size: var(--fs-sm); font-weight: 600; color: var(--slate);
}
.ftab:hover { color: var(--navy); background: var(--neutral); }
.ftab[aria-pressed="true"] { background: var(--card); border-color: var(--border); color: var(--navy); box-shadow: var(--shadow); }
.ftab .count { font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }
.ftab[aria-pressed="true"] .count { color: var(--navy); }

/* Panel tabs (Company, Settings) */
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab {
  height: 40px; padding: 0 12px; border: 0; background: none; font-weight: 600; color: var(--slate);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.ptab:hover { color: var(--navy); }
.ptab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--blue); }
.ptab-group { align-self: center; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 600; padding: 0 6px 0 14px; white-space: nowrap; }
.ptab-group:first-child { padding-left: 0; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.tbl th {
  text-align: left; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate);
  padding: 12px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--hover);
}
.tbl th:first-child { border-top-left-radius: var(--r-card); }
.tbl th:last-child { border-top-right-radius: var(--r-card); }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tbl th button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.tbl th .sort-ic { opacity: .45; }
.tbl th[aria-sort] .sort-ic { opacity: 1; color: var(--navy); }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl .cell-main { font-weight: 600; color: var(--navy); }
.tbl .cell-main a { color: var(--navy); }
.tbl .cell-sub { display: block; font-size: var(--fs-sm); color: var(--slate); font-weight: 400; }
.tbl td.right, .tbl th.right { text-align: right; }
.tbl .sel { width: 36px; padding-right: 0; }
.tbl .acts { white-space: nowrap; text-align: right; width: 1%; }
.act {
  display: inline-flex; align-items: center; height: 32px; padding: 0 8px; gap: 0; border-radius: var(--r-input);
  border: 1px solid transparent; background: none; color: var(--slate); vertical-align: middle; text-decoration: none;
}
.act:hover, .act:focus-visible { color: var(--blue-ink); background: var(--blue-tint); text-decoration: none; }
/* The label floats above the icon, so hovering never changes the column width
   (an inline label made the table re-flow and the icon jump away from the cursor). */
.act .act-lbl { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; padding: 4px 8px; border-radius: 6px; background: var(--navy); color: #fff; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.3; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, visibility .12s; }
.act:hover .act-lbl, .act:focus-visible .act-lbl { opacity: 1; visibility: visible; }

/* Empty, loading */
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 36px 20px; }
.empty .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #ECF6F0; color: var(--success); margin-bottom: 8px; }
.empty .ic.navy { background: var(--blue-tint); color: var(--blue); }
.empty .ic.blue { background: var(--blue-tint); color: var(--blue); }
.empty strong { font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.empty p { color: var(--slate); font-size: var(--fs-sm); max-width: 340px; }
.empty.compact { padding: 20px 12px; }
.skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #EDEFF3 0%, #F6F7F9 50%, #EDEFF3 100%); background-size: 200% 100%; animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } * { transition: none !important; } }
.skel-line { height: 12px; margin: 8px 0; }

/* Lists inside cards */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.rows > li:first-child { border-top: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .title { font-weight: 600; line-height: 1.35; color: var(--navy); }
.rows .meta { font-size: var(--fs-sm); color: var(--slate); }
.ic-circle { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--blue-tint); color: var(--blue); }
.ic-circle.ok { background: #ECF6F0; color: var(--success); }
.ic-circle.warn { background: var(--blue-tint); color: var(--blue); }
.ic-circle.bad { background: var(--blue-tint); color: var(--blue); }
.ic-circle.info { background: var(--blue-tint); color: var(--blue); }
.ic-circle.gold { background: var(--blue-tint); color: var(--blue); }

.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--slate); font-size: var(--fs-sm); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; color: var(--navy); }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl > li { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.tl > li:last-child { padding-bottom: 0; }
.tl > li::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--border); }
.tl > li:last-child::before { display: none; }
.tl .when { font-size: 12px; color: var(--slate); }

/* Steps (bank progress, service) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; counter-reset: s; }
.steps li { position: relative; padding-top: 34px; font-size: var(--fs-sm); }
.steps li::before {
  counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--card); border: 2px solid var(--border); color: var(--slate);
}
.steps li::after { content: ''; position: absolute; top: 12px; left: 32px; right: 4px; height: 2px; background: var(--border); }
.steps li:last-child::after { display: none; }
.steps li.done::before { content: '\2713'; background: var(--success); border-color: var(--success); color: #fff; }
.steps li.done::after { background: var(--blue); }
.steps li.current::before { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.steps .s-label { font-weight: 600; display: block; line-height: 1.3; }
.steps .s-date { color: var(--slate); font-size: 12px; }

.vsteps { list-style: none; margin: 0; padding: 0; }
.vsteps li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.vsteps li:last-child { padding-bottom: 0; }
.vsteps li::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--border); }
.vsteps li.done::before { background: var(--blue); }
.vsteps li:last-child::before { display: none; }
.vs-dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--border); background: var(--card); color: var(--slate); font-size: 12px; font-weight: 700; }
.vsteps li.done .vs-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.vsteps li.current .vs-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.vs-label { font-weight: 600; }
.vs-meta { font-size: var(--fs-sm); color: var(--slate); }

/* Requests */
.req { padding: 22px 24px; display: grid; gap: 14px; }
.req-top { display: flex; gap: 14px; align-items: flex-start; }
.req-top .grow { flex: 1; min-width: 0; }
.req-title { font: 600 15px/1.35 var(--font-head); color: var(--navy); }
.req-why { color: var(--slate); font-size: var(--fs-sm); margin-top: 2px; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); color: var(--slate); align-items: center; }
.req-meta span { display: inline-flex; align-items: center; gap: 6px; }
.req-body { border-top: 1px solid var(--border); padding-top: 14px; }
.req-compliance { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--slate); }
.req.is-done { opacity: .9; }
.req.is-done .req-title { color: var(--slate); }
.drop {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px; border: 2px dashed var(--border);
  border-radius: var(--r-card); background: var(--page); color: var(--slate); cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--blue); background: #F5F7FF; color: var(--navy); }
.drop strong { color: var(--navy); }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-input); background: var(--card); }
.summary { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 16px; margin: 0 0 12px; padding: 12px 14px; background: var(--page); border-radius: var(--r-input); border: 1px solid var(--border); }
.summary dt { color: var(--slate); font-size: var(--fs-sm); }
.summary dd { margin: 0; font-weight: 500; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Expiring strip */
.strip { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 20px; flex-wrap: wrap; }
.strip .grow { flex: 1; min-width: 200px; }
.strip-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Modal */
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(14, 26, 60, .4); }
.modal { width: 520px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-pop); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 0; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 16px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px 24px; flex-wrap: wrap; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-card); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.choice input { margin-top: 3px; accent-color: var(--blue); }
.line-items { list-style: none; margin: 0; padding: 0; }
.line-items li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-md); }
.line-items li.total { border-bottom: 0; font-weight: 700; font-family: var(--font-head); font-size: 16px; padding-top: 12px; }
.doc-preview { border: 1px solid var(--border); border-radius: var(--r-input); background: var(--page); padding: 28px 24px; display: grid; gap: 10px; }
.pv-lines { display: grid; gap: 10px; margin: 6px 0; }
.pv-lines span { display: block; height: 10px; border-radius: 5px; background: #E6E9EF; }
.modal { scrollbar-gutter: stable; overscroll-behavior: contain; }

/* Toast */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-pop); font-weight: 500; font-size: var(--fs-sm); display: flex; align-items: center; gap: 8px; }

/* Company header */
.co-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.co-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--fs-sm); color: var(--slate); margin-top: 8px; }
.co-meta span { display: inline-flex; align-items: center; gap: 6px; }
.co-meta strong { color: var(--navy); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Person cards */
.person { padding: 22px 24px; display: grid; gap: 14px; }
.person-top { display: flex; gap: 12px; align-items: center; }
.person-top .grow { flex: 1; min-width: 0; }

/* Conversations */
.conv { border-top: 1px solid var(--border); }
.conv:first-child { border-top: 0; }
.conv > button { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 12px; padding: 14px 20px; cursor: pointer; align-items: flex-start; }
.conv > button:hover { background: var(--hover); }
.conv > button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.conv .grow { flex: 1; min-width: 0; }
.conv .preview { color: var(--slate); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { padding: 0 20px 16px 64px; display: grid; gap: 8px; }
.msg { max-width: 520px; padding: 10px 12px; border-radius: 12px; background: var(--page); border: 1px solid var(--border); font-size: var(--fs-sm); }
.msg.me { justify-self: end; background: var(--blue-tint); border-color: transparent; }
.msg .who { font-size: 12px; color: var(--slate); margin-bottom: 2px; }

.mobile-contact { display: none; margin-top: 24px; }
.proto-note { margin-top: 28px; font-size: 12px; color: var(--slate); text-align: center; }

/* ---------- Responsive ---------- */

/* Desktop collapse to icons */
@media (min-width: 1024px) {
  body.sb-collapsed .sidebar { width: var(--sidebar-mini); }
  body.sb-collapsed .app { margin-left: var(--sidebar-mini); }
}
body.sb-collapsed .sidebar .nav-label,
body.sb-collapsed .sidebar .nav-group,
body.sb-collapsed .sidebar .logo-word,
body.sb-collapsed .sidebar .nav-badge-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.sb-collapsed .sidebar .nav a, body.sb-collapsed .sidebar .nav .nav-btn { justify-content: center; padding: 0; }
body.sb-collapsed .sidebar .nav-badge { position: absolute; margin: -18px 0 0 22px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
body.sb-collapsed .sidebar .nav a, body.sb-collapsed .sidebar .nav .nav-btn { position: relative; }
body.sb-collapsed .sidebar .sb-head { justify-content: center; padding: 0; }
body.sb-collapsed .sidebar .contact-card { display: none; }
body.sb-collapsed .sidebar .sb-mini-contact { display: grid; justify-items: center; }

/* Tablet: icons by default, toggle expands as overlay */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .sidebar { width: var(--sidebar-mini); }
  .app { margin-left: var(--sidebar-mini); }
  body:not(.sb-expanded) .sidebar .nav-label,
  body:not(.sb-expanded) .sidebar .nav-group,
  body:not(.sb-expanded) .sidebar .logo-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body:not(.sb-expanded) .sidebar .nav a, body:not(.sb-expanded) .sidebar .nav .nav-btn { justify-content: center; padding: 0; position: relative; }
  body:not(.sb-expanded) .sidebar .nav-badge { position: absolute; margin: -18px 0 0 22px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  body:not(.sb-expanded) .sidebar .sb-head { justify-content: center; padding: 0; }
  body:not(.sb-expanded) .sidebar .contact-card { display: none; }
  body:not(.sb-expanded) .sidebar .sb-mini-contact { display: grid; justify-items: center; }
  body.sb-expanded .sidebar { width: var(--sidebar); box-shadow: var(--shadow-pop); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1100px) and (min-width: 1024px) {
  .grid-main { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* Phone: drawer */
@media (max-width: 767.98px) {
  :root { --gutter: 16px; }
  .sidebar { transform: translateX(-100%); width: 280px; max-width: 86vw; box-shadow: var(--shadow-pop); }
  body.sb-open .sidebar { transform: none; }
  body.sb-collapsed .sidebar { width: 280px; }
  .app, body.sb-collapsed .app { margin-left: 0; }
  .topbar { gap: 6px; }
  .crumbs ol li:not(:last-child) { display: none; }
  .switcher-btn { max-width: 150px; padding: 0 8px; }
  .main { padding-top: 18px; }
  .grid-3, .grid-2, .grid-main, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head { align-items: flex-start; }
  .ph-actions { width: 100%; }
  .stat-value { font-size: 28px; }
  .search { width: 100%; }
  .dv-bar { align-items: stretch; }
  .ftabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .ftabs::-webkit-scrollbar { display: none; }
  .ftab { flex: none; }
  .kv, .summary { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd, .summary dd { margin-bottom: 8px; }
  .steps { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .steps li { padding: 0 0 16px 38px; min-height: 26px; }
  .steps li::after { top: 30px; left: 12px; right: auto; bottom: 0; width: 2px; height: auto; }
  .thread { padding-left: 20px; }
  .mobile-contact { display: block; }
  .card-head, .card-body, .card-pad, .stat, .req, .person { padding-left: 16px; padding-right: 16px; }

  /* Tables become cards of label and value pairs */
  .tbl-wrap { overflow: visible; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 16px; border-bottom: 1px solid var(--border); position: relative; }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; font-size: var(--fs-sm); }
  .tbl td::before { content: attr(data-label); color: var(--slate); font-weight: 500; text-align: left; flex: none; }
  .tbl td.cell-first { display: block; text-align: left; font-size: var(--fs-md); padding-bottom: 6px; }
  .tbl td.cell-first::before, .tbl td.acts::before, .tbl td.sel::before { display: none; }
  .tbl td.sel { position: absolute; right: 12px; top: 12px; width: auto; padding: 0; }
  .tbl tr.has-sel td.cell-first { padding-right: 36px; }
  .tbl td.acts { justify-content: flex-start; width: 100%; padding-top: 8px; margin-left: -8px; }
  .tbl td.acts .act-lbl, .tbl td.acts .act:hover .act-lbl { position: static; opacity: 1; visibility: visible; background: none; color: inherit; padding: 0; margin-left: 6px; font-size: var(--fs-sm); }
  .tbl tbody tr:hover td { background: none; }
}

/* Late additions */
.drop:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.grid-support { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
@media (max-width: 1023.98px) { .grid-support { grid-template-columns: minmax(0, 1fr); } }
details summary { color: var(--blue-ink); }
.stat-label .pill { text-transform: none; letter-spacing: 0; }
.contact-actions .btn { width: 100%; padding: 0 8px; gap: 6px; min-width: 0; }
.team-row { display: grid !important; grid-template-columns: auto 1fr; align-items: center; }
.team-row .team-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.team-row .team-btns .btn { width: 100%; }

/* Sidebar column background that also shows in full-page screenshots */
body { position: relative; min-height: 100vh; --app-ml: var(--sidebar); }
body::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: var(--app-ml); background: var(--card); border-right: 1px solid var(--border); pointer-events: none; }
@media (min-width: 1024px) { body.sb-collapsed { --app-ml: var(--sidebar-mini); } }
@media (min-width: 768px) and (max-width: 1023.98px) { body { --app-ml: var(--sidebar-mini); } }
@media (max-width: 767.98px) {
  body { --app-ml: 0px; }
  body::before { display: none; }
  .sidebar { box-shadow: none; }
  body.sb-open .sidebar { box-shadow: var(--shadow-pop); }
}
.act { position: relative; }
.steps li.done::before, .vs-check { content: ''; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.btn svg { flex: none; }
.strip { align-items: flex-start; }
@media (max-width: 767.98px) {
  .crumbs li:last-child svg { display: none; }
  .tbl td .td-v { text-align: right; min-width: 0; }
  .tbl td.cell-first .td-v, .tbl td.acts .td-v { text-align: left; display: block; }
  .tbl td.acts .td-v { display: flex; gap: 4px; }
}
.dd-panel { max-height: calc(100vh - 72px); overflow-y: auto; }
.sr-only { left: 0; top: 0; }

/* ---------- Brand pass, vyssor.com (25 Nov 2026) ---------- */

/* Logo: the site's PNG, the site icon when the sidebar is icons only, the wordmark offline */
.sb-head { padding: 0 22px; }
.logo-img { width: 130px; height: auto; }
.logo-markimg { display: none; width: 28px; height: 28px; }
.logo-word { display: none; color: var(--navy); }
.logo.logo-off .logo-img, .logo.logo-off .logo-markimg { display: none !important; }
.logo.logo-off .logo-word { display: inline; }
@media (min-width: 1024px) {
  body.sb-collapsed .sidebar .logo-img { display: none; }
  body.sb-collapsed .sidebar .logo-markimg { display: block; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  body:not(.sb-expanded) .sidebar .logo-img { display: none; }
  body:not(.sb-expanded) .sidebar .logo-markimg { display: block; }
}
.doc-preview .logo-img { width: 110px; }

/* Calmer chrome */
.nav { padding: 12px 12px; }
.nav a, .nav .nav-btn { height: 40px; }
.nav a[aria-current="page"] svg { color: var(--blue); }
.nav-group { margin: 18px 0 6px 10px; letter-spacing: .1em; }
h1 { color: var(--navy); }
.card-head h2, .card-pad > h2, section > h2 { color: var(--navy); }
.card-link { color: var(--blue-ink); }

/* Contact card: WhatsApp is the one main action; email sits beside it as an icon button */
.contact-card { background: var(--page); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.contact-eyebrow { color: var(--blue-ink); letter-spacing: .12em; }
.contact-name { color: var(--navy); }
.contact-card .contact-actions { grid-template-columns: minmax(0, 1fr) 36px; gap: 8px; }
.contact-card .contact-actions .btn { height: 36px; width: 100%; padding: 0 10px; gap: 8px; }
.contact-card .btn-wa { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: none; }
.contact-card .btn-wa:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.contact-card .btn-wa svg { color: #fff; }
.contact-card .btn-mail { padding: 0; }
.contact-card .btn-mail .btn-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mobile-contact .contact-card { background: var(--card); padding: 18px; }
.mobile-contact .contact-card .contact-actions { grid-template-columns: 1fr 1fr; }
.mobile-contact .contact-card .btn-mail { padding: 0 12px; }
.mobile-contact .contact-card .btn-mail .btn-lbl { position: static; width: auto; height: auto; clip: auto; }
.sb-foot { padding: 14px 12px; }
.cell-pill { margin-top: 4px; }
@media (max-width: 767.98px) {
  /* Request cards: the status pill drops under the title instead of squeezing it */
  .req-top { flex-wrap: wrap; row-gap: 8px; }
  .req-top .grow { flex: 1 1 calc(100% - 52px); }
  .req-top > .pill { margin-left: 50px; }
  .page-head h1 { font-size: 24px; }
}

/* Your year ahead (compliance calendar) */
.cal-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cal-m { width: 100%; min-height: 76px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); text-align: left; font: inherit; color: var(--navy); }
button.cal-m { cursor: pointer; }
button.cal-m:hover { border-color: var(--blue-line); background: #F5F7FF; }
button.cal-m:focus-visible { outline: none; box-shadow: var(--focus); }
.cal-m.empty { background: var(--hover); color: var(--slate); }
.cal-mn { font-size: 13px; font-weight: 600; }
.cal-yr { font-size: 11px; color: var(--slate); line-height: 1; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 8px; }
.cal-dots i, .cal-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.cal-dots i.v, .cal-legend i.v { background: #C3C8D2; }
.cal-legend { display: flex; gap: 18px; margin-top: 14px; font-size: var(--fs-sm); color: var(--slate); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-group + .cal-group { margin-top: 8px; }
.cal-month { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding: 14px 0 2px; scroll-margin-top: 84px; }
.cal-month:focus { outline: none; }
.cal-row { align-items: flex-start !important; }
.cal-date { width: 44px; height: 46px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: var(--hover); border: 1px solid var(--border); color: var(--navy); }
.cal-date.none { color: var(--slate); }
.cal-d { font: 700 16px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.cal-w { font-size: 11px; color: var(--slate); line-height: 1.2; margin-top: 1px; }
.cal-row .meta { margin-top: 2px; }
.cal-when { font-size: 12px; color: var(--slate); margin-top: 4px; }
.cal-side { display: flex; align-items: center; gap: 6px; flex: none; }
.cal-notes { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink); }
/* Narrow side card: the pill moves under the text */
.cal-narrow .cal-row { flex-wrap: wrap; }
.cal-narrow .cal-row .grow { flex: 1 1 calc(100% - 58px); }
.cal-narrow .cal-row .cal-side { margin-left: 58px; }
@media (max-width: 1023.98px) {
  .cal-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .cal-m { min-height: 64px; padding: 8px 8px 10px; }
  .cal-row { flex-wrap: wrap; }
  .cal-row .grow { flex: 1 1 calc(100% - 58px); }
  .cal-row .cal-side { margin-left: 58px; }
}

/* CRM mapping: ?crm=1 shows the field behind each status */
.status-dot.off { background: #C3C8D2; }
.t-blue { color: var(--blue-ink); }
.crm-src { display: block; margin-top: 6px; font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #8A5A12; background: #FBF4E8; border-radius: 6px; padding: 3px 6px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.pill + .crm-src { margin-top: 4px; }
.issue-list { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--fs-sm); }
.map-table td code, .map-table th code { font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }

/* KYC checklist: one row per item, each open one with its own next step */
.kyc-group { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 4px 0 6px; }
.kyc-items + .kyc-group { margin-top: 16px; }
.kyc-items { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; }
.kyc-items li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); }
.kyc-items li:first-child { border-top: 0; }
.kyc-items .grow { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.kyc-label { font-weight: 600; color: var(--navy); }
.kyc-person { font-size: var(--fs-sm); color: var(--slate); }
.kyc-state { flex-basis: 100%; font-size: 12px; color: var(--slate); }
.kyc-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blue-tint); color: var(--blue); }
.kyc-done .kyc-ic { background: #ECF6F0; color: var(--success); }
.kyc-review .kyc-ic { background: var(--neutral); color: #4B5263; }
.kyc-done .kyc-label { color: var(--slate); font-weight: 500; }
/* New request options */
.req-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); text-decoration: none; }
.req-option:hover { border-color: var(--blue-line); background: #F5F7FF; text-decoration: none; }
.req-option .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.req-option strong { color: var(--navy); font-weight: 600; }
.req-option > svg { color: var(--slate); flex: none; }

/* Notification switches: one column per channel, centred, every row on one line */
.tbl th.ch, .tbl td.ch { width: 128px; text-align: center; }
.tbl td.ch .switch { margin: 0 auto; }
@media (max-width: 767.98px) {
  .tbl td.ch { width: auto; text-align: right; }
  .tbl td.ch .switch { margin: 0; }
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }

/* Team view banner */
.team-bar { display: flex; align-items: center; gap: 10px; padding: 9px 32px; background: var(--navy); color: #fff; font-size: var(--fs-sm); }
.team-bar svg { flex: none; opacity: .85; }
.team-bar .grow { flex: 1; min-width: 0; }
.team-bar a { color: #fff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
@media (max-width: 767.98px) { .team-bar { padding: 9px 16px; align-items: flex-start; } }
/* Team client list */
.staff-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; background: var(--card); border-bottom: 1px solid var(--border); }
.staff-head .who { font-size: var(--fs-sm); color: var(--slate); text-align: right; }
.staff-main { max-width: 1200px; margin: 0 auto; padding: 32px; }
@media (max-width: 767.98px) { .staff-head, .staff-main { padding-left: 16px; padding-right: 16px; } }
body.staff-page::before { display: none; }

/* Sign out sits in the nav as a button with the links' look. */
.nav .nav-btn { width: 100%; border: 0; background: none; font-family: inherit; font-size: inherit; cursor: pointer; text-align: left; }
.nav .nav-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
/* A real file in the preview: PDFs in a frame, images scaled to fit. */
.doc-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--neutral); height: min(62vh, 640px); display: flex; align-items: center; justify-content: center; }
.doc-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.doc-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.doc-frame .doc-preview { margin: 16px; }
@media (max-width: 640px) { .doc-frame { height: 56vh; } }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--blue-ink); text-decoration: underline; cursor: pointer; }
.linkish:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.note-bar { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #EEF6F0; color: #12703D; font-size: 14px; }
.note-bar.bad { background: #FDF1F1; color: #A3282D; }

/* A modal never grows past the screen: the grid track may shrink, the modal fills it up to its own width. */
.modal-root { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.modal { width: min(520px, 100%); }
/* Long codes and links (a redirect URI, a calendar link) wrap instead of pushing the page sideways. */
.staff-main code, .modal code { overflow-wrap: anywhere; word-break: break-word; }
.kv dd select { max-width: 100%; }
.linkish { display: inline-block; padding: 7px 2px; }
