@font-face{font-family:Golos;src:url('/static/golos-cyrillic.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Golos;src:url('/static/golos-latin.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{font-family:Golos,'Segoe UI',sans-serif;color:#22344a;background:#f5f7fa;font-size:15px;font-synthesis:none;--accent:#34506e;--soft:#edf4f8;--line:#dce4eb;--muted:#66778a}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:9px 14px;font-weight:500}button:hover{background:#edf2f6;border-color:#aabccc}button:disabled{opacity:.5;cursor:not-allowed}button,input,select,summary{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid #7eafe1;outline-offset:3px}input,select{min-height:44px;padding:9px 11px;border:1px solid #bdcbd8;border-radius:6px;background:#fff;width:100%;max-width:100%;min-width:0}label{display:block;font-size:13px;font-weight:500;margin-bottom:12px}label input,label select{display:block;margin-top:6px}h1,h2,h3,p{margin:0}h1{font-size:26px;font-weight:600;letter-spacing:-.5px;margin-bottom:18px}h2{font-size:19px;font-weight:600;margin-bottom:12px}h3{font-size:15px;font-weight:600}p{line-height:1.6;margin:10px 0}small{font-size:11px}.muted,.hint{color:var(--muted);font-size:13px;line-height:1.6}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#253f5a;color:#fff}.quiet{background:transparent;border-color:transparent}.smallbutton{min-height:44px;padding:7px 10px;font-size:12px}.empty{padding:26px 16px;color:var(--muted);font-size:14px;line-height:1.6}.loading{opacity:.55;pointer-events:none}[hidden]{display:none!important}
.portal{display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-rows:74px 1fr;min-height:100dvh}.portal-head{grid-column:1;grid-row:1;background:#2f465f;color:#fff;padding:19px 16px;display:flex;align-items:center;gap:8px}.portal-head strong{font-size:22px;letter-spacing:.2px;font-weight:800}.mode{font-size:10px;color:#d4e2ee}.menu-toggle{display:none}nav{grid-column:1;grid-row:2;background:linear-gradient(#2f465f,#34506e);padding:12px;display:flex;flex-direction:column;gap:7px}nav button{border:0;border-radius:8px;text-align:left;color:#c9d6e2;background:transparent;min-height:46px;padding:12px 15px;font-size:14px}nav button.active{background:#d9f8ff;color:#2f465f;font-weight:600}nav button:hover{background:#43617e;color:#fff}nav button.active:hover{background:#d9f8ff;color:#2f465f}.nav-help{margin-top:18px;font-size:12px}main{grid-column:2;grid-row:1/3;padding:26px;min-width:0}.tab{min-width:0}.utility{position:absolute;right:26px;top:17px}.utility button{font-size:12px;color:var(--muted)}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-right:90px}.sectionhead input{width:auto}.sectionhead h1{margin-bottom:18px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.range-arrows{display:flex;gap:5px}.range-arrows button{width:44px;padding:4px;font-size:24px}.seg{display:inline-flex;gap:3px;padding:3px;background:#edf1f5;border:1px solid var(--line);border-radius:7px}.seg button{border:0;background:transparent;border-radius:4px;font-size:12px;padding:7px 12px}.seg button.active{background:#fff;color:var(--accent);box-shadow:0 1px 3px #263b4e15}.grow{margin-left:auto}.controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.controls label{flex:1;min-width:130px;margin:0}.controls button{flex-shrink:0}.range{padding:14px;background:var(--soft);margin:8px 0 16px;border-radius:6px}.snapshot{font-size:11px;color:var(--muted);padding:0 2px;border:0;background:transparent;min-height:44px}.data-warning{font-size:12px;color:#885924;margin:10px 0}.tablewrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;margin-top:14px;overscroll-behavior:contain;scrollbar-color:#9eafbf #f4f6f8}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}th,td{padding:11px 14px;border-bottom:1px solid var(--line);text-align:left}th{font-weight:500;background:#f3f6f9}td:first-child{white-space:normal;min-width:150px}.personsmall{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:3px}
.schedule-grid{max-height:76dvh}.schedule-grid table{width:max-content;min-width:100%;font-variant-numeric:tabular-nums}.schedule-grid th,.schedule-grid td{min-width:62px;padding:3px 5px;text-align:center;vertical-align:middle}.schedule-grid thead th{position:sticky;top:0;z-index:3;background:#f3f6f9;height:64px}.schedule-grid tbody th,.schedule-grid thead th:first-child{position:sticky;left:0;text-align:left;min-width:204px;width:204px;max-width:220px;padding:10px 14px;background:#fff;border-right:1px solid var(--line);z-index:2;white-space:normal;overflow-wrap:anywhere}.schedule-grid thead th:first-child{z-index:4;background:#f3f6f9}.schedule-grid .group-row th,.schedule-grid .group-row td{background:#edf2f7;color:#47627c;height:32px;font-size:12px}.schedule-grid .sum{background:#f1f5f8;color:#2f465f;min-width:96px}.schedule-grid .totalrow td,.schedule-grid .totalrow th{background:#e7eff5;font-weight:600}.schedule-grid .pool-row th{font-weight:400;color:var(--muted);font-size:12px;padding-left:24px}.schedule-grid .selected{background:#edf4fa}.cellbutton,.dayhead,.function-status,.sum-help{border:0;background:transparent;padding:5px;min-width:44px;min-height:44px;width:100%;border-radius:4px;font-size:13px}.dayhead{font-size:11px;color:var(--muted)}.dayhead strong{display:block;font-size:17px;color:#22344a;margin-top:2px}.cellbutton small,.sum-help small{display:block;font-size:10px;color:var(--muted);line-height:1.5}.cellbutton:hover,.dayhead:hover,.function-status:hover,.sum-help:hover{background:#e6edf3;border:0}.sum-help{font-size:12px}.statusmark{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:4px;font-size:12px}.statusmark.work{background:#e4f2e9;color:#246744}.statusmark.off{background:#f0f2f4;color:#69767c}.statusmark.vacation{background:#fff0c9;color:#805900}.statusmark.unknown{background:transparent;color:#707b87}.status-dot{display:inline-block;width:11px;height:11px;border-radius:50%;flex-shrink:0;vertical-align:middle}.status-dot.covered{background:#398259}.status-dot.gap{background:#b34d43}.status-dot.unknown{background:transparent;border:1.5px solid #75828e}.schedule-grid .function-row th{font-size:12px;font-weight:500}.function-status{display:grid;place-items:center}.incompletecell{color:#80613b}.function-row .incompletecell{color:inherit}.function-section th{font-weight:500}.grid-person-button{border:0;background:transparent;padding:0;min-height:44px;text-align:left;width:100%;font-size:12px}.grid-person-button span{display:block;color:var(--muted);font-size:10px;margin-top:3px;font-weight:400}
.datebar{margin-bottom:12px}.quick{display:flex;gap:7px;flex-wrap:wrap}.datebar .muted{font-size:11px;margin:6px 0 12px}.counts{display:flex;flex-wrap:wrap;gap:18px;margin:10px 0 16px}.counts div{flex:1;min-width:90px}.counts strong{display:block;font-size:25px;line-height:1.4;font-weight:600}.counts span{font-size:12px}.counts small{display:block;font-size:11px;color:var(--muted)}.othercounts{display:flex;gap:20px;font-size:13px;margin-bottom:14px}.statuscounts{gap:18px}.statuscounts div{min-width:0;flex:initial}.statuscounts strong{display:inline;font-size:13px}.statuscounts span{font-size:12px;color:var(--muted)}.functions-summary{margin:14px 0 20px}.functionrow{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;min-height:48px;padding:10px 0;text-align:left;font-size:12px}.functionrow strong{font-weight:500}.functionrow:hover{background:transparent;color:#34506e}.functions-summary>.smallbutton{margin-top:10px}.crewgroup{margin:26px 0}.crewgroup h2{font-size:18px;margin-bottom:8px}.role{border:1px solid var(--line);border-radius:6px;margin:10px 0;background:#fff;overflow:hidden}.rolehead{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 14px;background:#f8fafc;border-bottom:1px solid var(--line)}.rolehead span{font-size:11px;color:var(--muted)}.person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}.person:last-child{border:0}.personname{font-size:13px;font-weight:500}.personactions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.poolrow{background:#f2f6fa}.tag{display:inline-block;font-size:11px;padding:5px 7px;border-radius:4px;white-space:nowrap}.tag.work{background:#e4f2e9;color:#246744}.tag.off{background:#f0f2f4;color:#69767c}.tag.vacation{background:#fff0c9;color:#805900}.search-label{max-width:420px;margin:16px 0}.coverage{font-size:13px;line-height:1.6;padding:10px 0}.coverage.warn{color:#805f2d}.coverage.good{color:#296142}.coverage p{margin:6px 0}.coverage details{border:0;padding:0}.coverage-details{background:transparent;border:0;border-bottom:1px solid var(--line);padding:0;border-radius:0}.coverage-details summary{font-size:12px;color:var(--muted)}
#notice:not(:empty),.errorbox{padding:11px 14px;background:#fff4ec;color:#805333;border:1px solid #ead6c5;border-radius:5px;margin:0 0 16px;font-size:13px;line-height:1.5}.errorbox{margin:10px 0}.successbox{color:#296142;padding:10px 0}.stack{display:grid;gap:10px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}details{margin:12px 0;padding:13px 15px;border:1px solid var(--line);border-radius:6px;background:#fff}summary{min-height:44px;display:list-item;padding:11px 0;cursor:pointer;font-size:13px;font-weight:500}details form,details .detailbody{margin-top:14px}.rule{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.6}.rule button{float:right}dialog{width:calc(100% - 28px);max-width:560px;max-height:90dvh;border:1px solid var(--line);border-radius:10px;padding:24px;color:#22344a;background:#fff}dialog::backdrop{background:#172f4b66}.dialoghead{display:flex;justify-content:space-between;align-items:start;gap:12px}.dialoghead h2{line-height:1.4}.dialoghead button{font-size:24px;padding:0 10px;margin:0}.dialoghead~button{margin-top:16px}dialog button{margin:4px 4px 0 0}fieldset{border:1px solid var(--line);padding:14px;border-radius:6px;margin:14px 0}legend{font-size:13px;font-weight:500}#preview{background:#edf3f8;border-radius:5px;padding:13px;margin:12px 0;font-size:13px;line-height:1.7}#edit-error,#default-error,#functions-error,#pool-error,#function-catalog-error{color:#a33e31;font-size:13px;line-height:1.6;margin:10px 0}input[type=checkbox]{display:inline-block;width:22px;min-height:22px;height:22px;vertical-align:middle;margin:0 8px 0 0}#functions-checkboxes label{display:flex;align-items:center;min-height:44px;gap:5px}.help-legend p{display:flex;align-items:center;gap:12px;font-size:13px}.detail-state{display:flex;align-items:center;gap:12px;margin:15px 0;font-size:13px}.detail-person{padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.detail-person small{display:block;color:var(--muted);margin-top:4px}.summary-day{display:block;width:100%;text-align:left;margin:7px 0;font-size:13px}
@media(max-width:760px){.portal{display:block}.portal-head{padding:12px 16px;justify-content:space-between;gap:10px}.portal-head strong{font-size:20px}.mode{margin-left:auto}.menu-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#ffffff12;border:1px solid #ffffff18;color:#eef5fa;min-width:120px;font-size:12px}nav{display:none;padding:8px 12px 14px}.menu-open nav{display:flex}.nav-help{margin-top:7px}main{padding:21px 16px}.utility{position:static;display:flex;justify-content:flex-end;height:28px;margin-top:-8px}.utility button{min-height:36px;padding:4px 0;font-size:11px}.sectionhead{padding-right:0}.sectionhead h1,h1{font-size:23px}.sectionhead input{max-width:155px;font-size:13px}.toolbar{gap:8px}.seg button{padding:7px 9px;font-size:11px}.grow{margin-left:0}.range-arrows button{width:44px}.schedule-grid th,.schedule-grid td{min-width:56px}.schedule-grid tbody th,.schedule-grid thead th:first-child{min-width:158px;width:158px;max-width:158px;padding:9px 11px}.schedule-grid .sum{min-width:88px}.schedule-grid .function-row th{font-size:11px}.schedule-grid{max-height:73dvh}.counts{gap:12px}.groupcounts{flex-wrap:nowrap;gap:8px}.counts div{min-width:0}.counts strong{font-size:24px}.counts span{font-size:11px}.person{padding:12px}.personactions{max-width:130px}.rolehead{padding:11px 12px}.rolehead h3{font-size:13px}.rolehead span{max-width:105px;text-align:right}.two{gap:8px}dialog{padding:20px}.controls label{min-width:115px}.controls button{flex:1}.crewgroup h2 .muted{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.portal-head .menu-toggle{background:#3b5671;color:#fff;border-color:#56718c}.portal-head .menu-toggle:hover,.portal-head .menu-toggle:focus-visible{background:#43617e;color:#fff;border-color:#7890a8}
