:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a2438;
  background: #faf7fa;
  font-synthesis: none;
  --ink: #1a2438;
  --muted: #7b7380;
  --line: #eadde5;
  --soft-line: #f3eaf0;
  --surface: #ffffff;
  --canvas: #faf7fa;
  --accent: #e29dbd;
  --accent-strong: #b25f83;
  --accent-soft: #ffe8f3;
  --warning: #a96d1f;
  --warning-soft: #fbf0dd;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 238px; position: fixed; inset: 0 auto 0 0; background: #111b2e; color: #fff; padding: 22px 16px 16px; display: flex; flex-direction: column; z-index: 30; }
.brand-row { height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 7px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); color: #ffe8f3; font-weight: 700; font-size: 16px; }
.brand-row strong { display: block; font-size: 15px; }
.brand-row span { display: block; margin-top: 2px; color: #aab1c2; font-size: 11px; }
.sidebar-close { display: none !important; margin-left: auto; color: #fff !important; }
.primary-nav { margin-top: 42px; display: grid; gap: 4px; }
.nav-label { color: #717b91; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .08em; margin: 0 10px 10px; }
.primary-nav button { border: 0; background: transparent; color: #aab1c2; height: 40px; padding: 0 11px; display: flex; gap: 11px; align-items: center; border-radius: 6px; text-align: left; font-size: 13px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.primary-nav button:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.primary-nav button.active { color: #fff; background: rgba(226,157,189,.15); }
.primary-nav button.active b { color: #f0afcd; }
.sidebar-footer { margin-top: auto; display: grid; gap: 15px; }
.pilot-status { display: flex; align-items: center; gap: 9px; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.status-dot { width: 7px; height: 7px; background: #e29dbd; border-radius: 50%; box-shadow: 0 0 0 4px rgba(226,157,189,.14); display: inline-block; }
.pilot-status strong, .pilot-status span { display: block; }
.pilot-status strong { font-size: 12px; font-weight: 600; }
.pilot-status span { color: #9099ad; font-size: 10px; margin-top: 2px; }
.profile-button { border: 0; background: transparent; color: #fff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; text-align: left; padding: 8px 7px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #ffe8f3; color: #7d3e5c; font-weight: 700; font-size: 10px; }
.profile-button strong { display: block; font-size: 11px; }
.profile-button small { display: block; color: #9099ad; margin-top: 2px; font-size: 9px; }

.workspace { flex: 1; min-width: 0; margin-left: 238px; }
.topbar { height: 66px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 31px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.mobile-menu { display: none !important; }
.search-wrap { width: min(420px, 45vw); position: relative; display: flex; align-items: center; color: #8a938d; }
.search-wrap svg { position: absolute; left: 0; }
.search-wrap input { border: 0; outline: 0; width: 100%; height: 38px; padding: 0 50px 0 26px; color: var(--ink); background: transparent; font-size: 12px; }
.search-wrap input::placeholder { color: #98a19b; }
.search-wrap kbd { position: absolute; right: 0; border: 1px solid var(--line); background: #fafbfa; padding: 3px 6px; color: #8a938d; font-size: 10px; border-radius: 4px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sync-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.icon-button { width: 34px; height: 34px; border: 0; background: transparent; color: #667069; display: grid; place-items: center; border-radius: 6px; transition: background .15s ease, color .15s ease; }
.icon-button:hover { background: #f5eaf0; color: var(--ink); }
.icon-button.small { width: 27px; height: 27px; }
.avatar-button { border: 0; }
.page-transition { animation: pageIn .32s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page-content { width: min(1390px, 100%); margin: 0 auto; padding: 32px 34px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 29px; }
.page-heading.compact { align-items: center; }
.eyebrow { color: var(--accent-strong) !important; font-size: 10px !important; text-transform: uppercase; font-weight: 700; letter-spacing: .075em; margin-bottom: 8px !important; }
.page-heading h1 { font-size: 25px; line-height: 1.2; margin: 0; letter-spacing: 0; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.date-filter, .primary-button { min-height: 36px; border: 1px solid var(--line); background: var(--surface); padding: 0 11px; display: flex; align-items: center; gap: 7px; color: #48534c; border-radius: 6px; font-size: 11px; font-weight: 600; }
.primary-button { background: var(--accent); color: #52283b; border-color: var(--accent); padding-inline: 14px; }
.date-filter:hover { border-color: #bdc5bf; }

.metrics-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 27px; }
.metric { min-height: 111px; padding: 20px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.metric:last-child { border-right: 0; }
.metric > span { color: var(--muted); font-size: 10px; font-weight: 600; }
.metric strong { font-size: 25px; margin: 5px 0 3px; letter-spacing: 0; }
.metric small { display: flex; align-items: center; gap: 3px; font-size: 9px; color: var(--muted); }
.metric small.up { color: var(--accent-strong); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .8fr); gap: 28px; padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2, .capture-notes h2, .privacy-note h2 { font-size: 14px; margin: 0; }
.section-heading p, .capture-notes > p, .privacy-note p { color: var(--muted); margin: 5px 0 0; font-size: 10px; }
.trend-panel, .category-panel, .users-panel, .activity-panel { min-width: 0; }
.chart-wrap { height: 246px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.legend { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); }
.legend > span:first-child { width: 7px; height: 7px; background: var(--accent-strong); border-radius: 50%; }
.chart-tooltip { background: #15221d; color: #fff; padding: 8px 10px; border-radius: 5px; box-shadow: 0 8px 24px rgba(19,37,30,.18); }
.chart-tooltip span, .chart-tooltip strong { display: block; font-size: 9px; }
.chart-tooltip span { color: #a7bab1; margin-bottom: 3px; }
.category-list { display: grid; gap: 13px; padding-top: 2px; }
.category-row { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center; }
.category-row > div:first-child { display: flex; align-items: center; gap: 8px; }
.category-row strong { font-size: 10px; font-weight: 600; }
.category-row > span { color: var(--muted); font-size: 9px; }
.category-dot { width: 7px; height: 7px; border-radius: 50%; background: #75807a; flex: 0 0 auto; }
.category-dot.sleep, .activity-icon.sleep { background: #7f8dac; }
.category-dot.exercise, .activity-icon.exercise { background: #e29dbd; }
.category-dot.water, .activity-icon.water { background: #9dade0; }
.category-dot.wellbeing, .activity-icon.wellbeing { background: #d3a8bb; }
.category-dot.symptoms, .activity-icon.symptoms { background: #b25f83; }
.category-dot.supplements, .activity-icon.supplements { background: #c57c9c; }
.category-dot.food, .activity-icon.food { background: #efaaa9; }
.category-bar { grid-column: 1 / -1; height: 3px; background: #edf0ec; overflow: hidden; }
.category-bar i { display: block; height: 100%; background: #b25f83; transition: width .6s ease; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 29px; padding-top: 28px; }
.text-button { border: 0; background: transparent; color: var(--accent-strong); font-size: 10px; font-weight: 700; padding: 4px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 570px; }
th { text-align: left; color: #8a938d; text-transform: uppercase; font-size: 8px; letter-spacing: .05em; padding: 0 10px 10px; font-weight: 700; }
td { border-top: 1px solid var(--soft-line); padding: 11px 10px; color: #525d56; font-size: 10px; }
.user-cell { display: flex; align-items: center; gap: 9px; }
.avatar.soft { background: #edf1ee; color: #52635b; }
.user-cell strong, .user-cell small { display: block; }
.user-cell strong { font-size: 10px; color: var(--ink); }
.user-cell small { font-size: 8px; color: #909993; margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: #98a19b; }
.status.active { color: var(--accent-strong); }
.status.active i { background: #b25f83; }
.status.paused { color: #9a6c2d; }
.status.paused i { background: #d69a4d; }
.activity-list { display: grid; }
.activity-item { min-height: 54px; border-top: 1px solid var(--soft-line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.activity-item:first-child { border-top: 0; }
.activity-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #718078; }
.activity-item strong { font-size: 10px; }
.activity-item p { margin: 2px 0 0; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.activity-item time { color: #929a95; font-size: 8px; }

.directory { background: var(--surface); border-top: 1px solid var(--line); }
.directory-tools { height: 60px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 17px; }
.inline-search { display: flex; align-items: center; gap: 8px; color: #8a938d; }
.inline-search input { width: 260px; border: 0; outline: 0; font-size: 11px; }
.directory-tools > span { color: var(--muted); font-size: 10px; }
.directory .table-wrap { padding: 0 9px 18px; }

.capture-page { max-width: 1180px; }
.demo-badge { color: var(--accent-strong); background: var(--accent-soft); display: flex; align-items: center; gap: 6px; padding: 7px 9px; font-size: 9px; font-weight: 700; border-radius: 4px; }
.capture-layout { min-height: 640px; display: grid; grid-template-columns: minmax(440px, 1.3fr) minmax(300px, .7fr); border-top: 1px solid var(--line); }
.phone-stage { display: grid; place-items: center; padding: 34px; background: #f4eaf0; border-right: 1px solid var(--line); }
.phone-frame { width: min(410px, 100%); height: 570px; border: 1px solid #ddced7; background: #f5edf2; box-shadow: 0 18px 45px rgba(26,36,56,.12); display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; }
.chat-header { height: 56px; flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 0 13px; background: #fff; border-bottom: 1px solid #dfe4e0; }
.bot-avatar { width: 31px; height: 31px; border-radius: 50%; background: var(--accent); color: #52283b; display: grid; place-items: center; font-weight: 700; }
.chat-header strong, .chat-header span { display: block; }
.chat-header strong { font-size: 11px; }
.chat-header span { color: var(--muted); font-size: 8px; margin-top: 1px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 13px; display: flex; flex-direction: column; gap: 9px; background-color: #f3eaf0; background-image: radial-gradient(#dac9d3 0.55px, transparent 0.55px); background-size: 12px 12px; }
.chat-date { align-self: center; color: #66726b; background: rgba(255,255,255,.76); padding: 4px 7px; border-radius: 4px; font-size: 7px; font-weight: 700; }
.bubble { max-width: 79%; border-radius: 7px; padding: 8px 9px 15px; font-size: 10px; line-height: 1.45; position: relative; box-shadow: 0 1px 1px rgba(25,36,30,.08); animation: bubbleIn .25s ease both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.bubble.bot { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bubble.user { align-self: flex-end; background: #ffe0ef; border-top-right-radius: 2px; }
.bubble time { position: absolute; right: 6px; bottom: 4px; color: #859089; font-size: 7px; }
.bubble.typing { display: flex; gap: 3px; padding: 11px 12px; }
.bubble.typing i { width: 4px; height: 4px; background: #849088; border-radius: 50%; animation: blink 1s infinite alternate; }
.bubble.typing i:nth-child(2) { animation-delay: .18s; }
.bubble.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { to { opacity: .25; transform: translateY(-2px); } }
.confirmation-block { align-self: flex-start; width: 88%; background: #fff; padding: 10px; border-radius: 7px; box-shadow: 0 1px 1px rgba(25,36,30,.08); animation: bubbleIn .25s ease both; }
.confirmation-block > p { margin: 0 0 7px; font-size: 9px; font-weight: 600; }
.parsed-item { border-top: 1px solid #eef1ef; min-height: 38px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; }
.parsed-item strong, .parsed-item span { display: block; }
.parsed-item strong { font-size: 8px; }
.parsed-item span { color: var(--muted); font-size: 8px; margin-top: 1px; }
.parsed-item small { color: #96a098; font-size: 7px; }
.confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.confirmation-actions button { height: 29px; border: 1px solid #d7ded9; background: #fff; color: #536059; border-radius: 4px; font-size: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.confirmation-actions button:first-child { background: var(--accent); border-color: var(--accent); color: #52283b; }
.chat-input { min-height: 52px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; background: #f7f8f7; border-top: 1px solid #dfe4e0; }
.chat-input input { flex: 1; height: 36px; min-width: 0; border: 1px solid #dde2de; background: #fff; border-radius: 18px; padding: 0 14px; outline: 0; font-size: 10px; }
.chat-input input:focus { border-color: #9db6aa; }
.chat-input button { width: 34px; height: 34px; border-radius: 50%; border: 0; color: #52283b; background: var(--accent); display: grid; place-items: center; }
.chat-input button:disabled { background: #b6c0ba; }
.capture-notes { padding: 58px 0 40px 44px; }
.capture-notes h2 { font-size: 17px; }
.capture-notes > p { font-size: 11px; line-height: 1.6; max-width: 330px; }
.sample-message { width: 100%; border: 1px solid var(--line); background: #fff; color: #465149; text-align: left; padding: 13px; margin: 24px 0 30px; border-radius: 6px; font-size: 10px; line-height: 1.5; transition: border-color .15s ease, transform .15s ease; }
.sample-message:hover { border-color: #9db6aa; transform: translateY(-1px); }
.sample-message span { color: var(--accent-strong); display: block; text-transform: uppercase; font-size: 7px; font-weight: 700; margin-bottom: 5px; }
.flow-list { display: grid; gap: 20px; }
.flow-list > div { display: grid; grid-template-columns: 25px 1fr; gap: 10px; }
.flow-list > div > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #b8c5bd; color: var(--accent); font-size: 9px; border-radius: 50%; }
.flow-list p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.flow-list strong { display: block; color: var(--ink); font-size: 10px; margin-bottom: 2px; }

.settings-page { max-width: 980px; }
.settings-list { border-top: 1px solid var(--line); }
.setting-row { min-height: 77px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; }
.setting-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; }
.setting-icon.ready { color: var(--accent-strong); background: var(--accent-soft); }
.setting-icon.pending { color: var(--warning); background: var(--warning-soft); }
.setting-row strong { font-size: 11px; }
.setting-row p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.setting-state { font-size: 9px; font-weight: 700; }
.setting-state.ready { color: var(--accent-strong); }
.setting-state.pending { color: var(--warning); }
.privacy-note { margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 14px; color: var(--accent-strong); }
.privacy-note p { max-width: 660px; line-height: 1.6; }
.loading-state { min-height: 70vh; display: grid; place-content: center; justify-items: center; color: var(--muted); font-size: 11px; }
.loading-state span { width: 25px; height: 25px; border: 2px solid #dce2de; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sidebar-backdrop { display: none; }
.empty-copy { color: var(--muted); font-size: 10px; padding: 22px 0; margin: 0; }
.access-state { min-height: calc(100vh - 66px); display: grid; place-content: center; justify-items: center; text-align: center; padding: 32px; }
.access-state > span { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 50%; font-weight: 700; }
.access-state h1 { margin: 18px 0 7px; font-size: 23px; }
.access-state p { color: var(--muted); max-width: 440px; font-size: 12px; line-height: 1.6; margin: 0 0 20px; }
.access-state .primary-button { text-decoration: none; justify-content: center; }

.auth-body { min-height: 100vh; color: var(--ink); background: #faf5f8; }
.auth-shell { width: min(460px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 70px; }
.auth-shell .onboarding-brand { margin-bottom: min(14vh, 110px); }
.auth-panel { animation: pageIn .4s ease both; }
.auth-panel h1 { margin: 0; font-size: clamp(29px, 8vw, 42px); line-height: 1.08; }
.auth-panel > p:not(.eyebrow):not(.privacy-copy) { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; max-width: 410px; }
.auth-form { margin-top: 34px; display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 650; color: #39435a; }
.auth-form input { height: 46px; border: 1px solid #dbcdd6; background: #fff; color: var(--ink); padding: 0 13px; border-radius: 6px; outline: 0; }
.auth-form input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(226,157,189,.18); }
.auth-form button { height: 44px; border: 0; border-radius: 6px; background: var(--accent); color: #52283b; font-size: 11px; font-weight: 750; transition: background .16s ease, transform .16s ease; }
.auth-form button:hover { background: #d98eb1; transform: translateY(-1px); }
.auth-form button:disabled { cursor: wait; opacity: .68; transform: none; }
.auth-sent { margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.auth-sent[hidden] { display: none; }
.auth-sent > span { width: 30px; height: 30px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); border-radius: 50%; }
.auth-sent strong { font-size: 12px; }
.auth-sent p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.privacy-copy { margin-top: 26px !important; color: #938895 !important; font-size: 9px !important; }

.onboarding-body { color: var(--ink); min-height: 100vh; background: #faf5f8; }
.onboarding-shell { width: min(620px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 70px; }
.onboarding-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 65px; color: #1a2438; }
.onboarding-brand .brand-mark { background: #1a2438; color: #ffe8f3; border-color: #1a2438; }
.onboarding-brand strong { font-size: 14px; }
.onboarding-intro { max-width: 480px; }
.onboarding-intro h1 { margin: 0; font-size: clamp(30px, 7vw, 44px); line-height: 1.08; letter-spacing: 0; }
.onboarding-intro > p:last-child { color: var(--muted); line-height: 1.65; font-size: 12px; max-width: 440px; }
.onboarding-form { margin-top: 38px; padding: 28px; background: #fff; border: 1px solid var(--line); display: grid; gap: 22px; border-radius: 8px; }
.onboarding-form > label:not(.consent-row) { display: grid; gap: 8px; color: #39453e; font-weight: 600; font-size: 11px; }
.onboarding-form input[type="text"], .onboarding-form input:not([type]), .onboarding-form select { width: 100%; height: 42px; border: 1px solid #d6ddd8; border-radius: 5px; padding: 0 11px; color: var(--ink); background: #fff; outline: 0; }
.onboarding-form input:focus, .onboarding-form select:focus { border-color: #c780a0; box-shadow: 0 0 0 3px rgba(226,157,189,.16); }
.onboarding-form fieldset { border: 0; padding: 0; margin: 0; }
.onboarding-form legend { margin-bottom: 9px; color: #39453e; font-weight: 600; font-size: 11px; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.interest-grid label { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; font-size: 10px; border-bottom: 1px solid var(--soft-line); }
.interest-grid label:nth-child(odd) { border-right: 1px solid var(--soft-line); }
.interest-grid label:nth-last-child(-n+2) { border-bottom: 0; }
.onboarding-form input[type="checkbox"] { accent-color: var(--accent); }
.consent-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.consent-row input { margin-top: 2px; }
.onboarding-submit { height: 43px; border: 0; background: var(--accent); color: #52283b; border-radius: 5px; font-weight: 700; font-size: 11px; }
.onboarding-submit:hover { background: var(--accent-strong); }
.onboarding-submit:disabled { background: #a7b6af; }
.form-error { min-height: 0; margin: -9px 0; color: #a7444d; font-size: 9px; }
.onboarding-success { margin-top: 60px; text-align: center; padding: 45px 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.onboarding-success > span { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--accent-soft); color: var(--accent); border-radius: 50%; font-size: 20px; }
.onboarding-success h2 { margin: 0; font-size: 20px; }
.onboarding-success p { margin: 8px auto 0; color: var(--muted); font-size: 11px; }

@media (max-width: 1050px) {
  .overview-grid, .lower-grid { grid-template-columns: 1fr; }
  .category-panel { padding-top: 4px; }
  .category-list { grid-template-columns: 1fr 1fr; gap: 14px 30px; }
  .capture-layout { grid-template-columns: minmax(400px, 1.1fr) minmax(260px, .7fr); }
  .capture-notes { padding-left: 28px; }
}

@media (max-width: 780px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: 14px 0 40px rgba(12,25,19,.2); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-close { display: grid !important; }
  .sidebar-backdrop.visible { display: block; position: fixed; inset: 0; border: 0; background: rgba(13,25,20,.34); z-index: 29; }
  .workspace { margin-left: 0; }
  .topbar { padding: 0 17px; }
  .mobile-menu { display: grid !important; margin-right: 7px; }
  .sync-state, .search-wrap kbd { display: none; }
  .search-wrap { width: min(360px, 60vw); }
  .page-content { padding: 25px 18px 44px; }
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .capture-layout { grid-template-columns: 1fr; }
  .phone-stage { border-right: 0; }
  .capture-notes { padding: 32px 4px; }
}

@media (max-width: 520px) {
  .topbar-actions .icon-button { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 22px; }
  .date-filter, .primary-button { align-self: stretch; justify-content: center; }
  .metrics-strip { grid-template-columns: 1fr; }
  .metric { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .category-list { grid-template-columns: 1fr; }
  .phone-stage { padding: 18px 0; margin-inline: -18px; }
  .phone-frame { width: calc(100% - 24px); height: 610px; }
  .capture-layout { border-top: 0; }
  .inline-search input { width: 180px; }
  .onboarding-brand { margin-bottom: 44px; }
  .onboarding-form { padding: 21px 18px; }
  .auth-shell { padding-top: 25px; }
  .auth-shell .onboarding-brand { margin-bottom: 72px; }
}

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