:root {
  color-scheme: light;
  --background: #f5f7f3;
  --paper: #fff;
  --ink: #19342c;
  --muted: #55675e;
  --faint: #65776b;
  --green: #285b4b;
  --green-hover: #1c483b;
  --sage: #eaf2e9;
  --border: #dce6de;
  --amber: #ac7426;
  --radius: 21px;
  --sidebar: 232px;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif;
  --serif: "Noto Serif KR", "Noto Serif CJK KR", "Batang", Georgia, serif;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.62 var(--sans); overflow-wrap: anywhere; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, fieldset, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.4; word-break: keep-all; }
h1, h2 { letter-spacing: -.045em; }
button, input, textarea { font: inherit; }
button, a, summary, input[type="checkbox"], input[type="range"] { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-user-select: none; user-select: none; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, fieldset { border: 0; }
fieldset { padding: 0; min-inline-size: 0; }
input[type="checkbox"], input[type="range"] { accent-color: var(--green); }
input[type="checkbox"] { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; }
:focus-visible { outline: 3px solid #44866d; outline-offset: 3px; }
h1:focus, h2[tabindex]:focus, main:focus { outline: none; }
::selection { background: #d4e8d9; color: #19342c; }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.skip-link { position: fixed; left: 18px; top: 12px; z-index: 30; transform: translateY(-150%); background: var(--paper); padding: 12px 15px; border-radius: 10px; }
.skip-link:focus { transform: none; }
.noscript { padding: 18px; text-align: center; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: 37px 21px 24px;
  background: #fcfdfb;
  border-right: 1px solid #e0e9e1;
}
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; margin-left: 8px; }
.brand img { display: block; flex: 0 0 auto; }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { font: 750 1.19rem/1.4 var(--serif); letter-spacing: -.045em; }
.brand small { color: var(--muted); font-size: .75rem; font-weight: 500; margin-top: 2px; }
.sidebar .navigation { display: grid; gap: 7px; margin-top: 46px; }
.navigation a { display: flex; align-items: center; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.sidebar .navigation a { min-height: 48px; padding: 10px 13px; gap: 12px; border-radius: 12px; }
.navigation a[aria-current="page"] { background: #e7f0e7; color: var(--green); font-weight: 750; }
.navigation a:hover { background: #edf3ed; color: var(--green); }
.sidebar-bottom { margin-top: auto; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); padding: 18px 1px 2px; }
.local-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--green); }
.local-icon .icon { width: 17px; height: 17px; }
.sidebar-bottom strong { font-size: .8125rem; font-weight: 650; }
.sidebar-bottom p { color: var(--muted); font-size: .75rem; margin-top: 1px; }
.mobile-top, .mobile-nav { display: none; }

.workspace { margin-left: var(--sidebar); padding: 42px 45px 48px; min-height: 100dvh; }
.page { max-width: 1140px; margin-inline: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.page-header h1 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.82rem); font-weight: 740; line-height: 1.34; letter-spacing: -.065em; }
.page-header p { margin-top: 8px; color: var(--muted); font-size: 1rem; word-break: keep-all; }
.date-pill { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 30px; background: #fbfdfa; color: var(--green); font-size: .875rem; font-weight: 650; }
.date-pill .icon { width: 16px; height: 16px; }

.hero { position: relative; display: grid; align-items: center; min-height: 312px; overflow: hidden; isolation: isolate; border-radius: 23px; background: #274940; color: #fff; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-image { object-fit: cover; object-position: 50% 55%; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(93deg, rgba(11, 40, 34, .88), rgba(15, 45, 38, .73) 30%, rgba(18, 48, 42, .22) 65%, transparent); }
.hero-content { padding: 35px 45px 39px; max-width: 640px; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; color: #ecf6ec; font-size: .875rem; font-weight: 650; }
.hero-label .icon { width: 18px; height: 18px; }
.hero h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.1vw, 3rem); font-weight: 730; margin-top: 9px; text-shadow: 0 1px 8px #0e302c55; }
.hero p { margin-top: 10px; color: #f0f7ef; font-size: 1rem; word-break: keep-all; }
.hero-actions { display: flex; gap: 19px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.hero-link { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 3px; color: #f2f7ef; font-size: .875rem; font-weight: 650; text-underline-offset: 4px; }
.hero-link:hover { text-decoration: underline; }
.hero :focus-visible { outline-color: #f1f9ed; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 11px; font-size: .9375rem; font-weight: 730; line-height: 1.35; text-align: center; word-break: keep-all; transition: background-color .15s, border-color .15s; }
.button .icon { width: 18px; height: 18px; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-hover); }
.button-light { background: #fbfdf8; color: #214b3d; }
.button-light:hover { background: #e4efe2; }
.button-soft { background: var(--sage); color: var(--green); }
.button-soft:hover { background: #dcebdd; }
.button-outline { border-color: var(--border); color: var(--green); background: white; }
.button-outline:hover { background: #f1f6f0; border-color: #9ebcaf; }
.button-danger { background: #962e33; color: white; }
.button-danger:hover { background: #782327; }
.text-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 5px; background: transparent; color: var(--green); font-size: .875rem; font-weight: 650; text-underline-offset: 4px; }
.text-button:not(:disabled):hover { text-decoration: underline; }
.text-button:disabled { color: #819186; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; color: var(--green); background: #f2f6f1; }
.icon-button:not(:disabled):hover { background: #e3efe4; }
.icon-button:disabled { opacity: .42; }
.icon-box { display: inline-grid; place-items: center; border-radius: 11px; width: 40px; height: 40px; flex: 0 0 40px; color: var(--green); background: var(--sage); }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; box-shadow: 0 2px 4px #1e382304; }
.card-heading { display: flex; align-items: center; min-width: 0; gap: 11px; }
.card-heading h2 { font-size: 1.2rem; font-weight: 750; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr); gap: 20px; margin-top: 21px; }
.home-check, .week-card { padding: 22px 24px; }
.home-check { display: flex; flex-direction: column; align-items: flex-start; }
.home-check .card-heading { width: 100%; }
.card-prompt { color: var(--muted); font-size: .96875rem; margin-block: 14px 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid #dfe8e0; border-radius: 30px; padding: 6px 12px; color: #3c5047; background: #fbfcfa; font-size: .875rem; font-weight: 620; }
.chip .icon { width: 16px; height: 16px; color: var(--chip-tone, var(--green)); }
.chip:hover { border-color: #a8c4b3; background: #edf4eb; }
.chip[aria-pressed="true"] { border-color: #77a58d; box-shadow: inset 0 0 0 1px #77a58d; color: #214837; background: #e6f1e8; }
.chip-green { --chip-tone: #4d795d; }
.chip-amber { --chip-tone: #9c6a18; }
.chip-purple { --chip-tone: #765c98; }
.chip-blue { --chip-tone: #4c7791; }
.chip-red { --chip-tone: #a2534a; }
.home-check-button { margin-top: 17px; }
.saved-badge { margin-left: auto; background: var(--sage); color: var(--green); border-radius: 30px; padding: 4px 8px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.saved-badge .icon { width: 14px; height: 14px; margin-right: 3px; }

.week-range { margin-left: auto; color: var(--muted); font-size: .78rem; font-weight: 550; white-space: nowrap; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.week-day { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.week-day > span { font-size: .8125rem; color: var(--muted); }
.day-button { display: flex; flex-direction: column; gap: 1px; justify-content: center; align-items: center; min-width: 32px; min-height: 43px; width: 100%; padding: 3px 1px 0; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--ink); font-size: .9375rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; }
.day-button:not(:disabled):hover { background: var(--sage); }
.day-button.is-today { background: #edf5eb; border-color: #c1d8c5; color: var(--green); }
.day-button[aria-pressed="true"] { background: #e2f0e4; border-color: #7ea993; color: #1f513e; }
.day-button:disabled { color: #77887b; }
.day-button.other-month:not([aria-pressed="true"]) { color: #6c7c71; }
.status-marks { display: flex; justify-content: center; align-items: center; gap: 3px; min-height: 7px; margin-top: 3px; }
.meditation-dot, .checkin-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #397958; flex: 0 0 auto; }
.checkin-dot { background: #ac7426; }
.week-stats { border-top: 1px solid #e8ede8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; padding-top: 12px; }
.week-stats div { display: grid; justify-items: center; gap: 2px; }
.week-stats div + div { border-left: 1px solid #e8ede8; }
.week-stats span { color: var(--muted); font-size: .8125rem; }
.week-stats strong { font-size: 1.22rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.week-stats small { margin-left: 3px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.question-card { display: flex; align-items: center; gap: 14px; margin-top: 21px; padding: 16px 21px; border: 1px solid #dce8dc; border-radius: 17px; background: #eef4ec; }
.question-card .icon-box { background: #e2ede1; }
.question-card > div { flex: 1 1 auto; }
.question-label { display: block; color: var(--green); font-size: .8125rem; font-weight: 750; }
.question-card p { font-size: 1rem; font-weight: 650; word-break: keep-all; }
.question-card .button { border-color: #cfe0d0; background: #f8fbf6; white-space: nowrap; }
.question-card .button:hover { background: #e3efe2; }

.practice-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.practice-card { overflow: hidden; }
.practice-photo { height: 120px; background: #355e51 url("dawn-lake.webp") center 48% / cover no-repeat; }
.practice-content, .topics-card { padding: 25px; }
.practice-content { display: grid; justify-items: start; gap: 11px; }
.practice-content h2 { font: 750 clamp(1.5rem, 2.75vw, 2.15rem)/1.3 var(--serif); letter-spacing: -.065em; }
.practice-content > p { color: var(--muted); word-break: keep-all; }
.duration-options { width: 100%; margin-top: 10px; }
.duration-options legend { font-size: .9375rem; font-weight: 730; margin-bottom: 7px; }
.segmented { display: flex; gap: 4px; padding: 4px; border: 1px solid #e4ebe4; border-radius: 13px; background: #f3f7f2; }
.segmented button { flex: 1 1 auto; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); padding: 8px 11px; min-height: 43px; font-size: .9375rem; font-weight: 670; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--paper); color: var(--green); border-color: #d5e1d7; box-shadow: 0 1px 3px #1a312914; font-weight: 750; }
.segmented button:hover { color: var(--green); }
.sound-options { display: flex; flex-wrap: wrap; gap: 4px 13px; }
.sound-options label { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; color: var(--muted); font-size: .875rem; font-weight: 590; }
.sound-options label:has(input:disabled) { opacity: .72; }
.sound-options .icon { width: 16px; height: 16px; }
.fine-print { font-size: .8125rem !important; color: var(--muted); }
.topics-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.topic-list { display: grid; gap: 8px; }
.topic { display: flex; justify-content: flex-start; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 11px; border: 1px solid #e2e9e3; color: var(--ink); background: #fdfefa; border-radius: 11px; font-size: .9375rem; font-weight: 650; text-align: left; word-break: keep-all; }
.topic:hover, .topic[aria-pressed="true"] { border-color: #a4c3b1; background: #edf4eb; }
.topic small { margin-left: auto; font-size: .75rem; color: var(--green); font-weight: 750; white-space: nowrap; }
.topic-icon { background: #e9f1e7; border-radius: 8px; width: 30px; height: 30px; flex: 0 0 30px; color: var(--green); display: grid; place-items: center; }
.topic-icon .icon { width: 17px; height: 17px; }
.context-note { color: var(--muted); font-size: .875rem; margin-top: 18px; word-break: keep-all; }

#checkin-form { display: grid; gap: 14px; max-width: 920px; }
.form-card { padding: 22px 24px; }
.form-card .card-heading { margin-bottom: 20px; }
.field-group { display: grid; gap: 8px; margin-bottom: 18px; }
.field-group:last-child { margin-bottom: 0; }
.field-group legend, .field-label, .intensity-title label { display: block; font-weight: 730; color: var(--ink); font-size: 1rem; }
.field-group legend { margin-bottom: 7px; }
.legend-detail { color: var(--muted); font-size: .8125rem; font-weight: 500; margin-left: 6px; }
.intensity-group { padding: 12px 15px 7px; background: #f6f9f5; border: 1px solid #e3ebe4; border-radius: 12px; gap: 3px; }
.intensity-title, .range-scale { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.intensity-title output { color: var(--green); font-weight: 750; font-size: .875rem; }
.intensity-group input { width: 100%; min-height: 28px; margin: 0; }
.range-scale { color: var(--muted); font-size: .8125rem; }
.intensity-reset { justify-self: end; min-height: 32px; padding: 4px; font-size: .8125rem; }
.past-date-button { margin-bottom: 12px; }
.disclosure summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 23px; cursor: pointer; border-radius: var(--radius); }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { background: #f8fbf7; }
.disclosure summary > span:nth-child(2) { flex: 1 1 0; }
.disclosure summary strong { display: block; font-size: 1.0625rem; }
.disclosure summary small { display: block; color: var(--muted); font-size: .875rem; font-weight: 500; line-height: 1.45; word-break: keep-all; margin-top: 2px; }
.disclosure-chevron { color: var(--green); }
.disclosure[open] .disclosure-chevron { transform: rotate(180deg); }
.disclosure-body { padding: 16px 23px 22px; border-top: 1px solid #e7eee7; }
.disclosure-body > .field-note { margin-bottom: 11px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 17px; margin-bottom: 18px; }
.text-field { display: grid; align-content: start; gap: 5px; min-width: 0; scroll-margin-block: 36px; }
.field-note { color: var(--muted); font-size: .875rem; word-break: keep-all; }
textarea { min-height: 79px; inline-size: 100%; border: 1px solid #d9e5db; border-radius: 11px; background: #fdfefa; color: var(--ink); padding: 9px 11px; resize: vertical; line-height: 1.55; }
textarea::placeholder { color: #617266; opacity: 1; }
textarea:focus { background: white; }
.form-subsection { margin-top: 18px; }
.form-subsection .field-grid { margin-block: 9px 0; }
.form-subsection h3 { font-size: 1.0625rem; }
.checklist { display: grid; gap: 5px; }
.checklist label { display: flex; align-items: center; gap: 7px; padding: 5px 0; color: var(--ink); min-height: 40px; word-break: keep-all; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.choice-card .form-actions { margin-top: 14px; }

.records-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; }
.calendar-card, .day-card { padding: 21px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calendar-header h2 { font-size: 1.19rem; font-variant-numeric: tabular-nums; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-grid .day-button { min-height: 45px; }
.calendar-weekday { text-align: center; color: var(--muted); font-size: .8125rem; margin-block: 6px; }
.calendar-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 6px; border-top: 1px solid #e4ebe4; margin-top: 12px; padding-top: 5px; }
.calendar-legend { display: flex; gap: 9px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8125rem; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 12px; margin-block: 24px 17px; color: var(--muted); }
.day-section { display: grid; justify-items: start; gap: 8px; margin-top: 17px; }
.day-section + .day-section { padding-top: 15px; border-top: 1px solid #e7eee7; }
.day-section h3 { font-size: 1.0625rem; }
.session-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.session-list li { display: flex; align-items: center; gap: 7px; padding: 8px 0; font-size: .9375rem; }
.session-list li + li { border-top: 1px solid #eef2ee; }
.session-list .icon { color: var(--green); }
.session-list li > span { flex: 1 1 auto; }
.session-list small { color: var(--muted); font-size: .75rem; }
.session-list strong { white-space: nowrap; }
.entry-list { width: 100%; }
.entry-list > div { display: grid; grid-template-columns: minmax(86px, 1fr) minmax(0, 2.45fr); gap: 9px; padding: 7px 0; border-bottom: 1px solid #edf1ec; font-size: .9375rem; }
.entry-list dt { color: var(--muted); font-weight: 650; word-break: keep-all; }
.entry-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-list dd ul { white-space: normal; margin: 0; padding-left: 17px; }
.storage-card { margin-top: 18px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.storage-card > div:nth-child(2) { flex: 1 1 300px; }
.storage-card h2 { font-size: 1.0625rem; }
.storage-card p { color: var(--muted); font-size: .875rem; margin-top: 3px; word-break: keep-all; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.storage-warning { margin-bottom: 15px; padding: 10px 15px; color: #644317; background: #fff7e7; border: 1px solid #ead7ac; border-radius: 12px; font-size: .875rem; }

.guide-tabs { width: fit-content; max-width: 100%; margin-bottom: 17px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-card { padding: 20px; }
.guide-card h2 { font-size: 1.18rem; }
.guide-card p { color: var(--muted); margin-top: 6px; word-break: keep-all; }
.guide-card p.guide-cue { color: var(--green); font-size: 1rem; font-weight: 690; }
.guide-card dl { display: grid; gap: 7px; margin-top: 12px; font-size: .9375rem; }
.guide-card dl > div { display: grid; grid-template-columns: minmax(115px, 1fr) minmax(0, 1.8fr); gap: 9px; border-top: 1px solid #eaf0ea; padding-top: 7px; }
.guide-card dt { color: var(--muted); font-weight: 640; word-break: keep-all; }

.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.about-card { padding: 20px 22px; }
.about-card .card-heading { margin-bottom: 12px; }
.about-card p, .about-card li { color: var(--muted); font-size: .9375rem; word-break: keep-all; }
.about-card p + p, .about-card ul + p, .about-card p + ul { margin-top: 8px; }
.about-card ul { display: grid; gap: 6px; margin-block: 0; padding-left: 18px; }
.about-card .button { margin-top: 14px; }
.help-lines a { color: var(--green); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; -webkit-user-select: text; user-select: text; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 18px; max-width: 1140px; margin: 34px auto 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8125rem; }
.site-footer p { flex: 1 1 320px; word-break: keep-all; }
.site-footer a { display: inline-flex; align-items: center; min-height: 40px; color: var(--green); font-weight: 650; white-space: nowrap; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration: underline; }

.dialog { border: 1px solid var(--border); border-radius: 24px; color: var(--ink); background: #fbfdfa; width: min(520px, calc(100% - 30px)); max-height: calc(100dvh - 24px); padding: 24px; box-shadow: 0 22px 80px #102b2752; }
.dialog::backdrop { background: #132f29aa; }
.player { padding: 22px 24px 24px; }
.player-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.player-header p { color: var(--muted); font-size: .875rem; }
.player-header h2 { font: 740 1.55rem/1.4 var(--serif); letter-spacing: -.045em; margin-top: 3px; }
.player-main { display: grid; justify-items: center; text-align: center; }
.timer-ring { --sweep: 0deg; display: grid; place-items: center; width: 171px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#4f8a6d var(--sweep), #dfece0 0); margin-top: 19px; }
.timer-face { border-radius: 50%; width: calc(100% - 10px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f6faf4; box-shadow: inset 0 0 0 1px #ecf3e8; }
#timer-time { font-size: 2.32rem; line-height: 1.36; font-weight: 670; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
#timer-status { font-size: .8125rem; color: var(--muted); }
.player-steps { display: flex; gap: 5px; margin-top: 17px; }
.player-steps span { display: block; width: 20px; height: 4px; background: #dde9dd; border-radius: 4px; }
.player-steps .filled { background: #5b8e73; }
.stage-copy { min-height: 123px; display: grid; align-content: start; justify-items: center; max-width: 400px; padding: 11px 0; word-break: keep-all; }
.stage-position { font-size: .8125rem; color: var(--green); font-weight: 700; }
.stage-copy h3 { margin: 3px 0 4px; font-size: 1.15rem; }
.stage-copy p:last-child { color: var(--muted); font-size: .9375rem; }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 12px; }
.player-controls > .text-button { min-width: 54px; }
.player-end { padding: 13px 11px; border-radius: 12px; background: #edf4eb; text-align: center; }
.player-end .form-actions { justify-content: center; margin-top: 7px; gap: 6px; }
.player-complete { text-align: center; padding: 29px 19px; }
.done-icon { width: 55px; aspect-ratio: 1; border-radius: 50%; background: #e3f0e3; color: var(--green); display: inline-grid; place-items: center; }
.done-icon .icon { width: 27px; height: 27px; }
.done-close { position: absolute; top: 13px; right: 13px; }
.player-complete h2, .confirm-dialog h2 { font: 740 1.46rem/1.4 var(--serif); margin-block: 9px 7px; }
.player-complete p + p { margin-block: 5px; }
.done-actions { justify-content: center; margin-top: 16px; }
.confirm-dialog { width: min(420px, calc(100% - 30px)); }
.confirm-dialog p { color: var(--muted); }
.confirm-dialog .form-actions { justify-content: flex-end; margin-top: 16px; }
.toast { position: fixed; bottom: 20px; left: calc(50% + var(--sidebar) / 2); transform: translate(-50%, 10px); max-width: min(540px, calc(100% - 28px)); z-index: 20; opacity: 0; padding: 11px 16px; border-radius: 13px; background: #1e4537; color: white; font-size: .9375rem; font-weight: 630; pointer-events: none; transition: opacity .18s, transform .18s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1160px) {
  :root { --sidebar: 202px; }
  .workspace { padding-inline: 31px; }
  .sidebar { padding-inline: 15px; }
  .week-range { font-size: .75rem; }
  .home-check, .week-card { padding-inline: 17px; }
  .quick-chips { gap: 6px; }
  .quick-chips .chip { padding-inline: 9px; }
}

@media (max-width: 920px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .mobile-top { display: flex; align-items: center; min-height: 65px; padding: 9px 20px; background: #fcfdfb; border-bottom: 1px solid var(--border); }
  .mobile-top .brand { margin: 0; }
  .mobile-top .brand img { width: 37px; height: 37px; }
  .mobile-top .brand small { font-size: .72rem; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; position: fixed; inset: auto 0 0; padding: 5px 7px calc(5px + env(safe-area-inset-bottom, 0px)); z-index: 5; border-top: 1px solid var(--border); background: #fcfdfb; }
  .mobile-nav a { justify-content: center; flex-direction: column; min-height: 52px; border-radius: 10px; gap: 2px; font-size: .75rem; white-space: nowrap; }
  .mobile-nav .icon { width: 18px; height: 18px; }
  .workspace { min-height: calc(100dvh - 65px); padding: 28px 25px calc(86px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 660px) {
  .workspace { padding: 20px 15px calc(82px + env(safe-area-inset-bottom, 0px)); }
  .mobile-top { padding-inline: 16px; }
  .page-header { flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .page-header h1 { font-size: 1.99rem; }
  .page-header p { margin-top: 5px; font-size: .9375rem; }
  .date-pill { padding: 5px 9px; font-size: .8125rem; }
  .date-pill .icon { width: 15px; height: 15px; }
  .hero { min-height: 253px; border-radius: 17px; }
  .hero::after { background: linear-gradient(93deg, #112f28ed, #16392cc0 56%, #20443658); }
  .hero-image { object-position: 58% 55%; }
  .hero-content { padding: 23px 17px; }
  .hero h2 { font-size: 1.85rem; }
  .hero p { margin-top: 6px; font-size: .9375rem; }
  .hero-actions { gap: 9px 12px; margin-top: 17px; }
  .hero-actions .button { padding-inline: 11px; }
  .home-grid, .practice-grid, .records-grid, .guide-grid, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .home-grid { margin-top: 13px; }
  .card { border-radius: 16px; }
  .home-check, .week-card { padding: 16px; }
  .card-heading h2 { font-size: 1.125rem; }
  .card-prompt { margin-top: 10px; }
  .icon-box { width: 36px; height: 36px; flex-basis: 36px; }
  .quick-chips .chip { min-height: 40px; padding-inline: 9px; }
  .home-check-button { margin-top: 13px; }
  .question-card { margin-top: 13px; padding: 13px; gap: 8px 11px; flex-wrap: wrap; }
  .question-card > div { flex-basis: calc(100% - 50px); }
  .question-card .button { margin-left: 47px; }
  .practice-content, .topics-card, .form-card, .calendar-card, .day-card { padding: 16px; }
  .practice-photo { height: 96px; }
  .disclosure summary { padding: 13px 14px; }
  .disclosure-body { padding: 14px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .field-note { font-size: .875rem; }
  .day-card { scroll-margin-top: 11px; }
  .storage-card { margin-top: 13px; padding: 14px; }
  .storage-card div:nth-child(2) { flex-basis: calc(100% - 49px); }
  .backup-actions { margin-left: 48px; }
  .guide-card, .about-card { padding: 16px; }
  .site-footer { margin-top: 24px; }
}

@media (max-width: 360px) {
  .quick-chips .chip { padding-inline: 7px; }
  .quick-chips .chip .icon { width: 14px; height: 14px; }
  .calendar-grid { gap: 1px; }
  .guide-tabs button { padding-inline: 6px; font-size: .875rem; }
  .button { padding-inline: 11px; }
}

@media (max-width: 420px) {
  .quick-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; width: 100%; }
  .quick-chips .chip { flex-direction: column; gap: 2px; min-height: 47px; padding-inline: 2px; font-size: .8125rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
