/* RapidCRM advanced example: page shell + the in-browser app (Evergreen theme).
   Page: ribbon → nav → hero → live app (#try) → how the Coach decides → how it's built → FAQ → CTA.
   Everything for the app is scoped under .crm so nothing leaks into the RapidDashboard bar (.rdb). */
:root {
  --brand: #0E6B63; --brand-700: #0A554F; --brand-800: #08443F; --brand-900: #06322E; --brand-50: #E4F1EE; --brand-100: #CBE4DF;
  --paper: #F5EFE4; --paper-2: #EDE5D6; --card: #FFFFFF; --card-2: #FBF8F2;
  --ink: #1D2A28; --ink-2: #44524F; --muted: #5F6B68; --line: #E1D8C7; --line-2: #ECE5D8;
  --coral: #E5603A; --coral-ink: #B4431D; --coral-50: #FCEBE4;
  --ok: #15803D; --ok-50: #E3F3E8; --warn: #C27A0E; --warn-ink: #8A5507; --warn-50: #FBEFD9;
  --bad: #C42B2B; --bad-50: #FBE6E5; --info: #1F6F9F; --info-50: #E2EFF7;
  --water: #A9D6D0; --water-2: #8CC7C0; --land: #F8EFDA; --land-2: #EFE3C6;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.pg h1, .pg h2, .pg h3, .pg h4, .pg p, .crm h1, .crm h2, .crm h3, .crm h4, .crm p { margin: 0; }
.pg img, .crm img { max-width: 100%; display: block; }
.pg a:not(.btn) { color: inherit; }
.pg :focus-visible, .crm :focus-visible { outline: 3px solid rgb(14 107 99 / .45); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }
.pg h1, .pg h2, .pg h3 { letter-spacing: -.02em; text-wrap: balance; font-weight: 700; }
.pg h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; }
.pg h3 { font-size: 19px; line-height: 1.25; }
.kick { font: 700 12px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.lede { color: var(--ink-2); font-size: 18px; max-width: 64ch; }
.pg section { padding-block: 84px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 820px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 10px; font: 600 15.5px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-brand { background: var(--brand); color: #fff; } .btn-brand:hover { background: var(--brand-700); }
.btn-coral { background: var(--coral-ink); color: #fff; } .btn-coral:hover { background: #9C3815; }
.btn-line { background: var(--card); border-color: var(--line); color: var(--ink); } .btn-line:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 14px; font-size: 14px; }

/* ribbon + page nav */
.ribbon { background: var(--brand-900); color: #CFE3DF; font-size: 14px; padding-block: 9px; }
.ribbon b { color: #fff; font-weight: 600; }
.ribbon .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 8px; }
nav.top { position: sticky; top: 0; z-index: 30; background: rgb(245 239 228 / .93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.wm { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--font); letter-spacing: -.01em; color: var(--brand); }
.wm .mk { width: 34px; height: 34px; flex: none; }
.wm i { font-style: normal; color: var(--brand); }
nav.top .links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ink-2); }
nav.top .links a { text-decoration: none; } nav.top .links a:hover { color: var(--brand); }
@media (max-width: 900px) { nav.top .links { display: none; } nav.top .btn { margin-left: auto; } }

/* hero */
.hero { padding-block: 56px 40px !important; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1; font-weight: 800; letter-spacing: -.035em; margin-top: 14px; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { margin-top: 20px; }
.hero .lede b { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; max-width: 700px; }
.stat { border-top: 3px solid var(--brand); padding-top: 10px; }
.stat .v { font: 800 36px/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }
.coachcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 30px 60px -36px rgb(6 50 46 / .45); display: grid; gap: 12px; position: relative; }
.coachcard::before { content: ""; position: absolute; inset: -10px 18px auto; height: 100%; border-radius: 18px; background: var(--brand-100); z-index: -1; transform: rotate(-2deg); }
.coachcard .hd { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.coachcard .hd small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.cs { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); }
.cs .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--brand-50)); color: var(--ci, var(--brand)); }
.cs b { display: block; font-size: 15px; line-height: 1.3; }
.cs small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; gap: 12px; } .stat .v { font-size: 30px; } }

/* how the Coach decides */
.decide { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr) 60px minmax(0, .8fr); align-items: center; }
.dcol { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.dcol h3 { display: flex; align-items: center; gap: 10px; }
.dcol h3 .pill { margin-left: auto; }
.dcol ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.dcol li { display: flex; gap: 9px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.dcol li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--brand)); flex: none; transform: translateY(-1px); }
.dcol.code { --c: var(--ink-2); }
.dcol.ai { --c: var(--coral); }
.dcol.out { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.dcol.out li { color: #D7EAE6; } .dcol.out li::before { background: #7FD1C5; }
.dsub { font: 700 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.dcol.out .dsub { color: #9FCFC7; }
.darrow { height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 7px, transparent 7px 12px); position: relative; margin-inline: 6px; }
.darrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--brand); border-right: 0; }
.dfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.dfilter span { font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--bad-50); color: var(--bad); }
@media (max-width: 980px) { .decide { grid-template-columns: 1fr; gap: 0; max-width: 560px; } .darrow { width: 2px; height: 34px; margin: 4px auto; background: repeating-linear-gradient(180deg, var(--brand) 0 7px, transparent 7px 12px); } .darrow::after { right: -5px; top: auto; bottom: -4px; border: 6px solid transparent; border-top: 8px solid var(--brand); border-bottom: 0; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); font: 800 15px/1 var(--font); color: #fff; background: var(--brand); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.step p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.step .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.built { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.built > div { border-radius: 14px; padding: 18px 20px; border: 1px solid var(--line); background: var(--card-2); }
.built h3 { font-size: 16px; margin-bottom: 8px !important; }
.built ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 4px; }
.built .no { background: var(--bad-50); border-color: #F1C9C6; }
@media (max-width: 860px) { .built { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 15px 20px; }
.faq summary { cursor: pointer; font: 700 17px/1.35 var(--font); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 18px/1 var(--mono); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

.cta { background: var(--brand-800); color: #CFE3DF; border-radius: 20px; padding: 42px 46px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta p { margin-top: 10px !important; max-width: 60ch; }
.cta .row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-line { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); } .cta .btn-line:hover { border-color: #fff; }
.cta .btn-coral { background: var(--coral); color: #2A0F05; } .cta .btn-coral:hover { background: #EF7A57; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 30px 22px; } }
footer.pg { padding-block: 30px 46px; font-size: 13.5px; color: var(--ink-2); }
footer.pg .wrap { display: grid; gap: 8px; }

/* ═════════════════════════ the app ═════════════════════════ */
.try { background: linear-gradient(var(--paper-2), var(--paper)); border-block: 1px solid var(--line); padding-block: 64px 72px !important; }
.try .sec-head { margin-bottom: 22px; }
.tryhint { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tryhint a { font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.tryhint a:hover { border-color: var(--brand); color: var(--brand); }
.tryhint a b { color: var(--coral-ink); }

#try, #crm { scroll-margin-top: 72px; }
.crm { --side: 228px; font-size: 14.5px; line-height: 1.45; color: var(--ink); background: var(--paper); border-radius: 18px; border: 1px solid #CFC3AE; overflow: hidden; box-shadow: 0 50px 90px -50px rgb(6 50 46 / .55), 0 0 0 6px rgb(255 255 255 / .55); display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: 820px; position: relative; }
.crm button, .crm input, .crm select, .crm textarea { font: inherit; color: inherit; }
.crm button { cursor: pointer; }
.crm a { color: inherit; }
.side { background: linear-gradient(180deg, var(--brand-800), var(--brand-900)); color: #D3E7E3; display: flex; flex-direction: column; min-height: 0; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; text-decoration: none; color: #fff; font: 800 18px/1 var(--font); letter-spacing: -.02em; }
.side .logo svg { width: 30px; height: 30px; }
.side .co { margin: 0 12px 10px; padding: 9px 11px; border-radius: 10px; background: rgb(255 255 255 / .07); font-size: 12.5px; line-height: 1.3; color: #BFDAD4; }
.side .co b { display: block; color: #fff; font-size: 13.5px; }
.snav { flex: 1; overflow-y: auto; padding: 4px 10px 10px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
.snav .grp { font: 700 10.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #8FBDB5; padding: 14px 10px 6px; }
.snav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: #D3E7E3; font-weight: 500; font-size: 14px; }
.snav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.snav a:hover { background: rgb(255 255 255 / .07); color: #fff; }
.snav a[aria-current="page"] { background: #fff; color: var(--brand-800); font-weight: 650; }
.snav a[aria-current="page"] svg { opacity: 1; color: var(--brand); }
.snav a .n { margin-left: auto; font: 700 11px/1 var(--font); padding: 3px 7px; border-radius: 999px; background: var(--coral); color: #2A0F05; }
.snav a[aria-current="page"] .n { background: var(--coral-ink); color: #fff; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13px; }
.side .me small { display: block; color: #9FC7BF; font-size: 11.5px; }
.av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font); color: #fff; background: var(--avc, var(--coral-ink)); }
.av.sm { width: 26px; height: 26px; font-size: 10.5px; }

.mainc { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topb { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .55); }
.topb .sbtn { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); text-align: left; }
.topb .sbtn kbd, .kbd { margin-left: auto; font: 600 11px/1 var(--mono); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2); }
.topb .fresh { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.topb .fresh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-50); }
.topb .menu { display: none; }
.topb .sbtn .sm { display: none; }
.scr { flex: 1; overflow-y: auto; min-height: 0; padding: 22px 24px 32px; scroll-behavior: auto; }
.crm svg.i { width: 16px; height: 16px; flex: none; }

/* app primitives */
.ph { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ph h1 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }
.ph p { color: var(--muted); font-size: 13.5px; margin-top: 3px !important; }
.ph .r { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--brand); text-decoration: none; font-weight: 600; } .crumbs a:hover { text-decoration: underline; }
.c { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.c > h3, .c .ch { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 10px !important; }
.c .ch .r { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.c .ch a.r { color: var(--brand); text-decoration: none; font-weight: 600; }
.g { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-73 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.g-37 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.mt { margin-top: 14px; }
.b { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.b:hover { border-color: var(--brand); color: var(--brand); }
.b.pri { background: var(--brand); border-color: var(--brand); color: #fff; } .b.pri:hover { background: var(--brand-700); color: #fff; }
.b.cor { background: var(--coral-ink); border-color: var(--coral-ink); color: #fff; } .b.cor:hover { background: #9C3815; color: #fff; }
.b.ghost { border-color: transparent; background: transparent; color: var(--brand); padding-inline: 8px; }
.b.sm { padding: 5px 9px; font-size: 12.5px; border-radius: 7px; }
.b[disabled] { opacity: .5; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-50); color: var(--ok); } .pill.warn { background: var(--warn-50); color: var(--warn-ink); }
.pill.bad { background: var(--bad-50); color: var(--bad); } .pill.info { background: var(--info-50); color: var(--info); }
.pill.br { background: var(--brand-50); color: var(--brand-700); } .pill.cor { background: var(--coral-50); color: var(--coral-ink); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.kpi .v { font: 800 26px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .k { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.kpi .v small { font-size: 13px; font-weight: 600; color: var(--ok); margin-left: 6px; letter-spacing: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper-2); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--card); color: var(--brand-800); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.tabsb { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabsb::-webkit-scrollbar { display: none; }
.tabsb a, .tabsb button { padding: 9px 13px 11px; border: 0; background: none; font-weight: 600; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabsb a:hover, .tabsb button:hover { color: var(--ink); }
.tabsb [aria-current="page"], .tabsb [aria-selected="true"] { color: var(--brand-800); border-bottom-color: var(--brand); }
.inp, .sel { padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.inp:focus, .sel:focus, .crm textarea:focus { outline: 2px solid rgb(14 107 99 / .35); border-color: var(--brand); }
.lbl { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lbl > * { font-weight: 400; color: var(--ink); font-size: 13.5px; }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: #FAF6EE; }
.t tbody tr.sel td { background: var(--brand-50); }
.t td.r, .t th.r { text-align: right; }
.t td a.nm, .t td button.nm { font-weight: 650; text-decoration: none; color: var(--ink); border: 0; background: none; padding: 0; text-align: left; }
.t td a.nm:hover, .t td button.nm:hover { color: var(--brand); text-decoration: underline; }
.t td small { display: block; color: var(--muted); font-size: 12px; }
.t tfoot td { background: var(--card-2); font-weight: 700; border-top: 1px solid var(--line); }
.bar { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c, var(--brand)); border-radius: 4px; }
.fold { margin-top: 8px; }
.fold summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--brand); list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "›"; font-size: 15px; transition: transform .15s; }
.fold[open] summary::before { transform: rotate(90deg); }
.fold .ev { margin-top: 8px; padding: 10px 12px; background: var(--card-2); border-left: 3px solid var(--brand-100); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.fold .ev q { font-style: italic; quotes: "\201C" "\201D"; }

/* Today: Coach says */
.hello { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hello h1 { font-size: 26px; letter-spacing: -.02em; }
.hello .who { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.coach { display: grid; gap: 10px; }
.tip { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--tc, var(--brand)); }
.tip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tb, var(--brand-50)); color: var(--tc, var(--brand)); }
.tip .ic svg { width: 20px; height: 20px; }
.tip b { font-size: 15.5px; line-height: 1.3; display: block; }
.tip .why { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.tip .act { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tip.k-call { --tc: var(--coral-ink); --tb: var(--coral-50); }
.tip.k-obj { --tc: var(--warn-ink); --tb: var(--warn-50); }
.tip.k-risk { --tc: var(--bad); --tb: var(--bad-50); }
.tip.k-good { --tc: var(--ok); --tb: var(--ok-50); }
.tip.k-info { --tc: var(--info); --tb: var(--info-50); }
.tip.done { opacity: .55; }
.tip.done b { text-decoration: line-through; }
.coachhd { display: flex; align-items: center; gap: 4px 10px; margin-bottom: 10px; flex-wrap: wrap; }
.coachhd h2 { font-size: 16px; font-weight: 750; }
.coachhd .muted { font-size: 12.5px; }
.leaf { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.leaf svg { width: 16px; height: 16px; }
.mini { display: grid; gap: 2px; }
.mini .row, .lrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; min-width: 0; }
.mini .row:last-child, .lrow:last-child { border-bottom: 0; }
.mini .row .t1, .lrow .t1 { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .row .t1 small, .lrow .t1 small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
a.lrow, button.lrow { width: 100%; text-decoration: none; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line-2); text-align: left; padding-inline: 6px; border-radius: 8px; }
a.lrow:hover, button.lrow:hover { background: var(--card-2); }

/* Dashboard cards */
.dcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.dcard:hover { border-color: var(--brand); box-shadow: 0 10px 24px -18px rgb(6 50 46 / .6); }
.dcard .top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.dcard .top .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.dcard .v { font: 800 30px/1 var(--font); letter-spacing: -.02em; margin-top: 4px; }
.dcard .v small { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.dcard ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.dcard li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard li::before { content: "·"; color: var(--brand); font-weight: 800; margin-right: 6px; }

/* Who to call */
.qwrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.score { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 16px/1 var(--font); color: #fff; background: var(--sc, var(--brand)); flex: none; font-variant-numeric: tabular-nums; }
.qrow { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: none; width: 100%; text-align: left; }
.qrow:hover { background: var(--card-2); }
.qrow[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand-100); }
.qrow .rk { font: 700 12px/1 var(--mono); color: var(--muted); text-align: right; }
.qrow .t1 { min-width: 0; }
.qrow .t1 b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .t1 small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 200px; }
.qlist { display: grid; gap: 2px; padding: 6px; }
.why { position: sticky; top: 0; }
.why .tot { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.why .tot .score { width: 56px; height: 56px; font-size: 22px; border-radius: 14px; }
.why .tot b { font-size: 16px; display: block; }
.why .tot small { color: var(--muted); font-size: 12.5px; display: block; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) 100px 40px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.feat .nm small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.feat .pts { font: 700 12.5px/1 var(--mono); text-align: right; }
.feat .bar i { background: var(--c); }
.fgrp { font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; display: flex; gap: 8px; align-items: center; }
.fgrp::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.fgrp.code { color: var(--ink-2); } .fgrp.ai { color: var(--coral-ink); }
.opener { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--coral-50); font-size: 13.5px; }
.opener b { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 4px; }
.hf { display: grid; gap: 6px; }
.hf .lrow .pill { flex: none; }
.wts { display: grid; gap: 6px; font-size: 12.5px; margin-top: 10px; }
.wts input[type=range] { width: 100%; accent-color: var(--brand); }

/* Dialing cockpit */
.dial { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.callbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--brand-900); color: #D3E7E3; margin-bottom: 14px; }
.callbar .st { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.callbar .st::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #8A9C99; }
.callbar.live .st::before { background: #4ADE80; box-shadow: 0 0 0 4px rgb(74 222 128 / .25); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(74 222 128 / 0); } }
.callbar .tm { font: 700 15px/1 var(--mono); color: #fff; }
.callbar .src { font-size: 12.5px; color: #9FC7BF; }
.callbar .r { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.callbar .b { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .2); color: #fff; }
.callbar .b:hover { background: rgb(255 255 255 / .18); color: #fff; }
.callbar .b.cor { background: var(--coral); border-color: var(--coral); color: #2A0F05; }
.tx { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; padding-right: 4px; min-height: 260px; align-content: start; }
.ln { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; animation: lnin .35s ease-out both; }
@keyframes lnin { from { opacity: 0; transform: translateY(6px); } }
.ln .bub { padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13.5px; }
.ln .bub small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.ln.rep .bub { background: var(--brand-50); border-color: var(--brand-100); }
.ln .bub mark { background: #FDE2A8; color: inherit; padding: 0 2px; border-radius: 3px; }
.ln .bub mark.sig { background: #C6EBD2; }
.cflag { padding: 12px; border-radius: 12px; border: 1px solid; animation: lnin .4s ease-out both; }
.cflag .h { display: flex; align-items: flex-start; gap: 8px; font-weight: 750; font-size: 13.5px; }
.cflag .h svg { flex: none; margin-top: 2px; }
.cflag p { font-size: 13.5px; margin-top: 6px !important; }
.cflag .say { margin-top: 8px; padding: 9px 11px; background: #fff; border-radius: 9px; font-size: 13.5px; border: 1px dashed currentColor; }
.cflag .meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.cflag.obj { background: var(--warn-50); border-color: #EBCB8E; } .cflag.obj .h { color: var(--warn-ink); }
.cflag.sig { background: var(--ok-50); border-color: #A9D8B7; } .cflag.sig .h { color: var(--ok); }
.cflag.cue { background: var(--info-50); border-color: #B5D3E6; } .cflag.cue .h { color: var(--info); }
.cfeed { display: grid; gap: 10px; }
.brief dl { margin: 0; display: grid; gap: 10px; }
.brief dt { font: 700 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brief dd { margin: 3px 0 0; font-size: 13.5px; }
.brief dd ul { margin: 0; padding-left: 16px; }
.sc4 { display: grid; gap: 8px; }
.scr4 { display: grid; grid-template-columns: 90px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 13px; }
.scr4 .pts { font: 700 12.5px/1 var(--mono); text-align: right; }
.flowg { display: flex; flex-wrap: wrap; gap: 6px; }
.flowg span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 8px; background: var(--ok-50); color: var(--ok); }
.flowg span.p { background: var(--warn-50); color: var(--warn-ink); }
.flowg span.m { background: var(--bad-50); color: var(--bad); }
.wrapup { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 8px; }
.wrapup pre { margin: 0; white-space: pre-wrap; font: 500 12.5px/1.5 var(--mono); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px; }
.speed { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgb(255 255 255 / .1); }
.speed button { border: 0; background: none; color: #CFE3DF; font-weight: 700; font-size: 12px; padding: 5px 8px; border-radius: 6px; }
.speed button[aria-pressed="true"] { background: #fff; color: var(--brand-800); }

/* Radar */
.filt { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)) minmax(0, .9fr) minmax(0, .9fr); gap: 8px; padding: 12px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; align-items: end; }
.filt .clear { align-self: end; }
.rtot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 11px 14px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); background: var(--card-2); }
.rtot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ch-ic { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ch-ic svg { width: 15px; height: 15px; }
.ch-ic.postcard { color: var(--coral-ink); } .ch-ic.email { color: var(--info); } .ch-ic.drip { color: #6D4BB3; } .ch-ic.mixed { color: var(--brand-700); }
.prog { font-size: 12px; color: var(--muted); }
.prog b { color: var(--ink-2); font-weight: 600; }
.rv { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.rv::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rc, #B9B1A2); }
.rv.confirmed { --rc: var(--ok); color: var(--ok); } .rv.flagged { --rc: var(--bad); color: var(--bad); } .rv.hidden { --rc: #8C8579; color: var(--muted); } .rv.unreviewed { color: var(--muted); }
.revw { display: grid; gap: 8px; }
.revw .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.revw .opts button { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); text-align: left; font-weight: 600; font-size: 13px; display: flex; gap: 7px; align-items: center; }
.revw .opts button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--rc, #B9B1A2); flex: none; }
.revw .opts button[aria-pressed="true"] { border-color: var(--rc, var(--brand)); background: color-mix(in srgb, var(--rc, #B9B1A2) 10%, white); }
.revw .opts button[aria-pressed="true"]::before { background: var(--rc, #B9B1A2); }
.revw .opts .confirmed { --rc: var(--ok); } .revw .opts .flagged { --rc: var(--bad); } .revw .opts .hidden { --rc: #8C8579; }
.crm textarea { width: 100%; min-height: 64px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); resize: vertical; }
.recips { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rcp { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 13px; text-align: left; width: 100%; }
.rcp:hover { border-color: var(--brand-100); }
a.rcp { text-decoration: none; color: inherit; }
a.rcp b { color: var(--brand-800); }
.pcard .for { max-width: 68%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcp b { display: block; font-size: 13px; line-height: 1.25; }
.rcp small { display: block; color: var(--muted); font-size: 11.5px; }
.rcp .scan { color: var(--ok); font-weight: 700; font-size: 11.5px; }
.rcp.em { grid-template-columns: 34px minmax(0, 1fr); }
.statebars { display: grid; gap: 7px; }
.sbr { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 8px; align-items: center; font-size: 12.5px; }
.sbr b { font: 700 12px/1 var(--mono); }
.sbr .pts { text-align: right; font: 600 12px/1 var(--mono); color: var(--ink-2); }

/* postcard art (drawn in CSS) */
.pcard { --w: 84px; width: var(--w); aspect-ratio: 6 / 4; border-radius: 5px; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .18); line-height: 1.15; color: #fff; flex: none; container-type: inline-size; }
.pcard .f { font-size: 5.6cqw; }
.pcard .bk { font-size: 3.3cqw; }
.pcard.big { border-radius: 12px; }
.pcard.big { --w: 100%; max-width: 440px; box-shadow: 0 18px 40px -22px rgb(0 0 0 / .45); }
.pcard .f { position: absolute; inset: 0; padding: 7%; display: flex; flex-direction: column; justify-content: space-between; }
.pcard.spring .f { background: radial-gradient(circle at 85% 15%, #F7C85A 0 11%, transparent 11.5%), linear-gradient(160deg, #0E6B63 0 58%, #0A4F49 58%); }
.pcard.downtime .f { background: linear-gradient(135deg, #2A2F33 0 50%, #E5603A 50%); }
.pcard.ctrl .f { background: linear-gradient(135deg, #1F3B57 0 55%, #F2B24A 55%); }
.pcard .hl { font-weight: 800; font-size: 2.1em; letter-spacing: -.02em; max-width: 70%; line-height: 1; text-shadow: 0 1px 0 rgb(0 0 0 / .15); }
.pcard .for { font-weight: 600; font-size: 1em; opacity: .92; }
.pcard .qr { position: absolute; right: 6%; bottom: 8%; width: 24%; aspect-ratio: 1; background: #fff; border-radius: 6%; padding: 3%; }
.pcard .qr svg { width: 100%; height: 100%; display: block; }
.pcard .bk { position: absolute; inset: 0; background: #FFFDF8; color: var(--ink); display: grid; grid-template-columns: 1.1fr .9fr; padding: 7%; gap: 7%; }
.pcard .bk .msg { font-size: 1.05em; line-height: 1.35; border-right: 1px solid #D9CFBD; padding-right: 7%; display: grid; gap: .6em; align-content: start; }
.pcard .bk .msg b { font-size: 1.3em; }
.pcard .bk .to { align-self: end; font-size: 1.15em; display: grid; gap: .3em; }
.pcard .bk .to i { display: block; height: 1px; background: #CFC3AE; }
.pcard .bk .stamp { position: absolute; right: 7%; top: 9%; width: 13%; aspect-ratio: .85; border: 2px dashed #CFC3AE; border-radius: 3px; display: grid; place-items: center; font-size: .8em; color: var(--muted); }
.pcard.back .f { display: none; } .pcard:not(.back) .bk { display: none; }
.flipbox { display: grid; gap: 10px; justify-items: start; }
.emailpc { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; max-width: 560px; }
.emailpc .eh { padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--card-2); font-size: 12.5px; display: grid; gap: 2px; }
.emailpc .eh b { font-size: 14px; }
.emailpc .eb { padding: 14px; font-size: 13.5px; display: grid; gap: 9px; }
.emailpc .eb .tipbox { padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 8px 8px 0; }
.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.blogst { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }

/* Companies + map */
.tagbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.tagbar button { border: 1px solid var(--line); background: var(--card); padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tagbar button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.tag.hot { background: var(--coral-50); color: var(--coral-ink); }
.tag.cust { background: var(--brand-50); color: var(--brand-700); }
.mapbox { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--water); }
.mapbox svg { display: block; width: 100%; height: auto; }
.mapbox .land { fill: var(--land); }
.mapbox .border { fill: none; stroke: #CDBB93; stroke-width: 1.2; stroke-dasharray: 5 4; }
.mapbox .road { fill: none; stroke: #E9D9B4; stroke-width: 2.2; }
.mapbox .river { fill: none; stroke: var(--water-2); stroke-width: 2.4; }
.mapbox .stl { font: 700 13px var(--font); fill: #B9A57A; letter-spacing: .3em; }
.mapbox .wl { font: italic 600 12px var(--font); fill: #4C8B83; letter-spacing: .14em; }
.mapbox .ctl { font: 600 11px var(--font); fill: var(--ink-2); paint-order: stroke; stroke: var(--land); stroke-width: 3px; }
.mapbox .pin { cursor: pointer; }
.mapbox .pin circle.bub { fill: var(--brand); stroke: #fff; stroke-width: 2.5; transition: r .15s; }
.mapbox .pin.cust circle.bub { fill: var(--coral-ink); }
.mapbox .pin text { font: 800 11px var(--font); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.mapbox .pin:hover circle.bub, .mapbox .pin:focus circle.bub, .mapbox .pin.on circle.bub { stroke: #F7C85A; stroke-width: 3.5; }
.mapbox .pin:focus { outline: none; }
.maplegend { position: absolute; left: 10px; bottom: 10px; background: rgb(255 255 255 / .92); border-radius: 10px; padding: 7px 10px; font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.maplegend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rec-h { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.logo-sq { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 800 18px/1 var(--font); color: #fff; background: var(--lc, var(--brand)); flex: none; }
.rec-h h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.rec-h .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.rec-h .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.rec-h .tags input { width: 130px; padding: 3px 8px; font-size: 12px; border-radius: 6px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.facts div small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.facts div b { font-size: 14px; font-weight: 600; }
.rr { padding: 13px; border-radius: 12px; background: linear-gradient(135deg, var(--info-50), #fff); border: 1px solid #C4DCEB; }
.rr .h { font-weight: 750; font-size: 13px; color: var(--info); display: flex; gap: 7px; align-items: center; }
.rr p { font-size: 13.5px; margin-top: 6px !important; }
.rr a, .rr button.lnk { font-size: 12.5px; font-weight: 700; color: var(--info); margin-top: 6px; display: inline-block; border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.tl { display: grid; gap: 0; position: relative; }
.tli { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 9px 0; position: relative; }
.tli::before { content: ""; position: absolute; left: 14.5px; top: 36px; bottom: -6px; width: 1px; background: var(--line); }
.tli:last-child::before { display: none; }
.tli .dt { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tb, var(--paper-2)); color: var(--tc, var(--ink-2)); }
.tli .dt svg { width: 15px; height: 15px; }
.tli b { font-size: 13.5px; }
.tli .meta { font-size: 12px; color: var(--muted); }
.tli p { font-size: 13px; color: var(--ink-2); margin-top: 2px !important; }
.tli.call { --tc: var(--coral-ink); --tb: var(--coral-50); }
.tli.meeting { --tc: var(--info); --tb: var(--info-50); }
.tli.signal { --tc: var(--warn-ink); --tb: var(--warn-50); }
.tli.email { --tc: #6D4BB3; --tb: #EFE9F9; }
.tli.note { --tc: var(--brand); --tb: var(--brand-50); }
.tli.postcard { --tc: var(--coral-ink); --tb: var(--coral-50); }
.tli.new { animation: lnin .4s ease-out both; }
.tli.new .t1::after { content: "just now"; }
.compose { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.compose .tabsb { margin: 0; padding: 0 6px; background: var(--card-2); }
.compose .bd { padding: 10px; display: grid; gap: 8px; }
.compose .bd textarea { min-height: 54px; }
.compose .bd .row { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.people .lrow .t1 b { font-size: 13.5px; }
.dm { font-size: 10.5px; font-weight: 800; color: var(--coral-ink); background: var(--coral-50); padding: 2px 6px; border-radius: 5px; margin-left: 6px; letter-spacing: .03em; vertical-align: 1px; }
.health { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.health::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.health.good { color: var(--ok); } .health.watch { color: var(--warn-ink); } .health.risk { color: var(--bad); }

/* Reports */
.heat { display: grid; grid-template-columns: 44px repeat(13, minmax(0, 1fr)); gap: 3px; font-size: 11.5px; }
.heat .hl { color: var(--muted); font-weight: 600; display: grid; place-items: center; font-size: 11px; }
.heat .hl.d { justify-items: start; font-size: 12px; color: var(--ink-2); }
.heat button { aspect-ratio: 1.25; border: 0; border-radius: 5px; background: var(--hc); color: var(--ht, transparent); font: 700 11px/1 var(--mono); padding: 0; min-width: 0; }
.heat button:hover, .heat button:focus-visible, .heat button.on { outline: 2px solid var(--ink); outline-offset: 1px; color: var(--ht2); }
.heat.show button { color: var(--ht2); }
.hscale { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.hscale i { width: 140px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #F1EBDF, #B9DCD5, #4D9E94, #0E6B63, #06322E); }
.omx { display: grid; gap: 4px; font-size: 12.5px; }
.omx .rw { display: grid; grid-template-columns: 110px repeat(5, minmax(0, 1fr)); gap: 4px; }
.omx .hd { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: end; padding: 0 0 4px 2px; line-height: 1.2; }
.omx .lb { font-weight: 600; display: flex; align-items: center; color: var(--ink-2); }
.omx button { border: 0; border-radius: 8px; padding: 8px 6px; text-align: left; background: var(--hc); color: var(--ht); min-height: 46px; display: grid; gap: 2px; align-content: center; }
.omx button b { font: 800 14px/1 var(--font); }
.omx button small { font-size: 10.5px; opacity: .9; }
.omx button.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.objl { display: grid; gap: 8px; }
.obj { padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); }
.obj .h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.obj .h b { font-size: 14px; }
.obj .h .r { margin-left: auto; display: flex; gap: 6px; }
.obj .resp { margin-top: 8px; font-size: 13.5px; padding: 9px 11px; background: #fff; border-radius: 9px; border-left: 3px solid var(--ok); }
.drill { display: grid; gap: 10px; }
.drill .q { font-size: 17px; font-weight: 700; padding: 14px; border-radius: 12px; background: var(--warn-50); color: var(--ink); }
.drill .q small { display: block; font-size: 12px; color: var(--warn-ink); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.drill .ans { display: grid; gap: 8px; }
.drill .ans button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.drill .ans button:hover { border-color: var(--brand); }
.drill .ans button.right { border-color: var(--ok); background: var(--ok-50); }
.drill .ans button.wrong { border-color: var(--bad); background: var(--bad-50); }
.drill .fb { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--card-2); }
.scmini { display: flex; gap: 4px; }
.scmini i { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font: 700 10.5px/1 var(--mono); font-style: normal; color: #fff; background: var(--c); }

/* search palette + toast */
.pal { position: fixed; inset: 0; z-index: 1100; background: rgb(6 50 46 / .35); display: grid; justify-items: center; align-items: start; padding: 70px 16px 16px; }
.pal[hidden] { display: none; }
.pal .box { width: min(560px, 100%); background: var(--card); border-radius: 16px; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .45); overflow: hidden; }
.pal .box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 15px 16px; font-size: 16px; outline: none; }
.pal .res { max-height: 360px; overflow-y: auto; padding: 6px; }
.pal .res .grp { font: 700 10.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.pal .res a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; text-decoration: none; font-size: 14px; }
.pal .res a small { color: var(--muted); margin-left: auto; font-size: 12px; }
.pal .res a.on, .pal .res a:hover { background: var(--brand-50); }
.pal .keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 12px 16px 14px; font-size: 13px; border-top: 1px solid var(--line-2); background: var(--card-2); }
.pal .keys span { display: flex; gap: 6px; align-items: center; }
.pal .keys .kbd { margin-left: 0; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 1100; background: var(--brand-900); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* app responsive */
@media (max-width: 1180px) {
  .dial { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dial .dcol-brief { grid-column: 1 / -1; order: 3; }
  .dcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filt { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filt .q { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .crm { grid-template-columns: minmax(0, 1fr); height: auto; }
  .side { display: none; position: absolute; inset: 0 auto 0 0; width: 260px; z-index: 40; box-shadow: 20px 0 40px rgb(0 0 0 / .3); }
  .crm.navopen .side { display: flex; }
  .topb .menu { display: inline-flex; }
  .scr { overflow: visible; padding: 18px 16px 26px; }
  .qwrap, .g-73, .g-37 { grid-template-columns: minmax(0, 1fr); }
  .why { position: static; }
  .tx { max-height: none; }
}
@media (max-width: 760px) {
  .tw { overflow: visible; }
  .t thead { display: none; }
  .t, .t tbody, .t tfoot { display: block; }
  .t tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .t tbody tr:last-child { border-bottom: 0; }
  .t td { display: block; padding: 0; border: 0 !important; text-align: left !important; min-width: 0 !important; }
  .t td:first-child, .t td[colspan] { grid-column: 1 / -1; }
  .t td:not(:first-child)[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
  .t tbody tr.click:hover td { background: none; }
  .t tfoot tr { background: var(--card-2); }
  .tw > .rtot { border-radius: 0 0 14px 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2, .g3, .g4, .dial, .proofs, .blogst { grid-template-columns: minmax(0, 1fr); }
  .dial .dcol-coach { order: 1; } .dial .dcol-tx { order: 2; }
  .tx { max-height: 380px !important; }
  .filt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tip { grid-template-columns: 36px minmax(0, 1fr); }
  .tip .ic { width: 36px; height: 36px; }
  .tip .act { grid-column: 2; justify-content: flex-start; }
  .topb { padding: 10px 12px; gap: 8px; }
  .topb .fresh span { display: none; }
  .topb .sbtn kbd, .topb .sbtn .lg { display: none; }
  .topb .sbtn .sm { display: inline; }
  .heat { grid-template-columns: 34px repeat(13, minmax(0, 1fr)); gap: 2px; }
  .heat button { font-size: 0 !important; border-radius: 3px; }
  .omx { overflow-x: auto; }
  .omx .rw { grid-template-columns: 84px repeat(5, minmax(58px, 1fr)); }
  .qrow { grid-template-columns: 18px 40px minmax(0, 1fr); }
  .qrow .chips { grid-column: 3; justify-content: flex-start; max-width: none; }
  .qrow .score { width: 40px; height: 40px; }
  .feat { grid-template-columns: minmax(0, 1fr) 70px 34px; }
}
@media (max-width: 420px) { .dcards { grid-template-columns: minmax(0, 1fr); } .facts { grid-template-columns: minmax(0, 1fr); } .ph h1 { font-size: 21px; } }

/* radar table: keep the group readable */
.t.rt td:first-child { min-width: 210px; }
.t.rt th, .t.rt td { padding-inline: 9px; }
.t.rt td { white-space: nowrap; }
.t.rt td:first-child { white-space: normal; }
.objwrap { display: grid; gap: 14px; }
.objl.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .objl.two { grid-template-columns: minmax(0, 1fr); } }

/* Hero: a real screenshot of the app (the lookalike app was replaced by real screens, 2026-10-16). */
.hero-shot { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px -30px rgb(6 50 46 / .5); transform: rotate(.6deg); transition: transform .2s ease; }
.hero-shot:hover { transform: rotate(0) translateY(-2px); }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot span { position: absolute; right: 12px; bottom: 12px; background: #0E6B63; color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 10px; }
