/* CRM Учебка · расширенная демонстрационная навигация и кабинет курсанта */
#guest-nav .demo-nav-search{position:sticky;top:-20px;z-index:3;background:#0f1b13;padding:7px 5px 11px}
#demo-nav-filter{width:100%;background:#172a1c;color:#ecf8e7;border:1px solid #45694a;padding:11px 12px;border-radius:10px;font-size:12px;outline-offset:2px}
#guest-nav .demo-nav-heading{margin:19px 9px 7px;padding:0 3px;font-weight:850;font-size:10px;letter-spacing:.075em;color:#a2c0a2}
#guest-nav .demo-nav-group{display:grid;gap:2px}
#guest-nav .nav-item{min-height:38px;padding:7px 9px;font-size:11.5px;gap:7px}
#guest-nav .nav-item .nav-icon{font-size:15px;width:23px;height:23px}
.demo-student-switch{display:flex;flex-direction:column;gap:6px}
.demo-student-switch label{font-size:9px;letter-spacing:.08em;color:#abc8ad;font-weight:850}
.demo-student-switch select{border:1px solid #4c7354;border-radius:9px;background:#203b28;color:#e8f7df;padding:10px;max-width:235px;min-width:130px;font-size:11px}
.demo-student-mode #guest-nav [data-group]{display:none!important}
.demo-student-mode #student-nav-group{display:grid!important}
.demo-student-mode .demo-nav-search{display:none}
.demo-pill{border-radius:100px;border:1px solid #558159;background:#203b27;color:#baf29e;padding:8px 10px;font-size:10px;font-weight:850;white-space:nowrap}
.demo-data-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
.demo-data-card{background:linear-gradient(130deg,#213a2b,#17251d);border:1px solid #3d5c41;border-radius:15px;padding:19px 18px;min-height:131px;display:flex;flex-direction:column;gap:9px}
.demo-data-card>span{color:#adc7ae;font-size:11px;font-weight:800}
.demo-data-card strong{font-size:clamp(21px,2.6vw,34px);line-height:1.12;letter-spacing:-.05em;color:#f1ffee;overflow-wrap:anywhere}
.demo-data-card small{color:#8fb49b;font-size:10px;line-height:1.4}
.demo-extended-card{border-radius:16px;background:#17271e;border:1px solid #3c5d43;margin:0 0 18px;overflow:hidden;box-shadow:0 12px 28px #00000016}
.demo-extended-card>header{border-bottom:1px solid #304b36;padding:20px 22px;background:linear-gradient(90deg,#20382a,#17271f)}
.demo-extended-card>header h3{font-size:18px;font-weight:850;letter-spacing:-.035em;margin:0;color:#effbea}
.demo-extended-card>header p{font-size:11px;line-height:1.6;color:#aec4ae;margin:7px 0 0}
.demo-extended-card-body{padding:21px 22px}
.demo-table-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.demo-table{border-collapse:collapse;width:100%;min-width:480px;font-size:12px}
.demo-table th{color:#9cbd9f;font-weight:900;text-transform:uppercase;letter-spacing:.035em;font-size:10px;text-align:left;white-space:nowrap;background:#23372a;padding:13px}
.demo-table td{border-top:1px solid #344a3a;color:#d4e7d3;padding:13px;vertical-align:top}
.demo-table tr:hover td{background:#24392b}
.demo-table td:first-child{font-weight:750}
.demo-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:14px 22px 22px}
.demo-extended-card-body>.demo-card-actions{padding:14px 0 0}
.demo-step-list{display:grid;gap:13px}
.demo-step-list>div{display:flex;gap:13px;align-items:flex-start;color:#c2d6c4;font-size:12px;line-height:1.6;background:#1f3527;padding:14px;border-radius:10px}
.demo-step-list b{border:1px solid #699368;background:#2d4e36;color:#c4f5b1;border-radius:9px;padding:5px 8px}
.demo-muted{font-size:12px;color:#a4b9a7;line-height:1.65}
.demo-qr{max-width:290px;margin:6px auto 10px;text-align:center;padding:25px;border:1px solid #507e55;background:#203a29;border-radius:17px}
.demo-qr-pattern{margin:auto auto 17px;background:#e5f7e7;color:#1c4221;letter-spacing:8px;border:13px solid #e5f7e7;border-radius:8px;line-height:1.18;font-size:48px}
.demo-qr strong{font-size:15px;display:block;color:#e9ffe0;overflow-wrap:anywhere}
.demo-qr small{color:#aac9af;font-size:11px;display:block;margin-top:8px}
.demo-quiz{display:grid;gap:12px}
.demo-quiz h3{font-size:19px;color:#edffeb}
.demo-choice{display:block;width:100%;text-align:left;background:#233b2b;border:1px solid #4c7151;color:#e6f4e1;border-radius:10px;padding:14px}
.demo-choice:hover,.demo-choice:focus-visible{background:#34513a}
.demo-choice.right{border-color:#8fe070;background:#335d36}
.demo-choice.wrong{border-color:#c68a72;background:#603d36}
.demo-chat{max-height:270px;overflow-y:auto;min-height:110px;background:#102018;border:1px solid #375440;border-radius:12px;padding:15px}
.demo-chat-message{padding:11px;border-radius:9px;background:#294630;color:#e5f3df;font-size:12px;line-height:1.6}
#demo-student-chat label{display:block;color:#bbd5ba;font-size:11px;margin:16px 0 7px;font-weight:750}
.demo-chat-compose{display:flex;gap:10px}
.demo-chat-compose input{flex:1;min-width:0;color:#f1fff0;border:1px solid #52775a;border-radius:10px;background:#1b3022;padding:12px}
.demo-checkbox{display:flex;gap:10px;align-items:center;color:#d9e9d8;font-size:12px;line-height:1.5}
.demo-checkbox input{width:18px;height:18px}
@media(max-width:1200px){.demo-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-student-switch select{max-width:180px}}
@media(max-width:790px){.demo-student-switch{width:100%}.demo-student-switch select{max-width:none;width:100%}.demo-pill{display:none}.demo-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-data-card{padding:14px;min-height:105px}.demo-data-card strong{font-size:22px}.demo-extended-card>header{padding:16px}.demo-extended-card-body{padding:14px}.demo-card-actions{padding:12px 14px 16px}.demo-chat-compose{flex-direction:column}.demo-table{font-size:11px}}
@media(max-width:420px){.demo-data-card strong{font-size:19px}.demo-data-card>span{font-size:10px}.demo-qr-pattern{font-size:34px;letter-spacing:5px}}

/* Мобильная навигация курсанта — как в действующей CRM */
.demo-student-bottom{display:none}
@media(max-width:790px){
 .demo-student-mode~.demo-student-bottom{display:block}
 .demo-student-bottom:not([hidden]){display:block}
 .demo-student-mode .body-area{padding-bottom:78px}
 .demo-student-bottom-main{position:fixed;z-index:80;bottom:0;left:0;right:0;min-height:64px;padding-bottom:env(safe-area-inset-bottom);background:#14261b;border-top:1px solid #507556;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));box-shadow:0 -6px 20px #0007}
 .demo-student-bottom-main button{border:0;border-right:1px solid #244b2c;background:transparent;color:#acd1ab;padding:9px 1px 5px;min-width:0;display:grid;justify-items:center;gap:3px}
 .demo-student-bottom-main button.active{color:#b9fb99;background:#24452c}
 .demo-student-bottom-main span{font-size:21px;line-height:1.2}
 .demo-student-bottom-main small{font-size:9px;line-height:1.2;white-space:nowrap}
 .demo-student-bottom-more{position:fixed;z-index:79;bottom:calc(64px + env(safe-area-inset-bottom));left:0;right:0;max-height:62dvh;overflow:auto;background:#192e21;border:1px solid #4b6c4d;border-radius:17px 17px 0 0;padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;box-shadow:0 -15px 35px #0009}
 .demo-student-bottom-more[hidden]{display:none}
 .demo-student-bottom-more button{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;min-height:72px;border:1px solid #40664a;border-radius:11px;color:#d6edcf;background:#25402d;font-size:10px;padding:7px}
 .demo-student-bottom-more span{font-size:19px}
}
@media(min-width:791px){.demo-student-bottom{display:none!important}}
