/* Shared density for the training portal; course text and media keep their readable sizes. */
.workspace{padding:26px 30px 48px}
.sidebar{padding:24px 18px}
.sidebar .nav-item{padding:11px 12px}
.sidebar .account-card{margin-top:22px;padding-top:18px}
.searchbar{padding:5px 6px 5px 14px;margin-bottom:20px}
.searchbar button{min-height:40px;padding:9px 20px}
.page-heading{min-height:0;padding:40px 22px 18px;margin-bottom:20px;border-bottom-width:3px;gap:16px;align-items:center}
.page-heading:before{left:22px;top:15px;font-size:10px;letter-spacing:.13em}
.page-heading h1,html[lang=ru] .page-heading h1{font-size:26px;line-height:1.35;margin:0 0 7px;letter-spacing:0}
.page-heading p{font-size:13px;line-height:1.65}
.welcome{padding:22px 24px;margin-bottom:16px;gap:20px;border-bottom-width:3px;align-items:center}
.welcome .eyebrow{font-size:10px;margin-bottom:10px}
.welcome h1{font-size:26px;line-height:1.35;margin:0 0 9px}
.welcome p{font-size:13px;line-height:1.7}
.welcome .welcome-number{font-size:40px}
.welcome small{font-size:11px}
.stats{gap:12px;margin-bottom:22px}
.stat{display:flex;align-items:center;gap:14px;padding:16px 18px;border-top-width:2px}
.stat strong{font-size:25px;line-height:1.3;white-space:nowrap;margin:0}
.stat strong small{font-size:13px}
.stat span{font-size:12px;line-height:1.6}
.section-head{margin:24px 0 13px;gap:12px}
.section-head h2{font-size:21px;line-height:1.4}
.section-head a{flex:none;font-size:12px}
.grid{gap:12px}
.workspace .card{padding:16px;min-width:0}
.workspace .card h3{font-size:17px;line-height:1.5;margin:9px 0 7px}
.workspace .card p{font-size:13px;line-height:1.7;margin:7px 0}
.workspace .card .tag{font-size:10px;padding:4px 7px}
.workspace .card .meta{font-size:12px;line-height:1.6;margin-top:10px;gap:8px}
.workspace .card .library-detail{padding-top:8px;margin:9px 0 0}
.workspace .card .progress-line{margin-top:8px}
.workspace .card:hover{transform:none}
.category-grid.library-grid,.category-grid.industry-grid{gap:12px}
.workspace .category-card{min-height:0}
.library-grid .library-category-card,.industry-grid .industry-card{min-height:0;padding:16px;gap:10px}
.workspace .library-card-heading h3,.workspace .industry-card-heading h3,html[lang=ru] .workspace .category-card h3{font-size:17px;line-height:1.5;margin:0}
.workspace .category-card .library-series,.workspace .category-card .industry-description{font-size:12px;line-height:1.65;min-height:0;margin:0}
.workspace .category-card .meta{margin-top:auto;padding-top:2px;font-size:12px}
.library-admin-actions,.industry-actions{gap:8px;margin:0 0 16px}
.library-resource-grid .library-resource-manage{padding:9px 12px;gap:14px}
.library-breadcrumb{margin-bottom:14px}
.tabs{gap:6px;margin-bottom:18px}
.tabs a{padding:10px 14px;line-height:1.5}
.type-tabs{gap:0;margin-bottom:16px}
.type-tabs a{padding:10px 16px}
.filters{gap:8px;margin-bottom:16px}
.filters select{min-width:140px;padding:10px;font-size:13px}
.module-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}
.module-list{padding:7px}
.module-list a{padding:10px 11px}
.lesson-list{gap:7px}
.lesson{padding:13px 16px;gap:14px}
.lesson-number{font-size:18px;min-width:32px}
.lesson-title small{margin-top:3px}
.panel{padding:20px;margin-bottom:16px}
.panel h2{font-size:19px;margin-bottom:12px}
.form-grid{gap:0 18px}
.field{margin:13px 0;line-height:1.6}
.field input,.field select,.field textarea{padding:10px;margin-top:6px;min-width:0;max-width:100%}
.field textarea{min-height:76px}
.field>.hint{margin-top:6px}
.checks{gap:8px;margin:12px 0 17px}
.checks label{padding:8px;line-height:1.6}
.check{margin:13px 0;line-height:1.6}
#password-form{max-width:560px}
.panel .page-heading{padding:15px;margin-bottom:16px;min-height:0}
.panel .page-heading h2{font-size:19px;margin-bottom:6px}
.table-wrap th,.table-wrap td{padding:11px 13px}
.table-wrap table button{min-height:36px}
.empty{padding:25px 20px}
.resource-info{padding:20px}
.resource-info h1{font-size:24px;line-height:1.5}
.resource-info .actions{margin:14px 0;gap:8px}
.resource-aside{padding:18px}
.resource-aside h3{font-size:16px}
.resource-aside a{padding:9px 0}
.login-layout{min-height:0;margin:32px auto 45px}
.login-intro{padding:42px}
.login-intro h1,html[lang=ru] .login-intro h1{font-size:36px}
.login-foot{margin-top:32px}
.login-form{padding:40px}
.login-form h2{font-size:27px}
.login-form .field{margin:18px 0}
.guide-shell>.workspace{padding-top:22px}
.guide-heading{margin:16px 0 20px}
.guide-heading h1{font-size:27px}
.guide-outline h2{padding:13px 16px}
.guide-outline>a{padding-top:11px;padding-bottom:11px}
.guide-video-meta{padding:12px 16px}
@media(max-width:1100px){
  .workspace{padding:24px}
  .module-layout{grid-template-columns:185px minmax(0,1fr)}
  .stat{gap:10px;padding:14px}
  .login-layout{margin-inline:24px}
  .login-intro,.login-form{padding:32px}
}
@media(max-width:760px){
  .workspace{padding:18px 16px 32px}
  .sidebar{padding:8px 12px}
  .sidebar .nav-item{padding:10px;font-size:12px}
  .searchbar{margin-bottom:16px}
  .page-heading{padding:34px 17px 15px;margin-bottom:17px;gap:12px;flex-wrap:wrap}
  .page-heading:before{top:12px;left:17px;font-size:9px;letter-spacing:.1em}
  .page-heading h1,html[lang=ru] .page-heading h1{font-size:23px;margin-bottom:6px}
  .page-heading p{font-size:13px}
  .welcome{padding:18px;gap:12px}
  .welcome h1{font-size:23px}
  .stats{gap:8px;margin-bottom:18px}
  .stat{display:block;padding:12px 10px}
  .stat strong{font-size:22px;margin-bottom:4px}
  .stat strong small{font-size:11px}
  .stat span{font-size:11px;display:block}
  .section-head{margin:21px 0 12px}
  .section-head h2{font-size:19px}
  .grid,.category-grid.library-grid,.category-grid.industry-grid{gap:10px}
  .workspace .card{padding:14px}
  .workspace .card h3{font-size:16px}
  .workspace .library-card-heading h3,.workspace .industry-card-heading h3,html[lang=ru] .workspace .category-card h3{font-size:16px;margin:0}
  .library-grid .library-category-card,.industry-grid .industry-card{padding:14px;min-height:0;gap:8px}
  .module-layout{display:block}
  .module-list{margin-bottom:14px}
  .module-list a{padding:9px}
  .lesson{padding:12px;gap:10px}
  .lesson-number{min-width:26px;font-size:16px}
  .lesson-title strong{font-size:13px}
  .panel{padding:17px 15px}
  .panel h2{font-size:18px}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .filters select{min-width:0;width:100%;flex:1 1 140px}
  .filters input:not([type=hidden]){max-width:100%;min-width:0}
  .tabs a{font-size:12px;padding:9px 11px}
  .resource-info{padding:17px}
  .resource-info h1{font-size:22px}
  .login-layout{margin:20px 16px 32px}
  .login-intro,.login-form{padding:26px}
  .login-intro h1,html[lang=ru] .login-intro h1{font-size:29px}
  .login-intro .eyebrow{margin-bottom:16px}
  .login-intro h1{margin-bottom:16px}
  .login-foot{margin-top:20px}
  .guide-shell>.workspace{padding-top:16px}
  .guide-heading{margin:13px 0 16px}
  .guide-heading h1{font-size:23px}
}
@media(max-width:380px){
  .stats{gap:6px}
  .stat{padding:11px 8px}
  .stat strong{font-size:20px}
  .section-head{gap:8px}
  .section-head h2{font-size:18px}
  .section-head a{font-size:11px}
}
