/* Approved sidebar design; existing card states and all controls remain intact. */
body{background:#e8eadf;color:#25332b}.app-frame{display:grid;grid-template-columns:210px minmax(0,1fr);margin:14px;min-height:calc(100vh - 28px);border-radius:28px;background:radial-gradient(ellipse at 100% 0,#e6edbe66,transparent 55%),linear-gradient(120deg,#ecede5,#f5f3e8);overflow:hidden;align-items:start}
.app-frame>.tabs{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:14px 0 14px 14px;padding:26px 14px;min-height:calc(100vh - 56px);border:0;border-radius:22px;background:#fffefaeb;box-shadow:none}
.tabs .app-brand{padding:0 5px 26px;margin:0;font-size:18px;gap:9px;cursor:pointer}.tabs .app-brand small{font-size:7px}.tabs .tab{display:flex;align-items:center;gap:10px;font-size:12px;text-align:left;white-space:normal;padding:12px 10px;min-height:42px;border:0}.tabs .tab:not(.active){background:none}.nav-symbol{width:20px;font-size:20px;line-height:1;flex-shrink:0;text-align:center}.tabs [data-panel="method"]{margin-top:22px}#studyTabCount{margin-left:auto;border-radius:6px;padding:1px 5px;font-size:10px;background:#d8f06b;color:#25332b}
.shell{display:block;width:100%;padding:28px 34px;min-width:0}.language-picker{margin:0 0 28px;min-height:36px}.language-picker::before{content:'ВАШЕ ПРОСТРАНСТВО ПРАКТИКИ';font-size:9px;letter-spacing:.08em}.shell>.stats{display:grid;margin:0 0 28px;min-width:0}.shell:has(#home.active)>.stats{display:none}.shell>.panel{min-width:0}.shell>.panel>.section-title{margin-bottom:25px}.shell>.panel>.section-title h2{font-size:34px}.shell>nav:not(.tabs){margin:28px 0 0!important;font-size:11px}
#home .hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.85fr);gap:32px;align-items:center;padding:0;margin:20px 0 38px}#home .hero>div:first-child{background:none;border:0;padding:0;border-radius:0}#home .hero h1{font-size:clamp(44px,5vw,70px);font-weight:800;line-height:1.03;letter-spacing:-.065em;max-width:590px;margin:18px 0 25px}#home .hero h1 em{color:#597a6b;font-size:.85em;line-height:1.13}#home .hero-copy{font-size:15px;line-height:1.8}#home .hero .method-card{padding:26px;border-radius:20px 20px 20px 3px;transform:rotate(1deg) translateY(-20px);background:#d8f06b;gap:14px}#home .method-card strong{font-size:21px;line-height:1.4}#home .method-card span,#home .method-card small{font-size:11px}
.home-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:42px}.home-catalog button{position:relative;text-align:left;padding:20px 24px;border:1px solid #dce2cf;border-radius:18px;background:#e9efdf;color:#25332b}.home-catalog button:nth-child(2){background:#e8f0f4;border-color:#d2e1e6}.home-catalog button:nth-child(3){background:#f1eddc;border-color:#e4dcc6}.home-catalog button::after{content:'↗';position:absolute;right:20px;top:20px;color:#84947a}.home-catalog small{display:block;font-size:11px;color:#71806c;max-width:85%}.home-catalog strong{display:block;font-size:36px;line-height:1.2;letter-spacing:-.04em;margin:14px 0 7px}.home-catalog span{font-size:12px}.home-catalog button:hover{filter:brightness(1.035);border-color:#aaba94}
.home-guide{display:grid;grid-template-columns:minmax(0,1fr) 290px;grid-template-rows:auto auto auto;gap:14px 34px;align-items:stretch}.guide-label{grid-column:1/-1;grid-row:1;margin:0;font-size:10px;letter-spacing:.1em;color:#88917f}.home-guide>h2{grid-column:1/-1;grid-row:2;margin:0 0 8px;font-size:32px;letter-spacing:-.04em;line-height:1.2}.home-rules{grid-column:1;grid-row:3;margin:0;list-style:none;padding:0;counter-reset:rule;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-rules li{position:relative;counter-increment:rule;border:1px solid #e4e5d8;border-radius:16px;background:#fffefa;padding:20px 18px 20px 64px;min-height:130px}.home-rules li::before{content:'0' counter(rule);position:absolute;top:20px;left:16px;display:grid;place-items:center;width:34px;height:34px;background:#e6edd9;color:#67814f;border-radius:11px;font:700 13px monospace}.home-rules li:nth-child(2)::before{background:#eaf2f6;color:#608796}.home-rules li:nth-child(3)::before{background:#f1eddb;color:#9c8c50}.home-rules li:nth-child(4)::before{background:#e9f0d4;color:#748d43}.home-rules li:last-child{grid-column:1/-1;min-height:100px;background:linear-gradient(100deg,#f0f4e6,#fffefa);border-color:#dfe5d2}.home-rules strong{font-size:14px;line-height:1.4;display:block}.home-rules p{font-size:12px;line-height:1.7;color:#7c8b72;margin:9px 0 0}
.home-rhythm{grid-column:2;grid-row:3;display:flex;flex-direction:column;padding:25px;background:linear-gradient(155deg,#fffefa 55%,#f0f4e8);border:1px solid #dbe4d0;border-radius:23px;min-width:0}.rhythm-tag{display:block;background:#e7eedc;padding:6px 9px;border-radius:7px;color:#718565;margin:0;font-size:10px;letter-spacing:.05em}.home-rhythm h3{font-size:20px;line-height:1.4;margin:22px 0}.home-rhythm ul{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0;margin:0 0 24px;list-style:none}.home-rhythm li{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;padding:12px 0;border-bottom:1px solid #e8ecdf}.home-rhythm li:last-child{border:0}.home-rhythm li>span::before{content:'◦';color:#91a950;margin-right:8px}.home-rhythm li b{background:#edf2e4;padding:4px 7px;border-radius:7px;font-size:11px}.rhythm-meter{height:7px;background:#edf1e4;border-radius:99px;overflow:hidden}.rhythm-meter>span{display:block;height:100%;background:#a2b97d}#rhythmLearned{font-size:11px;color:#7c8973;margin:14px 0}.home-rhythm>small{font-size:9px;line-height:1.6;color:#93a087}
#study .study-player{background:#eef2e2;border-color:#e0e6d2;border-radius:19px}#study .study-row{background:#fffefa}.chunk-grid,.course-grid{gap:18px}.chunk:not(.selected):not(.learned):not(.relearning),.course-card{background:#fffefa}.library-filters{border-radius:16px}.study-section-switch{background:#e8eddf}#study .study-row.learned{background:#e5f6db;border-color:#6ba84d}#study .study-row.relearning{background:#fff7c9;border-color:#d6b133}
@media(max-width:1200px){.app-frame{grid-template-columns:190px minmax(0,1fr)}.shell{padding:25px}.home-guide{grid-template-columns:minmax(0,1fr) 250px;gap:14px 24px}.home-rules{grid-template-columns:1fr}.home-rules li:last-child{grid-column:auto}.home-rules li{min-height:0}.home-rhythm{padding:20px}#home .hero h1{font-size:52px}#home .hero{grid-template-columns:minmax(0,1fr) 230px}.home-catalog button{padding:18px}.home-catalog small{font-size:10px}.tabs .app-brand{font-size:16px;padding-right:0}.app-mark{width:32px;height:32px;flex-shrink:0}}
@media(max-width:950px){#home .hero{grid-template-columns:1fr}.method-card{max-width:360px;justify-self:end}#home .hero .method-card{transform:rotate(1deg)}.home-guide{grid-template-columns:1fr;grid-template-rows:auto auto auto auto}.home-rhythm{grid-column:1;grid-row:1}.home-rhythm ul{flex:none}.guide-label{grid-row:2}.home-guide>h2{grid-row:3;font-size:28px}.home-rules{grid-column:1;grid-row:4;grid-template-columns:repeat(2,minmax(0,1fr))}.home-rules li:last-child{grid-column:1/-1}.shell>.stats .stat-card{padding:15px 10px}.shell>.stats small{font-size:10px}.shell>.stats p{font-size:9px}.panel>.section-title{flex-wrap:wrap}.chunk-grid,.course-grid{grid-template-columns:1fr}}
@media(max-width:760px){.app-frame{display:block;margin:0;border-radius:0}.app-frame>.tabs{display:flex;flex-direction:row;flex-wrap:wrap;margin:0;padding:18px;border-radius:0;min-height:0;gap:5px}.tabs .app-brand{flex:1 0 100%;padding:0 0 10px;font-size:19px}.tabs .tab{padding:9px 11px;min-height:38px;font-size:12px}.tabs [data-panel="method"]{margin:0}.nav-symbol{display:none}.shell{padding:22px 16px}.shell .language-picker{margin-bottom:25px}.language-picker::before{flex-basis:100%;margin-bottom:6px}.language-picker label{margin-right:auto;font-size:12px}.shell>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.shell>.panel>.section-title h2{font-size:29px}#home .hero h1{font-size:46px}#home .hero-copy{font-size:14px}#home .hero .method-card{max-width:none;transform:none;justify-self:stretch}.home-catalog{grid-template-columns:1fr;gap:9px}.home-catalog button{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:5px 15px;padding:16px 20px}.home-catalog small{grid-column:1;grid-row:1/span 2;align-self:center;font-size:11px;max-width:100%}.home-catalog strong{grid-column:2;grid-row:1;margin:0;font-size:30px}.home-catalog span{grid-column:2;grid-row:2;font-size:11px}.home-catalog button::after{display:none}.home-rules{grid-template-columns:1fr}.home-rules li:last-child{grid-column:auto}.home-guide>h2{font-size:27px}.home-guide{row-gap:18px}#study .study-player .player-heading{grid-template-columns:1fr}.home-rhythm{padding:25px}}
