@font-face{font-family:HFXHello;src:url('/hello.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:#20314b;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px}button,input,select{font:inherit}button{min-height:44px;border:1px solid #d6dee9;border-radius:10px;background:white;color:#203f69;padding:10px 15px;cursor:pointer}button:disabled{opacity:.4;cursor:default}button.primary,.seg button.selected{background:#203f69;color:white;border-color:#203f69}input,select{width:100%;padding:12px;border:1px solid #d6dee9;border-radius:9px;background:white;color:#20314b;min-height:46px;font-size:16px}input.numeric{text-align:right;font-variant-numeric:tabular-nums}label{display:block;font-weight:600;margin:15px 0 7px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.grow{flex:1}.muted,small{color:#718097}small{font-size:11px;line-height:1.6}h1{font-size:23px;margin:7px 0}h2{font-size:17px;margin:0 0 12px}h3{font-size:14px;margin:0 0 8px}p{line-height:1.6}header{position:sticky;top:0;background:#fffefef5;z-index:2;padding:calc(12px + env(safe-area-inset-top)) 17px 12px;border-bottom:1px solid #e5eaf0}header img{height:42px;width:42px;border-radius:9px}header strong{font-size:24px;letter-spacing:1px}header small{display:block;font-size:10px}header button.icon{padding:8px;width:40px;min-height:40px;border:0;background:transparent}.icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.7}main{max-width:650px;margin:auto;padding:16px 16px calc(100px + env(safe-area-inset-bottom))}.card{background:white;border:1px solid #e5eaf0;border-radius:13px;padding:16px;margin-bottom:14px;box-shadow:0 3px 14px #203f6905}.price{font-size:38px;font-weight:700;letter-spacing:-1.5px;margin:12px 0}.num{font-variant-numeric:tabular-nums}.big{font-size:27px;font-weight:700}.warning{background:#fff6e7;border:1px solid #f4d5a4;color:#75501b}.tag{font-size:11px;border-radius:5px;padding:3px 6px;background:#edf2f9;color:#526b8b}.ok{color:#38795d}.amber{color:#a66d22}.negative{color:#3475b0}.positive{color:#b45b5b}.cols{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.cols small{display:block}.cols strong{display:block;font-size:15px;margin-top:5px}.full{width:100%;margin-top:10px}.split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px}.split h3{font-size:13px;white-space:nowrap;line-height:20px}.chart{width:100%;height:172px}.chart text{font-size:9px;fill:#8995a7}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:right;padding:8px 3px;border-bottom:1px solid #eff2f6}th:first-child,td:first-child{text-align:left}th{font-weight:500;color:#7c8798}table.compare{font-size:10px}.compare td,.compare th{padding:5px 1px;white-space:nowrap}.bar{height:5px;background:#eef1f5;border-radius:5px;margin:14px 0}.bar span{display:block;height:100%;background:#294f7b;border-radius:5px}nav{position:fixed;z-index:2;bottom:0;left:0;right:0;background:#fffffff5;border-top:1px solid #e3e8ef;display:flex;justify-content:center;padding:6px 5px calc(6px + env(safe-area-inset-bottom))}nav button{flex:1;max-width:215px;border:0;color:#8a96a5;border-radius:0;font-size:11px;background:transparent}nav button.selected{color:#203f69;font-weight:700}nav svg{display:block;margin:0 auto 4px}.seg{display:flex;gap:0;margin:10px 0}.seg button{flex:1;border-radius:8px}.stepper{display:flex;gap:10px;align-items:center;margin:15px 0}.stepper strong{flex:1;text-align:center;font-size:26px}.stepper button{width:55px;font-size:23px}.note{font-size:12px;color:#73829a;line-height:1.7}.setup{max-width:480px;margin:auto;padding:30px 22px 50px}.setup .brand{text-align:center;margin-bottom:30px}.brand img{width:64px;border-radius:14px}.brand strong{display:block;font-size:34px}.setup h1{font-size:24px}.setup button{margin-top:9px}dialog{border:0;border-radius:17px;padding:25px;max-width:calc(100% - 32px);width:380px;color:#20314b;box-shadow:0 15px 70px #07182e40}dialog::backdrop{background:#14223877}dialog .close{position:absolute;right:9px;top:7px;border:0;background:transparent;font-size:25px}dialog h2{margin:5px 18px 18px 0}#toast{position:fixed;z-index:10;bottom:100px;left:50%;transform:translateX(-50%);background:#243b57ee;color:white;border-radius:20px;padding:12px 20px;max-width:90%;white-space:nowrap;display:none;font-size:13px}#banner{position:fixed;z-index:9;left:12px;right:12px;top:calc(8px + env(safe-area-inset-top));max-width:626px;margin:auto;padding:17px;background:#fff;box-shadow:0 5px 30px #19375e38;border:1px solid #d6dfec;border-radius:14px;cursor:pointer}#banner strong{display:block;font-size:17px}#splash{position:fixed;inset:0;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:20}#splash img{width:100px;border-radius:23px;margin-bottom:28px}.hello{font-family:HFXHello,'Segoe Print',cursive;color:#203f69;font-size:46px;min-height:65px}.loading{width:130px;height:3px;background:#dce4ef;margin:28px 0 10px;overflow:hidden}.loading:after{content:'';display:block;width:45%;height:100%;background:#203f69;animation:load 1s infinite alternate}#splash footer{position:absolute;bottom:calc(20px + env(safe-area-inset-bottom));left:20px;right:20px;display:flex;justify-content:space-between;font-size:9px;color:#75849a}@keyframes load{to{transform:translateX(130%)}}.fieldrow{display:grid;grid-template-columns:95px 1fr;align-items:center;gap:12px;margin-top:12px}.fieldrow label{margin:0}.center{text-align:center}.empty{text-align:center;padding:30px 0;color:#8994a6}.selectedrow{background:#eef3fa}.actions{display:flex;gap:8px}.actions>*{flex:1}a{color:#203f69}#error{color:#a55a36;font-size:12px;line-height:1.6}.progress{height:5px}.history strong{font-size:21px}.history .meta{margin-top:10px;font-size:12px;line-height:1.9}.history button{font-size:11px;min-height:30px;padding:4px 10px}@media(max-width:375px){main{padding:12px 11px 100px}.price{font-size:34px}.split{gap:7px}.split h3{font-size:11px}.card{padding:12px}.cols strong{font-size:13px}.hello{font-size:42px}}
header .grow{justify-content:flex-start} .compare th{font-size:9px} main:has(#saveTrade){padding-top:calc(14px + env(safe-area-inset-top))}

/* Keep the key and visibility control on one line, including iPhone SE. */
.setup .keyrow{align-items:stretch}
.setup .keyrow input{flex:1 1 0;min-width:0;width:0;height:46px;margin:0}
.setup .keyrow #eye{flex:0 0 64px;width:64px;height:46px;min-height:46px;margin:0;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;line-height:1}

.setup .brandfooter{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:30px 0 0;padding-top:16px;color:#75849a;font-size:10px}
.footer-right{text-align:right;white-space:nowrap}
.footer-right small{display:block;font-size:9px;line-height:1.4;color:inherit}
#splash footer{align-items:flex-end}

button.compact{font-size:11px;min-height:36px;padding:6px 10px;border-radius:8px;white-space:nowrap}header img{flex:none;display:block}

/* App uses vertical navigation at a fixed reading scale. */
html{overflow-x:hidden;overscroll-behavior-x:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden;touch-action:pan-y}
#app,main,header,.row,.fieldrow,.card{min-width:0}
.row>*{min-width:0}
.fieldrow{grid-template-columns:95px minmax(0,1fr)}
input,select{min-width:0;max-width:100%}
input[type=time]{appearance:none;-webkit-appearance:none;display:block}
input[type=time]::-webkit-date-and-time-value{text-align:right;min-width:0}
dialog{overflow-x:hidden;overscroll-behavior:contain}

/* Equal dimensions for all execution fields, including native iOS time input. */
.fieldrow>input{width:100%;min-width:0;max-width:100%;height:48px;min-height:48px;margin:0;padding:12px;line-height:22px}
input[type=time]::-webkit-datetime-edit{display:block;padding:0;min-width:0}
