html{background:#101213;color-scheme:dark}body{margin:0}a{color:inherit;text-decoration:none}
#ttt-app{background:var(--tg-bg)}
#ttt-app .tg-shell{min-height:100dvh;border:0;border-radius:0}
#ttt-app .tg-side{position:sticky;top:0;height:100dvh}
#ttt-app .tg-brand{color:var(--tg-ink);text-decoration:none}
#ttt-app h1{font-size:23px;font-weight:650;letter-spacing:-.6px;margin:0}
#ttt-app h2{font-size:14px;font-weight:600;margin:18px 0 12px}
#ttt-app .tg-nav a{min-height:42px}
#ttt-app .tg-nav a:hover{color:var(--tg-ink)}
#ttt-app .tg-nav a[aria-current=page],#ttt-app .tg-button[aria-current=page]{background:var(--tg-button);border-color:var(--tg-button-border);color:var(--tg-on-accent)}
#ttt-app .tg-button{text-decoration:none}
#ttt-app .tg-side-foot{overflow-wrap:anywhere}
#ttt-app .tg-side-foot form{margin-top:15px}
#ttt-app .logout-button{display:flex;gap:8px;align-items:center;padding:8px 0;background:transparent;border:0;color:var(--tg-muted)}
#ttt-app .logout-button:hover{color:var(--tg-ink)}
#ttt-app .notice{color:var(--tg-muted);font-size:12px;line-height:1.7;margin:0 0 18px;max-width:760px}
#ttt-app .spaced{margin-top:25px}
#ttt-app .nowrap{white-space:nowrap}
#ttt-app .empty{padding:30px 12px;color:var(--tg-muted);text-align:center}
#ttt-app .search-form{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
#ttt-app .search-form .tg-button{margin-top:4px;min-height:41px}
#ttt-app .system-block{margin-bottom:25px}
#ttt-app.auth-page{min-height:100dvh;display:grid;place-items:center;padding:24px}
#ttt-app .auth-card{width:100%;max-width:390px;padding:32px;background:var(--tg-surface);border:1px solid var(--tg-border);border-radius:12px}
#ttt-app .auth-card .tg-brand{padding:0}
#ttt-app .auth-heading{margin:30px 0 25px}
#ttt-app .auth-heading h1{font-size:22px}
#ttt-app .auth-heading p,#ttt-app .auth-notice{font-size:13px;line-height:1.7;color:var(--tg-muted);margin:10px 0 0}
#ttt-app .auth-card label{display:block;margin:16px 0 7px;font-size:12px;color:var(--tg-ink)}
#ttt-app .auth-input{display:block;width:100%;min-height:44px;padding:10px 12px;background:var(--tg-bg);color:var(--tg-ink);border:1px solid var(--tg-control-border);border-radius:7px;font:16px/1.4 system-ui,sans-serif}
#ttt-app .auth-input:focus{outline:2px solid #52785e;outline-offset:1px}
#ttt-app .auth-input[readonly]{color:var(--tg-muted)}
#ttt-app .auth-card small{display:block;color:var(--tg-muted);font-size:11px;line-height:1.6;margin-top:7px}
#ttt-app .auth-submit{margin-top:22px;width:100%;min-height:44px}
#ttt-app .auth-error{font-size:13px;line-height:1.6;color:#e6b0ac;background:#2a1f1e;border:1px solid #533c38;border-radius:7px;padding:11px 13px;margin:18px 0 0}
#ttt-app .auth-error[hidden]{display:none}
#ttt-app .auth-foot{border-top:1px solid var(--tg-border);margin-top:30px;padding-top:17px;color:var(--tg-muted);font-size:11px}
@media(max-width:600px){#ttt-app .tg-side{position:static;height:auto}#ttt-app .tg-side-foot{display:block;margin-top:0;padding:0 8px}#ttt-app .tg-side-foot form{margin:0}#ttt-app .auth-card{padding:25px}#ttt-app .tg-bank-value{font-size:24px}}

#ttt-app .bank-plot{border:1px solid var(--tg-border);border-radius:10px;padding:18px;margin:20px 0}#ttt-app .bank-plot svg{display:block;width:100%;max-height:280px}#ttt-app .plot-line{fill:none;stroke:#71977b;stroke-width:3;stroke-linejoin:round}#ttt-app .plot-axis{stroke:#39433d;stroke-width:1}#ttt-app .bet-form{display:flex;gap:6px;flex-wrap:wrap}#ttt-app .bet-form .tg-input{width:110px;min-width:90px}#ttt-app .invite-link{overflow-wrap:anywhere;padding:16px;border:1px solid var(--tg-border)}
#ttt-app .manual-record{margin-top:10px}#ttt-app .manual-record summary{display:inline-block;cursor:pointer;list-style:none}#ttt-app .manual-record summary::-webkit-details-marker{display:none}#ttt-app .manual-record[open] summary{background:var(--tg-button);border-color:var(--tg-button-border)}#ttt-app .manual-record-form{margin-top:10px;max-width:320px;gap:10px}#ttt-app .manual-record-form p{flex-basis:100%;margin:0;white-space:normal}#ttt-app .manual-record-form label{display:grid;gap:5px;font-size:11px;color:var(--tg-muted)}#ttt-app .manual-record-form input[type=datetime-local]{width:220px;max-width:100%}
