:root{color-scheme:dark;--bg:#0b1524;--panel:#14243a;--line:#2a4260;--text:#eaf3ff;--muted:#9fb5cb;--green:#5fe0a6;--red:#ff8d8d;--yellow:#ffd98a;--blue:#7fcafa}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,'Noto Sans KR','Apple SD Gothic Neo',sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
main{max-width:560px;margin:0 auto;padding:26px 16px 72px;padding-bottom:calc(72px + env(safe-area-inset-bottom))}
h1{font-size:clamp(26px,8vw,36px);line-height:1.2;letter-spacing:-1.2px;margin:12px 0 18px}
h2{font-size:20px;margin:0 0 10px;letter-spacing:-.3px}
p{margin:8px 0}
.small,small{font-size:12.5px;color:var(--muted)}
.warn{color:var(--yellow)}
.label{display:inline-block;border-radius:50px;padding:6px 12px;color:#8bf9cd;background:#173b35;font-size:12px;font-weight:700}
.card{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:18px;margin:14px 0}
.card.loan{border-color:#6c8fbb}.card.invest{border-color:#4a997c}
.k{font-size:13px;font-weight:800;color:#bcd0e4;margin-bottom:8px;letter-spacing:.2px}
.hint{font-weight:500;color:var(--muted);font-size:12px}
.row{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:14px}
.row label{color:#c9d9e8;font-size:14px;font-weight:700;white-space:nowrap}
select,input,button{font:inherit}
select,input{background:#0d1d2e;border:1px solid #38546f;color:var(--text);border-radius:12px;padding:12px 12px;outline:none}
select{flex:1;min-width:0;font-size:15px}
input{width:100%}
button{border:0;border-radius:14px;padding:14px;cursor:pointer;font-weight:800;-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.6}
.primary{display:block;width:100%;font-size:20px;min-height:60px;background:var(--green);color:#06301f}
.secondary{width:100%;font-size:16px;background:#274766;color:#e1eefa}
.linkbtn{background:none;color:var(--blue);padding:10px 4px;font-size:14px;font-weight:700}
.note{font-size:12.5px;color:var(--muted);margin:10px 2px 0}
.res-title{font-size:23px;margin:26px 0 2px}
.amount{font-size:25px;font-weight:850;letter-spacing:-.6px;color:var(--green);line-height:1.3}
.amount.no{color:var(--yellow)}
.steps{list-style:none;margin:0;padding:0}
.step{display:flex;gap:10px;padding:13px 0;border-bottom:1px solid #284157}
.step:last-child{border-bottom:0}
.step .n{font-size:20px;line-height:1.35;min-width:26px;color:#9fd9bf}
.step .t{font-size:17px;font-weight:750;line-height:1.4;word-break:keep-all}
.step .d{font-size:13px;color:var(--muted);margin-top:3px}
.step.sell .t,.step.repay .t,.step.future .t{color:#ffb3b3}
.step.buy .t{color:#b6f3d6}
.step.borrow .t{color:var(--yellow)}
.step.none .t{color:var(--yellow)}
.cashleft{margin-top:12px;padding-top:12px;border-top:1px dashed #36597a;font-size:16px}
.cashleft .n{font-size:20px;color:#9fd9bf;margin-right:6px}
.holds{list-style:none;margin:0;padding:0}
.holds li{padding:8px 0;border-bottom:1px solid #284157;font-size:14.5px}
.holds li:last-child{border-bottom:0}
.pill{display:inline-block;font-size:11px;font-weight:800;border-radius:9px;padding:2px 7px;margin-right:4px}
.pill.sell{background:#5a2b34;color:#ffc2c2}.pill.keep{background:#1f4a3a;color:#b6f3d6}
.up{color:var(--green)}.down{color:var(--red)}
.out{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #284157;font-size:15px}
.out:last-child{border-bottom:0}.out b{text-align:right}.out i{font-style:normal;font-size:13px}.out.dim{color:var(--muted)}
details.more summary{cursor:pointer;font-weight:700;color:#bcd0e4}
.notes{margin:10px 0 0;padding-left:18px;font-size:13px;color:var(--muted)}
.notes li{margin:5px 0}
.foot{font-size:12px;color:#8aa3bb;margin-top:22px;text-align:center}
.hide{display:none!important}
.login-box input{margin:10px 0}
a{color:#7dd4ff}
