:root {
  --cream: #f7f1e5;
  --paper: #fffdf8;
  --ink: #302d2a;
  --muted: #746f68;
  --coral: #ed6a5a;
  --coral-dark: #d95547;
  --sage: #668b64;
  --sage-pale: #e7efe1;
  --blue: #527da6;
  --blue-pale: #e5eef6;
  --mustard: #e4ad38;
  --yellow: #fff1a8;
  --line: #ded6c8;
  --shadow: 0 16px 40px rgba(76, 59, 37, .12);
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.paper-noise { position: fixed; inset: 0; pointer-events: none; opacity: .28; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); z-index: 50; mix-blend-mode: multiply; }

.app-shell { width: min(1160px, 100%); min-height: 100svh; margin: 0 auto; padding-bottom: 92px; background: rgba(250,247,239,.86); box-shadow: 0 0 50px rgba(69,52,31,.09); }
.topbar { position: sticky; top: 0; z-index: 20; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px,4vw,38px); border-bottom: 1px solid rgba(182,168,145,.45); background: rgba(255,253,248,.93); backdrop-filter: blur(14px); }
.brand { border: 0; background: transparent; display: flex; align-items: center; gap: 12px; padding: 0; color: var(--ink); text-align: left; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 19px; letter-spacing: .04em; }
.brand small { color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.pencil-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50% 50% 45% 55%; background: var(--coral); color: white; font: 900 26px/1 Georgia,serif; transform: rotate(-8deg); box-shadow: 0 7px 15px rgba(199,73,60,.22); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.prototype-chip { padding: 5px 9px; border: 1px solid #dcccae; border-radius: 999px; color: #8a7144; background: #fff8e6; font-size: 10px; font-weight: 800; }
.round-button { width: 41px; height: 41px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); }

.view { display: none; padding: 30px clamp(18px,4vw,40px); animation: page-in .25s ease-out; }
.view.active { display: block; }
.date-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.date-row > div:first-child > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.date-row h1 { margin: 5px 0 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(24px,4vw,34px); font-weight: 700; letter-spacing: .02em; }
.streak-badge { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.streak-badge > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--sage); color: white; font-size: 13px; }
.streak-badge div { display: grid; }
.streak-badge small { color: var(--muted); font-size: 9px; }
.streak-badge strong { font-size: 14px; }

.notebook-paper { position: relative; background-color: var(--paper); background-image: linear-gradient(#e8e0d3 1px, transparent 1px); background-size: 100% 32px; }
.goal-card { min-height: 330px; padding: 30px 34px 25px; border: 1px solid #d8cdbd; border-radius: 5px 24px 24px 5px; box-shadow: var(--shadow); overflow: visible; }
.goal-card::before, .prompt-sidebar::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 2px solid rgba(237,106,90,.25); }
.tape { position: absolute; z-index: 2; width: 90px; height: 25px; opacity: .82; transform: rotate(-2deg); }
.tape-coral { top: -12px; right: 14%; background: rgba(237,106,90,.35); }
.tape-blue { top: -11px; left: 50%; background: rgba(82,125,166,.28); transform: translateX(-50%) rotate(2deg); }
.tape-sage { top: -11px; left: 45%; background: rgba(102,139,100,.32); transform: rotate(-3deg); }
.goal-header { display: flex; justify-content: space-between; align-items: center; margin-left: 14px; }
.ribbon { display: inline-flex; padding: 8px 18px 8px 13px; color: white; background: var(--sage); font-size: 13px; font-weight: 900; clip-path: polygon(0 0,100% 0,90% 50%,100% 100%,0 100%); }
.today-stamp { padding: 6px 10px; border: 2px solid var(--coral); border-radius: 5px; color: var(--coral); font: 900 11px/1 Georgia,serif; letter-spacing: .1em; transform: rotate(3deg); }
.eyebrow { margin: 0; color: var(--coral); font: 900 10px/1.3 system-ui,sans-serif; letter-spacing: .14em; }
.goal-card > .eyebrow { margin: 34px 0 8px 14px; }
.goal-card h2 { max-width: 760px; margin: 0 0 18px 14px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(22px,4vw,32px); line-height: 1.55; }
.prompt-points { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 14px; }
.prompt-points span { padding: 7px 11px; border-radius: 999px; background: var(--blue-pale); color: #466b8c; font-size: 11px; font-weight: 800; }
.prompt-points.compact { margin: 12px 0; }
.goal-footer { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 26px; margin: 26px 0 0 14px; padding-top: 16px; border-top: 1px dashed #cfc4b3; }
.word-target, .estimated-time { display: grid; }
.word-target span, .estimated-time span { color: var(--muted); font-size: 9px; }
.word-target strong, .estimated-time strong { font-size: 15px; }
.goal-footer .button { justify-self: end; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 13px; font-weight: 900; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { color: white; background: var(--sage); box-shadow: 0 7px 16px rgba(72,111,71,.18); }
.button-primary:hover { background: #557b54; }
.button-coral { color: white; background: var(--coral); box-shadow: 0 7px 16px rgba(205,76,61,.18); }
.button-coral:hover { background: var(--coral-dark); }
.button-outline { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button-danger-outline { border-color: #e4b9b4; background: transparent; color: #bc5248; }
.button-wide { width: 100%; }
.text-link { border: 0; padding: 0; background: transparent; color: var(--coral); font-weight: 900; }
.text-link.centered { display: block; margin: 12px auto 0; text-decoration: underline; text-underline-offset: 4px; }

.home-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin-top: 22px; }
.progress-card, .coach-note, .editor-card, .feedback-card, .good-card, .checked-essay-card, .growth-overview, .growth-details, .week-grid-card, .settings-card { border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: 0 8px 25px rgba(70,54,34,.07); }
.progress-card { padding: 22px; }
.section-title { display: flex; align-items: center; gap: 11px; }
.section-title h2, .section-title p { margin: 0; }
.section-title h2 { font-size: 17px; }
.section-title p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.icon-swatch { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 13px; font-weight: 900; }
.icon-swatch.sage { color: var(--sage); background: var(--sage-pale); }
.icon-swatch.coral { color: var(--coral); background: #fce5e0; }
.icon-swatch.blue { color: var(--blue); background: var(--blue-pale); }
.score-summary { display: grid; grid-template-columns: 105px 1fr; gap: 20px; align-items: center; margin-top: 18px; }
.score-circle { display: grid; place-content: center; justify-items: center; width: 102px; height: 102px; border: 9px solid var(--sage-pale); border-top-color: var(--sage); border-radius: 50%; }
.score-circle strong { font: 800 30px/1 Georgia,serif; }
.score-circle span { color: var(--muted); font-size: 9px; }
.mini-bars { display: grid; gap: 8px; }
.metric-row { display: grid; grid-template-columns: 45px 1fr 20px; gap: 8px; align-items: center; font-size: 10px; }
.metric-row .bar, .growth-row .bar { height: 7px; overflow: hidden; border-radius: 999px; background: #ece6dc; }
.metric-row .bar i, .growth-row .bar i { display: block; height: 100%; border-radius: inherit; background: var(--sage); }
.sticky-note { position: relative; padding: 26px; background: #fff2aa; border-color: #ead783; transform: rotate(.4deg); }
.paperclip { position: absolute; top: -12px; right: 28px; color: #718197; font: 800 42px/1 sans-serif; transform: rotate(8deg); }
.coach-note h2 { margin: 15px 0 7px; font-family: "Yu Mincho",serif; font-size: 20px; }
.coach-note > p:not(.eyebrow) { margin: 0 0 16px; color: #645e50; font-size: 12px; line-height: 1.8; }

.back-link { border: 0; margin-bottom: 18px; padding: 6px 0; background: transparent; color: var(--sage); font-weight: 900; }
.writing-layout { display: grid; grid-template-columns: minmax(250px,.68fr) minmax(0,1.4fr); gap: 22px; }
.prompt-sidebar { position: relative; align-self: start; min-height: 500px; padding: 30px 27px 25px 40px; border: 1px solid #d8cdbd; border-radius: 5px 20px 20px 5px; box-shadow: var(--shadow); }
.prompt-sidebar > .eyebrow { margin-top: 27px; }
.prompt-sidebar h1 { margin: 8px 0 16px; font-family: "Yu Mincho",serif; font-size: 22px; line-height: 1.65; }
.writing-hints { margin-top: 25px; padding: 15px; border: 1px dashed #b9ad9a; border-radius: 12px; background: rgba(255,255,255,.65); }
.writing-hints strong { font-size: 12px; }
.writing-hints ol { margin: 10px 0 0; padding-left: 22px; color: var(--muted); font-size: 11px; line-height: 2; }
.editor-card { padding: 24px; }
.editor-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.editor-toolbar > div:first-child { display: flex; align-items: center; gap: 9px; }
.attempt-badge { padding: 5px 8px; border-radius: 7px; background: var(--coral); color: white; font-size: 10px; font-weight: 900; }
.word-counter { display: flex; align-items: baseline; gap: 4px; color: var(--muted); }
.word-counter strong { color: var(--ink); font: 800 26px/1 Georgia,serif; }
.word-counter span { font-size: 10px; }
.word-counter.in-range strong { color: var(--sage); }
.word-counter.over strong { color: var(--coral); }
.lined-editor { border: 1px solid #d8cdbd; border-radius: 4px 15px 15px 4px; background-color: #fffefb; background-image: linear-gradient(#e2ddd4 1px, transparent 1px); background-size: 100% 35px; box-shadow: inset 35px 0 rgba(237,106,90,.06); }
.lined-editor textarea { width: 100%; min-height: 400px; resize: vertical; border: 0; padding: 18px 22px 18px 48px; outline: 0; background: transparent; color: #2d3540; font: 17px/35px Georgia,serif; }
.editor-help { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.quiet-button { border: 0; background: transparent; color: var(--coral); font-weight: 800; }

.result-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.result-heading h1 { margin: 6px 0 0; font-family: "Yu Mincho",serif; font-size: clamp(25px,4vw,34px); }
.total-stamp { display: grid; place-content: center; justify-items: center; width: 92px; height: 92px; border: 4px double var(--coral); border-radius: 50%; color: var(--coral); transform: rotate(3deg); }
.total-stamp strong { font: 900 34px/1 Georgia,serif; }
.total-stamp span { font-size: 10px; }
.improvement-banner { margin-bottom: 18px; padding: 14px 18px; border: 1px solid #bad3b4; border-radius: 15px; background: var(--sage-pale); color: #486b47; font-weight: 800; }
.hidden { display: none !important; }
.rubric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.rubric-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.rubric-card::after { content: ""; position: absolute; right: -16px; bottom: -24px; width: 65px; height: 65px; border: 9px solid var(--card-color); border-radius: 50%; opacity: .1; }
.rubric-card span { color: var(--muted); font-size: 10px; font-weight: 800; }
.rubric-card strong { display: block; margin-top: 7px; color: var(--card-color); font: 900 28px/1 Georgia,serif; }
.rubric-card em { font-size: 10px; font-style: normal; }
.result-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 18px; }
.feedback-card, .good-card, .checked-essay-card { padding: 22px; }
.feedback-list { display: grid; gap: 10px; margin-top: 17px; }
.feedback-item { display: grid; grid-template-columns: 29px 1fr; gap: 11px; padding: 13px; border-radius: 13px; background: #faf6ef; }
.feedback-item > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--coral); color: white; font-size: 11px; font-weight: 900; }
.feedback-item strong { font-size: 12px; }
.feedback-item p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.good-card ul { display: grid; gap: 12px; margin: 17px 0 0; padding: 0; list-style: none; }
.good-card li { position: relative; padding-left: 22px; font-size: 11px; line-height: 1.6; }
.good-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 900; }
.checked-essay-card { margin-top: 18px; }
.checked-essay-card > p { margin: 18px 0 0; padding: 18px; border-left: 3px solid var(--blue); background: #f5f8fb; font: 15px/1.9 Georgia,serif; white-space: pre-wrap; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin: 23px 0; }
.model-answer { position: relative; max-width: 780px; margin: 30px auto 0; padding: 30px; border: 1px solid #c9d5c1; border-radius: 5px 20px 20px 5px; background: var(--paper); box-shadow: var(--shadow); }
.model-answer h2 { margin: 7px 0 13px; font-family: "Yu Mincho",serif; }
.model-answer > p:last-of-type { font: 16px/1.9 Georgia,serif; }
.model-answer small { color: var(--muted); font-size: 10px; }

.subpage-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.subpage-heading h1 { margin: 4px 0; font-family: "Yu Mincho",serif; font-size: 30px; }
.subpage-heading > div > span { color: var(--muted); font-size: 11px; }
.empty-card { display: grid; justify-items: center; padding: 65px 20px; border: 1px dashed #c8baa5; border-radius: 20px; text-align: center; background: rgba(255,253,248,.65); }
.empty-card > span { color: var(--coral); font: 800 45px/1 Georgia,serif; }
.empty-card h2 { margin: 16px 0 6px; font-family: "Yu Mincho",serif; }
.empty-card p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.notebook-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.notebook-entry { position: relative; padding: 22px 22px 18px 33px; border: 1px solid #d7cdbf; border-radius: 4px 18px 18px 4px; background-color: var(--paper); background-image: linear-gradient(#ebe4d9 1px, transparent 1px); background-size: 100% 29px; box-shadow: 0 8px 22px rgba(70,54,34,.07); }
.notebook-entry::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; border-left: 2px solid rgba(237,106,90,.2); }
.entry-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.entry-top strong { color: var(--sage); }
.notebook-entry h2 { margin: 18px 0 12px; font-family: "Yu Mincho",serif; font-size: 17px; line-height: 1.5; }
.entry-score { display: flex; gap: 5px; }
.entry-score span { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--coral); border-radius: 50%; color: var(--coral); font: 900 12px/1 Georgia,serif; }
.notebook-entry p { display: -webkit-box; overflow: hidden; margin: 15px 0; color: #4e4a45; font: 12px/1.75 Georgia,serif; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.entry-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #cfc5b6; padding-top: 12px; }
.entry-footer small { color: var(--muted); font-size: 9px; }
.entry-footer button { border: 0; background: transparent; color: var(--coral); font-size: 10px; font-weight: 900; }

.growth-overview { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; padding: 28px; }
.large-score-ring { --score-angle: 0deg; display: grid; place-items: center; width: 138px; height: 138px; border-radius: 50%; background: conic-gradient(var(--sage) var(--score-angle), var(--sage-pale) 0); }
.large-score-ring::before { content: ""; grid-area: 1/1; width: 103px; height: 103px; border-radius: 50%; background: var(--paper); }
.large-score-ring strong, .large-score-ring span { z-index: 1; grid-area: 1/1; }
.large-score-ring strong { margin-top: -13px; font: 900 35px/1 Georgia,serif; }
.large-score-ring span { margin-top: 30px; color: var(--muted); font-size: 9px; }
.growth-overview h2 { margin: 10px 0 7px; font-family: "Yu Mincho",serif; font-size: 24px; }
.growth-overview > div:last-child > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.growth-details, .week-grid-card { margin-top: 18px; padding: 24px; }
.growth-details h2, .week-grid-card h2 { margin: 0 0 20px; font-size: 17px; }
.growth-row { display: grid; grid-template-columns: 65px 1fr 32px; align-items: center; gap: 12px; margin-top: 15px; font-size: 11px; }
.growth-row strong { font-size: 12px; }
.week-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; }
.week-day { display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.week-day span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: #f8f4ec; }
.week-day span.done { border-color: var(--sage); background: var(--sage); color: white; }
.settings-card { display: grid; gap: 11px; max-width: 620px; padding: 26px; }
.field-label { margin-top: 8px; color: #5f5951; font-size: 11px; font-weight: 900; }
.form-control { width: 100%; height: 49px; padding: 0 14px; border: 1px solid #cfc4b3; border-radius: 12px; outline: none; background: var(--paper); color: var(--ink); font-weight: 700; }
.form-control:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(102,139,100,.1); }
.prototype-notice { max-width: 620px; margin: 16px 0; padding: 16px; border-left: 4px solid var(--mustard); border-radius: 4px 13px 13px 4px; background: #fff6d4; }
.prototype-notice strong { font-size: 12px; }
.prototype-notice p { margin: 4px 0 0; color: #706650; font-size: 10px; line-height: 1.7; }
#resetDataButton { max-width: 620px; }

.bottom-nav { position: fixed; z-index: 30; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(4,1fr); width: min(1160px,100%); min-height: 75px; padding: 7px 12px max(7px,env(safe-area-inset-bottom)); border-top: 1px solid rgba(182,168,145,.5); background: rgba(255,253,248,.96); transform: translateX(-50%); backdrop-filter: blur(15px); }
.bottom-nav button { position: relative; display: grid; place-content: center; justify-items: center; gap: 4px; border: 0; border-radius: 12px; background: transparent; color: #837b71; }
.bottom-nav button > span { font: 800 21px/1 Georgia,serif; }
.bottom-nav button small { font-size: 9px; font-weight: 900; }
.bottom-nav button.active { color: var(--coral); }
.bottom-nav button.active::before { content: ""; position: absolute; top: -7px; width: 38px; height: 3px; border-radius: 999px; background: var(--coral); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(60,51,39,.42); backdrop-filter: blur(7px); }
.modal-backdrop.closed { display: none; }
.setup-card { position: relative; width: min(500px,100%); padding: 38px; border: 1px solid #d3c4ae; border-radius: 6px 26px 26px 6px; background-color: var(--paper); background-image: linear-gradient(#e8e0d3 1px,transparent 1px); background-size: 100% 31px; box-shadow: 0 25px 70px rgba(50,37,22,.23); }
.setup-card::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; border-left: 2px solid rgba(237,106,90,.25); }
.setup-mascot { position: absolute; top: -30px; right: 25px; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 44% 56% 48% 52%; background: var(--yellow); font-size: 38px; transform: rotate(7deg); box-shadow: 0 10px 25px rgba(86,66,35,.16); }
.step-label { display: inline-flex; margin-left: 8px; padding: 6px 10px; border-radius: 999px; background: var(--sage-pale); color: var(--sage); font-size: 10px; font-weight: 900; }
.setup-card h1 { margin: 18px 0 8px 8px; font-family: "Yu Mincho",serif; font-size: 29px; line-height: 1.5; }
.setup-card > p { margin: 0 0 20px 8px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.setup-card .field-label { margin-left: 8px; }
.setup-card .form-control { margin: 7px 0 9px 8px; width: calc(100% - 8px); }
.setup-card .button { margin: 19px 0 0 8px; width: calc(100% - 8px); }
.setup-card > small { display: block; margin: 10px 0 0 8px; text-align: center; color: #918a80; font-size: 9px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 94px; padding: 11px 17px; border-radius: 999px; background: #302d2a; color: white; font-size: 11px; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%,15px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 760px) {
  .topbar { height: 69px; }
  .brand small { display: none; }
  .view { padding-top: 21px; }
  .goal-card { padding: 24px 20px 20px 27px; }
  .goal-footer { grid-template-columns: 1fr 1fr; gap: 13px; }
  .goal-footer .button { grid-column: 1/-1; width: 100%; }
  .home-grid, .writing-layout, .result-grid { grid-template-columns: 1fr; }
  .prompt-sidebar { min-height: auto; }
  .rubric-grid { grid-template-columns: repeat(2,1fr); }
  .notebook-list { grid-template-columns: 1fr; }
  .growth-overview { grid-template-columns: 105px 1fr; gap: 18px; padding: 21px; }
  .large-score-ring { width: 100px; height: 100px; }
  .large-score-ring::before { width: 74px; height: 74px; }
  .large-score-ring strong { font-size: 27px; }
  .week-grid { gap: 5px; }
  .week-day span { width: 31px; height: 31px; }
}
@media (max-width: 480px) {
  .date-row { align-items: center; }
  .date-row h1 { font-size: 22px; }
  .streak-badge small { display: none; }
  .goal-card h2 { font-size: 21px; }
  .score-summary { grid-template-columns: 86px 1fr; gap: 13px; }
  .score-circle { width: 84px; height: 84px; border-width: 7px; }
  .score-circle strong { font-size: 25px; }
  .editor-card { padding: 16px; }
  .lined-editor textarea { min-height: 340px; padding-left: 35px; font-size: 16px; }
  .result-heading { align-items: flex-start; }
  .total-stamp { width: 76px; height: 76px; }
  .total-stamp strong { font-size: 28px; }
  .result-actions .button { width: 100%; }
  .setup-card { padding: 32px 24px 26px 30px; }
  .setup-card h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
@keyframes page-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
