/* Demo controls share the exact review shell; working screens are unchanged. */
#demo-toolbar{position:relative;display:flex;align-items:center;margin-left:16px;min-width:0}
#demo-view-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;max-width:240px;padding:8px 12px;margin:0;border:1px solid #6c7d87;border-radius:8px;background:transparent;color:#fff;font:inherit;font-size:14px;white-space:nowrap}
#demo-view-toggle:hover{background:#35454f}
#demo-view-toggle:focus-visible{outline:2px solid #b4d0d0;outline-offset:2px}
#demo-view-menu{top:calc(100% + 4px);left:0;right:auto;width:288px;max-width:calc(100vw - 24px);z-index:120}
#demo-view-menu strong{display:block;font-size:13px;font-weight:500;color:#52636c;padding:12px 16px 8px}
#demo-view-menu button{display:flex;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0;padding:12px 16px;border:0;border-radius:0;background:white;color:#20313b;text-align:left;font:inherit;font-size:14px}
#demo-view-menu button:hover,#demo-view-menu button:focus-visible{background:#eff3f3}
#demo-view-menu button[aria-pressed=true]{background:#f3f6f6}
.demo-view-check{color:#246b51;font-weight:600}
#logoutBtn,[data-pwa-install],.notifications-setup,.ekos-import-history,#profilePasswordForm{display:none!important}
.demo-unread{position:relative}
.demo-unread::after{content:'';position:absolute;right:9px;top:8px;width:6px;height:6px;border-radius:50%;background:#b8cfb0}
.demo-event{margin-bottom:24px}
.demo-event p{margin:8px 0 12px}
.demo-event .sg-btn+.sg-btn{margin-left:8px}
.demo-form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
#assignmentContent>h2{padding-right:44px}
@media(max-width:767px){
 #demo-view-menu{position:fixed;top:48px;left:8px;right:8px;width:auto;max-width:none}
 #demo-toolbar{margin-left:8px;flex:1;min-width:0}
 #demo-view-toggle{width:100%;font-size:12px;gap:6px;padding:8px;min-width:0}
 .ekos .topbar{gap:0;padding-left:8px;padding-right:8px}
 .ekos .topbar-brand{padding:0;gap:0;min-width:36px}
 .ekos .topbar-brand-text,.ekos .topbar-brand>span{display:none}
 .ekos .topbar-actions{gap:0;margin-left:4px}
 .ekos .topbar-actions>.icon-btn{width:40px;min-width:40px;padding:0}
 .demo-event .sg-btn{margin:4px 8px 4px 0!important}
}
@media(max-width:360px){#demo-view-label{max-width:94px;overflow:hidden;text-overflow:ellipsis}#demo-view-toggle{gap:4px}.ekos .topbar-actions>.icon-btn{width:36px;min-width:36px}}
/* User forms: stable columns and a checkbox that never collapses. */
.ekos #createUserForm{max-width:1000px;padding:24px}
.ekos #createUserForm h3{margin:0 0 20px;padding:0;border:0}
.ekos #createUserForm .inline-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;align-items:end}
.ekos #createUserForm .inline-form>label:not(.check-row){display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
.ekos #createUserForm input:not([type=checkbox]),.ekos #createUserForm select{width:100%;height:44px;min-height:44px;margin:0}
.ekos #createUserForm .check-row,.ekos #content .account-row.roster-row-edit .check-row{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;white-space:nowrap;min-width:140px;min-height:44px;margin:0;word-break:normal;overflow-wrap:normal}
.ekos #createUserForm .check-row input,.ekos #content .account-row.roster-row-edit .check-row input{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;accent-color:#5a7d7d}
.ekos #createUserForm .inline-form>button{justify-self:start;margin-top:4px}
.ekos #createUserForm>p{margin:16px 0 0;font-size:13px}
.ekos #content .account-row.roster-row-edit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;align-items:center}
.ekos #content .account-row.roster-row-edit>input,.ekos #content .account-row.roster-row-edit>select{width:100%;min-width:0;height:44px;margin:0}
.ekos #content .account-row.roster-row-edit>button{justify-self:start;margin:0}
@media(max-width:767px){.ekos #createUserForm{padding:16px}.ekos #createUserForm .inline-form,.ekos #content .account-row.roster-row-edit{grid-template-columns:minmax(0,1fr);gap:14px}}
/* Separate labels, amounts and progress so they remain readable on mobile. */
.sg-kpi-plan{margin-block:20px 16px}
.sg-kpi-plan-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:16px;align-items:end;margin-bottom:12px}
.sg-kpi-plan-row>span:not(.sg-kpi-plan-pct){display:flex;flex-direction:column;gap:6px;min-width:0}
.sg-kpi-plan-label{font-size:13px;color:#667984;line-height:1.4}
.sg-kpi-plan-row b{font-size:24px;line-height:1.25;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.sg-kpi-plan-pct{padding:6px 10px;border-radius:8px;background:#edf2e6;color:#526b3e;font-size:15px;font-weight:600;white-space:nowrap}
.sg-kpi-plan-why{margin:12px 0 0;font-size:13px;line-height:1.5;color:#667984}
.sg-otzyvy-card{margin-top:20px}
.sg-otzyvy-card .sg-otzyv{padding:18px 0;border-top:1px solid #e1e7ea}
.sg-otzyvy-card .sg-otzyv-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
.sg-otzyvy-card .sg-otzyv-kto{font-weight:600}
.sg-otzyvy-card .sg-otzyv-data{font-size:12px;color:#667984;white-space:nowrap}
.sg-otzyvy-card .sg-otzyv-zvyozdy{display:block;color:#879e62;letter-spacing:2px;margin-bottom:8px}
.sg-otzyvy-card .sg-otzyv-tekst{margin:8px 0 0;line-height:1.6;max-width:75ch}
.sg-otzyvy-card .sg-otzyv-bez-ocenki,.sg-otzyvy-card .sg-otzyv-schetchik{font-size:13px;color:#667984}
@media(max-width:600px){.sg-kpi-plan-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sg-kpi-plan-row b{font-size:21px}.sg-kpi-plan-pct{grid-column:1/-1;justify-self:start}.sg-kpi-head{gap:12px;align-items:start;flex-wrap:wrap}}

#profilePasswordForm{display:none!important}
