:root {
  --bg: #f5f5f3;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #6e6e6a;
  --line: #dfdfdb;
  --green: #171717;
  --green-dark: #000000;
  --green-soft: #ececea;
  --amber-soft: #f3f3f0;
  --blue-soft: #e5e5e2;
  --pink: #f30a72;
  --pink-dark: #c7005d;
  --pink-soft: #ffe2ee;
  --shadow: 0 14px 40px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Songti SC", STSong, SimSun, "Noto Serif CJK SC", "Source Han Serif SC", serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; background: #efefec; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 34px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--pink); color: white; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 12px; }
.sidebar nav { display: grid; gap: 8px; }
.nav-item { border: 0; border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; color: #62625f; background: transparent; text-align: left; }
.nav-item.active { color: #111111; background: var(--pink-soft); box-shadow: 0 4px 16px rgba(0,0,0,.04); font-weight: 700; }
.sidebar-note { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px 10px; }
.sidebar-note strong, .sidebar-note small { display: block; font-size: 12px; }
.sidebar-note small { color: var(--muted); margin-top: 3px; }
.status-dot { margin-top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-dark); box-shadow: 0 0 0 4px var(--pink-soft); }

.sync-card { margin-top: 12px; display: flex; align-items: flex-start; gap: 10px; padding: 14px 10px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.sync-card strong, .sync-card small { display: block; font-size: 12px; }
.sync-card small { color: var(--muted); margin-top: 3px; }
.sync-card .text-button { margin-left: auto; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 4px 0; }
.sync-dot { margin-top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #9e9e99; box-shadow: 0 0 0 4px #e8e8e5; }
.sync-dot.cloud { background: var(--pink-dark); box-shadow: 0 0 0 4px var(--pink-soft); }
.sync-badge { display: none; }
.desktop-only { display: inline-flex; }

.mobile-parse-fab { display: none; position: fixed; z-index: 20; right: 16px; bottom: calc(68px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--pink-dark); color: white; font-size: 20px; box-shadow: 0 6px 20px rgba(243,10,114,.35); }
.mobile-parse-fab:active { transform: scale(.96); }

main { padding: 0 4vw 80px; min-width: 0; }
.topbar { max-width: 1240px; margin: 0 auto; padding: 40px 0 26px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: #777773; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.02em; }
h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: 19px; letter-spacing: 0; }
.ghost-button, .text-button, .close-button { border: 0; background: transparent; color: var(--pink-dark); }
.ghost-button { padding: 10px 14px; border: 1px solid #cfcfca; border-radius: 11px; font-weight: 700; }

.view { display: none; max-width: 1240px; margin: 0 auto; }
.view.active { display: block; }
.day-plan-card { margin-bottom: 20px; padding: 18px 20px 20px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.day-plan-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.day-plan-heading > span { color: var(--muted); font-size: 11px; }
.day-timeline { display: grid; gap: 10px; }
.time-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: stretch; }
.time-row-label { display: flex; flex-direction: column; justify-content: center; }
.time-row-label strong { font-size: 13px; }
.time-row-label span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.time-track { position: relative; min-height: 48px; overflow: hidden; border-radius: 11px; background: #f1f1ef; }
.time-track::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(0,0,0,.08) 25%); }
.time-block { position: absolute; z-index: 1; top: 5px; bottom: 5px; left: var(--left); width: var(--width); min-width: 56px; overflow: hidden; padding: 6px 9px; border-radius: 8px; color: white; background: #242424; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.time-block.media { color: #780038; background: var(--pink-soft); border: 1px solid #ff9fc2; }
.time-block.exercise { color: white; background: var(--pink); }
.time-block.mdro { background: var(--pink-dark); }
.time-block.routine { color: #555; background: #deded9; }
.time-block.done, .after-work-chip.done { opacity: .42; text-decoration: line-through; }
.track-empty { position: absolute; left: 12px; top: 16px; color: #999; font-size: 10px; }
.after-work-track { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 8px; border-radius: 11px; background: #f1f1ef; }
.after-work-track .empty { padding-left: 5px; }
.after-work-chip { padding: 8px 11px; border-radius: 9px; color: white; background: var(--pink); font-size: 11px; }
.daily-check { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; padding: 17px 20px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--pink); border-radius: 15px; }
.daily-check[hidden] { display: none; }
.daily-check h2 { font-size: 16px; }
.daily-check p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.daily-check-actions { display: flex; gap: 9px; flex-shrink: 0; }
.daily-check-actions button.selected { color: white; border-color: var(--pink); background: var(--pink); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.main-column, .right-column { display: grid; gap: 20px; }
.focus-card, .task-section, .upcoming-section, .week-card, .session-card, .placeholder-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.focus-card { padding: 26px; background: linear-gradient(140deg, #111111, #2b2b2b); color: white; }
.focus-card .section-kicker, .focus-card p, .focus-meta { color: rgba(255,255,255,.72); }
.focus-card h2 { font-size: 25px; }
.focus-card p { margin: 17px 0 9px; }
.focus-meta { display: flex; gap: 7px; font-size: 13px; margin-bottom: 24px; }
.section-heading, .section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.task-type { display: inline-flex; align-items: center; width: fit-content; white-space: nowrap; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.task-type.hospital { color: #111111; background: var(--green-soft); }
.task-type.media { color: #a8004e; background: var(--pink-soft); border: 1px solid #ffb8d2; }
.task-type.life { color: #4a4a47; background: var(--blue-soft); }
.task-type.other { color: white; background: #6b6b67; }
.task-type.urgent { color: white; background: #171717; }
.focus-card .task-type { color: white; background: rgba(255,255,255,.14); }
.primary-button, .secondary-button { min-height: 45px; border: 0; border-radius: 12px; padding: 0 18px; font-weight: 750; }
.primary-button { background: var(--pink-dark); color: white; }
.focus-card .primary-button { background: white; color: var(--green-dark); }
.secondary-button { color: var(--pink-dark); background: var(--pink-soft); }
.plain-button { min-height: 45px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; color: var(--ink); background: white; font-weight: 700; }
.primary-button:disabled, .secondary-button:disabled, .plain-button:disabled { opacity: .42; cursor: not-allowed; }
.play-icon { font-size: 11px; }

.task-section, .upcoming-section { padding: 23px; }
.progress-label { color: var(--muted); font-size: 12px; }
.task-list { margin-top: 16px; display: grid; }
.task-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border: 0; }
.task-check { width: 21px; height: 21px; padding: 0; border: 1.5px solid #b7b7b2; border-radius: 7px; display: grid; place-items: center; color: white; background: white; }
.task-row.done .task-check { background: var(--pink-dark); border-color: var(--pink-dark); }
.task-copy { min-width: 0; }
.task-copy h3 { margin: 0 0 4px; font-size: 15px; }
.routine-detail-input { display: inline-block; width: min(260px, 70%); min-height: 30px; margin-left: 5px; padding: 2px 8px; border: 0; border-bottom: 1px solid #bcbcb7; border-radius: 0; background: transparent; font-weight: 400; }
.routine-detail-input:focus { border-color: var(--pink); box-shadow: none; }
.task-copy p { margin: 0; font-size: 12px; color: var(--muted); }
.task-copy .task-user-note { margin-top: 5px; color: #444; line-height: 1.5; }
.task-row.done .task-copy { opacity: .48; }
.task-row.done h3 { text-decoration: line-through; }
.task-actions { display: flex; align-items: center; gap: 8px; }
.task-done-button { border: 1px solid var(--line); background: #f3f3f1; color: #333; border-radius: 9px; padding: 7px 10px; font-size: 12px; }
.task-done-button:disabled { color: #888; cursor: default; }
.task-timer { border: 1px solid var(--line); background: white; color: var(--pink-dark); border-radius: 9px; padding: 7px 10px; font-size: 12px; }
.task-edit { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 7px 5px; font-size: 12px; }
.task-edit:hover { color: var(--pink-dark); }
.task-remove { border: 0; background: transparent; color: #999; border-radius: 9px; padding: 7px 4px; font-size: 12px; }
.task-remove:hover { color: var(--pink-dark); }
.upcoming-list { margin-top: 16px; display: grid; }
.upcoming-list article { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.upcoming-list article:last-child { border: 0; }
.upcoming-list h3 { margin: 0 0 4px; font-size: 14px; }
.upcoming-list p { margin: 0; color: var(--muted); font-size: 12px; }
.date-block { border-radius: 11px; background: #f2f2ef; text-align: center; padding: 7px; }
.date-block strong, .date-block span { display: block; }
.date-block strong { font-size: 16px; }.date-block span { color: var(--muted); font-size: 10px; }

.week-card, .session-card { padding: 21px; }
.load-ok { font-size: 12px; color: var(--pink-dark); }
.load-breakdown { display: grid; gap: 9px; margin-top: 19px; }
.load-breakdown div { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 10px; background: #f3f3f1; font-size: 12px; }
.load-breakdown div.urgent-load { color: var(--pink-dark); background: var(--pink-soft); }
.week-card > p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 18px 0 0; }
.recent-sessions { margin-top: 15px; display: grid; gap: 12px; }
.recent-session { border-left: 2px solid var(--pink); padding-left: 11px; }
.recent-session strong { display: block; font-size: 12px; }
.recent-session span { color: var(--muted); font-size: 11px; }
.empty { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }

.placeholder-view { padding-top: 20px; }
.placeholder-card { padding: 32px; min-height: 390px; }
.placeholder-card > p { max-width: 650px; color: var(--muted); line-height: 1.8; margin-top: 15px; }
.weekly-report-card { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fafaf8; }
.weekly-report-card > p { margin: 9px 0 15px; color: var(--muted); font-size: 12px; }
.thursday-status { padding: 5px 9px; border-radius: 99px; color: var(--pink-dark); background: var(--pink-soft); font-size: 10px; }
.weekly-report-output { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.weekly-report-output section { padding: 15px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.weekly-report-output h3 { margin: 0 0 10px; font-size: 13px; }
.weekly-report-output ol { margin: 0; padding-left: 20px; color: #333; font-size: 12px; line-height: 1.75; }
.month-lanes { margin-top: 22px; display: grid; gap: 14px; }
.calendar-summary { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-left: 4px solid var(--pink); border-radius: 10px; background: var(--pink-soft); }
.calendar-summary strong { color: var(--pink-dark); font-size: 13px; }
.calendar-summary span { color: #6d2444; font-size: 12px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.calendar-legend span { padding: 5px 9px; border-radius: 99px; font-size: 10px; }
.calendar-legend .hospital { color: white; background: #222; }
.calendar-legend .media { color: #87003f; background: var(--pink-soft); border: 1px solid #ff9fc2; }
.calendar-legend .exercise { color: var(--pink-dark); background: white; border: 1px solid var(--pink); }
.calendar-legend .life { color: #444; background: #deded9; }
.calendar-legend .other { color: white; background: #6b6b67; }
.calendar-legend .leave { color: var(--pink-dark); background: repeating-linear-gradient(135deg, #fff 0 7px, var(--pink-soft) 7px 14px); border: 1px solid #ff9fc2; }
.calendar-scroll { overflow-x: auto; padding-bottom: 5px; overscroll-behavior-inline: contain; }
.month-calendar { min-width: 920px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.calendar-weekdays { margin-bottom: 7px; }
.calendar-weekdays span { padding: 7px; color: var(--muted); text-align: center; font-size: 11px; }
.calendar-day { min-height: 142px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.calendar-day.blank { border-color: transparent; background: transparent; }
.calendar-day.today { border: 2px solid var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.calendar-day.leave-day { background: #faf7f8; }
.calendar-day > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.calendar-day > header strong { font-size: 14px; }
.calendar-day > header span { color: var(--pink-dark); font-size: 9px; }
.calendar-events { display: grid; gap: 5px; }
.calendar-event { width: 100%; min-height: 0; padding: 6px 7px; border: 0; border-radius: 7px; overflow: hidden; color: #222; background: #ececea; text-align: left; font-size: 10px; line-height: 1.35; }
button.calendar-event { cursor: pointer; }
.calendar-event span { margin-right: 4px; opacity: .7; font-size: 9px; }
.calendar-event.hospital { color: white; background: #252525; }
.calendar-event.media { color: #7b0039; background: var(--pink-soft); border: 1px solid #ff9fc2; }
.calendar-event.exercise { color: var(--pink-dark); background: white; border: 1px solid var(--pink); }
.calendar-event.life { color: #444; background: #deded9; }
.calendar-event.other { color: white; background: #6b6b67; }
.calendar-event.leave { color: var(--pink-dark); background: repeating-linear-gradient(135deg, #fff 0 7px, var(--pink-soft) 7px 14px); border: 1px solid #ff9fc2; }
.calendar-event.makeup { color: #222; background: #cfcfca; }
.calendar-event.tentative { border: 1px dashed #fff; opacity: .76; }
.upcoming-edit { border: 0; background: transparent; color: var(--pink-dark); font-size: 12px; }
.review-sessions { display: grid; gap: 12px; max-width: 700px; margin-top: 25px; }
.review-item { padding: 16px; border: 1px solid var(--line); border-radius: 13px; display: flex; justify-content: space-between; gap: 15px; }
.review-item p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.mobile-nav { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.42); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(520px, 100%); max-height: 88vh; overflow: auto; padding: 28px; background: white; border-radius: 21px; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.modal > p { margin: 12px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.close-button { position: absolute; right: 15px; top: 12px; font-size: 25px; color: var(--muted); }
.field-label, legend { display: block; margin: 15px 0 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
select, input, textarea { width: 100%; min-height: 45px; border: 1px solid #d5d5d1; border-radius: 11px; padding: 0 12px; background: white; color: var(--ink); outline: 0; }
textarea { min-height: 84px; padding-block: 11px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: #555555; box-shadow: 0 0 0 3px #ededeb; }
fieldset { padding: 0; border: 0; }
.linked-options { display: flex; flex-wrap: wrap; gap: 8px; }
.linked-option { position: relative; }
.linked-option input { position: absolute; opacity: 0; pointer-events: none; }
.linked-option span { display: block; border: 1px solid var(--line); border-radius: 99px; padding: 8px 11px; color: var(--muted); font-size: 12px; }
.linked-option input:checked + span { color: var(--pink-dark); border-color: #ff8cb7; background: var(--pink-soft); }
.timer-display { padding: 25px 0 18px; text-align: center; font-variant-numeric: tabular-nums; font-size: 42px; font-weight: 700; letter-spacing: -.04em; }
.timer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 20px; }
.add-actions button { width: 100%; }
.add-actions.three-actions { grid-template-columns: repeat(3, 1fr); }
.compact-modal { width: min(430px, 100%); }
.duration-input-wrap { position: relative; }
.duration-input-wrap input { padding-right: 62px; }
.duration-input-wrap span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
#completeTaskForm .primary-button { width: 100%; margin-top: 18px; }
.form-grid, .duration-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duration-edit-grid { grid-template-columns: 1fr 110px; }
.edit-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 22px; }
.danger-button { min-height: 45px; border: 1px solid #cfcfca; border-radius: 12px; padding: 0 15px; color: #555; background: white; font-weight: 700; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 10px; color: white; background: #111111; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.parse-modal textarea { width: 100%; min-height: 90px; margin: 14px 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; font-size: 15px; }
.parse-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.parse-actions button { width: 100%; }
.parse-hint { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
#parseVoiceBtn.listening { background: var(--pink-dark); color: white; border-color: transparent; }
.parse-result { margin: 14px 0; padding: 14px; border-radius: 13px; background: #f8f8f6; border: 1px solid var(--line); }
.parse-result h4 { margin: 0 0 10px; font-size: 14px; }
.parse-result-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e8e8e5; font-size: 13px; }
.parse-result-item:last-child { border: 0; }
.parse-result-item span { color: var(--muted); min-width: 56px; }
.parse-result-item strong { font-weight: 700; }
.parse-result-item .action-add { color: var(--pink-dark); }
.parse-result-item .action-complete { color: #1a7f37; }
.parse-result-item .action-update { color: #b35900; }
.parse-result-item .action-delete { color: #c7005d; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 82px 1fr; }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand div, .nav-item:not(.active) { font-size: 0; }
  .nav-item { justify-content: center; }
  .sidebar-note { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  main { padding: 0 14px 92px; }
  .topbar { padding: 22px 2px 18px; align-items: center; }
  .topbar h1 { font-size: 24px; }
  .ghost-button { width: auto; height: 39px; padding: 0 11px; overflow: visible; white-space: nowrap; color: var(--pink-dark); font-size: 12px; }
  .desktop-only { display: none; }
  .mobile-parse-fab { display: grid; place-items: center; }
  .sync-badge { display: inline-flex; }
  .sync-badge.cloud { color: var(--pink-dark); background: var(--pink-soft); border-color: transparent; }
  .day-plan-card { padding: 16px 14px; }
  .day-plan-heading { align-items: flex-start; }
  .day-plan-heading > span { max-width: 100px; text-align: right; }
  .time-row { grid-template-columns: 74px 1fr; gap: 8px; }
  .time-block { padding-inline: 6px; font-size: 10px; }
  .daily-check { align-items: stretch; flex-direction: column; gap: 14px; }
  .daily-check-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .daily-check-actions button { padding-inline: 10px; font-size: 12px; }
  .focus-card, .task-section, .upcoming-section, .week-card, .session-card { border-radius: 17px; }
  .focus-card, .task-section, .upcoming-section { padding: 19px; }
  .focus-card h2 { font-size: 22px; }
  .focus-card .primary-button { width: 100%; }
  .task-row { grid-template-columns: 25px 1fr; }
  .task-actions { grid-column: 2; justify-content: flex-start; }
  .weekly-report-output { grid-template-columns: 1fr; }
  .placeholder-card { padding: 22px 14px; }
  .calendar-summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .month-calendar { min-width: 840px; }
  .calendar-day { min-height: 132px; }
  .add-actions.three-actions { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr; }
  .session-card { grid-column: auto; }
  .upcoming-list article { grid-template-columns: 45px 1fr; }
  .upcoming-list .task-type { display: none; }
  .mobile-nav { position: fixed; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); left: 0; right: 0; bottom: 0; padding: 8px max(18px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: rgba(255,255,255,.94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-nav button { border: 0; background: transparent; color: var(--muted); font-size: 10px; }
  .mobile-nav span { display: block; margin-bottom: 3px; font-size: 18px; }
  .mobile-nav button.active { color: var(--pink-dark); font-weight: 700; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 90vh; border-radius: 22px 22px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); }
  .timer-display { font-size: 38px; }
}
