/* LeadFlow CRM — white + Forest Green #1F4D3A, Electric Lime #C7F000, Neon Peach #FF8A5B */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Geist:wght@400..700&display=swap');

:root {
  --white: #FFFFFF; --soft: #F3F5F0; --line: #E3E8E0; --line-2: #EEF1EB;
  --ink: #0F1A15; --ink-2: #2B3A33; --muted: #5B6B63;
  --forest: #1F4D3A; --forest-2: #2F6B52; --on-forest: #D5E3DB;
  --lime: #C7F000; --peach: #FF8A5B; --peach-soft: #FFF1EA; --peach-ink: #B4441A; --on-peach: #1A120D;
  --r-sm: 12px; --r-md: 18px; --r-lg: 28px; --r-xl: 32px;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Geist', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--forest); font-weight: 500; }
a:hover { color: var(--forest-2); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
code { background: var(--soft); border-radius: 10px; padding: 3px 8px; color: var(--forest); font-size: 13px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 14px; color: var(--muted); }
.mark { background: linear-gradient(transparent 58%, var(--lime) 58%); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout: floating forest rail + white workspace */
.app { display: flex; flex-wrap: wrap; gap: 16px; min-height: 100vh; padding: 16px; }
.sidebar { flex: 1 1 232px; max-width: 100%; background: var(--forest); border-radius: var(--r-lg); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; color: var(--white); align-self: stretch; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.auth-card .brand { color: var(--forest); padding: 0; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; border-radius: 999px; color: var(--on-forest); text-decoration: none; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav a.active { background: var(--lime); color: var(--forest); font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav .badge { margin-left: auto; font-size: 12px; background: var(--peach); color: var(--on-peach); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.sidebar :focus-visible { outline-color: var(--lime); }
.sidebar-foot { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.plan-chip { background: rgba(255,255,255,.08); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-chip .big { font-family: var(--display); font-size: 20px; font-weight: 700; }
.plan-chip .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.plan-chip .bar > div { height: 100%; background: var(--lime); border-radius: 999px; }
.plan-chip a { color: var(--lime); font-size: 13px; font-weight: 600; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.me .avatar-sm { width: 38px; height: 38px; border-radius: 999px; background: var(--peach); color: var(--on-peach); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: 0 0 38px; }
.me .who { display: flex; flex-direction: column; min-width: 0; }
.me .who strong { font-size: 14px; }
.me .who span { font-size: 12px; color: var(--on-forest); }
.me form { margin: 0 0 0 auto; }
.me .linkbtn { color: var(--on-forest); font-size: 12px; }
.main { flex: 999 1 560px; min-width: 0; padding: 8px 8px 48px; display: flex; flex-direction: column; gap: 20px; }
.main.narrow > * { max-width: 1120px; }
.topbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.search { flex: 1 1 300px; max-width: 560px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--soft); }
.search input { flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; min-height: 44px; padding: 0 !important; }
.search kbd { font-family: var(--sans); font-size: 12px; padding: 4px 9px; border-radius: 9px; background: var(--white); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 820px) {
  .app { padding: 10px; gap: 10px; }
  .sidebar { flex-basis: 100%; padding: 12px; }
  .brand { padding: 6px 8px 10px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav a { min-height: 40px; padding: 8px 14px; }
  .sidebar-foot { padding-top: 10px; }
  .plan-chip { display: none; }
  .main { padding: 4px 4px 40px; }
}

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head .titles { display: flex; flex-direction: column; gap: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Surfaces */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card.soft { background: var(--soft); border-color: var(--soft); }
.card.forest { background: var(--forest); border-color: var(--forest); color: var(--white); }
.card.forest .muted, .card.forest .small.muted { color: var(--on-forest); }
.card.tight { padding: 16px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: flex; flex-wrap: wrap; gap: 16px; }
.grid-2 > * { flex: 1 1 340px; }
.grid-2 > .wide { flex: 2 1 440px; }

/* Bento KPIs */
.bento { display: flex; flex-wrap: wrap; gap: 16px; }
.kpi { flex: 1 1 210px; border-radius: var(--r-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); }
.kpi .label { color: var(--muted); font-size: 14px; }
.kpi .value { font-family: var(--display); font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--forest); }
.kpi .note { color: var(--muted); font-size: 13px; }
.kpi.hero { flex: 2 1 420px; background: var(--forest); border-color: var(--forest); color: var(--white); min-height: 230px; justify-content: space-between; }
.kpi.hero .label, .kpi.hero .note { color: var(--on-forest); }
.kpi.hero .value { color: var(--lime); font-size: clamp(64px, 8vw, 104px); line-height: .9; letter-spacing: -0.05em; }
.kpi.hot { background: var(--peach); border-color: var(--peach); color: var(--on-peach); justify-content: space-between; }
.kpi.hot .label, .kpi.hot .note, .kpi.hot .value, .kpi.hot a { color: var(--on-peach); }
.kpi.hot .value { font-size: 64px; }
.kpi.soft { background: var(--soft); border-color: var(--soft); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: var(--forest); align-self: flex-start; }
.chip.peach { background: var(--peach); color: var(--on-peach); }
.chip.ghost { background: rgba(255,255,255,.1); color: var(--on-forest); font-weight: 500; }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 80px; max-width: 320px; flex: 1 1 200px; }
.spark span { flex: 1 1 0; border-radius: 999px; background: rgba(199,240,0,.45); min-height: 4px; }
.spark span.today { background: var(--lime); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--lime); color: var(--forest); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #B8DE00; color: var(--forest); }
.btn.dark { background: var(--forest); color: var(--white); }
.btn.dark:hover { background: var(--forest-2); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--forest); border: 1.5px solid var(--line); font-weight: 600; }
.btn.secondary:hover { border-color: var(--forest); }
.btn.ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--line); font-weight: 600; }
.btn.danger { background: transparent; color: var(--peach-ink); border: 1.5px solid #FFD6C4; font-weight: 600; }
.btn.danger:hover { background: var(--peach-soft); color: var(--peach-ink); }
.btn.small { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--forest); }
.linkbtn { background: none; border: 0; color: var(--forest); font: inherit; padding: 0; cursor: pointer; text-decoration: underline; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.inline { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; min-height: 44px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=url], input[type=number], input[type=time], input[type=datetime-local], input[type=date], input[type=file], input:not([type]), select, textarea {
  min-height: 48px; width: 100%; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 15px;
}
.card.soft input, .card.soft select, .card.soft textarea { border-color: var(--white); }
textarea { min-height: 96px; resize: vertical; border-radius: 20px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--forest); }
input[type=color] { width: 48px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
fieldset { border: 0; border-radius: var(--r-md); padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { padding: 0 0 8px; color: var(--muted); font-size: 13px; }
.option-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: var(--r-md); background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > label { flex: 1 1 200px; }
.pillbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; border-radius: 999px; background: var(--soft); }
.pillbar input, .pillbar select { border: 0; border-radius: 999px; }
.pillbar > * { flex: 1 1 auto; }
.pillbar .btn { flex: 0 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters label { flex: 1 1 160px; }
.filters label.grow { flex: 3 1 240px; }
.filters input, .filters select { border-radius: 999px; background: var(--soft); border-color: var(--soft); }

/* Messages and banners */
.flash { border-radius: var(--r-md); padding: 14px 18px; background: var(--soft); border-left: 6px solid var(--forest); }
.flash.success { border-left-color: var(--lime); }
.flash.error { background: var(--peach-soft); border-left-color: var(--peach); color: #6B2A10; }
.banner { border-radius: var(--r-lg); padding: 14px 18px 14px 22px; background: var(--peach); color: var(--on-peach); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-weight: 500; }
.banner .btn { background: var(--on-peach); color: var(--white); }
.banner form { margin: 0; }

/* Tables */
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 14px; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; padding: 12px 10px; white-space: nowrap; }
.table td { padding: 12px 10px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table a.name { color: var(--ink); font-weight: 600; text-decoration: none; }
.table a.name:hover { color: var(--forest); text-decoration: underline; }
.who-cell { display: flex; align-items: center; gap: 12px; }
.ini { width: 40px; height: 40px; border-radius: 14px; background: var(--soft); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 40px; }
.ini.hot { background: var(--peach); color: var(--on-peach); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--forest); font-size: 12px; font-weight: 700; }
.tag.lime { background: var(--lime); border-color: var(--lime); }
.status-ok { color: var(--forest); font-weight: 600; }
.status-error { color: var(--peach-ink); font-weight: 600; }
.overdue { color: var(--peach-ink); font-weight: 700; }

/* Dashboard */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; }
.bars .bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars .bar span { font-size: 11px; color: var(--muted); }
.bars .bar div { width: 100%; max-width: 26px; background: var(--forest); border-radius: 999px; min-height: 4px; }
.bars .bar.today div { background: var(--lime); }
.stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; gap: 3px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 12px; }
.legend .grow { flex: 1 1 auto; }
.stage-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stage-tile { background: var(--white); border-radius: var(--r-md); padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; color: var(--ink); text-decoration: none; font-weight: 400; }
.stage-tile:hover { outline: 1.5px solid var(--forest); color: var(--ink); }
.stage-tile strong { font-family: var(--display); font-size: 24px; color: var(--forest); }
.meter { height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.meter > div { height: 100%; border-radius: 999px; background: var(--forest); }
.card.forest .meter { background: rgba(255,255,255,.14); }
.card.forest .meter > div { background: var(--lime); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; }
.checklist .dot { width: 26px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.12); flex: 0 0 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--lime); }
.checklist .done .dot { background: var(--lime); color: var(--forest); }
.checklist a { color: var(--lime); }

/* Board */
.board-wrap { overflow-x: auto; padding-bottom: 8px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; min-width: min-content; }
.board-col { background: var(--soft); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 420px; }
.board-col.drop { outline: 2px dashed var(--forest); }
.board-col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 6px; }
.board-col-head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.board-col-head .dot { width: 10px; height: 10px; border-radius: 999px; border: 1.5px solid var(--forest); }
.board-col-head .count { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--white); color: var(--ink); }
.board-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 20px; background: var(--white); color: var(--ink); text-decoration: none; cursor: grab; box-shadow: 0 1px 2px rgba(15,26,21,.06); font-weight: 400; }
.board-card:hover { outline: 1.5px solid var(--forest); color: var(--ink); }
.board-card .meta { font-size: 12px; color: var(--muted); }

/* Lead detail */
.lead-hero { background: var(--forest); color: var(--white); border-radius: var(--r-lg); padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.lead-hero h1 { font-size: clamp(32px, 3.6vw, 44px); }
.lead-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lead-hero .btn.secondary, .lead-hero .btn.danger { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.lead-hero :focus-visible { outline-color: var(--lime); }
.avatar { width: 72px; height: 72px; border-radius: 24px; background: var(--lime); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 28px; font-weight: 700; flex: 0 0 72px; }
.lead-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.lead-grid > .side { flex: 1 1 300px; }
.lead-grid > .conv { flex: 2 1 440px; min-width: 0; padding: 0; gap: 0; overflow: hidden; }
.facts-box { background: var(--white); border-radius: 20px; padding: 16px 18px; }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; word-break: break-word; }
.conv-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--soft); }
.tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--forest); text-decoration: none; font-weight: 600; }
.tabs a.active { background: var(--forest); color: var(--white); }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 20px; min-height: 360px; max-height: 580px; overflow-y: auto; }
.bubble { max-width: 76%; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; white-space: pre-line; word-break: break-word; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: var(--soft); border-radius: 22px 22px 22px 6px; }
.bubble.out { align-self: flex-end; background: var(--forest); color: var(--white); border-radius: 22px 22px 6px 22px; }
.bubble.auto { background: var(--lime); color: var(--forest); }
.bubble .who { font-size: 12px; font-weight: 700; }
.bubble .when { font-size: 11px; align-self: flex-end; opacity: .85; }
.bubble.in .who, .bubble.in .when { color: var(--muted); }
.bubble.out .who, .bubble.out .when { color: var(--on-forest); }
.bubble.auto .who, .bubble.auto .when { color: var(--forest); }
.bubble.failed { background: var(--peach-soft); color: #6B2A10; }
.bubble.failed .who, .bubble.failed .when { color: #6B2A10; }
.composer { padding: 14px 16px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.composer textarea, .composer input, .composer select { background: var(--soft); border-color: var(--soft); }
.timeline { list-style: none; margin: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.timeline li { display: flex; gap: 14px; }
.timeline .dot { width: 12px; height: 12px; margin-top: 6px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--forest); flex: 0 0 12px; }
.timeline .dot.note, .timeline .dot.call, .timeline .dot.meeting, .timeline .dot.stage { background: var(--forest); }
.timeline .dot.auto_reply, .timeline .dot.created { background: var(--lime); }
.timeline .dot.auto_reply_failed, .timeline .dot.limit, .timeline .dot.resubmitted { background: var(--peach); }

/* Switch and rules */
.switch { width: 60px; height: 34px; border-radius: 999px; border: 0; background: #D4DAD0; padding: 4px; cursor: pointer; display: inline-flex; flex: 0 0 auto; }
.switch span { width: 26px; height: 26px; border-radius: 999px; background: var(--white); transition: transform .15s; }
.switch[aria-checked=true] { background: var(--forest); }
.switch[aria-checked=true] span { background: var(--lime); transform: translateX(26px); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .rules { grid-template-columns: 1fr; } }
.rule { gap: 14px; }
.rule.off { background: var(--soft); border-color: var(--soft); }
.rule .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rule .title { display: flex; align-items: center; gap: 10px; }
.rule .icon { width: 40px; height: 40px; border-radius: 14px; background: var(--forest); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.rule.off .icon { background: var(--line); color: var(--muted); }
.rule .line { display: flex; gap: 10px; align-items: flex-start; }
details > summary { cursor: pointer; min-height: 32px; font-weight: 600; color: var(--forest); }

/* Team */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.person.pending { background: var(--peach-soft); border-color: #FFD6C4; }
.person.inactive { background: var(--soft); border-color: var(--soft); opacity: .8; }
.person .avatar { width: 56px; height: 56px; border-radius: 20px; font-size: 20px; flex-basis: 56px; background: var(--soft); }
.person.owner .avatar { background: var(--peach); color: var(--on-peach); }
.person .stats { display: flex; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.person .stats strong { font-family: var(--display); font-size: 24px; display: block; }
.seats { display: flex; gap: 4px; }
.seats span { width: 14px; height: 28px; border-radius: 999px; background: var(--line); }
.seats span.on { background: var(--forest); }

/* Billing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.plan.current { background: var(--forest); border-color: var(--forest); color: var(--white); }
.plan.current .muted { color: var(--on-forest); }
.plan .price { font-family: var(--display); font-size: 60px; font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: var(--forest); }
.plan.current .price { color: var(--lime); }
.plan ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.plan.current ul { border-top-color: rgba(255,255,255,.16); }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan li::before { content: '✓'; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 999px; background: var(--soft); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.plan.current li::before { background: var(--lime); }
.plan .btn { margin-top: auto; min-height: 56px; }
.plan:not(.current) .btn.secondary { border-color: var(--forest); }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--soft); }
.segmented button, .segmented a { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--forest); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.segmented [aria-pressed=true], .segmented [aria-current=true] { background: var(--forest); color: var(--white); }

/* Pagination */
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

/* Auth and public pages */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--white); background-image: radial-gradient(circle at 12% 10%, rgba(199,240,0,.35) 0, transparent 32%), radial-gradient(circle at 90% 90%, rgba(255,138,91,.28) 0, transparent 30%); }
.auth-card { width: 100%; max-width: 460px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; box-shadow: 0 24px 60px rgba(31,77,58,.12); display: flex; flex-direction: column; gap: 16px; }
.auth-card.wide { max-width: 780px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin: 22px 0 8px; }
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.checks .ok { color: var(--forest); font-weight: 600; }
.checks .bad { color: var(--peach-ink); font-weight: 600; }

/* Content on forest surfaces */
.card.forest a, .card.forest summary, .card.forest .status-ok { color: var(--lime); }
.card.forest label, .card.forest dl.facts dt, .card.forest legend { color: var(--on-forest); }
.card.forest .btn.secondary, .card.forest .btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.card.forest .btn.danger { background: transparent; color: #FFC2AA; border-color: rgba(255,194,170,.5); }
.card.forest .btn { color: var(--forest); }
.card.forest .btn.secondary, .card.forest .btn.ghost, .card.forest .btn.danger { color: var(--white); }
.card.forest input, .card.forest select, .card.forest textarea { border-color: transparent; }
.card.forest :focus-visible { outline-color: var(--lime); }
.card.forest .status-error { color: #FFC2AA; }
.card.forest code { background: rgba(255,255,255,.1); color: var(--lime); }

@media (max-width: 820px) {
  .kpi.hero { min-height: 0; }
  .kpi .value { font-size: 36px; }
  .kpi.hot .value { font-size: 48px; }
  .bento > div { flex-basis: 100%; }
}
