/* Local design study: charcoal, warm gold, restrained depth. */
:root{--yellow:#efc567;--gold:#efc567;--gold-soft:#ffe3a1;--gold-deep:#30250f;--sidebar-gold:#efc567;--sidebar-gold-soft:#ffe3a1;--card:#12151a;--card-border:#292c32;--line:#292c32;--text:#f0efeb;--muted:#92959e;--link:#c3c4c9;--font-display:Inter,'Segoe UI',sans-serif;--font-body:Inter,'Segoe UI',sans-serif}
body{background:#0b0d10!important;color:#eeede8;font:15px/1.55 Inter,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
*,*:before,*:after{box-sizing:border-box}
.topbar{height:68px!important;min-height:68px!important;padding:0 30px!important;background:#0d0f13!important;border-bottom:1px solid #25282e!important}
.brand-logo{height:68px!important}.brand-logo img{width:29px!important;height:32px!important;object-fit:contain}
.brand-logo:after{content:'ЦГБ · ПРИВОЛЖСКА';margin-left:13px;color:#e5d9bf;font:600 11px/1.4 Inter,sans-serif;letter-spacing:.12em}
.header-time strong{color:#c4b392!important;font-size:11px!important}.header-time small{font-size:10px!important}.header-user-name{font-size:13px!important}.header-user-avatar{border-color:#bda16a!important}
.app-shell{background:transparent!important;padding:30px!important;gap:36px!important;max-width:1680px!important;margin:0 auto!important}
.app-shell>.sidebar:not(.is-collapsed){width:264px!important;flex-basis:264px!important;position:sticky!important;top:24px!important;min-height:0!important}
.app-shell>.page{padding:0 0 48px!important;flex:1;min-width:0!important}
.full-mode{gap:20px!important}.sidebar-title{font-size:10px!important;font-weight:600!important;letter-spacing:.18em!important;color:#92959e!important}
.pulse-rule{opacity:.6!important;height:10px!important;flex-shrink:0}.pulse-rule path{animation:none!important;stroke-dashoffset:0!important;filter:none!important}
.full-mode>.sidebar-toggle{right:0!important;top:-6px!important;width:32px!important;height:32px!important}
.roleplays-menu-toggle{min-height:48px!important;font-size:13px!important;box-shadow:0 5px 18px #efc56712!important;background:linear-gradient(115deg,#ffe3a1,#eec264)!important}
.roleplays-sidebar-search span{font-size:9px!important;letter-spacing:.13em!important}.roleplays-sidebar-search input{min-height:44px!important;font-size:13px!important;background:#111419!important;border-color:#292d35!important}
details.nav-section{padding:14px 12px!important;border-radius:14px!important;box-shadow:none!important;background:#111419!important}
details.nav-section summary{min-height:30px!important;font-size:10px!important;letter-spacing:.12em!important;color:#c3c4c9!important}
.nav-section-links{padding-top:8px!important}.nav-section-links a{min-height:38px!important;padding:9px 11px!important;font-size:13px!important;line-height:1.4!important}
.toggle-badge{width:24px!important;height:24px!important;flex-basis:24px!important;background:#242015!important;box-shadow:inset 0 0 0 1px #dabb7228!important}
.sidebar-donate-button{box-shadow:none!important;background:#211d14!important;border:1px solid #bda16440!important}.sidebar-donate-button strong{color:#dbc590!important;font-size:12px!important}.sidebar-donate-button span{background:#332a17!important;color:#efc567!important}
.rail-mode{background:#111419!important;box-shadow:none!important}.sidebar-mode-panel{gap:12px!important}
h1{font-size:clamp(28px,3vw,42px)!important;letter-spacing:-.04em;line-height:1.15!important;font-weight:650!important}h2{letter-spacing:-.025em;font-weight:600}.eyebrow{font-size:10px!important;color:#ceb580!important;font-weight:600!important;letter-spacing:.14em!important}
.home-profile-hero{display:flex!important;align-items:center!important;gap:24px!important;min-height:210px!important;padding:32px!important;border:1px solid #b4985f38!important;border-radius:22px!important;background:radial-gradient(ellipse at 100% 0,#d4ae5c12,transparent 65%),linear-gradient(120deg,#191a1b,#111419)!important;box-shadow:none!important;margin-bottom:24px!important}
.home-avatar{width:88px!important;height:88px!important;flex-basis:88px!important;border:1px solid #d7b86d70!important;border-radius:26px!important;background:linear-gradient(145deg,#332b1a,#1b1c1d)!important;font-size:36px!important;color:#efcf86!important;box-shadow:0 0 0 7px #edca7905!important}
.home-avatar-wrap{width:88px!important;height:88px!important;flex:0 0 88px!important}.home-online{width:12px!important;height:12px!important;right:1px!important;bottom:2px!important;border:3px solid #16191c!important;box-shadow:none!important}
.home-user-copy{min-width:0}.home-user-copy h1{font-size:clamp(27px,2.8vw,40px)!important;margin:8px 0 17px!important}.home-user-copy h1 span{display:block;color:#eee5d3!important;margin-top:3px;overflow-wrap:anywhere}
.home-user-meta{display:flex!important;flex-wrap:wrap!important;gap:8px 16px!important;color:#979ba5!important;font-size:11px!important}.home-user-meta span{font-weight:400!important}
.home-actions-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
.home-action{position:relative!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px!important;min-height:176px!important;padding:23px!important;text-align:left!important;border:1px solid #292d34!important;border-radius:17px!important;background:linear-gradient(130deg,#14171c,#101318)!important;box-shadow:none!important;transition:border-color .2s,background .2s,transform .2s!important;text-decoration:none!important;color:#eeede8!important}
.home-action:hover{transform:translateY(-3px)!important;border-color:#b7975b8c!important;background:#1a1b1d!important}.home-action:after{content:'↗';position:absolute;right:20px;top:20px;color:#72757e;font-size:17px;font-weight:400}
.home-action-icon{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;margin:0 0 12px!important;border-radius:12px!important;background:#c4a36012!important;color:#e8c785!important;font-size:22px!important}.home-action-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.home-action strong{font-size:14px!important;font-weight:600!important;line-height:1.3!important;text-transform:none!important;letter-spacing:0!important}.home-action small{font-size:11px!important;color:#9298a4!important;line-height:1.5!important}.home-action-updates{border-color:#b7975b50!important}.home-action-donate .home-action-icon{background:#c4a36012!important}
.card,.form-card,.profile-panel,.profile-info,.profile-card,.lesson{background:#12151a!important;border-color:#2c3036!important;border-radius:18px!important;box-shadow:none!important}
.profile-showcase{background:radial-gradient(ellipse at 90% 0,#c29e5720,transparent 55%),#13161a!important;border-color:#b4985f38!important;box-shadow:none!important}.profile-showcase:after{opacity:.25}.profile-showcase-content{padding:30px!important}.profile-showcase-info h1{overflow-wrap:anywhere}.profile-showcase-avatar{border-width:2px!important;transform:none!important;box-shadow:none!important}
.button,.danger{border-radius:10px!important;font-weight:600!important;transition:background .18s,box-shadow .18s}.button:not(.secondary):not(.danger){background:#eac36e;color:#271f10}.button.secondary{background:#1b1f25!important;border-color:#353941!important;color:#dededc!important}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select{background:#0d1014!important;border-color:#363a42!important;border-radius:10px!important;color:#efefec!important}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #d5b46580!important;outline-offset:2px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #efc567!important;outline-offset:4px}
.table-wrap,.score-wrap,.internship-data-panel{border-color:#30343a!important;border-radius:16px!important;background:#12151a!important}th{background:#1b1d20!important;color:#d7c59f!important;font-size:11px!important}td{font-size:13px!important;border-color:#282c32!important}.internship-page-hero,.staff-directory-hero,.internship-editor-hero{background:linear-gradient(120deg,#1d1d19,#111419)!important;border-color:#b4985f38!important;box-shadow:none!important}
.news-modal-window{border:1px solid #494132!important;border-radius:20px!important;background:#15181d!important;box-shadow:0 28px 90px #0008!important}.news-modal[hidden]{display:none!important}
.login-page .app-shell{max-width:1240px!important}.login-page .page{width:100%;padding:30px 0!important}.login-card{border-radius:20px!important;background:#14171c!important;border-color:#b4985f50!important}.login-mark{border-radius:17px!important;box-shadow:none!important;background:#ecc779!important}.login-meta div{border-color:#323238!important;border-radius:12px!important;background:#14171c!important}
@media(min-width:761px) and (max-width:1100px){.app-shell{padding:24px!important;gap:24px!important}.app-shell>.sidebar:not(.is-collapsed){width:232px!important;flex-basis:232px!important}.home-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){
 .topbar{height:56px!important;min-height:56px!important;padding:0 16px!important}.brand-logo{height:56px!important}.brand-logo:after{display:none}.brand-logo img{width:23px!important;height:27px!important}
 .app-shell,.app-shell.sidebar-collapsed{padding:0!important;gap:0!important}.app-shell>.page,.app-shell.sidebar-collapsed>.page,.app-shell:not(.sidebar-collapsed)>.page{padding:22px 16px 44px!important}
 .app-shell>.sidebar:not(.is-collapsed){position:fixed!important;top:0!important;width:min(88vw,340px)!important;max-width:340px!important;min-height:0!important;height:100dvh!important;padding:max(24px,env(safe-area-inset-top)) 18px 32px!important}.full-mode>.sidebar-toggle{right:14px!important;top:15px!important}
 .home-profile-hero{flex-direction:row!important;flex-wrap:wrap!important;gap:18px!important;padding:24px!important;min-height:0!important;border-radius:19px!important;margin-bottom:18px!important}.home-avatar,.home-avatar-wrap{width:60px!important;height:60px!important;flex-basis:60px!important}.home-avatar{font-size:26px!important;border-radius:18px!important}.home-user-copy{width:100%;text-align:left!important}.home-user-copy h1{font-size:27px!important}.home-user-meta{justify-content:flex-start!important;font-size:10px!important;gap:6px 12px!important}
 .home-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.home-action{padding:17px 14px!important;min-height:165px!important;border-radius:15px!important;gap:6px!important}.home-action:after{right:13px;top:15px;font-size:15px}.home-action-icon{margin-bottom:10px!important;width:35px!important;height:35px!important;border-radius:10px!important}.home-action strong{font-size:12px!important;overflow-wrap:anywhere}.home-action small{font-size:10px!important}
 .nav-section-links a{min-height:44px!important;display:flex!important;align-items:center!important}.nav-section summary{min-height:34px!important}.profile-showcase-content{padding:24px 18px!important}.profile-showcase-info h1{font-size:29px!important}
 .login-shell{display:flex!important;flex-direction:column!important;gap:26px!important}.login-intro{width:100%}.login-meta{display:none!important}.login-intro h1{font-size:30px!important}.login-intro p:not(.eyebrow){font-size:14px!important}.login-mark{min-height:48px!important;min-width:105px!important;font-size:22px!important;margin-bottom:18px!important}.login-card{padding:24px!important;width:100%!important}.login-page .page{padding-top:20px!important}
}
@media(max-width:340px){.home-actions-grid{grid-template-columns:1fr!important}}
/* Navigation refinement against the current production snapshot. */
.app-shell>.sidebar .full-mode{position:relative;padding-top:8px!important}
.app-shell>.sidebar .sidebar-title{padding-right:42px!important;margin:0 0 2px!important}
.full-mode>.sidebar-toggle{right:0!important;top:0!important}
.app-shell>.sidebar .side-nav,.app-shell>.sidebar .sidebar-mode-panel{gap:14px!important}
.app-shell>.sidebar [data-portal-sidebar-menu]{display:flex;flex-direction:column;gap:16px}
.app-shell>.sidebar [data-portal-sidebar-menu][hidden]{display:none!important}
.app-shell>.sidebar .roleplays-sidebar-search-main{margin:0!important}
.app-shell>.sidebar .roleplays-nav-link:not(.roleplays-menu-toggle){margin:0!important;padding:8px 4px!important;font-size:13px!important}
.app-shell>.sidebar [data-portal-sidebar-sections]>.nav-section+.nav-section,.app-shell>.sidebar [data-roleplays-sidebar-menu]>.nav-section+.nav-section{margin-top:0!important}
.app-shell>.sidebar details.nav-section{padding:12px!important;border-color:#2c3037!important}
.app-shell>.sidebar details.nav-section summary{font-size:11px!important;letter-spacing:.075em!important;min-height:34px!important}
.app-shell>.sidebar .nav-section-links a{font-size:14px!important;line-height:1.5!important;padding:8px 11px!important}
.home-action small{color:#a3a8b2!important;font-size:12px!important}.home-action strong{font-size:15px!important}
@media(min-width:761px){
 .app-shell>.sidebar:not(.is-collapsed){width:280px!important;flex-basis:280px!important;max-height:calc(100dvh - 110px)!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:#373b43 transparent;padding-right:8px!important}
 .app-shell>.sidebar .full-mode{gap:18px!important}
}
@media(max-width:760px){
 body{padding-top:56px!important}.topbar{position:fixed!important;inset:0 0 auto!important}
 .app-shell>.sidebar:not(.is-collapsed){padding-top:max(20px,env(safe-area-inset-top))!important}
 .app-shell>.sidebar .full-mode>.sidebar-toggle{position:absolute!important;top:0!important;right:0!important;width:36px!important;height:36px!important}
 .app-shell>.sidebar .full-mode{gap:20px!important}
 .home-action{min-height:170px!important}.home-action strong{font-size:13px!important}.home-action small{font-size:11px!important}
 .sidebar.is-collapsed .rail-expand{font-size:0!important}.sidebar.is-collapsed .rail-expand:before{font-size:20px!important}
 .user-admin-list{overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important}
 .user-admin-table-head{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;min-height:0!important;padding:12px!important;border-radius:12px!important;margin-bottom:14px!important}
 .user-admin-table-head>span{padding:0!important;border:0!important;font-size:11px!important}.user-admin-table-head>span:first-child,.user-admin-table-head>span:last-child{display:none!important}
 .user-admin-card{margin-bottom:12px!important;border:1px solid #30343c!important;border-radius:15px!important;overflow:hidden}
 .user-admin-card summary{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;min-width:0!important;padding:18px!important}
 .user-admin-card .user-admin-chevron{position:absolute!important;right:14px!important;top:22px!important;width:23px!important;height:23px!important}
 .user-admin-card .user-admin-person{padding-right:28px!important}
 .user-admin-card .user-admin-field{min-width:0!important;display:block!important;padding:0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:12px!important}
 .user-admin-card .user-admin-person{display:flex!important;margin-bottom:4px!important;gap:12px!important}
 .user-admin-card .user-admin-profile-link{white-space:normal!important;overflow-wrap:anywhere!important;font-size:14px!important}
 .user-admin-card .user-admin-field:nth-child(3):before{content:'Группа · ';color:#888f9a;font-weight:400}
 .user-admin-card .user-admin-field:nth-child(4):before{content:'Ранг · ';color:#888f9a;font-weight:400}
 .user-admin-card .user-admin-field:nth-child(5):before{content:'Курсы · ';color:#888f9a;font-weight:400}
 .user-admin-body{padding:16px!important}.user-admin-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
