:root{font-family:Inter,SUIT,"Noto Sans KR","Malgun Gothic",system-ui,sans-serif;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{--bg:#0B111B;--surface:#192333;--surface2:#121c2b;--text:#fff;--muted:#94A3B8;--line:#29374B;--orange:#FFAD42;--green:#4ADE80;--red:#F87171;--blue:#60A5FA;--shadow:0 20px 55px #02070e55;margin:0;background:var(--bg);color:var(--text);font-size:15px}body[data-theme=light]{--bg:#f4f7fb;--surface:#fff;--surface2:#edf2f8;--text:#172234;--muted:#64748b;--line:#dce5ef;--orange:#cb7110;--green:#18834b;--red:#dc4a4a;--blue:#2675ce;--shadow:0 18px 45px #2e435518}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--orange);outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}.shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:30px 17px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:var(--surface2)}.brand,.mobile-brand{display:flex;align-items:center;gap:11px}.brand{padding:0 10px 40px}.brand strong,.mobile-brand strong{display:block;font-size:1.22rem;letter-spacing:-.05em}.brand small{display:block;color:var(--muted);font-size:.68rem;letter-spacing:.18em;margin-top:3px}.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#ffbc66,#f68b26);box-shadow:0 7px 23px #ffad4240}.brand-mark svg{width:24px;height:24px;fill:none;stroke:#172234;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.brand-mark.mini{width:31px;height:31px;border-radius:9px}.brand-mark.mini svg{width:21px;height:21px}.nav-list{display:grid;gap:7px}.nav-btn{border:0;color:var(--muted);background:transparent;display:flex;align-items:center;gap:12px;width:100%;padding:13px 15px;border-radius:12px;text-align:left;font-weight:700}.nav-btn:hover,.nav-btn.active{background:var(--surface);color:var(--text)}.nav-btn.active{box-shadow:inset 3px 0 var(--orange)}.nav-icon{font-size:1.15rem;width:23px;text-align:center}.side-foot{margin-top:auto;border-top:1px solid var(--line);padding:20px 13px;color:var(--muted);font-size:.78rem}.side-foot small{display:block;margin-left:16px;margin-top:5px}.status-dot{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:5px}.main-wrap{min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px clamp(22px,4vw,58px) 17px}.heading h1{font-size:clamp(1.55rem,2.6vw,2.15rem);letter-spacing:-.06em;margin:2px 0 5px}.heading p:last-child{color:var(--muted);margin:0;font-size:.91rem}.eyebrow{color:var(--orange);letter-spacing:.16em;font-size:.7rem;font-weight:800;margin:0}.top-actions{display:flex;align-items:center;gap:9px}.local-pill{border:1px solid var(--line);border-radius:999px;padding:8px 12px;color:var(--muted);font-size:.78rem;white-space:nowrap}.local-pill::first-letter{color:var(--green)}.icon-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);width:39px;height:39px;border-radius:11px;font-size:1.25rem;display:grid;place-items:center}.icon-btn:hover,.btn:hover{filter:brightness(1.1)}main{padding:10px clamp(22px,4vw,58px) 60px;max-width:1600px;margin:auto}.page-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 23px;flex-wrap:wrap}.page-tools .left,.page-tools .right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.month-select{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:5px}.month-select strong{min-width:105px;text-align:center}.month-select button{border:0;background:transparent;color:var(--text);padding:7px 10px;border-radius:8px}.month-select button:hover{background:var(--surface2)}.btn{border:1px solid var(--line);border-radius:11px;padding:10px 15px;background:var(--surface);color:var(--text);font-weight:800;white-space:nowrap}.btn.primary{background:var(--orange);color:#172234;border-color:var(--orange)}.btn.ghost{background:transparent}.btn.small{font-size:.8rem;padding:7px 10px}.demo-banner{display:flex;align-items:center;gap:8px;background:#ffad4218;border:1px solid #ffad4255;color:var(--orange);padding:11px 14px;border-radius:12px;margin-bottom:18px;font-size:.85rem}.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:24px 0 13px}.section-head h2{font-size:1.08rem;letter-spacing:-.04em;margin:0}.section-head p{color:var(--muted);font-size:.78rem;margin:4px 0 0}.grid{display:grid;gap:14px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.metric{padding:20px;min-height:128px;position:relative;overflow:hidden}.metric::after{content:"";position:absolute;right:-20px;top:-25px;width:90px;height:90px;border:1px solid var(--line);border-radius:50%;opacity:.6}.metric .label{color:var(--muted);font-size:.83rem;font-weight:700}.metric .value{font-size:clamp(1.35rem,2.1vw,1.95rem);font-weight:850;letter-spacing:-.06em;margin-top:13px;white-space:nowrap}.metric .hint{color:var(--muted);font-size:.73rem;margin-top:8px}.orange{color:var(--orange)!important}.green{color:var(--green)!important}.red{color:var(--red)!important}.blue{color:var(--blue)!important}.charts{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-card{padding:21px;min-height:285px;min-width:0}.chart-card h3{font-size:1rem;margin:0}.chart-card .sub{color:var(--muted);font-size:.75rem;margin:5px 0 15px}.chart{height:195px;display:flex;align-items:end;gap:8px;min-width:0}.bar-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.bar{width:min(100%,28px);min-height:2px;border-radius:5px 5px 2px 2px;background:var(--orange);position:relative}.bar.alt{background:var(--red)}.bar.muted{opacity:.42}.bar-col small{color:var(--muted);font-size:.67rem;white-space:nowrap}.bar-pair{width:100%;height:100%;display:flex;align-items:end;justify-content:center;gap:3px}.bar-pair .bar{width:37%;max-width:20px}.chart-note{font-size:.7rem;color:var(--muted);margin-top:10px}.legend{display:flex;gap:16px;color:var(--muted);font-size:.76rem}.legend span::before{content:"";display:inline-block;width:7px;height:7px;background:var(--orange);border-radius:50%;margin-right:5px}.legend span:last-child::before{background:var(--red)}.goal-wrap{display:grid;grid-template-columns:160px 1fr;gap:20px;align-items:center;height:190px}.goal-ring{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--orange) var(--pct),var(--line) 0)}.goal-ring>div{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:var(--surface);text-align:center}.goal-ring b{font-size:2rem;letter-spacing:-.06em}.goal-ring small{display:block;color:var(--muted);font-size:.72rem}.goal-details p{color:var(--muted);margin:7px 0;font-size:.78rem}.goal-details strong{display:block;font-size:1.2rem;margin:9px 0}.calendar-card{padding:20px}.week-row,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.week-row{margin-bottom:8px}.week-row span{text-align:center;color:var(--muted);font-size:.75rem;font-weight:700;padding:6px}.week-row span:first-child{color:var(--red)}.week-row span:last-child{color:var(--blue)}.day{height:93px;border:1px solid var(--line);border-radius:11px;background:var(--surface2);color:var(--text);text-align:left;padding:9px;display:flex;flex-direction:column;gap:4px;overflow:hidden}.day:not(.blank):hover{border-color:var(--orange);background:#ffad4213}.day.blank{border-color:transparent;background:transparent;cursor:default}.day.today{border-color:var(--orange)}.day .date{font-weight:750}.day.sun .date{color:var(--red)}.day.sat .date{color:var(--blue)}.day .amount{color:var(--orange);font-size:.76rem;font-weight:800;white-space:nowrap}.day .off{color:var(--blue);font-size:.76rem;font-weight:800}.day .hours{color:var(--muted);font-size:.68rem}.calendar-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:17px;color:var(--muted);font-size:.78rem}.list-card{overflow:hidden}.record-row{display:grid;grid-template-columns:110px 1fr auto auto;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:14px 17px}.record-row:last-child{border-bottom:0}.record-row .date-label{font-weight:800}.record-row small{color:var(--muted)}.record-row .record-amount{font-weight:850;color:var(--orange);white-space:nowrap}.record-row .net{font-size:.78rem;color:var(--green);white-space:nowrap}.record-row .off{color:var(--blue);font-weight:800}.empty{padding:35px 20px;color:var(--muted);text-align:center}.empty strong{display:block;color:var(--text);margin-bottom:5px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.settings-card{padding:22px}.settings-card h2{font-size:1.02rem;margin:0 0 15px}.settings-card p{color:var(--muted);font-size:.8rem;line-height:1.55}.field{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:.83rem;font-weight:700;margin-bottom:15px}.field input,.field select,.field textarea,.text-input{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:var(--surface2);color:var(--text);font-weight:600;min-width:0}.field textarea{resize:vertical}.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:.7}.input-unit{position:relative;display:block}.input-unit input{padding-right:46px}.input-unit em{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-style:normal;color:var(--muted);font-size:.8rem}.toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.toggle-row{border:1px solid var(--line);border-radius:10px;padding:10px 11px;display:flex;align-items:center;gap:8px;font-size:.83rem}.toggle-row input,.check-row input{accent-color:var(--orange);width:17px;height:17px}.inline-form{display:flex;gap:8px;margin-top:12px}.inline-form input{flex:1}.muted{color:var(--muted)}.note{font-size:.76rem;color:var(--muted);line-height:1.55}.split{display:grid;grid-template-columns:1.5fr 1fr;gap:15px}.summary-block{padding:20px}.summary-block h3{margin:0 0 12px;font-size:.96rem}.summary-line{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px 0;font-size:.85rem}.summary-line:last-child{border-bottom:0}.summary-line strong{font-size:.95rem}.page-intro{margin:4px 0 20px;color:var(--muted);line-height:1.5;font-size:.85rem}.mobile-brand,.bottom-nav{display:none}.entry-dialog{border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);width:min(520px,calc(100vw - 24px));max-height:min(92vh,800px);padding:0;box-shadow:0 30px 90px #0009}.entry-dialog::backdrop{background:#030814bd;backdrop-filter:blur(5px)}.entry-dialog form{display:flex;flex-direction:column;max-height:min(92vh,800px)}.dialog-head{display:flex;justify-content:space-between;align-items:start;padding:22px 24px 15px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:3px 0 0;font-size:1.3rem}.dialog-scroll{padding:20px 24px;overflow:auto}.dialog-foot{display:flex;justify-content:flex-end;gap:9px;padding:15px 24px;border-top:1px solid var(--line)}.check-row{display:flex;align-items:center;gap:10px;background:var(--surface2);padding:12px;border-radius:11px;margin-bottom:17px}.check-row span{display:flex;flex-direction:column;gap:2px}.check-row small{color:var(--muted);font-size:.73rem}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.live-metrics{display:flex;justify-content:space-between;gap:10px;padding:12px;background:#ffad4215;border-radius:10px;color:var(--muted);font-size:.8rem;margin-bottom:19px}.live-metrics b{color:var(--orange)}.section-mini{display:flex;justify-content:space-between;align-items:center;margin:7px 0 11px}.section-mini h3{font-size:.92rem;margin:0}.section-mini small{color:var(--muted);font-weight:400}.section-mini span{color:var(--red);font-weight:800}.expense-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}.error{color:var(--red);background:#f8717118;border:1px solid #f8717155;padding:10px;border-radius:9px;font-size:.8rem}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--text);color:var(--bg);border-radius:11px;padding:10px 16px;box-shadow:var(--shadow);font-size:.82rem;font-weight:700;opacity:0;pointer-events:none;transition:.25s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:210px}.shell{grid-template-columns:210px minmax(0,1fr)}}@media(max-width:760px){.shell{display:block}.sidebar{display:none}.mobile-brand{display:flex}.topbar{padding:17px 17px 12px}.heading{display:none}.local-pill{display:none}main{padding:8px 14px 105px}.bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);bottom:0;left:0;right:0;padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:var(--surface2);border-top:1px solid var(--line);z-index:10}.bottom-nav .nav-btn{display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center;padding:6px 1px;font-size:.65rem;border-radius:9px}.bottom-nav .nav-btn.active{box-shadow:none;color:var(--orange)}.bottom-nav .nav-icon{font-size:1.23rem}.metrics,.charts,.settings-grid,.split{grid-template-columns:1fr 1fr}.metric{min-height:112px;padding:15px}.metric .value{font-size:1.35rem}.chart-card{padding:15px;min-height:250px}.chart{height:155px}.goal-wrap{grid-template-columns:110px 1fr;gap:8px}.goal-ring{width:105px;height:105px}.goal-ring>div{width:83px;height:83px}.goal-ring b{font-size:1.35rem}.goal-details strong{font-size:1rem}.day{height:75px;padding:5px;gap:2px}.day .amount,.day .off{font-size:.65rem}.day .hours{display:none}.record-row{grid-template-columns:76px 1fr auto;gap:6px;padding:12px}.record-row .net{display:none}}@media(max-width:530px){.charts,.settings-grid,.split{grid-template-columns:1fr}.metrics{gap:9px}.metric .value{font-size:1.2rem}.metric .label{font-size:.75rem}.metric .hint{font-size:.67rem}.calendar-card{padding:9px}.calendar-grid,.week-row{gap:2px}.day{height:65px;border-radius:7px;padding:4px}.day .date{font-size:.7rem}.day .amount{font-size:.58rem;letter-spacing:-.04em}.week-row span{font-size:.68rem}.page-tools{gap:9px}.page-tools .right{width:100%}.page-tools .right .btn{flex:1}.expense-fields{grid-template-columns:1fr 1fr}.dialog-scroll{padding:16px}.dialog-head,.dialog-foot{padding:14px 16px}.two-fields{gap:8px}}@media(max-width:360px){.metrics{grid-template-columns:1fr 1fr}.metric .value{font-size:1.05rem}.day .amount{font-size:.53rem}.btn{padding:9px 11px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.trend-labels{display:flex;justify-content:space-between;padding:0 3px;color:var(--muted);font-size:.68rem}.onboard{max-width:940px;margin:clamp(15px,5vh,50px) auto;padding:30px;border:1px solid var(--line);border-radius:24px;background:radial-gradient(circle at 80% 0%,#ffad421c,transparent 36%),var(--surface);box-shadow:var(--shadow)}.onboard-top{text-align:center;margin-bottom:25px}.onboard-top .brand-mark{margin:0 auto 18px}.onboard-top h2{font-size:clamp(2rem,5vw,3.3rem);line-height:1.14;letter-spacing:-.07em;margin:10px 0}.onboard-top>p:last-child{color:var(--muted);line-height:1.6}.industry-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.industry{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:13px;background:var(--surface2);color:var(--text);padding:17px 12px;font-weight:800;text-align:left}.industry:hover{border-color:var(--orange);background:#ffad4214}.industry span{font-size:1.25rem}.industry b{margin-left:auto;color:var(--orange)}.onboard>.note{text-align:center;margin:24px 0 0}@media(max-width:760px){.industry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.onboard{padding:20px 14px;margin:8px auto}.industry{padding:14px 9px;font-size:.84rem}}
[hidden]{display:none!important}.amount-short{display:none}@media(max-width:530px){.day .amount:not(.amount-short){display:none}.day .amount-short{display:block}.bar{max-height:calc(100% - 22px)}}
/* V1.1: denser dashboard, unchanged data and controls */
.shell{grid-template-columns:196px minmax(0,1fr)}
.sidebar{padding:24px 14px}
.brand{padding:0 3px 27px;gap:9px}
.brand strong{font-size:1.12rem}
.topbar{padding-top:20px;padding-bottom:12px}
main{padding-top:6px}
.page-tools{margin:5px 0 16px}
.section-head{margin:19px 0 11px}
.metrics{gap:11px}
.metric{min-height:96px;padding:14px 17px}
.metric .value{margin-top:9px;font-variant-numeric:tabular-nums}
.metric .hint{margin-top:5px}
.metric .label{color:#b7c6d8}
.metric .hint{color:#a8b9cc}
body[data-theme=light] .metric .label{color:#526176}
body[data-theme=light] .metric .hint{color:#63748a}
.neutral{color:var(--muted)!important}
.home-mobile-head{display:none}
body[data-view=home] .top-actions>.local-pill{display:none}
.home-save-state{display:inline-flex;align-items:center;height:38px}
.home-calendar .day{height:82px}
.home-calendar .section-head{margin-top:19px}
.mobile-brand small{font-size:.65rem;color:var(--muted);font-weight:700}
@media(max-width:1100px) and (min-width:761px){.shell{grid-template-columns:168px minmax(0,1fr)}.sidebar{width:168px}.sidebar .nav-btn{padding:12px 9px;gap:8px}.brand-mark{width:34px;height:34px;flex:0 0 34px}.brand strong{font-size:1.03rem}}
@media(max-width:760px){.shell{display:block}.sidebar{display:none}.topbar{padding:14px 17px 11px}.top-record{display:none!important}.home-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:3px 0 12px}.home-mobile-head h1{font-size:1.4rem;letter-spacing:-.05em;margin:3px 0 0}.home-mobile-head .btn{min-height:43px}.metric{min-height:105px;padding:13px 14px}.home-calendar .day{height:75px}}
@media(max-width:530px){.metric .value{white-space:normal;overflow-wrap:anywhere;line-height:1.14;font-size:clamp(1.05rem,4vw,1.2rem)}.metric{overflow:visible;min-height:105px}.home-mobile-head h1{font-size:1.2rem}.home-mobile-head .btn{font-size:.8rem;padding:10px 12px}.home-calendar .day{height:71px}.home-calendar .calendar-card{padding:9px}.home-save-state{font-size:.7rem;height:34px;padding:6px 9px}.page-tools .left{gap:6px}}
@media(max-width:360px){.home-mobile-head h1{font-size:1.08rem}.home-mobile-head .btn{padding:9px 10px}.metric{padding:12px 10px}.metric .value{font-size:1.05rem}.home-calendar .day{height:70px}}
/* Settings menus use explicit buttons so a tap leaves the choices visible. */
.setting-field{min-width:0}
.setting-menu{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--text);overflow:hidden}
.setting-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:53px;border:0;background:transparent;color:var(--text);padding:12px 15px;text-align:left;cursor:pointer;font-weight:700}
.setting-trigger:focus-visible{outline:2px solid var(--orange);outline-offset:-3px}
.setting-trigger[aria-expanded="true"]{border-bottom:1px solid var(--line)}
.setting-menu:focus-within{border-color:var(--orange)}
.setting-chevron{font-size:1.15rem;color:var(--muted);transition:transform .15s ease}
.setting-trigger[aria-expanded="true"] .setting-chevron{transform:rotate(180deg)}
.setting-options{display:grid;gap:3px;max-height:320px;overflow-y:auto;padding:7px}
.setting-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:45px;width:100%;border:0;border-radius:8px;background:transparent;color:var(--text);padding:10px 12px;text-align:left;font-weight:650}
.setting-option:hover,.setting-option:focus-visible{background:var(--surface)}
.setting-option.selected{background:#ffad421c;color:var(--orange)}
@media(prefers-reduced-motion:reduce){.setting-chevron{transition:none}}

/* Entry dialog: one scrollable content area, fixed header and footer. */
.entry-dialog{overflow:hidden;max-height:min(92vh,800px);max-height:min(92dvh,800px)}
.entry-dialog form{min-height:0;max-height:calc(min(92vh,800px) - 2px);max-height:calc(min(92dvh,800px) - 2px);overflow:hidden}
.dialog-head,.dialog-foot{flex:0 0 auto}
.dialog-scroll{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--muted) var(--surface2)}
body:has(.entry-dialog[open]){overflow:hidden}

/* Compact daily entry: layout only, all input IDs and storage unchanged. */
.entry-dialog{width:min(640px,calc(100vw - 20px))}
.entry-dialog .dialog-head{padding:12px 18px 10px;align-items:center}
.entry-dialog .dialog-head h2{font-size:1.13rem;margin:2px 0 0}
.entry-dialog .dialog-foot{padding:9px 18px}
.entry-dialog .dialog-scroll{padding:12px 18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;align-content:start;align-items:end}
.entry-dialog .field{gap:4px;margin:0;min-width:0;font-size:.8rem}
.entry-dialog .field input,.entry-dialog .field textarea{padding:7px 9px;min-height:38px;font-size: max(16px, .88rem)}
.entry-dialog .input-unit input{padding-right:40px}
.entry-dialog .input-unit em{right:9px;font-size:.72rem;pointer-events:none}
.entry-dialog .check-row{margin:0;padding:6px 8px;min-height:38px;gap:6px}
.entry-dialog .check-row small{font-size:.64rem;line-height:1.2}
.entry-dialog #entryWorkFields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;align-items:end}
.entry-dialog #entryWorkFields>.two-fields,.entry-dialog .live-metrics,.entry-dialog #tripSection,.entry-dialog #expenseSection,.entry-dialog #memoField,.entry-dialog #entryError{grid-column:1/-1}
.entry-dialog .two-fields{gap:8px}
.entry-dialog .live-metrics{margin:0;padding:7px 9px;font-size:.76rem}
.entry-dialog #tripSection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 8px;min-width:0}
.entry-dialog #tripSection>.two-fields{display:contents}
.entry-dialog #tripSection>.section-mini,.entry-dialog #tripLive{grid-column:1/-1}
.entry-dialog .section-mini{margin:2px 0 5px}
.entry-dialog #tripLive{margin:0;font-size:.7rem}
.entry-dialog #tripLive:empty{display:none}
.entry-dialog .expense-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 8px}
.entry-dialog #memoField textarea{min-height:38px;height:44px}
.entry-dialog #entryError{margin:0}
@media(max-width:480px){
 .entry-dialog .dialog-scroll{padding:10px 12px;gap:7px 8px}
 .entry-dialog .dialog-head,.entry-dialog .dialog-foot{padding:10px 12px}
 .entry-dialog #entryWorkFields{gap:7px 8px}
 .entry-dialog .expense-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .entry-dialog #tripSection{gap:5px 6px}
 .entry-dialog #tripSection input{padding-left:6px;padding-right:26px}
 .entry-dialog #tripSection .input-unit em{right:5px;font-size:.65rem}
 .entry-dialog #tripSection input::placeholder{font-size:.68rem}
 .entry-dialog .check-row small{display:none}
}

/* V1.2 compact off-row + shift time entry */
.entry-dialog .dialog-scroll{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.entry-dialog .check-row{justify-self:end;width:100%;max-width:230px;padding:5px 8px;min-height:36px;border-radius:10px}
.entry-dialog .check-row b{font-size:.92rem}
.entry-dialog .check-row small{font-size:.62rem}
.entry-dialog #shiftFields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;align-items:end}
.entry-dialog #entryDateInfo{grid-column:1/-1;margin:-2px 0 2px;font-size:.72rem;color:var(--muted)}
.entry-dialog #entryWorkFields{gap:7px 10px}
.entry-dialog #entryWorkFields > .field:first-child{grid-column:1/2}
.entry-dialog #shiftFields + #totalField{display:none!important}
.entry-dialog .dialog-head .icon-btn{width:44px;height:44px;border-radius:14px;font-size:1.5rem}
@media(max-width:560px){
 .entry-dialog .dialog-scroll{grid-template-columns:1fr 1fr}
 .entry-dialog .check-row{max-width:none;justify-self:stretch}
 .entry-dialog #shiftFields{gap:7px 8px}
}
@media(max-width:460px){
 .entry-dialog .dialog-scroll{grid-template-columns:1fr}
 .entry-dialog .check-row,.entry-dialog #shiftFields,.entry-dialog #entryDateInfo,.entry-dialog #entryWorkFields,.entry-dialog #tripSection,.entry-dialog #expenseSection,.entry-dialog #memoField,.entry-dialog #entryError,.entry-dialog .live-metrics{grid-column:1/-1}
 .entry-dialog #shiftFields{grid-template-columns:1fr 1fr}
 .entry-dialog .check-row small{display:none}
}

/* Explicit AM/PM controls, independent of browser locale. */
.entry-dialog .shift-clock{display:flex;align-items:center;gap:4px;min-width:0;background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:4px 6px;color:var(--text)}
.entry-dialog .shift-clock .period-toggle{flex:0 0 auto;min-height:36px;padding:4px 7px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--orange);font-size:.85rem;font-weight:800;white-space:nowrap}
.entry-dialog .shift-clock input:not([type=hidden]){width:0;flex:1 1 0;min-width:0;padding:4px 0;text-align:center;border:0;background:transparent;font-variant-numeric:tabular-nums}
.entry-dialog .shift-clock input::placeholder{font-size:.78rem}


/* V1.2 clock widget + nav icons */
.top-actions{gap:10px}
.local-pill,.home-save-state{display:none!important}
.hero-clock{display:grid;grid-template-columns:auto auto;grid-template-areas:"date day" "time time";align-items:center;gap:2px 12px;min-width:220px;padding:10px 16px;border-radius:18px;background:linear-gradient(180deg,rgba(22,34,55,.96),rgba(14,23,39,.96));border:1px solid var(--line);box-shadow:var(--shadow)}
.hero-clock-date{grid-area:date;font-size:.78rem;color:var(--muted);font-weight:700;letter-spacing:.02em}
.hero-clock-day{grid-area:day;justify-self:end;font-size:.78rem;color:var(--accent);font-weight:800}
.hero-clock-time{grid-area:time;font-size:1.52rem;letter-spacing:.06em;font-variant-numeric:tabular-nums;color:var(--text);text-shadow:0 0 14px rgba(251,176,59,.22)}
[data-theme="dark"] .hero-clock-time{color:#ffd27a}
.nav-icon{display:grid;place-items:center;width:1.15rem;height:1.15rem;color:currentColor}
.nav-icon svg{width:1.1rem;height:1.1rem;display:block}
.nav-btn{gap:12px}
.nav-btn.active .nav-icon{transform:translateY(-.5px)}
.bottom-nav .nav-btn{gap:6px}
.bottom-nav .nav-icon{width:1rem;height:1rem}
@media(max-width:900px){.hero-clock{min-width:190px;padding:9px 12px}.hero-clock-time{font-size:1.28rem}}
@media(max-width:720px){.page-tools .left{gap:10px}.hero-clock{grid-template-columns:1fr auto;min-width:unset;width:100%}.hero-clock-time{font-size:1.15rem}}
@media(max-width:560px){.hero-clock{padding:8px 10px;border-radius:14px}.hero-clock-date,.hero-clock-day{font-size:.7rem}.hero-clock-time{font-size:1rem}}

/* Clock occupies the existing header space; never adds a separate dashboard row. */
.topbar{position:relative}.topbar #headerClock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:clamp(145px,24%,245px);min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 10px;border:1px solid var(--line);background:var(--surface2);box-shadow:none;border-radius:12px;pointer-events:none}.clock-date-line{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:.75rem;white-space:nowrap}#heroClockDay{color:var(--text);font-weight:700}#heroClockTime{font-size:clamp(1.15rem,2.5vw,1.85rem);letter-spacing:.065em;color:var(--orange);font-variant-numeric:tabular-nums;line-height:1.15}.metric .label{padding-right:38px}.metric-symbol{position:absolute;right:13px;top:12px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--surface2);border:1px solid var(--line);color:var(--blue);z-index:1}.metric-symbol svg{width:21px;height:21px}.metric::after{display:none}.metric .value{position:relative}.metric-symbol.orange{background:#ffad4212}.metric-symbol.green{background:#4ade8012}.metric-symbol.red{background:#f8717112}
@media(max-width:760px){.topbar #headerClock{left:57%;width:clamp(135px,29%,245px);top:calc(100% + 36px);z-index:1}.home-mobile-head{min-height:72px}.home-mobile-head>div{max-width:43%}.home-mobile-head .btn{flex-shrink:0}.metric-symbol{right:9px;top:9px;width:29px;height:29px}.metric-symbol svg{width:18px;height:18px}.metric .label{padding-right:28px}}
@media(max-width:480px){.topbar #headerClock{left:50%;top:50%;width:36%;padding:3px 4px;border:0;background:transparent}.clock-date-line{font-size:.60rem;gap:3px}#heroClockTime{font-size:1.05rem}.mobile-brand{gap:5px}.mobile-brand small{display:none}.mobile-brand strong{font-size:.9rem}.top-actions{gap:5px}.top-actions .icon-btn{width:31px;height:34px}.home-mobile-head{min-height:0}.home-mobile-head>div{max-width:none}.metric .label{padding-right:25px}.metric-symbol{width:25px;height:25px;right:7px;top:8px}.metric-symbol svg{width:16px;height:16px}}

/* Dashboard alignment: fixed central clock, compact month selector, left icons. */
body[data-view=home] .month-select{display:inline-flex;width:max-content;max-width:100%;flex:0 0 auto;gap:4px}
body[data-view=home] .month-select strong{min-width:0;white-space:nowrap;padding:0 5px}
body[data-view=home] .page-tools .left{width:auto;flex:0 0 auto}
.topbar #headerClock{left:50%;width:max-content;max-width:33%;min-width:0;background:transparent;border:0;box-shadow:none;padding:0;gap:5px;text-align:center}
#heroClockTime{font-size:clamp(1.2rem,3vw,2rem);letter-spacing:.055em}
.metric{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;row-gap:4px;align-content:center;align-items:center}
.metric-symbol{position:static;grid-column:1;grid-row:1/4;justify-self:center;align-self:center;width:42px;height:42px;border-radius:12px}
.metric-symbol svg{width:25px;height:25px}
.metric .label,.metric .value,.metric .hint{grid-column:2;text-align:right;padding:0;margin:0;min-width:0;overflow-wrap:anywhere;white-space:normal}
.metric .label{grid-row:1}.metric .value{grid-row:2}.metric .hint{grid-row:3}
@media(max-width:760px){.topbar #headerClock{left:50%;top:calc(100% + 36px);max-width:31%;width:max-content}.home-mobile-head>div{max-width:32%}.metric{grid-template-columns:36px minmax(0,1fr);column-gap:8px}.metric-symbol{width:34px;height:34px}.metric-symbol svg{width:21px;height:21px}}
@media(max-width:530px){.metric{padding:10px 9px;grid-template-columns:28px minmax(0,1fr);column-gap:5px}.metric-symbol{width:27px;height:27px;border-radius:8px}.metric-symbol svg{width:17px;height:17px}.metric .label{font-size:.72rem}.metric .hint{font-size:.64rem}}
@media(max-width:480px){.topbar #headerClock{left:50%;top:50%;max-width:36%;width:max-content}.clock-date-line{font-size:.59rem;gap:3px}#heroClockTime{font-size:1.05rem}.home-mobile-head>div{max-width:none}}

/* Final dashboard alignment: the clock belongs to the header, not the month row. */
.topbar #headerClock{left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:34%;padding:0;border:0;background:transparent;box-shadow:none;text-align:center}
#headerClock .clock-date-line{font-size:clamp(.65rem,1.6vw,.85rem);gap:5px}#heroClockTime{font-size:clamp(1.2rem,3.3vw,2.1rem);line-height:1.2;color:var(--orange)}
.metric-symbol{display:grid;position:static;grid-column:1;grid-row:1/4;place-items:center;justify-self:start;align-self:center;width:44px;height:44px;background:var(--surface2);border:1px solid var(--line)}.metric-symbol svg{display:block;width:26px;height:26px}.metric{grid-template-columns:44px minmax(0,1fr)}
@media(max-width:760px){.topbar #headerClock{top:calc(100% + 38px);left:50%;max-width:34%}.home-mobile-head{min-height:76px}.home-mobile-head>div{max-width:32%}.home-mobile-head h1{font-size:clamp(.9rem,2.8vw,1.4rem)}.metric-symbol{width:34px;height:34px}.metric-symbol svg{width:22px;height:22px}.metric{grid-template-columns:34px minmax(0,1fr)}}
@media(max-width:480px){.topbar #headerClock{top:50%;left:50%;max-width:35%}#headerClock .clock-date-line{font-size:.58rem;gap:3px}#heroClockTime{font-size:1.08rem}.home-mobile-head{min-height:0}.home-mobile-head>div{max-width:none}.metric-symbol{width:27px;height:27px}.metric-symbol svg{width:17px;height:17px}.metric{grid-template-columns:27px minmax(0,1fr)}}

/* Single responsive dashboard header; its middle column is exactly centered. */
body[data-view=home] .topbar .heading,body[data-view=home] .topbar .top-record{display:none!important}
body[data-view=home] .topbar{justify-content:space-between}
body[data-view=home] .topbar .top-actions{margin-left:auto}
.home-dashboard-head{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px;min-height:0!important;margin:4px 0 18px}
.home-dashboard-head>.home-heading{max-width:none!important;min-width:0}
.home-dashboard-head h1{font-size:clamp(1rem,2.5vw,1.6rem);margin:4px 0 8px;letter-spacing:-.045em}
.home-dashboard-head .page-tools{margin:0;display:block}.home-dashboard-head .page-tools .left{display:block}
.home-dashboard-head .month-select{gap:2px;padding:3px}.home-dashboard-head .month-select strong{padding:0 2px;font-size:clamp(.68rem,1.6vw,.95rem)}.home-dashboard-head .month-select button{padding:5px 7px}
.home-dashboard-head #headerClock{position:static;transform:none;display:flex;flex-direction:column;align-items:center;justify-content:center;justify-self:center;gap:6px;width:max-content;max-width:100%;min-width:0;padding:0;background:transparent;border:0;box-shadow:none;text-align:center}
.home-dashboard-head #headerClock .clock-date-line{font-size:clamp(.62rem,1.5vw,.85rem);display:flex;flex-wrap:wrap;justify-content:center;gap:3px 6px;white-space:normal}
.home-dashboard-head #heroClockTime{font-size:clamp(1.2rem,3.6vw,2.3rem);font-weight:850;letter-spacing:.035em;white-space:nowrap;color:var(--orange);text-shadow:0 0 14px #ffad4225}
.home-dashboard-head>.btn{justify-self:end;min-width:0;padding:10px 12px;font-size:clamp(.7rem,1.6vw,.95rem)}
@media(max-width:480px){.home-dashboard-head{gap:4px;margin-bottom:12px}.home-dashboard-head .eyebrow{font-size:.53rem;letter-spacing:.05em}.home-dashboard-head h1{font-size:.84rem}.home-dashboard-head .month-select button{padding:4px}.home-dashboard-head .month-select strong{font-size:.62rem}.home-dashboard-head>.btn{padding:8px 5px;font-size:.66rem}.home-dashboard-head #heroClockTime{font-size:1.12rem}}

/* Compact dashboard: two controls, two text rows, no empty decorative space. */
.home-dashboard-head{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 10px;align-items:center}
.home-dashboard-head .home-heading{width:max-content;max-width:100%!important}
.home-dashboard-head>.btn{justify-self:end;min-height:40px}
.home-dashboard-head .month-select{min-height:40px}
.metric{min-height:74px;padding:10px 14px;grid-template-rows:auto auto;row-gap:4px;column-gap:10px;align-content:center}
.metric-symbol{grid-row:1/3;width:40px;height:40px}
.metric-symbol svg{width:25px;height:25px}
.metric .label{font-size:.83rem;line-height:1.25}
.metric .value{line-height:1.15}
.metrics{gap:8px}
body[data-view=home] main{padding-top:3px}
@media(max-width:760px){.metric{min-height:72px;padding:9px 12px;grid-template-columns:34px minmax(0,1fr)}.metric-symbol{width:34px;height:34px}.metric-symbol svg{width:22px;height:22px}}
@media(max-width:530px){.metric{min-height:68px;padding:8px;grid-template-columns:28px minmax(0,1fr);column-gap:5px}.metric-symbol{width:27px;height:27px}.metric-symbol svg{width:18px;height:18px}.metric .label{font-size:.72rem}.home-dashboard-head>.btn{font-size:.8rem;padding:8px 10px}.home-dashboard-head .month-select strong{font-size:.76rem}}

/* Home: single compact top bar, month navigation immediately before theme/settings. */
#headerMonth .page-tools{margin:0;display:block}#headerMonth .left{display:block;width:auto}#headerMonth .month-select{margin:0;padding:3px;gap:2px;width:max-content;min-height:39px}#headerMonth .month-select strong{font-size:.85rem;padding:0 3px;min-width:0;white-space:nowrap}#headerMonth .month-select button{padding:7px 8px;min-height:32px}body[data-view=home] .topbar{gap:8px;padding-bottom:10px}body[data-view=home] .top-actions{gap:7px;flex-shrink:0}body[data-view=home] main{padding-top:0}
@media(max-width:480px){body[data-view=home] .topbar{padding:9px 10px;gap:5px}body[data-view=home] .top-actions{gap:4px}#headerMonth .month-select{padding:2px;gap:0;min-height:34px}#headerMonth .month-select strong{font-size:.72rem;padding:0 2px}#headerMonth .month-select button{padding:5px;min-height:28px}body[data-view=home] .mobile-brand .brand-mark{width:25px;height:25px;flex-shrink:0}body[data-view=home] .mobile-brand strong{font-size:.8rem;white-space:nowrap}body[data-view=home] .top-actions .icon-btn{width:30px;height:34px}}

/* Selected industry alongside the existing brand. */
.industry-badge{color:var(--orange);font-size:.75rem;font-weight:800;white-space:nowrap;letter-spacing:0;border:1px solid var(--line);border-radius:7px;padding:4px 6px}.brand{flex-wrap:wrap}.mobile-brand{min-width:0;flex-wrap:wrap;gap:5px}.mobile-brand .industry-badge{flex-shrink:0}.mobile-brand small{display:inline!important}@media(max-width:480px){.mobile-brand small{font-size:.55rem}.mobile-brand .industry-badge{font-size:.66rem;padding:2px 4px}body[data-view=home] .topbar{flex-wrap:wrap}.mobile-brand{flex:1 1 auto}body[data-view=home] .top-actions{margin-left:auto}}

/* Shared header: identical month placement across reporting pages. */
body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) .topbar .heading{display:none!important}
body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) .topbar{justify-content:space-between;gap:8px;padding-bottom:10px}
body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) .top-actions{margin-left:auto;gap:7px;flex-shrink:0}
body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) main{padding-top:0}
@media(max-width:480px){body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) .topbar{padding:9px 10px;gap:5px;flex-wrap:wrap}body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) .top-actions{gap:4px}body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) .mobile-brand .brand-mark{width:25px;height:25px;flex-shrink:0}body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) .mobile-brand strong{font-size:.8rem;white-space:nowrap}body:is([data-view=home],[data-view=analysis],[data-view=calendar],[data-view=ledger]) .top-actions .icon-btn{width:30px;height:34px}}

/* Dashboard preferences: fill odd rows without adding empty cards. */
.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-metrics>.metric:last-child:nth-child(odd){grid-column:1/-1}.dashboard-settings .toggle-row{min-width:0;overflow-wrap:anywhere}.dashboard-settings .toggle-row input{flex-shrink:0}

/* Welcome screen only: keep Korean industry labels intact. */
.onboard .industry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.onboard .industry{gap:8px;min-width:0;padding:15px 10px}
.onboard .industry > span,.onboard .industry > b{flex-shrink:0}
.onboard .industry-name{white-space:nowrap;word-break:keep-all;font-size:inherit;font-weight:inherit}
.onboard .industry:last-child{grid-column:1/-1;justify-content:center}
.onboard .industry:last-child b{margin-left:0}
@media(max-width:900px){.onboard .industry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.onboard .industry{padding:11px 6px;gap:5px;font-size:.78rem}.onboard .industry > span{font-size:1rem}}

/* Uniform calendar cells, including holidays. */
.calendar-grid{align-items:start}
.calendar-grid .day{min-height:0;min-width:0;gap:2px}
.calendar-grid .day > span{flex-shrink:0;line-height:1.15;min-width:0}
.calendar-grid .day .holiday-name{font-size:.68rem;overflow-wrap:anywhere}
.home-calendar .day{height:88px}
@media(max-width:760px){.home-calendar .day{height:75px}}
@media(max-width:530px){.home-calendar .day,.calendar-grid .day{height:71px}.calendar-grid .day .holiday-name{font-size:clamp(.52rem,2vw,.65rem)}}

/* Exact calendar amounts: scale to the available cell width, never round. */
.calendar-grid .day{container-type:inline-size}
.calendar-grid .day .amount{max-width:100%;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
@media(max-width:530px){.calendar-grid .day{padding-inline:2px}.calendar-grid .day .amount-short{font-size:clamp(7px,18cqi,12px);letter-spacing:-.045em}}

/* User-selectable typography; keep the existing default and fit calendar amounts. */
html[data-size=small]{font-size:90%}
html[data-size=normal]{font-size:100%}
html[data-size=large]{font-size:115%}
body{font-size:.9375rem}
body[data-size=large] .calendar-grid .day{height:106px}
body[data-size=large] .home-calendar .day{height:101px}
body[data-size=large] .topbar{flex-wrap:wrap}
body[data-size=large] .metric .value{overflow-wrap:anywhere;white-space:normal}
body[data-size=large] .setting-trigger,body[data-size=large] .toggle-row{min-height:44px;overflow-wrap:anywhere}
@media(max-width:760px){body[data-size=large] .calendar-grid .day{height:90px}}
@media(max-width:530px){body[data-size=large] .calendar-grid .day{height:83px}.calendar-grid .day .amount-short{font-size:clamp(7px,18cqi,.75rem)}body[data-size=large] .entry-dialog .field input,body[data-size=large] .entry-dialog .field textarea{font-size:max(16px,1rem)}body[data-size=large] .bottom-nav .nav-btn{white-space:normal;word-break:keep-all}}

/* V1.3 Premium home: live data, restrained lighting, responsive layout */
.premium-home{display:grid;gap:16px;max-width:1100px;margin:0 auto 20px;min-width:0}
.premium-hero{position:relative;isolation:isolate;min-height:clamp(140px,22vw,230px);display:flex;align-items:center;border-radius:16px;overflow:hidden;background:#071222}
.premium-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,#071222 0%,#07122255 45%,transparent 78%),var(--hero);background-position:right center;background-size:cover;z-index:-1}
.hero-copy{padding:18px 16px;color:#f5f7fb;max-width:76%}.hero-job{font-size:.7rem;letter-spacing:.04em;color:#f6c477;font-weight:800}.hero-copy h1{font-size:clamp(1.2rem,3.6vw,2.4rem);line-height:1.25;letter-spacing:-.055em;margin:7px 0 8px;word-break:keep-all}.hero-copy h1 em{font-style:normal;color:#ffc76e}.hero-copy p{font-size:clamp(.68rem,1.6vw,.95rem);margin:0;color:#c4cfdf;line-height:1.5;word-break:keep-all}
.today-card,.premium-shortcut,.premium-add{font:inherit;cursor:pointer;text-align:left;min-width:0}.today-card{display:flex;align-items:center;gap:12px;padding:18px;border-radius:18px;border:1px solid #bb8b4c;background:radial-gradient(ellipse at 0 0,#a56d3870,transparent 50%),linear-gradient(120deg,#26282b,#161b26 50%,#382c23);box-shadow:inset 0 1px 1px #ffe7b665,0 0 14px #ec9c2010;color:#fff}.today-icon,.shortcut-icon{display:grid;place-items:center;flex:0 0 34px;color:#ffcc7c}.today-icon svg,.shortcut-icon svg{width:30px;height:30px}.today-label{font-weight:800;white-space:nowrap;font-size:.95rem}.today-label small{display:block;color:#c9c9ce;font-size:.68rem;font-weight:500;margin-top:4px}.today-card strong{margin-left:auto;color:#ffd17a;font-size:clamp(1.2rem,5.4vw,2.4rem);letter-spacing:-.055em;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}.today-card>span:last-child{color:#cfad79}
.premium-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.premium-total{min-width:0;position:relative;overflow:hidden;min-height:108px;border-radius:15px;padding:14px 10px;border:1px solid #385575;background:radial-gradient(ellipse at 90% 110%,#2877bf55,transparent 60%),linear-gradient(135deg,#203b56,#101d2d 72%);box-shadow:inset 0 1px 1px #ffffff16;color:#c7ebfc}.premium-total.expenses{border-color:#5c4051;background:radial-gradient(ellipse at 90% 110%,#d74e5950,transparent 60%),linear-gradient(135deg,#302638,#171d2b 72%);color:#f8c9cc}.premium-total.net{border-color:#2e5d5a;background:radial-gradient(ellipse at 90% 110%,#20ba8050,transparent 60%),linear-gradient(135deg,#153a3e,#11232e 72%);color:#c9f5e3}.premium-total.negative strong{color:#ff9b9b}.premium-total span{font-size:.77rem;color:#edf2f8;font-weight:700;display:flex;gap:5px;align-items:center;word-break:keep-all}.premium-total i{font-style:normal;color:inherit;font-size:1rem}.premium-total strong{display:block;font-size:clamp(.85rem,3.5vw,1.65rem);letter-spacing:-.05em;margin-top:10px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.premium-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.premium-shortcut{display:flex;align-items:center;gap:10px;min-height:78px;padding:14px 12px;border:1px solid #334b67;border-radius:16px;background:radial-gradient(ellipse at 0 0,#3e638b50,transparent 70%),linear-gradient(125deg,#1b3047,#101c2b 75%);box-shadow:inset 0 1px 1px #b6d5ff22;color:#f2f6fc}.premium-shortcut.gold{border-color:#9a7549;background:radial-gradient(ellipse at 0 0,#b77b3c90,transparent 76%),linear-gradient(125deg,#342d27,#17202e 75%)}.premium-shortcut .shortcut-icon{color:#b7d0e8}.premium-shortcut.gold .shortcut-icon{color:#ffd07a}.premium-shortcut b{display:block;font-size:1rem;word-break:keep-all}.premium-shortcut small{display:block;color:#b6c2d1;font-size:.68rem;margin-top:5px;word-break:keep-all}.premium-shortcut>span:last-child{margin-left:auto;color:#b3c7df;font-size:1.2rem}.premium-add{display:block;text-align:center;background:linear-gradient(120deg,#ffd17d,#ffad42 45%,#f78c24);border:1px solid #ffd18b;box-shadow:inset 0 1px 1px #fff3c8,0 5px 20px #ef921b25;border-radius:16px;padding:16px;color:#151b23;font-weight:900;font-size:1.12rem;min-height:54px}
.premium-home button:focus-visible{outline:3px solid #83b7ff;outline-offset:2px}.premium-home button:active{filter:brightness(.9)}
body[data-theme=light] .premium-hero{background:#071222}body[data-theme=light] .premium-home .today-card,body[data-theme=light] .premium-home .premium-shortcut{box-shadow:0 3px 12px #17253b20}
.premium-entry-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.55fr);gap:12px;align-items:end}.entry-dialog .premium-entry-row .check-row{background:none;border:0;justify-self:start;width:auto;max-width:none;min-height:44px;padding:4px 5px;gap:8px;white-space:nowrap}.entry-dialog .premium-entry-row .check-row input{width:20px;height:20px;flex-shrink:0}.entry-dialog .dialog-scroll>.field:first-child{grid-column:1/-1}.entry-dialog #entryWorkFields>.two-fields{grid-column:1/-1}
.onboard{background:radial-gradient(ellipse at 90% 0%,#355b8030,transparent 52%),var(--surface);}.onboard .industry{background:linear-gradient(135deg,var(--surface),var(--surface2));min-height:54px}
@media(max-width:760px){main#app{padding-inline:6px!important;width:100%;max-width:none;box-sizing:border-box}.main-wrap{width:100%;max-width:none}.premium-home{gap:10px;margin-bottom:12px}.premium-hero{min-height:142px;border-radius:12px}.hero-copy{padding:10px 8px;max-width:78%}.hero-copy h1{font-size:clamp(1.12rem,4.8vw,1.65rem)}.premium-totals{gap:5px}.premium-total{padding:10px 6px;min-height:88px;border-radius:12px}.premium-total span{font-size:clamp(.62rem,2.75vw,.82rem);gap:3px}.premium-total strong{font-size:clamp(.75rem,3.6vw,1.1rem)}.today-card{padding:12px 8px;gap:6px;border-radius:13px}.today-icon,.shortcut-icon{flex-basis:26px}.today-icon svg,.shortcut-icon svg{width:25px;height:25px}.today-label{font-size:.82rem}.today-label small{font-size:.59rem}.premium-shortcuts{gap:7px}.premium-shortcut{min-height:66px;padding:10px 7px;gap:6px;border-radius:12px}.premium-shortcut b{font-size:.88rem}.premium-shortcut small{font-size:.62rem}.premium-add{min-height:50px;padding:12px}.card.calendar-card{padding:6px}.calendar-grid{gap:3px}.calendar-grid .day .date{white-space:nowrap;font-size:clamp(.55rem,2.7vw,.82rem)}.entry-dialog{position:fixed;inset: max(3px,env(safe-area-inset-top)) 3px max(3px,env(safe-area-inset-bottom)) 3px;margin:0;width:auto;max-width:none;height:auto;max-height:none;border-radius:13px}.entry-dialog form{height:100%;max-height:none;min-height:0}.entry-dialog .dialog-scroll{padding:8px;min-height:0;overflow-y:auto}.entry-dialog .dialog-head,.entry-dialog .dialog-foot{padding:8px 10px}.entry-dialog .dialog-scroll{grid-template-columns:minmax(0,1fr)}.onboard{margin:3px auto;padding:15px 8px}.onboard-top{margin-bottom:16px}}
body[data-theme=dark]{background:linear-gradient(145deg,#091321,#080e18 65%,#0b1623)}
.onboard-top{position:relative;isolation:isolate}.onboard-top:before{content:"";position:absolute;inset:-10px -5px;background:linear-gradient(0deg,var(--surface),transparent 55%),url('hero-welcome.webp') center/cover;opacity:.3;z-index:-1;border-radius:15px}.premium-total strong{word-break:normal}.premium-total span{min-height:2em}
@media(max-width:760px){.entry-dialog[open]{max-height:none}.entry-dialog .dialog-scroll{align-items:start}.entry-dialog .premium-entry-row{align-items:end}.premium-home{padding-bottom:8px}.bottom-nav .nav-btn.active{background:radial-gradient(ellipse at top,#b17c3a38,transparent 85%),var(--surface);border-radius:12px}}

/* V1.3.1: maximize exact mobile calendar amounts within each cell. */
@media(max-width:760px){
  .calendar-grid .day{padding-inline:1px}
  .calendar-grid .day .amount-short{display:block;width:100%;max-width:100%;font-size:.9rem;font-weight:850;letter-spacing:-.065em;text-align:center;line-height:1.3;font-variant-numeric:tabular-nums}
  .calendar-grid .day .amount:not(.amount-short){display:none}
}

/* V1.3.2: mobile dashboard only — fit the available viewport, pin header/nav. */
@media(max-width:760px){
  html:has(body[data-view=home] .premium-home){overflow:hidden;overscroll-behavior:none}
  body[data-view=home]:has(.premium-home){height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:none}
  body[data-view=home]:has(.premium-home) .shell{flex:1 1 0;min-height:0;height:auto;overflow:hidden}
  body[data-view=home]:has(.premium-home) .main-wrap{height:100%;display:flex;flex-direction:column;min-height:0}
  body[data-view=home]:has(.premium-home) .topbar{flex:0 0 auto;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}
  body[data-view=home]:has(.premium-home) #app{flex:1 1 0;min-height:0;margin:0;padding-bottom:5px;overflow-y:auto;overscroll-behavior:contain;container-type:size}
  body[data-view=home]:has(.premium-home) .bottom-nav{position:relative;inset:auto;flex:0 0 auto}
  .premium-home{height:100%;min-height:min-content;grid-template-rows:minmax(min-content,2fr) minmax(min-content,.9fr) minmax(min-content,1.15fr) minmax(min-content,1.8fr) minmax(44px,.75fr);gap:clamp(4px,1.15cqh,10px);margin:0;padding:0;align-content:stretch}
  .premium-home .premium-hero{min-height:0}
  .premium-home .hero-copy{padding-block:clamp(6px,1.3cqh,10px)}
  .premium-home .hero-copy h1{margin:4px 0;line-height:1.2}
  .premium-home .today-card{padding-block:clamp(6px,1.4cqh,12px)}
  .premium-home .premium-total{min-height:0;padding-block:clamp(6px,1.2cqh,10px);display:flex;flex-direction:column;justify-content:center}
  .premium-home .premium-total span{min-height:0}
  .premium-home .premium-total strong{margin-top:clamp(4px,1cqh,10px)}
  .premium-home .premium-shortcuts{grid-template-rows:repeat(2,minmax(min-content,1fr));gap:clamp(4px,1cqh,7px)}
  .premium-home .premium-shortcut{min-height:44px;padding-block:clamp(5px,1.1cqh,10px)}
  .premium-home .premium-shortcut small{margin-top:3px}
  .premium-home .premium-add{min-height:44px;padding:6px;align-self:stretch}
  @container (max-height:540px){
    .premium-home .hero-copy h1{font-size:clamp(.96rem,4.5vw,1.35rem)}
    .premium-home .hero-copy p{line-height:1.25}
    .premium-home .premium-shortcut small{line-height:1.15}
  }
}

/* V1.3.3: lift hero copy only; retain the hero image and layout. */
.premium-home .premium-hero .hero-copy{position:relative;top:-4px}

/* V1.3.4 — premium home artwork only. Decorative motifs, not data charts. */
.premium-home .premium-total{isolation:isolate;justify-content:flex-start;box-shadow:inset 0 1px 1px #ffffff24,inset 0 0 18px #6aa9f00b}
.premium-home .premium-total span,.premium-home .premium-total strong{position:relative;z-index:1}
.premium-home .premium-total i{display:inline-flex;flex:0 0 auto;align-items:center;filter:drop-shadow(0 2px 3px #0006)}
.premium-home .premium-total i svg{width:22px;height:22px;display:block}
.premium-home .premium-spark{position:absolute;bottom:0;left:0;width:100%;height:27%;max-height:38px;pointer-events:none;z-index:-1;filter:drop-shadow(0 -1px 4px #ffffff16)}
.premium-home .today-icon svg,.premium-home .shortcut-icon svg{filter:drop-shadow(0 2px 5px #0008);width:32px;height:32px}
.premium-home .today-card{background:radial-gradient(ellipse at 0 0,#d39c5666,transparent 45%),linear-gradient(120deg,#302b25,#161b26 50%,#382c23);border-color:#ca9a58;box-shadow:inset 0 1px 1px #ffe7b699,inset 0 -1px 1px #ffc26488,0 0 11px #f7ab2920;position:relative;isolation:isolate}
.premium-home .today-card:after,.premium-home .premium-shortcut.gold:after,.premium-home .premium-add:after{content:"";position:absolute;inset:auto 15% 0;height:1px;background:linear-gradient(90deg,transparent,#fff0b8,transparent);box-shadow:0 0 6px #ffbb50;pointer-events:none}
.premium-home .premium-shortcut{position:relative;background:radial-gradient(ellipse at 0 0,#456c9959,transparent 70%),linear-gradient(125deg,#1c3047,#0c1828 80%);box-shadow:inset 0 1px 1px #b6d5ff33,inset 0 -1px 1px #75a7e222}
.premium-home .premium-shortcut.gold{background:radial-gradient(ellipse at 0 0,#d69a4e88,transparent 75%),linear-gradient(125deg,#342d27,#17202e 75%);border-color:#b78a4e}
.premium-home .premium-add{position:relative;background:linear-gradient(125deg,#ffd27e,#ffad32 45%,#fa8518);box-shadow:inset 0 1px 2px #fff2bf,0 3px 15px #ff9d2228}
@media(max-width:760px){.premium-home .premium-total i svg{width:clamp(15px,4.5vw,22px);height:clamp(15px,4.5vw,22px)}.premium-home .premium-total strong{margin-top:clamp(3px,.8cqh,8px)}.premium-home .today-icon svg,.premium-home .shortcut-icon svg{width:26px;height:26px}.premium-home .premium-spark{height:25%}}

/* V1.3.5 analysis metric color accents */
body[data-view=analysis] .metric-symbol{box-shadow:inset 0 1px 0 #ffffff14,0 10px 24px #02081430;}
body[data-view=analysis] .metric-symbol.gold{color:#FFD66E;background:linear-gradient(180deg,#3b3020,#261f15);border-color:#8a6630;}
body[data-view=analysis] .metric-symbol.orange{color:#FFB14A;background:linear-gradient(180deg,#382816,#241a10);border-color:#8c5a1f;}
body[data-view=analysis] .metric-symbol.amber{color:#F4A73B;background:linear-gradient(180deg,#342515,#231a11);border-color:#7d5724;}
body[data-view=analysis] .metric-symbol.red{color:#FF8E96;background:linear-gradient(180deg,#38202a,#24151d);border-color:#804052;}
body[data-view=analysis] .metric-symbol.green{color:#61E7A3;background:linear-gradient(180deg,#1c332b,#14231e);border-color:#2f7158;}
body[data-view=analysis] .metric-symbol.blue{color:#66B6FF;background:linear-gradient(180deg,#192d45,#132334);border-color:#355d89;}
body[data-view=analysis] .metric-symbol.cyan{color:#7BE4FF;background:linear-gradient(180deg,#173140,#11232e);border-color:#2f6982;}
body[data-view=analysis] .metric-symbol.purple{color:#C6A0FF;background:linear-gradient(180deg,#2a2341,#1c1830);border-color:#5e4d8c;}
body[data-view=analysis] .metric .label{color:#b8c8da;}
body[data-view=analysis] .metric .value{font-variant-numeric:tabular-nums;}

/* V1.3.6: bottom navigation artwork only */
@media(max-width:760px){
.bottom-nav .nav-icon{width:22px;height:22px;flex:none;opacity:.82;}
.bottom-nav .nav-icon svg{width:22px;height:22px;filter:drop-shadow(0 1px 2px #0004);}
.bottom-nav .nav-btn{gap:4px;}
.bottom-nav .nav-btn.active .nav-icon{opacity:1;transform:none;filter:drop-shadow(0 0 4px #ffbf5040);}
.bottom-nav .nav-btn.active{box-shadow:inset 0 -2px 0 var(--orange);}
}

/* V1.3.7: delivery-only platform counts */
#deliveryFields{grid-column:1/-1;min-width:0;display:grid;gap:6px} #deliveryFields .section-mini{display:flex;align-items:center;justify-content:space-between;gap:6px} #deliveryTotal{color:#ffa640;font-size:.85rem;white-space:nowrap} .delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px} .delivery-grid .field{min-width:0} .delivery-grid input{min-width:0;width:100%} #deliveryLegacy{margin:0} #deliveryFields [data-platform="coupang"]{color:#54b8df} #deliveryFields [data-platform="baemin"]{color:#2ac1bc} #deliveryFields [data-platform="other"]{color:#ffa640}
