:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #edf2f6;
  --text: #29343f;
  --muted: #6c7782;
  --line: #dce5ec;
  --accent: #9cb7d3;
  --accent-strong: #5f7f9f;
  --accent-soft: #eaf2f8;
  --accent-ink: #31516f;
  --accent-border: #c7d8e7;
  --green: var(--accent-strong);
  --green-2: var(--accent-strong);
  --green-soft: var(--accent-soft);
  --cream: #f5e7c7;
  --cream-soft: #fbf5e6;
  --blue: #356aa0;
  --blue-soft: #e8f0f8;
  --orange: #b8652e;
  --orange-soft: #faebdf;
  --purple: #72519a;
  --purple-soft: #eee8f5;
  --red: #b44242;
  --red-soft: #fae9e7;
  --yellow: #9e762a;
  --yellow-soft: #fff4d4;
  --shadow: 0 10px 30px rgb(61 79 96 / 8%);
  --radius: 20px;
  --nav-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

:root[data-theme="aqua"] { --bg: #f6faf9; --surface-2: #edf6f5; --line: #d9e9e7; --accent: #9fc9c6; --accent-strong: #5b918e; --accent-soft: #e8f5f3; --accent-ink: #356966; --accent-border: #c6e1de; }
:root[data-theme="mint"] { --bg: #f7faf7; --surface-2: #eff6f0; --line: #dce9de; --accent: #b4d3be; --accent-strong: #6d9a79; --accent-soft: #edf7ef; --accent-ink: #456d50; --accent-border: #cee3d3; }
:root[data-theme="grape"] { --bg: #fafbf7; --surface-2: #f3f7eb; --line: #e2e9d5; --accent: #c4d6a4; --accent-strong: #849a5c; --accent-soft: #f1f6e7; --accent-ink: #5d713a; --accent-border: #dce7c7; }
:root[data-theme="butter"] { --bg: #fcfaf5; --surface-2: #faf5e7; --line: #ede3c9; --accent: #e8cf91; --accent-strong: #b08a3d; --accent-soft: #fbf4df; --accent-ink: #7c5f25; --accent-border: #f0e1b8; }
:root[data-theme="peach"] { --bg: #fcf8f6; --surface-2: #faefeb; --line: #eddcd6; --accent: #e8b5a4; --accent-strong: #b87560; --accent-soft: #fbece7; --accent-ink: #89513f; --accent-border: #f0cfc4; }
:root[data-theme="pink"] { --bg: #fcf8f9; --surface-2: #f8eef1; --line: #eadbe0; --accent: #dfb3c0; --accent-strong: #aa7081; --accent-soft: #faedf1; --accent-ink: #805062; --accent-border: #ecd0d8; }
:root[data-theme="lilac"] { --bg: #faf9fc; --surface-2: #f2eff7; --line: #e2ddea; --accent: #c6b9db; --accent-strong: #8877a5; --accent-soft: #f1edf7; --accent-ink: #62527c; --accent-border: #dcd3e9; }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--green-2) 28%, transparent); outline-offset: 2px; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { width: 100%; min-height: 100dvh; padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 86px; padding: calc(14px + env(safe-area-inset-top)) 20px 12px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); }
.topbar h1 { margin: 1px 0 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(25px, 7vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.eyebrow, .kicker { margin: 0; color: var(--green-2); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.collect-button { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-ink); box-shadow: var(--shadow); }
.install-button { color: var(--green-2); box-shadow: var(--shadow); }

main { width: min(100%, 760px); margin: 0 auto; }
.page { display: none; padding: 6px 16px 28px; animation: page-in .22s ease; }
.page.is-active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.section-block { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-heading h2, .settings-group h2 { margin: 2px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 22px; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.empty-state { padding: 28px 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; background: color-mix(in srgb, var(--surface) 60%, transparent); }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--green); color: var(--bg); font-weight: 750; cursor: pointer; }
.button:disabled { opacity: .55; cursor: wait; }
.button.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.button.compact { min-height: 36px; padding: 0 12px; border-radius: 12px; font-size: 13px; }
.button.square { width: 46px; padding: 0; }
.button.danger-button { background: var(--red); color: white; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--green-2); font-weight: 700; cursor: pointer; }

.now-card { position: relative; overflow: hidden; min-height: 235px; padding: 24px; border: 1px solid var(--accent-border); border-radius: 28px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent-strong) 18%, transparent); }
.now-card::after { content: ""; position: absolute; top: -55px; right: -50px; width: 180px; height: 180px; border: 1px solid rgb(255 255 255 / 32%); border-radius: 50%; box-shadow: 0 0 0 28px rgb(255 255 255 / 11%), 0 0 0 62px rgb(255 255 255 / 7%); }
.now-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.now-label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--accent-ink) 18%, transparent); border-radius: 99px; background: rgb(255 255 255 / 28%); font-size: 12px; font-weight: 750; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-strong) 16%, transparent); }
.now-time { font-variant-numeric: tabular-nums; font-size: 13px; opacity: .82; }
.now-card h2 { position: relative; z-index: 1; margin: 28px 0 5px; max-width: 85%; font-family: Georgia, "Songti SC", serif; font-size: clamp(29px, 8vw, 39px); line-height: 1.15; }
.now-card .time-range { position: relative; z-index: 1; margin: 0; color: color-mix(in srgb, var(--accent-ink) 78%, transparent); font-size: 14px; font-weight: 650; }
.now-detail { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; margin-top: 22px; padding-top: 17px; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 16%, transparent); }
.now-detail p { margin: 0; font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--accent-ink) 86%, transparent); }
.now-action { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 68%); color: var(--accent-ink); cursor: pointer; }
.now-empty { display: grid; align-content: center; min-height: 190px; }

.task-list, .checklist { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.task-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 15px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.check-control { position: relative; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.check-control input { position: absolute; opacity: 0; }
.check-control svg { display: none; width: 15px; }
.check-control:has(input:checked) { border-color: var(--green-2); background: var(--green-2); color: white; }
.check-control:has(input:checked) svg { display: block; }
.task-copy strong { display: block; margin-bottom: 3px; font-size: 15px; line-height: 1.35; }
.task-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.task-row.is-done .task-copy { opacity: .55; }
.task-row.is-done .task-copy strong { text-decoration: line-through; }
.due { white-space: nowrap; padding: 5px 8px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 750; }
.due.urgent { background: var(--red-soft); color: var(--red); }
.row-menu { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 69px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline-row { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 27px; padding: 0 0 18px; }
.timeline-row.is-past::before, .timeline-row.is-current::before { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: 69px; width: 2px; background: color-mix(in srgb, var(--accent-strong) 48%, var(--line)); }
.timeline-time { padding-top: 13px; color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.timeline-dot { position: absolute; z-index: 1; top: 17px; left: 65px; width: 10px; height: 10px; border: 2px solid var(--bg); border-radius: 50%; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.timeline-row.is-past .timeline-dot { background: color-mix(in srgb, var(--accent-strong) 55%, var(--line)); }
.timeline-row.is-current .timeline-dot { background: var(--accent-strong); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); }
.timeline-card { position: relative; padding: 13px 14px; border: 1px solid transparent; border-radius: 16px; background: var(--surface); box-shadow: 0 4px 16px rgb(54 70 82 / 5%); }
.timeline-row.is-past .timeline-card { opacity: .62; box-shadow: none; }
.timeline-row.is-current .timeline-card { border-color: var(--accent-border); background: var(--accent-soft); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-strong) 12%, transparent); }
.timeline-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timeline-card strong { display: block; font-size: 14px; }
.timeline-card small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.4; }
.timeline-status { flex: none; padding: 4px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; }
.timeline-progress { height: 5px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--accent-strong) 12%, transparent); }
.timeline-progress span { display: block; width: calc(var(--task-progress, 0) * 1%); height: 100%; border-radius: inherit; background: var(--accent-strong); }

.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: var(--surface-2); }
.segmented-control button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.segmented-control button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 3px 12px rgb(31 55 43 / 8%); }
.page-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.page-actions p { margin: 0; font-size: 12px; }
.schedule-list { display: grid; gap: 10px; }
.schedule-card { display: grid; grid-template-columns: 4px 76px 1fr auto; gap: 12px; align-items: center; min-height: 74px; padding: 12px 10px 12px 0; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.category-bar { align-self: stretch; border-radius: 0 4px 4px 0; background: var(--line); }
.category-bar.research { background: var(--blue); }.category-bar.rest { background: #6b9d76; }.category-bar.personal { background: var(--purple); }.category-bar.career { background: var(--orange); }.category-bar.flexible { background: #8e9490; }.category-bar.audio { background: #ad8840; }
.schedule-time { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.schedule-copy strong { display: block; font-size: 15px; }.schedule-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }

.progress-card { padding: 21px; border-radius: 24px; background: var(--cream-soft); border: 1px solid color-mix(in srgb, var(--cream) 78%, var(--line)); }
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-head h2 { margin: 2px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 23px; }
.progress-number { color: var(--green-2); font-family: Georgia, serif; font-size: 30px; font-weight: 700; }
.progress-track { height: 9px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--cream) 75%, var(--surface)); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green-2); transition: width .3s ease; }
.progress-card > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.milestone-list { display: grid; gap: 10px; }
.milestone-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.milestone-card .week-pill { min-width: 44px; height: 30px; padding: 0 8px; border-radius: 9px; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 800; line-height: 30px; text-align: center; }
.milestone-card h3 { margin: 0; font-size: 15px; }.milestone-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.milestone-card.is-done { opacity: .6; }.milestone-card.is-done h3 { text-decoration: line-through; }
.select { min-height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.compact-select { min-height: 34px; font-size: 12px; }
.audio-task-list { display: grid; gap: 10px; }
.audio-task { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.audio-task.is-today { border-color: var(--green-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-2) 10%, transparent); }
.audio-date { padding: 7px 5px; border-radius: 10px; background: var(--surface-2); font-size: 12px; font-weight: 800; text-align: center; }
.audio-task h3 { margin: 0; font-size: 14px; line-height: 1.45; }.audio-task p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }.audio-duration { display: inline-block; margin-top: 8px; padding: 4px 7px; border-radius: 8px; background: var(--cream-soft); color: var(--yellow); font-size: 10px; font-weight: 800; }
.audio-actions { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.weekly-notes { display: grid; gap: 12px; }.weekly-note { padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }.weekly-note h3 { margin: 0 0 10px; font-size: 14px; }.weekly-note textarea { width: 100%; min-height: 68px; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-size: 13px; }.weekly-note textarea + textarea { margin-top: 8px; }

.search-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.search-box { display: flex; align-items: center; min-height: 46px; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.search-box span { color: var(--muted); font-size: 23px; transform: rotate(-15deg); }.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.filter-chips { display: flex; gap: 7px; margin: 14px 0; overflow-x: auto; scrollbar-width: none; }.filter-chips::-webkit-scrollbar { display: none; }.filter-chips button { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }.filter-chips button.is-active { border-color: var(--green); background: var(--green); color: var(--bg); }.filter-chips.small { margin: 0; }.filter-chips.small button { min-height: 31px; }
.job-list { display: grid; gap: 11px; }
.job-card { position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 5px 18px rgb(31 55 43 / 5%); }
.job-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.job-company { display: flex; align-items: center; gap: 8px; }.job-company h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 18px; }.priority-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 11px; font-weight: 900; }.priority-badge.B { background: var(--orange-soft); color: var(--orange); }.star-button { border: 0; background: transparent; color: var(--line); cursor: pointer; }.star-button.is-starred { color: #d39a2f; }.star-button.is-starred svg { fill: currentColor; }
.job-role { margin: 9px 0 11px; font-size: 14px; font-weight: 700; line-height: 1.4; }.job-meta { display: flex; flex-wrap: wrap; gap: 6px; }.meta-chip { padding: 5px 8px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 11px; }.meta-chip.deadline { background: var(--red-soft); color: var(--red); }.job-note { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.45; }.job-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }.status-select { min-height: 34px; padding: 0 9px; border: 0; border-radius: 10px; background: var(--green-soft); color: var(--green-2); font-size: 12px; font-weight: 750; }

.check-summary { display: grid; grid-template-columns: auto 1fr; gap: 17px; align-items: center; padding: 18px; border-radius: 21px; background: var(--green-soft); }
.summary-ring { --p: 0; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--green-2) calc(var(--p) * 1%), color-mix(in srgb, var(--green-2) 14%, transparent) 0); }.summary-ring::before { content: attr(data-label); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--green-soft); color: var(--green-2); font-size: 12px; font-weight: 850; }.check-summary h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 21px; }.check-summary p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.checklist .task-row { grid-template-columns: auto 1fr auto auto; align-items: center; }.priority-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }.priority-dot.urgent { background: var(--red); }.priority-dot.high { background: var(--orange); }.priority-dot.medium { background: var(--yellow); }.priority-dot.routine { background: var(--blue); }

.settings-hero { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--accent-border); border-radius: 22px; background: var(--accent); color: var(--accent-ink); }.app-mark { display: block; width: 62px; height: 62px; border-radius: 18px; object-fit: cover; }.settings-hero h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 24px; }.settings-hero p { margin: 4px 0 0; color: color-mix(in srgb, var(--accent-ink) 70%, transparent); font-size: 12px; }
.settings-group { margin-top: 24px; }.settings-group > h2 { margin: 0 0 10px; font-size: 19px; }.setting-row, .setting-action { display: flex; width: 100%; min-height: 70px; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); text-align: left; }.setting-row:first-of-type, .setting-action:first-of-type { border-radius: 17px 17px 0 0; }.setting-row:last-child, .setting-action:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 17px 17px; }.setting-row:only-of-type, .setting-action:only-of-type { border: 1px solid var(--line); border-radius: 17px; }.setting-row > span, .setting-action > span:nth-child(2) { flex: 1; }.setting-row strong, .setting-action strong { display: block; font-size: 14px; }.setting-row small, .setting-action small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }.setting-action { cursor: pointer; }.action-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }.action-icon.green { background: var(--green-soft); color: var(--green-2); }.action-icon.blue { background: var(--blue-soft); color: var(--blue); }.action-icon.red { background: var(--red-soft); color: var(--red); }.setting-action .chevron { width: 16px; color: var(--muted); }.setting-action.danger strong { color: var(--red); }.storage-note { margin: 20px 6px 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.theme-setting { padding: 15px; border: 1px solid var(--line); border-bottom: 0; border-radius: 17px 17px 0 0; background: var(--surface); }
.theme-setting + .setting-row { border-radius: 0 0 17px 17px; }
.theme-setting-copy strong { display: block; font-size: 14px; }.theme-setting-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.theme-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; margin-top: 14px; }
.theme-option { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 5px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.theme-swatch { position: relative; width: 34px; height: 34px; border: 2px solid var(--surface); border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px var(--line); }
.theme-option.is-active { background: var(--surface-2); color: var(--text); font-weight: 800; }.theme-option.is-active .theme-swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong); }
.switch { appearance: none; width: 44px; height: 26px; padding: 3px; border-radius: 99px; background: var(--line); cursor: pointer; transition: background .2s; }.switch::before { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgb(0 0 0 / 15%); transition: transform .2s; }.switch:checked { background: var(--green-2); }.switch:checked::before { transform: translateX(18px); }

.bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6, 1fr); height: calc(var(--nav-height) + env(safe-area-inset-bottom)); padding: 7px max(5px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(5px, env(safe-area-inset-left)); border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(22px); box-shadow: 0 -8px 28px rgb(31 55 43 / 6%); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }.bottom-nav button svg { width: 21px; height: 21px; }.bottom-nav button.is-active { color: var(--green-2); }

.modal { width: min(calc(100% - 24px), 520px); max-height: min(86dvh, 760px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 25px 80px rgb(0 0 0 / 30%); }.modal::backdrop { background: rgb(10 18 13 / 48%); backdrop-filter: blur(3px); }.modal form { padding: 18px; }.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }.modal-head h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 23px; }.modal-head .icon-button { border: 0; background: var(--surface-2); font-size: 22px; }.form-fields { display: grid; gap: 13px; }.field { display: grid; gap: 6px; }.field > span { color: var(--muted); font-size: 12px; font-weight: 700; }.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); outline: 0; }.field textarea { min-height: 86px; resize: vertical; }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }.confirm-modal { max-width: 400px; text-align: center; }.confirm-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 8px auto 12px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 28px; font-weight: 900; }.confirm-modal h2 { margin: 0; font-family: Georgia, "Songti SC", serif; }.confirm-modal p { color: var(--muted); line-height: 1.5; }
.inbox-modal { max-width: 620px; }
.inbox-modal .modal-head { align-items: flex-start; }
.inbox-intro { margin: -3px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.inbox-upload { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 13px 15px; border: 1px dashed var(--accent-strong); border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); cursor: pointer; }
.inbox-upload > svg { width: 29px; height: 29px; }.inbox-upload strong, .inbox-upload small { display: block; }.inbox-upload small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.inbox-file-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 13px; }
.inbox-file-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.inbox-file-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; }
.inbox-status { min-height: 20px; margin-top: 11px; color: var(--accent-ink); font-size: 12px; }
.inbox-results { display: grid; gap: 10px; margin-top: 4px; }
.inbox-result { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--accent-border); border-radius: 16px; background: var(--accent-soft); }
.inbox-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.inbox-result-head strong { font-size: 13px; }.inbox-result-head button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.inbox-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.inbox-result-grid .wide { grid-column: 1 / -1; }
.inbox-result label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 750; }.inbox-result input, .inbox-result select, .inbox-result textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 12px; }.inbox-result textarea { min-height: 65px; resize: vertical; }
.inbox-actions.has-results { grid-template-columns: 1fr 1fr; }.inbox-actions.has-results #inbox-analyze { display: none; }
.toast { position: fixed; z-index: 60; right: 16px; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 14px); left: 16px; max-width: 440px; margin: auto; padding: 12px 15px; border-radius: 13px; background: #202820; color: white; font-size: 13px; text-align: center; box-shadow: 0 12px 35px rgb(0 0 0 / 20%); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 780px) {
  body { padding-left: 92px; }
  .app-shell { min-height: 100dvh; padding-bottom: 0; }
  .bottom-nav { top: 0; right: auto; width: 92px; height: 100dvh; grid-template-columns: 1fr; grid-template-rows: repeat(6, 72px); align-content: center; padding: 18px 8px; border-top: 0; border-right: 1px solid var(--line); }
  .topbar { width: min(100%, 760px); margin: 0 auto; padding-top: 22px; }
  .page { padding-bottom: 56px; }
  .toast { bottom: 22px; left: 108px; }
}

@media (max-width: 370px) {
  .page { padding-right: 12px; padding-left: 12px; }
  .topbar { padding-right: 15px; padding-left: 15px; }
  .bottom-nav button span { font-size: 9px; }
  .schedule-card { grid-template-columns: 4px 66px 1fr auto; gap: 8px; }
  .now-card { padding: 20px; }
  .theme-options { grid-template-columns: repeat(4, 1fr); gap: 8px 3px; }
  .inbox-result-grid { grid-template-columns: 1fr; }.inbox-result-grid .wide { grid-column: auto; }
}

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