/* Today's actions come first; the calendar and optional tools remain available. */
.today-hub{margin-bottom:32px;min-width:0}
.today-focus{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(210px,1fr);gap:24px;padding:28px;border:1px solid #e2d688;border-radius:var(--radius);background:#fcf5cf}
.today-focus-copy{min-width:0}
.today-focus .eyebrow{font-size:12px;letter-spacing:0;color:#5e5a3f;margin-bottom:12px}
.today-focus h2{font-size:26px;line-height:1.35;letter-spacing:-.8px;margin:0 0 12px;word-break:keep-all}
.today-focus-copy>p:not(.eyebrow){font-size:14px;line-height:1.7;max-width:46ch;color:#5e5a3f}
.today-actions{margin-top:20px}
.today-actions a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.today-budget{border-left:1px solid #d8cb81;padding-left:24px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0}
.today-budget>span{font-size:12px;color:#5e5a3f}
.today-budget>strong{font-size:28px;letter-spacing:-.8px;margin:8px 0;overflow-wrap:anywhere}
.today-budget p{font-size:12px;line-height:1.7;margin:4px 0}
.today-budget small{font-size:11px;line-height:1.6;color:#5e5a3f;max-width:30ch}
.today-budget .text-button{font-size:12px;min-height:44px}
.today-next{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0}
.today-next h3{font-size:16px;line-height:1.5;margin:0 0 6px}
.today-next p{font-size:13px;line-height:1.65;color:var(--muted);max-width:55ch}
.today-next .button{flex-shrink:0}
.today-schedule{padding:20px 24px;border:1px solid var(--line);border-radius:var(--radius);background:white;scroll-margin-top:20px}
.today-schedule h3{font-size:17px}
.today-schedule .card-heading p{font-size:12px;color:var(--muted);line-height:1.6;margin-top:6px}
.today-schedule ul{list-style:none;padding:0;margin:12px 0}
.today-schedule li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.today-schedule li>div:first-child{min-width:0}
.today-schedule-date{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.today-schedule li strong{font-size:14px;overflow-wrap:anywhere;line-height:1.5}
.today-schedule-end{text-align:right;flex-shrink:0}
.today-schedule-end b{display:block;font-size:14px}
.today-schedule-end .text-button{font-size:12px;min-height:44px}
.today-more-schedules>summary{cursor:pointer;min-height:44px;line-height:1.6;padding:12px 0;font-size:13px;font-weight:600}
.spend-preview{background:var(--wash);padding:16px;border-radius:12px;margin:20px 0}
.spend-preview>summary{font-weight:700;cursor:pointer;min-height:44px;display:list-item;line-height:1.6}
.spend-preview .form-field{margin-top:12px}
.spend-preview h3{font-size:17px;line-height:1.5;margin:0 0 8px}
#edit-dialog[open]:has(#money-guidance-form,.guidance-example){display:flex;flex-direction:column;overflow:hidden}
#edit-dialog:has(#money-guidance-form,.guidance-example)>.dialog-header{flex-shrink:0}
#edit-dialog:has(#money-guidance-form,.guidance-example)>#edit-content{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#guidance-inputs>p{margin:12px 0 20px;line-height:1.7}
#guidance-inputs>label{display:flex;align-items:flex-start;gap:10px;margin:20px 0 14px;line-height:1.5}
#guidance-inputs>label input{margin-top:4px;flex:0 0 auto}
#guidance-result{margin-top:0}
#guidance-result .guidance-overview>.eyebrow{font-size:11px;letter-spacing:0;color:var(--muted);margin-top:0}
#money-guidance-form summary{min-height:44px;display:flex;align-items:center;line-height:1.5}
.guidance-example h2{font-size:24px;line-height:1.4;letter-spacing:-.6px;margin:14px 0}
.guidance-example>p{line-height:1.6}
.guidance-sample-label{padding:8px 12px;border-radius:8px;background:var(--accent-soft);font-size:12px;font-weight:600}
.guidance-amounts{margin:18px 0;display:grid;gap:10px;font-size:13px}
.guidance-amounts>div{display:flex;justify-content:space-between;gap:12px}
.guidance-amounts dt{color:var(--muted)}
.guidance-amounts dd{margin:0;font-weight:600}
.guidance-example-basis{margin-top:12px}
.guidance-example-basis>summary{cursor:pointer;min-height:44px;display:list-item;padding:12px 0;font-weight:600}
.guidance-action-footer{flex-shrink:0;padding-top:14px}
.guidance-input-footer{display:none}
.auth-card .auth-money-example{background:var(--accent-soft);color:var(--ink);border:1px solid #d8cb81;margin-bottom:8px}
.auth-example-note{font-size:10px;text-align:center;color:var(--muted);line-height:1.6;margin:0 0 22px}
.spend-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.spend-comparison div{background:white;padding:12px;border-radius:10px;min-width:0}
.spend-comparison span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}
.spend-comparison strong{font-size:18px;overflow-wrap:anywhere}
.spend-comparison small{display:block;font-size:12px;margin-top:8px;line-height:1.6;word-break:keep-all}
.home-review{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.home-review>.card-heading{margin-bottom:16px}
.home-review h2{font-size:20px}
.feature-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.feature-directory .card{margin:0;min-width:0}
.feature-directory h2{font-size:20px;margin:0 0 12px}
.feature-directory button,.feature-directory a{display:block;width:100%;text-align:left;background:transparent;border:0;border-top:1px solid var(--line);padding:16px 0;color:var(--ink);font:inherit;font-weight:600;line-height:1.5;text-decoration:none;cursor:pointer;min-height:48px}
.feature-directory button[hidden]{display:none}
.feature-directory span{display:block;font-size:13px;color:var(--muted);font-weight:400;margin-top:4px}
.feature-directory button:hover,.feature-directory a:hover{background:var(--accent-soft)}
.feature-directory button:focus-visible,.feature-directory a:focus-visible{outline:3px solid var(--ink);outline-offset:4px;border-radius:4px}
#desktop-nav [data-nav=policy]{margin-top:16px;border-top:1px solid var(--line)}
#more-view .card>p{font-size:14px;line-height:1.6;margin-bottom:20px}
.topbar-actions [hidden],.toolbar-actions[hidden]{display:none!important}
@media(max-width:720px){
 .today-hub{margin-bottom:20px}
 .today-focus{grid-template-columns:1fr;gap:14px;padding:20px}
 .today-focus h2{font-size:22px;margin-bottom:8px}
 .today-focus .eyebrow{margin-bottom:10px}
 .today-focus-copy>p:not(.eyebrow){font-size:13px;line-height:1.65}
 .today-budget{border-left:0;border-top:1px solid #d8cb81;padding:16px 0 0}
 .today-budget>strong{font-size:27px}
 .today-actions{margin-top:14px}
 .today-actions .button{width:100%}
 .today-budget p{margin:0;line-height:1.5}
 .today-next{display:block;padding:20px 0}
 .today-next .button{width:100%;margin-top:14px}
 .today-schedule{padding:18px}
 .today-schedule .card-heading{gap:8px;align-items:flex-start}
 .today-schedule-end{max-width:48%;overflow-wrap:anywhere}
 #mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
 #mobile-nav button{min-width:0;min-height:48px;font-size:11px}
 .feature-directory{grid-template-columns:1fr;gap:16px}
 .home-review{margin-top:24px;padding-top:20px}
 .topbar{margin-bottom:16px}
 .month-toolbar{margin-bottom:16px;padding-bottom:16px}
 .toolbar-actions{gap:14px;flex-wrap:wrap}
}
/* Existing shipped achievements use the same neutral surfaces as the ledger. */
.achievements-home{background:var(--paper);border-color:var(--line)}
.achievement-heading p,.achievement-heading h2 span,.achievement-next small,.achievement-state,.achievement-badge p,.achievement-badge small{color:var(--muted)}
.achievement-next,.achievement-badge{border-color:var(--line)}
.achievement-next>span,.achievement-symbol{color:var(--ink)}
.achievement-badge{background:var(--paper)}
.achievement-badge.is-earned{background:var(--accent-soft);border-color:var(--line)}
.achievement-badge progress{accent-color:var(--ink)}
.achievement-badge progress::-webkit-progress-value{background:var(--ink)}
.achievement-badge progress::-webkit-progress-bar{background:var(--wash)}
.achievement-rules{background:var(--wash)}
#policy-situations{border-top:1px solid var(--line);margin-top:20px;padding-top:8px}
#policy-situations>summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:600}

/* Mobile reading and touch layout, on the web and in the native wrapper. */
@media(max-width:720px){
 .auth-preview,.auth-footer{display:none}
 .auth-header{padding:20px 16px 14px}
 .auth-header .brand{font-size:28px}
 .auth-header .text-button{font-size:13px;min-height:44px}
 .auth-frame{padding:8px 16px 24px;min-height:0}
 .auth-card{padding:24px 20px;border-radius:20px}
 .auth-card :is(h1,h2){font-size:26px;line-height:1.4}
 .auth-card .button{min-height:52px;font-size:14px}
 .auth-card-copy{font-size:14px;line-height:1.65}
 .auth-example-note,.auth-google-note,.auth-card-footnote,.auth-form-note,.auth-card .form-help{font-size:12px;line-height:1.6}
 .auth-step-row,.auth-divider{font-size:12px}
 .auth-card .form-field label{font-size:14px}
 .auth-card .form-field input,.auth-card .form-field select{min-height:52px}
 .prototype-bar{padding:0 16px;gap:12px;min-height:44px;font-size:12px;line-height:1.5}
 .session-button{min-height:44px;font-size:13px;flex-shrink:0}
 .main{padding:16px 16px calc(100px + var(--app-safe-bottom))}
 #ledger-shell:has(#home-view:not([hidden])) .mobile-brand{display:none}
 .mobile-brand{font-size:25px;margin-bottom:12px}
 .topbar{gap:12px;margin-bottom:16px}
 .topbar-subtitle{display:none}
 .topbar-actions .button{min-height:48px;font-size:13px;padding:10px 8px;white-space:normal;line-height:1.4}
 .today-focus{padding:18px;gap:14px}
 .today-focus h2{font-size:21px;line-height:1.4}
 .today-focus-copy>p:not(.eyebrow){font-size:14px;line-height:1.6}
 .today-actions .button{min-height:48px;font-size:14px}
 .today-budget{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding-top:14px}
 .today-budget>span{grid-column:1;grid-row:1;font-size:13px}
 .today-budget>strong{grid-column:2;grid-row:1;margin:0;font-size:25px}
 .today-budget>p{grid-column:1/-1;font-size:13px;line-height:1.6}
 .today-budget>small{grid-column:1;grid-row:4;font-size:12px;line-height:1.5;max-width:none}
 .today-budget>.text-button{grid-column:2;grid-row:4;font-size:13px}
 .today-next{padding:16px 0}
 .today-next h3{font-size:18px;line-height:1.4}
 .today-next p{font-size:14px;line-height:1.6}
 .today-next .button{min-height:52px;font-size:14px;background:var(--action);border-color:var(--action);color:var(--paper)}
 .today-schedule .card-heading p,.today-schedule-date{font-size:12px}
 .today-schedule-end .text-button{font-size:13px}
 .toolbar-actions .text-button{min-height:44px;font-size:13px}
 #mobile-nav{height:calc(72px + var(--app-safe-bottom));padding:8px 8px calc(8px + var(--app-safe-bottom));gap:4px;background:var(--paper)}
 #mobile-nav button{min-height:56px;font-size:12px;gap:5px;border-radius:12px}
 #mobile-nav button[aria-current=page]{background:var(--accent-soft)}
 #edit-dialog[open]:has(#money-guidance-form,.guidance-example){inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:calc(100dvh - var(--app-safe-top) - 12px);padding:0;border-radius:24px 24px 0 0;border-bottom:0}
 #edit-dialog:has(#money-guidance-form,.guidance-example)>.dialog-header{position:relative;z-index:2;margin:0;padding:12px 16px;gap:12px;background:white;border-bottom:1px solid var(--line)}
 #edit-dialog:has(#money-guidance-form,.guidance-example)>.dialog-header h2{font-size:19px;line-height:1.4}
 #edit-dialog:has(#money-guidance-form,.guidance-example)>#edit-content{padding:16px 16px calc(24px + var(--app-safe-bottom));scroll-padding:16px}
 #edit-dialog:has(#money-guidance-form,.guidance-example) .form-help{font-size:12px;line-height:1.6}
 #edit-dialog:has(#money-guidance-form,.guidance-example) .form-error{font-size:14px;line-height:1.6}
 #edit-dialog:has(#money-guidance-form,.guidance-example) .form-field label{font-size:14px;line-height:1.5}
 #edit-dialog:has(#money-guidance-form,.guidance-example) .form-field input{min-height:52px;font-size:18px;line-height:1.4;max-width:100%;min-inline-size:0}
 #guidance-date{display:block;width:100%;appearance:none;-webkit-appearance:none}
 #guidance-inputs>p{margin:0 0 14px}
 #money-guidance-form summary,.guidance-example-basis>summary{display:list-item;min-height:48px;padding:12px 0;font-size:14px;line-height:1.6}
 #guidance-inputs>label{min-height:56px;padding:14px 12px;border-radius:12px;background:var(--wash);font-size:14px}
 #guidance-confirm{width:22px;height:22px;accent-color:var(--action)}
 .guidance-action-footer{padding:12px 16px calc(12px + var(--app-safe-bottom));border-top:1px solid var(--line);background:white}
 .guidance-action-footer .button{min-height:52px;font-size:15px}
 .native-app #edit-dialog:has(#money-guidance-form)>.sheet-submit-dock:not([hidden]){padding:12px 16px calc(12px + var(--app-safe-bottom));border-top:1px solid var(--line)}
 .native-app #edit-dialog:has(#money-guidance-form)>.sheet-submit-dock .button{min-height:52px;font-size:15px}
 html:not(.native-app) .guidance-input-footer:not([hidden]){display:block}
 html:not(.native-app) #guidance-inputs>button[type=submit]{display:none}
 #guidance-result{margin:0;padding:0;background:transparent}
 .guidance-overview{padding:18px;border-radius:16px;background:var(--accent-soft)}
 #guidance-result .guidance-overview>.eyebrow{font-size:12px}
 #guidance-result h2{font-size:23px;line-height:1.4;margin-bottom:12px}
 #guidance-result p{margin:10px 0;line-height:1.6}
 #guidance-result .guidance-overview>p:last-child{margin-bottom:0}
 .guidance-example h2{font-size:25px;line-height:1.3;margin:16px 0 10px}
 .guidance-example>p{font-size:14px;line-height:1.6}
 .guidance-sample-label{font-size:12px!important}
 .guidance-amounts{font-size:14px}
 .guidance-amounts dt,.guidance-amounts dd{overflow-wrap:anywhere}
 .spend-preview{padding:16px;margin:16px 0;background:var(--wash)}
 .spend-preview h3{font-size:19px;line-height:1.4}
 .spend-preview .button{min-height:48px;font-size:14px}
 .spend-comparison{grid-template-columns:1fr;gap:8px;margin:16px 0}
 .spend-comparison>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px}
 .spend-comparison span{margin:0;font-size:13px;line-height:1.5}
 .spend-comparison strong{font-size:22px;line-height:1.3;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
 .spend-comparison small{grid-column:1/-1;margin:0;font-size:14px;line-height:1.5}
 #guidance-edit,#guidance-execution{min-height:48px;font-size:14px}
}
/* 무지출 표시: 사용자가 직접 남긴 날만, 기록 버튼보다 한 단계 낮게 보인다. */
.today-no-spend,.day-no-spend,.entry-no-spend{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.today-no-spend .text-button,.day-no-spend .text-button,.entry-no-spend .text-button{min-height:44px;padding:0 4px;color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.today-no-spend.is-marked,.day-no-spend{color:var(--ink)}
.today-no-spend.is-marked .text-button,.day-no-spend .text-button{color:var(--muted);font-weight:500}
.today-no-spend .icon,.day-no-spend .icon{width:18px;height:18px}
.entry-no-spend{margin:0 0 4px}
.member-calendar .calendar-amounts .calendar-no-spend{color:var(--muted);font-weight:600}

/* 30초 시작 (specs/023): one question per screen, chips that wrap at 320px and 200% text. */
.daily-start{display:grid;gap:14px}
.daily-start .question-progress{margin:0;color:var(--muted);font-size:13px}
.daily-start-question{margin:0;font-size:20px;line-height:1.4;outline:0}
.daily-start-chips{display:flex;flex-wrap:wrap;gap:8px}
.daily-start-chip{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:44px;padding:10px 14px;border:1px solid #dce1e7;border-radius:12px;background:#fff;color:var(--ink);font-size:14px;line-height:1.4;text-align:left;overflow-wrap:anywhere}
.daily-start-chip small{color:var(--muted);font-size:12px}
.daily-start-chip[aria-pressed=true]{background:var(--accent-soft);color:var(--action);border-color:var(--action);font-weight:700}
.daily-start-suggestions{display:grid;gap:8px}
.daily-start-suggestions>p{margin:0;color:var(--muted);font-size:13px}
.daily-start-total{margin:0;font-weight:600}
.daily-start-actions{display:grid;gap:8px}
.daily-start-amount{margin:0;font-size:17px;line-height:1.5}
.daily-start-amount strong{display:block;font-size:32px;line-height:1.25;overflow-wrap:anywhere}
.daily-start-sub{margin:4px 0 0;color:var(--muted)}
.daily-start-short{margin:8px 0 0;color:var(--ink);font-weight:600}
@media(forced-colors:active){.daily-start-chip[aria-pressed=true]{outline:2px solid Highlight}}
/* 사도 될까? (specs/025): the same dialog look as 30초 계산; the 하루 몫 stands out in its sentence. */
.purchase-question-label{margin:0;font-weight:600}
.purchase-question-sentence{margin:0;font-size:17px;line-height:1.6;outline:0}
/* polish.css (loaded later) keeps Korean words whole; a 20-character name or a 1,000억 price
   must still wrap inside a narrow dialog, so this rule needs the form's class too. */
.purchase-question .purchase-question-sentence{overflow-wrap:anywhere}
.purchase-question-sentence strong{font-size:24px;color:var(--action)}
/* A member's payday comes from the plan and cannot be changed here: a plain line, not a chip. */
.purchase-question-payday{margin:0;padding:12px 14px;border-radius:12px;background:var(--wash);font-weight:600;overflow-wrap:anywhere}

/* 오늘 홈 하루 금액 (specs/023 US2). Same card as the budget; going over is never shown in red. */
.daily-hero-tag{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px}
.daily-hero-sub{display:block}
.daily-hero-actions{display:flex;flex-wrap:wrap;gap:4px 12px}
.daily-hero-breakdown{display:grid;gap:6px;margin:8px 0 0}
.daily-hero-breakdown>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px}
.daily-hero-breakdown dt,.daily-hero-breakdown dd{margin:0}
.daily-hero-breakdown dd{font-weight:600;overflow-wrap:anywhere}
.daily-hero-nudge{margin:8px 0 0}
/* 꼭 나갈 돈 (specs/023 US4): the list in the home details and the optional chips in a record. */
.daily-hero-items{display:grid;gap:8px;margin:8px 0;padding:0;list-style:none}
.daily-hero-items>li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.daily-hero-items>li>span:first-child{font-weight:600}
.daily-hero-items>li>span:nth-child(2){margin-right:auto;overflow-wrap:anywhere}
.entry-essentials .entry-template[aria-pressed=true]{background:var(--accent-soft);border-color:var(--action);color:var(--action);font-weight:700}
.entry-essentials .entry-template small{color:var(--muted);font-weight:400}
@media(forced-colors:active){.entry-essentials .entry-template[aria-pressed=true]{outline:2px solid Highlight}}
/* 하루 금액 계획 화면 (specs/023 US5·US6) */
.daily-plan{display:grid;gap:12px}
.daily-plan-label{margin:0;color:var(--muted);font-size:14px}
.daily-plan-amount{margin:2px 0 4px;font-size:28px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.daily-plan-title{margin:0;font-size:20px;line-height:1.4;outline:0}
.daily-plan-actions{display:grid;gap:8px}
.daily-plan-item{display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px}
.daily-plan-compare{display:grid;gap:8px;padding-top:12px;border-top:1px solid #e5e8ec}
.daily-plan-compare h4{margin:0;font-size:16px}
.daily-plan-before-after{margin:0;font-size:17px;font-weight:700}
