@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  --ink: #102a43;
  --ink-soft: #486581;
  --muted: #829ab1;
  --line: #d9e2ec;
  --paper: #f7f9f7;
  --white: #ffffff;
  --navy: #102a43;
  --navy-2: #183b56;
  --teal: #0f8b8d;
  --teal-soft: #e7f5f3;
  --coral: #ed7c65;
  --coral-soft: #fff0ec;
  --gold: #e9ae54;
  --gold-soft: #fff7e8;
  --sage: #6a9b83;
  --sage-soft: #eef6f0;
  --shadow: 0 15px 35px rgba(16, 42, 67, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(15, 139, 141, .35); outline-offset: 3px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 31px 25px 22px; position: fixed; inset: 0 auto 0 0; z-index: 3; }
.brand, .mobile-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -0.7px; }
.brand > span:last-child span, .mobile-brand span span { color: #85d8cf; }
.brand-mark { color: #85d8cf; width: 28px; height: 28px; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.side-intro { margin: 65px 0 34px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.45px; font-weight: 700; margin: 0 0 10px; }
.sidebar .eyebrow { color: #7e9bb2; }
.side-copy { color: #b8c9d5; font-size: 13px; line-height: 1.65; margin: 0; max-width: 180px; }
.nav-links { display: grid; gap: 8px; }
.nav-link { color: #a9bfcc; text-decoration: none; border-radius: 9px; padding: 12px 13px; display: flex; align-items: center; gap: 13px; font-size: 13px; transition: .2s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff; background: #21445f; box-shadow: inset 3px 0 0 #85d8cf; }
.nav-icon { font-size: 18px; width: 18px; text-align: center; line-height: 1; color: #85d8cf; }
.sidebar-note { margin-top: auto; background: #173b57; border-radius: 11px; padding: 15px 14px; display: flex; gap: 11px; color: #c5d5de; }
.note-icon { color: var(--gold); font-size: 19px; line-height: 1; }
.sidebar-note strong { display: block; color: #f2f7f7; font-size: 11px; margin-bottom: 6px; }
.sidebar-note p { font-size: 11px; line-height: 1.5; margin: 0; color: #9db6c4; }
.sidebar-footer { color: #7392a8; font-size: 10px; margin: 23px 2px 0; display: flex; align-items: center; gap: 7px; }
.privacy-dot { height: 6px; width: 6px; border-radius: 50%; background: #85d8cf; box-shadow: 0 0 0 3px rgba(133,216,207,.12); }
.main-content { width: calc(100% - 252px); margin-left: 252px; padding: 0 47px 46px; max-width: 1600px; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: flex-end; gap: 21px; border-bottom: 1px solid var(--line); }
.topbar-tools { display: flex; align-items: center; gap: 14px; }
.mobile-brand { display: none; color: var(--navy); }
.mobile-brand span span { color: var(--teal); }
.date-stamp { font-size: 11px; color: var(--muted); letter-spacing: .25px; }
.profile-chip { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 3px 0; text-align: left; color: var(--ink); }
.profile-chip:hover .profile-name, .profile-chip:hover .profile-copy strong { color: var(--teal); }
.profile-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: 12px; }
.profile-copy { display: grid; gap: 2px; }
.profile-copy strong { font-size: 11px; transition: color .2s ease; }
.profile-copy small { color: var(--muted); font-size: 9px; }
.icon-button { border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: .2s ease; }
.icon-button:hover { border-color: var(--teal); color: var(--teal); transform: rotate(-12deg); }
.hero-section { min-height: 280px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 51px 14px 35px 0; border-bottom: 1px solid var(--line); }
.hero-copy h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -2.2px; margin: 0 0 16px; font-weight: 700; }
.hero-copy h1 em { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; color: var(--teal); letter-spacing: -1px; }
.hero-subtitle { color: var(--ink-soft); max-width: 450px; line-height: 1.65; margin: 0 0 25px; }
.hero-actions { display: flex; align-items: center; gap: 18px; }
.primary-button, .outline-button, .sound-button, .text-button { transition: .2s ease; }
.primary-button { color: #fff; background: var(--teal); border: 0; border-radius: 7px; padding: 12px 17px; font-size: 12px; font-weight: 700; box-shadow: 0 8px 16px rgba(15,139,141,.17); }
.primary-button span { margin-right: 7px; font-size: 15px; }
.primary-button:hover { background: #0b7476; transform: translateY(-1px); }
.text-button { border: 0; background: transparent; color: var(--teal); padding: 5px 0; font-size: 12px; font-weight: 700; }
.text-button:hover { color: var(--navy); }
.completion-card { width: 245px; padding: 26px 24px; border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; gap: 16px; border-radius: 10px; box-shadow: var(--shadow); }
.completion-ring { width: 91px; height: 91px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--teal) var(--progress), #e8eff0 0); display: grid; place-items: center; position: relative; }
.completion-ring::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--white); }
.ring-center { z-index: 1; text-align: center; display: flex; flex-direction: column; line-height: 1; }
.ring-center strong { font-size: 24px; letter-spacing: -1px; }
.ring-center span { color: var(--muted); font-size: 9px; margin-top: 5px; }
.completion-label { display: grid; gap: 5px; }
.completion-label strong { font-size: 12px; }
.completion-label span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.day-strip { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.day-list { display: grid; grid-template-columns: repeat(7, minmax(60px, 1fr)); flex: 1; gap: 8px; }
.day-button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 8px; padding: 9px 4px; display: grid; gap: 5px; place-items: center; font-size: 10px; transition: .2s ease; }
.day-button strong { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.day-button:hover { background: var(--white); border-color: var(--line); }
.day-button.selected { color: var(--teal); background: var(--teal-soft); border-color: #bde4df; }
.day-button.selected strong { color: var(--teal); }
.day-button .day-check { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.day-button.has-progress .day-check { background: var(--teal); }
.day-button.is-today { box-shadow: inset 0 -2px 0 var(--coral); }
.day-arrow { border: 0; color: var(--ink-soft); background: transparent; width: 24px; font-size: 19px; padding: 6px 0; }
.day-arrow:hover { color: var(--teal); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 32px 0 17px; }
.section-heading h2, .panel h2 { font-size: 18px; letter-spacing: -.45px; margin: 0; }
.add-habit-button { white-space: nowrap; }
.add-habit-button span { font-size: 16px; vertical-align: -1px; margin-right: 3px; }
.tiny-status { color: var(--muted); font-size: 10px; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.status-dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.habit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.empty-habits { grid-column: 1 / -1; border: 1px dashed #b8d8d4; background: var(--teal-soft); border-radius: 10px; padding: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.empty-habits strong { font-size: 13px; }
.empty-habits span { color: var(--ink-soft); font-size: 11px; margin-right: auto; }
.habit-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 19px; min-height: 266px; display: flex; flex-direction: column; position: relative; transition: .25s ease; }
.habit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.habit-card.complete { border-color: #b5ddd5; box-shadow: 0 10px 20px rgba(15,139,141,.08); }
.habit-top { display: flex; justify-content: space-between; align-items: flex-start; }
.habit-top-actions { display: flex; align-items: center; gap: 8px; }
.remove-habit { border: 0; background: transparent; color: #b8c6ce; font-size: 16px; line-height: 1; padding: 0 2px; opacity: 0; transition: .2s ease; }
.habit-card:hover .remove-habit, .remove-habit:focus-visible { opacity: 1; }
.remove-habit:hover { color: var(--coral); }
.habit-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; font-weight: 700; }
.habit-card[data-color="teal"] .habit-icon { background: var(--teal-soft); color: var(--teal); }
.habit-card[data-color="coral"] .habit-icon { background: var(--coral-soft); color: var(--coral); }
.habit-card[data-color="gold"] .habit-icon { background: var(--gold-soft); color: #c78926; }
.habit-card[data-color="sage"] .habit-icon { background: var(--sage-soft); color: var(--sage); }
.habit-state { font-size: 10px; color: var(--muted); border-radius: 20px; padding: 4px 8px; background: #f4f7f8; }
.habit-state.state-complete { color: #24775f; background: var(--sage-soft); }
.habit-state.state-missed { color: #b45c4d; background: var(--coral-soft); }
.habit-card h3 { margin: 17px 0 7px; font-size: 15px; letter-spacing: -.2px; }
.habit-card .habit-description { min-height: 34px; color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; }
.reflection-field { display: grid; gap: 5px; margin-top: 13px; }
.reflection-field span { color: var(--teal); font-size: 9px; font-weight: 700; letter-spacing: .25px; }
.reflection-field textarea { width: 100%; min-height: 47px; resize: vertical; border: 1px solid #cfe3e0; border-radius: 6px; background: #fbfefd; color: var(--ink); padding: 8px; font-size: 10px; line-height: 1.45; }
.reflection-field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(15,139,141,.1); }
.habit-stats { display: flex; gap: 20px; margin: auto 0 17px; padding-top: 17px; border-top: 1px solid #eef2f4; }
.stat { display: grid; gap: 3px; }
.stat strong { font-size: 17px; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.checkin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.checkin-button { border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); padding: 8px 5px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.checkin-button:hover { border-color: var(--teal); color: var(--teal); }
.checkin-button.selected-complete { border-color: var(--teal); background: var(--teal); color: white; }
.checkin-button.selected-missed { border-color: var(--coral); background: var(--coral-soft); color: #b45c4d; }
.checkin-button.not-yet { grid-column: span 2; border-style: dashed; color: var(--muted); padding: 6px; }
.insight-row { display: grid; grid-template-columns: 1.25fr .9fr .9fr; gap: 14px; margin-top: 15px; }
.panel { border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.panel-badge { font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-soft); border-radius: 20px; padding: 5px 9px; }
.rhythm-chart { height: 104px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 13px; align-items: end; padding: 18px 7px 0; }
.chart-column { height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; }
.chart-bar-wrap { width: 100%; height: 70px; background: #f2f5f5; border-radius: 4px 4px 0 0; display: flex; align-items: end; overflow: hidden; }
.chart-bar { width: 100%; min-height: 4px; background: linear-gradient(180deg, #58b9ac, var(--teal)); border-radius: 4px 4px 0 0; transition: height .4s ease; }
.chart-count { color: var(--muted); font-size: 9px; }
.chart-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 13px; padding: 7px 7px 0; color: var(--muted); font-size: 9px; text-align: center; }
.panel-footnote { color: var(--muted); font-size: 10px; margin: 19px 0 0; }
.weekly-streak-list { display: grid; gap: 13px; margin-top: 23px; }
.weekly-streak-item { display: grid; grid-template-columns: minmax(80px, 1fr) 1.25fr auto; align-items: center; gap: 10px; }
.weekly-streak-name { font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekly-streak-bar { height: 7px; background: #edf3f2; border-radius: 20px; overflow: hidden; }
.weekly-streak-fill { height: 100%; background: linear-gradient(90deg, #72c8bb, var(--teal)); border-radius: inherit; }
.weekly-streak-stat { color: var(--muted); font-size: 9px; white-space: nowrap; }
.reflection-panel { background: #eff7f6; border-color: #d3ebe6; }
.sparkle { color: var(--gold); font-size: 22px; }
.reflection-panel blockquote { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; line-height: 1.4; margin: 24px 0 10px; letter-spacing: -.2px; }
.quote-source { color: var(--muted); font-size: 10px; margin: 0 0 24px; }
.outline-button { border: 1px solid #a9d5d0; background: transparent; color: var(--teal); border-radius: 6px; padding: 9px 12px; font-size: 11px; font-weight: 700; }
.outline-button:hover { background: var(--teal-soft); }
.outline-button.small { padding: 8px 11px; }
.reminder-section { padding-top: 32px; }
.reminder-heading { padding-bottom: 17px; align-items: end; }
.section-subtitle { color: var(--muted); margin: 8px 0 0; font-size: 11px; }
.permission-actions { display: flex; gap: 9px; align-items: center; }
.sound-button { border: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 700; padding: 8px 4px; }
.sound-button:hover { color: var(--navy); }
.sound-button span { display: inline-block; margin-right: 4px; font-size: 16px; }
.reminder-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.permission-banner { background: #fbf7ed; border-bottom: 1px solid #f1e5c4; display: flex; align-items: center; gap: 10px; padding: 10px 15px; color: #806a3c; font-size: 10px; line-height: 1.45; }
.permission-banner p { margin: 0; flex: 1; }
.permission-banner strong { color: #5d4b26; }
.banner-icon { display: grid; place-items: center; border: 1px solid #c3a665; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 700; }
.dismiss-button { border: 0; background: transparent; color: #a28c5b; font-size: 20px; line-height: 1; }
.reminder-list { display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px 15px; }
.reminder-row { min-height: 69px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 0; border-right: 1px solid #edf1f2; }
.reminder-row:not(:first-child) { padding-left: 15px; }
.reminder-row:last-child { border-right: 0; }
.reminder-color { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.reminder-row[data-color="teal"] .reminder-color { background: var(--teal); }
.reminder-row[data-color="coral"] .reminder-color { background: var(--coral); }
.reminder-row[data-color="gold"] .reminder-color { background: var(--gold); }
.reminder-row[data-color="sage"] .reminder-color { background: var(--sage); }
.reminder-name { display: block; font-size: 11px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 98px; }
.reminder-meta { color: var(--muted); font-size: 9px; }
.reminder-details { min-width: 0; }
.reminder-input { border: 1px solid var(--line); color: var(--ink); background: #fbfcfc; border-radius: 5px; padding: 7px 4px; width: 70px; font-size: 11px; margin-left: auto; }
.reminder-input:focus { border-color: var(--teal); }
.reminder-sound { border: 1px solid var(--line); color: var(--ink-soft); background: #fbfcfc; border-radius: 5px; padding: 7px 3px; width: 61px; font-size: 10px; }
.reminder-sound:focus { border-color: var(--teal); }
.audio-upload { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 9px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.audio-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.audio-upload:hover { color: var(--navy); }
.audio-name { color: var(--muted); font-size: 8px; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clear-audio { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 2px; }
.clear-audio:hover { color: var(--coral); }
.reminder-footer { border-top: 1px solid #edf1f2; padding: 11px 15px; color: var(--muted); font-size: 10px; display: flex; gap: 7px; align-items: center; }
.reminder-footer .text-button { margin-left: auto; font-size: 10px; }
.local-lock { color: var(--teal); font-size: 12px; }
.app-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); margin-top: 45px; padding-top: 18px; color: var(--muted); font-size: 10px; }
.app-footer span:first-child { color: var(--ink-soft); font-weight: 700; }
.toast { position: fixed; z-index: 10; right: 23px; bottom: 22px; background: var(--navy); color: white; border-radius: 7px; padding: 12px 15px; font-size: 12px; box-shadow: 0 10px 30px rgba(16,42,67,.2); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.habit-overlay { position: fixed; inset: 0; z-index: 19; background: rgba(16,42,67,.56); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.habit-overlay[hidden] { display: none; }
.habit-modal { width: min(100%, 550px); max-height: min(690px, calc(100vh - 40px)); overflow: auto; background: var(--white); border-radius: 14px; padding: 28px; box-shadow: 0 26px 70px rgba(16,42,67,.25); }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.modal-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.7px; }
.modal-close { border: 0; background: transparent; color: var(--muted); font-size: 25px; line-height: 1; padding: 0; }
.modal-close:hover { color: var(--ink); }
.modal-copy { color: var(--ink-soft); font-size: 12px; line-height: 1.55; margin: 9px 0 20px; }
.habit-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.habit-option { border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 9px; padding: 10px; cursor: pointer; transition: .2s ease; }
.habit-option:hover { border-color: #acd9d4; background: var(--teal-soft); }
.habit-option:has(input:checked) { border-color: #8accc4; background: var(--teal-soft); }
.habit-option input { accent-color: var(--teal); }
.habit-option-copy { display: grid; gap: 3px; }
.habit-option-copy strong { font-size: 11px; }
.habit-option-copy span { color: var(--muted); font-size: 9px; }
.custom-habit-field { margin-top: 19px; }
.custom-habit-field label { color: var(--ink-soft); display: block; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.custom-input-row { display: flex; gap: 8px; }
.custom-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; color: var(--ink); background: #fbfcfc; }
.custom-input-row input:focus { border-color: var(--teal); outline: 3px solid rgba(15,139,141,.12); }
.custom-pending { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pending-habit { background: var(--gold-soft); color: #806a3c; padding: 5px 8px; border-radius: 15px; font-size: 10px; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; border-top: 1px solid #edf1f2; margin-top: 22px; padding-top: 17px; }
.login-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(16,42,67,.56); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.login-overlay[hidden] { display: none; }
.login-card { width: min(100%, 420px); background: var(--white); border-radius: 14px; padding: 36px; box-shadow: 0 26px 70px rgba(16,42,67,.25); }
.login-mark { width: 42px; height: 42px; color: var(--teal); margin-bottom: 23px; }
.login-mark svg { width: 100%; height: 100%; }
.login-card h2 { margin: 0 0 10px; font-size: 27px; letter-spacing: -.8px; }
.login-copy { color: var(--ink-soft); font-size: 12px; line-height: 1.6; margin: 0 0 24px; }
.login-card label { color: var(--ink-soft); display: block; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.login-card input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 12px 13px; color: var(--ink); background: #fbfcfc; margin-bottom: 13px; }
.login-card input:focus { border-color: var(--teal); outline: 3px solid rgba(15,139,141,.12); }
.login-submit { width: 100%; padding: 13px; }
.logout-button { width: 100%; border: 0; background: transparent; color: var(--coral); font-size: 11px; font-weight: 700; padding: 12px 0 2px; }
.logout-button:hover { color: #b45c4d; }
.login-footnote { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 7px; margin: 22px 0 0; }

@media (max-width: 1080px) {
  .main-content { padding: 0 29px 40px; }
  .habit-grid { grid-template-columns: repeat(2, 1fr); }
  .habit-card { min-height: 240px; }
  .reminder-list { grid-template-columns: repeat(2, 1fr); }
  .reminder-row:nth-child(2) { border-right: 0; }
  .insight-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .main-content { width: 100%; margin-left: 0; padding: 0 17px 31px; }
  .topbar { height: 65px; justify-content: space-between; }
  .mobile-brand { display: inline-flex; font-size: 18px; }
  .mobile-brand .brand-mark { width: 24px; height: 24px; }
  .date-stamp { display: none; }
  .profile-copy { display: none; }
  .topbar-tools { gap: 9px; }
  .hero-section { padding: 38px 0 28px; align-items: flex-start; flex-direction: column; }
  .hero-copy h1 { font-size: 40px; }
  .hero-subtitle { font-size: 13px; }
  .completion-card { width: 100%; }
  .day-strip { gap: 4px; }
  .day-list { gap: 2px; }
  .day-button { padding: 8px 2px; }
  .section-heading { padding-top: 27px; }
  .section-heading:has(.add-habit-button) { align-items: center; }
  .add-habit-button { padding: 7px 9px; font-size: 10px; }
  .habit-grid { grid-template-columns: 1fr; gap: 10px; }
  .habit-card { min-height: auto; padding: 17px; }
  .habit-card .habit-description { min-height: 0; }
  .habit-stats { margin-top: 20px; }
  .insight-row { grid-template-columns: 1fr; }
  .reminder-heading { align-items: flex-start; flex-direction: column; }
  .permission-actions { width: 100%; justify-content: space-between; }
  .reminder-list { grid-template-columns: 1fr; padding: 4px 15px; }
  .reminder-row, .reminder-row:not(:first-child) { border-right: 0; border-bottom: 1px solid #edf1f2; padding: 11px 0; }
  .reminder-row:last-child { border-bottom: 0; }
  .reminder-name { max-width: none; }
  .reminder-input { margin-left: auto; }
  .audio-name { max-width: 110px; }
  .app-footer { flex-wrap: wrap; margin-top: 31px; }
  .app-footer .text-button { order: 3; width: 100%; text-align: left; }
  .habit-options { grid-template-columns: 1fr; }
  .habit-modal { padding: 23px 19px; }
}
