:root {
  color-scheme: light;
  --theme-bg: #f5f4ef;
  --theme-surface: #fffefa;
  --theme-ink: #22231f;
  --theme-primary: #294f61;
  --theme-primary-dark: #183b4b;
  --theme-on-primary: #ffffff;
  --bg: var(--user-bg, var(--theme-bg));
  --ink: var(--user-ink, var(--theme-ink));
  --surface: color-mix(in srgb, var(--bg) 18%, var(--theme-surface) 82%);
  --input-bg: color-mix(in srgb, var(--surface) 94%, var(--ink) 6%);
  --muted: color-mix(in srgb, var(--ink) 64%, transparent);
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --soft: color-mix(in srgb, var(--ink) 8%, transparent);
  --primary: var(--theme-primary);
  --primary-dark: var(--theme-primary-dark);
  --on-primary: var(--theme-on-primary);
  --shadow: 0 14px 40px color-mix(in srgb, var(--ink) 7%, transparent);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --theme-bg: #171915;
  --theme-surface: #232620;
  --theme-ink: #f2f1eb;
  --theme-primary: #8db8ca;
  --theme-primary-dark: #aed0de;
  --theme-on-primary: #102b37;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --theme-bg: #171915;
    --theme-surface: #232620;
    --theme-ink: #f2f1eb;
    --theme-primary: #8db8ca;
    --theme-primary-dark: #aed0de;
    --theme-on-primary: #102b37;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 6vw, 3.55rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
h2 { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.25; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip-link:focus { transform: none; }
.site-header { width: min(1180px, calc(100% - 40px)); height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.05rem; font-weight: 720; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 400; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 590; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.mobile-nav { display: none; }

.page-shell, .dashboard-shell { width: min(1120px, calc(100% - 40px)); margin: 44px auto 100px; }
.dashboard-shell { margin-top: 48px; }
.dashboard-intro, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.dashboard-intro h1 { max-width: 660px; }
.page-heading { align-items: center; }
.page-heading .lede { margin-bottom: 0; }
.eyebrow { margin-bottom: 10px; color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.lede { max-width: 570px; color: var(--muted); font-size: 1.04rem; line-height: 1.55; }
.muted { color: var(--muted); }
.text-link, .back-link { color: var(--primary); font-size: .9rem; font-weight: 680; text-decoration: none; }
.back-link { display: inline-block; margin-bottom: 26px; }
.text-link:hover, .back-link:hover { text-decoration: underline; }

.notice { max-width: 720px; margin: 0 0 22px; padding: 13px 16px; border: 1px solid; border-radius: 12px; font-size: .92rem; }
.notice.error { border-color: #e5b7ae; background: #fff0ed; color: #8b3628; }
.notice.success { border-color: #bad6c5; background: #edf8f1; color: #275d3d; }
.toast { position: fixed; z-index: 20; top: 22px; left: 50%; transform: translateX(-50%); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 650; box-shadow: 0 8px 28px rgba(0,0,0,.16); transition: opacity .25s, transform .25s; }
.toast.is-hiding { opacity: 0; transform: translate(-50%, -8px); }

.tracker-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tracker-card { grid-column: span 4; min-height: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tracker-bg, var(--surface)); box-shadow: var(--shadow); }
.tracker-card:first-child, .tracker-card:nth-child(4) { grid-column: span 6; }
.tracker-heading { display: flex; align-items: center; gap: 13px; padding: 24px; list-style: none; cursor: pointer; }
.tracker-heading::-webkit-details-marker { display: none; }
.tracker-heading > div:nth-child(2) { flex: 1; }
.tracker-heading h2 { margin: 0 0 3px; font-size: 1.06rem; }
.tracker-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.tracker-body { padding: 0 24px 24px; }
.tracker-card.is-due { border-color: color-mix(in srgb, #d78436 72%, var(--line)); background: color-mix(in srgb, #d78436 9%, var(--tracker-bg, var(--surface))); box-shadow: 0 14px 40px color-mix(in srgb, #a85c1d 14%, transparent); }
.tracker-card.is-due .tracker-heading h2 { color: color-mix(in srgb, #c66b24 78%, var(--ink)); }
.due-badge { padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, #d78436 18%, var(--surface)); color: color-mix(in srgb, #c66b24 80%, var(--ink)); font-size: .68rem; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.due-message { margin: 0 0 10px; color: color-mix(in srgb, #c66b24 78%, var(--ink)); font-size: .75rem; font-weight: 700; }
.tracker-chevron { margin-left: auto; color: var(--muted); font-size: 1.25rem; line-height: 1; transition: transform .16s ease; }
.tracker-card[open] .tracker-chevron { transform: rotate(180deg); }
.tracker-icon { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: color-mix(in srgb, #6f9eb3 20%, var(--surface)); color: color-mix(in srgb, #5e92aa 74%, var(--ink)); font-weight: 750; }
.accent-coral .tracker-icon { background: color-mix(in srgb, #d96a54 20%, var(--surface)); color: color-mix(in srgb, #d1533c 75%, var(--ink)); }
.accent-green .tracker-icon { background: color-mix(in srgb, #5c9a70 20%, var(--surface)); color: color-mix(in srgb, #3f8055 75%, var(--ink)); }
.accent-gold .tracker-icon { background: color-mix(in srgb, #c8a83f 22%, var(--surface)); color: color-mix(in srgb, #927821 78%, var(--ink)); }
.accent-violet .tracker-icon { background: color-mix(in srgb, #8a70af 20%, var(--surface)); color: color-mix(in srgb, #755b9a 75%, var(--ink)); }
.tracker-icon.small { width: 36px; height: 36px; border-radius: 10px; }
.quick-form { display: flex; min-height: 139px; flex-direction: column; justify-content: flex-end; }

@media (min-width: 760px) {
  .tracker-heading { pointer-events: none; }
  .tracker-chevron { display: none; }
}

label { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 660; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: none; background: var(--input-bg); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input, select { min-height: 46px; padding: 10px 12px; }
textarea { min-height: 88px; padding: 12px; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #6f94a5; box-shadow: 0 0 0 3px rgba(68, 113, 134, .13); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .65; }
.bp-fields { display: grid; grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr) minmax(70px, .8fr); align-items: end; gap: 8px; margin-bottom: 13px; }
.bp-fields input { height: 56px; padding: 8px; font-size: 1.42rem; font-weight: 650; text-align: center; }
.bp-fields label span { text-align: center; font-size: .7rem; }
.bp-divider { padding-bottom: 14px; color: #a4a39b; font-size: 1.45rem; }
.number-entry { display: flex; align-items: center; gap: 9px; }
.number-entry label { flex: 1; }
.number-entry input { height: 64px; padding-right: 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 2.3rem; font-weight: 580; }
.unit { color: var(--muted); }
.subtle-input { margin-bottom: 12px; }
.subtle-input span { font-size: .7rem; }

.primary-button, .secondary-button, .save-button, .action-button, .danger-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; font-weight: 690; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, opacity .15s; }
.primary-button, .save-button { border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); }
.primary-button { padding: 12px 18px; }
.primary-button:hover, .save-button:hover { background: var(--primary-dark); }
.primary-button.inline { width: fit-content; }
.secondary-button { padding: 10px 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.secondary-button:hover { background: var(--soft); }
.secondary-button.small { min-height: 36px; padding: 7px 11px; font-size: .78rem; }
.save-button { width: 100%; padding: 10px 14px; }
.save-button.square { width: 48px; min-width: 48px; height: 48px; padding: 0; border-radius: 50%; }
.action-button { width: 100%; min-height: 55px; padding: 10px 15px; border: 1px solid color-mix(in srgb, #5f9a72 55%, var(--line)); background: color-mix(in srgb, #5f9a72 14%, var(--surface)); color: color-mix(in srgb, #4c8a60 76%, var(--ink)); }
.action-button.big { min-height: 84px; font-size: 1rem; }
.action-button span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #497b59; color: #ffffff; }
.danger-button { padding: 10px 14px; border: 1px solid #e5b7ae; background: transparent; color: #9c3f30; }
button:active, .primary-button:active, .secondary-button:active { transform: translateY(1px); }
button:disabled { opacity: .58; cursor: wait; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.text-button { padding: 7px; border: 0; background: none; color: var(--primary); font-weight: 680; cursor: pointer; }
.text-button[href] { text-decoration: none; }
.icon-link { padding: 8px; color: var(--muted); letter-spacing: 1px; text-decoration: none; }

.recent-section, .history-list-section { margin-top: 58px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 1rem; }
.section-heading a, .section-heading span { color: var(--muted); font-size: .8rem; }
.entry-list { overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); list-style: none; }
.entry-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 72px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.entry-list li:last-child { border-bottom: 0; }
.entry-dot { width: 8px; height: 8px; border-radius: 50%; background: #7093a3; }
.entry-main { display: grid; min-width: 0; gap: 3px; }
.entry-main strong { overflow: hidden; font-size: .91rem; text-overflow: ellipsis; white-space: nowrap; }
.entry-main span { overflow: hidden; color: var(--muted); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.entry-list time { color: var(--muted); font-size: .77rem; white-space: nowrap; }

.filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 72%, transparent); }
.filter-bar label:first-child { min-width: 220px; }
.history-summary { min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.history-summary > div:first-child p { margin-bottom: 6px; color: var(--muted); font-size: .8rem; }
.history-summary > div:first-child h2 { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.chart-wrap { width: 100%; margin-top: 12px; }
.chart-wrap canvas { display: block; width: 100%; height: 240px; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: start; gap: 22px; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sticky-panel { position: sticky; top: 20px; }
.stack-form { display: grid; gap: 17px; }
.stack-form > .primary-button { margin-top: 4px; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.label-hint { color: var(--muted); font-size: .72rem; font-weight: 450; }
.appearance-panel { margin-bottom: 30px; }
.form-intro { margin-bottom: 0; font-size: .88rem; }
.theme-fieldset { margin: 0; padding: 0; border: 0; }
.theme-fieldset legend { margin-bottom: 8px; color: var(--muted); font-size: .82rem; font-weight: 660; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--input-bg); }
.theme-options label { position: relative; display: block; }
.theme-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-options span { display: grid; min-height: 38px; place-items: center; border-radius: 9px; color: var(--muted); cursor: pointer; }
.theme-options input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 10%, transparent); }
.theme-options input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.custom-color-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.custom-color-toggle > span { display: grid; gap: 3px; }
.custom-color-toggle strong { color: var(--ink); font-size: .86rem; }
.custom-color-toggle small { color: var(--muted); font-size: .74rem; font-weight: 450; }
.custom-color-toggle input { position: relative; width: 46px; min-width: 46px; height: 27px; min-height: 27px; padding: 0; appearance: none; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; }
.custom-color-toggle input::after { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 25%, transparent); content: ""; transition: transform .16s ease; }
.custom-color-toggle input:checked { background: var(--primary); }
.custom-color-toggle input:checked::after { transform: translateX(19px); }
.color-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transition: opacity .15s; }
.color-fields.single-color-field { grid-template-columns: 1fr; }
.color-fields.is-disabled { opacity: .42; }
.color-input { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--input-bg); }
.color-input input[type="color"] { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 2px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.color-input output { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; text-transform: uppercase; }
.account-section-title { margin: 0 0 12px 3px; font-size: .92rem; }
.tracker-details-panel { background: var(--settings-card-bg, var(--surface)); transition: background .18s ease; }
.schedule-note { margin: 0; padding: 11px 13px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: .78rem; line-height: 1.45; }
.transfer-panel { margin-top: 30px; }
.transfer-panel code { display: block; overflow-x: auto; padding: 11px 13px; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: .75rem; white-space: pre; }
.field-guide { margin: 0 0 7px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.import-form { padding-top: 18px; border-top: 1px solid var(--line); }
.import-form input[type="file"] { height: auto; min-height: 46px; padding: 8px; }
.import-form input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--soft); color: var(--ink); font-weight: 650; cursor: pointer; }
.import-errors { max-width: none; }
.import-errors p { margin: 5px 0 8px; }
.import-errors ul { margin: 0; padding-left: 20px; }
.import-errors li + li { margin-top: 4px; }
.settings-list { margin: 0; padding: 0; list-style: none; }
.settings-list li { display: flex; min-height: 68px; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.settings-list li:last-child { border-bottom: 0; }
.settings-list li > div { display: grid; flex: 1; gap: 3px; }
.settings-list li > .tracker-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }
.tracker-actions form { margin: 0; }
.settings-list strong { font-size: .91rem; }
.settings-list span { color: var(--muted); font-size: .76rem; }
.settings-list .inactive { opacity: .53; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--primary) !important; font-size: .9rem !important; font-weight: 750; }
.status-pill { padding: 5px 9px; border-radius: 999px; background: #edf6ef; color: #39704c !important; font-size: .7rem !important; font-weight: 650; }

.narrow-page { width: min(620px, 100%); margin: 72px auto 120px; }
.narrow-page > h1 { margin-bottom: 28px; }
.danger-zone { display: flex; justify-content: flex-end; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.logout-form { margin-top: 28px; }
.admin-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-decoration: none; }
.admin-card span:first-child { display: grid; gap: 4px; }
.admin-card small { color: var(--muted); }

.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 28px 20px; background: radial-gradient(circle at 50% 15%, var(--surface) 0, var(--bg) 56%); }
.auth-card { width: min(455px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 70px color-mix(in srgb, var(--ink) 10%, transparent); }
.auth-card.compact { width: min(410px, 100%); }
.auth-brand { margin-bottom: 40px; }
.language-switch { display: flex; width: fit-content; gap: 4px; margin: -24px 0 28px auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--input-bg); }
.language-switch a { padding: 5px 9px; border-radius: 999px; color: var(--muted); font-size: .7rem; font-weight: 680; text-decoration: none; }
.language-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 5px color-mix(in srgb, var(--ink) 10%, transparent); }
.icon-select { font-size: 1.35rem; }
.auth-card h1 { font-size: 2.7rem; }
.auth-card .lede { margin-bottom: 26px; }
.empty-state { display: grid; min-height: 260px; place-content: center; justify-items: center; padding: 35px; border: 1px dashed #c8c7bf; border-radius: var(--radius); text-align: center; }
.empty-state.small { min-height: 180px; }
.empty-state p { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .tracker-card, .tracker-card:first-child, .tracker-card:nth-child(4) { grid-column: span 6; }
  .settings-layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  h1 { font-size: 2.35rem; }
  .site-header { width: calc(100% - 30px); height: 65px; }
  .desktop-nav { display: none; }
  .brand-mark { width: 31px; height: 31px; }
  .page-shell, .dashboard-shell { width: calc(100% - 28px); margin-top: 30px; margin-bottom: 55px; }
  .dashboard-intro, .page-heading { align-items: flex-start; margin-bottom: 25px; }
  .dashboard-intro .text-link, .page-heading > .secondary-button { display: none; }
  .tracker-grid { grid-template-columns: 1fr; gap: 12px; }
  .tracker-card, .tracker-card:first-child, .tracker-card:nth-child(4) { grid-column: 1; min-height: 0; border-radius: 17px; }
  .tracker-heading { padding: 13px 15px; }
  .tracker-body { padding: 4px 15px 15px; }
  .quick-form { min-height: 0; }
  .bp-fields { grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr); }
  .pulse-field { grid-column: 1 / -1; }
  .pulse-field input { height: 46px; font-size: 1rem; }
  .recent-section, .history-list-section { margin-top: 40px; }
  .entry-list li { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .entry-list time { grid-column: 2; }
  .entry-list .icon-link, .entry-list .secondary-button { grid-column: 3; grid-row: 1 / span 2; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; padding: 10px; }
  .filter-bar label:first-child { min-width: 0; }
  .history-summary { padding: 18px 12px; }
  .panel { padding: 19px; border-radius: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .narrow-page { margin-top: 36px; }
  .auth-card { padding: 29px 23px; }
  .auth-brand { margin-bottom: 32px; }
  .mobile-nav { position: fixed; z-index: 15; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); }
  .mobile-nav a { display: grid; justify-items: center; gap: 2px; padding: 4px; color: var(--muted); font-size: .67rem; font-weight: 650; text-decoration: none; }
  .mobile-nav a span { font-size: 1.18rem; line-height: 1.1; }
  .mobile-nav a[aria-current="page"] { color: var(--primary); }
}

@media (max-width: 759px) {
  .tracker-grid { gap: 8px; }
  .tracker-card, .tracker-card:first-child, .tracker-card:nth-child(4) { min-height: 0; }
  .tracker-heading { min-height: 62px; padding: 11px 14px; }
  .tracker-heading p { display: none; }
  .tracker-icon { width: 36px; height: 36px; border-radius: 10px; }
  .tracker-body { padding: 5px 14px 14px; }
  .tracker-card[open] .tracker-heading { padding-bottom: 8px; }
}

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