
.schule { --snav-h: calc(66px + env(safe-area-inset-bottom)); }
.schule .app { padding-bottom: 60px; }
.schule .app:has(> .sshell) { max-width: none; padding: 0; }
.sshell { min-height: 100dvh; }
.smain { max-width: 760px; margin: 0 auto; padding: 4px 16px calc(var(--snav-h) + 28px); }
.smain--wide { max-width: 1260px; }
.smain > h1:first-of-type { margin-top: 18px; }
.sbanners { display: grid; gap: 10px; }
.sbanners:not(:empty) { margin: 12px 0 6px; }
body:has(dialog.sdlg[open]) { overflow: hidden; }

.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.banner.probe { background: var(--orange-soft); }
.banner.mail { background: var(--teal-soft); }
.banner.avv { background: var(--card); box-shadow: inset 0 0 0 2px var(--teal-soft); }
.savv--open { border: 2px solid var(--teal); }
.savv h2 { margin: 0; }
.savv p { margin: 0; }
.savv__pos { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.savv__pos legend { padding: 0; margin-bottom: 6px; }
.banner .grow { flex: 1 1 240px; }

.sbadge {
  flex: none; display: inline-block; min-width: 40px; max-width: 96px; height: 40px; padding: 0 7px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal-dark); font: 600 16px/40px var(--display); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbadge--big { min-width: 56px; max-width: 140px; height: 56px; border-radius: 16px; font-size: 22px; line-height: 56px; }

.sside { display: contents; }
.shead {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--bg); border-bottom: 2px solid var(--line);
}
.schule a.sbrand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.sbrand .brandlogo { flex: none; border-radius: 22%; box-shadow: 0 2px 0 var(--edge); }
.sbrand .wordmark { font-size: 22px; }
.spick {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 3px 12px 3px 3px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 2px 0 var(--line);
}
.spick:active { transform: translateY(2px); box-shadow: none; }
.spick .sbadge { min-width: 34px; max-width: 120px; height: 34px; border-radius: 999px; font-size: 15px; line-height: 34px; }
.spick__t { padding-left: 9px; }
.spick__chev { color: var(--muted); }
.shead__r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sme {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); border-radius: 999px; cursor: pointer; box-shadow: 0 2px 0 var(--line);
}
.sme:active { transform: translateY(2px); box-shadow: none; }
.sme__who { display: grid; gap: 2px; margin-bottom: 12px; }
.sme__who b { overflow-wrap: anywhere; }
.sme__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); line-height: 0; }
.sdlg .btn[data-logout] { margin-top: 14px; }
.sside__school, .sclasses, .sside__foot { display: none; }

.snav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; gap: 2px;
  background: var(--card); border-top: 2px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.schule a.snav__i {
  flex: 1 1 0; max-width: 120px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 2px; border-radius: 14px; color: var(--muted); text-decoration: none; font-weight: 800; font-size: 12px;
}
.schule a.snav__i.on { background: var(--teal-soft); color: var(--teal-dark); }
.snav__ic { display: block; line-height: 0; }
.snav__t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schule .review-bar { bottom: var(--snav-h); }

@media (min-width: 900px) {
  .schule { --snav-h: 0px; }
  .sshell { display: grid; grid-template-columns: 272px minmax(0, 1fr); align-items: start; background: linear-gradient(90deg, var(--card) 270px, var(--line) 270px 272px, transparent 272px); }
  .sside {
    position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
    padding: 20px 14px 16px; background: var(--card); border-right: 2px solid var(--line);
  }
  .shead { position: static; padding: 0 6px; border: 0; background: none; }
  .spick, .sme { display: none; }
  .sside__school { display: block; padding: 0 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
  .sclasses { display: flex; flex-direction: column; gap: 2px; }
  .sside__label { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 8px 6px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .schule .sside__label a { color: var(--teal-dark); font-size: 13px; letter-spacing: 0; text-transform: none; text-decoration: none; }
  .schule a.sclass { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 14px; color: var(--ink); text-decoration: none; }
  .schule a.sclass:hover { background: var(--bg); }
  .schule a.sclass.on { background: var(--teal-soft); }
  .sclass .sbadge { min-width: 38px; max-width: 64px; height: 38px; line-height: 38px; font-size: 15px; background: var(--bg); }
  .sclass.on .sbadge { background: var(--teal); color: var(--card); }
  .sclass__t { display: grid; min-width: 0; }
  .sclass__t b { font: 600 16px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sclass__t small { color: var(--muted); font-size: 12px; font-weight: 700; }
  .sclass--add .sbadge { background: none; border: 2px dashed var(--line); color: var(--muted); line-height: 34px; }
  .sclass--add .sclass__t b { color: var(--muted); }
  .spast { margin-top: 6px; }
  .spast summary { padding: 6px 8px; cursor: pointer; color: var(--muted); font-weight: 800; font-size: 14px; }
  .snav { position: static; flex-direction: column; gap: 2px; padding: 12px 0 0; border: 0; border-top: 2px solid var(--line); background: none; }
  .schule a.snav__i { flex: none; max-width: none; flex-direction: row; gap: 12px; padding: 8px 12px; font: 600 16px var(--display); color: var(--ink); }
  .schule a.snav__i:hover { background: var(--bg); }
  .schule a.snav__i.on { background: var(--teal-soft); color: var(--teal-dark); }
  .schule a.snav__i--klassen { display: none; }
  .snav__ic .ic { width: 24px; height: 24px; }
  .sside__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 12px 6px 0; border-top: 2px solid var(--line); }
  .sside__me { display: grid; min-width: 0; }
  .sside__me b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sside__me small { color: var(--muted); font-size: 12px; font-weight: 700; }
  .smain { padding: 18px 32px 56px; }
}

.sclassv { display: grid; grid-template-columns: minmax(0, 1fr); }
.sclassv__head { display: flex; align-items: center; gap: 14px; padding-top: 14px; }
.sclassv__head h1 { margin: 0 0 2px; }
.stabs { display: flex; gap: 2px; margin: 12px -16px 16px; padding: 0 12px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.stabs::-webkit-scrollbar { display: none; }
.schule a.stab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px 9px; margin-bottom: -2px;
  border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; font: 600 16px var(--display);
}
.schule a.stab:hover { color: var(--ink); }
.schule a.stab.on { color: var(--teal-dark); border-bottom-color: var(--teal); }
.stab__n { border-radius: 999px; padding: 1px 7px; background: var(--line); color: var(--muted); font: 800 12px/1.4 "Nunito", system-ui, sans-serif; }
.stab__n.warn { background: var(--orange-soft); color: var(--orange-ink); }
@media (max-width: 479px) {
  .schule a.stab { padding: 10px 7px 9px; font-size: 15px; }
  .stab__n { display: none; }
}
.sclassv__main { min-width: 0; }
.sclassv__main > * + *, #stab > * + * { margin-top: 14px; }
.sclassv__main h2 { margin: 24px 0 10px; }
.sclassv__aside { display: none; min-width: 0; }
.sclassv--kinder .sclassv__aside { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
@media (min-width: 900px) { .stabs { margin: 14px 0 18px; padding: 0; } }
@media (min-width: 1200px) {
  .sclassv { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto 1fr; grid-template-areas: "head aside" "tabs aside" "main aside"; column-gap: 28px; }
  .sclassv__head { grid-area: head; }
  .stabs { grid-area: tabs; }
  .sclassv__main { grid-area: main; }
  .sclassv__aside, .sclassv--kinder .sclassv__aside { grid-area: aside; display: flex; flex-direction: column; gap: 14px; margin-top: 14px; align-self: start; }
}
.sclassv [id] { scroll-margin-top: 84px; }

.sbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.sbar__t { flex: 1 1 280px; margin: 0; }
h2.sbar__t { margin: 0; }
.sbar__acts { justify-content: flex-end; }
.sbar__acts .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sbar__acts .ic { flex: none; }
.seg.sseg { display: inline-flex; flex: 0 1 auto; max-width: 100%; }
.sseg button { flex: none; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
@media (max-width: 599px) {
  .seg.sseg { display: flex; width: 100%; }
  .sseg button { flex: 1; padding: 8px 4px; }
  .sbar__acts { width: 100%; }
  .sbar__acts .btn { flex: 1 1 auto; }
  .sbar__acts .btn.teal { flex-basis: 100%; }
  .sbar__acts--two .btn, .sbar__acts--two .btn.teal { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
}

.stable-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; -webkit-overflow-scrolling: touch; }
@media (min-width: 600px) {
  .stable-wrap { margin: 0; padding: 4px 8px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
}
.manage .stable { width: 100%; border-collapse: collapse; font-size: 15px; }
.manage .stable th, .manage .stable td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.manage .stable tbody tr:last-child > * { border-bottom: 0; }
.stable thead th { white-space: nowrap; }
.stable thead button { border: 0; background: none; padding: 4px 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.stable thead button:hover { color: var(--ink); }
.stable thead [aria-sort] button { color: var(--teal-dark); }
.sarrow { margin-left: 3px; font-size: 10px; }
.manage .stable .snum { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stable .sdim { color: var(--muted); font-weight: 700; }
.stable .sstrong { font-weight: 900; }
.stable td.sdim { font-size: 14px; white-space: nowrap; }
.stable tbody tr { cursor: pointer; }
.stable tbody tr:hover > * { background: var(--teal-soft); }
.manage .stable .sname { font-family: inherit; font-size: 15px; color: var(--ink); width: 44%; }
.schule .stable .sname a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 800; }
.stable .sname a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.sav { flex: none; font-size: 24px; line-height: 1; }
.sname__t { display: grid; min-width: 0; }
.sname__t small { font-size: 12px; font-weight: 700; color: var(--muted); }
.stable tr.shid .sname__t { color: var(--muted); }
.swide { display: none; }
@media (min-width: 600px) { .swide { display: table-cell; } .snarrow { display: none; } }
.stable small.sdim { font-size: 12px; }
.manage .stable .sasgcol { text-align: center; white-space: nowrap; padding-left: 10px; }
.manage .stable td.shidcell { font-size: 13px; font-weight: 700; text-align: left; }
@media (max-width: 420px) {
  .manage .stable th, .manage .stable td { padding: 8px 4px; }
  .stable thead th:last-child, .stable thead th:last-child button { white-space: normal; text-align: inherit; }
  .sav { font-size: 20px; }
  .schule .stable .sname a { gap: 6px; }
}

.sempty { padding: 26px 18px; }
.sempty h1, .sempty h2 { margin: 6px 0 0; }
.sempty .capy, .sempty > svg { margin: 0 auto; }

.card.scard { padding: 16px; }
.scard > * + * { margin-top: 10px; }
.scard h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.scard h3 .ic { flex: none; }
.scard p { margin-bottom: 0; }
.sexam { display: flex; align-items: center; gap: 12px; }
.sexam + .sexam { margin-top: 10px; }
.sexam__day { flex: none; display: grid; place-items: center; align-content: center; width: 50px; height: 54px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-ink); }
.sexam__day b { font: 600 22px/1 var(--display); }
.sexam__day small { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.sexam .grow { display: grid; min-width: 0; }
.sexams { display: grid; gap: 10px; }
@media (min-width: 700px) { .sexams { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sexam + .sexam { margin-top: 0; } }
.sgoal { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sgoal i { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.srank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.srank li { display: flex; align-items: center; gap: 8px; }
.srank li .ic { flex: none; }
.srank__av { flex: none; font-size: 22px; line-height: 1; }
.srank__name { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schule .srank__name a { color: var(--ink); text-decoration: none; }
.schule .srank__name a:hover { text-decoration: underline; }
.srank__n { display: inline-block; min-width: 26px; text-align: center; color: var(--muted); }
.srank__kid { display: flex; align-items: center; gap: 8px; min-width: 0; }
.manage .srank-t { font-size: 15px; }
.manage .srank-t th, .manage .srank-t td { padding: 6px; vertical-align: middle; }
.manage .srank-t .snum { text-align: right; font-variant-numeric: tabular-nums; }
.srank-t td:first-child { width: 44px; text-align: center; }
.srank-t .sdim { color: var(--muted); }
.scard__t { display: grid; gap: 2px; }
.scard__t b { font: 600 17px/1.25 var(--display); }

.sfeed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sfeed li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.sfeed li .grow { display: grid; min-width: 0; }
.sfeed li > .ic { flex: none; }
.schule .sfeed a { color: var(--ink); text-decoration: none; }
.schule .sfeed a:hover { text-decoration: underline; }
.sfeed small { font-size: 12px; }
.sfeed__av { flex: none; font-size: 22px; line-height: 1; }
.sfeed__more summary { cursor: pointer; color: var(--teal-dark); font-weight: 800; }
.sfeed__more .sfeed { margin-top: 10px; }

.sst { display: inline-block; border-radius: 8px; padding: 1px 8px; font-size: 12px; font-weight: 900; line-height: 1.5; white-space: nowrap; background: var(--line); color: var(--muted); }
.sst--ok { background: var(--green-soft); color: var(--green-dark); }
.sst--late { background: var(--orange-soft); color: var(--orange-ink); }
.sst--run { background: var(--teal-soft); color: var(--teal-dark); }
.sst--plan { background: var(--turbo-soft); color: var(--ink); }
.sasgs { display: grid; gap: 12px; }
@media (min-width: 1000px) and (max-width: 1199px), (min-width: 1400px) { .sasgs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
#stab .card.sasg { display: grid; gap: 10px; margin: 0; padding: 16px; }
.sasg h3 { margin: 0 0 2px; font-size: 18px; }
.sasg p { margin: 0; }
.sasg__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sasg__top small { margin-left: auto; font-weight: 700; }
.sasg__units { display: flex; flex-wrap: wrap; gap: 4px; }
.sasg__units span { border-radius: 8px; padding: 2px 8px; background: var(--bg); font-size: 13px; font-weight: 700; }
.sasg__units .gone { text-decoration: line-through; color: var(--muted); }
.sasg__bar { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line); }
.sasg__bar i { display: block; min-width: 4px; }
.sasg__bar .b-ok { background: var(--green); }
.sasg__bar .b-late { background: var(--orange); }
.sasg__bar .b-open { background: var(--line); }
.sasg__nums { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.sasg__kids summary, .sasg-old summary { cursor: pointer; color: var(--teal-dark); font-weight: 800; padding: 2px 0; }
.sasg-kid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.sasg-kid li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sasg-kid .grow { flex: 1; display: grid; min-width: 0; font-weight: 800; }
.sasg-kid small { font-weight: 600; }
.schule .sasg-kid a { color: var(--ink); text-decoration: none; }
.schule .sasg-kid a:hover { text-decoration: underline; }
.sasg-kid .sav { font-size: 20px; }
.skid__sec .sasg-kid { margin: 0; }
.sweeks { flex: none; display: flex; gap: 3px; }
.sasg-kid .grow .sweeks { margin-top: 3px; }
.sweeks i { width: 10px; height: 10px; border-radius: 3px; background: var(--line); }
.sweeks i.on { background: var(--green); }
.sasg__acts { padding-top: 10px; border-top: 1px solid var(--line); }
.sasg--old { opacity: .85; }
#stab .sasg-old .sasgs { margin-top: 10px; }
.sdlg .seg.sseg.sasgf__goal { display: flex; width: 100%; }
.sasgf__goal button { flex: 1; }
.sapick { display: grid; gap: 10px; }
.sapick__sel { display: grid; gap: 6px; }
.sapick__sel p { margin: 0; }
.sapick__chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow-y: auto; }
.sapick__chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--ink); font-size: 14px; font-weight: 700; }
.sapick__chip button { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.sapick__chip button:hover, .sapick__chip button:focus-visible { background: var(--card); }
.sapick__subjs { display: flex; flex-wrap: wrap; gap: 6px; }
.sapick__subj { padding: 6px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sapick__subj.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 2px 0 var(--teal); }
.sapick__subj small { font-weight: 900; }
.sapick__list { display: grid; gap: 8px; max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.sapick__ch { border: 2px solid var(--line); border-radius: 14px; background: var(--card); }
.sapick__ch summary { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; cursor: pointer; list-style: none; }
.sapick__ch summary::-webkit-details-marker { display: none; }
.sapick__ch summary::before { content: "▸"; flex: none; color: var(--muted); transition: transform .15s; }
.sapick__ch[open] summary::before { transform: rotate(90deg); }
.sapick__cht { flex: 1; min-width: 0; display: grid; }
.sapick__cht small { font-weight: 700; }
.sapick__ch summary .btn { flex: none; }
.sapick__units, .sapick__flat { display: grid; gap: 8px; padding: 0 12px 12px; }
.sapick__flat { padding: 4px 2px; }
.sapick__u { align-items: center; color: var(--ink); font-size: 15px; font-weight: 700; }
.sapick__u > span { display: grid; min-width: 0; }
.sapick__u small { font-size: 12px; font-weight: 600; }
.sapick__ex { color: var(--orange-ink); }
.sasgf .check b { color: var(--ink); }
.sasgf__for { border: 0; margin: 0; padding: 0; min-width: 0; }
.sasgf__for legend { padding: 0; margin-bottom: 6px; }
.sasgf__kids { display: grid; gap: 8px; max-height: 264px; overflow-y: auto; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; }
@media (min-width: 500px) { .sasgf__kids { grid-template-columns: 1fr 1fr; } }
.sasgf__kids .check { align-items: center; color: var(--ink); font-size: 15px; font-weight: 700; }
.sasgf__pause { border: 2px solid var(--line); border-radius: 14px; }
.sasgf__pause[hidden] { display: none; }
.sasgf__pause summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer; }
.sasgf__pause summary::-webkit-details-marker { display: none; }
.sasgf__pause summary::after { content: "▾"; flex: none; color: var(--muted); transition: transform .15s; }
.sasgf__pause[open] summary::after { transform: rotate(180deg); }
.sasgf__pause summary b { flex: 1; }
.sasgf__pause summary small { font-weight: 700; }
.sasgf__pausein { padding: 0 12px 12px; }
.sasgf__pausein p { margin: 0; }
.spauses { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.spauses:empty { display: none; }
.spauses li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--turbo-soft); }
.spauses .grow { flex: 1; display: grid; min-width: 0; font-size: 14px; }
.spauses small { font-weight: 600; }
.shol { display: flex; flex-wrap: wrap; gap: 8px; }
.shol__b { display: grid; gap: 1px; text-align: left; padding: 6px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.shol__b small { color: var(--muted); font-weight: 700; font-size: 12px; }
.shol__b[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.shol__b.on { border-style: dashed; }
.shol__b:disabled { cursor: default; opacity: .7; }
.sasg__for { font-weight: 700; }
.sasg__pauses { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.spause { display: inline-flex; align-items: center; gap: 2px; border-radius: 8px; padding: 1px 4px 1px 8px; background: var(--turbo-soft); font-size: 13px; font-weight: 800; }
.spause button { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.spause button:hover { background: var(--line); color: var(--ink); }
.sweeks i.pause { background: repeating-linear-gradient(135deg, var(--turbo-soft) 0 2px, var(--line) 2px 4px); }
.sasg__bar .b-pause { background: var(--turbo-soft); }
.sreport-top h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.sreport-top h3 .ic { flex: none; }
.sreport-top p { margin: 0; }
.sasg-sum__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.sasg-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sasg-sum li { display: grid; gap: 6px; }
.sasg-sum__t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sreport-top a.btn { justify-self: start; }

dialog.sdlg { max-width: none; max-height: none; padding: 0; border: 0; background: none; color: var(--ink); overflow: visible; }
dialog.sdlg::backdrop { background: rgba(28, 21, 17, .5); }
.sdlg__in { display: flex; flex-direction: column; background: var(--card); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.sdlg__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 2px solid var(--line); }
.sdlg__head h2 { flex: 1; min-width: 0; margin: 0; font-size: 20px; }
.sdlg__x { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer; }
.sdlg__x .ic { display: block; }
.sdlg__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 22px; }
.sdlg__body > * + * { margin-top: 16px; }
.sdlg__body > section + section { padding-top: 16px; border-top: 2px solid var(--line); }
dialog.sdlg--menu, dialog.sdlg--form { width: 100%; margin: auto 0 0; }
.sdlg--menu .sdlg__in, .sdlg--form .sdlg__in { max-height: 90dvh; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sdlg-up .22s ease-out; }
dialog.sdlg--drawer { width: 100%; height: 100%; margin: 0; }
.sdlg--drawer .sdlg__in { height: 100%; padding-bottom: env(safe-area-inset-bottom); animation: sdlg-up .22s ease-out; }
@media (min-width: 900px) {
  dialog.sdlg--menu, dialog.sdlg--form { width: min(580px, calc(100% - 48px)); margin: auto; }
  .sdlg--menu .sdlg__in, .sdlg--form .sdlg__in { max-height: 86dvh; border-radius: 24px; padding-bottom: 0; animation-name: sdlg-pop; }
  dialog.sdlg--drawer { width: 480px; height: 100dvh; margin: 0 0 0 auto; }
  .sdlg--drawer .sdlg__in { border-left: 2px solid var(--line); animation-name: sdlg-side; }
}
@keyframes sdlg-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes sdlg-pop { from { transform: scale(.96); opacity: 0; } }
@keyframes sdlg-side { from { transform: translateX(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sdlg__in { animation: none !important; } }

.srows { display: grid; gap: 4px; }
.schule a.srow { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.schule a.srow:hover, .schule a.srow.on { background: var(--teal-soft); }
.srow .grow { flex: 1; display: grid; min-width: 0; }
.srow.on .sbadge { background: var(--teal); color: var(--card); }
.srow small { font-weight: 700; }
.srow__ic { flex: none; width: 36px; font-size: 26px; line-height: 1; text-align: center; }
.sdlg .spast summary { padding: 8px 10px; cursor: pointer; color: var(--muted); font-weight: 800; }
.sjoin a.srow { border: 2px solid var(--line); }
.manage label.jcount { flex-direction: row; align-items: center; gap: 8px; }
.schule label.jcount > input { width: 84px; margin: 0; }
.teachrow select { padding: 10px 8px; font-size: 15px; }
.manage .sdlg .pill.teal { background: var(--teal-soft); color: var(--teal-dark); }
.sdlg h3.srows__h { margin: 14px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.sbadge.sbadge--course, .sclass .sbadge.sbadge--course { background: var(--orange-soft); color: var(--orange-ink); }
.sclass.on .sbadge.sbadge--course, .srow.on .sbadge.sbadge--course { background: var(--orange); color: var(--card); }
.sside__label--sub { margin-top: 10px; }
.skid__groups { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; font-weight: 700; }
.schule h2.sh2 { margin-top: 26px; }

.spk { border: 2px solid var(--line); border-radius: 16px; background: var(--card); }
.spk > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; font-family: var(--display); }
.spk[open] > summary { border-bottom: 2px solid var(--line); }
.spk__all { margin: 10px 14px 0; font-weight: 800; }
.spk__kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 12px; padding: 8px 14px 12px; }
.spk__kid { min-width: 0; }
.spk__kid[hidden], .spk__all[hidden] { display: none; }
.spk__foot { position: sticky; bottom: -1px; padding: 10px 0 2px; background: var(--card); align-items: center; }

.snyt:empty { display: none; }
.snyt p { margin: 0; }
.snyt__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px 16px; margin-top: 8px; }
.snyt .check { align-items: center; color: var(--ink); font-size: 15px; }

.skid__head { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.skid__head .grow { display: grid; min-width: 0; }
.skid__head h2 { margin: 0; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skid__head small { font-weight: 700; }
.skid__av { flex: none; font-size: 40px; line-height: 1; }
.skid__nav { flex: none; display: flex; gap: 4px; }
.sdlg__nav { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 700 22px/1 var(--display); cursor: pointer; }
.sdlg__nav:disabled { opacity: .35; cursor: default; }
.skpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.skpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--bg); min-width: 0; }
.skpi b { font: 600 20px/1.15 var(--display); overflow-wrap: anywhere; }
.skpi small { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.25; }
.skid__sec h3 { margin: 0 0 10px; font-size: 17px; }
.skid__sec > * + * { margin-top: 10px; }
.skid__subj { border: 2px solid var(--line); border-radius: 16px; }
.skid__subj + .skid__subj { margin-top: 8px; }
.skid__subj summary { display: grid; gap: 6px; padding: 10px 12px; cursor: pointer; list-style: none; }
.skid__subj summary::-webkit-details-marker { display: none; }
.skid__subj-t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.skid__bar { display: flex; gap: 2px; }
.skid__bar i { flex: 1; height: 8px; border-radius: 3px; }
.skid__units { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 6px; }
.skid__units li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.skid__units .grow { display: grid; min-width: 0; }
.skid__units small { font-weight: 600; }
.skid__units .mxcell { flex: none; width: 38px; height: 28px; font-size: 13px; }
.skid__more summary { cursor: pointer; color: var(--teal-dark); font-weight: 800; padding: 4px 0; }
.skid__more > div { margin-top: 8px; }
.skid__more select { flex: 1; min-width: 0; }
.sdlg input.grow { flex: 1; min-width: 0; }

.sgrid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) { .sgrid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sgrid2 > .stack > * + * { margin-top: 14px; }
#stab > .sgrid2 > .card { margin: 0; }
.schule .tools > label.grow { flex: 1 1 140px; min-width: 0; }
.schule .tools select.grow { flex: 1 1 220px; min-width: 0; }
.schule label.small > input, .schule label.small > select { width: 100%; margin-top: 4px; }
.spath-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.spath-h .ic { flex: none; }

.spathsec > * + * { margin-top: 0; }
.spsubj { display: flex; flex-wrap: wrap; gap: 8px; }
.schule .spsubj__b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 700 15px "Nunito", system-ui, sans-serif; cursor: pointer; }
.schule .spsubj__b:hover { border-color: var(--teal); }
.spsubj__b .ic { flex: none; }
.spsubj__n { color: var(--muted); font-size: 13px; font-weight: 800; }
.schule .spsubj__b.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.spsubj__b.on .spsubj__n { color: var(--teal-dark); }
.spath-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin: 20px 0 10px; }
.spath-top .spath-h { margin: 0; }
.spath-top .spath-h .small { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; }
.spath-tools { flex: none; margin-left: auto; }
.spath-help { margin: 0 0 10px; }
.card.spath { margin: 0; }
.card.spath--folded { padding-top: 2px; padding-bottom: 2px; }
.spch + .spch { border-top: 1px solid var(--line); }
.spch > summary { display: flex; align-items: center; gap: 8px; padding: 13px 0; cursor: pointer; list-style: none; color: var(--teal-dark); font: 600 16px/1.3 var(--display); }
.spch > summary::-webkit-details-marker { display: none; }
.spch > summary::before { content: "›"; flex: none; width: 12px; font-size: 24px; line-height: 1; transition: transform .15s; }
.spch[open] > summary::before { transform: rotate(90deg); }
.spch__t { flex: 1; min-width: 0; }
.spch > summary .iconbtn { font-size: 16px; padding: 2px 4px; }
.spch__n { flex: none; min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--muted); text-align: center; font: 800 13px/1.5 "Nunito", system-ui, sans-serif; }
.spch__units { padding: 0 0 4px 20px; border-top: 1px solid var(--line); }
.spch__units > .pathunit:last-child { border-bottom: 0; }
@media (max-width: 599px) { .spch__units { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .spch > summary::before { transition: none; } }
.spu__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.schule .spu__b { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--teal-dark); font: 800 13px "Nunito", system-ui, sans-serif; cursor: pointer; }
.schule .spu__b:hover { border-color: var(--teal); }
.schule .spu__b--on { border-color: transparent; background: var(--orange-soft); color: var(--orange-ink); }
.spu__ex { color: var(--orange-ink); font-weight: 700; white-space: nowrap; }
.spch__ex { flex: none; font-size: 15px; }
.spath-h .sro { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--bg); border: 1px solid var(--line); }
.spath--ro { background: var(--bg); box-shadow: none; }
.card.smx { padding: 8px 0 8px; overflow: hidden; }
.smx .mxwrap { margin: 0; padding-right: 12px; }
.smx .matrix .mxname { background: var(--card); padding-left: 14px; }
@media (max-width: 599px) {
  .card.smx { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
}

.scgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.schule a.card.sccard { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ink); text-decoration: none; }
.schule a.card.sccard:hover { border-color: var(--teal); }
.sccard .grow { display: grid; gap: 2px; min-width: 0; }
.sccard b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.sccard small { font-weight: 700; }
.spast-list summary { cursor: pointer; padding: 8px 0; }
.spast-list .scgrid { margin-top: 8px; }

.signup { max-width: 560px; margin: 0 auto; }
.signup-teaser { gap: 8px; display: grid; }
.signup-teaser p { margin: 0; }
.su-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.su-steps li { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 4px solid var(--line); font-size: 13px; font-weight: 800; color: var(--muted); }
.su-steps li span { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; }
.su-steps li.on { color: var(--ink); border-color: var(--teal); }
.su-steps li.on span { background: var(--teal); color: #fff; }
.su-steps li.done { border-color: var(--teal); }
.su-steps li.done span { background: var(--teal-soft); color: var(--teal-dark); }
.su-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px) { .su-two { grid-template-columns: 1fr; } }
.su-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.su-nav { display: flex; gap: 10px; }
.su-nav #su-next { flex: 1; }
.field.bad input, .field.bad select { border-color: var(--red); }
.ferr { color: var(--red-dark); font-weight: 800; font-size: 13px; }
#su-callname:empty { display: none; }

.guide { --g-ink: #2b211b; --g-muted: #6b5a4e; --g-teal: #16857d; --g-line: #f0e3d6; --g-soft: #fff4e8; padding: 6mm 12mm; font-size: 11.5pt; }
.guide .letter-head { margin-bottom: 6mm; }
.guide-title { margin: 0 0 2mm !important; font-size: 26pt !important; line-height: 1.1; }
.guide-lead { font-size: 12pt; color: var(--g-muted); }
.guide-steps { list-style: none; margin: 5mm 0 !important; padding: 0; display: grid; gap: 3.5mm; }
.guide-step { display: grid; grid-template-columns: 10mm 18mm 1fr; align-items: center; gap: 5mm; padding: 3mm 5mm; border: .5mm solid var(--g-line); border-radius: 5mm; margin: 0 !important; }
.guide-step > div > b { display: block; font: 600 15pt var(--display); color: var(--g-ink); }
.guide-step p { margin: .5mm 0 0 !important; }
.guide-num { display: grid; place-items: center; width: 10mm; height: 10mm; border-radius: 50%; background: var(--g-teal); color: #fff; font: 600 15pt/1 var(--display); }
.guide-svg { display: block; width: 18mm; height: 18mm; color: var(--g-ink); }
.guide-tip { display: flex; align-items: center; gap: 4mm; padding: 3mm 5mm; border-radius: 5mm; background: var(--g-soft); }
.guide-tip > svg, .guide-tip > .capy { flex: none; }
.guide-tip p { margin: 0 !important; }
.guide h2 { margin: 6mm 0 2mm !important; }
.guide-parents { margin: 0 !important; padding-left: 5mm; font-size: 11pt; }
.guide-parents li { margin-bottom: 1.5mm; }
.guide-foot { padding-top: 3mm; border-top: .4mm solid var(--g-line); font-size: 10pt; }

.schule a.sunit__link { color: var(--ink); text-decoration: none; }
.schule a.sunit__link:hover, .schule a.sunit__link:focus-visible { color: var(--teal-dark); text-decoration: underline; }
.schule .pathunit .small a { white-space: nowrap; }
.sunit__try { gap: 8px; }
