:root {
  --paper: #f4f3ee;
  --paper-2: #ebeae4;
  --card: #fbfaf6;
  --ink: #171915;
  --muted: #6f736a;
  --line: #dcdcd4;
  --green: #184f3b;
  --green-2: #dcebe2;
  --lime: #d8f06c;
  --amber: #a4661f;
  --amber-bg: #f4e9d5;
  --red: #a33e38;
  --shadow: 0 18px 60px rgba(34, 38, 30, .08);
  --sidebar: 244px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 26px 18px 18px;
  background: #20231e; color: #f6f5f0; display: flex; flex-direction: column; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 25px; font-size: 20px; font-weight: 720; letter-spacing: -.04em; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; background: var(--lime); color: #1a281f; display: grid; place-items: center; font-weight: 850; letter-spacing: -.12em; }
.nav-label { color: #8f958a; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; padding: 4px 11px 8px; }
.nav { display: grid; gap: 3px; }
.nav button { border: 0; background: transparent; color: #aeb3aa; padding: 10px 11px; border-radius: 10px; display: flex; align-items: center; gap: 11px; cursor: pointer; text-align: left; transition: .2s ease; }
.nav button:hover { background: #2b2f29; color: white; }
.nav button.active { background: #33382f; color: white; box-shadow: inset 0 0 0 1px #3d433a; }
.nav .badge { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 20px; background: var(--lime); color: #183023; text-align: center; font-size: 11px; font-weight: 760; }
.nav-icon { width: 18px; height: 18px; opacity: .95; }
.nav-spacer { height: 16px; }
.account { margin-top: auto; border-top: 1px solid #393d36; padding: 17px 8px 2px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #e9bb78; display: grid; place-items: center; color: #432c10; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.account strong { display: block; font-size: 12px; }
.account small { color: #8f958a; font-size: 11px; }

.main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 72px; padding: 0 36px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: rgba(244,243,238,.9); backdrop-filter: blur(14px); z-index: 20; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.topbar-business { font-size: 13px; font-weight: 660; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: #3f9769; border-radius: 50%; box-shadow: 0 0 0 4px rgba(63,151,105,.13); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.mobile-menu { display: none !important; }
.content { padding: 34px 36px 72px; max-width: 1500px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { margin: 3px 0 6px; font: 540 clamp(30px, 4vw, 42px)/1.06 Georgia, serif; letter-spacing: -.04em; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 620px; line-height: 1.55; }
.head-actions { display: flex; gap: 9px; align-items: center; padding-top: 8px; }

.btn { border: 1px solid var(--line); background: var(--card); min-height: 38px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 680; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.02); transition: .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: #b9bbb2; box-shadow: 0 5px 16px rgba(0,0,0,.06); }
.btn.dark { background: var(--ink); color: white; border-color: var(--ink); }
.btn.green { background: var(--green); color: white; border-color: var(--green); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--red); }
.icon-btn { width: 38px; padding: 0; }
.btn svg { width: 15px; height: 15px; }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 0 rgba(255,255,255,.7); }
.card.pad { padding: 20px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.card-head p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }
.card-body { padding: 20px; }
.stat { padding: 18px; min-height: 132px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; width: 80px; height: 80px; right: -24px; top: -25px; border-radius: 50%; background: var(--green-2); opacity: .65; }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.stat-value { font: 520 31px/1 Georgia, serif; margin-top: 22px; letter-spacing: -.04em; }
.stat-foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.delta { color: var(--green); font-weight: 720; }
.mini-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; color: var(--green); }
.mini-icon svg { width: 14px; height: 14px; }

.section-gap { margin-top: 16px; }
.activity-list, .simple-list { display: grid; }
.activity-row { padding: 14px 20px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover { background: #f7f6f1; }
.activity-row strong { font-size: 12px; }
.activity-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 99px; padding: 4px 8px; font-size: 10px; font-weight: 700; background: var(--paper-2); color: #555950; }
.status.green { color: var(--green); background: var(--green-2); }
.status.amber { color: var(--amber); background: var(--amber-bg); }
.status.red { color: var(--red); background: #f5dedb; }
.status .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.chart-wrap { height: 220px; padding: 14px 20px 20px; display: flex; align-items: flex-end; gap: 10px; }
.bar-group { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar { width: min(30px, 70%); border-radius: 7px 7px 3px 3px; background: var(--green); position: relative; transition: .3s ease; min-height: 5px; }
.bar:hover { background: #267155; }
.bar-group span { font-size: 9px; color: var(--muted); }
.insight { padding: 20px; background: var(--green); color: white; overflow: hidden; position: relative; }
.insight::after { content: '39'; position: absolute; right: -3px; bottom: -28px; font: 700 105px/1 Georgia, serif; opacity: .08; }
.insight .eyebrow { color: #a7c6b6; }
.insight h3 { font: 500 21px/1.25 Georgia, serif; margin: 14px 0 10px; max-width: 330px; }
.insight p { color: #b9d0c3; font-size: 12px; line-height: 1.55; max-width: 350px; }

.tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 11px 13px; color: var(--muted); font-size: 12px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 690; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.search { position: relative; min-width: 240px; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 35px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); outline: none; font-size: 12px; }
.search input:focus, input:focus, textarea:focus, select:focus { border-color: #8b9386; box-shadow: 0 0 0 3px rgba(24,79,59,.08); outline: none; }
.search svg { position: absolute; left: 12px; top: 11px; width: 15px; height: 15px; color: var(--muted); }
.inbox-layout { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr); min-height: 590px; overflow: hidden; }
.list-panel { border-right: 1px solid var(--line); }
.list-toolbar { padding: 13px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.enquiry { padding: 15px; border-bottom: 1px solid var(--line); cursor: pointer; display: grid; gap: 10px; }
.enquiry:hover { background: #f8f7f3; }
.enquiry.selected { background: #edf2ed; box-shadow: inset 3px 0 var(--green); }
.enquiry-top, .row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.enquiry strong { font-size: 12px; }
.enquiry p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-panel { min-width: 0; }
.detail-top { padding: 21px; border-bottom: 1px solid var(--line); }
.detail-top h2 { margin: 9px 0 5px; font: 520 23px/1.2 Georgia, serif; }
.meta { color: var(--muted); font-size: 11px; display: flex; flex-wrap: wrap; gap: 14px; }
.detail-body { padding: 20px; display: grid; gap: 18px; }
.note { padding: 14px; background: var(--paper); border-radius: 11px; border: 1px solid var(--line); font-size: 12px; line-height: 1.55; }
.note strong { display: block; margin-bottom: 5px; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 20px 1fr; gap: 11px; min-height: 62px; }
.timeline-line { position: relative; display: flex; justify-content: center; }
.timeline-line::after { content: ''; position: absolute; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child .timeline-line::after { display: none; }
.timeline-dot { width: 8px; height: 8px; border: 2px solid var(--card); background: var(--green); border-radius: 50%; margin-top: 4px; z-index: 1; box-shadow: 0 0 0 1px var(--green); }
.timeline-copy strong { font-size: 11px; }
.timeline-copy p { margin: 4px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { padding: 11px 16px; text-align: left; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; border-bottom: 1px solid var(--line); font-weight: 700; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f7f6f1; }
.person { display: flex; align-items: center; gap: 10px; }
.person strong { display: block; font-size: 11px; }
.person small { display: block; color: var(--muted); margin-top: 2px; }
.direction { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); }
.direction svg { width: 12px; height: 12px; }
.drawer { position: fixed; top: 0; right: 0; width: min(500px, 100%); height: 100vh; background: var(--card); z-index: 50; box-shadow: -18px 0 70px rgba(0,0,0,.16); transform: translateX(105%); transition: .28s ease; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-shade { position: fixed; inset: 0; background: rgba(18,20,17,.28); z-index: 45; opacity: 0; pointer-events: none; transition: .28s ease; backdrop-filter: blur(2px); }
.drawer-shade.open { opacity: 1; pointer-events: auto; }
.drawer-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.transcript { display: grid; gap: 12px; padding: 20px; }
.bubble { max-width: 85%; padding: 10px 12px; border-radius: 12px 12px 12px 3px; background: var(--paper-2); font-size: 11px; line-height: 1.55; }
.bubble.ai { margin-left: auto; background: var(--green); color: white; border-radius: 12px 12px 3px 12px; }
.bubble small { display: block; opacity: .6; margin-bottom: 4px; font-size: 9px; }

.agent-hero { padding: 24px; background: #20231e; color: white; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.agent-identity { display: flex; gap: 16px; align-items: center; }
.agent-orb { width: 62px; height: 62px; border-radius: 20px; background: var(--lime); display: grid; place-items: center; color: var(--green); box-shadow: inset 0 0 0 7px rgba(255,255,255,.35); }
.agent-orb svg { width: 26px; height: 26px; }
.agent-hero h2 { margin: 0 0 7px; font: 520 24px Georgia, serif; }
.agent-hero p { margin: 0; color: #aeb5ab; font-size: 11px; }
.agent-hero > .btn { color: var(--ink); }
.agent-main { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.subnav { padding: 8px; height: fit-content; position: sticky; top: 90px; }
.subnav button { border: 0; background: transparent; width: 100%; padding: 11px; display: flex; gap: 10px; text-align: left; border-radius: 9px; color: var(--muted); font-size: 11px; cursor: pointer; }
.subnav button.active { color: var(--green); background: var(--green-2); font-weight: 700; }
.progress { height: 5px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.form-section { padding: 22px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section h3 { margin: 0 0 5px; font-size: 14px; }
.form-section > p { margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 720; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 10px 11px; color: var(--ink); font-size: 11px; }
.field textarea { resize: vertical; min-height: 82px; line-height: 1.5; }
.field small { color: var(--muted); font-size: 9px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { border: 1px solid var(--line); border-radius: 11px; padding: 13px; cursor: pointer; background: white; }
.choice.selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #f2f7f3; }
.choice strong { font-size: 11px; display: block; }
.choice span { color: var(--muted); font-size: 9px; }
.switch-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-copy strong { display: block; font-size: 11px; }
.switch-copy span { color: var(--muted); font-size: 9px; display: block; margin-top: 3px; }
.switch { width: 38px; height: 22px; border: 0; border-radius: 22px; background: #c9cbc4; padding: 3px; cursor: pointer; transition: .2s; flex: 0 0 auto; }
.switch::after { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(16px); }
.website-review { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-item { padding: 13px; display: grid; grid-template-columns: 18px 1fr auto; gap: 11px; align-items: start; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-item input { margin-top: 2px; accent-color: var(--green); }
.review-item strong { display: block; font-size: 11px; }
.review-item p { margin: 4px 0 0; font-size: 10px; line-height: 1.45; color: var(--muted); }
.playbook-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.playbook { padding: 16px; }
.playbook h4 { margin: 13px 0 5px; font-size: 12px; }
.playbook p { color: var(--muted); font-size: 10px; line-height: 1.5; min-height: 31px; }
.test-phone { max-width: 390px; margin: 10px auto; border: 1px solid var(--line); border-radius: 26px; padding: 14px; background: #20231e; color: white; box-shadow: var(--shadow); }
.test-screen { border-radius: 17px; background: #2b2f29; min-height: 420px; padding: 22px; display: flex; flex-direction: column; align-items: center; }
.wave { display: flex; align-items: center; gap: 3px; height: 50px; margin: 38px 0 18px; }
.wave i { width: 3px; height: 14px; border-radius: 3px; background: var(--lime); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .12s; height: 27px; }.wave i:nth-child(3) { animation-delay: .24s; height: 38px; }.wave i:nth-child(4) { animation-delay: .36s; height: 23px; }.wave i:nth-child(5) { animation-delay: .48s; height: 31px; }
@keyframes wave { 50% { transform: scaleY(.45); opacity: .55; } }

.number-card { padding: 20px; }
.number { font: 520 23px Georgia, serif; margin: 15px 0 5px; }
.steps { counter-reset: steps; }
.step { counter-increment: steps; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before { content: counter(steps); width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 10px; }
.step strong { display: block; font-size: 11px; margin: 2px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.app-card { padding: 18px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; min-height: 140px; }
.app-logo { width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; font-size: 16px; font-weight: 850; }
.app-card h3 { font-size: 12px; margin: 3px 0 5px; }
.app-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.coming { margin-top: 13px; }
.apps-hero { text-align: center; padding: 44px 20px; background: #20231e; color: white; border-radius: 16px; }
.apps-hero h2 { font: 500 29px Georgia, serif; margin: 14px auto 8px; }
.apps-hero p { margin: 0 auto; color: #aeb5ab; font-size: 12px; max-width: 540px; line-height: 1.6; }

.price { padding: 22px; position: relative; }
.price.featured { background: #20231e; color: white; border-color: #20231e; transform: translateY(-7px); }
.price h3 { font: 520 20px Georgia, serif; margin: 7px 0 8px; }
.price-amount { font: 540 32px Georgia, serif; margin: 21px 0 3px; }
.price-amount span { font: 400 10px Inter, sans-serif; color: var(--muted); }
.price.featured .price-amount span, .price.featured p, .price.featured li { color: #aeb5ab; }
.price p { color: var(--muted); font-size: 10px; line-height: 1.5; min-height: 31px; }
.price ul { list-style: none; padding: 13px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.price li { font-size: 10px; color: var(--muted); display: flex; gap: 8px; }
.price li::before { content: '✓'; color: var(--green); font-weight: 900; }
.price.featured li::before { color: var(--lime); }
.bill-summary { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 11px; padding: 9px 0; }
.bill-summary.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-weight: 800; }
.usage-bar { height: 8px; border-radius: 8px; overflow: hidden; background: var(--paper-2); margin: 13px 0 8px; }
.usage-bar span { display: block; width: 43%; height: 100%; background: var(--green); }
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; }
.danger-zone { border-color: #e8c4c0; }
.danger-zone .card-head { border-color: #e8c4c0; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 35px; height: 35px; margin-bottom: 10px; }
.toast { position: fixed; bottom: 24px; right: 24px; background: #20231e; color: white; padding: 12px 16px; border-radius: 10px; font-size: 11px; z-index: 100; transform: translateY(90px); opacity: 0; transition: .25s ease; box-shadow: var(--shadow); }
.toast.show { transform: translateY(0); opacity: 1; }
.mobile-only { display: none; }

@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .inbox-layout { grid-template-columns: 340px 1fr; }
  .price.featured { transform: none; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  .sidebar { transform: translateX(-105%); width: 244px; transition: .25s ease; box-shadow: 12px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-menu { display: inline-flex !important; }
  .topbar { padding: 0 18px; }
  .topbar .eyebrow { display: none; }
  .content { padding: 25px 18px 60px; }
  .page-head { align-items: stretch; }
  .inbox-layout { grid-template-columns: 1fr; }
  .list-panel { border: 0; }
  .detail-panel { display: none; }
  .detail-panel.mobile-open { display: block; position: fixed; inset: 0; z-index: 60; background: var(--card); overflow-y: auto; }
  .mobile-only { display: inline-flex; }
  .agent-main, .settings-layout { grid-template-columns: 1fr; }
  .subnav { position: static; display: flex; overflow-x: auto; }
  .subnav button { width: auto; white-space: nowrap; }
}

@media (max-width: 590px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .form-grid, .choice-grid, .playbook-grid { grid-template-columns: 1fr; }
  .page-head { display: grid; }
  .head-actions { padding: 0; }
  .head-actions .btn { flex: 1; }
  .stat { min-height: 115px; }
  .search { min-width: 0; flex: 1 1 100%; }
  .top-actions .btn:not(.icon-btn) { display: none; }
  .agent-hero { grid-template-columns: 1fr; }
  .agent-hero > .btn { width: 100%; }
  .activity-row { grid-template-columns: 34px minmax(0,1fr); }
  .activity-row .time { display: none; }
  .apps-hero { padding: 34px 16px; }
  .field.full { grid-column: auto; }
}

/* Signal39 interface system
   60% canvas, 30% surface, 10% signal colour. */
:root {
  --paper: #f6f7f3;
  --paper-2: #eef0ea;
  --card: #ffffff;
  --ink: #121512;
  --muted: #656b63;
  --line: #dfe3da;
  --line-strong: #cdd2c8;
  --green: #236047;
  --green-strong: #174a36;
  --green-2: #e4efe7;
  --lime: #d9f36b;
  --amber: #8a581d;
  --amber-bg: #f7ecd9;
  --red: #9d3d38;
  --shadow: 0 20px 50px rgba(25, 31, 24, .08);
  --shadow-sm: 0 1px 2px rgba(20, 25, 20, .05), 0 8px 24px rgba(20, 25, 20, .035);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --sidebar: 252px;
}

body {
  background:
    radial-gradient(circle at 100% 0, rgba(217, 243, 107, .07), transparent 26rem),
    var(--paper);
  letter-spacing: -.005em;
}

button, input, textarea, select { letter-spacing: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.sidebar {
  padding: 24px 16px 16px;
  background: #151914;
  border-right: 1px solid #292e28;
}
.brand {
  gap: 12px;
  padding: 0 10px 30px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.045em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), inset 0 -2px 0 rgba(31,61,38,.12);
}
.nav-label {
  padding: 5px 12px 8px;
  color: #747b72;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .15em;
}
.nav { gap: 2px; }
.nav button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: #a8afa6;
  font-size: 12px;
  font-weight: 560;
}
.nav button:hover { background: #20251f; }
.nav button.active {
  background: #f0f2ec;
  color: #141814;
  box-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.nav button.active .nav-icon { color: var(--green); }
.nav .badge {
  min-width: 20px;
  padding: 3px 6px;
  background: var(--lime);
  color: #1d3c2c;
  font-size: 9px;
}
.nav-icon { width: 16px; height: 16px; }
.account {
  margin: auto 2px 0;
  padding: 16px 8px 2px;
  border-color: #2b312a;
}
.account .avatar { width: 32px; height: 32px; }
.account strong { font-size: 11px; font-weight: 650; }
.account small { font-size: 9px; }

.topbar {
  height: 64px;
  padding: 0 32px;
  background: rgba(246,247,243,.9);
  border-color: rgba(205,210,200,.8);
  box-shadow: 0 1px 0 rgba(255,255,255,.75);
}
.topbar-business { font-size: 12px; font-weight: 680; }
.live-dot { width: 6px; height: 6px; background: #4b9d70; box-shadow: 0 0 0 3px rgba(75,157,112,.14); }
.content { padding: 38px 40px 80px; max-width: 1480px; }
.page-head { margin-bottom: 30px; }
.page-head h1 {
  margin: 5px 0 8px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(30px, 3.5vw, 38px);
  font-weight: 710;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.page-head p { max-width: 570px; font-size: 13px; line-height: 1.6; }
.eyebrow { font-size: 9px; font-weight: 730; letter-spacing: .14em; }

.btn {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 11px;
  font-weight: 690;
  box-shadow: 0 1px 1px rgba(20,25,20,.03);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 6px 16px rgba(20,25,20,.07);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.dark { background: #151914; border-color: #151914; }
.btn.dark:hover { background: #272d26; border-color: #272d26; }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.green:hover { background: var(--green-strong); border-color: var(--green-strong); }
.btn.ghost:hover { background: var(--paper-2); box-shadow: none; }
.icon-btn { width: 40px; }

.grid { gap: 18px; }
.split { gap: 18px; }
.card {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.card-head { padding: 20px 22px; border-color: var(--line); }
.card-head h2, .card-head h3 { font-size: 13px; font-weight: 710; letter-spacing: -.02em; }
.card-head p { margin-top: 5px; font-size: 10px; line-height: 1.5; }
.card-body { padding: 22px; }

.stat {
  min-height: 144px;
  padding: 20px;
  border-top: 3px solid transparent;
}
.stat:hover { border-top-color: var(--green); box-shadow: 0 14px 35px rgba(25,31,24,.07); }
.stat::after {
  width: 76px;
  height: 76px;
  right: -28px;
  top: -28px;
  background: var(--lime);
  opacity: .22;
}
.stat-label { font-size: 10px; font-weight: 620; }
.stat-value {
  margin-top: 25px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 29px;
  font-weight: 720;
  letter-spacing: -.05em;
}
.stat-foot { margin-top: 10px; font-size: 9px; }
.delta { font-weight: 760; }
.mini-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--green-2); }

.status {
  min-height: 22px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 720;
  border: 1px solid rgba(111,116,107,.08);
}
.status.green { background: var(--green-2); }
.status.amber { background: var(--amber-bg); }

.activity-row { padding: 15px 20px; grid-template-columns: 36px minmax(0,1fr) auto; }
.activity-row:hover, tbody tr:hover { background: #fafbf8; }
.activity-row strong, .enquiry strong { font-size: 11px; font-weight: 690; }
.activity-row p, .enquiry p { font-size: 10px; }
.avatar { width: 32px; height: 32px; font-size: 10px; }
.time { font-size: 9px; }

.chart-wrap { height: 236px; padding: 24px 22px 20px; gap: 14px; }
.bar {
  width: min(34px, 72%);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #37785b, var(--green));
}
.bar-group span { font-size: 8px; font-weight: 650; }
.insight {
  padding: 24px;
  background: #17231c;
  border-color: #17231c;
}
.insight h3 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 21px;
  font-weight: 670;
  letter-spacing: -.035em;
}
.insight p { font-size: 10px; line-height: 1.7; }
.insight .btn { margin-top: 8px; }

.tabs { gap: 18px; }
.tab { padding: 11px 1px; font-size: 10px; font-weight: 610; }
.tab.active { border-bottom-width: 2px; }
.search input { height: 40px; border-radius: var(--radius-sm); background: #fff; font-size: 10px; }
.inbox-layout { min-height: 620px; }
.list-toolbar { padding: 14px; }
.enquiry { padding: 16px; gap: 9px; }
.enquiry.selected { background: #f0f5f1; box-shadow: inset 3px 0 var(--green); }
.detail-top { padding: 24px; }
.detail-top h2 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.detail-body { padding: 22px; gap: 20px; }
.note { padding: 15px; border-radius: 9px; background: #f7f8f4; font-size: 10px; line-height: 1.65; }

th { padding: 12px 18px; background: #fafbf8; font-size: 8px; letter-spacing: .12em; }
td { padding: 14px 18px; font-size: 10px; }
.person strong { font-size: 10px; }
.person small { font-size: 9px; }
.direction { width: 28px; height: 28px; }

.drawer { border-left: 1px solid var(--line); }
.drawer-head { padding: 24px; }
.bubble { padding: 11px 13px; font-size: 10px; line-height: 1.65; }
.bubble.ai { background: var(--green-strong); }

.agent-hero {
  padding: 26px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 85% 15%, rgba(217,243,107,.12), transparent 15rem),
    #151914;
}
.agent-orb { width: 60px; height: 60px; border-radius: 16px; }
.agent-hero h2 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 22px;
  font-weight: 710;
  letter-spacing: -.04em;
}
.agent-main { grid-template-columns: 230px minmax(0,1fr); gap: 18px; }
.subnav { padding: 7px; }
.subnav button { min-height: 42px; padding: 0 11px; border-radius: 7px; font-size: 10px; }
.subnav button.active { background: var(--green-2); }
.form-section { padding: 24px; }
.form-section h3 { font-size: 13px; font-weight: 710; }
.form-section > p { font-size: 10px; }
.field { gap: 7px; }
.field label { font-size: 9px; letter-spacing: .01em; }
.field input, .field textarea, .field select { border-radius: var(--radius-sm); padding: 11px 12px; font-size: 10px; }
.choice { padding: 15px; border-radius: 9px; }
.choice:hover { border-color: var(--line-strong); background: #fafbf8; }
.choice.selected { background: #f1f6f2; box-shadow: inset 0 0 0 1px var(--green); }
.switch-row { padding: 15px 0; }
.switch-copy strong { font-size: 10px; }
.switch-copy span { font-size: 9px; }
.website-review { border-radius: 9px; }
.review-item { padding: 15px; }
.playbook { padding: 18px; box-shadow: none; }
.progress, .usage-bar { height: 6px; }

.number {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.step::before { background: var(--green-strong); }
.app-card { padding: 20px; min-height: 150px; }
.app-logo { border-radius: 10px; background: #f1f3ed; }
.apps-hero {
  padding: 52px 20px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #151914;
  background-size: 32px 32px;
}
.apps-hero h2 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.045em;
}

.price { padding: 24px; }
.price.featured { background: #151914; border-color: #151914; }
.price h3 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 19px;
  font-weight: 700;
}
.price-amount {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 30px;
  font-weight: 720;
  letter-spacing: -.045em;
}
.price p, .price li { font-size: 9px; line-height: 1.6; }

@media (max-width: 820px) {
  .topbar { padding: 0 18px; }
  .content { padding: 28px 18px 64px; }
  .page-head { margin-bottom: 24px; }
  .agent-main { grid-template-columns: 1fr; }
  .subnav { padding: 6px; }
  .subnav button { min-height: 38px; padding: 0 10px; }
}

@media (max-width: 590px) {
  .content { padding-top: 24px; }
  .page-head h1 { font-size: 31px; }
  .page-head p { font-size: 12px; }
  .stat { min-height: 124px; padding: 18px; }
  .stat-value { margin-top: 18px; font-size: 28px; }
  .agent-hero { padding: 22px; }
  .apps-hero { padding: 40px 18px; }
}
