@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/golos-text-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/golos-text-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/golos-text-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/golos-text-latin.woff2") format('woff2');
  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;
}

@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-400-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-400-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-400-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-400-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-400-latin.woff2") format('woff2');
  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;
}

@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-700-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-700-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-700-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-700-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ubuntu Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ubuntu-mono-700-latin.woff2") format('woff2');
  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;
}

body { margin: 0; background: #EEF3F7; }
a { color: #2F7FEF; text-decoration: none; }
a:hover { color: #FF5A2C; }
input::placeholder { color: #A7B7C4; }

.page {
  min-height: 100vh;
  box-sizing: border-box;
  background: linear-gradient(120deg, #EAF6EC 0%, #F5FAFD 38%, #EFF1FC 70%, #E7F4FB 100%);
  font-family: 'Golos Text', sans-serif;
  color: #1F2A33;
  display: flex; flex-direction: column;
}

.top {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 28px clamp(24px, 4vw, 60px);
}

.top-side { margin-left: auto; display: flex; align-items: center; gap: 20px; }

.me { font-family: 'Ubuntu Mono', monospace; font-size: 15px; color: #55697A; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-item {
  padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: #55697A;
}
.nav-item:hover { color: #2F7FEF; }
.nav-item.on { color: #2F7FEF; background: #E4EFFF; font-weight: 600; }

.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 22px;
  font-family: 'Golos Text', sans-serif; font-size: 15px; line-height: normal;
  text-align: center; cursor: pointer;
}
.btn-ghost { border-color: #C9DCEB; color: #55697A; }
.btn-ghost:hover { color: #FF5A2C; border-color: #FFBFA8; }
.btn-blue { background: #2F7FEF; border-color: #2F7FEF; color: #FFFFFF; font-weight: 700; }
.btn-blue:hover { background: #1C67D1; border-color: #1C67D1; color: #FFFFFF; }
.btn-warn { border-color: #FFBFA8; color: #FF5A2C; }
.btn-warn:hover { background: #FFF1EC; color: #FF5A2C; }
.btn-sm { padding: 8px 14px; border-radius: 10px; font-size: 14px; }

.login {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(24px, 4vw, 60px) 70px;
}

.login-col {
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; gap: 26px;
}

.login-head { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.login-brand {
  font-family: 'Ubuntu Mono', monospace; font-weight: 700; font-size: 28px;
  color: #2F7FEF;
}
.login-title { font-weight: 800; font-size: 40px; line-height: 1.15; letter-spacing: -.015em; }

.login-card {
  background: #FFFFFF;
  border: 1px solid #D7E7F5; border-radius: 20px;
  padding: 34px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 12px 34px rgba(47, 127, 239, .1);
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 14px; font-weight: 500; color: #55697A; }

.field-in {
  width: 100%; box-sizing: border-box;
  font-family: 'Golos Text', sans-serif; font-size: 17px;
  color: #1F2A33; background: #F6FAFD;
  border: 1px solid #D7E7F5; border-radius: 12px;
  padding: 15px 16px; outline: none;
}
.field-in[type=password] { letter-spacing: .1em; }

.field-in[aria-invalid=true] { border-color: #D92D20; background: #FEF3F2; }
.login-error {
  font-size: 15px; font-weight: 500; color: #D92D20;
  animation: pop-in .2s ease-out;
}

.enter {
  background: #2F7FEF; color: #FFFFFF;
  border: 0; border-radius: 12px;
  padding: 18px;
  font-family: 'Golos Text', sans-serif; font-weight: 700; font-size: 17px;
  cursor: pointer;
}
.enter:hover { background: #1C67D1; }

.cab {
  flex: 1;
  display: flex; justify-content: center;
  padding: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 60px) 70px;
}

.cab-col {
  width: 100%; max-width: 1040px;
  display: flex; flex-direction: column; gap: 20px;
}

.who { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.who-text { display: flex; flex-direction: column; gap: 8px; }
.who-label { font-size: 16px; color: #6B7E8C; }
.who-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.who-id {
  font-family: 'Ubuntu Mono', monospace; font-weight: 700; font-size: 44px;
  color: #2F7FEF; line-height: 1.05;
}

.role {
  font-size: 14px; font-weight: 600;
  color: #2F7FEF; background: #E4EFFF;
  border-radius: 999px; padding: 8px 16px;
}

.who-hello {
  font-weight: 800; font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15; letter-spacing: -.015em; color: #1F2A33;
}
.has-name .who-text { gap: 10px; }
.has-name .who-id { font-size: 28px; }

.who-name { font-size: 18px; font-weight: 600; color: #1F2A33; }

.state {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF;
  border: 1px solid #D7E7F5; border-radius: 999px;
  padding: 12px 20px;
}
.state-dot { width: 9px; height: 9px; border-radius: 50%; background: #C4600A; }
.state-word { font-size: 15px; color: #55697A; }

.term {
  background: #FFFFFF;
  border: 1px solid #D7E7F5; border-radius: 20px;
  box-shadow: 0 16px 40px rgba(47, 127, 239, .1);
}

.term-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid #E4EFF7;
  background: #F8FBFD;
  border-radius: 19px 19px 0 0;
}
.light { width: 11px; height: 11px; border-radius: 50%; }
.light.red { background: #FF6B5B; }
.light.amber { background: #F5A623; }
.light.green { background: #3FC47C; }

.term-title {
  font-family: 'Ubuntu Mono', monospace; font-size: 14px;
  color: #6B7E8C; margin-left: 10px;
}
.term-state {
  margin-left: auto;
  font-family: 'Ubuntu Mono', monospace; font-size: 13px;
  color: #C4600A;
}

.term-body {
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}

.facts {
  width: 100%; max-width: 560px;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 24px; row-gap: 8px;
  text-align: left;
  font-family: 'Ubuntu Mono', monospace; font-size: 15px;
  color: #6B7E8C;
}
.facts > .ct { color: #C4600A; }
.facts > .val { color: #1F2A33; }
.facts > .warn { color: #C4600A; }
.facts > .mute { color: #8497A6; }
.facts > .id { color: #2F7FEF; font-weight: 700; }

.is-on .state-dot { background: #3FC47C; }
.is-on .term-state,
.is-on .facts > .ct { color: #3FC47C; }

.lead {
  font-size: 17px; color: #55697A;
  max-width: 520px; line-height: 1.55; text-wrap: pretty;
}
.lead.bad { color: #D92D20; }

.go {
  background: #2F7FEF; color: #FFFFFF;
  border: 0; border-radius: 14px;
  padding: 22px 56px;
  font-family: 'Golos Text', sans-serif; font-weight: 700; font-size: 19px;
  cursor: pointer;
}
.go:hover { color: #FFFFFF; background: #1C67D1; }

body.term-page {
  height: 100vh;
  display: flex; flex-direction: column;
  background: var(--term-bg);
}

.term-top {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 8px clamp(16px, 3vw, 28px);
  background: var(--term-fg);
  font-family: 'Golos Text', sans-serif;
}

.term-frame { flex: 1; width: 100%; border: 0; display: block; }

.back {
  background: transparent;
  border: 1px solid var(--term-bg);
  border: 1px solid color-mix(in srgb, var(--term-bg) 45%, transparent);
  border-radius: 12px;
  padding: 9px 18px;
  font-size: 15px; color: var(--term-bg);
}
.back:hover {
  color: var(--term-bg);
  background: color-mix(in srgb, var(--term-bg) 14%, transparent);
}

.shp-themes { position: relative; width: 100%; max-width: 320px; }

.shp-themes > summary {
  list-style: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent;
  border: 1px solid #C9DCEB; border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px; color: #55697A; cursor: pointer;
}
.shp-themes > summary::-webkit-details-marker { display: none; }
.shp-themes > summary:hover { color: #FF5A2C; border-color: #FFBFA8; }
.shp-themes[open] > summary { color: #2F7FEF; border-color: #2F7FEF; }

.shp-themes .chip {
  width: 12px; height: 12px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 51, .12);
}

.shp-themes .drop-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 20;
  display: flex; flex-direction: column; gap: 4px;
  background: #FFFFFF;
  border: 1px solid #D7E7F5; border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(47, 127, 239, .14);
}

.shp-theme {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent; border-radius: 10px;
  padding: 9px 12px;
  font-family: 'Golos Text', sans-serif; font-size: 15px;
  color: #55697A; cursor: pointer;
}
.shp-theme:hover { background: #F6FAFD; }
.shp-theme.on { border-color: #2F7FEF; background: #E4EFFF; color: #2F7FEF; }
.shp-theme > span { display: flex; align-items: center; gap: 10px; }

.shp-themes .swatch {
  width: 26px; height: 14px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 51, .14);
}
.shp-themes .sample { font-family: 'Ubuntu Mono', monospace; font-size: 14px; }

.card {
  background: #FFFFFF;
  border: 1px solid #D7E7F5; border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 16px 40px rgba(47, 127, 239, .1);
  display: flex; flex-direction: column; gap: 20px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.card-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.card-sub { margin: 0; font-size: 19px; font-weight: 700; }
.note { font-size: 15px; color: #8497A6; }

.mono { font-family: 'Ubuntu Mono', monospace; }
.mute { color: #8497A6; }
.warn { color: #C4600A; }
.bad { color: #D92D20; }
.blue { color: #2F7FEF; }
.green { color: #3FC47C; }
.right { text-align: right; }

.flash {
  border-radius: 14px; padding: 14px 18px;
  font-size: 15px; line-height: 1.5;
}
.flash.bad { background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; }
code {
  font-family: 'Ubuntu Mono', monospace; font-size: .95em;
  background: rgba(255, 255, 255, .7); border-radius: 6px; padding: 1px 6px;
}

.empty, .hint { margin: 0; font-size: 15px; color: #8497A6; }
.err { font-size: 15px; font-weight: 500; color: #D92D20; animation: pop-in .2s ease-out; }

.toast {
  position: fixed; top: 20px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  width: max-content; max-width: min(560px, calc(100vw - 32px)); box-sizing: border-box;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px 14px 18px;
  background: #FFFFFF; color: #1F2A33;
  border: 1px solid #D7E7F5; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(31, 42, 51, .16);
  font-family: 'Golos Text', sans-serif; font-size: 15px; line-height: 1.5;
  animation: toast-in .25s ease-out;
  transition: opacity .25s, transform .25s;
}
.toast::before {
  content: ""; flex: none;
  width: 9px; height: 9px; margin-top: 7px; border-radius: 50%;
  background: #3FC47C;
}
.toast.bad { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.toast.bad::before { background: #D92D20; }
.toast.out { opacity: 0; transform: translate(-50%, -10px); }
.toast-text { overflow-wrap: anywhere; }
.toast-x {
  flex: none; margin-left: 4px; padding: 0 4px;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 20px; line-height: 1.1; color: inherit; opacity: .55;
}
.toast-x:hover { opacity: 1; }

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .login-error, .err { animation: none; }
  .toast { transition: none; }
}

.in {
  box-sizing: border-box;
  font-family: 'Golos Text', sans-serif; font-size: 15px; color: #1F2A33;
  background: #F6FAFD;
  border: 1px solid #D7E7F5; border-radius: 12px;
  padding: 12px 14px; outline: none;
}
.in:focus { border-color: #2F7FEF; }
select.in {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px; cursor: pointer;
  background: #F6FAFD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2355697A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}

.check {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: #55697A; cursor: pointer;
}
.check span { white-space: nowrap; }
.check input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 20px; height: 20px; flex: none;
  border: 1px solid #C9DCEB; border-radius: 6px; background: #FFFFFF;
  cursor: pointer;
}
.check input:checked {
  border-color: #2F7FEF;
  background: #2F7FEF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.5l3 3 6-7' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters .grow { flex: 1 1 190px; min-width: 180px; }

textarea.in {
  width: 100%; min-height: 96px; resize: vertical;
  line-height: 1.5;
}
.in[type=file] { width: 100%; padding: 10px 12px; cursor: pointer; }
.in.num { width: 140px; }

.form-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.form-row > .grow { flex: 1 1 260px; }
.form-row .grow > .in { width: 100%; }
.form-row form { margin: 0; }
.form-row .check { padding-bottom: 12px; }
.form-row + .form-row { margin-top: 4px; }
form.add { display: flex; flex-direction: column; gap: 14px; margin: 0; }

.bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }

.find { display: flex; align-items: center; gap: 12px; }
.find .in { flex: 1; min-width: 0; }

.scroll { overflow-x: auto; }
.tbl { display: flex; flex-direction: column; font-size: 15px; }
.tbl > .th, .tbl > .tr {
  display: grid; gap: 12px; align-items: center;
  padding: 11px 10px;
}
.tbl > .th {
  padding-top: 0;
  border-bottom: 1px solid #D7E7F5;
  font-family: 'Ubuntu Mono', monospace; font-size: 14px; color: #8497A6;
}
.tbl > .tr { border-bottom: 1px solid #EEF3F7; }
.tbl > .tr:hover { background: #F8FBFD; }

.tbl.accounts { min-width: 900px; }
.tbl.accounts > .th, .tbl.accounts > .tr {
  grid-template-columns: 90px 130px 90px 80px 130px 130px 1fr;
}
.tbl.journal { min-width: 780px; }
.tbl.journal > .th, .tbl.journal > .tr {
  grid-template-columns: 130px 120px 210px 100px 1fr;
}
.tbl.sess { min-width: 660px; }
.tbl.sess > .th, .tbl.sess > .tr {
  grid-template-columns: 130px 150px 100px 120px 1fr;
}

.tbl.people { min-width: 860px; }
.tbl.people.pupils > .th, .tbl.people.pupils > .tr {
  grid-template-columns: 24px 80px minmax(180px, 1fr) 80px 76px 70px 120px 150px;
}
.tbl.people.ingroup > .th, .tbl.people.ingroup > .tr {
  grid-template-columns: 24px 80px minmax(180px, 1fr) 76px 70px 120px 110px 150px;
}
.tbl.people.teachers > .th, .tbl.people.teachers > .tr {
  grid-template-columns: 80px minmax(180px, 1fr) minmax(100px, .6fr) 76px 70px 120px 150px;
}
.tbl.people.admins > .th, .tbl.people.admins > .tr {
  grid-template-columns: 80px minmax(180px, 1fr) 76px 70px 120px 150px;
}
.tbl.people.pupils.bare > .th, .tbl.people.pupils.bare > .tr {
  grid-template-columns: 80px minmax(180px, 1fr) 80px 76px 70px 120px 150px;
}
.tbl.people.guests { min-width: 620px; }
.tbl.people.guests > .th, .tbl.people.guests > .tr {
  grid-template-columns: 80px 90px 76px 130px 120px minmax(150px, 1fr);
}
.tbl .check input { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 2px 10px; }

.tbl.groups { min-width: 700px; }
.tbl.groups > .th, .tbl.groups > .tr {
  grid-template-columns: minmax(90px, .5fr) minmax(220px, 1.6fr) 90px 110px 170px;
}

.tbl.roster { min-width: 600px; }
.tbl.roster > .th, .tbl.roster > .tr {
  grid-template-columns: 80px minmax(200px, 1fr) 90px 130px 100px;
}
.tbl.roster.guests { min-width: 420px; }
.tbl.roster.guests > .th, .tbl.roster.guests > .tr {
  grid-template-columns: 80px 90px minmax(130px, 1fr) 100px;
}

.tbl.plan { min-width: 960px; }
.tbl.plan > .th, .tbl.plan > .tr {
  grid-template-columns: 56px 116px 70px minmax(170px, 1fr) 110px 90px minmax(220px, 1.3fr);
  align-items: start;
}
.tbl.fresh { min-width: 620px; }
.tbl.fresh > .th, .tbl.fresh > .tr {
  grid-template-columns: 80px minmax(200px, 1fr) 130px 100px 90px;
}

.id { font-family: 'Ubuntu Mono', monospace; font-weight: 700; color: #2F7FEF; }

.acts {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  font-size: 14px;
}
.acts form { margin: 0; }
.acts a, .acts button {
  font: inherit; color: #2F7FEF;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.acts a:hover, .acts button:hover { color: #FF5A2C; }

.foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.shown { font-size: 15px; color: #6B7E8C; }
.shown a { margin-left: 8px; }

.problems {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.problems > li {
  border-radius: 12px; padding: 10px 14px;
  background: #FEF3F2; color: #B42318; font-size: 15px;
}

.doings { display: flex; flex-wrap: wrap; gap: 10px; }
.doings form { margin: 0; display: flex; }

.gauges {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.gauge { display: flex; flex-direction: column; gap: 8px; }
.glabel { font-size: 14px; font-weight: 500; color: #55697A; }
.track {
  display: block; height: 8px; overflow: hidden;
  border-radius: 999px; background: #E4EFF7;
}
.track > i { display: block; height: 100%; border-radius: 999px; background: #2F7FEF; }
.gval { font-family: 'Ubuntu Mono', monospace; font-size: 15px; color: #1F2A33; }

.period {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 15px; color: #6B7E8C;
}
.period .now { font-family: 'Ubuntu Mono', monospace; color: #2F7FEF; }

.pick .drop-list.cal { max-height: none; gap: 10px; }
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: #1F2A33;
}
.cal-nav {
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: 1px solid #C9DCEB; border-radius: 10px;
  font: inherit; font-size: 18px; line-height: 1; color: #55697A; cursor: pointer;
}
.cal-nav:hover { color: #FF5A2C; border-color: #FFBFA8; }
.cal-nav:disabled { color: #D7E7F5; border-color: #EEF3F7; cursor: default; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; margin-top: 8px; }
.cal-wd {
  padding: 4px 0; text-align: center;
  font-family: 'Ubuntu Mono', monospace; font-size: 13px; color: #8497A6;
}
.cal-day {
  padding: 7px 0;
  background: transparent; border: 0; border-radius: 8px;
  font-family: 'Golos Text', sans-serif; font-size: 14px; color: #1F2A33; cursor: pointer;
}
.cal-day:hover { background: #F6FAFD; }
.cal-day.out { color: #A7B7C4; }
.cal-day.in { background: #E4EFFF; color: #2F7FEF; border-radius: 0; }
.cal-day.edge { background: #2F7FEF; color: #FFFFFF; border-radius: 8px; }
.cal-day:disabled { background: transparent; color: #D7E7F5; cursor: default; }
.cal-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-dates .in { width: 100%; padding: 8px 10px; font-size: 14px; }
.cal-dates .btn { grid-column: 1 / -1; }

.drop { position: relative; }
.drop > summary { list-style: none; cursor: pointer; }
.drop > summary::-webkit-details-marker { display: none; }

.pick { width: 300px; max-width: 100%; }
.pick > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #F6FAFD;
  border: 1px solid #D7E7F5; border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px; color: #1F2A33;
}
.pick[open] > summary { border-color: #2F7FEF; }
.caret {
  width: 7px; height: 7px; margin: 0 4px 4px 0; flex: none;
  border-right: 1.6px solid #55697A; border-bottom: 1.6px solid #55697A;
  transform: rotate(45deg);
}
.pick[open] .caret { transform: rotate(-135deg); margin: 4px 4px 0 0; }

.pick .drop-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  display: flex; flex-direction: column; gap: 2px;
  max-height: 320px; overflow: auto;
  background: #FFFFFF;
  border: 1px solid #D7E7F5; border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(47, 127, 239, .14);
}
.mitem, .opt {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 12px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; color: #1F2A33;
}
.mitem:hover, .opt:hover { background: #F6FAFD; color: #1F2A33; }
.mitem.on, .opt.on { border-color: #2F7FEF; background: #E4EFFF; color: #2F7FEF; }
.mitem .grp { font-size: 13px; color: #8497A6; }

.plot { display: flex; align-items: stretch; gap: 12px; }
@media (max-width: 700px) {
  .plot-wrap { overflow-x: auto; }
  .plot { min-width: 540px; padding-right: 8px; }
}
.plot .yax {
  width: 44px; height: 180px; flex: none;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  font-family: 'Ubuntu Mono', monospace; font-size: 13px; color: #8497A6;
}
.plot .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.plot .area { position: relative; height: 180px; }
.plot svg { display: block; width: 100%; height: 180px; }
.plot .xax {
  position: relative; height: 16px;
  font-family: 'Ubuntu Mono', monospace; font-size: 13px; color: #8497A6;
}
.plot .xax > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.plot .xax > span.start { transform: none; }
.plot .xax > span.end { transform: translateX(-100%); }

.dot {
  position: absolute; transform: translate(-50%, -50%);
  box-sizing: border-box;
  background: #FFFFFF; border: 2px solid #2F7FEF; border-radius: 50%;
  cursor: pointer; outline: none;
}
.dot:hover, .dot:focus { background: #2F7FEF; }
.dot > i {
  display: none;
  position: absolute; left: 50%; top: 50%; z-index: 5;
  transform: translate(-50%, -170%);
  white-space: nowrap; font-style: normal;
  background: #FFFFFF;
  border: 1px solid #D7E7F5; border-radius: 10px;
  padding: 6px 10px;
  font-family: 'Ubuntu Mono', monospace; font-size: 13px; color: #1F2A33;
  box-shadow: 0 8px 20px rgba(47, 127, 239, .14);
  pointer-events: none;
}
.dot:hover > i, .dot:focus > i { display: block; }

.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box; overflow-y: auto;
  background: rgba(31, 42, 51, .28);
  font-family: 'Golos Text', sans-serif; color: #1F2A33;
}
.modal-card {
  width: min(640px, 100%); box-sizing: border-box; margin: auto;
  background: #FFFFFF;
  border: 1px solid #D7E7F5; border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 24px 60px rgba(31, 42, 51, .18);
  display: flex; flex-direction: column; gap: 18px;
}
.modal-card.narrow { width: min(460px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.x { padding: 6px 13px; font-size: 20px; line-height: 1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; }

.found { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  border: 1px solid #D7E7F5; border-radius: 14px; background: #FFFFFF;
}
.tile:hover { border-color: #2F7FEF; background: #F8FBFD; }
.tile.on { border-color: #2F7FEF; background: #E4EFFF; }
.tid { font-family: 'Ubuntu Mono', monospace; font-weight: 700; font-size: 16px; color: #2F7FEF; }
.tsub { font-size: 13px; color: #8497A6; }
