@font-face{font-family:Roboto;src:url('/assets/Roboto.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--bg:#0c1013;--card:#24292e;--text:#f5f6f7;--muted:#a0a7b1;--border:#293038;--pink:#e622e8;--purple:#8642f4;--blue:#7b9cff;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}body{margin:0;background:#06090c;color:var(--text);font:15px/1.3 Roboto,Arial,sans-serif;-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{color:inherit;border:0;background:none;cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}a{color:var(--blue);text-decoration:none}img,video{display:block;max-width:100%}button svg{pointer-events:none}svg.icon{width:25px;height:25px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#app{max-width:480px;min-height:100dvh;background:var(--bg);margin:0 auto;position:relative;padding-top:env(safe-area-inset-top,0px);padding-bottom:calc(68px + var(--safe))}.loading{padding:80px 24px;color:var(--muted);text-align:center}.topbar{height:60px;padding:0 16px;display:flex;align-items:center;gap:20px;background:var(--bg);position:sticky;top:0;z-index:30}.topbar h1{font-size:20px;font-weight:600;margin:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .username{font-size:22px;font-weight:700}.icon-button{padding:8px;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px}.topbar .icon-button:first-child{margin-left:-8px}.spacer{flex:1}.muted{color:var(--muted)}.small{font-size:12px}.profile-main{padding:8px 16px 0}.profile-head{display:flex;align-items:center;gap:18px;min-height:139px}.avatar-stack{width:100px;flex-shrink:0;position:relative;align-self:flex-end;margin-bottom:7px}.avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;background:#131820}.avatar-stack .avatar{margin-top:25px}.note{position:absolute;left:0;top:0;max-width:92px;min-width:77px;padding:8px 10px;border-radius:17px;font-size:11px;line-height:1.15;text-align:center;color:#a9afb8;background:#292f35;z-index:1}.note:after{content:'';position:absolute;bottom:-4px;left:22px;width:8px;height:8px;background:#292f35;border-radius:50%}.avatar-plus{position:absolute;bottom:0;right:9px;background:var(--text);color:#172029;border:2px solid var(--bg);border-radius:50%;width:23px;height:23px;text-align:center;font-size:18px;font-weight:bold}.profile-info{flex:1;min-width:0}.display-name{font-weight:650;font-size:15px;margin-bottom:10px}.counts{display:flex;justify-content:space-between;gap:12px}.counts button{padding:0;text-align:left;font-size:14px}.counts strong{display:block;font-weight:650;margin-bottom:2px}.bio{line-height:1.32;white-space:pre-wrap;margin:0;font-size:14px}.profile-link{font-weight:600;display:block;margin-top:4px;overflow-wrap:anywhere}.banners{border:1px solid var(--border);border-radius:20px;font-size:12px;color:var(--muted);padding:4px 10px;margin-top:8px}.dashboard-card{width:100%;display:block;text-align:left;background:#292f34;border-radius:9px;padding:13px 14px;margin:15px 0 9px}.dashboard-card strong{display:block;font-weight:600}.dashboard-card span{font-size:12px;color:var(--muted)}.profile-actions{display:flex;gap:7px}.soft{background:#292f34;border-radius:8px;padding:8px 12px;font-weight:600;text-align:center}.profile-actions .soft{flex:1;font-size:13px;padding:8px 3px}.grid-tabs{display:flex;height:50px;align-items:stretch;position:sticky;top:60px;z-index:20;background:var(--bg)}.grid-tabs button{flex:1;position:relative;color:var(--muted)}.grid-tabs button.active{color:var(--text)}.grid-tabs button.active:after{content:'';position:absolute;bottom:0;left:26%;right:26%;height:2px;background:var(--text)}.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.tile{padding:0;position:relative;overflow:hidden;background:#1b2026;aspect-ratio:3/4}.media-grid.tall .tile{aspect-ratio:9/16}.tile img{width:100%;height:100%;object-fit:cover}.tile .overlay{position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#0006);pointer-events:none}.tile .tile-views{position:absolute;bottom:7px;left:7px;font-size:12px;text-shadow:0 1px 3px #000;display:flex;align-items:center;gap:4px}.tile .tile-views svg{width:14px;height:14px}.tile>svg{position:absolute;top:7px;right:7px;width:17px;height:17px}.bottom-nav{position:fixed;bottom:0;width:100%;max-width:480px;height:calc(58px + var(--safe));padding:6px 14px calc(6px + var(--safe));display:flex;justify-content:space-between;align-items:center;background:var(--bg);border-top:1px solid #1a1e23;z-index:50}.bottom-nav .avatar{width:27px;height:27px;border:1.5px solid #eee;padding:2px}.bottom-nav svg{width:27px;height:27px}.empty{text-align:center;padding:60px 20px;color:var(--muted)}.post-video{position:relative;aspect-ratio:9/14;background:#000}.post-video video{width:100%;height:100%;object-fit:cover}.post-author{position:absolute;top:12px;left:14px;right:14px;display:flex;gap:8px;align-items:center;font-size:13px;text-shadow:0 1px 3px #000}.post-author img{width:30px;height:30px}.post-author strong{display:block}.mute-button{position:absolute;right:12px;bottom:12px;background:#0006;border-radius:50%;padding:8px}.mute-button svg{width:19px;height:19px}.post-insights{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-bottom:1px solid #1c2227}.post-insights button{font-size:12px;font-weight:600;padding:4px 0}.post-insights svg{width:14px;height:14px}.boost{background:#343177!important;color:#aaa7db;padding:8px 14px!important;border-radius:8px}.post-icons{padding:12px 14px;display:flex;gap:14px;align-items:center}.post-icons button{padding:0;display:flex;gap:4px;align-items:center;font-size:13px}.post-caption{padding:0 14px 16px;white-space:pre-wrap;font-size:14px}.hero{padding:11px 20px 16px}.hero-thumb{width:124px;height:221px;object-fit:cover;border-radius:6px;margin:auto}.hero-counts{display:flex;justify-content:space-between;text-align:center;margin-top:24px}.hero-counts div{min-width:32px}.hero-counts span{display:block;margin-top:6px;font-size:13px;font-weight:600}.tabs{display:flex;background:var(--bg);position:sticky;top:60px;z-index:25;height:52px;border-bottom:1px solid #191f24}.tabs button{flex:1;font-size:14px;font-weight:600;color:var(--muted);position:relative}.tabs button.active{color:var(--text)}.tabs button.active:after{content:'';height:2px;background:var(--text);position:absolute;bottom:0;left:13%;right:13%}.section{padding:22px 16px;border-bottom:7px solid #171c20}.section:last-child{border-bottom:0}.section h2,.editor h2{font-size:17px;font-weight:650;margin:0 0 20px;line-height:1.3}.section h2 .icon{width:16px;height:16px;margin-left:6px;vertical-align:-2px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat-card{background:var(--card);padding:16px;border-radius:12px;min-height:80px}.stat-card span{display:block;font-size:12px;color:var(--muted);margin-bottom:10px}.stat-card strong{font-size:19px;font-weight:600}.pills{display:flex;gap:9px;margin:0 0 22px;flex-wrap:wrap}.pills button{font-size:12px;font-weight:600;border:1px solid #41474e;border-radius:30px;padding:10px 15px}.pills button.active{border-color:#292f35;background:#292f35}.chart{width:100%;display:block;overflow:visible;touch-action:pan-y}.chart text{font-family:Roboto,Arial,sans-serif;font-size:12px;fill:var(--muted)}.chart .graph-line{fill:none;stroke:var(--pink);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.chart .gray{stroke:#a0a6b3;stroke-dasharray:7 7;stroke-width:3}.chart .gridline{stroke:#1a2026;stroke-width:1}.chart .cursor{stroke:#7e858f;stroke-dasharray:3 4}.chart .tip text{fill:#fff;font-size:12px;text-anchor:middle}.legend{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px;margin-top:12px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:5px;background:var(--pink)}.dot.gray{background:#a0a6b3}.dot.purple{background:var(--purple)}.row{display:flex;justify-content:space-between;gap:14px;padding:10px 0;align-items:center}.row strong{font-weight:600}.row .metric{display:flex;align-items:center;gap:11px}.row small{display:block;color:var(--muted);margin-top:5px}.row .green{color:#46bb8b}.watch-preview{position:relative;width:93px;height:165px;margin:0 auto 14px;border-radius:6px;overflow:hidden}.watch-preview video{width:100%;height:100%;object-fit:cover}.watch-preview button{position:absolute;inset:0;display:grid;place-content:center;background:#0001}.watch-preview svg{fill:white;stroke:white;width:30px;height:30px;filter:drop-shadow(0 1px 3px #0008)}.distribution-row{margin-bottom:17px}.distribution-row .row{padding:0 0 8px;font-size:14px}.bar-track{background:#252a30;height:7px;border-radius:3px;overflow:hidden}.bar-fill{height:100%;background:var(--pink);border-radius:3px}.audience-share{display:flex;justify-content:space-between;margin:18px 0 8px}.audience-share strong{font-size:24px}.audience-share span{display:block;color:var(--muted);font-size:12px;margin-top:8px}.share-bar{display:flex;height:9px;border-radius:4px;overflow:hidden;margin:18px 0}.account-heading{padding:20px 16px 0}.account-heading strong{font-size:22px}.account-range{color:var(--muted);font-size:13px;margin-top:6px}.content-thumbs{display:flex;gap:8px;overflow:auto}.content-thumbs button{padding:0;flex-shrink:0;position:relative;width:104px}.content-thumbs img{width:104px;height:161px;object-fit:cover;border-radius:5px}.content-thumbs span{font-size:12px;display:block;padding-top:6px}.editor{padding:16px}.editor .help{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 18px}.editor label,.login-form label{display:block;font-size:13px;color:#bdc3cd;margin:14px 0 6px}.editor input,.editor textarea,.editor select,.login-form input{width:100%;border:1px solid #3b434d;background:#161c23;border-radius:9px;color:var(--text);padding:11px 12px;outline:none;min-height:43px}.editor input:focus,.editor textarea:focus,.editor select:focus,.login-form input:focus{border-color:#829df4}.editor textarea{resize:vertical;min-height:96px}.editor textarea.form-text{font:13px/1.65 Consolas,monospace;min-height:250px}.editor .primary,.login-form .primary,dialog .primary{background:#496bdf;color:#fff;font-weight:600;border:0;border-radius:9px;padding:12px 18px;min-height:44px}.editor .full{width:100%;margin-top:18px}.editor .button-row{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.editor .button-row button{flex:1}.editor .editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.editor details{border:1px solid var(--border);border-radius:12px;margin:14px 0;overflow:hidden}.editor summary{padding:16px;font-weight:600;cursor:pointer}.editor .detail-body{padding:0 14px 16px}.editor .field-help{font-size:11px;color:var(--muted);margin-top:5px}.editor .menu-link{display:flex;width:100%;padding:17px 12px;align-items:center;gap:12px;text-align:left;border-bottom:1px solid var(--border)}.editor .menu-link .icon:last-child{margin-left:auto;width:18px}.editor .editor-avatar{display:flex;align-items:center;gap:20px;margin:12px 0 24px}.editor .editor-avatar img{width:72px;height:72px}.editor .video-list{padding:0;list-style:none}.editor .video-list li{display:flex;gap:13px;align-items:center;border-bottom:1px solid var(--border);padding:12px 0}.editor .video-list img{width:55px;height:78px;border-radius:6px;object-fit:cover}.editor .video-list button{flex:1;text-align:left;display:flex;align-items:center;gap:13px;padding:0}.editor .video-list strong{display:block;margin-bottom:6px}.editor .danger{color:#f08c97}.editor .error,.login-form .error{color:#ff9d9d;font-size:13px;white-space:pre-wrap;margin:12px 0}.editor .draw-chart{background:#111820;border:1px solid #39434f;border-radius:8px;touch-action:none;display:block;width:100%;height:220px}.editor .draw-chart circle{fill:#dce4ff;stroke:#3f62d2}.editor .check{display:flex;align-items:center;gap:9px}.editor .check input{width:18px;min-height:18px}.editor .savebar{position:sticky;bottom:0;display:flex;gap:10px;z-index:40;background:var(--bg);padding:12px 0 calc(12px + var(--safe))}.editor .savebar button{flex:1}.editor .distribution-edit{display:grid;grid-template-columns:1fr 90px 30px;gap:8px;margin-top:8px}.editor .distribution-edit input{margin:0;min-width:0}.editor .distribution-edit button{font-size:22px;padding:0}.editor .status{font-size:12px;color:#89c6aa;margin:8px 0}.editor .upload-label{display:block;text-align:center;border:1px dashed #526074;border-radius:12px;padding:30px 20px;color:#cbd4e4;cursor:pointer}.editor input[type=file]{display:none}.login-form{padding:30px 24px}.login-form h2{font-size:22px}.login-form p{color:var(--muted);font-size:14px}.login-form .primary{width:100%;margin-top:18px}.settings-note{padding:28px 10px 10px;font-size:12px;color:var(--muted);text-align:center}.no-nav{padding-bottom:0!important}#toast{position:fixed;z-index:200;bottom:90px;left:50%;transform:translate(-50%,15px);background:#e5e8ee;color:#141b24;border-radius:10px;padding:12px 18px;font-size:13px;max-width:calc(100% - 32px);width:max-content;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{color:var(--text);background:#1b222a;border:1px solid #3b4653;border-radius:18px;padding:24px;width:calc(100% - 32px);max-width:400px}dialog::backdrop{background:#0009}dialog h2{font-size:19px;margin-top:0}dialog p{color:#b6bec9;font-size:14px;line-height:1.5}dialog .dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}dialog button{padding:10px;border-radius:8px}dialog .menu-link{display:block;width:100%;text-align:left;padding:13px 0;border-bottom:1px solid #35404d}.hidden{display:none!important}@media(min-width:600px){body{padding:22px 0}#app{box-shadow:0 0 0 1px #293039;min-height:calc(100dvh - 44px);border-radius:16px 16px 0 0}.topbar{border-radius:16px 16px 0 0}.bottom-nav{border:1px solid #293039;border-bottom:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.auto-model { margin: 22px 0; padding: 16px; border: 1px solid #343b42; border-radius: 12px; }
.auto-model h3 { margin: 0 0 12px; }
.auto-model label { display: block; font-size: 13px; }
.auto-model input, .auto-model select { width: 100%; box-sizing: border-box; color-scheme: dark; }
.account-mode-options { border: 0; padding: 0; margin: 20px 0; }
.account-mode-options legend { font-weight: 600; margin-bottom: 12px; }
.account-mode-option { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin: 10px 0; border: 1px solid #343b42; border-radius: 12px; cursor: pointer; }
.account-mode-option:has(input:checked) { border-color: #6878ff; background: #181f2b; }
.account-mode-option input { width: 18px; height: 18px; min-height: 0; margin: 2px 0; flex-shrink: 0; accent-color: #6878ff; }
.account-mode-option strong, .account-mode-option small { display: block; }
.account-mode-option small { margin-top: 7px; color: #aab0b9; font-weight: normal; line-height: 1.45; }
.mode-current { margin: 20px 0; padding: 16px; background: #22282f; border-radius: 12px; }
#account-mode-form .full { margin-bottom: 12px; }
