/* v8. An uninterrupted game table, not a stack of web cards. */
html{background:#101f22}body[data-palette]{background:radial-gradient(ellipse at 50% 45%,#31524e 0,#1b3334 45%,#0c1b20 100%);color:#f1eee1;--ink:#f1eee1;--muted:#a7beb6;--white:#1d3738;--line:#3c5753;--green:#dfbd79;--coral:#dfbd79;font-family:system-ui,sans-serif}
body[data-palette].playing-view{height:100dvh;overflow:hidden;position:fixed;inset:0}.app-shell,.playing-view .app-shell{margin:0;padding:0 14px;max-width:1100px;margin-inline:auto}body[data-palette] .header{height:56px;min-height:56px;border:0;padding:0;display:flex;gap:12px;background:none}body[data-palette] .header-title{display:block;font-size:14px;font-weight:800;letter-spacing:3px;color:#f1dfb3}body[data-palette] .player-bar{margin-left:auto;width:auto;gap:10px}body[data-palette] .header-metric{color:#edcd8e;font-weight:750}body[data-palette] .rank-badge,body[data-palette] .streak-metric{display:none}body[data-palette] .sound-button,body[data-palette] .arena-menu{display:grid;place-items:center;width:40px;height:40px;min-width:40px;border:1px solid #78978d44;border-radius:50%;background:#ffffff09;color:#e6ecdf;font-size:19px;padding:0}body[data-palette] .arena-menu:active{background:#ffffff20}
body[data-palette] .playing-view main,body[data-palette] main{max-width:1100px}body[data-palette] .run-bar{height:32px;margin:0 auto 8px;padding:0 4px;max-width:640px;background:none;border:0;display:flex;justify-content:space-between}body[data-palette] .run-heading h2{font-size:12px;color:#bcd0c6;font-weight:500}body[data-palette] .run-icon,body[data-palette] .run-heading p,body[data-palette] .run-score{display:none}body[data-palette] .run-progress-wrap{flex-direction:row;gap:8px}body[data-palette] #run-position{color:#d5e4d8;font-size:10px}body[data-palette] .run-progress>span{width:17px;height:4px;background:#58746d}body[data-palette] .run-progress>span.current{background:#eaca88}body[data-palette] .run-progress>span.done{background:#8fd0ad}
body[data-palette] .training-layout{display:flex;flex-direction:column;gap:8px;padding:0;align-items:center}body[data-palette] .board-column{width:calc(var(--arena-board,320px) + 12px);max-width:100%}body[data-palette] .board-card{border:0;padding:0;background:none;box-shadow:none;overflow:visible;border-radius:0}body[data-palette] .board-heading{height:22px;min-height:22px;padding:0 8px;align-items:center}body[data-palette] .turn-line{font-size:11px;color:#deeee1}body[data-palette] .puzzle-meta{color:#91afa4;font-size:9px}body[data-palette] #board-goal{margin:3px 0 6px;padding:0;text-align:center;font-size:20px;font-weight:750;letter-spacing:-.5px;color:#fff0d0}body[data-palette] .board-surround{grid-template-columns:12px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 14px;gap:0}body[data-palette] .board{border-radius:4px;box-shadow:0 12px 32px #0005,0 0 0 1px #b2c4ad44}body[data-palette] .three-active>.board{box-shadow:none}body[data-palette] .rank-labels,body[data-palette] .file-labels{color:#b4c9bb;font-size:9px}body[data-palette] .three-tools{margin:2px 0 0;gap:5px}body[data-palette] .three-tools button{background:#0b202366;border:1px solid #9db2a333;color:#bed3c5;min-height:28px;padding:4px 9px;border-radius:6px;font-size:10px}body[data-palette] .three-tools span{display:none}body[data-palette] .three-canvas{filter:drop-shadow(0 18px 13px #0005)}body[data-palette] .board-footer{min-height:32px;padding:0 7px;color:#a6bfb3;font-size:10px}body[data-palette] .board-footer .icon-button{background:#ffffff09;border:1px solid #9cb4a52b;border-radius:50%;width:30px;height:30px;color:#c9ddca;font-size:20px}
body[data-palette] .training-sidebar{width:min(100%,620px);padding:0;min-height:0;max-height:calc(100dvh - var(--arena-board,320px) - 209px);overflow:auto;scrollbar-width:thin;align-self:auto;display:block}body[data-palette] .task-card{padding:8px 10px;background:#0b202377;border:1px solid #74928a30;box-shadow:0 6px 20px #0002;border-radius:17px;display:grid;grid-template-columns:1fr auto;gap:7px}body[data-palette] .task-card>h2,body[data-palette] .card-eyebrow,body[data-palette] #task-description,body[data-palette] .task-card .under-button{display:none}body[data-palette] .feedback{grid-column:1/-1;min-height:31px;padding:4px 5px;font-size:11px;line-height:1.4;border:0;background:transparent!important;color:#d1e1d7}body[data-palette] .feedback.good{color:#a9edbe}body[data-palette] .feedback.bad{color:#ffc7a7}body[data-palette] .help-actions{margin:0;min-height:36px;gap:12px}body[data-palette] .help-actions button,body[data-palette] .help-actions button:first-child{color:#cee2d3;font-size:11px}body[data-palette] .task-card .primary{grid-column:2;grid-row:2;min-width:100px;padding:8px 12px;border-radius:11px;background:linear-gradient(#f2d89e,#c6a361);border:1px solid #efd8a0;color:#27362e;font-size:11px;min-height:36px}body[data-palette] .task-card .move-list,body[data-palette] .solution-note,body[data-palette] .reward-button{grid-column:1/-1}body[data-palette] .task-card .move-list{margin:0}body[data-palette] .solution-note{color:#c2d7ca;font-size:11px}body[data-palette] .move-token{background:#45655a;color:#f1f3df}body[data-palette] .toast{bottom:12px;left:50%;background:#f1d69d;color:#213b31}body[data-palette] .pause-overlay{background:#10282cf5;color:#e5eadb}body[data-palette] .mode-banner{font-size:10px;background:#3b5e4e;color:#d5e3cf;margin:2px;padding:3px}
/* Secondary navigation lives in a dedicated game menu. */
body[data-palette] dialog{background:linear-gradient(150deg,#294740,#10282d);border:1px solid #6e8e73;color:#f2e7cd;border-radius:24px;box-shadow:0 25px 70px #0008;width:min(460px,92vw)}body[data-palette] dialog::backdrop{background:#041316bd;backdrop-filter:blur(9px)}body[data-palette] dialog h2{color:#f0d59b}body[data-palette] dialog p{color:#bbd0c1}body[data-palette] .dialog-close{background:#ffffff0b;color:#e1e9d7}body[data-palette] #play-menu .navigation-rail{display:block;position:static;inset:auto;width:100%;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}body[data-palette] #play-menu .brand,body[data-palette] #play-menu .rail-bottom{display:none}body[data-palette] #play-menu .navigation-rail nav{margin:12px 0;height:auto;display:flex;flex-direction:row;gap:6px;width:100%;max-width:none}body[data-palette] #play-menu .nav-button{flex:1;display:flex;flex-direction:column;background:#ffffff08!important;border-radius:12px;color:#d9e6d7;padding:12px 5px;font-size:11px}body[data-palette] #play-menu .nav-button:before{display:none}body[data-palette] #play-menu .nav-button svg{width:21px;height:21px}body[data-palette] #play-menu .game-tools{display:flex;position:static;flex-wrap:wrap;justify-content:center;gap:8px;height:auto;margin:14px 0}body[data-palette] #play-menu .game-tools button{background:#415e4e;border:1px solid #8aab8644;color:#e6ead8;border-radius:10px;padding:12px;font-size:12px}body[data-palette] #play-menu .daily-challenge,body[data-palette] #play-menu .practice-summary{background:#ffffff07;border:1px solid #8eac882f;color:#dbe5d0;border-radius:15px}body[data-palette] #play-menu .daily-challenge{padding:18px;min-height:150px}body[data-palette] #play-menu .practice-summary{padding:16px}body[data-palette] #play-menu .quiet-note{color:#a8bcaf;font-size:11px}body[data-palette] #play-menu .challenge-art{opacity:.5}body[data-palette] .view:not(#train-view){padding-bottom:20px}body[data-palette] .stats-panel,body[data-palette] .stat-card,body[data-palette] .theme-card{background:#203e3c;border-color:#526f5b;color:#e4e8d8}body[data-palette] .page-heading h1{color:#e9e3c9}
@media(min-width:900px){body[data-palette] .training-layout{flex-direction:row;justify-content:center;gap:34px;align-items:center}body[data-palette] .training-sidebar{max-width:280px;max-height:60dvh}body[data-palette] .run-bar{max-width:900px}body[data-palette] .board-column{width:min(60vw,calc(100dvh - 190px));max-width:640px}body[data-palette] .task-card{display:flex;flex-direction:column;padding:18px}body[data-palette] .feedback{font-size:13px}body[data-palette] .help-actions{justify-content:space-between}}
@media(max-height:650px){body[data-palette] .header{height:46px;min-height:46px}body[data-palette] .run-bar{height:24px;margin-bottom:2px}body[data-palette] #board-goal{font-size:17px}body[data-palette] .training-layout{gap:3px}body[data-palette] .training-sidebar{max-height:calc(100dvh - var(--arena-board) - 185px)}}

body[data-palette]>.navigation-rail{display:none}body[data-palette] #board-goal{display:block}body[data-palette] #next:not([hidden]){background:#ffffff0c;color:#bfd4c3;border:1px solid #78977b55}body[data-palette] .feedback.neutral,body[data-palette] .feedback.help{color:#d1e1d7}body[data-palette] .feedback.good{color:#b9f3c4}body[data-palette] .feedback.bad{color:#ffc6a6}
body[data-boot=loading]>.app-shell{visibility:hidden}#game-boot{position:fixed;inset:0;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;color:#e8d5a2;z-index:100;background:radial-gradient(ellipse,#244640,#0d2126);font-family:system-ui}#game-boot>span{font-size:72px;line-height:1.2}#game-boot strong{font-size:22px;letter-spacing:6px}#game-boot small{font-size:12px;color:#a4bdac}#game-boot button{background:#d8bc80;border:0;border-radius:9px;padding:12px;color:#19342d}body[data-palette] .playing-view .daily-challenge{display:none}
body[data-palette] .help-actions{flex-wrap:nowrap;gap:10px}body[data-palette] .help-actions button{white-space:nowrap}body[data-palette] .task-card .primary{min-width:86px;align-self:center}body[data-palette] .training-sidebar{padding-bottom:6px}
body[data-palette]{--surface:#203b3a;--surface2:#2b4943;--text:#e8e6d6;--accent:#d7bd7e;--accent-text:#1c342b;--muted:#a7beb6;--line:#4b6b5a}body[data-palette] button:focus-visible,body[data-palette] a:focus-visible{outline-color:#e7cc91}

/* v9: messages stay out of layout; essential actions only. */
body[data-palette] .toast{position:fixed!important;inset:auto 12px max(10px,env(safe-area-inset-bottom)) 12px;transform:none!important;width:auto;max-width:480px;margin:auto;z-index:70;pointer-events:none;max-height:80px;overflow:hidden}
body[data-palette] .feedback{height:42px;min-height:42px;max-height:42px;overflow:auto;margin:0;align-items:center}
body[data-palette] .simple-menu-actions{display:grid;gap:8px;margin-top:18px}
body[data-palette] .simple-menu-actions button{display:block;width:100%;min-height:46px;border:1px solid #6e8d7755;background:#29493f;color:#e5e7d5;border-radius:10px;font-size:14px;text-align:left;padding:12px 16px;margin:0}
body[data-palette] #play-menu [hidden]{display:none!important}body[data-palette] #play-menu{max-height:calc(100dvh - 32px);padding:24px}
body[data-palette] #play-menu .navigation-rail nav{margin-top:18px}

#board .suggested-from:after,#board .suggested-to:after{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);z-index:6;padding:1px 3px;font:600 9px system-ui;color:white;background:#145a98;border-radius:3px;content:'Фигура';pointer-events:none;width:auto;height:auto}#board .suggested-to:after{content:'Сюда';background:#9b4c08}#board .suggested-from{box-shadow:inset 0 0 0 3px #207bce}#board .suggested-to{box-shadow:inset 0 0 0 3px #e58c2f}
/* Shared game menu hierarchy: modes, then settings. */
body[data-palette] #play-menu{position:fixed;top:auto;bottom:max(12px,env(safe-area-inset-bottom));margin:0 auto;width:calc(100% - 24px);max-width:440px;max-height:calc(100dvh - 32px);overflow:auto;border-radius:20px;padding:18px;background:#173b39}
body[data-palette] #play-menu .menu-settings{border-top:1px solid #698c7b55;margin-top:14px;padding-top:14px}
body[data-palette] #play-menu .menu-settings button{width:100%;height:44px;min-height:44px;border-radius:10px;font-size:14px}
body[data-palette] #play-menu h2{font-size:18px}

body[data-palette] .xp-metric{position:relative;overflow:visible}body[data-palette] .xp-pop{position:absolute;top:calc(100% + 7px);right:0;z-index:90;white-space:nowrap;padding:6px 9px;border-radius:10px;background:#d9eeb6;color:#21382c;font:800 13px system-ui;box-shadow:0 3px 12px #001c3066;pointer-events:none}body[data-palette] .xp-pop[hidden]{display:none!important}

/* v14: one catalogue, six real progress counters, no competing dashboards. */
body[data-palette]:not(.playing-view){min-height:100dvh;overflow:auto}body[data-palette] .collection-home{max-width:680px;margin:0 auto;padding:20px 0 30px}body[data-palette] .home-heading .eyebrow{font-size:10px;letter-spacing:2px;color:#b8cfbe;margin:0 0 9px}body[data-palette] .home-heading h1{font-size:30px;line-height:1.15;letter-spacing:-.8px;margin:0 0 10px;color:#fff1d0}body[data-palette] .home-heading p{font-size:13px;color:#a7beb6;margin:0}body[data-palette] .home-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0 28px}body[data-palette] .home-actions button,body[data-palette] .home-actions a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px;padding:14px;border-radius:14px;border:1px solid #688b7759;font:650 14px system-ui;text-decoration:none}body[data-palette] .home-primary{background:#e5cd95;color:#20372e}body[data-palette] .home-secondary{background:#24473e;color:#f1dfb3}body[data-palette] .collection-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}body[data-palette] .collection-heading h2{font-size:18px;margin:0;color:#eae6d2}body[data-palette] .collection-heading button{color:#c7dacd;font-size:12px;padding:8px 0}body[data-palette] .theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}body[data-palette] .theme-card{display:flex;gap:12px;align-items:center;text-align:left;min-height:112px;padding:16px;border:1px solid #51736580;background:#1c3c36;border-radius:15px;box-shadow:none;color:#e6e9d9}body[data-palette] .theme-card-icon{font-size:27px;flex:0 0 30px;background:none;width:auto;height:auto;margin:0;color:#daca9a}body[data-palette] .theme-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}body[data-palette] .theme-content strong{font:650 15px system-ui}body[data-palette] .theme-progress-label{font-size:12px;color:#bfd3c5}body[data-palette] .theme-progress-label b{color:#f1dfb3}body[data-palette] .theme-content small{font-size:10px;color:#8fac9c}body[data-palette] .theme-progress-track{display:block;height:3px;border-radius:5px;background:#476356;overflow:hidden}body[data-palette] .theme-progress-track i{display:block;height:100%;background:#cddda7}body[data-palette] .theme-arrow{font-size:25px;color:#96b49f}body[data-palette] .collection-home .section-footnote{font-size:10px;color:#829f90;margin:18px 0 5px}body[data-palette] .save-note{font-size:11px;line-height:1.5;color:#9ab6a4;margin:0}body[data-palette] .menu-options{margin-top:20px;border-top:1px solid #6f8d7040;padding-top:14px}body[data-palette] .menu-options summary{font-size:13px;color:#a8c1ae;cursor:pointer;padding:6px 0}body[data-palette] .menu-options .menu-settings{border:0;margin:8px 0 0;padding:0}body[data-palette] #play-menu .nav-button{display:flex;flex-direction:row;min-height:46px;padding:12px 16px;font-size:14px;text-align:left}body[data-palette] .collection-progress{font-size:10px;color:#a5c0af;white-space:nowrap;margin-left:auto;margin-right:12px}body[data-palette] .run-progress-wrap{flex-shrink:0}body[data-palette] .puzzle-meta,body[data-palette] .board-footer{display:none}body[data-palette] .task-card{background:none;box-shadow:none;border:0;border-radius:0}body[data-palette] .mode-banner{display:none!important}
@media(max-width:520px){body[data-palette] .collection-home{padding-top:13px}body[data-palette] .theme-grid{grid-template-columns:1fr}body[data-palette] .theme-card{min-height:87px;padding:12px 14px}body[data-palette] .home-heading h1{font-size:27px}body[data-palette] .home-actions{gap:8px;margin:20px 0 22px}body[data-palette] .home-actions button,body[data-palette] .home-actions a{font-size:12px;padding:12px;min-height:56px}body[data-palette] .run-heading h2{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body[data-palette] .collection-progress{font-size:9px;margin-right:7px}}
body[data-palette] #play-menu .menu-options-visible{margin-top:10px;border:0;padding-top:0}body[data-palette] #play-menu .menu-options-visible .menu-settings{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}body[data-palette] #play-menu .menu-options-visible .menu-settings>*{min-height:44px;padding:9px 10px;font-size:12px;text-align:center;justify-content:center}body[data-palette] #play-menu .menu-options-visible .menu-settings>select{width:100%}
/* Catalogue progress is the meaningful count; the five-puzzle batch stays internal. */
body[data-palette] .run-progress-wrap,body[data-palette] #run-position,body[data-palette] #run-progress{display:none!important}body[data-palette] .board-heading{display:none!important}body[data-palette] .board-card>.turn-line{display:flex;justify-content:center;align-items:center;gap:7px;min-height:24px;margin:7px 0 0;font-size:11px}body[data-palette] .feedback.neutral:has(#feedback-text:empty){display:none!important}
body[data-palette] #train-view .run-heading{display:none!important}body[data-palette] #train-view .collection-progress{margin-left:0;margin-right:auto}
body[data-palette] #train-view .collection-progress{display:flex;align-items:center;gap:10px;margin:0 auto;font-size:11px;color:#b9cbbd;padding:3px 10px;border:1px solid #91ad8d25;border-radius:20px;line-height:16px}
.collection-progress b{color:#f0dda8;font-size:12px;font-weight:750}.collection-progress .progress-total{color:#95ae9f}
.collection-progress progress{appearance:none;border:0;width:68px;height:4px;border-radius:8px;background:#ffffff16;overflow:hidden}.collection-progress progress::-webkit-progress-bar{background:#ffffff16;border-radius:8px}.collection-progress progress::-webkit-progress-value{background:#d7bf7e;border-radius:8px}.collection-progress progress::-moz-progress-bar{background:#d7bf7e;border-radius:8px}
@media(orientation:portrait) and (max-height:700px){body[data-palette].playing-view{position:relative;height:auto;min-height:100dvh;overflow-y:auto}body[data-palette].playing-view .app-shell{padding-bottom:16px}}
body[data-palette] .task-card>.help-actions{grid-column:1;grid-row:2}
#train-view #reveal{display:none!important}body[data-palette] #train-view .help-actions #hint{background:#d8c18b;color:#183a30;border-radius:12px;min-height:42px;padding:8px 20px;font-weight:700}body[data-palette] #train-view #next{font-size:0;min-width:44px;width:44px;height:42px;padding:0;border-radius:12px}body[data-palette] #train-view #next span{font-size:22px}
body[data-palette] .feedback.help:has(#feedback-text:empty){display:none!important}
body[data-palette] #train-view .board-card>.collection-progress{width:fit-content;margin:6px auto 8px}
/* Menu rows must grow with explanatory text, never inherit board-button sizing. */
body[data-palette] #play-menu{box-sizing:border-box;overflow-x:hidden}
body[data-palette] #play-menu .menu-options-visible .menu-settings{grid-template-columns:minmax(0,1fr)}
body[data-palette] #play-menu .menu-options-visible .menu-settings>button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;width:100%;height:auto;min-height:46px;padding:12px 14px;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.35}
body[data-palette] #play-menu .menu-settings button small{display:block;font-size:11px;line-height:1.4;font-weight:400;color:#b6cbc1}
body[data-palette] #play-menu .menu-settings button span{max-width:100%}

body[data-palette] #play-menu .menu-options-visible .menu-settings>button{font-size:13px!important;text-align:left!important}
body[data-palette] #play-menu .menu-settings button span{font-size:13px!important;text-align:left!important}
body[data-palette] #play-menu .menu-settings button small{font-size:11px!important;margin-top:4px!important;opacity:1!important}
body[data-palette] #next{font-size:12px!important;min-width:96px;width:auto!important;padding:10px 14px;gap:7px}
body[data-palette] #next span{font-size:17px!important}
body[data-palette] #play-menu .menu-options-visible .menu-settings>button{display:flex!important;align-items:flex-start!important}
body[data-palette] #play-menu #sound-toggle{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px}
body[data-palette] #play-menu #sound-toggle:after{content:'Звук включён';font-size:13px}body[data-palette] #play-menu #sound-toggle[aria-pressed=false]:after{content:'Звук выключен'}
/* Result feedback must never resize the task card or scroll the game. */
body[data-palette] #feedback{position:fixed;left:50%;bottom:calc(var(--bottom-nav-height,58px) + 8px);transform:translateX(-50%);z-index:80;box-sizing:border-box;width:max-content;max-width:calc(100vw - 24px);height:auto;min-height:0;max-height:70px;padding:8px 12px;border-radius:10px;margin:0;overflow:auto;background:#102a24f5!important;box-shadow:0 3px 14px #0004;pointer-events:none}body[data-palette] #feedback[hidden]{display:none!important}body.computer-section #feedback{display:none!important}
/* Center independently from feedback's entrance animation/transforms. */
body[data-palette] #feedback{left:12px;right:12px;margin:0 auto;transform:none!important}
/* Existing daily/review controls belong to the training catalogue, not settings. */
body[data-palette] .catalog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}body[data-palette] .catalog-actions>button{box-sizing:border-box;width:100%;height:auto;min-height:86px;padding:13px 14px;text-align:left;border:1px solid #64866b66;border-radius:14px;background:#203e35;color:#f0e3bf;font:600 13px/1.3 system-ui;cursor:pointer}body[data-palette] .catalog-actions>button:disabled{opacity:.5;cursor:default}body[data-palette] .catalog-actions>button:focus-visible{outline:2px solid #e6cd91;outline-offset:2px}@media(max-width:440px){body[data-palette] .catalog-actions{grid-template-columns:1fr;gap:8px}body[data-palette] .catalog-actions>button{min-height:68px;padding:11px 13px}}
/* Both relocated controls must shed their former sidebar/menu sizing. */
body[data-palette] #catalog-actions{width:100%;max-width:100%;min-width:0;box-sizing:border-box}body[data-palette] #catalog-actions>button{display:block!important;min-width:0;max-width:100%;width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.35}body[data-palette] #catalog-actions>button>span{display:block;min-width:0;max-width:100%;white-space:normal;font-size:13px!important;line-height:1.35}body[data-palette] #catalog-actions>button>small{min-width:0;max-width:100%;white-space:normal;font-size:10px!important;line-height:1.4}

/* Shared hierarchy for task and computer menus. */
body[data-palette] .unified-menu .menu-stat-link{display:flex!important;align-items:center;gap:12px;width:100%;min-width:0;height:auto;min-height:58px;padding:14px!important;margin:8px 0 14px;border:1px solid #a9946266!important;border-radius:12px!important;background:#d9c38d14!important;color:#f4dfad!important;text-align:left;font:700 15px/1.3 system-ui!important}
body[data-palette] .unified-menu .menu-stat-link svg{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}body[data-palette] .unified-menu .menu-stat-link span:last-child{margin-left:auto}
body[data-palette] .unified-menu .menu-group{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:12px 0;border-top:1px solid #698c7b44;min-width:0}
body[data-palette] .unified-menu .menu-group h3{grid-column:1/-1;margin:0 0 2px;font:600 11px/1.3 system-ui;letter-spacing:.5px;color:#a9c2b0}
body[data-palette] .unified-menu .menu-group button,body[data-palette] .unified-menu .menu-group select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:auto;min-height:44px;padding:10px!important;margin:0;border:1px solid #698a7344;border-radius:10px;background:#25483e;color:#e4e6d5;text-align:center;white-space:normal;font:600 12px/1.35 system-ui!important;cursor:pointer}
body[data-palette] .unified-menu .menu-group button:disabled{opacity:.5}body[data-palette] .unified-menu .menu-group [hidden]{display:none!important}
/* Empty tracks stay dark; only the exact mastered fraction is filled. */
body[data-palette] #stats-view .stat-track{height:6px;background:#48605266;border-radius:4px;overflow:hidden}body[data-palette] #stats-view .stat-track>span{display:block;height:100%;min-width:0;background:#d9c68f;border-radius:4px}
body[data-palette] #stats-return{display:inline-flex;align-items:center;min-height:34px;width:auto;margin:8px 0 10px;padding:6px 0;border:0;background:transparent;color:#cfbf93;font:600 12px/1.3 system-ui;text-align:left;text-decoration:underline;text-underline-offset:4px}
body[data-palette] #next{min-width:122px;min-height:44px;padding:11px 18px;gap:9px}
body[data-palette] #train-view #next{min-width:122px!important;min-height:44px!important;padding:11px 18px!important;gap:9px!important}
body[data-palette] .theme-card .theme-card-icon{flex:0 0 42px;width:42px;height:42px;min-width:42px;display:grid;place-items:center;border-radius:12px;background:#e4e9d9;color:#365d50;font-size:29px;line-height:1}
/* Compact one-line sound control, matching the computer menu. */
body[data-palette] #play-menu #sound-toggle{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;height:44px!important;min-height:44px;white-space:nowrap!important}
body[data-palette] #play-menu #sound-toggle svg{width:16px;height:16px;flex:0 0 16px}
body[data-palette] #play-menu #sound-toggle:after{content:'Звук: вкл';font:600 12px/1.35 system-ui;white-space:nowrap}
body[data-palette] #play-menu #sound-toggle[aria-pressed=false]:after{content:'Звук: выкл'}

#catalog-actions>button:disabled{opacity:.65;cursor:default;box-shadow:none;transform:none;filter:saturate(.45)}
