/* Родной Кров · Product v9 FINAL — stable product layer */
:root{
  --rk9-bg:#071a21;--rk9-sidebar:#07222a;--rk9-surface:#0d3039;--rk9-surface-2:#103943;
  --rk9-surface-soft:rgba(255,255,255,.028);--rk9-border:rgba(177,226,229,.12);--rk9-border-strong:rgba(91,210,205,.27);
  --rk9-text:#eef8f9;--rk9-muted:#94afb5;--rk9-muted-2:#6f9198;--rk9-accent:#56d4cf;--rk9-accent-2:#3bbbd0;
  --rk9-success:#67d7a7;--rk9-warning:#edc970;--rk9-danger:#ef858b;--rk9-radius:14px;--rk9-radius-lg:18px;
  --pro-sidebar:264px;--pro-content:1680px;
}
html{background:var(--rk9-bg)}
body{font-size:14px!important;color:var(--rk9-text)!important}
.crm32-main,.academy-main,.pro-main{padding:30px clamp(22px,2.6vw,46px) 56px!important}
.crm32-main>*:not(.crm42-sidebar-overlay),.academy-main>*:not(.crm42-sidebar-overlay),.pro-main>*{max-width:var(--pro-content)!important}

/* Sidebar: finished product geometry */
.crm32-sidebar,.academy-sidebar,.pro-sidebar{background:linear-gradient(180deg,#07242c,#061d25)!important;padding:24px 16px 18px!important}
.crm32-brand{padding:0 10px 26px!important;gap:12px!important}.crm32-brand-mark{width:44px!important;height:44px!important;border-radius:13px!important}
.crm32-brand strong{font-size:14px!important}.crm32-brand small{font-size:10.5px!important}
.rk-side-nav{gap:5px!important}.rk-side-nav>a,.rk-side-nav .crm56-nav-label{grid-template-columns:22px minmax(0,1fr) auto!important;min-height:44px!important;padding:0 12px!important;border-radius:11px!important;font-size:13px!important}
.rk-side-icon{width:18px!important;height:18px!important;fill:currentColor!important;color:#7ecbc7!important;opacity:.9!important}
.rk-nav-text{font-weight:760!important;line-height:1.2!important}.rk-nav-count{min-width:25px!important;height:24px!important;font-size:10px!important}
.crm56-nav-group{padding:3px 0 5px!important}.crm56-nav-sub{margin-left:31px!important;min-height:36px!important;font-size:11.5px!important;padding:0 12px!important}
.crm56-nav-sub.active{background:rgba(86,212,207,.12)!important;color:#f5ffff!important}
.rk-user-card{grid-template-columns:36px minmax(0,1fr) 36px!important}.rk-user-card strong{font-size:11.5px!important}.rk-user-card small{font-size:9.5px!important}

/* Page heads and controls */
.crm32-topbar h1,.rk-page-head h1,.pro-page-head h1{font-size:clamp(30px,2.2vw,38px)!important;letter-spacing:-.04em!important}
.crm32-topbar p,.rk-page-head p,.pro-page-head p{font-size:13px!important;color:var(--rk9-muted)!important}
.crm56-breadcrumb,.pro-breadcrumb{font-size:10.5px!important;color:var(--rk9-muted-2)!important}
.rk-btn,.crm32-primary,.crm32-secondary,.academy-primary,.academy-secondary{border-radius:10px!important;transition:transform .16s ease,border-color .16s ease,background .16s ease,filter .16s ease!important}
.rk-btn:hover,.crm32-primary:hover,.crm32-secondary:hover{transform:translateY(-1px)}
.rk-btn:focus-visible,.crm32-primary:focus-visible,.crm32-secondary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid rgba(86,212,207,.6)!important;outline-offset:2px!important}

/* Dashboard: slightly larger and less toy-like */
.crm34-quick-stats{gap:13px!important}.crm34-quick-stats>a{min-height:126px!important;padding:19px!important;background:linear-gradient(180deg,#0e3540,#0b2d36)!important}.crm34-quick-stats span{font-size:12px!important}.crm34-quick-stats strong{font-size:32px!important}.crm34-quick-stats small{font-size:10.5px!important}
.crm32-panel{border-radius:16px!important}.crm32-panel-head{padding:19px 20px!important}.crm32-panel-head h2{font-size:19px!important}.crm32-panel-head p{font-size:11.5px!important}
.crm40-expand-button{position:relative!important}.crm40-expand-button span{font-size:0!important}.crm40-expand-button span::before{content:"";display:block;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-1px,-1px);transition:transform .18s ease}.crm40-expand-button[aria-expanded="true"] span::before{transform:rotate(225deg) translate(-2px,-2px)}

/* Stream index — compact at scale, rich only when opened */
.rk-streams-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px}
.rk-overview-card{display:block;min-width:0;padding:15px 16px;border:1px solid var(--rk9-border);border-radius:13px;background:rgba(255,255,255,.025);color:var(--rk9-text);text-decoration:none;transition:.18s ease}
.rk-overview-card:hover,.rk-overview-card.is-active{border-color:var(--rk9-border-strong);background:rgba(86,212,207,.065)}.rk-overview-card.current{background:linear-gradient(135deg,rgba(103,215,167,.09),rgba(255,255,255,.02))}.rk-overview-card.muted{background:rgba(255,255,255,.018)}
.rk-overview-card span,.rk-overview-card small{display:block;color:var(--rk9-muted)}.rk-overview-card span{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.rk-overview-card strong{display:block;margin:7px 0 4px;font-size:26px;line-height:1}.rk-overview-card small{font-size:10px}
.rk-streams-toolbar-head{margin-bottom:10px!important}.rk-stream-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 13px;min-width:0}.rk-segmented{display:flex;align-items:center;gap:4px;min-width:0;padding:4px;background:rgba(255,255,255,.025);border:1px solid var(--rk9-border);border-radius:12px;overflow-x:auto;scrollbar-width:none}.rk-segmented::-webkit-scrollbar{display:none}.rk-segmented a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border-radius:8px;color:#91adb3;text-decoration:none;font-size:10.5px;font-weight:800;white-space:nowrap}.rk-segmented a:hover{color:#fff;background:rgba(255,255,255,.04)}.rk-segmented a.active{color:#06252b;background:var(--rk9-accent)}
.rk-stream-search{width:min(410px,42vw);min-width:250px;height:44px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--rk9-border);border-radius:11px;background:#0a2932}.rk-stream-search svg{width:17px;height:17px;fill:none;stroke:#80a6ac;stroke-width:1.8}.rk-stream-search input{width:100%;height:100%;min-width:0;border:0!important;background:transparent!important;color:#eef8f9!important;box-shadow:none!important;padding:0!important;font-size:12px!important}.rk-stream-search>a{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;color:#88a7ad;text-decoration:none;background:rgba(255,255,255,.04)}
.rk-stream-list-v9{display:grid;gap:8px}.rk-stream-record{border:1px solid var(--rk9-border);border-radius:13px;background:linear-gradient(180deg,rgba(12,46,55,.82),rgba(8,36,44,.86));overflow:hidden;scroll-margin-top:20px}.rk-stream-record.kind-current{border-color:rgba(103,215,167,.25);background:linear-gradient(135deg,rgba(61,155,131,.10),rgba(10,42,51,.9))}.rk-stream-record:target{border-color:rgba(86,212,207,.5);box-shadow:0 0 0 3px rgba(86,212,207,.08)}
.rk-stream-record>summary{list-style:none}.rk-stream-record>summary::-webkit-details-marker{display:none}.rk-stream-record-summary{display:grid;grid-template-columns:130px minmax(230px,1.5fr) minmax(145px,.8fr) minmax(115px,.65fr) 72px 34px;gap:14px;align-items:center;min-height:78px;padding:12px 15px;cursor:pointer}.rk-stream-record-summary:hover{background:rgba(255,255,255,.025)}
.rk-stream-record-status{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.rk-stream-record-name,.rk-stream-record-date,.rk-stream-record-place{display:block;min-width:0}.rk-stream-record-name strong,.rk-stream-record-date strong,.rk-stream-record-place strong{display:block;color:#edf7f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rk-stream-record-name strong{font-size:13.5px}.rk-stream-record-date strong,.rk-stream-record-place strong{font-size:11.5px}.rk-stream-record-name small,.rk-stream-record-date small,.rk-stream-record-place small{display:block;margin-top:4px;color:var(--rk9-muted);font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rk-stream-record-people{text-align:right}.rk-stream-record-people strong{display:block;font-size:19px}.rk-stream-record-people small{color:var(--rk9-muted);font-size:9px}.rk-stream-record-chevron{display:grid;place-items:center}.rk-stream-record-chevron svg{width:18px;height:18px;fill:none;stroke:#86a9af;stroke-width:2;transition:transform .18s ease}.rk-stream-record[open] .rk-stream-record-chevron svg{transform:rotate(180deg)}
.rk-live-chip,.rk-soft-chip{display:inline-flex;align-items:center;gap:5px;min-height:22px;padding:0 7px;border-radius:999px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.rk-live-chip{color:#bdf6dc;background:rgba(103,215,167,.11)}.rk-live-chip i{width:6px;height:6px;border-radius:50%;background:var(--rk9-success);box-shadow:0 0 0 4px rgba(103,215,167,.08)}.rk-soft-chip{color:#b2dce0;background:rgba(86,212,207,.08)}
.rk-stream-record-body{padding:0 15px 15px;border-top:1px solid rgba(177,226,229,.08)}.rk-stream-note{margin:12px 0 0;padding:11px 12px;border:1px solid rgba(177,226,229,.08);border-radius:10px;background:rgba(255,255,255,.02)}.rk-stream-note span{display:block;color:#75969c;font-size:8.5px;text-transform:uppercase;font-weight:900}.rk-stream-note p{margin:5px 0 0;color:#c7dadd;font-size:11px;line-height:1.45}.rk-stream-body-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:10px;margin-top:10px}.rk-stream-settings{margin-top:0!important}.rk-participants-panel{margin-top:0!important}
.rk-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:17px 0 0;color:var(--rk9-muted);font-size:10.5px}.rk-pagination>a{justify-self:start;color:#b7e9e6;text-decoration:none;padding:8px 10px;border:1px solid var(--rk9-border);border-radius:9px}.rk-pagination>a:last-child{justify-self:end}.rk-pagination>span:nth-child(2){text-align:center}
.rk-student-scope{width:max-content;max-width:100%;margin:0 0 13px}

/* Course index remains intentionally calm: course editing is the next phase. */
.rk-course-card{max-width:none!important}.rk-day-grid{grid-template-columns:repeat(auto-fit,minmax(205px,1fr))!important}

/* Better responsive product shell */
@media(max-width:1280px){.rk-stream-record-summary{grid-template-columns:120px minmax(220px,1.4fr) minmax(135px,.8fr) 95px 64px 30px}.rk-stream-record-place small{display:none}.rk-stream-body-grid{grid-template-columns:1fr}}
@media(max-width:1100px){
  .crm32-main,.academy-main,.pro-main{padding:20px 16px 44px!important}
  .crm32-topbar,.rk-page-head,.pro-page-head{position:sticky!important;top:0!important;z-index:35!important;padding:10px 0 12px!important;margin-bottom:16px!important;background:linear-gradient(180deg,rgba(7,26,33,.97),rgba(7,26,33,.9),rgba(7,26,33,0))!important;backdrop-filter:blur(10px)}
  .rk-streams-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.rk-stream-toolbar{align-items:stretch;flex-direction:column}.rk-stream-search{width:100%;min-width:0}.rk-stream-record-summary{grid-template-columns:110px minmax(0,1fr) 125px 65px 30px}.rk-stream-record-place{display:none}
}
@media(max-width:720px){
  body{font-size:13px!important}.crm32-main,.academy-main,.pro-main{padding:12px 10px 34px!important}.crm32-topbar h1,.rk-page-head h1,.pro-page-head h1{font-size:27px!important}
  .rk-streams-overview{grid-template-columns:1fr 1fr;gap:7px}.rk-overview-card{padding:12px}.rk-overview-card strong{font-size:22px}.rk-overview-card small{display:none}.rk-section-head{align-items:stretch!important}.rk-section-head .rk-btn{width:100%!important}
  .rk-stream-record-summary{grid-template-columns:minmax(0,1fr) 56px 28px;gap:9px;min-height:78px;padding:12px}.rk-stream-record-status{grid-column:1/-1}.rk-stream-record-date,.rk-stream-record-place{display:none}.rk-stream-record-name strong{font-size:13px}.rk-stream-record-name small{font-size:9px}.rk-stream-record-people strong{font-size:17px}.rk-stream-record-body{padding:0 10px 10px}.rk-stream-body-grid{grid-template-columns:1fr}.rk-segmented{width:100%}.rk-segmented a{flex:1}.rk-pagination{grid-template-columns:1fr 1fr}.rk-pagination>span:nth-child(2){grid-column:1/-1;grid-row:1}.rk-pagination>a{grid-row:2}.rk-pagination>a:last-child{justify-self:end}
  .crm34-quick-stats>a{min-height:104px!important}.crm34-quick-stats strong{font-size:26px!important}
}
@media(max-width:440px){.rk-streams-overview{grid-template-columns:1fr 1fr}.rk-overview-card span{font-size:9px}.rk-overview-card strong{font-size:20px}.rk-stream-record-summary{grid-template-columns:minmax(0,1fr) 48px 26px}.rk-segmented a{padding:0 8px;font-size:9.5px}.rk-stream-search{height:42px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}}
