:root{--navy:#0b1528;--navy2:#101c31;--blue:#237dff;--blue2:#0b67eb;--ink:#151e30;--muted:#78849a;--line:#e9eef6;--bg:#f6f8fc;--red:#fa405d;--green:#00ae8d;--gold:#ecab23;--shadow:0 4px 18px rgba(12,26,54,.06)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,'Noto Sans KR','Malgun Gothic',Arial,sans-serif;color:var(--ink);background:#e8edf5}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}svg{vertical-align:middle}#app{max-width:450px;min-height:100dvh;margin:auto;background:#fff;position:relative;box-shadow:0 0 60px rgba(5,20,45,.20);overflow:hidden}.initial{text-align:center;padding:70px 0;background:var(--navy);color:white;min-height:100vh}.view{min-height:100dvh;padding-bottom:calc(75px + env(safe-area-inset-bottom,0px));background:#fff}.view.home,.view.detail{background:var(--navy);color:white}.view.home{background:linear-gradient(150deg,#0b1528 0%,#152541 50%,#0b1528 84%)}.topbar{height:64px;padding:env(safe-area-inset-top,0px) 18px 0;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;position:relative;font-weight:780;font-size:17px;letter-spacing:-.5px}.topbar button{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);height:36px;border:0;background:transparent;color:white;display:grid;place-items:center}.topbar .back{left:10px;width:38px}.topbar .right{right:12px;padding:0 10px;font-size:12px;border-radius:8px;background:#1e2b41;height:30px;top:calc(env(safe-area-inset-top,0px) + 17px)}.topbar .star-right{right:12px;color:#f2bb36;background:transparent;font-size:20px;padding:0 5px}.app-body{padding:18px 17px}.nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,450px);height:calc(68px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#0c172a;display:flex;align-items:stretch;border-top:1px solid #26354e;box-shadow:0 -3px 8px rgba(0,0,0,.08)}.nav button{width:20%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;border:0;color:#a1acbf;font-size:10px;font-weight:650}.nav button.active{color:#3893ff}.nav svg{width:21px;height:21px;stroke-width:1.9}.nav button.active svg{stroke-width:2.6}.notice-strip{font-size:11px;padding:7px 12px;background:#fff5d9;color:#84600d;border-bottom:1px solid #f5e5b6;text-align:center}.notice-strip.real{background:#eaf9f1;color:#057853;border-bottom:1px solid #c6ecd7}.badge-demo{font-size:10px;border-radius:5px;background:#fff1c7;color:#80610e;padding:3px 6px;font-weight:750;display:inline-flex;vertical-align:middle}.status-note{font-size:11px;line-height:1.6;color:#7b889a}.home-main{padding:14px 17px 30px}.hero{height:146px;position:relative;overflow:hidden;display:flex;align-items:center;padding:10px 3px}.hero h1{font-size:31px;line-height:1.27;letter-spacing:-1.4px;margin:0;font-weight:900;position:relative;z-index:1;text-shadow:0 2px 15px #071222}.hero h1 strong{color:#3b9aff}.hero .chart-art{position:absolute;right:-8px;top:0;opacity:.72;width:78%;height:135px}.home-search{width:100%;height:49px;border-radius:14px;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 15px;color:#8b97aa;font-size:13px;box-shadow:var(--shadow)}.home-search svg{color:#101c2e}.markets{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 0 13px}.market{border:1px solid #24334d;min-height:87px;border-radius:13px;color:white;background:#15243b;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;font-size:12px;font-weight:750}.market.active{border-color:#318bff;background:linear-gradient(155deg,#258bff,#075fe0);box-shadow:0 4px 14px #006aff36}.market svg{width:24px;height:24px}.feature{width:100%;display:flex;align-items:center;gap:14px;text-align:left;min-height:98px;background:#fff;border:1px solid #eff1f5;border-radius:14px;margin-bottom:11px;padding:13px;box-shadow:var(--shadow)}.feature .feature-icon{width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;border-radius:50%;background:#f4eaff;color:#9951d8}.feature .feature-icon.blue{background:#e8f2ff;color:#257bff}.feature .feature-icon.orange{background:#fff2dc;color:#eb9a1f}.feature .feature-icon.cyan{background:#e4f5ff;color:#20a2f1}.feature .feature-title{color:#162037;font-weight:850;letter-spacing:-.6px;font-size:15px;margin-bottom:4px}.feature .feature-desc{font-size:12px;color:#68778c;line-height:1.45}.feature .chevron{margin-left:auto;color:#7c8ca3}.feature-icon svg{width:25px;height:25px}.home-privacy{color:#92a3bf;font-size:11px;margin:15px 4px 0;line-height:1.5}.seg{display:flex;background:#eef2f8;border-radius:12px;padding:3px;gap:3px}.seg button{flex:1;padding:11px 0;border-radius:9px;color:#4d5a6f;background:transparent;border:0;font-size:13px;font-weight:800}.seg button.active{background:linear-gradient(180deg,#398fff,#1973f5);color:white;box-shadow:0 3px 6px #1c78ec20}.section-title{font-size:14px;font-weight:850;letter-spacing:-.4px;margin:25px 0 11px;display:flex;align-items:center;justify-content:space-between}.section-title small{color:#9aa4b4;font-weight:550;font-size:11px}.checklist{display:grid;gap:14px;padding:2px 5px}.check-row{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:620;cursor:pointer}.check-row input{appearance:none;width:19px;height:19px;border:1.6px solid #bac7d8;border-radius:4px;margin:0;flex:0 0 auto;position:relative;background:#fff}.check-row input:checked{background:#1e7cff;border-color:#1e7cff}.check-row input:checked:after{content:'✓';font-size:14px;color:white;position:absolute;top:-3px;left:3px;font-weight:900}.check-row .question{color:#a4aebe;font-size:16px}.filter-list{border:1px solid #edf0f4;border-radius:12px;overflow:hidden;background:white}.filter-row{min-height:49px;padding:0 11px 0 13px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f2f7}.filter-row:last-child{border-bottom:0}.filter-row label{font-size:13px;color:#344054;font-weight:650;width:84px;flex:0 0 84px}.filter-row select,.filter-row input{width:100%;flex:1;min-width:0;min-height:38px;color:#24344c;border:0;outline:0;background:#fff;font-weight:760;font-size:13px}.filter-row .hint-icon{color:#a7b2c4}.search-field{display:flex;align-items:center;gap:7px;border:1px solid #e6ebf3;border-radius:12px;height:46px;padding:0 12px;background:#f8faff;margin-bottom:15px}.search-field input{border:0;background:transparent;outline:0;flex:1;min-width:0;color:#1c2b45;font-size:14px}.search-field svg{color:#7a8ba2}.mainbtn{width:100%;height:49px;color:#fff;background:#237eff;border:0;border-radius:11px;font-weight:850;font-size:15px;box-shadow:0 5px 14px #237eff24}.secondarybtn{height:41px;background:#f1f6ff;border:1px solid #cfe2ff;border-radius:10px;color:#126bf2;font-weight:800;padding:0 12px}.search-panel .mainbtn{margin-top:21px}.search-panel .fineprint{font-size:11px;color:#7a8799;text-align:center;line-height:1.6;margin:10px 0}.results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:13px 15px;border-bottom:1px solid #eef0f5}.results-toolbar .count{font-size:14px;font-weight:800}.results-toolbar .count small{display:block;font-size:11px;color:#93a0b0;font-weight:550;margin-top:4px}.sort-select{background:#fff;border:1px solid #e8edf5;border-radius:8px;padding:8px 5px;color:#334052;font-size:11px;max-width:125px;font-weight:750}.result-header{display:grid;grid-template-columns:minmax(80px,1.2fr) minmax(71px,.95fr) minmax(61px,.8fr) minmax(56px,.78fr) 35px;gap:3px;padding:11px 14px;background:#f8faff;font-size:10px;color:#6f7a8a;font-weight:800;border-bottom:1px solid #e9edf3}.result-header span:nth-child(n+2){text-align:right}.result-row{display:grid;grid-template-columns:minmax(80px,1.2fr) minmax(71px,.95fr) minmax(61px,.8fr) minmax(56px,.78fr) 35px;gap:3px;align-items:center;min-height:66px;padding:7px 14px;border-bottom:1px solid #edf0f5;background:white;cursor:pointer}.result-row:active{background:#eef5ff}.result-row .name{font-size:12.3px;font-weight:840;color:#1c2840;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.6px}.result-row .code{font-size:10px;color:#a3abba;margin-top:4px}.result-row .price{font-size:12.3px;text-align:right;font-weight:800;color:#1e2b43}.result-row .change{text-align:right;font-size:10.5px;font-weight:700;margin-top:4px}.change.up{color:var(--red)}.change.down{color:#1a78e8}.signal-text{text-align:right;font-size:11px;line-height:1.25;font-weight:840;color:#2679ee;letter-spacing:-.5px}.signal-text.green{color:#20b68d}.signal-text.red{color:#f24f6a}.signal-text.muted{color:#8796aa}.score{justify-self:end;width:33px;height:35px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:900;background:#e3f0ff;color:#1769e7}.score.high{background:#fff0ed;color:#f44767}.score.mid{background:#e5f2ff;color:#1b76ed}.score.low{background:#f1f4f8;color:#718198}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:270px;padding:25px;text-align:center;color:#8290a6;gap:9px;font-size:13px}.empty-state strong{color:#263850;font-size:16px}.empty-state svg{width:42px;height:42px;color:#7da6d9}.small-intro{font-size:12px;color:#7e899b;margin:5px 1px 16px;line-height:1.5}.detail .topbar{background:#0b1528}.detail-head{padding:18px 17px 8px}.detail-name{font-size:22px;font-weight:880;letter-spacing:-1px}.detail-code{font-size:12px;color:#9eabc0;margin-left:5px}.detail-price{font-size:34px;font-weight:900;color:#f34d68;letter-spacing:-1px;margin-top:10px}.detail-info{display:flex;justify-content:space-between;align-items:end;gap:10px}.detail-info .change{font-size:14px;margin-top:2px}.detail-meta{font-size:11px;color:#8b9ab0;text-align:right;line-height:1.9}.detail-meta strong{color:#cfd8e6;margin-left:8px;font-weight:600}.detail-tabs{display:flex;border-bottom:1px solid #24314a;margin:12px 0 0;gap:6px}.detail-tabs button{background:transparent;border:0;color:#8595aa;font-size:13px;font-weight:800;padding:13px 22px;position:relative}.detail-tabs button.active{color:#3190ff}.detail-tabs button.active:after{content:'';position:absolute;height:3px;background:#2485ff;bottom:0;left:10px;right:10px;border-radius:6px}.period-tabs{display:flex;gap:6px;padding:13px 15px}.period-tabs button{flex:1;border:0;background:#1b2941;border-radius:8px;color:#9dabbd;font-size:11px;font-weight:700;padding:9px 2px}.period-tabs button.active{background:#287df2;color:white}.chartwrap{padding:3px 8px 15px;position:relative}.chart-labels{display:flex;gap:13px;justify-content:center;color:#a5b8d1;font-size:11px;margin:3px 0 11px}.chart-labels em{display:inline-block;width:16px;height:3px;vertical-align:middle;margin-right:4px}.chart-container{height:318px;width:100%;touch-action:pan-y}.chart-container canvas{width:100%;height:100%;display:block}.insight{margin:13px 14px 20px;border-radius:14px;padding:17px 15px;background:white;color:#18233a}.insight h3{margin:0 0 12px;font-size:15px;display:flex;align-items:center;justify-content:space-between}.insight .tag{padding:5px 8px;background:#e6f9ee;border-radius:7px;color:#158653;font-size:11px}.insight p{font-size:12px;line-height:1.9;margin:3px 0;color:#374259}.insight .label{color:#8290a2;font-size:11px}.fav-row{padding:13px 13px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #edf0f4;min-height:65px}.fav-star{border:0;background:transparent;color:#f1b321;padding:8px 0;display:grid;place-items:center}.fav-name{font-size:13px;font-weight:820;letter-spacing:-.4px;min-width:0;flex:1;cursor:pointer}.fav-name span{display:block;font-size:10px;font-weight:500;color:#9aa7b7;margin-top:5px}.fav-price{text-align:right;font-size:13px;font-weight:850;min-width:65px;cursor:pointer}.fav-price small{display:block;font-size:11px;margin-top:4px}.spark{width:65px;height:24px;flex:0 0 65px}.history-row{display:flex;align-items:center;gap:13px;padding:13px 16px;min-height:69px;border-bottom:1px solid #edf1f5}.history-row .clock{color:#657d9b}.history-row .hist-title{font-size:13px;font-weight:780}.history-row .hist-date{font-size:10px;color:#9ba6b6;margin-top:5px}.history-row .hist-count{margin-left:auto;font-size:13px;color:#5e6b80}.saved-tabs{margin-bottom:17px}.saved-row{display:flex;gap:10px;align-items:center;padding:14px 5px;border-bottom:1px solid #e9edf3}.saved-row .title{font-size:13px;font-weight:800}.saved-row .subtitle{font-size:10px;color:#96a3b4;margin-top:5px;line-height:1.5}.saved-row .saved-info{flex:1;min-width:0}.saved-row .loadbtn{border:0;background:#e8f2ff;color:#1971ea;padding:8px 11px;border-radius:8px;font-size:12px;font-weight:800}.saved-row .morebtn{border:0;background:transparent;color:#6b7e99;padding:7px}.more-row{display:flex;align-items:center;gap:14px;padding:18px 18px;background:white;border-bottom:1px solid #edf1f6;color:#263650;width:100%;text-align:left;border-left:0;border-right:0;border-top:0;font-size:14px;font-weight:750}.more-row .right-arrow{margin-left:auto;color:#96a2b3}.more-row .menu-icon{color:#4f627e}.more-description{background:#f8faff;font-size:12px;line-height:1.8;color:#54647b;padding:18px;margin:16px;border-radius:14px}.mini-label{font-size:10px;color:#9ca7b8}.data-pill{border:1px solid #d9e5f5;padding:6px 8px;border-radius:8px;color:#4b678b;background:#f5faff;font-size:11px;font-weight:750}.skeleton{padding:50px 18px;text-align:center;color:#7994ba}.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:50;background:#24344d;color:#fff;border-radius:11px;box-shadow:0 8px 20px #0a183b35;padding:12px 16px;font-size:12px;max-width:min(90vw,420px);text-align:center}.error-card{margin:16px;background:#fff0f1;border:1px solid #fedbdc;padding:15px;border-radius:11px;color:#a54251;font-size:13px;line-height:1.5}.data-table{width:100%;font-size:12px;border-collapse:collapse}.data-table td{padding:10px 0;border-bottom:1px solid #edf0f4}.data-table td:last-child{text-align:right;font-weight:780}.select-title{font-weight:800;font-size:12px;margin-bottom:7px;color:#263955}.link-button{background:transparent;border:0;color:#287efb;font-size:12px;font-weight:850;padding:7px}.footer-gap{height:12px}@media(min-width:600px){body{padding-top:16px;padding-bottom:16px}#app{border-radius:24px;min-height:calc(100dvh - 32px)}.view{min-height:calc(100dvh - 32px)}.nav{bottom:16px;border-radius:0 0 24px 24px}}
/* Keep the primary search CTA within thumb reach while long filters scroll. */
.search-panel{padding-bottom:150px}.search-panel .mainbtn{position:fixed;left:50%;transform:translateX(-50%);width:min(calc(100vw - 34px),416px);bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:9;box-shadow:0 6px 24px #0a5bd761}

/* V2: keep search actions in document flow; never cover filter controls. */
.search-panel{padding-bottom:30px!important}
.search-panel .mainbtn{position:static!important;left:auto!important;bottom:auto!important;transform:none!important;width:100%!important;margin-top:22px!important;z-index:auto!important;box-shadow:0 4px 15px #0a5bd724}
.lookupbtn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:43px;margin:10px 0 4px;background:#edf5ff;border:1px solid #b9d8ff;color:#146bed;border-radius:11px;font-size:14px;font-weight:850}
.lookupbtn span{font-weight:500;font-size:11px;color:#566986}
.lookupbtn:disabled,.mainbtn:disabled{opacity:.65}
.suggestions{position:relative;width:100%;border:1px solid #d6e4f6;border-radius:12px;overflow:hidden;background:#fff;margin-top:5px;box-shadow:0 4px 12px #1b427212}
.suggestions[hidden]{display:none!important}
.suggestions button{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#fff;color:#1b2a45;border:0;border-bottom:1px solid #eff3f9;width:100%;padding:12px 14px;text-align:left}
.suggestions button:last-child{border-bottom:0}
.suggestions span{font-size:11px;color:#77869d;white-space:nowrap}
