:root{font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#18233b;background:#f3f6fb;font-synthesis:none;font-size:16px}*{box-sizing:border-box}body{margin:0}header,main{max-width:1080px;margin:auto;padding:0 32px}header{height:96px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-size:22px;font-weight:800;letter-spacing:-1px}.mark{display:grid;place-items:center;background:#2447e8;color:white;border-radius:10px;width:34px;height:34px;font-size:29px}.tag,.hint{font-size:.875rem;color:#5f6d83;line-height:1.6}.intro{padding:36px 0 30px}.eyebrow{font-size:.875rem;color:#2447e8;font-weight:700}h1{font-size:clamp(2.3rem,5vw,3.5rem);line-height:1.2;letter-spacing:-.055em;margin:14px 0 20px}p{line-height:1.7}.intro p{font-size:1.0625rem;color:#5f6d83;margin:0}.workspace{display:grid;grid-template-columns:1fr 1.2fr;gap:24px}.panel{background:white;border:1px solid #e1e6ef;border-radius:24px;padding:30px;min-width:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px}h2{font-size:1.125rem;margin:0;letter-spacing:-.03em}label{display:block;font-size:.9375rem;font-weight:650;margin:20px 0 10px}input{font:inherit;width:100%;border:1px solid #bcc8db;border-radius:12px;min-height:54px;padding:13px 15px;color:#18233b;background:#fff;min-width:0}input:focus{outline:3px solid #adc0ff;outline-offset:2px;border-color:#2447e8}.money-input{position:relative}.money-input input{padding-right:45px}.money-input span{position:absolute;right:18px;top:17px;color:#5f6d83}.hint{margin:8px 0 20px}button{font:inherit;cursor:pointer;border:0;border-radius:12px;min-height:44px;font-weight:650}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #2447e8;outline-offset:4px}.primary{background:#2447e8;color:white;width:100%;padding:16px;margin-top:7px}.primary:hover{background:#1838c5}.text-btn{background:transparent;color:#2447e8;font-size:.875rem;padding:4px 0}.text-btn:disabled{color:#788398;cursor:default}.privacy{font-size:.8125rem;color:#647089;margin:24px 0 0;line-height:1.7;border-top:1px solid #edf0f5;padding-top:20px}.result{background:#eaf0ff;border-color:#d8e1fb;display:flex;flex-direction:column}.pill{font-size:.8125rem;background:#fff;padding:7px 10px;border-radius:20px;color:#405687;white-space:nowrap}.big-number{font-size:clamp(2.5rem,5vw,4rem);font-weight:800;letter-spacing:-.055em;line-height:1.3;overflow-wrap:anywhere;color:#1937b2}.big-number span{font-size:1.25rem;letter-spacing:0;margin-left:8px;font-weight:600}.result-caption{color:#405687;font-size:.9375rem;margin:8px 0 32px;min-height:25px}.numbers{border-top:1px solid #ced8ef;padding-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.numbers span{display:block;font-size:.875rem;color:#586888;margin-bottom:8px}.numbers strong{font-size:1.2rem;overflow-wrap:anywhere}.empty-note{font-size:.9375rem;color:#617197;text-align:center;line-height:1.8;margin:auto 0 0;padding-top:38px}.expense-row{display:flex;gap:10px}.dark{background:#18233b;color:white;padding:10px 22px;flex-shrink:0}.error{font-size:.875rem;color:#b12f3c;margin:10px 0}.explainer{padding:48px 0 42px}.explain-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:26px}.step{font-size:.8125rem;font-weight:750;color:#2447e8}h3{font-size:1rem;letter-spacing:-.02em;margin:10px 0}.explain-grid p{color:#5f6d83;font-size:.875rem;margin:0}footer{border-top:1px solid #dce3ed;padding:24px 0 40px;display:flex;flex-wrap:wrap;gap:12px 24px;color:#647089;font-size:.875rem}footer>span:first-child{font-weight:800;color:#27334b}details{width:100%;padding-top:8px}summary{cursor:pointer;width:fit-content}details p{font-size:.8125rem;max-width:820px}[hidden]{display:none!important}@media(max-width:650px){header,main{padding:0 20px}header{height:72px}.tag{display:none}.intro{padding:22px 0 26px}h1 br{display:none}h1{font-size:2.25rem;margin:12px 0}.intro p{font-size:1rem}.workspace{grid-template-columns:1fr;gap:16px}.panel{padding:24px;border-radius:20px}.section-head{margin-bottom:16px}.result{min-height:330px}.big-number{font-size:3rem}.explain-grid{grid-template-columns:1fr;gap:22px}.explainer{padding-top:34px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}}

/* Native date controls on iOS have intrinsic widths: explicitly constrain every field. */
form,.money-input,.expense-row,.setup,.result{min-width:0;max-width:100%}input{display:block;box-sizing:border-box;min-width:0;min-inline-size:0;max-width:100%;max-inline-size:100%;font-size:1rem}input[type="date"]{appearance:none;-webkit-appearance:none;width:100%;inline-size:100%;min-height:54px;text-align:left}input::-webkit-date-and-time-value{text-align:left;min-width:0}input::-webkit-datetime-edit{padding:0}.expense-row input{flex:1 1 0;width:0}.amount-reading{color:#2447e8;font-size:.9375rem;font-weight:650;line-height:1.6;margin:8px 0;min-height:1.5em}.panel{overflow-wrap:anywhere}body{min-width:0}

.save-choice{display:flex;align-items:center;gap:10px;margin:0;font-size:.875rem;font-weight:600}.save-choice input{width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:#2447e8}.privacy p{margin:10px 0}.privacy .text-btn{color:#5f6d83}

.stats-banner{position:fixed;bottom:16px;left:16px;right:16px;max-width:900px;margin:auto;background:#fff;border:1px solid #aebdd7;box-shadow:0 8px 40px #18233b26;border-radius:16px;padding:20px;display:flex;align-items:center;gap:24px;z-index:10}.stats-banner p{font-size:.875rem;color:#586888;margin:8px 0 0}.stats-actions{display:flex;gap:10px;flex-shrink:0}.stats-actions button{background:#eaf0ff;color:#1937b2;min-width:70px;padding:8px 16px}.consent-open{padding-bottom:180px}@media(max-width:650px){.stats-banner{display:block}.stats-actions{margin-top:12px;justify-content:flex-end}.consent-open{padding-bottom:270px}}

/* Compact working surface: calculator first, no promotional hero. */
header,main{max-width:720px;padding-left:20px;padding-right:20px}header{height:72px}.brand{font-size:19px;letter-spacing:-.04em}.tag{display:none}.intro{padding:8px 0 22px}.intro h1{font-size:1.55rem;line-height:1.35;margin:0 0 6px;letter-spacing:-.04em}.intro p{font-size:.9375rem}.workspace{display:flex;flex-direction:column;gap:16px}.panel{padding:24px;border-radius:18px}.section-head{margin-bottom:14px}label{margin:16px 0 8px}.hint{margin:7px 0 12px}.amount-reading{min-height:22px;margin:6px 0}.quick-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.quick-row button{background:#eef2fa;color:#31456a;padding:8px 14px;min-height:42px;font-size:.875rem;flex:1}.quick-row button:hover{background:#dce5fc}.result{min-height:0}.result-caption{margin-bottom:20px}.big-number{font-size:clamp(2.5rem,9vw,3.5rem)}.numbers{padding-top:16px;gap:12px}.numbers strong{font-size:1.1rem}.edit-btn{background:transparent;color:#2548ca;border-top:1px solid #ced8ef;border-radius:0;margin-top:12px;padding:14px 0 0;text-align:left}.privacy{margin:16px 0;padding:16px;background:#fff;border:1px solid #e1e6ef;border-radius:14px;font-size:.875rem}.privacy p{margin:6px 0}.privacy .text-btn{min-height:36px}.calculation-help{padding:12px 0 20px;font-size:.875rem;color:#586888}.calculation-help p{font-size:.875rem}.stats-banner{position:static;max-width:none;box-shadow:none;padding:16px;margin:4px 0 20px;display:block;border-color:#dce3ed;border-radius:14px}.stats-banner strong{font-size:.875rem}.stats-banner p{font-size:.875rem;margin:6px 0}.stats-actions{margin-top:10px;justify-content:flex-end}.stats-actions button{flex:1;min-height:44px}.consent-open{padding-bottom:0}footer{padding:20px 0 32px}#cancel-edit{display:block;width:100%;margin-top:4px}#result-panel:focus{outline:none}@media(max-width:420px){header,main{padding-left:16px;padding-right:16px}.panel{padding:20px}.intro h1{font-size:1.4rem}.quick-row{gap:6px}.quick-row button{padding:8px 10px}.expense-row{gap:8px}.dark{padding:10px 16px}.numbers span{font-size:.8125rem}}

header{height:auto;min-height:72px;flex-wrap:wrap;gap:8px 12px;padding-top:12px;padding-bottom:12px}.brand{min-width:0}#theme-select{font:inherit;font-size:.875rem;min-height:44px;max-width:100%;padding:8px 10px;border:1px solid #bcc8db;border-radius:12px;background:#fff;color:#18233b;cursor:pointer;margin-left:auto}#theme-select:focus-visible{outline:3px solid #2447e8;outline-offset:4px}html[data-theme="dark"] #theme-select{background:#191f2c;color:#e7edf8;border-color:#54617a}html[data-theme="dark"]{background:#10141d;color:#e7edf8}html[data-theme="dark"] .panel,html[data-theme="dark"] .privacy,html[data-theme="dark"] .stats-banner{background:#191f2c;border-color:#323b50}html[data-theme="dark"] .result{background:#182544;border-color:#324977}html[data-theme="dark"] input{background:#111827;color:#f2f5ff;border-color:#54617a}html[data-theme="dark"] .big-number{color:#a9c0ff}html[data-theme="dark"] .pill{background:#293857;color:#cedbfa}html[data-theme="dark"] .hint,html[data-theme="dark"] .intro p,html[data-theme="dark"] .privacy,html[data-theme="dark"] .privacy .text-btn,html[data-theme="dark"] footer,html[data-theme="dark"] .calculation-help,html[data-theme="dark"] .stats-banner p,html[data-theme="dark"] .money-input span{color:#b5c0d3}html[data-theme="dark"] .text-btn,html[data-theme="dark"] a,html[data-theme="dark"] .amount-reading,html[data-theme="dark"] .edit-btn{color:#abc0ff}html[data-theme="dark"] .brand{color:#e7edf8}html[data-theme="dark"] .result-caption,html[data-theme="dark"] .numbers span{color:#bbcbed}html[data-theme="dark"] .quick-row button,html[data-theme="dark"] .stats-actions button{background:#293651;color:#e3ebff}html[data-theme="dark"] .quick-row button:hover{background:#35486b}html[data-theme="dark"] .primary{background:#4564ef}html[data-theme="dark"] .dark{background:#bacbff;color:#101b38}html[data-theme="dark"] .numbers,html[data-theme="dark"] .edit-btn,html[data-theme="dark"] footer{border-color:#3b4964}html[data-theme="dark"] footer>span:first-child{color:#e7edf8}html[data-theme="dark"] .error{color:#ffacb6}html[data-theme="dark"] button:disabled{color:#8997b0}

#budget-korean:empty{min-height:0;margin:0}
