/* Airquit product UI: neutral surfaces, clear type, purposeful brand colour. */
:root {
  --bg:#f7f9fa; --paper:#fff; --ink:#182c2f; --muted:#6b7a80;
  --line:#e6ebed; --green:#254e4c; --sage:#edf6f4; --warm:#edf6f4;
  --radius:14px;
}
.auth-loading { min-height:100dvh; display:grid; place-items:center; color:#6b7a80; font-size:14px; }
.access-gate { max-width:440px; margin:12vh auto; padding:30px; }
.access-gate>.icon-box { margin-bottom:20px; }
.access-gate h1 { font-size:25px; }
.access-gate p { font-size:14px; }
.access-gate>.primary,.access-gate>.secondary { margin-top:12px; }
body { background:var(--bg); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); font-size:14px; }
h1,h2,h3,blockquote,dialog h2,.welcome h1,.toolkit-hero h2,.health-today h2,.empty-state h3 { font-family:inherit; }
h1,.page-heading h1 { font-size:28px; line-height:1.2; font-weight:650; letter-spacing:-1px; }
h2,.section-title h2 { font-size:16px; font-weight:600; letter-spacing:-.3px; }
h3 { font-size:15px; font-weight:600; }
p { line-height:1.65; }
.eyebrow,.page-heading .eyebrow,.modal-eyebrow { color:#7e9096; font-size:10px; letter-spacing:.8px; font-weight:550; }
.page-heading { margin:4px 0 24px; }
.page-heading p { font-size:13px; color:var(--muted); }
.page-heading .eyebrow { display:none; }
.card { border:1px solid var(--line); border-radius:14px; padding:20px; box-shadow:none; background:#fff; }
.sidebar { padding:20px; min-height:72px; background:#fff; border-color:var(--line); }
.sidebar .brand,.brand { font-size:27px; font-weight:700; letter-spacing:-1.3px; gap:6px; }
.sidebar .brand>.icon { width:25px; height:28px; }
.habit-select { border:1px solid var(--line); border-radius:9px; background:#f7f9fa; min-height:36px; padding:5px 9px; }
.habit-select select { font-size:11px; min-height:25px; font-weight:500; }
.content { padding:24px 20px 0; max-width:680px; }
.topbar { display:none; }
.primary,.secondary,.import-label { min-height:44px; border-radius:8px; font-size:13px; font-weight:550; padding:11px 15px; }
.primary { background:#254e4c; border-color:#254e4c; }
.primary:hover { background:#193f3d; }
.secondary { background:white; border-color:#dce4e7; color:#354c53; }
.secondary:hover { background:#f6f9fa; }
.text-button { color:#426b6b; font-size:12px; min-height:36px; font-weight:500; }
.badge { background:#f0f5f5; color:#648083; font-size:9px; letter-spacing:.4px; padding:4px 7px; border-radius:5px; }
.icon-box,.green,.warm,.peach,.lavender { background:#edf5f3; color:#49847b; border-radius:9px; }
.icon-box { width:34px; height:34px; }
.overview-heading { display:flex; justify-content:space-between; align-items:center; margin:0 0 24px; gap:16px; }
.overview-heading p { margin:0 0 6px; font-size:11px; color:#7c898e; }
.overview-heading h1 { font-size:30px; margin:0 0 7px; font-weight:650; letter-spacing:-1.2px; }
.overview-heading>div>span { font-size:13px; color:#738187; }
.overview-avatar { border:1px solid #d6e7e2; border-radius:50%; width:40px; height:40px; display:grid; place-items:center; background:#e5f3ee; color:#254e4c; font-size:15px; font-weight:600; flex-shrink:0; }
.saas-dashboard { display:flex; flex-direction:column; gap:16px; }
.streak-card { background:#254e4c; border:0; padding:20px 22px 0; color:white; overflow:hidden; }
.streak-card-header { display:flex; align-items:center; justify-content:space-between; }
.streak-card-header>span { display:flex; align-items:center; gap:7px; font-size:12px; color:#d4ebe5; font-weight:500; }
.status-dot { width:6px; height:6px; border-radius:50%; background:#76d3bd; }
.streak-edit { display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid #ffffff20; border-radius:7px; background:transparent; color:#bed8d2; }
.streak-edit .icon { width:16px; height:16px; }
.streak-card-body { display:flex; align-items:center; justify-content:space-between; padding:11px 0 22px; gap:15px; }
.streak-card-body>div>p { margin:0 0 0; font-size:11px; color:#9cbfba; }
.streak-number { display:flex; align-items:baseline; gap:9px; }
.streak-number strong { font-size:65px; font-weight:600; letter-spacing:-3px; line-height:1.2; font-variant-numeric:tabular-nums; }
.streak-number>span { font-size:20px; font-weight:450; color:#cee4dd; letter-spacing:-.4px; }
.streak-detail { font-size:11px; color:#b4d0c8; margin-top:5px; }
.goal-ring { width:100px; height:100px; position:relative; flex-shrink:0; }
.goal-ring>svg { width:100%; height:100%; transform:rotate(-90deg); }
.goal-ring circle { fill:none; stroke-width:5px; }
.ring-track { stroke:#ffffff16; }
.ring-value { stroke:#5dc1b9; stroke-linecap:round; }
.goal-ring>div { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.goal-ring strong { font-size:23px; letter-spacing:-.8px; font-weight:550; }
.goal-ring strong small { font-size:12px; letter-spacing:0; margin-left:2px; }
.goal-ring span { color:#aacac2; font-size:9px; margin-top:2px; }
.streak-card-footer { display:flex; align-items:center; gap:9px; padding:12px 0; border-top:1px solid #ffffff18; color:#bed8d1; font-size:11px; }
.streak-card-footer>.icon { width:15px; height:15px; color:#8fc8b9; }
.streak-card-footer strong { font-weight:500; color:#e9f5f0; }
.streak-card-footer button { margin-left:auto; background:transparent; border:0; display:grid; place-items:center; min-width:32px; height:30px; color:#d7eae4; }
.streak-card-footer button .icon { width:16px; }
.overview-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:20px 0; border-bottom:1px solid var(--line); }
.overview-stats article { min-width:0; padding:0 11px; border-left:1px solid #e1e8e9; }
.overview-stats article:first-child { border:0; padding-left:0; }
.overview-stats article:last-child { padding-right:0; }
.overview-stats article>span { display:flex; flex-wrap:wrap; gap:5px; align-items:center; font-size:10px; color:#7a888d; line-height:1.4; min-height:27px; }
.overview-stats .icon { width:13px; height:13px; color:#759b91; }
.overview-stats strong { display:block; font-size:23px; letter-spacing:-.8px; font-weight:600; font-variant-numeric:tabular-nums; margin-top:5px; overflow-wrap:anywhere; }
.panel-heading { display:flex; justify-content:space-between; align-items:start; gap:15px; }
.panel-heading h2 { margin:0 0 5px; }
.panel-heading p { font-size:12px; margin:0; color:#7b888e; }
.checkin-status { padding:4px 8px; border-radius:5px; background:#f2f5f6; color:#7f8c92; font-size:10px; white-space:nowrap; display:flex; align-items:center; gap:3px; }
.checkin-status.is-done { color:#438775; background:#edf7f0; }
.checkin-status .icon { width:12px; height:12px; }
.checkin-week { display:grid; grid-template-columns:repeat(7,1fr); padding:18px 0 0; gap:5px; }
.checkin-week>div { text-align:center; min-width:0; }
.checkin-week>div>span { font-size:10px; color:#8a969b; }
.week-marker { display:grid; place-items:center; width:29px; height:29px; margin:7px auto 0; border-radius:8px; background:#f5f7f8; color:#a2adb2; font-size:10px; }
.week-marker .icon { width:14px; height:14px; }
.week-marker.is-complete { background:#e7f4ee; color:#5a9d86; }
.week-marker.has-slip { background:#f8eee8; color:#ae8a75; }
.is-today .week-marker { border:1px solid #254e4c; background:#fff; color:#254e4c; }
.is-today>span { color:#254e4c!important; font-weight:600; }
.saas-checkin-actions { display:flex; gap:8px; margin-top:18px; }
.saas-checkin-actions .primary { flex:1; padding:10px; font-size:12px; }
.saas-checkin-actions .secondary { padding:10px 12px; font-size:12px; }
.saas-checkin-actions .icon { width:15px; }
.saas-dashboard>.daily-mission,.saas-dashboard>.today-health-preview,.saas-dashboard>.reward-banner { order:initial; }
.daily-mission { background:#fff; }
.daily-mission .section-title { margin-bottom:10px; align-items:center; }
.daily-mission .eyebrow { font-size:9px; letter-spacing:.7px; color:#75958c; }
.daily-mission h2 { margin-bottom:0; font-size:16px; }
.daily-mission>p { font-size:12px; line-height:1.75; margin-bottom:17px; }
.daily-mission>.primary { background:#edf6f2; color:#254e4c; border-color:#edf6f2; min-height:40px; font-size:12px; }
.daily-mission>.primary:hover { background:#e0efe8; }
.daily-mission>.text-button { font-size:11px; min-height:30px; margin-top:7px; color:#7a9189; }
.support-card { display:flex; align-items:center; gap:12px; background:#e7f3ef; padding:18px; border-radius:12px; }
.support-symbol { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:#d3e9e1; color:#3c786c; }
.support-symbol>.icon { width:22px; }
.support-card h2 { font-size:14px; margin:0 0 3px; }
.support-card p { font-size:12px; color:#6a897f; margin:0; }
.support-card button { margin-left:auto; background:transparent; border:0; min-width:40px; min-height:44px; color:#497e70; }
.support-card button .icon { width:19px; }
.today-health-preview { background:#fff; }
.today-health-preview .eyebrow { font-size:9px; color:#8b9a9e; letter-spacing:.6px; }
.today-health-preview h2 { font-size:16px; margin-bottom:9px; }
.today-health-preview p { font-size:12px; margin-bottom:8px; }
.today-health-preview small { font-size:10px; margin-top:5px; color:#98a3a7; }
.today-health-preview .text-button { font-size:12px; }
.overview-reward h3 { margin:12px 0 6px; font-size:15px; }
.overview-reward p { font-size:19px; color:#294247; font-weight:550; letter-spacing:-.5px; margin:0 0 15px; }
.overview-reward p span { font-size:12px; color:#92a0a5; font-weight:400; letter-spacing:0; }
.overview-reward>small { display:block; font-size:10px; color:#8b999e; margin-top:9px; }
.overview-reward .panel-heading { align-items:center; }
.overview-reward .panel-heading .text-button { min-height:24px; font-size:10px; }
.reward-mini-icon { display:inline-flex; width:32px; height:32px; border-radius:8px; background:#f2f5f5; color:#82958e; align-items:center; justify-content:center; margin-top:12px; }
.reward-mini-icon .icon { width:17px; height:17px; }
.overview-reason .panel-heading { align-items:center; }
.overview-reason .text-button { min-height:24px; font-size:11px; }
.overview-reason p { font-size:13px; color:#6b7d82; margin:12px 0 0; line-height:1.8; }
.progress { height:4px; background:#edf1f2; border-radius:3px; }
.progress i { background:#5dc1b9; }
.bottom-nav { background:#fffffffa; border-color:#e6ebed; box-shadow:none; padding-top:8px; padding-bottom:calc(7px + env(safe-area-inset-bottom)); }
.bottom-tab { background:none; min-height:50px; gap:4px; font-size:10px; font-weight:500; color:#98a4a9; border-radius:0; padding:4px 0; }
.bottom-tab .icon { width:21px; height:21px; }
.bottom-tab.is-active { background:none; color:#254e4c; font-weight:650; }
.bottom-tab.is-active .icon { stroke-width:2; }
.bottom-tab.is-active:after { content:''; width:4px; height:3px; border-radius:3px; background:#5dc1b9; position:absolute; bottom:4px; }
.bottom-tab { position:relative; }
footer { font-size:9px; color:#a4afb4; padding-top:28px; }
footer>.icon { display:none; }
.progress-tabs { background:none; border-radius:0; padding:0; display:flex; gap:18px; overflow:auto; border-bottom:1px solid var(--line); scrollbar-width:none; margin-bottom:24px; }
.progress-tabs button { white-space:nowrap; font-size:11px; border-radius:0; min-height:41px; padding:0 1px; color:#84949b; border-bottom:2px solid transparent; flex:1; }
.progress-tabs button[aria-current] { background:none; box-shadow:none; border-bottom-color:#254e4c; color:#254e4c; font-weight:600; }
.programme-summary,.health-summary { background:#fff; border-color:var(--line); }
.programme-summary h2 { font-size:16px; }
.programme-summary p { font-size:12px; }
.mission-row { border-radius:11px; padding:16px; }
.mission-row strong { font-size:14px; }
.mission-number { font-family:inherit; font-size:15px; font-weight:600; width:36px; height:36px; border-radius:9px; }
.mission-row.completed { background:#fafdfb; }
.mission-row>span>small { font-size:9px; letter-spacing:.5px; }
.achievement-card { text-align:left; }
.achievement-medal { width:44px; height:44px; border-radius:12px; margin:0 0 16px; border:0; outline:0; background:#f0f4f5; }
.achievement-medal>.icon { width:23px; height:23px; }
.achievement-card.earned .achievement-medal { background:#dff2e9; border:0; outline:0; color:#39816a; }
.achievement-card.earned { border-color:#dce9e1; background:#fff; }
.achievement-card h2 { font-size:15px; }
.achievement-card p { font-size:12px; }
.achievement-card>.badge { position:absolute; right:18px; top:20px; font-size:8px; }
.achievement-card>small { font-size:11px; }
.achievement-card .secondary { font-size:12px; }
.health-today { background:#fff; border-left:3px solid #5dc1b9; }
.health-today h2 { font-size:22px; font-weight:600; letter-spacing:-.6px; }
.health-today p,.daily-health p { font-size:13px; }
.health-today .eyebrow { font-size:9px; letter-spacing:.5px; }
.daily-benefit { background:#f7faf9; padding:17px; border-radius:10px; }
.daily-benefit>h2 { font-size:18px; }
.timeline .milestone { border-radius:12px; padding:18px; }
.milestone-node { border-radius:10px; width:32px; height:32px; }
.milestone h2 { font-size:15px; }
.milestone p { font-size:12px; }
.milestone .eyebrow { letter-spacing:.4px; font-size:9px; }
.health-day-picker label { min-width:0; }
.trend-card,.coping-results { border-radius:14px; }
.segmented { background:#edf1f3; border-radius:8px; padding:3px; }
.segmented button { font-size:12px; min-height:38px; border-radius:6px; padding:8px 14px; }
.analysis-controls>.primary { font-size:12px; }
.stat-card { border-radius:12px; }
.stat-card .icon-box { border-radius:8px; }
.stat-card strong { font-weight:600; }
.analysis-stats .stat-card>div>span { font-size:10px; }
.analysis-stats .stat-card>div>small { font-size:9px; }
.trend-bar { border-radius:3px 3px 0 0; }
.source-note,.empty-state p { font-size:11px; }
.coping-row strong,.trigger-row { font-size:13px; }
.savings-hero { background:#254e4c; border-radius:14px; }
.savings-hero h2 { font-family:inherit; font-size:45px; font-weight:600; letter-spacing:-2px; }
.savings-hero p { font-size:12px; }
.goal-card h2 { font-size:17px; }
.goal-card p { font-size:24px; }
.add-goal { min-height:200px; background:transparent; }
.add-goal p { font-size:12px; }
.toolkit-hero { background:#fff; padding:24px; border-left:3px solid #5dc1b9; }
.toolkit-hero h2 { font-size:26px; font-weight:600; letter-spacing:-.8px; }
.toolkit-hero p { font-size:13px; }
.big-breath { display:none; }
.tool-card { border-radius:12px; }
.tool-card:hover { transform:none; box-shadow:none; border-color:#b9d3cc; background:#fcfefd; }
.tool-card h2 { font-size:16px; margin-top:15px; }
.tool-card p { font-size:12px; }
.tool-card>span:last-child { font-size:11px; }
.calendar-day { border-radius:8px; }
.calendar-day.selected { outline:none; background:#254e4c; color:#fff; }
.calendar-label { font-size:10px; }
.entry .icon-box { border-radius:8px; }
.entry strong { font-size:13px; }
.entry p { font-size:12px; }
.entry small { font-size:10px; }
.more-profile { background:white; }
.more-profile .avatar { font-family:inherit; font-size:20px; background:#e6f2ed; }
.more-profile p { font-size:11px; }
.more-item { border-radius:11px; min-height:78px; padding:16px; }
.more-item strong { font-size:14px; }
.more-item small { font-size:11px; }
.more-item .icon-box { width:32px; height:32px; }
.settings-summary { font-size:11px; }
.settings-summary strong { font-size:13px; }
.settings-stack .muted { font-size:12px; }
dialog { background:#fff; border-color:var(--line); border-radius:18px 18px 0 0; }
dialog h2 { font-family:inherit; font-size:24px; font-weight:600; letter-spacing:-.7px; padding-right:20px; }
dialog p { font-size:13px; }
dialog::backdrop { background:#10242655; backdrop-filter:blur(2px); }
.modal-eyebrow { font-size:9px; color:#8b9a9f; }
form label { font-size:12px; font-weight:500; }
input,select,textarea { border-color:#dfe6e8; border-radius:8px; background:#fff; color:#253d44; font-size:16px; }
input:focus,select:focus,textarea:focus { outline:2px solid #b2dcd3; }
.checkbox-label { font-size:12px; }
.craving-details { border-radius:10px; border-color:var(--line); }
.close { color:#92a0a6; }
.breath-reason { font-family:inherit; font-style:normal; font-size:13px; }
#breath-orb { background:#e6f3ef; outline-color:#f1f8f5; box-shadow:none; }
#breath-orb strong { font-family:inherit; font-weight:550; color:#254e4c; font-size:20px; }
.ground-number { font-family:inherit; color:#5dc1b9; font-size:80px; font-weight:600; }
.memory-card { background:#f0f6f3; border-color:#e0e9e4; border-radius:9px; }
.welcome { background:#f7f9fa; justify-content:center; align-items:center; min-height:100dvh; padding:45px 25px; }
.welcome .brand { margin-bottom:55px; }
.welcome-art { display:none; }
.welcome h1 { font-family:inherit; font-size:42px; font-weight:650; letter-spacing:-1.8px; line-height:1.14; margin-bottom:21px; }
.welcome>p { font-size:14px; max-width:360px; line-height:1.8; }
.welcome>.eyebrow { color:#6b8a82; font-size:9px; }
.welcome .large { margin-top:19px; max-width:330px; border-radius:9px; font-size:14px; }
.welcome-perks { margin:32px 0 25px; gap:11px; color:#81928b; }
.welcome-perks>span { font-size:11px; }
.welcome>small { font-size:10px; color:#a1adb2; }
#toast { background:#1c373b; border-radius:9px; font-size:12px; padding:13px 18px; box-shadow:0 3px 14px #10272b13; }
.danger-bg { background:#9a5545; border-color:#9a5545; }
@media(max-width:359px) {
  .content { padding-left:16px; padding-right:16px; }
  .streak-card { padding:18px 18px 0; }
  .streak-number strong { font-size:57px; }
  .goal-ring { width:82px; height:82px; }
  .overview-stats strong { font-size:20px; }
  .overview-stats article>span { font-size:9px; }
  .overview-heading h1 { font-size:28px; }
  .overview-stats .icon { display:none; }
  .saas-checkin-actions .primary,.saas-checkin-actions .secondary { font-size:11px; }
  .progress-tabs { gap:12px; }
  .progress-tabs button { font-size:10px; }
}
@media(min-width:600px) {
  .streak-card-body { padding-bottom:25px; }
  .goal-ring { width:110px; height:110px; }
  .streak-number strong { font-size:73px; }
  .overview-stats { padding:22px 0; }
  .overview-stats strong { font-size:27px; }
  .overview-stats article>span { font-size:12px; }
}
@media(min-width:1000px) {
  .sidebar { padding:32px 20px 20px; width:224px; }
  .sidebar .brand { padding:0 12px; font-size:29px; }
  .workspace-label { margin:40px 12px 12px; font-size:9px; letter-spacing:1.4px; color:#9ca9af; }
  .sidebar nav .nav-link { padding:10px 12px; font-size:12px; border-radius:7px; color:#7e8d94; }
  .sidebar nav .nav-link.active { background:#e9f3ef; color:#254e4c; }
  .nav-dot { display:none; }
  .sidebar .habit-select { margin-bottom:24px; }
  .sidebar-bottom { border-top:1px solid var(--line); padding-top:10px; }
  .profile { padding-top:14px; }
  .profile strong { font-size:12px; }
  .profile small { font-size:10px; }
  main { margin-left:224px; }
  .topbar { display:flex; height:71px; padding:16px 40px; background:#fff; font-size:12px; color:#93a0a7; }
  .help-btn { border-radius:7px; min-height:37px; padding:7px 12px; font-size:11px; background:#edf6f2; border-color:#e4eee9; }
  .date { font-size:11px; }
  .content { padding:35px 40px 0; max-width:1370px; }
  .overview-heading { margin-bottom:28px; }
  .overview-heading h1 { font-size:32px; }
  .overview-avatar { display:none; }
  .saas-dashboard { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:20px; align-items:start; }
  .streak-card { grid-column:1; grid-row:1; }
  .saas-checkin { grid-column:2; grid-row:1; align-self:stretch; display:flex; flex-direction:column; }
  .checkin-week { padding-top:25px; padding-bottom:0; margin-top:auto; }
  .saas-checkin-actions { margin-top:20px; }
  .overview-stats { grid-column:1/-1; grid-row:2; padding:8px 0 25px; }
  .overview-stats article { padding:0 25px; }
  .overview-stats article>span { min-height:initial; }
  .overview-stats strong { font-size:29px; }
  .saas-dashboard>.daily-mission { grid-column:1; grid-row:3; align-self:stretch; }
  .saas-dashboard>.today-health-preview { grid-column:2; grid-row:3; align-self:stretch; }
  .saas-dashboard>.overview-reward { grid-column:1; grid-row:4/6; align-self:stretch; }
  .support-card { grid-column:2; grid-row:4; }
  .overview-reason { grid-column:2; grid-row:5; }
  .streak-card-body { padding:11px 0 20px; }
  .goal-ring { width:112px; height:112px; }
  .streak-number strong { font-size:73px; }
  .streak-card { padding-left:25px; padding-right:25px; }
  .page-heading h1 { font-size:30px; }
  footer { padding-left:40px; padding-right:40px; }
  .progress-tabs { max-width:510px; gap:30px; }
  .progress-tabs button { flex:none; padding:0 3px; font-size:12px; }
  dialog { border-radius:14px; }
}
@media(min-width:900px) and (max-width:999px) {
  .sidebar { display:none; }
  main { margin-left:0; }
  .bottom-nav { display:grid; }
  .overview-avatar { display:grid; }
  footer { padding-bottom:100px; }
}

/* Hidden plan fields must stay out of the layout and keyboard navigation. */
#habit-form [hidden] { display: none !important; }
@media (max-width: 480px) {
  #habit-form .form-three { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #habit-form .form-three > label:first-child { grid-column: 1 / -1; }
}
