:root{color-scheme:light;--bg:#f4f6f5;--ink:#172b2b;--muted:#71807e;--line:#e7edeb;--green:#136d5b;--mint:#78e3c5;--red:#ca514f;--blue:#467ac8;--amber:#956523;--dark:#102d32;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-synthesis:none;-webkit-text-size-adjust:100%}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #63bca9;outline-offset:3px}[hidden]{display:none!important}.app-shell{max-width:600px;margin:0 auto;min-height:100dvh;padding:env(safe-area-inset-top) 22px calc(100px + env(safe-area-inset-bottom))}.brand-bar{height:78px;display:flex;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:800;letter-spacing:1.8px}.brand img{border-radius:9px}.paper-badge{font-size:10px;letter-spacing:.4px;font-weight:700;padding:5px 7px;border-radius:6px;background:#e6ece9;color:#65736d}.icon-button{margin-left:auto;background:#fff;border:1px solid var(--line);border-radius:50%;width:40px;height:40px;min-width:40px;font-size:25px;color:var(--green)}.eyebrow{margin:0 0 8px;color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.3px}h1{font-size:28px;line-height:1.3;letter-spacing:-1.1px;margin:0 0 8px;font-weight:750}h2{font-size:18px;letter-spacing:-.5px;margin:0}h3{font-size:15px;letter-spacing:-.3px;margin:0}.subtitle{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.page-title{margin:12px 0 25px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:27px 1px 13px}.text-button{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:600;min-height:36px;padding:6px}.card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:21px;margin-bottom:13px;overflow:hidden}.hero{padding:26px 24px 23px;background:var(--dark);color:white;border:none;position:relative}.hero-label{font-size:13px;color:#b8cdcb;margin-bottom:11px}.hero-value{font-size:35px;line-height:1.15;font-weight:650;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;white-space:nowrap}.hero-value small{font-size:17px;margin-left:5px;letter-spacing:0;font-weight:450;color:#b8cdcb}.hero .gain{color:#ffa39a}.hero .loss{color:#92beff}.hero-pnl{margin:12px 0 25px;font-size:14px;font-weight:600}.hero-pnl span{font-size:11px;color:#a8c0bd;font-weight:400;margin-left:8px}.hero-bottom{border-top:1px solid #315052;padding-top:15px;display:flex;justify-content:space-between;gap:12px}.hero-bottom small{display:block;font-size:10px;color:#a8c0bd;margin-bottom:5px}.hero-bottom strong{font-size:15px;font-weight:550}.fine{color:var(--muted);font-size:11px;line-height:1.8;margin:10px 2px 0}.hero .fine{color:#93b1ad;margin-top:17px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.status-card{display:flex;gap:13px;align-items:flex-start}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--green);margin-top:5px;flex-shrink:0;box-shadow:0 0 0 5px #edf7f2}.status-dot.error{background:var(--red);box-shadow:0 0 0 5px #fceeee}.status-dot.waiting{background:#9aaba8;box-shadow:0 0 0 5px #f0f3f2}.status-card p{margin:7px 0 0;font-size:12px;color:var(--muted);line-height:1.7}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}.metric .label{font-size:11px;color:var(--muted);margin-bottom:9px}.metric strong{font-size:22px;font-weight:650;letter-spacing:-.7px}.metric small{font-size:12px;font-weight:400}.gain{color:var(--red)}.loss{color:var(--blue)}.neutral{color:var(--ink)}.holding{padding:17px 0;border-bottom:1px solid var(--line)}.holding:first-child{padding-top:0}.holding:last-child{padding-bottom:0;border:none}.stock-identity{display:flex;gap:11px;align-items:center;min-width:0}.stock-mark{height:38px;width:38px;flex-shrink:0;border-radius:13px;background:#edf3f0;color:#548476;display:grid;place-items:center;font-size:13px;font-weight:750}.stock-name{font-size:14px;font-weight:650;line-height:1.5}.stock-caption{font-size:11px;color:var(--muted);margin-top:3px}.align-right{text-align:right}.amount{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.change{font-size:12px;margin-top:5px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.detail-grid dt{font-size:11px;color:var(--muted);margin-bottom:5px}.detail-grid dd{font-size:13px;font-weight:600;margin:0}.progress-count{font-size:34px;letter-spacing:-1px;font-weight:650}.progress-count small{font-size:14px;color:var(--muted);font-weight:400;letter-spacing:0}.progress-svg{display:block;width:100%;height:8px;margin:17px 0 11px;border-radius:6px}.progress-bg{fill:#e9f0ec}.progress-fill{fill:var(--green)}.spark-chart{width:100%;height:135px;margin-top:14px;overflow:visible}.chart-line{fill:none;stroke:#249b80;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.chart-grid{stroke:#edf1ef;stroke-width:1}.chart-dot{fill:#249b80;stroke:white;stroke-width:3}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.empty{padding:22px 10px;text-align:center}.empty svg{width:38px;height:38px;stroke:#8ea79d;margin-bottom:12px}.empty h3{margin-bottom:9px}.empty p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}.bottom-nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);max-width:600px;width:100%;padding:10px 10px calc(10px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;background:rgba(255,255,255,.96);border-top:1px solid #e4eae7;backdrop-filter:blur(20px)}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:20%;min-height:49px;color:#8a9791;font-size:10px;font-weight:600;position:relative}.nav-item svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item.active{color:var(--green)}.nav-dot{position:absolute;top:2px;right:calc(50% - 13px);width:6px;height:6px;background:var(--red);border-radius:50%}.button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;border:0;border-radius:13px;background:var(--green);color:white;font-size:14px;font-weight:650;padding:12px 18px;gap:8px}.button.secondary{background:#edf4f0;color:var(--green)}.button.tertiary{background:transparent;color:var(--muted);font-size:12px}.button:disabled{opacity:.5;cursor:wait}.button-row{display:flex;gap:10px;margin-top:16px}.button-row .button{font-size:12px}.connect{margin-top:35px}.connect-logo{height:70px;width:70px;border-radius:22px;margin-bottom:27px;box-shadow:0 12px 25px #102d3220}.connect h1{font-size:32px;line-height:1.4}.connect .subtitle{margin:17px 0 28px;font-size:14px}.install-steps{counter-reset:steps;list-style:none;padding:0;margin:16px 0}.install-steps li{counter-increment:steps;display:flex;align-items:center;gap:11px;font-size:13px;line-height:1.7;margin:15px 0}.install-steps li:before{content:counter(steps);width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#eaf2ed;color:var(--green);font-size:11px;font-weight:700;flex-shrink:0}label{display:block;font-size:12px;font-weight:600;margin-bottom:9px}input{width:100%;height:50px;border:1px solid #dce5df;border-radius:12px;padding:12px;margin-bottom:14px;color:var(--ink);background:#fbfcfb;font-size:16px;letter-spacing:1px}input::placeholder{color:#a8b3ac;font-size:13px;letter-spacing:0}.error-message{color:var(--red);font-size:12px;line-height:1.7;margin:10px 0}.warning-banner{padding:13px 15px;margin-bottom:12px;border:1px solid #f1dfbd;background:#fff7e8;border-radius:13px;color:#856128;font-size:12px;line-height:1.7}.toast{position:fixed;z-index:10;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);width:max-content;background:#173c37;color:white;border-radius:12px;padding:13px 19px;font-size:12px;line-height:1.6;box-shadow:0 8px 25px #102d3230}.loading{padding:100px 0;text-align:center;color:var(--muted);font-size:13px}.spinner{display:inline-block;border:2px solid #dfe8e2;border-top-color:var(--green);border-radius:50%;width:25px;height:25px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.filter-row{display:flex;gap:8px;margin:18px 0}.filter{background:#e9eeeb;border:0;border-radius:10px;padding:9px 15px;min-height:38px;color:var(--muted);font-size:12px}.filter.active{background:var(--dark);color:white}.tag{display:inline-flex;border-radius:6px;background:#edf3ef;padding:4px 7px;color:var(--green);font-size:10px;font-weight:650}.tag.sell{color:var(--blue);background:#edf2fc}.tag.buy{color:var(--red);background:#fff0ee}.tag.error{color:#ad574b;background:#fff0ee}.tag.warning{color:var(--amber);background:#fff4df}.trade-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:650}.trade-date{font-size:10px;color:var(--muted);white-space:nowrap}.trade-main{margin-top:17px;font-size:22px;font-weight:650;letter-spacing:-.5px}.trade-main small{font-size:12px;font-weight:400;color:var(--muted);margin-left:7px}.reason{font-size:12px;line-height:1.8;color:#62726a;margin:13px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.alert-title{font-size:14px;font-weight:650;line-height:1.7}.alert-date{font-size:10px;color:var(--muted);margin-bottom:10px}.alert-card.selected{border:2px solid var(--green)}.alert-card summary{cursor:pointer;list-style:none}.alert-card summary::-webkit-details-marker{display:none}.alert-card summary:after{content:'자세히 보기 ↓';display:block;color:var(--muted);font-size:10px;margin-top:9px}.alert-card[open] summary:after{content:'접기 ↑'}.alert-card.unread{border-left:3px solid var(--green)}.days-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:17px 0}.day-cell{background:#f0f2f1;border-radius:8px;text-align:center;padding:9px 0;font-size:10px;color:#98a49e}.day-cell.completed{background:#e4f3eb;color:var(--green)}.day-cell.signal{background:var(--green);color:white}.day-cell.failed,.day-cell.degraded,.day-cell.skipped{background:#fff0e5;color:#a76c3c}.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:10px;color:var(--muted);line-height:1.6}.legend span:before{content:'';display:inline-block;width:6px;height:6px;background:#e7edE9;border-radius:2px;margin-right:4px}.legend .signal:before{background:var(--green)}.legend .completed:before{background:#a2d0b7}.legend .failed:before{background:#e3b28d}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;margin-top:13px}th{text-align:left;font-size:10px;color:var(--muted);font-weight:500;padding:10px 4px}td{padding:12px 4px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}th:not(:first-child),td:not(:first-child){text-align:right}.disclosure{font-size:12px;color:var(--muted);line-height:1.8}.disclosure summary{cursor:pointer;padding:12px 0;color:var(--ink);font-weight:600}.danger-text{color:var(--red)}.footer-note{text-align:center;font-size:10px;line-height:1.8;color:#98a49d;margin-top:25px}.divider{height:1px;background:var(--line);margin:18px 0}@media(min-width:600px){.app-shell{padding-top:20px}.hero-value{font-size:42px}.page-title{margin-top:20px}.brand-bar{height:70px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media(max-width:360px){.app-shell{padding-left:16px;padding-right:16px}.hero-value{font-size:30px}.hero{padding:22px 19px}.amount{font-size:12px}}
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.header-actions .icon-button{margin-left:0}.install-button{border:1px solid var(--line);background:#fff;color:var(--green);border-radius:10px;padding:8px 10px;min-height:40px;font-size:11px;font-weight:650;white-space:nowrap}.icon-button:disabled{cursor:wait;color:var(--muted)}.refresh-icon{display:inline-block}#refresh[aria-busy="true"] .refresh-icon{animation:spin .9s linear infinite}#install-dialog{width:360px;max-width:calc(100% - 32px);max-height:calc(100dvh - 48px);overflow:auto;border:1px solid var(--line);border-radius:22px;padding:22px;color:var(--ink);background:#fff;box-shadow:0 15px 70px #102d3240}#install-dialog::backdrop{background:#102d3266}#install-dialog .subtitle{margin-top:15px}#install-dialog .install-address{font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:var(--green)}@media(prefers-reduced-motion:reduce){#refresh[aria-busy="true"] .refresh-icon{animation:none}}@media(max-width:360px){.brand-bar{gap:8px}.install-button{padding:8px;font-size:10px}.header-actions{gap:6px}}
.hero-bottom>div{flex:1;min-width:0}.hero .stock-pnl{display:flex;flex-wrap:wrap;gap:0 4px;font-size:12px;font-weight:600;line-height:1.6;margin-top:6px}.stock-pnl span{white-space:nowrap}.hero .stock-pnl.neutral{color:#b8cdcb}.hero-bottom .stock-pnl-label{margin-top:3px;font-size:9px;color:#a8c0bd}
