.ff-theme-controls{--t-card:#f7f2ff;--t-line:#d8cbed;--t-text:#49385f;--t-active:#decff7;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--t-line);background:var(--t-card);border-radius:16px;margin:9px 0 15px}
.ff-theme-title{margin:19px 0 0;font-size:15px;color:#433454;font-weight:650}
.ff-theme-controls button{border:1px solid transparent;border-radius:12px;background:none;color:var(--t-text);min-height:44px;padding:4px 2px;font:inherit;font-size:12px;line-height:1.2}
.ff-theme-controls button[aria-pressed=true]{background:var(--t-active);border-color:var(--t-line);font-weight:650}
.ff-theme-controls button:focus-visible{outline:2px solid #8e6fc0;outline-offset:-2px}
html[data-ff-theme=dark]{color-scheme:dark;--ff-bg:#100f16;--ff-surface:#191723;--ff-card:#211d2b;--ff-lift:#2b2538;--ff-edge:#453a55;--ff-pop:#cebcff;--ff-main:#f6f1ff;--ff-sub:#c3b9d1;--ff-deep:#271c3c;color:var(--ff-main)}
[data-ff-theme=dark] body{background:var(--ff-bg)}
[data-ff-theme=dark] .app{color:var(--ff-main);background:radial-gradient(ellipse at 18% -13%,#51436c 0%,transparent 42%),#16141e}
[data-ff-theme=dark] .header{border-bottom-color:#514364}
[data-ff-theme=dark] .logo,[data-ff-theme=dark] .ff-home-content h1,[data-ff-theme=dark] .ff-home-schedule dd{color:var(--ff-main)}
[data-ff-theme=dark] .subtitle,[data-ff-theme=dark] .ff-home-circuit,[data-ff-theme=dark] .ff-home-note,[data-ff-theme=dark] .ff-home-schedule dt{color:var(--ff-sub)}
[data-ff-theme=dark] .header>div:first-child::before{background:linear-gradient(145deg,#665180,#392b4e);border-color:#9880b2;box-shadow:inset 0 1px 0 #cab3ed45}
[data-ff-theme=dark] .header>div:first-child::after{background:var(--ff-pop)}
[data-ff-theme=dark] .season{color:var(--ff-pop);background:#30253f;border-color:#66517d}
[data-ff-theme=dark] .ff-home-kicker,[data-ff-theme=dark] .ff-home-chip{color:var(--ff-pop)}
[data-ff-theme=dark] .ff-home-feature{border-color:var(--ff-edge);background:var(--ff-surface);box-shadow:0 12px 28px #0e0a167d}
[data-ff-theme=dark] .ff-home-schedule>div{background:var(--ff-lift);border:1px solid var(--ff-edge)}
[data-ff-theme=dark] .ff-home-main,[data-ff-theme=dark] .submit{background:var(--ff-pop);color:var(--ff-deep);border-color:#e0d1ff;box-shadow:none}
[data-ff-theme=dark] .ff-home-ranking{background:var(--ff-card);color:var(--ff-main);border-color:var(--ff-edge)}
[data-ff-theme=dark] .ff-home-ranking span{color:var(--ff-pop)}
[data-ff-theme=dark] .navigation{background:#282234e9;border-color:#6a5681;box-shadow:0 10px 24px #08070ec9,inset 0 1px 0 #cfb8f127}
[data-ff-theme=dark] .navigation:before{background:linear-gradient(180deg,#513c6e,#443359);border-color:#8467a6;box-shadow:inset 0 1px 0 #ece0ff34}
[data-ff-theme=dark] .navigation button{color:var(--ff-sub)}
[data-ff-theme=dark] .navigation button.chosen{color:#f0e2ff}
[data-ff-theme=dark] .hero>.timer{background:#20192ce8;border-color:#9c85bd91;box-shadow:none}
[data-ff-theme=dark] .timer strong{color:var(--ff-main)}
[data-ff-theme=dark] .timer span,[data-ff-theme=dark] .timer small{color:var(--ff-sub)}
[data-ff-theme=dark] .tabs,[data-ff-theme=dark] .panel,[data-ff-theme=dark] .ranking-page{background:var(--ff-surface);border:1px solid var(--ff-edge);box-shadow:none}
[data-ff-theme=dark] .tabs button{color:var(--ff-sub)}
[data-ff-theme=dark] .tabs button.active{background:#433157;color:#eadcff;box-shadow:none}
[data-ff-theme=dark] .driver-card,[data-ff-theme=dark] .dnf,[data-ff-theme=dark] .points{background:var(--ff-card);border-color:var(--ff-edge);box-shadow:none}
[data-ff-theme=dark] .portrait,[data-ff-theme=dark] .driver-modal-photo{background:linear-gradient(140deg,#4d3e64,#2d253d);color:var(--ff-main)}
[data-ff-theme=dark] .driver-select{color:var(--ff-main);background:#181520;border-color:#534364}
[data-ff-theme=dark] .driver-select:focus{border-color:var(--ff-pop)}
[data-ff-theme=dark] .hint,[data-ff-theme=dark] .points p,[data-ff-theme=dark] .dnf p,[data-ff-theme=dark] .notice{color:var(--ff-sub)}
[data-ff-theme=dark] .counter button{background:#433257;color:var(--ff-main)}
[data-ff-theme=dark] .success{color:#a7e8c1}
[data-ff-theme=dark] .driver-modal{background:#201929;border:1px solid #685381;border-bottom:0}
[data-ff-theme=dark] .driver-modal-item,[data-ff-theme=dark] .driver-modal-header button{background:var(--ff-lift);border:1px solid #554366;color:var(--ff-main)}
[data-ff-theme=dark] .driver-modal-info small,[data-ff-theme=dark] .driver-modal-header p,[data-ff-theme=dark] .driver-modal-arrow{color:var(--ff-sub)}
[data-ff-theme=dark] .ffg-ranking,[data-ff-theme=dark] .ffg-personal-card{color:var(--ff-main)}
[data-ff-theme=dark] .ffg-eyebrow{color:var(--ff-pop)}
[data-ff-theme=dark] .ffg-heading-info,[data-ff-theme=dark] .ffg-personal-info small,[data-ff-theme=dark] .ffg-personal-points small,[data-ff-theme=dark] .ffg-disclaimer,[data-ff-theme=dark] .ffg-demo,[data-ff-theme=dark] .ffg-personal-place{color:var(--ff-sub)}
[data-ff-theme=dark] .ffg-track{border-color:#564564;box-shadow:0 14px 30px #0e0a176d}
[data-ff-theme=dark] .ffg-track-overlay{background:linear-gradient(#130f2590,#201530c7)}
[data-ff-theme=dark] .ffg-personal-card{background:var(--ff-card);border-color:var(--ff-edge);box-shadow:none}
.ranking-page{padding:16px;margin-top:16px;border-radius:20px;background:#f8f3ffc4;border:1px solid #fff9}
.ranking-page h1{margin:0 0 6px;font-size:25px;letter-spacing:-.03em}.ranking-page p{line-height:1.45;font-size:13px;margin:8px 0;color:#5a4a70}
[data-ff-theme=dark] .ranking-page p{color:var(--ff-sub)}
[data-ff-theme=dark] .ff-theme-title,[data-ff-theme=dark] .ff-photo-policy{color:var(--ff-pop)}
[data-ff-theme=dark] .ff-theme-controls{--t-card:var(--ff-card);--t-line:#5d4a73;--t-text:var(--ff-main);--t-active:#49345e}
[data-ff-theme=dark] :where(button,a,select):focus-visible{outline:2px solid #d6bdff;outline-offset:3px}
