*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:#F2F1EE;color:#1A1C1F;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-variant-numeric:tabular-nums;overscroll-behavior:none;user-select:none;-webkit-user-select:none}
input,textarea{user-select:text;-webkit-user-select:text}
#app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.loading{margin:auto;font-size:28px;color:#555B63}
button{font-family:inherit;cursor:pointer;touch-action:manipulation}
.bar{height:72px;flex-shrink:0;background:#1C1F23;color:#fff;display:flex;align-items:center;gap:16px;padding:0 24px}
.bar .title{font-size:20px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.bar .sp{flex:1}
.bar .meta{font-size:16px;color:#C9CDD2;white-space:nowrap}
.bar .back,.bar .hbtn{height:52px;padding:0 18px;border-radius:10px;border:2px solid #5B6470;background:transparent;color:#fff;font-size:18px;font-weight:700;white-space:nowrap}
.bar .hbtn.note{border-color:#F2A818;background:#3A3221;color:#FFE7A8}
.bar .hbtn.light{background:#fff;color:#1C1F23;border-color:#fff}
.sync{font-size:14px;font-weight:700;border-radius:20px;padding:6px 12px;white-space:nowrap}
.sync.ok{background:#24402D;color:#BFE6C9}.sync.wait{background:#4A3B12;color:#FFE7A8}.sync.bad{background:#B42318;color:#fff}
.progress{height:8px;background:#D5D3CE;flex-shrink:0}.progress i{display:block;height:8px;background:#1F4E8C}
.body{flex:1;display:flex;flex-direction:column;gap:24px;padding:28px 36px;min-height:0}
.q{margin:0;font-size:44px;font-weight:800;line-height:1.15}
.q.c{text-align:center}
.sub{font-size:22px;color:#555B63}.sub.c{text-align:center}
.grow{flex:1;min-height:0}
.yn{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:28px;min-height:0}
.big{border:0;border-radius:28px;color:#fff;font-size:100px;font-weight:800;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px}
.yes{background:#1E7B3A}.no{background:#B42318}
.primary{background:#1F4E8C;color:#fff;border:0}.go{background:#1E7B3A;color:#fff;border:0}.dark{background:#1C1F23;color:#fff;border:0}
.ghost{background:#fff;color:#1A1C1F;border:4px solid #8A8F96}
.dash{background:transparent;color:#3D4652;border:4px dashed #8A8F96}
.wide{height:110px;flex-shrink:0;border-radius:22px;font-size:36px;font-weight:800;width:100%}
.wide.disabled{background:#D5D3CE;color:#555B63;border:0}
.row2{display:grid;grid-template-columns:1fr 2fr;gap:18px;flex-shrink:0}
.row2b{display:grid;grid-template-columns:1fr 1fr;gap:18px;flex-shrink:0}
.stop{flex:1;border-radius:28px;background:#FDE7E5;border:4px solid #B42318;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:28px;text-align:center}
.stop h2{margin:0;font-size:50px;color:#8F1C13}.stop p{margin:0;font-size:24px;color:#3D4652}
.stop .wide{max-width:760px}
.tiles{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(90px,1fr);gap:16px;min-height:0;overflow-y:auto;align-content:stretch}
.tile{border-radius:20px;font-size:32px;font-weight:800;padding:6px 10px;background:#fff;color:#1A1C1F;border:4px solid #8A8F96;overflow:hidden;text-overflow:ellipsis}
.tile.on{background:#1F4E8C;color:#fff;border-color:#1F4E8C}.tile.small{font-size:24px}
.list{flex:1;display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:0}
.rrow{min-height:80px;flex-shrink:0;border-radius:16px;display:flex;align-items:center;gap:18px;padding:10px 22px;background:#fff;border:3px solid #D5D3CE;text-align:left;color:#1A1C1F;font-size:26px;font-weight:800}
.rrow.first{background:#1F4E8C;color:#fff;border-color:#1F4E8C}
.rrow .n{width:46px;height:46px;border-radius:23px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:21px;background:#E4E2DD;color:#1A1C1F}
.rrow.first .n{background:#fff;color:#1F4E8C}
.rrow .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rrow .qty{font-size:22px;font-weight:700;white-space:nowrap}
.flag{font-size:16px;font-weight:700;color:#8A4B00;background:#FFF1DC;border-radius:8px;padding:6px 10px;white-space:nowrap}
.flag.blue{color:#1F4E8C;background:#E9EEF5}.flag.run{color:#fff;background:#1E7B3A}
.split{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 500px;gap:28px;min-height:0}
.col{display:flex;flex-direction:column;gap:18px;min-height:0}
.keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:12px;flex:1;min-height:0}
.key{border-radius:16px;border:3px solid #8A8F96;background:#fff;font-size:44px;font-weight:800;color:#1A1C1F}
.key:active,.tile:active,.big:active,.wide:active,.rrow:active{filter:brightness(.9)}
.display{height:120px;flex-shrink:0;font-size:76px;font-weight:800;text-align:center;border-radius:22px;border:4px solid #1F4E8C;background:#fff;display:flex;align-items:center;justify-content:center;letter-spacing:.03em;overflow:hidden}
.display.small{height:96px;font-size:56px;justify-content:flex-end;padding:0 22px}
.display .ph{color:#B0B4BA}
.input{height:96px;font-size:36px;font-weight:700;padding:0 22px;border-radius:18px;border:4px solid #1F4E8C;font-family:inherit;width:100%;background:#fff}
textarea.input{height:auto;padding:18px 22px;resize:none;flex:1}
.label{font-size:32px;font-weight:800}
.notebox{flex:1;border-radius:28px;background:#FFF8E1;border:4px solid #F2A818;padding:32px 36px;font-size:38px;font-weight:700;line-height:1.3;overflow-y:auto}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{background:#E3F2E7;color:#1E7B3A;border-radius:30px;padding:8px 16px;font-size:19px;font-weight:700}
.photo{flex:1;border-radius:22px;background:#E9E7E2;border:3px dashed #8A8F96;display:flex;align-items:center;justify-content:center;font-size:20px;color:#555B63;overflow:hidden;min-height:0}
.photo img{max-width:100%;max-height:100%;object-fit:contain}
.filebtn{flex:1;border-radius:28px;background:#1F4E8C;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;font-size:56px;font-weight:800;cursor:pointer}
.filebtn input{position:absolute;width:1px;height:1px;opacity:0}
.filebtn small{font-size:22px;font-weight:500;color:#DCE6F3}
.rag{border-radius:28px;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center}
.rag.green{background:#1E7B3A;color:#fff}.rag.amber{background:#F2A818;color:#1A1C1F}.rag.red{background:#B42318;color:#fff}.rag.none{background:#fff;color:#1A1C1F;border:4px solid #D5D3CE}
.rag .k{font-size:22px;font-weight:700;letter-spacing:.06em}.rag .avg{font-size:140px;font-weight:800;line-height:1}.rag .avg small{font-size:46px}
.rag .lab{font-size:38px;font-weight:800}.rag .chips .chip{background:rgba(255,255,255,.22);color:inherit}
.check{border-radius:28px;background:#FFF1DC;border:4px solid #B86E00;padding:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center}
.check .v{font-size:100px;font-weight:800;line-height:1}
.foot{height:96px;flex-shrink:0;display:flex;align-items:center;gap:14px;padding:0 32px 18px}
.fbtn{height:76px;padding:0 20px;border-radius:16px;border:3px solid #8A8F96;background:#fff;font-size:21px;font-weight:800;color:#1A1C1F;display:flex;align-items:center;gap:12px;white-space:nowrap}
.fbtn.dark{background:#1C1F23;color:#fff;border-color:#1C1F23;font-size:24px}
.switch{width:60px;height:34px;border-radius:17px;position:relative;display:inline-block;flex-shrink:0;background:#8A8F96}
.switch.on{background:#1F4E8C}.switch i{position:absolute;top:4px;left:4px;width:26px;height:26px;border-radius:13px;background:#fff}.switch.on i{left:30px}
.due{height:72px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:800;letter-spacing:.04em;animation:due .9s steps(1) infinite}
@keyframes due{0%,100%{background:#B42318;color:#fff}50%{background:#FFE15A;color:#1A1C1F}}
.downbar{height:56px;flex-shrink:0;background:#FDE7E5;color:#8F1C13;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800}
.modal{position:fixed;inset:0;background:rgba(20,22,25,.6);display:flex;align-items:flex-start;justify-content:center;padding-top:60px;z-index:10}
.dialog{width:940px;max-width:calc(100% - 40px);max-height:calc(100% - 90px);background:#fff;border-radius:28px;padding:32px;display:flex;flex-direction:column;gap:18px}
.dialog.notecol{background:#FFF8E1;border:4px solid #F2A818}
.dialog h2{margin:0;font-size:36px}
.dots{display:flex;gap:20px}.dots i{width:64px;height:64px;border-radius:32px;border:4px solid #1F4E8C;background:#fff}.dots i.on{background:#1F4E8C}
.err{font-size:28px;font-weight:800;color:#8F1C13}
.locked{border-radius:20px;background:#FDE7E5;border:3px solid #B42318;padding:20px 24px;font-size:26px;font-weight:700;color:#8F1C13}
.done{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center;padding:30px}
.done h1{margin:0;font-size:56px}.done p{margin:0;font-size:26px;color:#3D4652}
.breakscr{flex:1;background:#1C1F23;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;text-align:center}
.breakscr h1{margin:0;font-size:110px}.breakscr .t{font-size:36px;font-weight:700}.breakscr p{color:#C9CDD2;font-size:22px;margin:0}
.reasons{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(100px,1fr);gap:16px;min-height:0}
.tag{font-size:20px;font-weight:700;color:#8A4B00;text-align:center}
.steppers{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;min-height:0}
.stepper{display:flex;flex-direction:column;gap:12px}
.stepper .key{flex:1;font-size:60px}
.stepper .val{height:120px;border-radius:22px;background:#1C1F23;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
.stepper .val small{font-size:18px;color:#C9CDD2}.stepper .val b{font-size:60px;line-height:1}
.hidden{display:none!important}
@media (max-width:1000px){.split{grid-template-columns:1fr 1fr}.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.q{font-size:36px}.big{font-size:72px}.rag .avg{font-size:100px}}
