:root {
  color-scheme: light;
  --ink: #242b28;
  --muted: #78837c;
  --green: #264d3c;
  --green-deep: #193d30;
  --sage: #6d8873;
  --line: #e6ebe6;
  --surface: #f7f9f6;
  --soft: #f1f5f0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { width: 100%; max-width: 520px; min-height: 100vh; margin: 0 auto; background: #fff; position: relative; }
.site-header { min-height: 129px; padding: calc(32px + env(safe-area-inset-top)) 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; position: relative; overflow: hidden; }
.header-titles, .profile-avatar { position: relative; z-index: 1; }
.month-label, .eyebrow { margin: 0; color: var(--sage); font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .18em; line-height: 1.4; }
.month-label { margin-bottom: 3px; letter-spacing: .22em; }
.brand-name { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 700; letter-spacing: -.065em; line-height: 1.2; }
.brand-dot, .title-dot { color: var(--sage); }
.header-botanical { position: absolute; width: 164px; height: 135px; right: 3px; top: -14px; fill: none; stroke: var(--green); stroke-width: 1.2; opacity: .21; pointer-events: none; }
.header-botanical path { fill: none; }
.profile-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: #eff4ef; border: 1px solid #dce5dd; flex: none; }
.profile-avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
main { padding: 0 24px calc(118px + env(safe-area-inset-bottom)); }
.screen { animation: reveal .22s ease-out; }
@keyframes reveal { from { opacity: .5; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.home-intro { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 25px; }
.demo-tag { padding: 5px 9px; color: var(--sage); border: 1px solid var(--line); border-radius: 99px; font: 700 9px Arial, sans-serif; letter-spacing: .13em; }
.balance-section h1 { font-size: 15px; font-weight: 600; letter-spacing: -.04em; margin: 0 0 2px; }
.hero-amount { margin: 0 0 27px; font: 600 clamp(43px, 11vw, 58px)/1.2 Arial, sans-serif; letter-spacing: -.075em; color: var(--ink); white-space: nowrap; }
.progress-track { display: block; width: 100%; min-width: 0; height: 8px; border-radius: 99px; background: #e9eee8; overflow: hidden; }
.progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }
.budget-track { height: 9px; }
.budget-meta, .budget-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.budget-meta { margin-top: 12px; color: var(--muted); font-family: Arial, sans-serif; font-size: 13px; }
.budget-meta strong { color: var(--ink); font-weight: 700; }
.budget-meta > span:last-child { color: var(--green); font-weight: 700; }
.budget-caption { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.budget-caption strong { color: var(--ink); font-family: Arial, sans-serif; font-size: 13px; }
.daily-card { min-height: 99px; padding: 20px; margin-top: 25px; border-radius: 20px; background: var(--green-deep); color: #fff; display: flex; align-items: center; gap: 15px; position: relative; overflow: hidden; }
.daily-card::after { content: ""; width: 116px; height: 116px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; position: absolute; right: -35px; bottom: -65px; box-shadow: 0 0 0 27px var(--green-deep), 0 0 0 28px rgba(255,255,255,.1); pointer-events: none; }
.daily-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #d6e7d8; background: #345a46; flex: none; }
.daily-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.daily-card p { margin: 0 0 4px; color: #c7dacb; font-size: 11px; }
.daily-card strong { font-family: Arial, sans-serif; font-size: 25px; letter-spacing: -.04em; }
.daily-note { margin-left: auto; align-self: flex-start; position: relative; z-index: 1; color: #c7dacb; font-size: 10px; white-space: nowrap; }
.home-section { margin-top: 39px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title-row .eyebrow { margin-bottom: 6px; }
h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.045em; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-action { min-width: 0; min-height: 104px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(28,54,38,.025); text-align: left; font-size: 12px; font-weight: 700; }
.quick-action:hover, .goal-card:hover, .home-goal:hover { border-color: #aac2af; background: #fcfdfb; }
.quick-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.quick-icon.green { background: var(--green); color: #fff; }
.quick-icon.outline { background: var(--soft); color: var(--green); }
.quick-icon svg, .quick-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.quick-arrow { position: absolute; bottom: 17px; right: 17px; width: 16px; height: 16px; color: var(--sage); }
.text-link { border: 0; background: transparent; padding: 5px 0; color: var(--green); white-space: nowrap; font-size: 11px; font-weight: 700; }
.text-link span { font-size: 15px; padding-left: 3px; }
.home-goal-list { display: grid; gap: 10px; }
.home-goal { display: block; width: 100%; min-width: 0; padding: 16px 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; text-align: left; color: var(--ink); }
.goal-top, .goal-values { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-top { margin-bottom: 12px; }
.goal-name { min-width: 0; flex: 1; overflow-wrap: anywhere; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.goal-chevron { color: var(--sage); font-size: 18px; line-height: 1; }
.goal-values { flex-wrap: wrap; color: var(--muted); font-family: Arial, sans-serif; font-size: 11px; margin-top: 10px; }
.goal-values strong { color: var(--ink); font-size: 13px; }
.goal-track { height: 6px; }
.goal-percent { margin-left: auto; flex: none; color: var(--green); font: 700 12px Arial, sans-serif; white-space: nowrap; }
.goal-deadline { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.suggestion-section { margin-bottom: 3px; }
.suggestion-card { display: flex; gap: 14px; padding: 18px; border: 1px solid #e4ece4; border-radius: 18px; background: var(--surface); }
.suggestion-leaf { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: #e9f0e8; flex: none; }
.suggestion-leaf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.suggestion-kicker { margin: 1px 0 4px; font-size: 11px; font-weight: 700; color: var(--green); }
.suggestion-card p:last-child { margin: 0; color: #5f6c62; font-size: 12px; line-height: 1.7; }

.screen-heading { padding: 25px 0 27px; }
.screen-heading .eyebrow { margin-bottom: 7px; }
.screen-heading h1, .detail-heading h1 { margin: 0; font: 700 37px/1.18 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.screen-heading > p:last-child, .detail-heading > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.small-stat { display: flex; flex-direction: column; gap: 7px; padding: 22px; border-radius: 19px; background: var(--green-deep); color: #d5e4d6; font-size: 11px; }
.small-stat strong { color: #fff; font: 600 33px Arial, sans-serif; letter-spacing: -.05em; }
.small-stat-caption { color: #abc6b2; }
.form-section, .history-section, .category-section, .breakdown-section { margin-top: 34px; }
form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.required, .optional { color: var(--muted); font-size: 10px; font-weight: 400; margin-left: 3px; }
.field input, .field select, .field textarea { width: 100%; height: 48px; border: 1px solid #dfe6df; border-radius: 12px; padding: 0 13px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 400; }
.field textarea { min-height: 88px; height: auto; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.field input::placeholder { color: #a4afa5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%236d8873' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.field select:invalid { color: #a4afa5; }
.amount-input-wrap { display: flex; align-items: center; height: 58px; border: 1px solid #dfe6df; border-radius: 13px; padding-left: 15px; font: 600 22px Arial, sans-serif; color: var(--green); }
.amount-input-wrap:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.amount-input-wrap input { height: 100%; border: 0; outline: none; font: 600 22px Arial, sans-serif; padding-left: 7px; }
.amount-input-wrap input:focus-visible { outline: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.primary-button { width: 100%; height: 52px; margin-top: 3px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 13px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; }
.primary-button:hover { background: var(--green-deep); }
.primary-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.form-note { margin: -7px 0 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.5; }
.transaction-list { border-top: 1px solid var(--line); }
.transaction-row { display: flex; align-items: center; gap: 13px; padding: 14px 1px; border-bottom: 1px solid var(--line); }
.transaction-icon { width: 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; color: var(--green); background: var(--soft); flex: none; font: 700 14px Georgia, serif; }
.transaction-info { min-width: 0; flex: 1; }
.transaction-info strong, .transaction-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-info strong { font-size: 12px; }
.transaction-info span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.transaction-amount { font: 700 13px Arial, sans-serif; white-space: nowrap; }

.goals-summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 19px; margin: 0 0 15px; border-radius: 15px; background: var(--soft); color: var(--green); font-size: 12px; font-weight: 700; }
.goals-summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.goal-card-list { display: grid; gap: 13px; }
.goal-card { display: block; width: 100%; min-width: 0; padding: 18px 19px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; color: var(--ink); box-shadow: 0 4px 16px rgba(28,54,38,.025); }
.goal-card .goal-top { margin-bottom: 12px; }
.goal-card .goal-name { font-size: 15px; }
.goal-description { display: block; margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.goal-card .goal-values { margin: 11px 0 0; }
.goal-card .goal-values strong { font-size: 15px; }
.goal-card .progress-track { height: 6px; }
.goal-header-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.goal-header-actions .screen-heading { flex: 1; min-width: 0; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--green); flex: none; font-size: 25px; line-height: 1; }
.icon-button:hover { border-color: #aac2af; background: var(--surface); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.back-button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--green); padding: 22px 0 17px; font-size: 12px; font-weight: 700; }
.back-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.detail-heading { padding: 12px 0 26px; }
.detail-heading .eyebrow { margin-bottom: 7px; }
.detail-heading h1, .detail-heading > p:last-child { overflow-wrap: anywhere; }
.detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin: 0 0 15px; }
.edit-button { min-height: 37px; padding: 0 14px; border: 1px solid #cbdccc; border-radius: 10px; background: #fff; color: var(--green); font-size: 11px; font-weight: 700; }
.edit-button:hover { background: var(--surface); }
.detail-hero { padding: 23px; border-radius: 19px; color: #fff; background: var(--green-deep); }
.detail-hero > div:first-child { display: grid; gap: 7px; }
.detail-hero span { color: #c3d6c7; font-size: 11px; }
.detail-hero strong { font-family: Arial, sans-serif; font-weight: 700; }
.detail-hero > div:first-child strong { font-size: 35px; letter-spacing: -.05em; }
.detail-goal-line, .detail-progress-caption { display: flex; justify-content: space-between; gap: 10px; }
.detail-goal-line { margin: 20px 0 15px; }
.detail-goal-line strong { font-size: 13px; }
.detail-track { background: #496b56; }
.detail-track > span { background: #b7d5bd; }
.detail-progress-caption { margin-top: 10px; }
.detail-progress-caption span:first-child { color: #fff; font-weight: 700; }
.breakdown-row { padding: 15px 0; border-bottom: 1px solid var(--line); }
.breakdown-labels { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 12px; }
.breakdown-labels > span { min-width: 0; overflow-wrap: anywhere; }
.breakdown-labels strong { font-family: Arial, sans-serif; font-size: 12px; }
.breakdown-track { height: 4px; background: #edf1ec; }
.breakdown-track > span { background: var(--sage); }
.breakdown-add { border: 0; background: transparent; color: var(--green); padding: 6px 0 6px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.breakdown-add:hover { text-decoration: underline; }
.breakdown-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; color: var(--muted); font: 11px/1.5 Arial, sans-serif; }
.breakdown-meta strong { color: var(--ink); font-weight: 700; }
.breakdown-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 9px; }
.breakdown-edit { border: 0; background: transparent; color: var(--green); padding: 4px 0 4px 10px; font-size: 11px; font-weight: 700; }
.breakdown-edit:hover { text-decoration: underline; }
.breakdown-actions .danger-button { min-height: 0; border: 0; background: transparent; padding: 4px 0 4px 10px; font-size: 11px; }

.analysis-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 185px; padding: 23px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.analysis-summary .eyebrow { font-size: 9px; margin-bottom: 8px; }
.analysis-summary h2 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.analysis-summary strong { display: block; font: 600 clamp(27px, 7vw, 37px) Arial, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.analysis-summary > div:first-child > span { display: block; margin-top: 10px; color: var(--green); font-size: 11px; font-weight: 700; }
.donut-chart { width: 114px; height: 114px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--green) 0 36%, #5c7e66 36% 54%, #8fa895 54% 69%, #b3c2b4 69% 81%, #d5dfd4 81% 100%); transform: rotate(-90deg); }
.donut-chart span { width: 72px; height: 72px; border-radius: 50%; background: var(--surface); }
.category-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.category-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; font-size: 12px; }
.category-name { display: flex; align-items: center; gap: 8px; }
.category-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.category-label strong { font: 700 12px Arial, sans-serif; }
.category-track { height: 5px; }
.category-track > span { background: var(--category-color); }
.analysis-tip { display: flex; gap: 14px; padding: 20px; margin-top: 34px; border-radius: 18px; border: 1px solid #e4ece4; background: var(--surface); }
.analysis-tip .eyebrow { font-size: 9px; margin: 2px 0 5px; }
.analysis-tip h2 { font-size: 15px; }
.analysis-tip p:last-child { margin: 9px 0 0; color: #5f6c62; font-size: 12px; line-height: 1.7; }

/* A restrained botanical accent for an actionable savings suggestion. */
.growth-card, .analysis-suggestion-card { position: relative; overflow: hidden; border: 1px solid #dfe9df; border-radius: 18px; background: #f8faf7; box-shadow: 0 4px 16px rgba(28,54,38,.02); }
.growth-card { padding: 20px; }
.growth-card::after, .analysis-suggestion-card::after { content: ""; position: absolute; width: 63px; height: 108px; right: -16px; top: -35px; border: 1px solid rgba(38,77,60,.12); border-radius: 0 100% 0 100%; transform: rotate(-24deg); pointer-events: none; }
.growth-card > *, .analysis-suggestion-card > * { position: relative; z-index: 1; }
.growth-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.growth-card-head .suggestion-leaf { width: 30px; height: 30px; }
.growth-card-head .suggestion-leaf svg { width: 16px; height: 16px; }
.growth-eyebrow { margin: 0 0 7px; color: var(--green); font: 700 10px/1.4 Arial, sans-serif; letter-spacing: .16em; }
.growth-card h2, .growth-card h3, .analysis-suggestion-card h2 { margin: 0 0 9px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.growth-card p, .analysis-suggestion-card p { margin: 0; color: #526358; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.growth-card .growth-description, .analysis-suggestion-card .growth-description { margin: 0 0 13px; color: #526358; }
.growth-amount { margin: 12px 0; color: var(--green); font: 700 17px/1.3 Arial, sans-serif; letter-spacing: -.025em; }
.growth-footer { display: grid; gap: 11px; margin-top: 14px; }
.growth-goal { display: block; color: var(--green); font: 700 14px/1.4 Arial, sans-serif; overflow-wrap: anywhere; }
.growth-button { min-height: 42px; width: 100%; margin-top: 3px; padding: 9px 14px; border: 1px solid var(--green); border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.growth-button:hover { background: var(--green-deep); }
.growth-button:disabled { opacity: .55; cursor: default; }
.analysis-suggestion-card { padding: 20px; margin-top: 30px; }
.analysis-suggestion-card .growth-amount { margin-bottom: 4px; }
.analysis-suggestion-card .growth-goal { margin: 12px 0 10px; }

.editor-dialog { position: fixed; inset: 0; width: calc(100% - 28px); max-width: 480px; max-height: 90vh; max-height: min(90dvh, 740px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 18px 70px rgba(22,44,30,.18); overflow-y: auto; overscroll-behavior: contain; }
.editor-dialog::backdrop { background: rgba(25,45,33,.35); }
.dialog-panel { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-header h2 { font: 700 24px/1.25 Georgia, "Times New Roman", serif; }
.dialog-header .eyebrow { margin-bottom: 6px; }
.dialog-close { display: grid; place-items: center; width: 33px; height: 33px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; line-height: 1; }
.dialog-close:hover { background: var(--surface); }
.dialog-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.dialog-actions .primary-button { flex: 1; margin-top: 0; }
.checkbox-row { display: flex; align-items: center; gap: 11px; min-height: 44px; color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.checkbox-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.danger-button { min-height: 42px; padding: 0 15px; border: 1px solid #e5d3d1; border-radius: 11px; background: #fff; color: #9c4e48; font-size: 12px; font-weight: 700; }
.danger-button:hover { background: #fdf7f6; }

.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 11px 8px calc(11px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -7px 22px rgba(31,58,39,.035); }
.nav-item { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #9aa69d; font: 600 10px Arial, sans-serif; }
.nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.is-active { color: var(--green); }
.nav-item.is-active span { font-weight: 700; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(83px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); padding: 12px 17px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.12); text-align: center; font-size: 12px; }

@media (min-width: 680px) {
  .app-shell { border-left: 1px solid #edf0ed; border-right: 1px solid #edf0ed; box-shadow: 0 0 34px rgba(28,54,38,.025); }
  .bottom-nav { border-left: 1px solid #edf0ed; border-right: 1px solid #edf0ed; }
}
@media (max-width: 360px) {
  .site-header { padding-left: 18px; padding-right: 18px; }
  main { padding-left: 18px; padding-right: 18px; }
  .daily-card { padding: 16px; gap: 10px; }
  .daily-note { font-size: 9px; }
  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .field input, .field select { padding-left: 10px; font-size: 11px; }
  .analysis-summary { padding: 18px; }
  .donut-chart { width: 95px; height: 95px; }
  .donut-chart span { width: 61px; height: 61px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen { animation: none; }
  .progress-track > span { transition: none; }
}
