.auth-panel{max-width:460px;margin:2rem auto}.yandex-login{display:block;margin-top:12px;border:1px solid var(--rule);border-radius:6px;padding:10px;text-align:center;color:var(--text)}.auth-panel h1{font-size:2rem;margin-bottom:1.5rem}.auth-panel form{display:grid;gap:1rem}.auth-panel .quiet{margin-top:.75rem}.account-bar,.history-actions,.history-editor>div{display:flex;align-items:center;gap:.5rem}.account-bar{justify-content:flex-end;margin-bottom:1rem;overflow-wrap:anywhere}.history-actions{justify-content:flex-end}.history-editor{display:grid;gap:.5rem;max-width:240px;margin-left:auto;text-align:left}.history-editor label{white-space:normal}@media(max-width:800px){.history table,.history tbody,.history tr{display:block}.history thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.history tr{padding:12px 0;border-top:1px solid var(--rule)}.history td{display:flex;justify-content:space-between;align-items:baseline;gap:8px;border:0;padding:4px 0;white-space:normal;overflow-wrap:anywhere}.history td[data-label]:before{content:attr(data-label);color:var(--muted);font:.85rem Segoe UI,sans-serif}.history-actions,.history-editor{width:100%;margin:8px 0 0;max-width:none}.history-actions button,.history-editor button{flex:1}.account-bar{justify-content:space-between}.auth-panel{margin:0 auto}}@media(max-width:520px){.detail:has(.coin-picker) section:has(.coin-picker){grid-row:1}.metrics.totals{grid-template-columns:1fr}.totals>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.chart-toolbar{gap:.25rem}}*{box-sizing:border-box}:root{color-scheme:dark;--base: #101113;--surface: #191a1e;--raised: #26272b;--hover: #2e2d2a;--rule: #38383d;--text: #f2f1ed;--muted: #b1b0b6;--amber: #f4bd63;--up: #63dcb1;--down: #ff8394;--figures: "Cascadia Mono", Consolas, monospace;font:16px/1.48 Segoe UI,system-ui,sans-serif;color:var(--text);background:var(--base);font-variant-numeric:tabular-nums}body{margin:0}main,nav,footer{width:min(1280px,94%);margin:auto}header{background:var(--surface);color:#fff}nav{display:flex;align-items:center;gap:26px;min-height:66px}a{color:var(--amber);text-decoration:none}a:hover{text-decoration:underline}nav a{color:var(--muted);padding:18px 2px;border-bottom:3px solid transparent}nav a[aria-current]{color:#fff;border-color:var(--amber)}nav .brand{display:flex;gap:9px;align-items:center;font-weight:750;font-size:1.42rem;margin-right:24px;letter-spacing:-.04em;color:#fff}.brand-mark{background:var(--amber);color:var(--base);border-radius:8px;width:30px;text-align:center;font-style:normal;height:30px;padding:5px}main{padding:34px 0 24px;min-height:80vh}h1,h2,p{margin:0}h1{font-size:clamp(2rem,4.5vw,3.3rem);letter-spacing:-.05em;line-height:1.15}h2{font-size:1.36rem;letter-spacing:-.025em;margin-bottom:16px}.status,.sectitle,.filters,.asset,.period,.allocation li{display:flex;align-items:center;gap:10px}.status{font-size:.87rem;color:var(--muted);margin:6px 0 20px}button,input,select{font:inherit}button,summary{cursor:pointer}button{min-height:44px;border:0;border-radius:7px;padding:7px 13px;color:inherit;background:var(--raised)}button:hover,summary:hover{background:var(--hover)}button:disabled{opacity:.55;cursor:default}.quiet{background:transparent;color:var(--amber);text-decoration:underline;text-underline-offset:3px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border-block:1px solid var(--rule);border-radius:6px;margin:0 0 24px}.metrics details,.totals>div{padding:18px 20px;border-right:1px solid var(--rule)}.metrics details:last-child,.totals>div:last-child{border:0}.metrics summary{list-style:none;position:relative}.metrics summary:after{content:"⌄";position:absolute;right:0;top:0;color:var(--muted)}.metrics details[open] summary:after{content:"⌃"}.metrics span,.sectitle>span,label,small{color:var(--muted)}.metrics strong,output,.price{display:block;font-size:clamp(1.3rem,2.4vw,2rem);letter-spacing:-.045em}.metrics details p{font-size:.86rem;margin-top:10px}section{padding:24px;background:var(--surface);border:1px solid var(--rule);border-radius:6px;margin-bottom:18px;min-width:0}.sectitle{justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:18px}.sectitle h2{margin:0}.sectitle>span{font-size:.88rem}.filters{align-items:end;margin-bottom:18px;gap:14px;flex-wrap:wrap}label{display:grid;gap:5px;font-size:.86rem;font-weight:600}input,select{width:100%;min-height:44px;border:1px solid #55565c;border-radius:7px;padding:8px 11px;background:var(--surface);color:var(--text)}.filters label{width:145px}.filters .wide{flex:1;min-width:180px}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:6px 10px;text-align:right;border-bottom:1px solid var(--rule)}th{color:var(--muted);font-size:.85rem;background:var(--base)}th button{padding:2px 0;background:none;font-weight:600}th:nth-child(2),td:nth-child(2),th:first-child,td:first-child{text-align:left}td:first-child{color:var(--muted)}tbody tr:hover{background:var(--hover)}.asset img{width:28px;height:28px;object-fit:contain}.asset b{color:var(--text)}small{font-size:.79rem;font-weight:500}.up,.sectitle>.up{color:var(--up)}.down,.sectitle>.down{color:var(--down)}.detail{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:18px;align-items:start}.detail label{margin-bottom:12px}.period{margin:16px 0}.period button[aria-pressed=true],.primary{color:var(--base);background:var(--amber)}.primary{width:100%}.chart{height:310px}.back{display:inline-block;margin-bottom:14px}.totals{grid-template-columns:repeat(3,1fr)}.allocation{display:flex;align-items:center;flex-wrap:wrap;gap:20px}.allocation>div{width:min(220px,100%);height:220px}.allocation ul{flex:1;padding:0;min-width:180px}.allocation li{border-bottom:1px solid var(--rule);padding:7px 0}.allocation li i{width:12px;height:12px;border-radius:50%}.allocation b{margin-left:auto}.empty,.skeleton{padding:30px 12px;color:var(--muted)}aside{border-left:4px solid var(--amber);padding:12px 16px;margin:12px 0;background:#34291c}.skeleton i{display:block;margin:10px 0;height:16px;background:var(--raised);border-radius:5px;animation:pulse 1s ease-in-out infinite alternate}.spinner{width:14px;height:14px;border:2px solid var(--rule);border-top-color:var(--amber);border-radius:50%;animation:spin .8s linear infinite}footer{color:var(--muted);padding:16px 0 28px;font-size:.85rem}:focus-visible{outline:3px solid var(--amber);outline-offset:3px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{to{opacity:.4}}@media(max-width:760px){.detail{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.totals{grid-template-columns:1fr}.metrics details,.totals>div{border:0}section{padding:16px}.filters label{width:calc(50% - 8px)}.filters .wide{flex-basis:100%}nav{gap:16px}nav .brand{margin-right:0}.chart{height:240px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important}}header{border-bottom:1px solid var(--rule)}td:not(:nth-child(2)),.metrics strong,.price,output{font-family:var(--figures)}.asset{min-height:32px}.asset small{font-size:.72rem}th[aria-sort=ascending] button,th[aria-sort=descending] button{color:var(--amber)}.metrics{border:1px solid var(--rule)}.metrics details:first-child,.totals>div:first-child{box-shadow:inset 3px 0 var(--amber)}.metrics strong{margin-top:5px}.chart-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:16px 0}.chart-toolbar .period{margin:0;padding:2px;border:1px solid var(--rule);border-radius:5px;gap:1px}.period button{min-height:38px;border-radius:3px;background:transparent;padding:6px 10px}.period button:not([aria-pressed=true]):hover{background:var(--raised)}.chart-caption{margin-top:8px;color:var(--muted);font-size:.83rem}.coin-picker{position:relative;margin-bottom:12px}.detail .coin-picker label{margin-bottom:5px}.coin-menu{position:absolute;z-index:2;inset:calc(100% + 4px) 0 auto;border:1px solid var(--rule);border-radius:6px;background:var(--surface);box-shadow:0 8px 24px #0008}.coin-menu ul{list-style:none;margin:0;padding:0;max-height:min(230px,32dvh);overflow-y:auto;overscroll-behavior:contain}.coin-menu li{min-height:44px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer}.coin-menu li:hover,.coin-menu li.highlight{background:var(--raised);color:var(--amber)}.coin-menu p,.quote-date{color:var(--muted);font-size:.85rem;padding:8px 12px}.quote-date{padding:0 0 12px}.market-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.breadth{width:min(290px,100%)}.breadth figcaption{display:flex;justify-content:space-between;font-size:.83rem;margin-bottom:7px;gap:8px}.breadth{margin:0}.breadth-bar{height:10px;display:flex;gap:2px;background:var(--base);overflow:hidden}.breadth-bar i{min-width:0;background:var(--rule)}.breadth-bar .gain{background:var(--up)}.breadth-bar .loss{background:var(--down)}@media(max-width:600px){.market-heading{align-items:start;gap:12px}.breadth{width:100%}}
