/* Felyx HQ — one stylesheet for marketing + app. Tokens first. */
@font-face {
  font-family: "Inter";
  src: url("../vendor/fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Harbor Blue */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #edf1f6;
  --ink: #141a24;
  --ink-2: #4a5566;
  --ink-3: #6f7a8c;
  --line: #dde3ec;
  --accent: #2453c7;
  --accent-strong: #1b3f9c;
  --accent-ink: #ffffff;
  --accent-soft: #e6edfb;
  --navy: #0d1b3e;
  --warn: #9a5b12;
  --warn-soft: #fbefdc;
  --danger: #b3261e;
  --danger-soft: #fce8e6;
  --ok: #1f6b3e;
  --ok-soft: #e1f2e6;
  --radius: 10px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --grid: #e6eaf0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131b; --surface: #151c27; --surface-2: #1c2532; --ink: #e8edf5; --ink-2: #b3bdcc;
    --ink-3: #8a96a8; --line: #263142; --accent: #6f97f7; --accent-strong: #9ab6fa; --accent-ink: #0b1430;
    --accent-soft: #1a2849; --navy: #0a1430;
    --warn: #e9b46a; --warn-soft: #3a2c17; --danger: #f08c84; --danger-soft: #3d1f1d; --ok: #7fd3a0; --ok-soft: #1c3426;
    --series-1: #3987e5; --series-2: #d95926; --grid: #232d3b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0e131b; --surface: #151c27; --surface-2: #1c2532; --ink: #e8edf5; --ink-2: #b3bdcc;
    --ink-3: #8a96a8; --line: #263142; --accent: #6f97f7; --accent-strong: #9ab6fa; --accent-ink: #0b1430;
    --accent-soft: #1a2849; --navy: #0a1430;
    --warn: #e9b46a; --warn-soft: #3a2c17; --danger: #f08c84; --danger-soft: #3d1f1d; --ok: #7fd3a0; --ok-soft: #1c3426;
    --series-1: #3987e5; --series-2: #d95926; --grid: #232d3b;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--ink-2); } .small { font-size: .875rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.05rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field .help { font-size: .82rem; color: var(--ink-3); margin-top: .3rem; }
.field .error { font-size: .85rem; color: var(--danger); margin-top: .3rem; }
input[type=search], input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], textarea, select { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input:disabled { background: var(--surface-2); color: var(--ink-2); }
.form-errors { background: var(--danger-soft); color: var(--danger); padding: .7rem .9rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.inline-form { display: inline; }
.row-form { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.row-form .field { margin: 0; flex: 1 1 180px; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.messages li { padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem; font-size: .95rem; background: var(--surface-2); }
.messages .success { background: var(--ok-soft); color: var(--ok); }
.messages .error { background: var(--danger-soft); color: var(--danger); }
.messages .info { background: var(--accent-soft); color: var(--accent); }

/* Cards, badges, tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; }
.card + .card { margin-top: 1.25rem; }
.features > .card, .pricing > .card, .grid-3 > .card { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .5rem .5rem; border-bottom: 1px solid var(--line); }
.table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.actions select { width: auto; padding: .3rem .5rem; font-size: .85rem; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-brand { display: block; text-align: center; margin-bottom: 1.25rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.auth-foot { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--ink-2); }

/* App shell */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
.brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); text-decoration: none; padding: 0 .5rem; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: block; padding: .5rem .65rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav .soon { font-size: .7rem; color: var(--ink-3); margin-left: .3rem; }
.org-switch select { font-size: .9rem; }
.sidebar-foot { margin-top: auto; font-size: .85rem; color: var(--ink-2); padding: 0 .5rem; }
.sidebar-foot button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.main { padding: 2rem clamp(16px, 4vw, 40px); max-width: 1100px; width: 100%; min-width: 0; }
.page-head { margin-bottom: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat .label { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.stat .value { font-size: 1.6rem; font-weight: 600; margin-top: .2rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.steps li.done::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.steps .step-body { flex: 1; }
.howto { background: var(--surface-2); border-radius: 10px; padding: 1rem 1.1rem; font-size: .9rem; }
.howto ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-foot { margin-top: 0; width: 100%; }
  .grid-3, .two-col { grid-template-columns: 1fr; }
}

/* Marketing */
.mk-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.mk-nav nav { display: flex; gap: 1.25rem; align-items: center; }
.mk-nav nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.hero { padding: clamp(48px, 9vw, 110px) 0 60px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 1.1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; }
.preview .bar { display: flex; gap: 6px; margin-bottom: .9rem; }
.preview .bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .8rem; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: .7rem .8rem; }
.kpi b { display: block; font-size: 1.25rem; }
.kpi small { color: var(--ink-3); font-size: .74rem; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: .6rem .4rem 0; border-top: 1px solid var(--line); }
.bars i { flex: 1; background: var(--accent-soft); border-radius: 4px 4px 0 0; }
.bars i:nth-child(n+9) { background: var(--accent); }
.section { padding: 70px 0; border-top: 1px solid var(--line); }
.section h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 22ch; margin-bottom: 2rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2rem; font-weight: 600; margin: .4rem 0; }
.plan .price small { font-size: .9rem; color: var(--ink-3); font-weight: 500; }
.plan ul { padding-left: 1.1rem; color: var(--ink-2); flex: 1; margin: .5rem 0 1.25rem; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }
.mk-foot { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 860px) {
  .hero, .features, .pricing { grid-template-columns: 1fr; }
  .mk-nav nav a.hide-sm { display: none; }
}

/* Choice cards (package + setup choice) */
[hidden] { display: none !important; }
.choice-group { border: 0; padding: 0; margin: 0 0 1.1rem; }
.choice-group legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .45rem; cursor: pointer; background: var(--surface); }
.choice:hover { border-color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input { margin-top: .25rem; accent-color: var(--accent); }
.choice-body { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.choice-title { font-weight: 600; display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.choice-price { font-weight: 500; color: var(--ink-2); font-size: .9rem; }
.choice-desc { font-size: .85rem; color: var(--ink-2); }
.choice-group .error { font-size: .85rem; color: var(--danger); }
input[type=number] { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.notice { display: flex; gap: .9rem; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 1rem 1.1rem; }
.notice p { margin: 0; }

/* KPI dashboard */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dash-head h1 { margin-bottom: .25rem; }
.dash-filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.dash-head { position: relative; }
.dash-sync { margin: 0; }
.dash-filters select { width: auto; min-width: 180px; padding: .45rem .65rem; font-size: .9rem; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: .38rem .75rem; border-radius: 7px; font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.kpi-section { margin-bottom: 2.25rem; }
.kpi-section > h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.kpi-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.kpi-label { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.kpi-value { font-size: 1.65rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-meta { font-size: .8rem; line-height: 1.4; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: .25rem; }
.delta.good { color: var(--ok); } .delta.bad { color: var(--danger); } .delta.flat { color: var(--ink-2); }
.kpi-info { position: relative; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-3); font: 600 11px/16px var(--font-sans); cursor: help; padding: 0; }
.kpi-info:hover, .kpi-info:focus-visible { color: var(--ink); border-color: var(--ink-3); outline: none; }
.kpi-info::after { content: attr(data-tip); position: absolute; right: -6px; top: calc(100% + 8px); width: 260px; background: var(--ink); color: var(--surface); font: 400 .8rem/1.45 var(--font-sans); text-align: left; padding: .6rem .7rem; border-radius: 8px; z-index: 20; pointer-events: none; display: none; }
.kpi-info:hover::after, .kpi-info:focus::after { display: block; }
.strip { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; margin: .9rem 0 0; padding: .7rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.strip-label { font-weight: 600; color: var(--ink-2); font-size: .82rem; }
.strip strong { font-variant-numeric: tabular-nums; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.chart-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1rem .6rem; min-width: 0; }
.chart-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .6rem; flex-wrap: wrap; }
.chart-box { position: relative; height: 230px; }
.chart-empty { padding: 2rem 0; text-align: center; }
.chart-table { margin-top: .4rem; font-size: .85rem; }
.chart-table summary { cursor: pointer; color: var(--ink-3); font-size: .8rem; }
.chart-table > div { max-height: 240px; overflow: auto; margin-top: .4rem; }
.num-table td, .num-table th { white-space: nowrap; }
.num-table td:not(:first-child), .num-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.definitions { margin-top: .5rem; }
.definitions summary { cursor: pointer; }
.definitions h3 { margin: 1.1rem 0 .4rem; font-size: .95rem; }
.definitions dl { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: .35rem 1rem; font-size: .9rem; }
.definitions dt { font-weight: 600; } .definitions dd { margin: 0; color: var(--ink-2); }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .chart-grid { grid-template-columns: 1fr; }
  .definitions dl { grid-template-columns: 1fr; }
  .kpi-info::after { width: min(240px, 70vw); }
}
@media (max-width: 420px) { .kpi-grid { grid-template-columns: 1fr 1fr; gap: .5rem; } .kpi-value { font-size: 1.35rem; } }

/* Alerts */
.alerts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.alerts-head h2 { margin: 0; font-size: 1.1rem; }
.alerts-counts { display: flex; gap: .9rem; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
.sev { font-weight: 600; }
.sev-critical { color: var(--danger); } .sev-warning { color: var(--warn); } .sev-ok { color: var(--ok); }
.alert-list { display: flex; flex-direction: column; gap: .5rem; }
.alert-group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.alert-group.sev-border-critical { border-left: 4px solid var(--danger); border-radius: 0 12px 12px 0; }
.alert-group.sev-border-warning { border-left: 4px solid var(--warn); border-radius: 0 12px 12px 0; }
.alert-group > summary { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.alert-group > summary::-webkit-details-marker { display: none; }
.alert-group > summary::after { content: "›"; margin-left: auto; color: var(--ink-3); font-size: 1.2rem; transition: transform .15s; }
.alert-group[open] > summary::after { transform: rotate(90deg); }
.alert-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; flex: 0 0 22px; }
.alert-icon.sev-critical { background: var(--danger-soft); } .alert-icon.sev-warning { background: var(--warn-soft); } .alert-icon.sev-ok { background: var(--ok-soft); }
.alert-title { display: flex; flex-direction: column; min-width: 0; }
.alert-badge { margin-left: auto; font-weight: 700; font-size: .8rem; padding: .1rem .55rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.alert-badge.sev-critical { background: var(--danger-soft); } .alert-badge.sev-warning { background: var(--warn-soft); }
.alert-badge + * { margin-left: 0; }
.alert-group.has-items > summary::after { margin-left: .5rem; }
.alert-body { padding: 0 1rem 1rem 3.1rem; }
.alert-body > p { margin: 0 0 .6rem; }
.alert-items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.alert-items li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.alert-items li:last-child { border-bottom: 0; }
.alert-item-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.alert-items li.is-dismissed { opacity: .75; }
.dismiss { position: relative; flex: 0 0 auto; }
.dismiss > summary { list-style: none; }
.dismiss > summary::-webkit-details-marker { display: none; }
.dismiss-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; width: 280px; display: flex; flex-direction: column; gap: .5rem; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.dismiss-form select { width: auto; padding: .3rem .5rem; margin-left: .3rem; }
.dismiss-form input[type=text] { padding: .45rem .6rem; font-size: .9rem; }
.dismissed-list { margin-top: .6rem; }
.dismissed-list > summary { cursor: pointer; }
@media (max-width: 860px) { .alert-body { padding-left: 1rem; } .alert-items li { flex-direction: column; } .dismiss-form { right: auto; left: 0; } }

/* Checkbox rows (email settings) */
.check-row { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row:last-of-type { border-bottom: 0; }
.check-row input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.check-row > span { display: flex; flex-direction: column; gap: .15rem; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo-mark { flex: 0 0 auto; display: block; }
.logo-text { font-weight: 750; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.logo-hq { color: var(--accent); }
.brand, .auth-brand { font-family: var(--font-sans); text-decoration: none; }
.auth-brand { display: flex; justify-content: center; }

/* Section access checkboxes (Team page) */
.section-picks { border: 0; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; }
.section-picks legend { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; padding: 0; }
.section-picks label { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.section-picks-inline { gap: .25rem .75rem; }
.section-picks-inline .btn { margin-left: .25rem; }

/* Dashboard section tabs */
.section-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 0 0 1.25rem; overflow-x: auto; scrollbar-width: none; }
.section-tabs a { padding: .6rem .9rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-3); text-decoration: none; font-weight: 550; white-space: nowrap; }
.section-tabs a:hover { color: var(--ink); }
.section-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.coming-soon { border-style: dashed; }
.coming-soon p { margin: 0; }

/* Property access pickers */
.radio-row { border: 0; padding: 0; margin: 0 0 .75rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.radio-row label { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }
.property-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem 1rem; margin-top: .5rem; }
.property-picks label { display: flex; gap: .45rem; align-items: center; font-size: .92rem; cursor: pointer; }
.property-picker summary { cursor: pointer; font-size: .9rem; color: var(--accent); }
.field-error { color: var(--danger); margin: 0 0 .5rem; font-size: .9rem; }

/* Performance */
.perf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.perf-head h1 { margin: 0 0 .2rem; }
.perf-filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.insights h2 { margin-top: 0; font-size: 1.05rem; }
.insights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.insights li { position: relative; padding-left: 1.4rem; line-height: 1.45; }
.insights li::before { content: ""; position: absolute; left: .2rem; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink-3); }
.insights li.ins-good::before { background: var(--ok); }
.insights li.ins-bad::before { background: var(--danger); }
.perf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.perf-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.perf-tile-main { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.perf-label { font-size: .85rem; color: var(--ink-2); font-weight: 550; }
.perf-value { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; margin: .2rem 0 .5rem; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; gap: .3rem; align-items: center; font-size: .78rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip-label { font-weight: 500; color: var(--ink-3); }
.chip-good { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.chip-bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.chip-na { color: var(--ink-3); }
.view-tabs { display: flex; gap: .25rem; margin: 1.25rem 0 1rem; flex-wrap: wrap; }
.view-tabs a { padding: .45rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 550; border: 1px solid var(--line); background: var(--surface); }
.view-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.var-good { color: var(--ok); font-weight: 600; }
.var-bad { color: var(--danger); font-weight: 600; }
.total-row th, .total-row td { border-top: 2px solid var(--line); font-weight: 650; }
.perf-total { margin-top: .5rem; }
.perf-total th { text-align: left; }
.chart-grid.one { grid-template-columns: 1fr; }
.empty-state h2 { margin-top: 0; }
@media (max-width: 1000px) { .perf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .perf-tiles { grid-template-columns: 1fr; } .perf-value { font-size: 1.6rem; } }
.fin-table { table-layout: fixed; width: 100%; }
.fin-table col.c-acct { width: 44%; }
.fin-table td:first-child { overflow-wrap: anywhere; }
.total-row th { text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--ink); text-align: left; }
.perf-filters select { width: auto; max-width: 100%; }
.card h3 { font-size: .95rem; margin: 1.25rem 0 .25rem; }
.total-row th, .total-row td { border-bottom: 0; }
textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }

/* Leasing trends */
.sub-tabs { display: flex; gap: .25rem; margin: -.5rem 0 1.25rem; }
.sub-tabs a { padding: .35rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.sub-tabs a:hover { background: var(--surface-2); }
.sub-tabs a.active { background: var(--accent-soft); color: var(--accent); }
.sec-link { font-size: .85rem; font-weight: 600; margin-left: .6rem; text-decoration: none; white-space: nowrap; }
.th-sub { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .75rem; margin-top: .1rem; }
.table th[scope=row] { text-align: left; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--ink); padding: .7rem .5rem; }
.table tr:last-child th[scope=row] { border-bottom: 0; }
.trend-charts { margin-bottom: 0; }
.row-hl td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cell-sub { display: block; font-size: .78rem; margin-top: .1rem; }
.cmp-table .cmp-group th { background: var(--surface-2); color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .45rem .5rem; }
.cmp-table tbody th { text-align: left; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--ink); }
.cmp-table .total-row th, .cmp-table .total-row td { font-weight: 650; }
.cmp-table .noi-row th, .cmp-table .noi-row td { border-top: 2px solid var(--line); font-weight: 700; }
.sidebar-sync { margin: 1rem .5rem 0; display: grid; gap: .35rem; text-align: center; }
.sidebar-sync button[disabled] { opacity: .65; cursor: default; }
/* Simplified income statement rows */
.st-loss th { padding-left: 1.4rem !important; color: var(--ink-2) !important; font-weight: 400 !important; }
.st-subtotal th, .st-subtotal td { font-weight: 650; border-top: 1px solid var(--line-strong, var(--line)); }
.st-total th, .st-total td { font-weight: 650; border-top: 2px solid var(--line); }
.st-noi th, .st-noi td { font-weight: 750; border-top: 2px solid var(--ink-3); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cmp-margin th, .cmp-margin td { color: var(--ink-2); font-size: .88rem; font-weight: 400; }
.perf-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .perf-tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .perf-tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.donut-wrap { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 1.25rem; align-items: center; }
.donut-box { position: relative; height: 210px; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; }
.donut-legend li { display: grid; grid-template-columns: .75rem 1fr auto auto; gap: .5rem; align-items: center; }
.donut-legend i { width: .75rem; height: .75rem; border-radius: 3px; display: block; }
.donut-legend b { font-variant-numeric: tabular-nums; font-weight: 600; }
.donut-legend span.pct { color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.donut-note { margin: .75rem 0 0; }
.st-glance { display: grid; gap: .55rem; margin: 0; }
.st-glance div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
.st-glance div:last-child { border-bottom: 0; }
.st-glance dt { color: var(--ink-2); }
.st-glance dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .donut-wrap { grid-template-columns: 1fr; } }
/* Budget editor */
.budget-actions { display: flex; gap: .5rem; }
.budget-table .num-input { width: 7.5rem; text-align: right; padding: .35rem .5rem; font-variant-numeric: tabular-nums; }
.budget-table .pct-input { width: 4.2rem; }
.budget-table .unit { margin-left: .25rem; color: var(--ink-3); }
.budget-monthly .num-input { width: 5.6rem; }
.budget-table .note-col { text-align: left !important; min-width: 220px; white-space: normal !important; }
.budget-table textarea { min-height: 2.1rem; padding: .35rem .5rem; font-size: .88rem; resize: none; overflow: hidden; }
.budget-table td { vertical-align: top; }
.budget-save { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.capex-form { margin-top: 1rem; align-items: flex-end; }
.budget-delete { margin-top: 1.5rem; text-align: right; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: .75rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; vertical-align: middle; background: var(--surface-2); color: var(--ink-2); }
.pill-approved { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill-draft { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.fin-summary { margin-top: .75rem; }
.fin-summary-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.fin-summary-grid .donut-wrap { grid-template-columns: minmax(150px, 210px) minmax(0, 420px); }
.budget-table tbody th { text-align: left; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--ink); vertical-align: middle; }
.budget-table .st-total th, .budget-table .st-noi th { font-weight: 700; }
.budget-table .cmp-group th { text-transform: uppercase; font-size: .78rem; color: var(--ink-2); background: var(--surface-2); }
.date-range { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.date-range input[type=date] { width: auto; padding: .4rem .55rem; font-size: .9rem; }
.check { margin: 0 0 1rem; font-size: .88rem; display: flex; gap: .4rem; align-items: center; }
.check-ok { color: var(--ok); }
.check-bad { display: block; background: var(--danger-soft); color: var(--danger); padding: .7rem .9rem; border-radius: 10px; }
/* What moved NOI */
/* Expense breakdown */
.xb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.xb-tile { background: var(--surface-2); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .3rem; }
.xb-tile strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.xb-mix-box { height: 300px; }
.xb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; margin-top: .75rem; }
.xb-card { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: grid; gap: .45rem; background: var(--surface); }
.xb-card header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.xb-card h3 { margin: 0; font-size: .98rem; }
.xb-share { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.xb-amount { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.xb-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; color: var(--ink-2); }
.xb-spark { height: 64px; position: relative; }
.xb-top ol { margin: .25rem 0 0; padding-left: 1.1rem; display: grid; gap: .15rem; font-size: .85rem; }
.xb-top li span { display: inline-block; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.xb-top li b { float: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.xb-flag { float: right; margin-right: .5rem; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--danger); }
.pp-box { height: 420px; }
.st-details { margin-top: 1.25rem; }
.st-details summary { cursor: pointer; }
.st-details[open] summary { margin-bottom: .75rem; }
.st-memo th { padding-left: 1.4rem !important; color: var(--ink-3) !important; font-weight: 400 !important; font-style: italic; }
.st-memo td { color: var(--ink-3); font-size: .88rem; }
@media (max-width: 760px) { .xb-tiles { grid-template-columns: 1fr; } .pp-box { height: 520px; } }
.scope-pick { margin: .75rem .5rem 0; display: grid; gap: .25rem; }
.scope-pick label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.scope-pick select { font-size: .9rem; padding: .45rem .55rem; }
.settings-head { margin-bottom: 1.25rem; }
.settings-title { margin: 0 0 .5rem; }
.settings-head + .page-head h1 { font-size: 1.35rem; }
.series-toggles { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .25rem 0 .6rem; font-size: .85rem; }
.series-toggles label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; user-select: none; }
.series-toggles input { margin: 0; accent-color: var(--accent); width: 15px; height: 15px; }
.series-toggles .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--sw); }
.series-toggles .sw-line { height: 3px; width: 16px; border-radius: 2px; }
.series-toggles .sw-dash { height: 0; width: 16px; border-top: 2px dashed var(--sw); background: none; border-radius: 0; }
.theme-pick { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1rem .5rem 0; }
.theme-label { font-size: .8rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.segmented-sm button { padding: .3rem .5rem; display: inline-flex; align-items: center; }
/* Reports */
.rep-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.rep-grid > .card + .card { margin-top: 0; }
@media (max-width: 960px) { .rep-grid { grid-template-columns: 1fr; } }
.rep-form-card fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.rep-form-card legend, .field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.rep-choice, .rep-check { display: flex; gap: .65rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .45rem; cursor: pointer; }
.rep-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rep-choice input, .rep-check input { margin-top: .2rem; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.rep-choice > span, .rep-check > span { display: flex; flex-direction: column; gap: .1rem; }
.rep-check { border: 0; padding: .35rem 0; margin: 0; }
.rep-seg { flex-wrap: wrap; }
.seg-radio { position: relative; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: inline-block; padding: .38rem .75rem; border-radius: 7px; font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.seg-radio input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.rep-form-card .date-range { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; }
.rep-form-card .date-range input { width: auto; }
.rep-items { list-style: none; margin: 0; padding: 0; }
.rep-item { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.rep-item:first-child { border-top: 0; padding-top: 0; }
.rep-item-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.rep-item-act { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.rep-size { opacity: .75; font-weight: 500; margin-left: .2rem; }
.rep-progress { height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: .35rem; }
.rep-progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-3); cursor: pointer; font: inherit; text-decoration: underline; }
.link-btn:hover { color: var(--danger); }
.perf-export { margin-left: auto; }
/* Chart notes */
[data-chart="yoy"] { position: relative; }
.chart-notes { margin-top: .75rem; }
.notes-h { font-size: .9rem; margin: .25rem 0 .4rem; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.notes li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .6rem; align-items: baseline; font-size: .9rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.notes li:first-child { border-top: 0; }
.note-month { background: var(--accent-soft); color: var(--accent); border: 0; border-radius: 6px; padding: .1rem .45rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; justify-self: start; }
.note-meta { color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
.notes-empty { margin: .25rem 0 0; }
.note-pop { position: absolute; z-index: 20; width: min(300px, calc(100% - 16px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.28); padding: .75rem; }
.note-pop-head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .5rem; }
.note-pop-head .note-x { margin-left: auto; background: none; border: 0; font-size: 1.2rem; line-height: 1; color: var(--ink-3); cursor: pointer; }
.note-pop-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .45rem; max-height: 160px; overflow: auto; }
.note-pop-list li { display: flex; flex-direction: column; gap: .1rem; font-size: .88rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.note-pop textarea { width: 100%; resize: vertical; font-size: .9rem; }
.note-pop-actions { display: flex; justify-content: flex-end; gap: .4rem; margin-top: .5rem; }
.note-err { color: var(--danger); margin: .35rem 0 0; }
@media (max-width: 640px) { .notes li { grid-template-columns: 1fr; gap: .15rem; } }
.field label.rep-choice, .field label.rep-check { display: flex; font-weight: 400; font-size: .92rem; margin-bottom: .45rem; }
.field label.rep-check { margin-bottom: .1rem; }
.field label.seg-radio { display: inline-block; margin: 0; font-weight: 400; }
/* Alerts page */
.ab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.ab-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 1.25rem; }
@media (max-width: 1100px) { .ab-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ab-tiles { grid-template-columns: 1fr 1fr; } }
.ab-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ab-tile strong { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ab-tile.is-critical { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: linear-gradient(180deg, var(--danger-soft), var(--surface) 70%); }
.ab-tile.is-warning { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: linear-gradient(180deg, var(--warn-soft), var(--surface) 70%); }
.ab-tile.is-ok { background: linear-gradient(180deg, var(--ok-soft), var(--surface) 70%); }
.ab-of { font-size: .95rem; font-weight: 500; color: var(--ink-3); }
.ab-meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: .35rem; }
.ab-meter i { display: block; height: 100%; background: var(--warn); border-radius: 99px; }
.ab-new { color: var(--danger); } .ab-fixed { color: var(--ok); } .ab-sep { color: var(--ink-3); font-weight: 400; }
.ab-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.ab-top > .card { margin: 0; }
@media (max-width: 960px) { .ab-top { grid-template-columns: 1fr; } }
.ab-chart .chart-box { height: 230px; }
.ab-trend { margin-top: 1.25rem; } .ab-trend .chart-box { height: 200px; }
.insights li.ins-warn::before { background: var(--warn); }
.insights li.ins-info::before { background: var(--accent); }
.ab-board { margin-top: 1.75rem; }
.ab-board-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.ab-board-head h2 { margin: 0; }
.ab-filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ab-filters select, .ab-filters input[type=search] { width: auto; padding: .42rem .65rem; font-size: .9rem; }
.ab-filters input[type=search] { min-width: 220px; }
.ab-prop { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .75rem; overflow: hidden; }
.ab-prop.sev-border-critical { border-left: 4px solid var(--danger); }
.ab-prop.sev-border-warning { border-left: 4px solid var(--warn); }
.ab-prop-head { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none; }
.ab-prop-head::-webkit-details-marker { display: none; }
.ab-prop-head h3 { margin: 0; font-size: 1.02rem; }
.ab-rank { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.ab-prop-title { display: flex; flex-direction: column; gap: .3rem; min-width: 0; flex: 1; }
.ab-kinds { display: flex; flex-wrap: wrap; gap: .3rem; }
.ab-prop-stats { display: flex; gap: 1.1rem; }
.ab-prop-stats > span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ab-prop-stats b { font-variant-numeric: tabular-nums; }
.ab-counts { display: flex; gap: .35rem; align-items: center; flex: none; }
.ab-newtag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); padding: .12rem .45rem; border-radius: 999px; }
.ab-items { list-style: none; margin: 0; padding: 0 1.1rem; border-top: 1px solid var(--line); }
.ab-item { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; gap: .7rem; align-items: start; padding: .7rem 0; border-top: 1px solid var(--line); }
.ab-item:first-child { border-top: 0; }
.ab-sev { line-height: 1.5; }
.ab-item-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ab-item-meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ab-item-meta .dismiss-form { position: absolute; right: 0; z-index: 5; }
.ab-item-meta details.dismiss { position: relative; }
.ab-prop-foot { padding: .6rem 1.1rem .85rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.ab-clean summary { cursor: pointer; }
.ab-clean-list { columns: 3 220px; margin: .75rem 0 0; padding-left: 1.1rem; }
@media (max-width: 760px) {
  .ab-prop-head { flex-wrap: wrap; } .ab-prop-stats { order: 3; width: 100%; justify-content: flex-start; }
  .ab-prop-stats > span { align-items: flex-start; }
  .ab-item { grid-template-columns: 1.1rem minmax(0, 1fr); } .ab-item-meta { grid-column: 2; justify-content: flex-start; }
}
.nav-badge { margin-left: auto; float: right; font-size: .72rem; font-weight: 700; background: var(--danger); color: #fff; border-radius: 999px; padding: .05rem .45rem; line-height: 1.5; }
.ab-charts { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .ab-charts { grid-template-columns: 1fr; } }
.ab-insights { margin-top: 1.25rem; }
.ab-section { margin-top: 1.25rem; }
.ab-table { width: 100%; }
.ab-table th, .ab-table td { white-space: nowrap; }
.ab-table td.muted, .ab-table td.wrap { white-space: normal; }
.ab-sortable th[data-sort] { cursor: pointer; user-select: none; }
.ab-sortable th[aria-sort="ascending"]::after { content: " ▲"; font-size: .65em; }
.ab-sortable th[aria-sort="descending"]::after { content: " ▼"; font-size: .65em; }
.ab-row { cursor: pointer; }
.ab-row:hover > * { background: var(--surface-2); }
.ab-row.is-clean th a { color: var(--ink-2); }
.ab-go { color: var(--ink-3); font-size: 1.2rem; text-align: right; }
.ab-pill { display: inline-block; min-width: 1.6rem; text-align: center; font-weight: 700; border-radius: 999px; padding: .05rem .45rem; font-size: .82rem; }
.ab-pill.sev-critical { background: var(--danger-soft); } .ab-pill.sev-warning { background: var(--warn-soft); }
.ab-toggle { display: inline-flex; gap: .35rem; align-items: center; color: var(--ink-2); }
.ab-table tfoot th, .ab-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
@media (max-width: 900px) { .ab-kindcol { display: none; } }
.ab-crumb { margin-bottom: .4rem; }
.ab-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ab-charts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .ab-charts-2 { grid-template-columns: 1fr; } }
.ab-gauge { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); margin: .35rem 0 .25rem; }
.ab-gauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.ab-gauge b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--warn); }
.ab-gauge b.crit { background: var(--danger); }
.lvl-bg-ok { background: var(--ok); } .lvl-bg-warning { background: var(--warn); } .lvl-bg-critical { background: var(--danger); }
.lvl-critical { color: var(--danger); } .lvl-warning { color: var(--warn); }
.ab-flag > * { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.ab-flag-crit > * { background: color-mix(in srgb, var(--danger) 6%, transparent); }
.ab-flags { display: flex; gap: .25rem; flex-wrap: wrap; white-space: normal !important; }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.ab-table td .dismiss { position: relative; }
.ab-table td .dismiss-form { position: absolute; right: 0; z-index: 5; }
/* Alert types by property */
.mute-card { margin-top: 1.5rem; }
.mute-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mute-head input[type=search] { width: auto; min-width: 220px; }
.mute-wrap { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.mute-table { margin: 0; }
.mute-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; box-shadow: inset 0 -1px 0 var(--line); vertical-align: bottom; }
.mute-col { text-align: center; width: 1%; white-space: nowrap; }
.mute-col input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.mute-all { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.mute-table tr.has-muted > th { color: var(--ink); }
.mute-table tbody tr:hover > * { background: var(--surface-2); }
.mute-actions { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.ab-table thead th.ab-kindcol { white-space: normal; min-width: 4.5rem; line-height: 1.2; }
.num-table td.wrap, .num-table td.left, .num-table th.left { text-align: left; }
.ab-toggle input { width: 15px; height: 15px; }
#ab-table th, #ab-table td { padding-left: .45rem; padding-right: .45rem; font-size: .9rem; }
#ab-table tbody th { white-space: normal; min-width: 11rem; }
#ab-table thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
.ab-sub { display: flex; gap: .4rem; align-items: center; margin-top: .15rem; }
.ab-sub:empty { display: none; }
#ab-table .ab-newtag { white-space: nowrap; }
/* Valuation */
.va-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 1.25rem; }
@media (max-width: 1100px) { .va-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .va-tiles { grid-template-columns: 1fr 1fr; } }
.va-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.va-tile strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.va-hero { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 75%); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.va-up { color: var(--ok); } .va-down { color: var(--danger); }
.va-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.25rem; align-items: stretch; }
.va-top > .card { margin: 0; }
@media (max-width: 960px) { .va-top { grid-template-columns: 1fr; } }
.va-assume h2 { margin-top: 0; }
.va-assume-form, .va-prop-form { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .9rem; align-items: end; }
.va-assume-form label, .va-prop-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; }
.va-assume-form .btn, .va-prop-form .btn { justify-self: start; }
.va-in { position: relative; display: flex; align-items: center; }
.va-in input { width: 100%; text-align: right; font-variant-numeric: tabular-nums; padding-right: 1.6rem; }
.va-in i { position: absolute; right: .6rem; font-style: normal; color: var(--ink-3); font-size: .85rem; pointer-events: none; }
.va-in-money input { padding-left: 1.3rem; padding-right: .6rem; }
.va-in-money i { left: .55rem; right: auto; }
.va-how { margin-top: 1rem; color: var(--ink-2); }
.va-how summary { cursor: pointer; font-weight: 600; }
.va-how ul { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.va-chart .chart-box { height: 280px; }
.va-section { margin-top: 1.25rem; }
.va-s-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.va-table th, .va-table td { white-space: nowrap; padding-left: .45rem; padding-right: .45rem; font-size: .9rem; }
.va-table tbody th { white-space: normal; min-width: 10rem; }
.va-table .va-inputcol { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.va-table .va-in input { padding-top: .3rem; padding-bottom: .3rem; font-size: .88rem; }
.va-table td.va-inputcol:nth-of-type(6) .va-in input, .va-table .va-in-money input { width: 8.5rem; }
.va-table .va-in-pct input { width: 5rem; }
.va-table tfoot th, .va-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.va-note { display: block; font-size: .75rem; color: var(--warn); font-weight: 500; }
.va-save { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; flex-wrap: wrap; }
.va-pf th, .va-pf td { white-space: nowrap; }
.va-pf tr.st-subtotal > * { font-weight: 700; border-top: 1px solid var(--line); }
.va-pf tr.st-noi > * { font-weight: 700; background: var(--accent-soft); }
.va-sens td { font-variant-numeric: tabular-nums; }
.va-sens td.va-base { background: var(--accent-soft); font-weight: 700; color: var(--accent-strong); border-radius: 6px; }
.va-sens-values > * { border-top: 1px solid var(--line); font-size: .85rem; }
.va-table .va-in-money input, .va-table td.va-inputcol:nth-of-type(6) .va-in input { width: 7.4rem; }
.va-table .va-in-pct input { width: 4.4rem; }
.va-table .va-in input { padding-left: 1.1rem; }
.va-table .va-in-pct input { padding-left: .4rem; }
.va-table th, .va-table td { padding-left: .35rem; padding-right: .35rem; }
.va-rowlabel { font-weight: 600; color: var(--ink); white-space: nowrap; }
.va-pf tr.st-subtotal .va-rowlabel, .va-pf tr.st-noi .va-rowlabel { font-weight: 700; }
@media (max-width: 1280px) { .va-table .va-hide-md { display: none; } }
.va-table thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
.va-table .va-in-money input, .va-table td.va-inputcol:nth-of-type(6) .va-in input { width: 6.9rem; }
.va-table .va-in-pct input { width: 4.1rem; }
.main.main-wide { max-width: 1400px; }
.va-hist-chart .chart-box { height: 300px; }
.va-proj > * { color: var(--ink-2); font-style: italic; }
.va-cell-in .va-in input { width: 9rem; padding-top: .3rem; padding-bottom: .3rem; }
.va-in-row > * { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.va-pf tr.va-outlay > td:nth-child(2) { color: var(--danger); }
.va-pf-foot { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
.va-uwrow > * { background: var(--accent-soft); font-weight: 600; }
.va-h3 { margin: 1.5rem 0 .3rem; font-size: 1.05rem; }
.va-uwt td, .va-ept td { white-space: nowrap; }
.va-uwt .va-rowlabel, .va-ept .va-rowlabel { white-space: normal; }
.va-ept .va-in input { width: 7.5rem; padding-top: .3rem; padding-bottom: .3rem; }
.va-ept .va-inputcol { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.va-ept tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.va-edited > td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.va-uwt tr.st-subtotal > * { font-weight: 700; border-top: 1px solid var(--line); }
.va-uwt tr.st-noi > * { font-weight: 700; background: var(--accent-soft); }
.ps-table tr.is-hidden > th, .ps-table tr.is-hidden > td:not(.mute-col) { color: var(--ink-3); }
.ps-table tr.is-hidden > th { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
.va-t12-note { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; padding: .7rem .9rem; margin: 0 0 .75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--accent-soft); border-radius: 10px; font-size: .9rem; }
.va-t12-note > .muted { flex-basis: 100%; }
.va-months { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.va-months span { font-size: .75rem; font-weight: 600; padding: .1rem .4rem; border-radius: 6px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.va-cf { margin-top: 1.25rem; }
.va-cf .chart-box { height: 320px; }
.va-cf-table { margin-top: .9rem; }
.va-cf-table th, .va-cf-table td { white-space: nowrap; font-size: .88rem; }
.va-cf-table tr.st-subtotal > * { font-weight: 700; border-top: 1px solid var(--line); }
.va-cf-table tr.st-noi > * { font-weight: 700; background: var(--accent-soft); }
.va-top-single { grid-template-columns: 1fr; }
.va-top-single .va-prop-form { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
@media (max-width: 900px) { .va-top-single .va-prop-form { grid-template-columns: 1fr 1fr; } }
/* Hover / focus tooltips on table row titles */
.va-tip { position: relative; display: inline-flex; align-items: center; gap: .35rem; cursor: help; outline: none; }
.va-tip:not([tabindex]) { cursor: inherit; }
.va-tip-i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; font-size: .66rem; font-weight: 700;
  font-style: normal; color: var(--ink-3); border: 1px solid var(--line); font-family: Georgia, serif; flex: none; }
.va-tip-box { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: 340px; white-space: normal;
  padding: .55rem .7rem; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 500; line-height: 1.4;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s; pointer-events: none; }
.va-tip-box::after { content: ""; position: absolute; left: 14px; top: 100%; border: 6px solid transparent; border-top-color: var(--ink); }
.va-tip:hover .va-tip-box, .va-tip:focus .va-tip-box, .va-tip:focus-within .va-tip-box { opacity: 1; visibility: visible; transform: none; }
.va-tip:hover .va-tip-i, .va-tip:focus .va-tip-i { color: var(--accent); border-color: var(--accent); }
.va-tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.va-tip-box.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }
/* Property groups */
.pg-table td, .pg-table th { vertical-align: top; }
.pg-actions { display: flex; gap: .4rem; justify-content: flex-end; align-items: flex-start; }
.pg-edit[open] { flex-basis: 100%; }
.pg-new { margin-top: 1rem; }
.pg-new > summary, .pg-edit > summary { list-style: none; display: inline-flex; }
.pg-new > summary::-webkit-details-marker, .pg-edit > summary::-webkit-details-marker { display: none; }
.pg-form { display: grid; gap: .8rem; margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: min(560px, 80vw); }
.pg-name { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.pg-pick-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.pg-pick-head input { width: auto; min-width: 200px; padding: .35rem .6rem; font-size: .88rem; }
.pg-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: .35rem .6rem;
  columns: 2 220px; column-gap: 1rem; }
.pg-list label { display: flex; gap: .45rem; align-items: center; padding: .2rem 0; font-size: .9rem; break-inside: avoid; cursor: pointer; }
.pg-list input { width: 15px; height: 15px; accent-color: var(--accent); }
.pg-form .btn { justify-self: start; }

/* Dashboard parts loading in (dashboard-parts.js) */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: skeleton-shine 1.4s ease infinite; border-radius: var(--radius); }
.skeleton-row { height: 2.75rem; margin: .5rem 0; }
.skeleton-title { width: 12rem; height: 1.25rem; }
.skeleton-tile { min-height: 6.5rem; border: 0; }
.skeleton-chart { height: 14rem; margin-top: 1rem; }
.part-loaded { animation: part-in .25s ease; }
@keyframes skeleton-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes part-in { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .skeleton, .part-loaded { animation: none; } }

/* Turn board */
.tb-pill { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tb-pill.is-leased, .tb-pill.is-ready, .tb-pill.is-closed { background: var(--ok-soft); color: var(--ok); }
.tb-pill.is-open { background: var(--warn-soft); color: var(--warn); }
.tb-table td, .tb-table th { vertical-align: top; }
.tb-table .ab-sub { display: block; }
.tb-wo .tb-desc { min-width: 18rem; max-width: 42rem; white-space: normal; }
.tb-wo td, .tb-wo th { vertical-align: top; }
.tb-table th, .tb-table td { text-align: left; padding-left: .55rem; padding-right: .55rem; }
.tb-table th.num, .tb-table td.num { text-align: right; }
.tb-table thead th { white-space: nowrap; }
.tb-table td, .tb-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-trend { margin: 0 0 1.25rem; }
.tb-pills { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }

.bench-banner { margin: 0 0 1rem; padding: .55rem .9rem; border-radius: 10px; font-size: .875rem;
  background: repeating-linear-gradient(135deg, var(--warn-soft), var(--warn-soft) 12px, var(--surface) 12px, var(--surface) 24px);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); color: var(--ink); }
