/* The Business Studio portal, demo. Green variant tokens. */
:root {
  color-scheme: light;
  --bg: #F4EEE2;
  --surface: #FFFDF8;
  --surface-2: #EEE7D9;
  --cream: #F5EFE4;
  --cream-line: #E6DAC4;
  --head: #0A3A2C;
  --accent: #0E4D3A;
  --link: #1F7A5A;
  --fill: #0E4D3A;
  --fill-d: #0A3A2C;
  --on-fill: #FFFFFF;
  --field: #FFFFFF;
  --field-line: #CFC5B2;
  --topbar-bg: rgba(244, 238, 226, .96);
  --green: #0E4D3A;
  --green-d: #0A3A2C;
  --emerald: #1F7A5A;
  --tint: #E4F0EA;
  --tint-line: #BCD8CA;
  --rust: #9E4527;
  --rust-d: #84391F;
  --brass: #B48A3E;
  --ink: #26221E;
  --muted: #5B544C;
  --line: #DED4C1;
  --warn-bg: #FBF1DD;
  --warn-ink: #6E4A0E;
  --bad-bg: #F8E3DC;
  --bad-ink: #7A2E16;
  --font-display: "Zodiak", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --pad: 22px;
  --gap: 18px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 12px 28px -16px rgba(20, 40, 30, .22);
  --topbar-h: 64px;
}
/* dark mode: green is the primary. Deep green surfaces, cream text, brass hairlines. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A2A20;
  --surface: #0F382B;
  --surface-2: #164535;
  --cream: #1D4A3A;
  --cream-line: #4A5E3E;
  --green: #8FD1B2;
  --green-d: #CDE8DA;
  --emerald: #7CC4A4;
  --tint: #1A5240;
  --tint-line: #2F6E56;
  --head: #F5EFE4;
  --accent: #A8DCC3;
  --link: #A3DCC1;
  --fill: #1F7A5A;
  --fill-d: #1F7A5A;
  --field: #0B3026;
  --field-line: #4B6E5C;
  --topbar-bg: rgba(10, 42, 32, .96);
  --ink: #F5EFE4;
  --muted: #D2C9B8;
  --line: rgba(180, 138, 62, .42);
  --warn-bg: #4A3B17;
  --warn-ink: #F6DFA8;
  --bad-bg: #50251A;
  --bad-ink: #F7CDBD;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -16px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] .msg.auto { border-color: var(--field-line); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #B9B09F; }
body.compact { --pad: 14px; --gap: 12px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; color: var(--head); letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.35rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 .8em; }
a { color: var(--link); }
a:hover { color: var(--head); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fill); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .8125rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin: 0 0 .5em; }
.rule { border: 0; border-top: 1px solid var(--brass); opacity: .55; margin: 18px 0; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-d); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-ghost:hover { background: var(--tint); color: var(--head); }
.btn-quiet { background: transparent; color: var(--accent); padding: 8px 10px; }
.btn-quiet:hover { background: var(--tint); }
.btn-small { padding: 7px 13px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; color: var(--accent); }
.icon-btn:hover { background: var(--tint); }
.icon-btn[disabled] { opacity: .4; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--topbar-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 14px; min-height: var(--topbar-h); padding: 0 22px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: block; width: 34px; height: 34px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.sb-label { font-weight: 700; color: var(--head); white-space: nowrap; font-size: .95rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; color: var(--head); font-size: 1.06rem; white-space: nowrap; }
.concept-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--head); background: var(--tint); border: 1px solid var(--tint-line); padding: 3px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.searchbar { flex: 1; max-width: 560px; margin-left: auto; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 10px 8px 14px; cursor: text; color: var(--muted); text-align: left; min-width: 0; }
.searchbar:hover { border-color: var(--link); }
.searchbar svg { flex: none; color: var(--accent); }
.searchbar .sb-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
kbd { font-family: var(--font-body); font-size: .75rem; font-weight: 700; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface-2); color: var(--muted); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.who { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.who strong { color: var(--ink); }
.nav-toggle { display: none; }

/* login */
.login { min-height: calc(100vh - var(--topbar-h) - 80px); display: grid; place-items: center; padding: 40px 18px; }
.login-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.login-card h1 { margin-bottom: .3em; }
.demo-creds { margin-top: 22px; background: var(--cream); border-radius: var(--r); padding: 16px; border-top: 2px solid var(--brass); }
.demo-label { font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.demo-chip { display: inline-block; background: var(--fill); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.cred-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cred-row div { display: flex; flex-direction: column; font-size: .9rem; min-width: 0; }
.cred-row div span { color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .cred-row div { font-size: .84rem; } .cred-row .btn { flex-shrink: 0; } }
.hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field-label { font-weight: 700; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea { width: 100%; border: 1.5px solid var(--field-line); background: var(--field); border-radius: var(--r-sm); padding: 10px 12px; font-size: 1rem; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(31, 122, 90, .2); }
.form-error { color: var(--bad-ink); background: var(--bad-bg); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; background: var(--surface); }
.seg input:checked + span { background: var(--fill); border-color: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }

/* shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; min-height: calc(100vh - var(--topbar-h)); }
.sidenav { border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: var(--topbar-h); align-self: start; max-height: calc(100vh - var(--topbar-h)); overflow-y: auto; }
.nav-group { margin-bottom: 16px; }
.nav-group-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 10px; margin: 0 0 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 10px; font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; }
.nav-item:hover { background: var(--tint); }
.nav-item[aria-current="page"] { background: var(--fill); color: #fff; }
.nav-item .count { margin-left: auto; font-size: .75rem; background: var(--tint); color: var(--head); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.nav-item[aria-current="page"] .count { background: rgba(255, 255, 255, .2); color: #fff; }
.nav-pin-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.content { padding: 28px clamp(18px, 3vw, 40px) 60px; min-width: 0; }
.content:focus { outline: none; }

/* page head */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid rgba(180, 138, 62, .45); }
.page-head > div { min-width: 0; max-width: 72ch; }
.page-head h1 { margin-bottom: .15em; }
.lead { color: var(--muted); font-size: 1.03rem; margin: 0; }
.fake-badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid #EBD3A5; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); min-width: 0; }
.card-cream { background: var(--cream); border-color: var(--cream-line); }
.card-tint { background: var(--tint); border-color: var(--tint-line); }
.grid { display: grid; gap: var(--gap); }
.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)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.stack > * + * { margin-top: var(--gap); }
.section { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.stat-n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--head); margin: 0; line-height: 1.1; }
.stat-l { font-weight: 700; margin: 4px 0 0; font-size: .92rem; }
.stat-s { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }

/* pills and chips */
.pill { display: inline-block; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.pill-green { background: var(--tint); color: var(--head); border-color: var(--tint-line); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #EBD3A5; }
.pill-bad { background: var(--bad-bg); color: var(--bad-ink); border-color: #EEC2B2; }
.pill-done { background: var(--fill); color: #fff; border-color: var(--accent); }
.chip-lyle { display: inline-block; background: #E8A33D; color: #0A0E14; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 14px; white-space: nowrap; }
.chip-hero { display: inline-block; background: #C8231C; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 4px; white-space: nowrap; }
.chip-studio { display: inline-block; background: var(--fill); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ours { font-size: .8rem; font-weight: 700; color: var(--muted); }

/* home hub */
.hub-hello { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.today-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.today-strip .pill { font-size: .82rem; padding: 4px 12px; }
.pinned-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.pin-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-weight: 700; cursor: pointer; color: var(--ink); }
.pin-btn:hover { border-color: var(--link); background: var(--tint); }
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 18px; }
.widget { display: flex; flex-direction: column; }
.widget.wide { grid-column: 1 / -1; }
.w-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.w-head h2 { font-size: 1.12rem; margin: 0; }
.w-src { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }
.w-tools { display: flex; gap: 6px; flex: none; }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 2px; }
.item-main { min-width: 0; }
.item-title { font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.item-sub { font-size: .86rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.item-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.w-foot { margin-top: auto; padding-top: 10px; }
.w-empty { background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: .92rem; }
.w-empty p { margin: 0 0 10px; }
.edit-bar { background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--r); padding: 12px 16px; margin-top: 16px; }
.hidden-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }
.setup-list { list-style: none; padding: 0; margin: 10px 0 0; }
.setup-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; flex-wrap: wrap; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; border: 2px solid var(--line); flex: none; font-size: 12px; font-weight: 700; }
.tick.on { background: var(--fill); border-color: var(--accent); color: #fff; }
.setup-list .grow { flex: 1; min-width: 140px; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.svc { display: flex; flex-direction: column; gap: 10px; }
.svc h3 { margin: 0; font-size: 1.25rem; }
.svc .price { font-weight: 700; color: var(--head); margin: 0; }
.svc .acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.svc-lyle { border-top: 4px solid #E8A33D; }
.svc-hero { border-top: 4px solid #C8231C; }
.svc-studio { border-top: 4px solid var(--green); }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tile { display: flex; flex-direction: column; gap: 8px; }
.tile-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.tile h3 { margin: 0; font-size: 1.05rem; }
.tile p { margin: 0; font-size: .88rem; color: var(--muted); }
.tile .acts { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.tile.on { border-color: var(--tint-line); background: linear-gradient(var(--surface), var(--surface)) padding-box; }
.conn-state { font-size: .82rem; font-weight: 700; color: var(--link); }
.reco { background: var(--cream); border-radius: var(--r); padding: 18px 20px; border-left: 3px solid var(--brass); }
.reco-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* SSO overlay */
.sso { position: fixed; inset: 0; z-index: 60; background: rgba(10, 58, 44, .55); display: grid; place-items: center; padding: 20px; }
.sso-card { background: var(--surface); border-radius: 20px; padding: 28px 30px; width: min(380px, 100%); text-align: center; box-shadow: var(--shadow); }
.sso-card p { margin: 6px 0 0; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--tint); border-top-color: var(--link); margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* product previews inside dialogs (each in its own brand, no mono) */
.pv-lyle { background: #0A0E14; color: #E6E8EB; border-radius: 14px; padding: 18px; }
.pv-lyle h3 { color: #fff; font-family: var(--font-body); }
.pv-lyle .pv-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #222B36; padding-bottom: 10px; margin-bottom: 10px; }
.pv-lyle .pv-brand { font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: -.02em; }
.pv-lyle .pv-brand span { color: #E8A33D; }
.pv-lyle table td, .pv-lyle table th { border-color: #222B36; color: #C9CED6; }
.pv-lyle table th { color: #E8A33D; }
.pv-hero { background: #F4F4F1; color: #14213D; border: 3px solid #14213D; border-top: 8px solid #C8231C; border-radius: 4px; padding: 16px; }
.pv-hero .pv-brand { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; }
.pv-hero .pv-brand span { background: #C8231C; color: #fff; padding: 0 6px; border-radius: 3px; }
.pv-hero table th { color: #14213D; }

/* resources */
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--ink); }
.cat-btn:hover { border-color: var(--link); }
.cat-btn[aria-pressed="true"] { background: var(--fill); color: #fff; border-color: var(--accent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters select { width: auto; min-width: 150px; padding: 8px 10px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.res { display: flex; flex-direction: column; gap: 6px; cursor: default; }
.res h3 { margin: 4px 0 2px; font-size: 1.1rem; }
.res h3 button { all: unset; cursor: pointer; }
.res h3 button:hover { text-decoration: underline; color: var(--link); }
.res h3 button:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.res p { margin: 0; font-size: .9rem; color: var(--muted); }
.res .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 8px; }
.type-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.path { display: flex; flex-direction: column; gap: 8px; }
.path ol { margin: 4px 0 0; padding-left: 20px; font-size: .9rem; }
.path li { margin: 3px 0; }
.path li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--link); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.prose { max-width: 68ch; font-size: 1.05rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--brass); }
.callout { background: var(--cream); border-left: 3px solid var(--brass); border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: .98rem; }
.disclaimer { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: var(--muted); margin: 18px 0; }
.template-box { background: var(--field); border: 1.5px dashed var(--field-line); border-radius: 12px; padding: 16px; white-space: pre-wrap; font-family: var(--font-body); font-size: .95rem; line-height: 1.6; }
.video-ph { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0A3A2C, #1F7A5A); border-radius: var(--r); display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; margin: 10px 0 18px; }
.video-ph .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .7); display: grid; place-items: center; margin: 0 auto 10px; }
.side-box { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 14px; }
.related { list-style: none; padding: 0; margin: 0; }
.related li + li { margin-top: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--head); }
.cl-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }

/* tasks */
.task-card { display: flex; flex-direction: column; gap: 6px; }
.task-card h3 { margin: 0; }
.steps { padding-left: 22px; }
.steps li { margin: 6px 0; }
.feedback { border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.feedback.good { background: var(--tint); color: var(--head); }
.feedback.warn { background: var(--warn-bg); color: var(--warn-ink); }
.feedback.bad { background: var(--bad-bg); color: var(--bad-ink); }
.feedback p { margin: 0; }
.diag-q { font-family: var(--font-display); font-size: 1.12rem; color: var(--head); margin: 6px 0; }

/* talk to us */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font-weight: 700; cursor: pointer; color: var(--muted); margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--head); border-bottom-color: var(--accent); }
.tab:hover { color: var(--head); }
.thread-list { list-style: none; padding: 0; margin: 0; }
.thread-btn { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; width: 100%; padding: 14px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px; }
.thread-btn:hover { border-color: var(--link); }
.thread-btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.thread-btn[aria-current="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--green); }
.msg { border-radius: 14px; padding: 12px 14px; margin: 10px 0; max-width: 88%; }
.msg.me { background: var(--tint); margin-left: auto; }
.msg.them { background: var(--cream); }
.msg.auto { background: var(--surface-2); border: 1px dashed var(--field-line); }
.msg-meta { font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.clock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .82rem; color: var(--head); background: var(--tint); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.clock.urgent { background: var(--warn-bg); color: var(--warn-ink); }
.clock.late { background: var(--bad-bg); color: var(--bad-ink); }
.road-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.road-col h3 { font-size: 1rem; display: flex; justify-content: space-between; }
.road-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.vote { display: grid; justify-items: center; min-width: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 6px; background: var(--surface); cursor: pointer; font-weight: 700; color: var(--head); }
.vote[aria-pressed="true"] { background: var(--fill); color: #fff; border-color: var(--accent); }
.vote[disabled] { cursor: default; opacity: .7; }
.vote small { font-size: .7rem; font-weight: 600; }
.email { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.email-meta { display: grid; gap: 2px; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.safe { background: var(--tint); color: var(--head); border-radius: 10px; padding: 10px 12px; font-size: .9rem; font-weight: 600; }

/* settings */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.w-order { list-style: none; padding: 0; margin: 0; }
.w-order li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.w-order li:first-child { border-top: 0; }
.w-order .grow { flex: 1; min-width: 120px; font-weight: 600; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tr { width: 40px; height: 24px; border-radius: 999px; background: #CFC6B5; position: relative; flex: none; transition: background .15s; }
.switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--field); transition: transform .15s; }
.switch input:checked + .tr { background: var(--fill); }
.switch input:checked + .tr::after { transform: translateX(16px); }
.switch input:focus-visible + .tr { outline: 3px solid var(--brass); outline-offset: 2px; }
.plan-card { background: var(--cream); border-radius: var(--r); padding: var(--pad); border-top: 2px solid var(--brass); }

/* tables */
.table-wrap { overflow-x: auto; position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.t-wide { min-width: 820px; }
.bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--emerald); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: .9rem; }
.funnel { display: grid; gap: 8px; }
.gauge { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; }
.gauge-ring { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; }
.gauge-ring > div { width: 150px; height: 150px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }

/* palette */
.pal { position: fixed; inset: 0; z-index: 70; background: rgba(10, 30, 22, .45); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.pal-box { width: min(680px, 100%); background: var(--surface); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); overflow: hidden; display: flex; flex-direction: column; max-height: 78vh; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pal-in input { border: 0; box-shadow: none; padding: 8px 0; font-size: 1.08rem; background: transparent; }
.pal-in input:focus { box-shadow: none; }
.pal-list { overflow-y: auto; padding: 8px; }
.pal-group { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.pal-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.pal-opt[aria-selected="true"] { background: var(--tint); box-shadow: inset 3px 0 0 var(--green); }
.pal-opt .t { font-weight: 700; overflow-wrap: anywhere; }
.pal-opt .s { font-size: .84rem; color: var(--muted); grid-column: 1; overflow-wrap: anywhere; }
.pal-opt .k { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .75rem; color: var(--muted); font-weight: 700; }
.pal-opt mark { background: #F3E2B8; color: #26221E; border-radius: 3px; padding: 0 1px; }
.pal-foot { border-top: 1px solid var(--line); padding: 8px 14px; font-size: .8rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.pal-note { padding: 6px 10px; font-size: .84rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: .86rem; cursor: pointer; font-weight: 600; }
.chip-btn:hover { border-color: var(--link); }

/* dialog + toast */
.dlg { border: 0; border-radius: 20px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow); background: var(--surface); color: var(--ink); }
.dlg.wide { width: min(820px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(10, 30, 22, .5); }
.dlg-inner { padding: 26px; }
.dlg h2 { margin-bottom: .3em; }
.steps-ind { display: flex; gap: 6px; margin: 4px 0 14px; }
.steps-ind span { flex: 1; height: 5px; border-radius: 999px; background: var(--surface-2); }
.steps-ind span.on { background: var(--emerald); }
.opt-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.opt-card:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.opt-card input { margin-top: 4px; accent-color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fill-d); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 80; box-shadow: var(--shadow); font-weight: 600; max-width: calc(100vw - 32px); }
.foot { border-top: 1px solid var(--line); padding: 18px 22px; text-align: center; font-size: .84rem; color: var(--muted); }
.foot p { margin: 0 auto; max-width: 80ch; }

/* responsive */
@media (max-width: 1180px) {
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .road-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { grid-template-columns: minmax(0, 1fr); }
  .side-box { position: static; }
}
@media (max-width: 1000px) {
  .svc-grid, .path-grid { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; padding: 8px 14px; gap: 8px 10px; min-height: 0; }
  .searchbar { order: 5; flex-basis: calc(100% - 92px); max-width: none; margin-left: 0; }
  .nav-toggle { display: inline-flex; order: 6; }
  .topbar-right { margin-left: auto; }
  .who { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: fixed; top: var(--mtop, 110px); left: 0; right: 0; max-height: calc(100vh - var(--mtop, 110px)); background: var(--bg); border-right: 0; border-bottom: 1px solid var(--line); z-index: 25; display: none; box-shadow: var(--shadow); }
  .sidenav.open { display: block; }
  .content { padding: 20px 16px 48px; }
  .widgets, .g2, .set-grid { grid-template-columns: minmax(0, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-hello { grid-template-columns: minmax(0, 1fr); }
  .gauge { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
@media (max-width: 560px) {
  .brand-name { font-size: .98rem; }
  .brand-mark { width: 30px; height: 30px; }
  .searchbar .sb-text { display: none; }
  .concept-tag { font-size: 10.5px; padding: 2px 8px; }
  .g3, .g4, .road-cols, .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item { grid-template-columns: minmax(0, 1fr); }
  .item-acts { justify-content: flex-start; }
  .login-card { padding: 24px 20px; }
  .dlg-inner { padding: 20px 18px; }
  .bar-row { grid-template-columns: 96px minmax(0, 1fr) 40px; }
  .msg { max-width: 100%; }
  .searchbar kbd { display: none; }
  .pal { padding-top: 12px; }
  .pal-box { max-height: 88vh; }
}
@media (max-width: 370px) { .brand-name { display: none; } }

/* home ask box */
.fq { background: var(--fill); color: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 40px); margin: 0 0 26px; display: grid; gap: 10px; border-bottom: 3px solid var(--brass); }
.fq h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.fq h1:focus { outline: none; }
.fq-tag { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: #CFE5DA; }
.fq-form { display: flex; gap: 10px; background: var(--field); border-radius: 14px; padding: 6px; max-width: 760px; }
.fq-form input { border: 0; font-size: 1.1rem; padding: 12px 12px; background: transparent; min-width: 0; }
.fq-form input:focus { box-shadow: none; }
.fq-form:focus-within { outline: 3px solid var(--brass); outline-offset: 2px; }
.fq-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .9rem; color: #CFE5DA; margin-top: 4px; }
.fq-jump button { background: none; border: 0; padding: 2px 0; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fq-jump button:hover { color: #F5EFE4; }
.fq-field { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--field); color: var(--muted); border: 0; border-radius: 12px; padding: 13px 16px; text-align: left; cursor: text; font-size: 1.02rem; }
.fq-field svg { color: var(--accent); flex: none; }
.fq-field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fq-help { margin: 0; color: #E4F0EA; font-size: .95rem; }
.fq-sub { margin: 0; color: #E4F0EA; font-size: 1.05rem; max-width: 46ch; }
.fq .chips { padding: 2px 0 0; }
.fq .chip-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.fq .chip-btn:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.pal-label { display: block; font-weight: 700; color: var(--head); font-size: .82rem; letter-spacing: .02em; }
.pal-help { margin: 0; padding: 0 16px 10px; font-size: .88rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.pal-in { border-bottom: 0; padding-bottom: 6px; }
.pal-in .pal-col { flex: 1; min-width: 0; }
.answer { margin: 8px 6px 4px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 12px; padding: 12px 14px; }
.answer .aq { font-family: var(--font-display); font-weight: 700; color: var(--head); margin: 0 0 4px; font-size: 1.02rem; }
.answer .aa { margin: 0; font-size: .95rem; }
.answer .an { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }

.foot-tag { font-family: var(--font-display); font-size: 1.05rem; color: var(--head); margin: 0 0 6px; }
#threads-grid { min-width: 0; }
@media (max-width: 900px) { #threads-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* launch suite */
.l-narrow { max-width: 760px; }
.l-position { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.45; color: var(--head); border-left: 3px solid var(--brass); padding: 2px 0 2px 14px; margin: 0 0 16px; }
.l-position-s { color: var(--head); margin: 0 0 10px; }
.l-safe { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.l-safe li { padding-left: 22px; position: relative; font-size: .95rem; }
.l-safe li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.card-launch { border-top: 3px solid var(--brass); }
.l-price { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.l-work { color: var(--muted); margin: 0 0 8px; }
.l-refund { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.l-phase-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.l-phase-list li { display: flex; gap: 12px; align-items: flex-start; }
.l-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--head); font-weight: 700; display: grid; place-items: center; }
.l-scope-q { font-family: var(--font-display); font-size: 1.15rem; color: var(--head); line-height: 1.45; }
.l-rail { margin: 0 0 8px; }
.l-rail ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.l-step button { width: 100%; display: grid; justify-items: center; gap: 3px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 4px; cursor: pointer; font: inherit; color: var(--ink); min-height: 44px; }
.l-step button:disabled { cursor: default; color: var(--muted); background: transparent; border-style: dashed; }
.l-step.approved button { border-color: var(--link); background: var(--tint); }
.l-step.review button { border-color: #C79A3A; background: var(--warn-bg); }
.l-step.changes button { border-color: var(--accent); }
.l-step.cur button { box-shadow: 0 0 0 2px var(--green); }
.l-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--surface-2); color: var(--head); }
.l-step.approved .l-dot { background: var(--fill); color: #fff; }
.l-sh { font-weight: 700; font-size: .82rem; }
.l-st { font-size: .72rem; color: var(--muted); }
.l-step.review .l-st { color: var(--warn-ink); }
.l-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--gap); align-items: start; }
.l-drafts { display: grid; gap: 12px; min-width: 0; }
.l-draft h3 { font-size: 1.05rem; margin: 0; }
.l-draft .row-between { margin-bottom: 8px; gap: 8px; }
.l-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: .94rem; }
.l-dl dt { font-weight: 700; color: var(--head); }
.l-dl dd { margin: 0; }
.l-who { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.l-who li { display: flex; gap: 10px; align-items: flex-start; }
.l-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.l-ico.ai { background: var(--tint); color: var(--head); }
.l-ico.you { background: var(--cream); color: var(--ink); }
.l-ico.pr { background: var(--fill); color: #fff; }
.l-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.l-sw span { display: block; width: 72px; height: 48px; border-radius: 10px; border: 1px solid var(--line); }
.l-sw p { margin: 4px 0 0; }
.l-logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.l-logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin: 0; }
.l-acts { align-items: center; }
.l-next { border-left: 4px solid var(--brass); }
@media (max-width: 1000px) { .l-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .l-rail ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } .l-phase-list { grid-template-columns: minmax(0, 1fr); } .l-dl { grid-template-columns: minmax(0, 1fr); } .l-dl dd { margin-bottom: 6px; } }
.back-site { margin: 0 0 10px; font-size: .9rem; }
.back-site a { color: var(--accent); font-weight: 700; }

.l-h3 { font-size: 1rem; margin: 16px 0 6px; }
.l-draft { min-width: 0; }
.l-drafts { grid-template-columns: minmax(0, 1fr); }
.l-draft .row-between { flex-wrap: wrap; }
.clock { max-width: 100%; flex-wrap: wrap; white-space: normal; }

/* ---------- theme switch ---------- */
.theme-sw { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 10px 5px 8px; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.theme-sw:hover { border-color: var(--link); }
.theme-sw svg { flex: none; color: var(--accent); }
.theme-sw .ts-track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--field-line); flex: none; }
.theme-sw .ts-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transition: transform .15s; }
.theme-sw[aria-checked="true"] .ts-track::after { transform: translateX(14px); }
.theme-sw .ts-sun { opacity: 1; } .theme-sw .ts-moon { opacity: .55; }
.theme-sw[aria-checked="true"] .ts-sun { opacity: .55; } .theme-sw[aria-checked="true"] .ts-moon { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .theme-sw .ts-track::after { transition: none; } }
.theme-seg { margin-top: 6px; }

/* ---------- alerts bell + panel ---------- */
.bell { position: relative; }
.bell .bell-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--rust); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.alerts { position: fixed; top: calc(var(--alerts-top, 64px) + 6px); right: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - var(--alerts-top, 64px) - 24px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 2px solid var(--brass); border-radius: 16px; box-shadow: var(--shadow); z-index: 45; padding: 16px; }
.alerts h2 { font-size: 1.15rem; margin: 0; }
.al-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; background: var(--surface); }
.al-item .al-from { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--link); margin: 0; }
.al-item .al-q { font-family: var(--font-display); font-weight: 700; color: var(--head); margin: 2px 0 4px; font-size: 1.02rem; }
.al-item .al-t { margin: 0 0 8px; font-size: .9rem; }
.al-item textarea { min-height: 64px; }
.al-done { opacity: 1; background: var(--surface-2); }
.al-ans { font-size: .86rem; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 560px) { .alerts { left: 8px; right: 8px; width: auto; } }

/* ---------- Chat+ ---------- */
.chat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--brass); }
.chat-head h1 { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); }
.chat-head .tagline { margin: 4px 0 0; color: var(--muted); font-size: 1.04rem; max-width: 52ch; }
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.chat-grid.no-side { grid-template-columns: minmax(0, 1fr); }
.chat-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; min-height: 460px; }
.chat-log { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }
.chat-empty { text-align: left; }
.chat-empty p { margin: 0 0 10px; }
.cm { max-width: 92%; min-width: 0; }
.cm.me { align-self: flex-end; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 14px 14px 4px 14px; padding: 10px 14px; }
.cm.me p { margin: 0; }
.cm.ai { align-self: flex-start; width: 100%; max-width: 100%; }
.cm .who-l { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--link); margin: 0 0 4px; }
.cm.ai .bubble { background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 12px 14px; }
.cm.ai .bubble p { margin: 0 0 8px; }
.cm.ai .bubble p:last-child { margin-bottom: 0; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.src { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
.src:hover { border-color: var(--link); }
.src .src-k { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--link); }
.src .src-t { font-weight: 700; overflow-wrap: anywhere; }
.src .src-s { font-size: .82rem; color: var(--muted); }
.acts-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.next-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.next-row .lbl { font-size: .82rem; color: var(--muted); font-weight: 700; margin-right: 4px; }
.chat-form { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 10px; align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 48px; max-height: 160px; resize: vertical; }
.chat-side { display: grid; gap: var(--gap); min-width: 0; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hist button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 8px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; font-size: .9rem; overflow-wrap: anywhere; }
.hist button:hover { background: var(--tint); }
.hist button:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.hist button[aria-current="true"] { border-color: var(--line); background: var(--surface-2); font-weight: 700; }
.hist .hd { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }
.side-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-tasks li { display: grid; gap: 2px; }
@media (max-width: 1000px) { .chat-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .chat-form { flex-direction: column; align-items: stretch; } .cm { max-width: 100%; } .chat-log { padding: 14px; } }

/* ---------- Integrations ---------- */
.int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.int-card { display: flex; flex-direction: column; gap: 10px; }
.int-card .int-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.int-card h3 { margin: 0; }
.int-card .int-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.mini { border-radius: 12px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mini-h { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-stats div { background: var(--surface); border-radius: 10px; padding: 8px; text-align: center; border: 1px solid var(--line); }
.mini-stats b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--head); line-height: 1.1; }
.mini-stats span { font-size: .76rem; color: var(--muted); }
.mini ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.mini li { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.int-lyle { border-top: 4px solid #E8A33D; }
.int-hero { border-top: 4px solid #C8231C; }
.int-consult { border-top: 4px solid var(--fill); }
.same-owner { font-size: .82rem; color: var(--muted); margin: 0; }
.dash-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1100px) { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .int-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Feedback ---------- */
.fb-box { border-top: 2px solid var(--brass); }
.fb-box textarea { min-height: 150px; font-size: 1.02rem; }
.fb-note { background: var(--cream); border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin: 10px 0; }

/* ---------- Launch: Live marker ---------- */
.l-rail ol { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.l-live { display: grid; place-items: center; }
.l-flag { display: inline-block; font-weight: 700; font-size: .82rem; padding: 6px 10px; border-radius: 999px; border: 1.5px dashed var(--brass); color: var(--head); text-align: center; }
.l-live.approved .l-flag { background: var(--fill); color: #fff; border-style: solid; border-color: var(--fill); }
@media (max-width: 700px) { .l-rail ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* owner */
.esc-on { background: var(--bad-bg); color: var(--bad-ink); border-color: #EEC2B2; }
@media (max-width: 900px) {
  .theme-sw { order: 6; }
  .nav-toggle { order: 7; }
  .searchbar { flex-basis: calc(100% - 200px); }
}
@media (max-width: 560px) {
  .theme-sw { gap: 6px; }
  .theme-sw { padding: 7px 8px; gap: 4px; }
  .searchbar { flex-basis: calc(100% - 150px); }
}
#searchbar[hidden] + .nav-toggle[hidden] + .theme-sw { margin-left: auto; }
.nav-small .nav-item { font-size: .88rem; padding-top: 6px; padding-bottom: 6px; }
.cat-btn[aria-pressed="true"] .muted { color: inherit; }
html[data-theme="dark"] .nav-item[aria-current="page"] .count { background: rgba(0, 0, 0, .3); }

/* ===== Early access demo ===== */
.demo-banner { margin: 0; padding: 6px 16px; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .02em; background: #6B3418; color: #FFF8EE; }
html[data-theme="dark"] .demo-banner { background: #F5EFE4; color: #4A2412; }
.role-pick { display: grid; gap: 12px; margin: 20px 0 14px; }
.role-card { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--ink, inherit); background: var(--surface); border: 1.5px solid var(--line); border-left: 4px solid var(--brass); border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, transform .15s; }
.role-card strong { font-size: 1.1rem; color: var(--head); }
.role-card span { font-size: .92rem; color: var(--muted); }
.role-card:hover { border-color: var(--brass); transform: translateY(-1px); }
.role-card:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.foot-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px !important; }
.foot-legal a { color: inherit; text-underline-offset: 3px; }
