:root {
  color-scheme: light;
  --ink: #0b0d0b;
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --blue: #3047e8;
  --blue-dark: #2034ba;
  --mint: #75e3a5;
  --mint-soft: #dff8e9;
  --coral: #ff6045;
  --coral-soft: #ffe2dc;
  --amber: #ffbd52;
  --line: #d2cec3;
  --quiet: #ebe7dc;
  --muted: #626760;
  --sidebar: 232px;
  --top: 36px;
  --radius: 12px;
  --display: "Arial Black", "Avenir Next Condensed", Impact, sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--body);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: -70px; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 3px; }

.private-banner { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top); display: flex; align-items: center; justify-content: center; gap: 22px; padding: 0 20px; color: white; background: var(--ink); font-size: 12px; }
.private-banner span { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.private-banner i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(117,227,165,.15); }
.private-banner strong { color: #aeb3ac; font-weight: 500; }
.product-shell { min-height: 100vh; padding-top: var(--top); }

.sidebar { position: fixed; z-index: 30; top: var(--top); bottom: 0; left: 0; width: var(--sidebar); display: flex; flex-direction: column; border-right: 1px solid var(--ink); background: var(--surface); }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 18px 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.brand-lockup img { width: 40px; height: 40px; }
.brand-lockup strong { font: 900 15px/1 var(--body); letter-spacing: -.04em; }
.side-nav { display: grid; gap: 2px; padding: 16px 10px; }
.nav-item { display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #454a45; text-align: left; font-weight: 750; font-size: 14px; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item:hover { background: var(--quiet); color: var(--ink); }
.nav-item.is-active { color: white; background: var(--ink); }
.nav-alert { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 6px; border-radius: 999px; color: var(--ink); background: var(--mint); font-size: 10px; font-style: normal; }
.nav-alert.coral { background: var(--coral); }
.launch-meter { margin: auto 14px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.launch-meter > div { display: grid; gap: 3px; }
.launch-meter strong { font-size: 12px; }
.launch-meter span { color: var(--muted); font-size: 11px; }
.launch-meter .meter { display: block; height: 5px; margin: 11px 0; overflow: hidden; border-radius: 999px; background: #d8d4c9; }
.launch-meter .meter i { display: block; width: 66%; height: 100%; background: var(--blue); transition: width .25s ease; }
.launch-meter button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }
.business-switcher { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 70px; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.business-switcher:hover { background: var(--paper); }
.business-switcher > span:nth-child(2) { display: grid; gap: 2px; }
.business-switcher strong { font-size: 13px; }
.business-switcher small { color: var(--muted); font-size: 11px; }

.workspace { min-height: calc(100vh - var(--top)); margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 20; top: var(--top); display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(244,241,232,.96); backdrop-filter: blur(12px); }
.mobile-brand { display: none; }
.workspace-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); border: 1px solid var(--ink); }
.top-actions { display: flex; align-items: center; gap: 16px; }
.quiet-link, .text-action { color: var(--blue); font-weight: 800; text-decoration: none; }
.quiet-link { font-size: 12px; }
.avatar-button { width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; color: white; background: var(--blue); font-size: 11px; font-weight: 900; }
.view { max-width: 1480px; min-height: calc(100vh - 94px); margin: 0 auto; padding: 42px clamp(26px, 4vw, 68px) 70px; animation: view-in .2s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.page-heading > div:first-child { max-width: 780px; }
.page-heading p { margin: 0 0 7px; color: var(--blue); font-size: 12px; font-weight: 850; }
.page-heading h1 { margin: 0; font: 900 clamp(38px, 5vw, 68px)/.94 var(--display); letter-spacing: -.055em; }
.page-heading > div > span { display: block; max-width: 650px; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.inline-heading { align-items: center; }
.inline-heading h1 { font-size: clamp(38px, 4vw, 58px); }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 850; transition: transform .12s ease, background .12s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.button.primary { color: white; background: var(--blue); box-shadow: 3px 3px 0 var(--ink); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: var(--surface); }
.button.danger { color: #9f2516; border-color: var(--coral); background: var(--coral-soft); }
.button.small { min-height: 34px; padding: 0 11px; font-size: 11px; }
.button.wide { width: 100%; }
.text-action { padding: 0; border: 0; background: none; font-size: 12px; }
.text-action.centered { align-self: center; }

.command-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--surface); }
.command-strip article { display: grid; min-height: 136px; align-content: center; gap: 4px; padding: 20px 22px; border-right: 1px solid var(--ink); }
.command-strip article:last-child { border-right: 0; }
.command-strip article.mint { background: var(--mint-soft); }
.command-strip article.coral { background: var(--coral-soft); }
.command-strip span, .command-strip small { color: var(--muted); font-size: 12px; }
.command-strip strong { font: 900 34px/1 var(--display); letter-spacing: -.04em; }
.today-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .72fr); gap: 22px; margin-top: 22px; }
.day-sheet, .attention-panel, .history-panel, .rule-summary, .chart-panel, .plain-insight, .outcome-table, .client-directory, .client-profile, .settings-content, .editor-controls { border: 1px solid var(--ink); background: var(--surface); }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.section-bar > div { display: grid; gap: 3px; }
.section-bar h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.section-bar span { color: var(--muted); font-size: 11px; }
.day-list { margin: 0; padding: 6px 20px 18px; list-style: none; }
.day-list li { display: grid; grid-template-columns: 48px 12px 1fr; align-items: stretch; min-height: 74px; }
.day-list time { padding-top: 20px; color: var(--muted); font-size: 12px; font-weight: 800; }
.day-list li > i { position: relative; display: block; width: 1px; margin: 0 auto; background: var(--line); }
.day-list li > i::before { position: absolute; top: 23px; left: 50%; width: 7px; height: 7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--ink); content: ""; transform: translateX(-50%); }
.appointment-button { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; margin: 6px 0 6px 14px; padding: 12px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--paper); text-align: left; }
.appointment-button:hover { border-color: var(--ink); background: var(--surface); }
.appointment-button > span, .appointment-button small { display: grid; gap: 3px; }
.appointment-button strong, .appointment-button b { font-size: 13px; }
.appointment-button small { color: var(--muted); font-size: 11px; }
.state { display: inline-flex; width: max-content; align-items: center; justify-content: center; min-height: 25px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 850; white-space: nowrap; }
.state.confirmed { color: #142ca4; background: #dfe4ff; }
.state.waiting { color: #8b351e; background: var(--coral-soft); }
.state.complete { color: #155735; background: var(--mint-soft); }
.state.neutral { color: #555b55; background: var(--quiet); }
.attention-panel { display: flex; flex-direction: column; min-height: 100%; padding: 24px; background: var(--coral-soft); }
.attention-kicker { display: flex; align-items: center; justify-content: space-between; color: #9d2f20; font-size: 11px; font-weight: 850; }
.attention-panel h2 { max-width: 440px; margin: 44px 0 14px; font: 900 clamp(28px, 3vw, 43px)/.98 var(--display); letter-spacing: -.05em; }
.attention-panel > p { margin: 0 0 22px; color: #4e3732; line-height: 1.5; }
.cause-line { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid rgba(11,13,11,.25); border-bottom: 1px solid rgba(11,13,11,.25); }
.cause-line > div { display: grid; gap: 2px; }
.cause-line small { color: var(--muted); }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 10px; font-weight: 900; }
.avatar.large { width: 50px; height: 50px; font-size: 13px; }
.blue { color: white; background: var(--blue); }
.mint-bg { background: var(--mint); }
.coral-bg { background: var(--coral); }
.paper-bg { background: var(--paper); }
.mini-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 8px; margin: 26px 0; }
.mini-flow span { font-size: 10px; font-weight: 800; }
.mini-flow span.done { color: #216841; }
.mini-flow i { height: 1px; background: rgba(11,13,11,.35); }
.attention-panel .wide { margin-top: auto; }
.attention-panel .centered { margin-top: 18px; }
.next-actions { display: grid; grid-template-columns: 1.15fr 1fr 1fr; margin-top: 22px; border: 1px solid var(--ink); background: var(--ink); color: white; }
.next-actions > div { padding: 22px; }
.next-actions h2 { margin: 0 0 6px; font-size: 18px; }
.next-actions p { margin: 0; color: #aeb3ac; font-size: 12px; line-height: 1.45; }
.next-actions > button { display: grid; grid-template-columns: 32px 1fr 20px; align-items: center; gap: 12px; min-height: 94px; padding: 16px 18px; border: 0; border-left: 1px solid #353934; color: white; background: transparent; text-align: left; }
.next-actions > button:hover { background: #1c201c; }
.next-actions button > span:nth-child(2) { display: grid; gap: 4px; }
.next-actions small { color: #aeb3ac; }
.next-actions svg { width: 19px; }
.setup-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--mint); font-weight: 900; }

.calendar-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 14px; }
.segmented, .filter-row, .choice-row { display: flex; width: max-content; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.segmented button, .filter-row button, .choice-row button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-size: 11px; font-weight: 800; }
.segmented button.is-active, .filter-row button.is-active, .choice-row button.is-active { color: white; background: var(--ink); }
.calendar-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.calendar-nav button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.calendar-nav strong { font-size: 13px; }
.week-calendar { display: grid; grid-template-columns: 64px repeat(5, minmax(150px, 1fr)); min-width: 820px; border: 1px solid var(--ink); background: var(--surface); }
.week-head { display: grid; place-items: center; min-height: 70px; border-bottom: 1px solid var(--ink); border-left: 1px solid var(--line); }
.week-head span { color: var(--muted); font-size: 11px; }
.week-head strong { font-size: 19px; }
.week-head.current { background: var(--mint-soft); }
.time-label { padding: 13px 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: right; }
.cal-cell { position: relative; min-height: 112px; padding: 6px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-event { display: grid; width: 100%; min-height: 92px; align-content: start; gap: 4px; padding: 10px; border: 1px solid var(--ink); border-radius: 7px; text-align: left; box-shadow: 2px 2px 0 var(--ink); }
.cal-event b, .cal-event span { font-size: 11px; }
.cal-event small { color: var(--muted); font-size: 10px; }
.blue-event { color: white; background: var(--blue); }
.blue-event small { color: #d9ddff; }
.mint-event { background: var(--mint-soft); }
.paper-event { background: var(--paper); }
.coral-event { background: var(--coral-soft); }
.open-cell { display: grid; place-items: center; border: 1px dashed var(--blue); background: #f3f4ff; color: var(--blue); font-size: 11px; font-weight: 800; }
.blocked { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #ebe7dc, #ebe7dc 6px, #dedacf 6px, #dedacf 12px); color: var(--muted); font-size: 10px; }
.demo-footnote { margin: 12px 0 0; color: var(--muted); font-size: 11px; }

.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.search-field { display: flex; width: min(360px, 100%); min-height: 42px; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 8px; background: var(--surface); }
.search-field svg { width: 18px; height: 18px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; }
.data-table { min-width: 860px; border: 1px solid var(--ink); background: var(--surface); }
.table-head, .table-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr .8fr 24px; align-items: center; gap: 14px; min-height: 68px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.table-head { min-height: 42px; color: var(--muted); background: var(--paper); font-size: 10px; font-weight: 850; }
.table-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.table-row:last-child { border-bottom: 0; }
.table-row:hover { background: #f3f1ea; }
.table-row > span { display: grid; gap: 3px; font-size: 12px; }
.table-row small { color: var(--muted); font-size: 10px; }
.table-row svg { width: 17px; }
.empty-result { display: grid; place-items: center; gap: 6px; min-height: 240px; border: 1px solid var(--ink); background: var(--surface); }
.empty-result span { color: var(--muted); }

.client-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.45fr); gap: 18px; }
.client-directory { padding: 14px; }
.client-directory .search-field { width: 100%; margin-bottom: 12px; }
.client-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; width: 100%; min-height: 66px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; }
.client-row:hover, .client-row.is-selected { border-color: var(--ink); background: var(--paper); }
.client-row > span:nth-child(2) { display: grid; gap: 3px; }
.client-row small { color: var(--muted); }
.client-row em { padding: 4px 7px; border-radius: 999px; background: var(--mint-soft); font-size: 9px; font-style: normal; font-weight: 800; }
.client-profile { padding: 24px; }
.profile-head { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-head h2, .profile-head p { margin: 0; }
.profile-head h2 { font-size: 22px; }
.profile-head p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.client-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; border: 1px solid var(--line); }
.client-facts div { display: grid; gap: 5px; padding: 14px; border-right: 1px solid var(--line); }
.client-facts div:last-child { border-right: 0; }
.client-facts dt { color: var(--muted); font-size: 10px; }
.client-facts dd { margin: 0; font-size: 12px; font-weight: 800; }
.client-profile section { padding: 18px 0; border-top: 1px solid var(--line); }
.client-profile h3, .modal h3 { margin: 0 0 10px; font-size: 13px; }
.client-profile p { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.5; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: 12px 1fr auto; align-items: start; gap: 10px; padding: 10px 0; }
.activity-list li > i { width: 8px; height: 8px; margin-top: 4px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); }
.activity-list li > i.mint-dot { background: var(--mint); }
.activity-list li > span { display: grid; gap: 2px; }
.activity-list small, .activity-list time { color: var(--muted); font-size: 10px; }

.recovery-hero { display: grid; grid-template-columns: 1fr 250px; min-height: 290px; border: 1px solid var(--ink); color: white; background: var(--ink); }
.recovery-copy { align-self: end; max-width: 740px; padding: 34px; }
.recovery-copy h2 { max-width: 680px; margin: 18px 0 12px; font: 900 clamp(34px, 4vw, 58px)/.95 var(--display); letter-spacing: -.055em; }
.recovery-copy p { max-width: 620px; margin: 0 0 24px; color: #c4c8c2; line-height: 1.5; }
.recovery-value { display: grid; align-content: center; gap: 7px; padding: 28px; border-left: 1px solid #3c403b; color: var(--ink); background: var(--mint); }
.recovery-value strong { font: 900 52px/1 var(--display); }
.recovery-value small { font-weight: 800; }
.pipeline { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr; align-items: center; margin: 18px 0; padding: 18px; border: 1px solid var(--ink); background: var(--surface); }
.pipeline article { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; opacity: .48; }
.pipeline article > span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 11px; font-weight: 900; }
.pipeline article > div { display: grid; gap: 3px; }
.pipeline small { color: var(--muted); font-size: 10px; }
.pipeline article.current, .pipeline article.complete { opacity: 1; }
.pipeline article.current > span { color: white; background: var(--blue); }
.pipeline article.complete > span { background: var(--mint); }
.pipeline > i { height: 1px; background: var(--line); }
.recovery-columns { display: grid; grid-template-columns: 1.45fr .75fr; gap: 18px; }
.recovery-history { margin: 0; padding: 0; list-style: none; }
.recovery-history li { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 12px; min-height: 72px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.recovery-history li:last-child { border-bottom: 0; }
.recovery-history li > div { display: grid; gap: 4px; }
.recovery-history small { color: var(--muted); }
.history-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; }
.history-mark svg { width: 18px; }
.history-mark.quiet { background: var(--quiet); }
.rule-summary dl { margin: 0; padding: 10px 20px; }
.rule-summary dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rule-summary dt { color: var(--muted); font-size: 11px; }
.rule-summary dd { margin: 0; text-align: right; font-size: 11px; font-weight: 800; }
.rule-summary .text-action { margin: 10px 20px 20px; }

.insight-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--surface); }
.insight-summary article { display: grid; min-height: 130px; align-content: center; gap: 5px; padding: 20px; border-right: 1px solid var(--ink); }
.insight-summary article:last-child { border-right: 0; }
.insight-summary article.mint { background: var(--mint-soft); }
.insight-summary span, .insight-summary small { color: var(--muted); font-size: 11px; }
.insight-summary strong { font: 900 32px/1 var(--display); }
.insight-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 18px; margin: 18px 0; }
.bar-chart { display: flex; height: 330px; align-items: end; gap: clamp(10px, 2vw, 25px); padding: 30px 30px 18px; }
.bar-chart > div { display: grid; width: 100%; height: 100%; grid-template-rows: 1fr auto; align-items: end; gap: 8px; text-align: center; }
.bar-chart i { display: block; width: 100%; height: var(--value); min-height: 10px; border: 1px solid var(--ink); background: var(--blue); box-shadow: 3px 0 0 var(--ink); transition: height .25s ease; }
.bar-chart span { color: var(--muted); font-size: 10px; }
.plain-insight { align-self: stretch; padding: 26px; background: var(--mint-soft); }
.plain-insight > span { font-size: 11px; font-weight: 850; }
.plain-insight h2 { margin: 55px 0 14px; font: 900 31px/1 var(--display); letter-spacing: -.04em; }
.plain-insight p { color: var(--muted); line-height: 1.5; }
.plain-insight .text-action { margin-top: 40px; }
.outcome-table > div:not(.section-bar) { display: grid; grid-template-columns: 1fr auto 60px; align-items: center; min-height: 54px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.outcome-table > div:last-child { border-bottom: 0; }
.outcome-table small { color: var(--muted); text-align: right; }

.publish-area { display: flex; align-items: center; gap: 14px; }
.publish-area > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.publish-area i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.publish-area .is-published i { background: var(--mint); }
.editor-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; }
.editor-controls { align-self: start; }
.editor-section { display: grid; gap: 15px; padding: 20px; border-bottom: 1px solid var(--line); }
.editor-section:last-child { border-bottom: 0; }
.editor-section h2 { margin: 0; font-size: 17px; }
.editor-section > label, .stacked-field { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
select, input[type="text"], input[type="number"], input[type="time"], textarea, .form-grid input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--ink); border-radius: 7px; color: var(--ink); background: var(--surface); }
textarea { resize: vertical; }
.color-control { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px; border: 1px solid var(--ink); border-radius: 7px; }
.color-control input { width: 42px; height: 30px; padding: 0; border: 0; background: transparent; }
.color-control output { font-size: 12px; font-weight: 850; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.switch-row { display: flex !important; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; }
.switch-row > span { display: grid; gap: 4px; }
.switch-row strong { color: var(--ink); font-size: 12px; }
.switch-row small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row > i { position: relative; width: 44px; height: 24px; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 999px; background: var(--quiet); transition: background .15s; }
.switch-row > i::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border: 1px solid var(--ink); border-radius: 50%; background: var(--surface); content: ""; transition: transform .15s; }
.switch-row input:checked + i { background: var(--mint); }
.switch-row input:checked + i::after { transform: translateX(19px); }
.preview-stage { display: grid; min-height: 760px; place-items: center; padding: clamp(22px, 4vw, 54px); border: 1px solid var(--ink); background: #d8d4ca; overflow: hidden; }
.device-frame { width: min(860px, 100%); border: 1px solid var(--ink); background: var(--surface); box-shadow: 12px 12px 0 rgba(11,13,11,.85); transition: width .2s ease; }
.device-frame.is-mobile { width: min(390px, 100%); }
.browser-bar { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-bottom: 1px solid var(--ink); background: var(--paper); }
.browser-bar i { width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; }
.browser-bar span { margin-left: 8px; color: var(--muted); font-size: 10px; }
.booking-preview { --preview-accent: var(--blue); --preview-radius: 10px; min-height: 650px; padding: clamp(30px, 6vw, 70px); background: var(--paper); }
.booking-preview.theme-bold { color: white; background: var(--ink); }
.booking-preview.theme-warm { background: #fff0df; }
.booking-preview.radius-square { --preview-radius: 0; }
.booking-preview.radius-round { --preview-radius: 28px; }
.preview-business { display: flex; align-items: center; gap: 10px; }
.preview-business > div { display: grid; gap: 2px; }
.preview-business small { color: var(--muted); }
.theme-bold .preview-business small { color: #b9bdb8; }
.booking-preview h2 { max-width: 580px; margin: 50px 0 18px; font: 900 clamp(38px, 5vw, 66px)/.94 var(--display); letter-spacing: -.055em; }
.booking-preview > p { max-width: 620px; padding: 13px; border: 1px solid currentColor; border-radius: var(--preview-radius); font-size: 12px; font-weight: 750; }
.preview-services { display: grid; gap: 10px; margin: 24px 0; }
.preview-services button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 14px 16px; border: 1px solid currentColor; border-radius: var(--preview-radius); color: inherit; background: transparent; text-align: left; }
.preview-services button:hover { outline: 2px solid var(--preview-accent); }
.preview-services span, .preview-services b { display: grid; gap: 4px; }
.preview-services b { text-align: right; }
.preview-services small { color: var(--muted); font-size: 10px; font-weight: 500; }
.theme-bold .preview-services small { color: #b9bdb8; }
.preview-cta { display: inline-flex; min-height: 48px; align-items: center; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--preview-radius); color: white; background: var(--preview-accent); font-size: 12px; font-weight: 850; box-shadow: 3px 3px 0 var(--ink); }

.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
.settings-nav { display: grid; align-self: start; gap: 3px; padding: 8px; border: 1px solid var(--ink); background: var(--surface); }
.settings-nav button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: 12px; font-weight: 800; }
.settings-nav button:hover { background: var(--paper); }
.settings-nav button.is-active { color: white; background: var(--ink); }
.settings-content { min-height: 610px; }
.settings-content > section { padding-bottom: 24px; }
.connection-list article { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 14px; min-height: 84px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.connection-list article > div { display: grid; gap: 4px; }
.connection-list small { color: var(--muted); }
.connection-logo { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--ink); border-radius: 9px; font-weight: 900; }
.connection-logo.google { color: var(--blue); background: #f3f4ff; }
.connection-logo.stripe { color: white; background: #635bff; }
.connection-logo.mail { background: var(--mint); }
.truth-panel { margin: 20px; padding: 16px; border-left: 4px solid var(--blue); background: #f1f2ff; }
.truth-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.service-list article { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 14px; min-height: 72px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.service-list article > div { display: grid; gap: 4px; }
.service-list small { color: var(--muted); }
.service-list article > button, .message-list article > button { border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }
.drag-handle { color: var(--muted); font-style: normal; }
.hours-list { padding: 10px 20px; }
.hours-list label { display: grid; grid-template-columns: 20px 1fr 130px 24px 130px; align-items: center; gap: 12px; min-height: 62px; border-bottom: 1px solid var(--line); font-size: 12px; }
.hours-list input[type="time"] { min-height: 36px; }
.hours-list label.closed { grid-template-columns: 20px 1fr 296px; color: var(--muted); }
.message-list article { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 82px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.panel-switch { margin: 20px; padding: 16px; border: 1px solid var(--line); }
.stacked-field { margin: 20px; }

.modal { width: min(660px, calc(100vw - 28px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 1px solid var(--ink); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 12px 12px 0 rgba(11,13,11,.75); }
.modal::backdrop { background: rgba(11,13,11,.64); backdrop-filter: blur(3px); }
.modal form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal form > header > div { display: grid; gap: 5px; }
.modal header span { color: var(--blue); font-size: 10px; font-weight: 850; }
.modal h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.icon-button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--surface); }
.icon-button svg { width: 18px; }
.modal-body { padding: 22px; }
.modal form > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.plan-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.plan-summary div { display: grid; gap: 5px; padding: 12px; border-right: 1px solid var(--line); }
.plan-summary div:last-child { border-right: 0; }
.plan-summary span { color: var(--muted); font-size: 9px; }
.plan-summary strong { font-size: 11px; }
.recipient-list { margin: 0 0 18px; padding: 0; border: 1px solid var(--line); list-style: none; }
.recipient-list li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; min-height: 64px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.recipient-list li:last-child { border-bottom: 0; }
.recipient-list li > span:nth-child(2) { display: grid; gap: 3px; }
.recipient-list small { color: var(--muted); }
.recipient-list em { color: var(--blue); font-size: 9px; font-style: normal; font-weight: 850; }
.message-preview { padding: 15px; border: 1px solid var(--ink); background: var(--paper); }
.message-preview span { color: var(--blue); font-size: 10px; font-weight: 850; }
.message-preview p { margin: 8px 0 0; line-height: 1.45; }
.plain-warning { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.appointment-detail { display: flex; align-items: center; gap: 13px; }
.appointment-detail > div { display: grid; gap: 3px; }
.appointment-detail em { margin-left: auto; }
.appointment-detail small { color: var(--muted); }
.detail-list { margin: 20px 0; border: 1px solid var(--line); }
.detail-list div { display: grid; grid-template-columns: 110px 1fr; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; font-size: 11px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.form-grid label.full { grid-column: 1 / -1; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 10px; width: min(360px, calc(100vw - 44px)); }
.toast { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--ink); border-radius: 10px; color: white; background: var(--ink); box-shadow: 5px 5px 0 var(--mint); animation: toast-in .2s ease both; }
.toast > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--mint); font-weight: 900; }
.toast > div { display: grid; gap: 3px; }
.toast small { color: #b9bdb8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .command-strip, .insight-summary { grid-template-columns: 1fr 1fr; }
  .command-strip article:nth-child(2), .insight-summary article:nth-child(2) { border-right: 0; }
  .command-strip article:nth-child(-n+2), .insight-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .today-layout, .recovery-columns, .insight-grid { grid-template-columns: 1fr; }
  .attention-panel { min-height: 470px; }
  .next-actions { grid-template-columns: 1fr 1fr; }
  .next-actions > div { grid-column: 1 / -1; border-bottom: 1px solid #353934; }
  .next-actions > button:first-of-type { border-left: 0; }
  .client-layout { grid-template-columns: 300px minmax(520px, 1fr); overflow-x: auto; }
  .editor-layout { grid-template-columns: 300px minmax(520px, 1fr); overflow-x: auto; }
}

@media (max-width: 820px) {
  :root { --top: 40px; }
  .private-banner { justify-content: flex-start; }
  .private-banner strong { display: none; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding-bottom: 74px; }
  .topbar { min-height: 60px; padding: 0 16px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand img { width: 28px; height: 28px; }
  .mobile-brand strong { font-size: 12px; }
  .workspace-status { display: none; }
  .quiet-link { display: none; }
  .view { min-height: auto; padding: 28px 16px 44px; }
  .page-heading, .inline-heading { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .page-heading h1, .inline-heading h1 { font-size: 42px; }
  .page-heading > div > span { font-size: 14px; }
  .command-strip, .insight-summary { grid-template-columns: 1fr 1fr; }
  .command-strip article, .insight-summary article { min-height: 116px; padding: 16px; }
  .command-strip strong, .insight-summary strong { font-size: 28px; }
  .today-layout { gap: 14px; }
  .appointment-button { grid-template-columns: 1fr auto; }
  .appointment-button .state { grid-column: 1 / -1; }
  .next-actions { grid-template-columns: 1fr; }
  .next-actions > button { border-top: 1px solid #353934; border-left: 0; }
  .calendar-toolbar { grid-template-columns: 1fr auto; }
  .calendar-nav { grid-column: 1 / -1; grid-row: 2; }
  .week-calendar, .data-table { width: 900px; }
  [data-panel="calendar"], [data-panel="appointments"] { overflow-x: auto; }
  .list-toolbar { align-items: stretch; flex-direction: column; }
  .filter-row { width: 100%; overflow-x: auto; }
  .client-layout, .editor-layout, .settings-layout { grid-template-columns: 1fr; overflow: visible; }
  .client-profile { display: none; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav button { flex: 0 0 auto; }
  .recovery-hero { grid-template-columns: 1fr; }
  .recovery-value { border-top: 1px solid #3c403b; border-left: 0; }
  .pipeline { grid-template-columns: 1fr; gap: 8px; }
  .pipeline > i { width: 1px; height: 18px; margin-left: 15px; }
  .preview-stage { min-height: 610px; padding: 16px; }
  .booking-preview { min-height: 540px; padding: 28px 20px; }
  .booking-preview h2 { margin-top: 34px; font-size: 42px; }
  .mobile-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 64px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--ink); background: var(--surface); }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; }
  .mobile-nav button.is-active { color: var(--blue); }
  .mobile-nav svg { width: 21px; height: 21px; }
  .toast-region { right: 14px; bottom: 82px; }
  .plan-summary { grid-template-columns: 1fr; }
  .plan-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-summary div:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .command-strip, .insight-summary { grid-template-columns: 1fr; }
  .command-strip article, .command-strip article:nth-child(2), .insight-summary article, .insight-summary article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--ink); }
  .command-strip article:last-child, .insight-summary article:last-child { border-bottom: 0; }
  .day-list { padding-inline: 12px; }
  .day-list li { grid-template-columns: 42px 10px 1fr; }
  .appointment-button { margin-left: 8px; padding: 10px; }
  .attention-panel { padding: 20px; }
  .attention-panel h2 { margin-top: 34px; }
  .mini-flow { grid-template-columns: 1fr; }
  .mini-flow i { width: 1px; height: 14px; margin-left: 10px; }
  .recovery-history li { grid-template-columns: 36px 1fr auto; }
  .recovery-history li .state { grid-column: 2 / -1; }
  .profile-head { grid-template-columns: 50px 1fr; }
  .profile-head .button { grid-column: 1 / -1; }
  .client-facts { grid-template-columns: 1fr 1fr; }
  .client-facts div:nth-child(2) { border-right: 0; }
  .client-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .connection-list article { grid-template-columns: 40px 1fr; }
  .connection-list article .state, .connection-list article .button { grid-column: 2; }
  .hours-list label { grid-template-columns: 20px 1fr; padding: 10px 0; }
  .hours-list label input[type="time"], .hours-list label > span { grid-column: 2; }
  .hours-list label.closed { grid-template-columns: 20px 1fr; }
  .modal form > footer { flex-wrap: wrap; }
  .modal form > footer .button { flex: 1 1 auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
