/* Ruch Studio: compact club navigation, readable panels and restrained motion. */
:root[data-appearance="dark"] { --bg:#20211f; --paper:#2b2d29; --panel:#2b2d29; --ink:#f2f2e9; --muted:#b0b3a7; --line:#3d4038; --navy:#181a17; --surface-raised:#33362f; --surface-hover:#3a3e34; --green:#a4c574; --green-dark:#b9d68d; --green-soft:#35452b; --accent-ink:#1a2912; --analytics-text:#e9eadd; --analytics-grid:#41463b; --analytics-muted:#b0b3a7 }
:root[data-appearance="light"] { --bg:#f0f1eb; --paper:#fff; --panel:#fff; --ink:#282d23; --muted:#636c5b; --line:#dce1d4; --surface-raised:#f1f4eb; --surface-hover:#e7eddd; --green:#496d2a; --green-dark:#3b5921; --green-soft:#e6efd9; --accent-ink:#fff }
:root[data-color-theme="amethyst"] { --green:#b6a1df;--green-dark:#c9b6ee;--green-soft:#393047;--accent-ink:#30223e }
:root[data-color-theme="midnight"] { --green:#8ebbdc;--green-dark:#aed2ec;--green-soft:#293d50;--accent-ink:#1b3249 }
:root[data-color-theme="sand"] { --green:#d9b888;--green-dark:#ead0a5;--green-soft:#463c30;--accent-ink:#3c2a16 }
:root[data-appearance="light"][data-color-theme="amethyst"] { --green:#75509d;--green-dark:#634187;--green-soft:#eee7f8;--accent-ink:#fff }
:root[data-appearance="light"][data-color-theme="midnight"] { --green:#366c98;--green-dark:#2d5d85;--green-soft:#e4edf6;--accent-ink:#fff }
:root[data-appearance="light"][data-color-theme="sand"] { --green:#83632e;--green-dark:#705221;--green-soft:#f5eddf;--accent-ink:#fff }
body { font-family:Inter,"Segoe UI",sans-serif; background:var(--bg); color:var(--ink) }
.app-shell:not(.focus-mode) .sidebar { width:192px;padding:24px 12px 16px;background:var(--navy);border-right:1px solid var(--line);overflow-y:auto }
.brand {padding:0 13px 22px;gap:8px}.brand-mark {width:29px;height:34px;color:var(--green)}.brand-mark .icon {width:29px;height:29px}.brand-name{font-size:28px;letter-spacing:-1.3px}.brand-name span{color:var(--green)}
.app-shell:not(.focus-mode) .sidebar nav{gap:3px}.app-shell:not(.focus-mode) .sidebar .nav-button{min-height:43px;gap:12px;padding:10px 13px;font-size:14px;border-radius:7px;font-weight:600}.app-shell:not(.focus-mode) .sidebar .nav-button .icon{width:21px;height:21px;color:currentColor}.app-shell:not(.focus-mode) .sidebar .nav-button.active::after{display:none}.nav-group-label{padding:17px 13px 5px;color:var(--muted);font-size:9px;font-weight:750;letter-spacing:1.5px}.sidebar-challenge{margin:22px 3px 12px;padding:14px;border-radius:8px}.sidebar-challenge>strong{font-size:12px}.sidebar-challenge>span:last-of-type{font-size:12px}.sidebar-footer{padding:16px 0 0}.app-shell:not(.focus-mode) .sidebar .nav-art{display:none}
.app-shell:not(.focus-mode) .main-content{width:calc(100% - 192px);margin-left:192px;padding:22px 30px 42px;max-width:1700px}.topbar{min-height:36px;margin-bottom:23px}.topbar>strong{font-size:15px;font-weight:650}.topbar-right{gap:13px}.top-search{display:flex;align-items:center;gap:9px;padding:7px 11px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--paper);font-size:12px}.top-search .icon{width:16px;height:16px}.top-search kbd{font-family:inherit;font-size:10px;margin-left:17px;opacity:.75}
.button{border-radius:7px;min-height:40px;font-weight:650}.button-primary{box-shadow:0 2px 0 color-mix(in srgb,var(--green) 50%,#17220d)!important}.panel,.board-card{border-radius:11px}.panel h2{font-size:17px;letter-spacing:-.3px}.right-panel{gap:14px}.workspace{gap:22px}.board-card{padding:15px 16px 10px}.board-toolbar{padding-bottom:12px}.player-name{font-size:13px}.board-shell{box-shadow:none}.board-wrap{border-radius:3px;overflow:hidden}.page-title{font-size:29px}.art-section-hero{min-height:160px;max-height:190px}.art-section-image .ruch-art{max-height:175px;filter:none}.art-section-copy{padding:24px 27px}.opening-course-grid{gap:14px}.opening-course-card{border-radius:10px}.opening-card-art .ruch-art{filter:none}
.home-v11{max-width:1240px;margin:auto}.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:13px 0 27px}.home-kicker{color:var(--green);font-size:10px;font-weight:750;letter-spacing:1.7px}.home-welcome h1{font-size:34px;letter-spacing:-1px;margin:8px 0 7px}.home-welcome p{color:var(--muted);font-size:15px;margin:0}.home-welcome .button{display:flex;gap:15px;font-size:12px}.home-welcome .button strong{font-size:18px;color:var(--green)}
.home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:23px}.home-action{position:relative;display:flex;min-height:230px;padding:25px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;color:var(--ink);isolation:isolate;transition:border-color .18s,transform .18s}.home-action:hover{border-color:var(--green);transform:translateY(-3px)}.home-action-copy{position:relative;z-index:1}.home-card-tag{display:block;font-size:9px;font-weight:800;letter-spacing:1.5px;color:var(--muted);margin-bottom:12px}.home-action h2{font-size:22px;letter-spacing:-.5px;margin-bottom:10px;max-width:200px}.home-action p{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:24px;max-width:190px}.home-cta{font-size:12px;font-weight:750;color:var(--green)}.home-cta>span{margin-left:9px}.home-action>.ruch-art{position:absolute;right:-20px;bottom:-4px;width:52%;height:158px;object-fit:contain;object-position:bottom right;z-index:0;opacity:.9;pointer-events:none}.home-play{background:var(--green-soft);border-color:color-mix(in srgb,var(--green) 35%,var(--line))}.home-play .home-card-tag{color:var(--green)}
.home-middle{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:28px}.home-middle>.panel{padding:23px;margin:0}.home-goal{display:flex;align-items:baseline;gap:15px;margin:20px 0 13px}.home-goal>strong{font-size:36px;letter-spacing:-1px}.home-goal small{font-size:20px;color:var(--muted);font-weight:500}.home-goal>span{font-size:12px;color:var(--muted)}.home-today .progress-track{height:7px}.home-today-stats{display:flex;justify-content:space-between;gap:10px;margin:22px 0;color:var(--muted);font-size:11px}.home-today-stats strong{display:block;color:var(--ink);font-size:17px;margin-bottom:2px}.home-shortcuts>h2{margin-bottom:13px}.home-shortcuts>button{display:flex;align-items:center;gap:14px;width:100%;padding:10px 0;color:var(--ink);background:none;border:0;border-bottom:1px solid var(--line);text-align:left}.home-shortcuts>button:last-child{border:0}.home-shortcuts>button:hover strong{color:var(--green)}.home-shortcuts>button>span:first-child{width:48px;height:48px;flex-shrink:0;background:var(--surface-raised);border-radius:8px}.home-shortcuts .ruch-art{width:48px;height:48px;object-fit:contain}.home-shortcuts strong,.home-course strong{display:block;font-size:13px;margin-bottom:4px}.home-shortcuts small,.home-course small{color:var(--muted);font-size:11px}.home-shortcuts b{margin-left:auto;color:var(--muted);font-weight:400}.home-repertoire h2{font-size:18px;margin:0}.home-course-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-course{display:flex;align-items:center;gap:10px;padding:15px 11px;background:var(--paper);color:var(--ink);text-align:left;border:1px solid var(--line);border-radius:9px;min-width:0}.home-course:hover{border-color:var(--green)}.home-course>.ruch-art{width:42px;height:44px;object-fit:contain}.home-course>span:last-child{margin-left:auto;color:var(--muted)}.home-course strong{font-size:12px;line-height:1.4}
.app-search-dialog{width:min(620px,calc(100vw - 32px));max-height:85vh;padding:22px;display:flex;flex-direction:column}.app-search-dialog .panel-header h2{font-size:18px}.app-search-results{overflow-y:auto;min-height:0;margin-top:10px}.search-result{display:flex;align-items:center;gap:14px;padding:11px;width:100%;border:0;border-radius:7px;text-align:left;background:none;color:var(--ink)}.search-result:hover,.search-result:focus-visible{background:var(--surface-raised)}.search-result>.ruch-art{width:38px;height:40px;object-fit:contain}.search-result strong{display:block;font-size:13px;margin-bottom:4px}.search-result small{display:block;font-size:11px;color:var(--muted)}.search-result>span:last-child{margin-left:auto;color:var(--muted)}.app-search-results h3{font-size:11px;color:var(--muted);margin:18px 10px 7px}.search-key-hint{padding:13px 10px 0;font-size:10px;color:var(--muted)}.empty-search{padding:20px 8px;color:var(--muted);font-size:13px}
@media(min-width:1350px){.training-workspace,.bot-workspace{grid-template-columns:minmax(440px,690px) minmax(300px,370px);justify-content:center}}
@media(max-width:1100px){.app-shell:not(.focus-mode) .main-content{padding:20px}.home-actions{gap:12px}.home-action{padding:20px;min-height:240px}.home-action>.ruch-art{width:60%;height:135px;opacity:.68}.home-action h2{font-size:20px}.home-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.app-shell:not(.focus-mode) .sidebar{width:78px;padding:20px 8px}.brand{padding:0 10px 23px}.brand-name,.app-shell:not(.focus-mode) .sidebar .nav-button>span,.nav-group-label,.sidebar-challenge{display:none}.app-shell:not(.focus-mode) .sidebar .nav-button{justify-content:center;padding:11px}.app-shell:not(.focus-mode) .sidebar .nav-button .icon{width:23px;height:23px}.sidebar-footer{margin-top:20px}.app-shell:not(.focus-mode) .main-content{width:calc(100% - 78px);margin-left:78px}.home-actions{grid-template-columns:1fr}.home-action{min-height:170px}.home-action>.ruch-art{width:40%;height:165px;opacity:1;right:12px}.home-action p{margin-bottom:15px}.home-action h2{font-size:23px;max-width:unset}.home-middle{grid-template-columns:1fr}.home-welcome h1{font-size:29px}.home-welcome .button{flex-direction:column;gap:0}.home-actions .home-action-copy{max-width:70%}.top-search kbd{display:none}}
@media(max-width:600px){.app-shell:not(.focus-mode) .sidebar{position:sticky;inset:auto;top:0;width:100%;height:auto;padding:6px 9px;border:0;border-bottom:1px solid var(--line);display:block;overflow:visible;z-index:30}.app-shell{display:block}.brand,.sidebar-footer,.sidebar-challenge{display:none}.app-shell:not(.focus-mode) .sidebar nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}.app-shell:not(.focus-mode) .sidebar nav::-webkit-scrollbar{display:none}.app-shell:not(.focus-mode) .sidebar .nav-button{width:auto;min-width:60px;min-height:57px;padding:7px 9px;flex-direction:column;gap:4px;flex-shrink:0}.app-shell:not(.focus-mode) .sidebar .nav-button>span{display:block;font-size:9px;line-height:1.1}.app-shell:not(.focus-mode) .sidebar .nav-button .icon{width:20px;height:20px}.app-shell:not(.focus-mode) .main-content{margin:0;width:100%;padding:15px 13px 32px}.topbar{margin-bottom:14px}.topbar-right{gap:8px}.top-search{padding:7px;border:0;background:none}.top-search>span{display:none}.topbar .daily-chip{display:none}.home-welcome{margin:10px 0 22px}.home-welcome h1{font-size:27px}.home-welcome p{font-size:13px}.home-kicker{font-size:8px}.home-welcome .button{font-size:10px;padding:8px 10px}.home-welcome .button strong{font-size:16px}.home-action{padding:20px;min-height:184px}.home-action>.ruch-art{right:-4px;width:44%;height:152px}.home-actions .home-action-copy{max-width:72%}.home-action h2{font-size:21px}.home-action p{font-size:11px}.home-middle>.panel{padding:19px}.home-course-grid{grid-template-columns:1fr 1fr;gap:8px}.home-course{padding:12px 8px;gap:7px}.home-course>.ruch-art{width:32px;height:38px}.home-course>span:last-child{display:none}.home-course strong{font-size:11px}.home-course small{font-size:10px}.home-repertoire .text-link{font-size:11px}.home-today-stats{font-size:10px}.board-card{padding:10px 8px 7px}.art-section-hero{min-height:135px}.art-section-copy{padding:20px}.art-section-copy h1{font-size:26px}.art-section-image .ruch-art{max-height:120px}.focus-mode .sidebar{display:none}}
@media(prefers-reduced-motion:reduce){.home-action{transition:none}.home-action:hover{transform:none}}
[data-reduced-motion="true"] .home-action{transition:none}[data-reduced-motion="true"] .home-action:hover{transform:none}

.mainline-next-step{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.mainline-next-step span{color:var(--muted);font-size:11px}.bot-progress-panel{margin-bottom:20px}
