:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172a28;background:#f7f8f4;font-synthesis:none;font-weight:450;--ink:#152726;--muted:#73807b;--line:#e3e8df;--green:#4b7c23;--lime:#b6f36b;--red:#c04439}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #71aa38;outline-offset:3px}button{min-height:48px;border:0}a{color:inherit}.app{max-width:1020px;margin:auto;padding:0 24px 106px}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:29px;font-weight:800;letter-spacing:-1.4px}.beta{font-size:9px;font-weight:700;letter-spacing:1px;background:#eaf0e5;color:#688453;padding:4px 6px;border-radius:4px;margin-left:3px}.top-actions{display:flex;align-items:center;gap:12px}.text-button{background:transparent;font-size:13px;font-weight:750;min-width:48px}.avatar{height:42px;width:48px;border-radius:50%;background:#e8ede3;font-weight:800;color:#586a4b}.eyebrow{font-size:11px;letter-spacing:1.4px;font-weight:750;color:var(--green);text-transform:uppercase}.hero{padding:38px 0 26px;display:flex;align-items:flex-end;justify-content:space-between;gap:30px}.hero h1{font-size:clamp(28px,4.5vw,42px);letter-spacing:-1.8px;line-height:1.3;margin:10px 0 12px}.hero p{font-size:14px;color:var(--muted);line-height:1.7;margin:0}.date-pill{white-space:nowrap;border:1px solid var(--line);border-radius:20px;padding:9px 12px;font-size:12px;display:flex;gap:7px;align-items:center}.dot{width:6px;height:6px;border-radius:50%;background:#81ad45;display:inline-block}.wallet{background:var(--ink);border-radius:20px;padding:25px 28px;display:flex;justify-content:space-between;align-items:center;color:#fff;gap:20px;position:relative;overflow:hidden}.wallet:after{content:"";position:absolute;right:70px;top:-60px;border:1px solid #ffffff0d;border-radius:50%;width:240px;height:240px;pointer-events:none}.wallet-label{font-size:12px;color:#a6b8af}.balance{font-size:30px;font-weight:750;letter-spacing:-.8px;margin-top:8px;font-variant-numeric:tabular-nums}.balance small{font-size:13px;color:var(--lime);letter-spacing:0;margin-left:7px}.wallet-note{color:#a6b8af;font-size:11px;margin-top:8px}.wallet-side{font-size:12px;z-index:1;text-align:right}.wallet-side strong{color:var(--lime);font-size:18px;display:block;margin-top:8px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 18px}.market-tabs,.period-tabs{background:#e9ede5;border-radius:10px;display:flex;padding:4px;gap:3px}.market-tabs button,.period-tabs button{background:transparent;border-radius:7px;min-height:40px;padding:0 18px;font-size:13px;font-weight:650;color:#6c786d}.market-tabs button.selected,.period-tabs button.selected{background:#fff;box-shadow:0 2px 5px #2233110a;color:var(--ink)}.section-count{font-size:12px;color:var(--muted)}.market-note{font-size:12px;line-height:1.6;color:var(--muted);margin:-6px 0 18px}.stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stock-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;text-align:left;display:block;width:100%;color:var(--ink);transition:transform .15s,border-color .15s;position:relative}.stock-card:hover:not(:disabled){transform:translateY(-2px);border-color:#a6b68b}.stock-top{display:flex;align-items:center;gap:12px}.symbol-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:14px;font-weight:800;flex-shrink:0;background:color-mix(in srgb,var(--accent) 10%,white);color:var(--accent)}.stock-title{min-width:0;flex:1}.stock-title h2{font-size:15px;letter-spacing:-.3px;margin:0 0 4px}.ticker{font-size:10px;color:#8c9891;letter-spacing:.7px}.arrow{color:#a7b09d}.stock-price{display:flex;justify-content:space-between;align-items:flex-end;margin-top:22px}.stock-price strong{font-size:25px;letter-spacing:-.7px;font-weight:750;font-variant-numeric:tabular-nums}.stock-price small{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.stock-bottom{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #f0f2ed;margin-top:16px;padding-top:13px;font-size:11px;color:var(--muted)}.badge{border-radius:5px;padding:5px 7px;font-size:10px;font-weight:700;white-space:nowrap}.badge.open{color:#527c2d;background:#f0f7e8}.badge.saved{color:#286b7a;background:#e7f5f4}.badge.pending{color:#85652c;background:#fbf4e6}.hint{padding:19px 20px;border-radius:13px;background:#eef2e8;font-size:12px;line-height:1.8;color:#667456;margin-top:20px}.hint strong{color:#415538}.footer{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#929b94;font-size:10px;margin-top:20px;line-height:1.6}.link-button{background:none;text-decoration:underline;color:#748069;font-size:11px;white-space:nowrap}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;background:#fbfcf9ed;backdrop-filter:blur(18px);border-top:1px solid var(--line);padding:6px 20px calc(6px + env(safe-area-inset-bottom));z-index:10}.bottom-nav button{background:none;color:#97a092;width:min(160px,33%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:57px}.bottom-nav span{font-size:24px;line-height:1.1}.bottom-nav b{font-size:11px;font-weight:600}.bottom-nav button.active{color:#294f24}.bottom-nav button.active span{background:#e7f1dc;width:56px;border-radius:14px}.page-title{margin:32px 0 10px;font-size:30px;letter-spacing:-1px}.subtitle{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 24px}.empty{background:#fff;border:1px solid var(--line);border-radius:18px;text-align:center;padding:44px 22px}.empty-symbol{font-size:32px;color:#94af77;margin-bottom:15px}.empty h2{font-size:18px;margin:0 0 10px}.empty p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 auto;max-width:340px}.primary{background:var(--ink);color:var(--lime);font-weight:750;padding:13px 22px;border-radius:11px;min-height:52px;font-size:14px}.empty .primary{margin-top:22px}.result-list{display:grid;gap:14px}.result-card{border:1px solid var(--line);background:white;border-radius:16px;padding:22px}.result-row{display:flex;justify-content:space-between;align-items:center;gap:15px}.result-card h2{font-size:16px;margin:0 0 5px}.result-card .result-date{font-size:11px;color:var(--muted)}.result-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0 0}.result-card dt{font-size:10px;color:var(--muted);margin-bottom:6px}.result-card dd{font-size:16px;font-weight:650;margin:0;word-break:break-word}.positive{color:#437b22}.negative{color:var(--red)}.result-explain{margin:14px 0 0;font-size:11px;color:var(--muted);line-height:1.7}.rank-row{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:13px;padding:18px;border:1px solid var(--line);border-radius:12px;background:white;margin-top:9px}.rank-row.me{border-color:#b7ce8a;background:#f4f9ec}.rank-num{font-size:22px;font-weight:750;color:#809172}.rank-name{font-weight:650;font-size:14px;word-break:break-word}.rank-meta{font-size:11px;color:var(--muted);margin-top:5px}.rank-score{font-size:20px;font-weight:750}.loading{min-height:320px;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:12px;color:var(--muted)}.loader{height:28px;width:28px;border:2px solid #e0e6d8;border-top-color:#76a844;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:none;border-radius:22px;max-width:480px;width:calc(100% - 32px);max-height:90dvh;padding:0;color:var(--ink);background:#fafbf7;box-shadow:0 18px 80px #142b2833}dialog::backdrop{background:#13211e88;backdrop-filter:blur(4px)}.sheet-inner{padding:25px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-head h2{font-size:23px;margin:0;letter-spacing:-.6px}.close{font-size:25px;background:#eef1e9;border-radius:50%;width:48px;flex-shrink:0}.sheet-sub{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 24px}.field-title{display:block;font-size:12px;font-weight:650;margin:20px 0 9px}.price-input{display:flex;gap:8px}.price-input button{width:48px;flex-shrink:0;background:#e9eee0;border-radius:10px;font-size:23px;color:#627b43}.price-input input{min-width:0;width:100%;text-align:center;border:1px solid #cfd9c4;border-radius:10px;padding:15px 8px;font-size:28px;font-weight:750;color:var(--ink);background:white;appearance:textfield}.price-input input::-webkit-inner-spin-button{appearance:none}.change-readout{text-align:center;font-size:12px;color:var(--green);margin:10px 0 14px;font-variant-numeric:tabular-nums}.chips{display:flex;gap:7px}.chips button{flex:1;min-width:0;background:#eef2e8;border:1px solid transparent;border-radius:8px;font-size:12px;min-height:44px;padding:8px 3px;color:#5c7048}.chips button.selected{background:#e4f0d2;border-color:#91b75f;color:#355625}.stake-input{width:100%;border:1px solid #cfd9c4;background:white;border-radius:10px;padding:13px;font-size:20px;min-height:52px;color:var(--ink);margin:10px 0}.allocation-note{font-size:11px;color:var(--muted);line-height:1.8}.trade-summary{display:grid;gap:12px;padding:18px;background:#edf2e5;border-radius:12px;margin:20px 0}.trade-summary>div{display:flex;justify-content:space-between;font-size:12px;gap:12px}.trade-summary strong{font-variant-numeric:tabular-nums}.sheet-action{position:sticky;bottom:0;background:#fafbf7;padding:15px 25px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.sheet-action .primary{width:100%}.sheet-error{font-size:12px;color:var(--red);line-height:1.6;margin:10px 0}.rules-list{padding-left:22px;font-size:13px;line-height:1.9;color:#566451}.rules-list li{margin:12px 0}.account-input{width:100%;font-size:16px;min-height:50px;border-radius:10px;border:1px solid #cad6bf;padding:12px;background:white;color:var(--ink)}#toast{position:fixed;bottom:95px;left:50%;transform:translate(-50%,20px);background:#20362e;color:#fff;padding:13px 19px;border-radius:12px;font-size:13px;max-width:calc(100% - 32px);width:max-content;opacity:0;transition:.2s;z-index:30;pointer-events:none;box-shadow:0 4px 20px #1232}#toast.visible{opacity:1;transform:translate(-50%,0)}.account-section{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.muted{color:var(--muted)}.error-panel{padding:45px 20px;text-align:center}.error-panel p{font-size:13px;color:var(--muted);line-height:1.8}.mini-info{font-size:11px;line-height:1.8;color:var(--muted);margin-top:10px}.empty-compact{font-size:12px;line-height:1.7;color:var(--muted);padding:25px;border:1px dashed var(--line);border-radius:14px}.status-strip{background:#fff3dc;color:#8b6627;padding:12px 15px;border-radius:10px;font-size:12px;line-height:1.7;margin:18px 0}
@media(min-width:760px){.stock-card:first-child{grid-column:span 2}.stock-card:first-child .stock-price{margin-top:16px}.stock-card:first-child .stock-price strong{font-size:30px}.hero p{max-width:360px}.wallet{min-height:136px}.wallet-side{min-width:160px}.bottom-nav{left:50%;transform:translateX(-50%);max-width:480px;bottom:16px;border:1px solid var(--line);border-radius:20px;padding-bottom:6px}.app{padding-bottom:110px}.result-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){.app{padding:0 18px 105px}.topbar{height:73px}.hero{padding:28px 0 24px}.hero h1{font-size:31px;letter-spacing:-1.1px}.hero p{font-size:12px}.date-pill{display:none}.wallet{padding:22px 20px;gap:8px}.balance{font-size:27px}.wallet-side{font-size:10px}.wallet-side strong{font-size:15px}.wallet-note{font-size:10px}.stock-grid{grid-template-columns:1fr}.stock-card{padding:19px}.section-head{margin-top:25px}.stock-price{margin-top:19px}.market-tabs button{padding:0 16px}.footer{align-items:flex-start}.section-count{font-size:11px}dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:94dvh;border-radius:24px 24px 0 0}.sheet-inner{padding:22px}.sheet-action{padding-left:22px;padding-right:22px}.sheet-head h2{font-size:22px}.hero .eyebrow{font-size:10px}.result-card dl{gap:9px}.result-card dd{font-size:15px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.market-tabs button,.period-tabs button,.chips button{min-height:48px}@media(max-width:359px){.section-head{flex-wrap:wrap}.app{padding-left:14px;padding-right:14px}.wallet{padding:20px 16px}.wallet-side{max-width:100px}.balance{font-size:24px}}
