/* Design contract 0.15. All screen families share these tokens and controls. */
:root,
:root[data-appearance="navy"],
:root[data-appearance="forest"],
:root[data-appearance="neutral"] {
  color-scheme: light;
  --page: #f7f9f7;
  --surface: #fff;
  --subtle: #f0f3f0;
  --text: #172e39;
  --muted: #51646c;
  --line: #dce3df;
  --brand: #254c49;
  --brand-text: #fff;
  --selection: #edf5d4;
  --accent: #daf478;
  --accent-ink: #243b27;
  --canvas: #112f41;
  --canvas-ink: #fff;
  --elevation: #183e3010;
  --red: #a0253c;
  --red-fill: #ffedf0;
  font-family: "DM Sans", system-ui, sans-serif;
}
:root[data-appearance="forest"] {
  --canvas: #183f34;
  --brand: #285d46;
  --accent: #daedab;
}
:root[data-appearance="neutral"] {
  --canvas: #26323f;
  --brand: #384e65;
  --accent: #dae8f0;
}
html {
  background: var(--canvas);
  color: var(--text);
}
body {
  background: var(--page);
  min-height: 100dvh;
  font-size: 1rem;
}
.shell {
  max-width: 1100px;
}
#main {
  background: var(--page);
  min-height: calc(100dvh - 150px);
  padding: 24px 20px 124px;
  color: var(--text);
}
h1,
.introline h1,
.page-title h1 {
  font-size: clamp(1.9rem, 4.3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--text);
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.kicker,
.eyebrow {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
p,
li {
  line-height: 1.5;
}
button,
summary,
select {
  touch-action: manipulation;
}
button {
  border-radius: 999px;
  font-size: 0.9375rem;
  min-height: 48px;
  line-height: 1.25;
}
button.outline,
.outline {
  background: white;
  border: 1px solid var(--line);
  color: var(--text);
}
button.primary,
.primary {
  background: var(--accent);
  border: 1px solid transparent;
  color: var(--accent-ink);
  box-shadow: none;
  font-weight: 800;
}
button:hover:not(:disabled) {
  filter: brightness(0.98);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #456e63;
  outline-offset: 3px;
}
input:not([type="checkbox"], [type="radio"]),
select,
textarea {
  font-size: 1rem;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfa;
  color: var(--text);
  padding: 12px 14px;
  box-shadow: none;
}
textarea {
  min-height: 104px;
}
.field {
  gap: 7px;
}
.field > label,
.field > span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand);
  min-width: 22px;
  min-height: 22px;
}
.radio-option {
  border-radius: 16px;
  min-height: 48px;
  font-size: 0.9375rem;
}
.card,
.dash-panel,
.calendar-entry,
.raster-library-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: none;
  background: var(--surface);
}
.ui-icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}
.visual-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
}
.visual-action > span {
  min-width: 0;
}
.visual-action > .ui-icon {
  width: 23px;
  height: 23px;
  flex: none;
}
.icon-only,
.global-settings {
  border-radius: 50%;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 10px;
  background: #f1f4f0;
  border: 0;
  color: var(--text);
}
.art-wrap {
  display: inline-flex;
  flex: none;
  vertical-align: middle;
}
.feature-art {
  width: 80px;
  height: 80px;
  display: block;
}
.app-header {
  background: var(--page);
  color: var(--text);
  border: 0;
  box-shadow: 0 2px 0 #18352a08;
}
.suite-brand,
:root[data-appearance] .suite-brand {
  max-width: 1100px;
  margin: auto;
  padding: 12px 20px 6px;
  background: transparent;
  color: var(--text);
  min-height: 50px;
  gap: 10px;
  font-size: 1.125rem;
}
.suite-brand > .suite-logo {
  width: 31px;
  height: 31px;
}
.global-settings {
  background: white;
  border: 1px solid var(--line);
}
.header-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px 16px;
  min-height: 65px;
  width: calc(100% - 40px);
  gap: 8px;
}
.context-switch {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  min-height: 44px;
  flex: 1;
}
.context-switch strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.context-switch small {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.connection {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 80px;
}
.context-scope {
  background: transparent;
  color: var(--muted);
  max-width: 1060px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 5px 0;
  font-size: 0.8125rem;
  min-height: 26px;
  line-height: 1.3;
}
.context-scope > button {
  min-height: 36px;
  font-size: 0.8125rem;
  padding: 5px 10px;
}
.next-course-compact {
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--line);
  padding: 4px 20px;
}
.next-course-compact summary {
  min-height: 30px;
}
.dock {
  background: #ffffffef;
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: none;
  padding-bottom: env(safe-area-inset-bottom);
}
.main-nav {
  padding: 8px 10px 9px;
  gap: 5px;
}
.main-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 57px;
  padding: 3px 0;
  gap: 3px;
}
.main-nav .nav-icon {
  border-radius: 999px;
  min-width: 56px;
  height: 31px;
  padding: 2px 13px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-nav svg {
  width: 25px;
  height: 25px;
}
.main-nav [aria-current="page"] {
  color: var(--text);
  font-weight: 800;
}
.main-nav [aria-current="page"] .nav-icon {
  background: var(--accent);
  color: var(--text);
  box-shadow: none;
}
.dock-action {
  padding: 8px 20px 4px;
  gap: 10px;
}
.dock-action > button {
  min-height: 52px;
  font-size: 1rem;
}
/* Unterricht: the content, two visual tools and a readable timeline. */
.lesson-hero {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  margin: 4px 0 22px;
}
.lesson-hero > .feature-art {
  width: 76px;
  height: 76px;
  grid-column: 1;
  grid-row: 1;
}
.lesson-hero > div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.lesson-hero h1 {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
}
.lesson-hero .preview-action {
  grid-row: 2;
  grid-column: 2;
  justify-self: start;
  font-size: 0.875rem;
  min-height: 38px;
  padding: 7px 12px;
}
.lesson-hero .kicker {
  margin-bottom: 6px;
}
.hall-quickline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
}
.hall-quickline > .attendance-status {
  grid-column: 1/-1;
  order: 2;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  padding: 0 2px;
  margin: 0;
}
.hall-tool,
.hall-quickline > .hall-tool {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 13px;
  background: white;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}
.hall-tool .feature-art {
  width: 60px;
  height: 60px;
}
.hall-tool .ui-icon {
  display: none;
}
.schedule {
  padding: 20px;
  border: 0;
  border-radius: 26px;
  background: white;
}
.schedule-head {
  margin-bottom: 16px;
  align-items: center;
  gap: 8px;
}
.schedule-head h2 {
  font-size: 1.4rem;
}
.material-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  font-size: 0.875rem;
  padding: 8px;
}
.live-state {
  font-size: 0.875rem;
  padding: 0 0 10px;
}
.phase-list {
  border: 0;
  gap: 8px;
}
.phase-list li {
  border: 0;
  position: relative;
}
.phase-list li > button {
  border-radius: 18px;
  border: 1px solid transparent;
  background: #f8faf6;
  min-height: 66px;
  padding: 11px 12px;
  grid-template-columns: 49px 1fr auto;
  gap: 10px;
}
.phase-list [aria-current="step"] {
  background: #edf5d9;
  border-color: #c5dd9e;
  box-shadow: none;
}
.time-range {
  font-size: 0.8125rem;
  background: white;
  border-radius: 12px;
  padding: 9px 4px;
  text-align: center;
  color: var(--brand);
  font-weight: 700;
}
.phase-list strong {
  font-size: 1rem;
  line-height: 1.3;
}
.phase-list small {
  font-size: 0.8125rem;
  line-height: 1.35;
}
.phase-list > .phase-with-choices {
  border-radius: 18px;
  background: #f8faf6;
}
.phase-list > .phase-with-choices:has([aria-current="step"]) {
  background: #edf5d9;
  border: 1px solid #c5dd9e;
}
.phase-list > .phase-with-choices > button {
  background: transparent;
  border-color: transparent;
}
.phase-choice-actions {
  padding: 0 12px 8px;
  margin-inline-start: 56px;
}
.phase-choice-actions button,
.phase-alternative-editor > button:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.phase-choice-actions button .ui-icon,
.phase-alternative-editor > button .ui-icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.phase-alternative-editor,
.phase-alternative-options {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.phase-alternative-editor {
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.phase-choice-context {
  margin-block: 0;
  overflow-wrap: anywhere;
}
.phase-alternative-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 53px;
  width: 100%;
  padding: 9px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.phase-alternative-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.phase-alternative-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}
.phase-alternative-row input {
  accent-color: var(--brand);
  width: 21px;
  height: 21px;
  min-height: 0;
  margin: 0;
  flex: none;
}
.phase-alternative-row:has(input:checked) {
  background: #e6f0f2;
  border-color: var(--brand);
}
.next-badge {
  font-size: 0.75rem;
  background: #fff0db;
  color: #82512b;
  border-radius: 999px;
}
.phase-card {
  padding: 18px;
  border: 0;
  background: #f5f8f1;
}
.phase-meta {
  font-size: 0.875rem;
}
.kickoff {
  font-size: 1rem;
}
.details {
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.details .chip {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 16px;
  font-size: 0.875rem;
}
.safety {
  border-radius: 14px;
  background: #fff1df;
  color: #824b28;
  font-size: 0.9375rem;
  padding: 12px;
}
.phase-image,
.editor-image-preview img {
  border-radius: 20px;
  max-width: 100%;
  cursor: zoom-in;
}
/* Tools and settings share generous illustrated entry points. */
.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.feature-copy {
  display: grid;
  gap: 4px;
}
.feature-copy strong {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.3;
}
.feature-copy small {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}
.feature-tile[aria-pressed="true"] {
  background: #edf5d9;
  border-color: #abc679;
  color: var(--text);
  box-shadow: none;
}
.sport-profile-grid,
.settings-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sport-profile-grid .feature-tile {
  min-height: 158px;
}
.sport-profile-grid .feature-art {
  width: 70px;
  height: 70px;
}
.measurement-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 750;
  margin: 0 0 6px;
}
.measurement-heading .feature-art {
  width: 64px;
  height: 64px;
}
.settings-hub {
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.settings-hub .feature-tile {
  min-height: 94px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  gap: 16px;
}
.settings-hub .feature-tile:last-child {
  border-bottom: 0;
}
.settings-hub .feature-art {
  width: 57px;
  height: 57px;
}
.settings-hub .feature-copy strong {
  font-size: 1rem;
}
.settings-hub .feature-copy small {
  font-size: 0.875rem;
}
/***** One consistent dialog and menu language, including rare editors. *****/
dialog,
#panel {
  background: white;
  color: var(--text);
  border: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -12px 60px #0e2d3422;
  width: min(100%, 760px);
  max-width: 100%;
  max-height: 92dvh;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 100px 0 30px;
}
dialog::backdrop {
  background: #152a365e;
  backdrop-filter: blur(3px);
}
.panel-frame {
  padding: 0 22px 26px;
}
.panel-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 16px;
  background: #fffffff5;
  backdrop-filter: blur(12px);
  border: 0;
  margin: 0 0 6px;
}
.panel-header h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  flex: 1;
  min-width: 0;
}
.panel-header > .icon-only {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  border: 0;
  background: #f0f3ef;
  padding: 10px;
}
.panel-emblem .feature-art {
  width: 48px;
  height: 48px;
}
.panel-header:has([data-go-back]) > .panel-emblem {
  display: none;
}
.panel-emblem.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6edda;
  color: #375841;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.pilot-content,
.stack {
  gap: 16px;
}
.pilot-content > form {
  gap: 16px;
}
.pilot-content > .context-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0;
}
.pilot-content
  > p:not(
    .pilot-error,
    .local-storage-state,
    .entry-hint,
    .input-draft-status
  ) {
  font-size: 0.9375rem;
}
.pilot-content > button {
  min-height: 52px;
}
.pilot-content > button.primary {
  width: 100%;
}
.pilot-toolbar {
  gap: 8px;
  flex-wrap: wrap;
}
.pilot-toolbar button {
  min-height: 44px;
}
.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-actions button {
  flex-direction: column;
  min-height: 80px;
  border-radius: 20px;
  background: #f4f6f2;
  border: 0;
  padding: 12px;
  font-size: 0.875rem;
  gap: 7px;
}
.profile-actions .ui-icon {
  width: 26px;
  height: 26px;
}
.entry-mode-toggle,
.note-scope,
.segmented {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f5f1;
  padding: 4px;
  gap: 4px;
}
.segmented button,
.note-scope button,
.entry-mode-toggle button {
  border-radius: 999px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.segmented .primary,
.segmented [aria-pressed="true"],
.note-scope [aria-pressed="true"],
.entry-mode-toggle [aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.settings-section,
.display-design,
.backup-advanced,
.quick-more {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 0 14px;
}
.settings-section > summary,
.display-design > summary,
.backup-advanced > summary,
.quick-more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.disclosure-icon {
  display: inline-flex;
  color: var(--brand);
}
.settings-section > summary::after,
.display-design > summary::after,
.backup-advanced > summary::after,
.quick-more > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 400;
}
.settings-section[open] > summary::after,
.display-design[open] > summary::after,
.backup-advanced[open] > summary::after,
.quick-more[open] > summary::after {
  content: "−";
}
.settings-section[open],
.display-design[open],
.backup-advanced[open],
.quick-more[open] {
  padding-bottom: 16px;
}
.action-menu > summary,
.planning-filter > summary,
.people-filter > summary {
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  min-width: 46px;
  min-height: 46px;
  padding: 10px;
  font-size: 0.875rem;
}
.action-menu-items {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px;
  background: white;
  box-shadow: 0 12px 40px #1a36231b;
  min-width: 230px;
  max-width: min(340px, calc(100vw - 32px));
  max-height: min(65dvh, 520px);
  overflow: auto;
}
.action-menu-items button {
  border: 0;
  background: transparent;
  border-radius: 16px;
  min-height: 50px;
  padding: 11px 12px;
  justify-content: flex-start;
  text-align: left;
  font-size: 0.9375rem;
}
.action-menu-items .icon-only {
  width: auto;
  display: flex;
}
.action-menu-items .icon-only > svg {
  flex: none;
}
.action-menu-items button:hover {
  background: #f2f6ed;
}
.local-storage-state {
  font-size: 0.875rem;
  line-height: 1.45;
  background: #eef4e9;
  color: #335646;
  border-radius: 18px;
  padding: 14px;
}
.pilot-error,
.panel-error,
.field-failure {
  font-size: 0.9375rem;
  border-radius: 16px;
}
.input-draft-status {
  font-size: 0.8125rem;
  color: #3f6353;
  background: #f0f5eb;
  border-radius: 12px;
  padding: 8px 10px;
}
/***** Personen: visual calm, no extra taps for capture. *****/
.people-heading,
.people-page .page-title {
  color: var(--text);
}
.people-heading h1 {
  color: var(--text);
}
.people-card {
  border: 0;
  border-radius: 26px;
  padding: 0;
  background: transparent;
}
body[data-view="people"] #main > .card {
  padding: 0;
  border: 0;
  background: transparent;
}
.people-search-row {
  gap: 10px;
  margin: 0 0 14px;
}
.people-search-row input {
  border-radius: 999px;
  padding-left: 18px;
  background: white;
}
.people-search-row .field > label {
  display: none;
}
.people-search-row .people-filter > summary {
  height: 52px;
  width: 52px;
}
.quick-mode-switch {
  padding: 5px;
  border-radius: 999px;
  background: #e9ede8;
  gap: 3px;
  margin-bottom: 18px;
}
.quick-mode-switch button {
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.875rem;
  padding: 8px 9px;
  color: var(--muted);
}
.quick-mode-switch [aria-pressed="true"] {
  background: white;
  color: var(--text);
  box-shadow: 0 2px 5px #1f352010;
}
.quick-roster,
.attendance-roster {
  border-radius: 24px;
  background: white;
  padding: 0 14px;
  border: 1px solid var(--line);
  gap: 0;
}
.quick-student {
  padding: 14px 0;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #e8ede8;
  border-radius: 0;
  background: transparent;
}
.quick-student:last-child,
.attendance-row:last-child {
  border-bottom: 0;
}
.student-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8eedd;
  color: #3c5c45;
  font-size: 1rem;
}
.quick-name {
  font-size: 1rem;
  color: var(--text);
  font-weight: 750;
  min-height: 36px;
  line-height: 1.3;
}
.quick-identity .point-recorded,
.point-recorded,
.quick-grade-label {
  font-size: 0.8125rem;
  line-height: 1.4;
}
.quick-student-head > .icon-only {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  background: #f5f7f3;
  border: 1px solid var(--line);
}
.inline-ratings {
  gap: 8px;
}
.inline-ratings button {
  border-radius: 15px;
  border: 1px solid var(--line);
  min-width: 44px;
  min-height: 44px;
  background: #fcfdfa;
  font-size: 1.1rem;
  font-weight: 700;
}
.inline-ratings [aria-pressed="true"] {
  border-width: 2px;
  box-shadow: none;
}
.attendance-row {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e8ede8;
  border-radius: 0;
  gap: 8px;
  background: transparent;
}
.attendance-identity {
  gap: 10px;
}
.attendance-identity strong {
  font-size: 1rem;
}
.attendance-pill {
  font-size: 0.8125rem;
  line-height: 1.3;
  padding: 4px 9px;
  border-radius: 999px;
}
.attendance-primary {
  min-height: 46px;
  border-radius: 999px;
  font-size: 0.9375rem;
  min-width: 88px;
}
.attendance-primary .ui-icon {
  display: none;
}
.attendance-menu > summary {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}
.quick-presence {
  font-size: 0.8125rem;
  line-height: 1.3;
  border-radius: 999px;
}
.point-scope {
  border-radius: 18px;
  padding: 7px;
  background: #edf1e8;
  margin-bottom: 14px;
}
.point-scope select {
  border: 0;
  background: white;
  min-height: 46px;
  font-size: 0.9375rem;
}
.point-value {
  min-height: 46px;
  border-radius: 999px;
  font-size: 1.125rem;
  background: #f6f8f2;
  color: var(--text);
}
.point-value.recorded {
  background: #dff0d8;
  color: #255839;
  border-color: #75996a;
}
.point-pad {
  border-radius: 22px;
  border-color: #cbdcb7;
  background: #f5f8ed;
  padding: 14px;
}
.point-pad > small {
  font-size: 0.875rem;
  color: var(--text);
}
.point-keys button {
  border-radius: 16px;
  min-height: 48px;
  font-size: 1.125rem;
  background: white;
}
.point-keys [aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: #839e45;
}
.person-grid {
  gap: 8px;
}
.person-cell {
  border-radius: 18px;
  font-size: 0.9375rem;
}
.person-cell strong {
  font-size: 0.875rem;
}
.capture-saved {
  background: #e5f0dd;
  border: 1px solid #b2c99c;
  color: #2b5639;
  border-radius: 18px;
  font-size: 0.875rem;
  padding: 12px;
}
.capture-saved button {
  border-radius: 999px;
}
.capture-saved .ui-icon {
  width: 20px;
  height: 20px;
}
/***** Planung: large visual library cards, small consistent utilities. *****/
.page-title {
  margin: 0 0 22px;
}
.page-actions {
  gap: 8px;
}
.page-actions > button {
  padding: 10px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
}
.page-actions > button > span {
  display: none;
}
.planning-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 22px;
}
.planning-tabs .feature-tile {
  min-height: 112px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px;
}
.planning-tabs .feature-art {
  width: 58px;
  height: 58px;
}
.planning-tabs .feature-copy strong {
  font-size: 1rem;
}
.calendar-bar {
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: white;
  gap: 7px;
  flex-wrap: wrap;
}
.calendar-bar .week-range {
  font-size: 0.9375rem;
  color: var(--text);
}
.planning-filter > summary {
  gap: 6px;
}
.calendar-filters {
  border-radius: 20px;
  padding: 14px;
  background: white;
}
.planning-content {
  gap: 14px;
}
.calendar-entry {
  padding: 12px;
  min-height: 100px;
  border: 1px solid var(--line);
}
.calendar-open {
  gap: 14px;
  min-height: 74px;
}
.date-stamp {
  border-radius: 18px;
  background: #edf5d8;
  min-width: 56px;
  padding: 10px;
}
.date-stamp strong {
  font-size: 1.5rem;
}
.date-stamp small {
  font-size: 0.8125rem;
  color: #486347;
}
.calendar-copy strong {
  font-size: 1rem;
}
.calendar-copy small {
  font-size: 0.8125rem;
}
.library-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  padding: 14px;
  gap: 10px;
}
.series-open {
  gap: 14px;
}
.series-open strong {
  font-size: 1.05rem;
  line-height: 1.3;
}
.series-open small {
  font-size: 0.875rem;
  color: var(--muted);
}
.series-thumb,
.series-placeholder {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 20px;
  background: #e9eddf;
  object-fit: cover;
}
.series-placeholder .ui-icon {
  width: 35px;
  height: 35px;
}
.editor-outline {
  background: #f4f6f1;
  border-radius: 22px;
  padding: 12px;
}
.editor-outline button {
  border-radius: 16px;
  min-height: 52px;
  font-size: 0.9375rem;
}
.editor-grid details.card {
  border-radius: 20px;
  padding: 14px;
}
.editor-grid details.card > summary {
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
}
/***** Analytics: the numbers lead, details follow. *****/
.dashboard {
  color: var(--text);
}
.dash-heading h1 {
  font-size: 1.9rem;
  color: var(--text);
}
.dash-heading small {
  font-size: 0.875rem;
}
.dash-filters {
  margin: 18px 0;
  gap: 10px;
}
.dash-filters select {
  font-size: 0.9375rem;
}
.dash-filters summary {
  min-height: 44px;
  font-size: 0.875rem;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.dash-metric {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: white;
  gap: 5px;
}
.dash-metric > strong {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.dash-metric > span {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text);
}
.dash-metric > small {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}
.dash-metric:first-child {
  background: #eef4dd;
  border-color: #d9e7c1;
}
.dash-metric:nth-child(2) {
  background: #e8f0ee;
}
.dash-metric > .dash-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.dash-icon svg {
  width: 23px;
  height: 23px;
}
.dash-panel {
  padding: 20px;
  margin-top: 14px;
}
.dash-panel h2 {
  font-size: 1.15rem;
}
.dash-panel small,
.dash-panel p {
  font-size: 0.875rem;
  line-height: 1.4;
}
.dash-charts {
  gap: 14px;
}
.dash-bar-label {
  font-size: 0.875rem;
}
.dash-bar-track {
  border-radius: 999px;
  background: #edf1ea;
}
.dash-bar-fill {
  border-radius: 999px;
  background: #7ba18d;
}
.learner-jump {
  border-radius: 999px;
  background: white;
  font-size: 0.9375rem;
  min-height: 48px;
}
.dash-learner {
  border-radius: 18px;
  padding: 14px;
  font-size: 0.9375rem;
  min-height: 70px;
}
.dash-learner strong {
  font-size: 1rem;
}
.dash-learner small {
  font-size: 0.8125rem;
}
.performance-row {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #f6f8f1;
  padding: 18px;
}
.performance-row strong {
  font-size: 1.1rem;
}
.performance-state {
  font-size: 0.875rem;
}
/***** Measurements: stable live clock and clear touch targets. *****/
.field-timer {
  border-radius: 24px;
  background: #edf3dc;
  color: var(--text);
  padding: 18px;
}
.field-clock {
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.field-timer small {
  font-size: 0.875rem;
  color: var(--muted);
}
.field-timer button {
  min-height: 54px;
  min-width: 98px;
}
.field-save {
  border-radius: 16px;
  font-size: 0.875rem;
  min-height: 44px;
}
.field-session-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 16px;
}
.field-session-card small {
  font-size: 0.875rem;
}
.field-person-row {
  border-radius: 18px;
  min-height: 66px;
  padding: 12px;
}
.field-person-row strong {
  font-size: 1rem;
}
.field-person-row small {
  font-size: 0.8125rem;
}
.field-raster-label {
  font-size: 0.8125rem;
}
.field-entries {
  gap: 8px;
}
.field-entry-grid button {
  border-radius: 18px;
  min-height: 68px;
}
.conduct-dialog {
  padding: 24px;
}
.conduct-heading .ui-icon {
  width: 32px;
  height: 32px;
}
.empty-state {
  border-radius: 24px;
  background: #f4f7ec;
  padding: 24px;
  text-align: center;
}
.empty-state h3 {
  font-size: 1.125rem;
}
.empty-state p {
  font-size: 0.9375rem;
}
.toast {
  background: #234b3c;
  color: white;
  border-radius: 18px;
  font-size: 0.9375rem;
  padding: 13px 18px;
  box-shadow: 0 6px 25px #112c361a;
}
@media (min-width: 768px) {
  body {
    max-width: 1200px;
    margin: auto;
    box-shadow: 0 0 90px #00000014;
  }
  .shell {
    max-width: 1100px;
  }
  #main {
    padding: 32px 36px 130px;
  }
  .app-header {
    padding-top: 4px;
  }
  .suite-brand {
    padding-inline: 36px;
  }
  .header-inner {
    width: calc(100% - 72px);
  }
  .context-scope {
    width: calc(100% - 72px);
  }
  .lesson-hero {
    grid-template-columns: 110px 1fr auto;
  }
  .lesson-hero > .feature-art {
    width: 100px;
    height: 100px;
  }
  .lesson-hero .preview-action {
    grid-column: 3;
    grid-row: 1;
  }
  .hall-quickline {
    max-width: none;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
  }
  .hall-quickline > .attendance-status {
    grid-column: 3;
    grid-row: 1;
    order: initial;
    max-width: 140px;
  }
  .sport-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .settings-hub {
    grid-template-columns: 1fr 1fr;
  }
  .settings-hub .feature-tile:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .dash-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .person-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-student {
    padding: 16px 0;
  }
  .quick-roster,
  .attendance-roster {
    padding: 0 20px;
  }
  dialog,
  #panel {
    border-radius: 30px;
    max-height: 88dvh;
    margin: auto;
  }
  .panel-frame {
    padding: 0 28px 30px;
  }
  .dock {
    max-width: 1200px;
    margin: auto;
    left: 0;
    right: 0;
  }
}
@media (max-width: 374px) {
  #main {
    padding-inline: 14px;
  }
  .suite-brand {
    padding-inline: 14px;
  }
  .header-inner,
  .context-scope {
    width: calc(100% - 28px);
  }
  .header-inner {
    padding-inline: 12px;
  }
  .connection {
    max-width: 64px;
  }
  .panel-frame {
    padding: 0 16px 24px;
  }
  .panel-header {
    gap: 8px;
  }
  .panel-emblem .feature-art {
    width: 40px;
    height: 40px;
  }
  .panel-header h2 {
    font-size: 1.125rem;
  }
  .hall-tool,
  .hall-quickline > .hall-tool {
    padding: 11px;
    gap: 8px;
    font-size: 0.9375rem;
  }
  .hall-tool .feature-art {
    width: 48px;
    height: 48px;
  }
  .planning-tabs .feature-tile {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 8px;
  }
  .planning-tabs .feature-art {
    width: 48px;
    height: 48px;
  }
  .inline-ratings {
    gap: 5px;
  }
  .quick-roster,
  .attendance-roster {
    padding: 0 10px;
  }
  .quick-name {
    font-size: 0.9375rem;
  }
  .student-avatar {
    width: 32px;
    height: 32px;
  }
  .attendance-primary {
    min-width: 76px;
    font-size: 0.875rem;
    padding-inline: 10px;
  }
  .attendance-row {
    gap: 5px;
  }
  .attendance-identity {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Reference extensions: gallery, series outline and practical lesson tools. */
.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.library-toolbar input {
  grid-column: 1/-1;
  border-radius: 999px;
}
.library-toolbar button,
.library-toolbar select {
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.875rem;
}
.library-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.library-gallery .library-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 12px 12px;
  overflow: visible;
  min-width: 0;
}
.library-gallery .series-open {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  text-align: left;
}
.library-gallery .series-thumb,
.library-gallery .series-placeholder {
  width: calc(100% + 24px);
  height: 146px;
  min-width: 0;
  max-width: none;
  margin-left: -12px;
  border-radius: 24px 24px 0 0;
  object-fit: contain;
  background: #edf1e7;
  padding: 8px;
}
.library-gallery .series-open strong {
  font-size: 1rem;
  line-height: 1.3;
}
.library-gallery .series-open small {
  font-size: 0.8125rem;
  margin-top: 6px;
}
.library-gallery .library-card > .icon-only {
  justify-self: start;
}
.library-gallery .action-menu {
  justify-self: end;
}
.library-gallery .action-menu-items {
  right: 0;
}
.library-list {
  display: grid;
  grid-template-columns: 1fr;
}
.series-cover {
  max-height: 260px;
  width: 100%;
  object-fit: contain;
  border-radius: 24px;
  background: #f2f5ed;
  cursor: zoom-in;
}
.series-meta {
  color: var(--muted);
  font-size: 0.9375rem;
}
.series-lesson-list {
  display: grid;
  gap: 10px;
}
.series-lesson-list > button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border-radius: 20px;
  text-align: left;
  background: white;
}
.series-lesson-list strong {
  flex: 1;
  font-size: 1rem;
}
.series-lesson-list small {
  font-size: 0.8125rem;
}
.lesson-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf3db;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1rem;
  font-weight: 700;
}
.series-plan-row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.series-plan-row > span {
  background: #eef4df;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
}
.series-plan-row small {
  display: block;
  font-size: 0.875rem;
}
.tool-hub {
  display: grid;
  gap: 12px;
}
.tool-hub .feature-tile {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 100px;
}
.tool-hub .feature-art {
  width: 64px;
  height: 64px;
}
.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tool-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}
.tool-people label {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 44px;
}
.tool-people label span {
  font-size: 0.9375rem;
}
.team-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.team-card {
  background: #f1f5e7;
  border-radius: 22px;
  padding: 18px;
}
.team-card:nth-child(even) {
  background: #edf1f7;
}
.team-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 10px;
}
.tool-clock {
  display: block;
  text-align: center;
  font-size: clamp(2.8rem, 14vw, 4.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.timer-preview {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #f7f9f3;
  padding: 24px;
  display: grid;
  place-items: center;
  gap: 16px;
}
.timer-preview .feature-art {
  width: 60px;
  height: 60px;
}
.timer-preview progress {
  width: 100%;
  accent-color: var(--brand);
  height: 12px;
}
.timer-phase {
  font-size: 1.2rem;
  font-weight: 700;
}
.timer-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.timer-presets button {
  font-size: 0.8125rem;
  padding: 8px 4px;
}
.tool-save {
  font-size: 0.875rem;
  color: #385d49;
}
.tool-tabs {
  display: flex;
  gap: 8px;
}
.tool-tabs > button {
  flex: 1;
}
.scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.scoreboard section {
  border-radius: 24px;
  background: #eef4df;
  padding: 16px;
  text-align: center;
}
.scoreboard section:nth-child(2) {
  background: #e8eff5;
}
.scoreboard input {
  width: 100%;
  font-size: 1rem;
}
.scoreboard section > strong {
  display: block;
  font-size: 4rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.score-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.score-controls button {
  min-height: 52px;
  font-size: 1.5rem;
  padding: 8px;
}
.tool-summary {
  border-radius: 16px;
  background: #eef4df;
  padding: 14px;
}
.match-card {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: grid;
  gap: 12px;
}
.match-card > span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.match-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
}
.match-score > span {
  padding-bottom: 16px;
}
.match-score input {
  width: 100%;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 750;
}
.match-card > button {
  justify-self: end;
  min-height: 44px;
  font-size: 0.875rem;
}
.standing-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.standing-row > small {
  grid-column: 3;
}
.standing-row > span {
  font-size: 0.875rem;
}
.catalog-row {
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}
.catalog-row > summary {
  min-height: 76px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  font-size: 1rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}
.catalog-row > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
}
.catalog-row[open] > summary::after {
  content: "−";
}
.catalog-row > summary .ui-icon {
  color: var(--brand);
  width: 28px;
  height: 28px;
}
.catalog-row .catalog-edit {
  padding: 0 16px 16px;
  display: grid;
  gap: 14px;
}
.catalog-row summary small {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.catalog-order {
  display: flex;
  gap: 8px;
}
.catalog-order button {
  flex: 1;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .library-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .library-gallery .series-thumb,
  .library-gallery .series-placeholder {
    height: 180px;
  }
  .library-toolbar {
    grid-template-columns: 1fr auto auto;
  }
  .library-toolbar input {
    grid-column: auto;
  }
  .tool-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 374px) {
  .library-gallery {
    gap: 10px;
  }
  .library-gallery .library-card {
    padding-inline: 10px;
  }
  .library-gallery .series-thumb,
  .library-gallery .series-placeholder {
    height: 110px;
    width: calc(100% + 20px);
    margin-left: -10px;
  }
  .library-gallery .series-open strong {
    font-size: 0.875rem;
  }
  .team-results {
    grid-template-columns: 1fr;
  }
  .tool-hub .feature-tile {
    padding: 14px;
  }
  .scoreboard section {
    padding: 10px;
  }
}
.image-viewer {
  padding: 0;
  width: min(96vw, 1100px);
  height: 88dvh;
  max-height: 92dvh;
  border-radius: 26px;
  margin: auto;
  overflow: hidden;
}
.image-viewer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.image-viewer-head strong {
  flex: 1;
  font-size: 1.1rem;
}
.image-viewer-head span {
  min-width: 25px;
  text-align: center;
  font-size: 0.875rem;
}
.image-viewer-viewport {
  height: calc(100% - 76px);
  overflow: auto;
  background: #f3f5ee;
  padding: 12px;
}
.image-viewer-viewport img {
  display: block;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}
@media (max-width: 374px) {
  .image-viewer-head {
    padding: 10px;
    gap: 5px;
  }
  .image-viewer-head strong {
    font-size: 0.9375rem;
  }
  .image-viewer-head .icon-only {
    width: 44px;
    min-width: 44px;
    padding: 10px;
  }
}
/* Screenshot iteration: remove duplicate roster hero, fix inherited dark-canvas inks,
   keep light-surface icons legible, anchor filters within the actual calendar. */
:root[data-appearance] {
  --canvas-muted: #52666f;
}
#main > .introline .kicker,
#main > .page-title .eyebrow,
#main > .planning-shell > .page-title .eyebrow {
  color: var(--muted);
}
body[data-view="people"] .introline {
  display: block;
  min-height: 0;
  margin: 2px 0 16px;
}
body[data-view="people"] .introline > div {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
}
body[data-view="people"] .introline h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--text);
}
body[data-view="people"] .introline .kicker {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: right;
  max-width: 165px;
}
.page-actions button,
.page-actions .action-menu > summary {
  color: var(--text);
}
.page-actions .primary-menu > summary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.planning-tabs > button.feature-tile {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  color: var(--text);
  box-shadow: none;
}
.planning-tabs > button.feature-tile[aria-pressed="true"] {
  background: #edf5d9;
  border-color: #b8cd91;
  box-shadow: none;
}
.calendar-bar {
  position: relative;
}
.planning-filter {
  position: static;
}
.planning-filter[open] > .calendar-filters {
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  width: 100%;
  max-height: 65dvh;
  overflow: auto;
  box-shadow: 0 12px 35px #17322522;
}
.pilot-content > .feature-tile {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 94px;
  gap: 16px;
}
.pilot-content > .feature-tile .feature-art {
  width: 56px;
  height: 56px;
}
.game-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}
.game-heading .feature-art {
  width: 60px;
  height: 60px;
}
.game-card > p {
  font-size: 0.875rem;
  margin-top: 10px;
}
.game-card details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}
.game-card > button {
  min-height: 44px;
  font-size: 0.875rem;
}
.timer-preview > .tool-clock {
  font-size: clamp(3.2rem, 15vw, 4.8rem);
}
.strength-settings .tool-people {
  grid-template-columns: 1fr;
}
.strength-settings .field {
  justify-content: space-between;
  flex-direction: row;
}
.strength-settings input {
  width: 90px;
}
.context-switch small {
  font-size: 0.875rem;
}
.connection {
  font-size: 0.8125rem;
}
.quick-presence,
.attendance-pill {
  font-size: 0.875rem;
}
.dash-person-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dash-person-actions button {
  min-width: 0;
  width: 100%;
  padding: 12px 8px;
  flex-direction: column;
  gap: 6px;
  border-radius: 20px;
  font-size: 0.875rem;
}
.dash-filters > select {
  width: 100%;
  min-width: 0;
}
.dash-filters,
.dash-panel,
.dash-metric {
  min-width: 0;
}
.dash-metric > .dash-icon {
  top: auto;
  bottom: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  opacity: 0.65;
}
.dash-metric > strong {
  position: relative;
  z-index: 1;
}
.dash-metric > small {
  padding-right: 8px;
}
.dash-panel svg text {
  font-size: 13px;
  fill: var(--muted);
}
.dash-bars > div > span {
  font-size: 0.875rem;
}
.dash-bars meter::-webkit-meter-optimum-value,
.attendance-history meter::-webkit-meter-optimum-value {
  background: #739782;
}
.dash-bars meter::-moz-meter-bar {
  background: #739782;
}
.dash-events {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: none;
  background: white;
  padding: 20px;
}
.dash-events h2 {
  font-size: 1.15rem;
}
.dash-events p {
  font-size: 0.875rem;
}
@media (max-width: 374px) {
  .dash-metric > .dash-icon {
    display: none;
  }
  .dash-metric > strong {
    font-size: 1.75rem;
  }
  .dash-metric {
    padding: 16px;
  }
  .dash-panel {
    padding: 16px;
  }
  .dash-bars > div {
    grid-template-columns: minmax(74px, 0.95fr) minmax(0, 1.3fr) 22px;
    gap: 8px;
  }
}
.calendar-filters .field {
  min-width: 0;
}
.calendar-filters input,
.calendar-filters select {
  width: 100%;
  min-width: 0;
}
.calendar-filters .field:has(input[type="date"]) {
  grid-column: 1/-1;
}
@media (max-width: 767px) {
  .planning-filter[open] > .calendar-filters {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 90px;
    top: auto;
    width: auto;
    max-height: 60dvh;
    z-index: 45;
    border-radius: 24px;
  }
}
:root[data-contrast="strong"] {
  --muted: #3c5059;
  --line: #a4b5aa;
}
:root[data-contrast="strong"] .quick-roster,
:root[data-contrast="strong"] .attendance-roster,
:root[data-contrast="strong"] .feature-tile {
  border-width: 2px;
}
.hall-quickline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hall-tool,
.hall-quickline > .hall-tool {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  gap: 9px;
  min-height: 118px;
}
.hall-tool .feature-art {
  width: 58px;
  height: 58px;
}
.hall-quickline > .attendance-status {
  grid-column: 1/-1;
  grid-row: 2;
  max-width: none;
}
.library-gallery .series-open strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hall-tool,
  .hall-quickline > .hall-tool {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px;
    min-height: 100px;
  }
  .hall-quickline > .attendance-status {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .hall-quickline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 374px) {
  .hall-tool .feature-art {
    width: 46px;
    height: 46px;
  }
  .hall-tool,
  .hall-quickline > .hall-tool {
    padding: 12px 6px;
    font-size: 0.875rem;
    min-height: 104px;
  }
}
.threshold-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  font-size: 0.875rem;
}
.threshold-columns {
  display: flex;
  gap: 8px;
}
.threshold-columns > span {
  flex: 1;
}
.threshold-row {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
}
.threshold-row > span {
  font-size: 0.875rem;
}
.numeric-value input::placeholder {
  font-size: 0.875rem;
  color: var(--muted);
}
.field-results > .pilot-row {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  min-height: 60px;
  gap: 12px;
}
.field-results > .pilot-row > strong {
  font-size: 1rem;
}
.field-results > .pilot-row > span {
  font-size: 0.875rem;
  text-align: right;
  color: var(--muted);
}
.field-results {
  display: grid;
  gap: 8px;
}
.name-preview {
  border-radius: 20px;
  background: #e9f0e2;
  border: 1px solid var(--line);
}
.name-preview[data-preview-appearance="forest"] {
  background: #dfece3;
}
.name-preview[data-preview-appearance="neutral"] {
  background: #e9edf0;
}
.name-preview > span {
  border-radius: 999px;
  min-height: 36px;
  padding: 9px;
  font-size: 0.875rem;
}
.duration-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.duration-control > div > span {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--muted);
}
.duration-stepper {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f5f8ef;
  display: grid;
  place-items: center;
  padding: 6px;
  gap: 2px;
}
.duration-stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  padding: 6px;
}
.duration-stepper input {
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0;
  text-align: center;
  font-size: 1.7rem;
  width: 100%;
  min-width: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.duration-stepper input::-webkit-inner-spin-button,
.duration-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.filter-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1/-1;
  padding: 0 0 8px;
  font-size: 1.125rem;
}
.filter-sheet-head strong {
  flex: 1;
}
.filter-sheet-head button {
  border: 0;
}
.menu-context {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3px;
}
/* 0.16: one concise context row, stronger ink and purposeful accents. */
:root,
:root[data-appearance="navy"],
:root[data-appearance="neutral"],
:root[data-appearance="forest"] {
  --page: #eef3f5;
  --surface: #fff;
  --subtle: #e7edf0;
  --text: #102b3b;
  --muted: #415966;
  --line: #c5d1d8;
  --brand: #164f5b;
  --brand-text: #fff;
  --selection: #e6f2c6;
  --accent: #c4ee42;
  --accent-ink: #153624;
}
:root[data-appearance="forest"] {
  --canvas: #123f32;
  --brand: #14583c;
  --accent: #b8e24d;
  --page: #eef4f0;
}
:root[data-appearance="neutral"] {
  --canvas: #223244;
  --brand: #294c69;
  --accent: #b8d9ec;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.app-header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px 44px;
  grid-template-areas: "logo course storage settings" "scope scope scope scope";
  align-items: center;
  gap: 0 10px;
  min-height: 80px;
  padding: 9px 18px;
  background: white;
  border-bottom: 1px solid #b8c9d1;
  box-shadow: 0 3px 14px #17354b09;
}
:root[data-appearance] .suite-brand,
.app-header .header-inner {
  display: contents;
}
.suite-brand > .suite-logo {
  grid-area: logo;
  width: 27px;
  height: 27px;
}
.suite-brand > span {
  display: none;
}
.global-settings {
  grid-area: settings;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  background: #e5eef1;
  border: 0;
}
.global-settings .ui-icon {
  width: 24px;
  height: 24px;
}
.context-switch {
  grid-area: course;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0;
  border-radius: 0;
}
.context-switch strong {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  max-width: 100%;
  color: var(--text);
}
.context-switch small {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--muted);
}
.context-badge {
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 750;
  white-space: nowrap;
  background: #e8edf1;
  color: #3f5663;
}
.context-current {
  background: #d3eeb1;
  color: #1d5227;
}
.context-past {
  background: #e2e8ef;
  color: #3c4c65;
}
.context-future {
  background: #dbe8f6;
  color: #244d78;
}
.context-conflict {
  background: #ffe0ba;
  color: #7a350e;
}
.context-manual {
  display: flex;
}
.context-manual svg {
  width: 14px;
  height: 14px;
}
.context-date {
  font-size: 0.875rem;
  color: var(--text);
}
.context-scope {
  grid-area: scope;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  padding: 6px 10px;
  width: 100%;
  max-width: none;
  background: #e8f2d2;
  border-radius: 12px;
  color: #304f30;
  font-size: 0.8125rem;
}
.context-scope .ui-icon {
  width: 16px;
  height: 16px;
}
.connection {
  grid-area: storage;
  position: relative;
  width: 24px;
  height: 28px;
  max-width: none;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  color: transparent;
  padding: 0;
}
.connection::before {
  content: "";
  display: block;
  width: 22px;
  height: 26px;
  background: #58727d;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Crect x='4' y='2' width='16' height='24' rx='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m8 13 3 3 6-7M10 22h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.connection[data-storage="ready"]::before {
  background: #246b42;
}
.connection[data-storage="pending"]::before {
  background: #945810;
}
.selected-context {
  border-radius: 20px;
  background: #edf3f5;
  padding: 16px;
  display: grid;
  gap: 6px;
}
.selected-context p,
.selected-context small {
  font-size: 0.875rem;
  line-height: 1.4;
}
.selected-context > button {
  justify-self: start;
  margin-top: 4px;
}
.lesson-hero {
  grid-template-columns: 70px minmax(0, 1fr) 44px;
  gap: 12px;
  margin: 0 0 20px;
}
.lesson-hero > .feature-art {
  width: 68px;
  height: 68px;
}
.lesson-hero > div {
  grid-column: 2;
  grid-row: 1;
}
.lesson-hero .preview-action {
  grid-column: 3;
  grid-row: 1;
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: #dce9ee;
  border: 0;
}
.preview-action svg {
  width: 24px;
  height: 24px;
}
.lesson-hero .kicker {
  font-size: 0.8125rem;
  margin-bottom: 6px;
}
body[data-view="people"] .introline .kicker.roster-count {
  background: #dce9ee;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 750;
  color: #244754;
}
.hall-tool,
.hall-quickline > .hall-tool {
  border-color: #bcced5;
  box-shadow: 0 3px 0 #d4e0e4;
}
.hall-tool:first-of-type {
  background: #f0edf8;
}
.hall-tool:nth-of-type(2) {
  background: #fff0e4;
}
.hall-tool:nth-of-type(3) {
  background: #e8f1df;
}
.quick-mode-switch {
  background: #dbe5e9;
}
.quick-mode-switch [aria-pressed="true"] {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: none;
}
.quick-roster,
.attendance-roster {
  border-color: #b8cbd3;
}
.student-avatar {
  background: #d3e9bf;
  color: #2a5336;
}
.quick-student-head > .icon-only {
  background: #eaf0f3;
  border-color: #b9ccd4;
}
.inline-ratings button {
  border-color: #b5c8d2;
}
.inline-ratings [aria-pressed="true"] {
  border-color: var(--tone-ink, var(--brand));
}
.point-value.recorded {
  background: #c9eab6;
  color: #194f2b;
  border: 2px solid #52804c;
}
.point-value {
  background: #edf3f5;
  border-color: #b5cad4;
}
.point-keys [aria-pressed="true"] {
  background: var(--accent);
  border-color: #49723e;
}
.attendance-pill.absent {
  background: #ffdce3;
  color: #941d39;
}
.attendance-pill.present {
  background: #d4edc8;
  color: #225330;
}
.attendance-pill.excused {
  background: #dbe7fc;
  color: #264f83;
}
.attendance-primary.tone-rose {
  background: #ffe0e6;
  color: #951936;
  border: 1px solid #d992a2;
}
.attendance-primary.tone-teal {
  background: #daefca;
  color: #225733;
  border: 1px solid #8caf7b;
}
.main-nav [aria-current="page"] .nav-icon {
  background: var(--accent);
  color: #103f35;
}
.dock {
  border-top-color: #b6c9d1;
}
.primary,
.primary-menu > summary {
  box-shadow: 0 2px 0 #8fac3980;
}
.planning-tabs > button.feature-tile[aria-pressed="true"] {
  background: #dfefaf;
  border: 2px solid #80a84a;
}
.calendar-entry {
  border-color: #b8cbd4;
}
.date-stamp {
  background: #d4eaa6;
  color: #274a2c;
}
.library-gallery .series-thumb,
.library-gallery .series-placeholder {
  background: #dce9ed;
}
.feature-tile {
  border-color: #c0d0d6;
}
.settings-hub {
  border-color: #b7cbd3;
}
.settings-hub .feature-tile {
  border-bottom-color: #ccdae0;
}
.catalog-row {
  border-color: #b9ccd3;
}
.catalog-symbol {
  color: #164f5b;
}
.dash-metric:first-child {
  background: #def0b0;
  border-color: #a0c46b;
}
.dash-metric:nth-child(2) {
  background: #d8ebe6;
  border-color: #9fc6bc;
}
.dash-panel,
.dash-events {
  border-color: #b8cbd4;
}
.dash-bars meter::-webkit-meter-optimum-value {
  background: #2b7a66;
}
.dash-bars meter::-moz-meter-bar {
  background: #2b7a66;
}
.profile-actions button {
  background: #e5eff2;
  color: #163c4d;
}
.rating-strip.mode-scale small,
.rating-strip.mode-three small {
  display: none;
}
.entry-hint {
  font-size: 0.8125rem;
  color: var(--muted);
}
.quick-status {
  background: #e8eff2;
  color: #375363;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.875rem;
}
.field-timer,
.timer-preview {
  background: #e7f0d5;
  border-color: #adca89;
}
.field-save,
.capture-saved {
  background: #d9edcb;
  border-color: #86ad75;
  color: #245837;
}
@media (min-width: 768px) {
  .app-header {
    grid-template-columns: 28px 160px minmax(0, 1fr) 24px 44px;
    grid-template-areas: "logo brand course storage settings" "scope scope scope scope scope";
    padding: 12px 36px;
    gap: 0 12px;
  }
  .suite-brand > span {
    display: block;
    grid-area: brand;
    font-size: 1.05rem;
  }
  .lesson-hero {
    grid-template-columns: 90px minmax(0, 1fr) 44px;
  }
  .lesson-hero > .feature-art {
    width: 84px;
    height: 84px;
  }
}
@media (max-width: 374px) {
  .app-header {
    padding: 8px 12px;
    grid-template-columns: 24px minmax(0, 1fr) 20px 44px;
    gap: 0 7px;
  }
  .suite-brand > .suite-logo {
    width: 24px;
    height: 24px;
  }
  .context-switch strong {
    font-size: 0.9375rem;
  }
  .context-switch small {
    gap: 4px;
  }
  .context-date {
    font-size: 0.8125rem;
  }
  .context-badge {
    padding: 2px 6px;
  }
  .connection {
    width: 20px;
  }
  .connection::before {
    width: 18px;
  }
  .lesson-hero {
    grid-template-columns: 60px minmax(0, 1fr) 44px;
    gap: 10px;
  }
  .lesson-hero > .feature-art {
    width: 58px;
    height: 58px;
  }
  .lesson-hero h1 {
    font-size: 1.6rem;
  }
}
.people-controls .quick-mode-switch > button[aria-pressed="true"] {
  background: var(--brand);
  color: white;
  border: 1px solid var(--brand);
  box-shadow: none;
}
:root[data-contrast="strong"] {
  --line: #8fa6af;
  --muted: #304b59;
}

/* 0.17: decisive chrome, calm work surfaces and truthful presence controls. */
:root {
  --canvas: #123b50;
  --brand: #164f65;
  --line: #b9cbd5;
  --text: #102c3e;
  --muted: #3b5665;
  --accent: #c5ef39;
  --page: #eef3f7;
}
:root[data-appearance="forest"] {
  --canvas: #103e31;
  --brand: #145b45;
  --accent: #c5eb56;
}
:root[data-appearance="neutral"] {
  --canvas: #243b51;
  --brand: #254e70;
  --accent: #cee5f7;
}
.app-header {
  background: var(--canvas);
  border-bottom: 2px solid #ffffff24;
  color: #fff;
}
.app-header .suite-brand,
.app-header .context-switch,
.app-header .context-switch strong,
.app-header .context-date,
.app-header .suite-brand > span {
  color: #fff;
}
.app-header .context-switch {
  background: transparent;
  border: 0;
}
.app-header .context-badge {
  background: #ffffff20;
  color: #fff;
  border: 1px solid #ffffff55;
}
.app-header
  .context-switch[data-context-state="Aktuelle Stunde"]
  .context-badge {
  background: var(--accent);
  color: #183323;
  border-color: var(--accent);
}
.app-header
  .context-switch[data-context-state="Mehrdeutiger Stundenplan"]
  .context-badge {
  background: #ffe3a4;
  color: #573509;
}
.app-header .global-settings {
  background: #f2f7fa;
  color: var(--canvas);
  border: 1px solid #fff;
}
.app-header #connection {
  color: #e6f9ed;
}
.app-header .context-scope {
  color: #fff;
  background: #ffffff16;
  border-color: #ffffff40;
}
.context-manual {
  color: #eff8ff;
}
.context-caption {
  font-size: 0.875rem;
  color: var(--muted);
}
.pilot-content > .context-caption {
  margin: 0 0 6px;
}
.main-nav button[aria-current="page"] .nav-icon {
  background: var(--accent);
  border: 1px solid #a9c954;
}
.feature-tile {
  border-color: var(--line);
}
button.outline,
button.icon-only,
.action-menu > summary,
.attendance-menu > summary {
  border-color: var(--line);
}
.segmented [aria-pressed="true"],
.note-scope [aria-pressed="true"] {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.inline-ratings button[aria-pressed="true"] {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
.attendance-row {
  grid-template-columns: minmax(0, 1fr) minmax(108px, 145px) 44px;
}
.attendance-identity {
  min-width: 0;
}
.attendance-identity strong {
  overflow-wrap: anywhere;
}
.attendance-unrecorded {
  font-size: 0.8125rem;
  color: var(--muted);
}
.attendance-primary {
  min-height: 50px;
  padding: 9px 10px;
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 18px;
}
.attendance-primary .ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.attendance-primary .attendance-pill {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.attendance-primary[data-recorded="false"] {
  background: #fff;
  border-color: #b74b61;
  color: #a41c3d;
}
.attendance-primary[data-recorded="true"] {
  border-width: 2px;
}
.attendance-primary[data-recorded="true"].tone-teal {
  background: #cfefdf;
  color: #10533d;
  border-color: #3e876b;
}
.attendance-primary[data-recorded="true"].tone-rose {
  background: #fbd7df;
  color: #971631;
  border-color: #b84560;
}
.attendance-primary[data-recorded="true"].tone-blue {
  background: #d9e8ff;
  color: #164b8b;
  border-color: #4778b6;
}
.attendance-primary[data-recorded="true"].tone-violet {
  background: #e7ddff;
  color: #533291;
  border-color: #8867b9;
}
.attendance-primary[data-recorded="true"].tone-amber {
  background: #ffe7b7;
  color: #754609;
  border-color: #ac7727;
}
.attendance-menu .action-menu-items button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.display-settings h3 {
  margin-bottom: 4px;
}
.display-settings > p {
  font-size: 0.875rem;
  margin-top: 0;
}
.settings-section > summary,
.display-design > summary {
  list-style: none;
}
.settings-section > summary::-webkit-details-marker,
.display-design > summary::-webkit-details-marker {
  display: none;
}
.settings-section > summary::before,
.display-design > summary::before {
  content: none;
}
.measurement-links {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.measurement-links button {
  flex: 1;
}
.measurement-list {
  display: grid;
  gap: 12px;
}
.measurement-list .field-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  padding: 14px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.measurement-list .field-session-card > .measurement-open {
  grid-column: 1;
  text-align: left;
  justify-content: flex-start;
  font-size: 1rem;
  border: 0;
  padding: 0;
  background: transparent;
}
.measurement-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.875rem;
}
.measurement-preview {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.measurement-preview span {
  padding: 5px 10px;
  background: #e2f0eb;
  color: #184b3a;
  border-radius: 999px;
  font-size: 0.875rem;
}
.measurement-list .delete-measurement {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 10px;
  color: #9c2540;
}
button.danger {
  background: #a62342;
  color: #fff;
  border-color: #a62342;
}
.measurement-results-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--brand);
  color: white;
  border: 0;
  width: 100%;
}
@media (max-width: 374px) {
  .attendance-row {
    grid-template-columns: minmax(0, 1fr) 112px 44px;
    gap: 6px;
  }
  .attendance-identity {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 4px;
  }
  .attendance-identity > .student-avatar {
    width: 26px;
    height: 26px;
  }
  .attendance-primary {
    padding: 8px 6px;
  }
  .attendance-primary .ui-icon {
    width: 16px;
    height: 16px;
  }
}
.app-header .connection[data-storage="ready"]::before {
  background: #d0f7df;
}
.app-header .connection[data-storage="pending"]::before {
  background: #ffdea4;
}
.attendance-row {
  grid-template-columns: minmax(0, 1fr) 120px 44px;
}
.attendance-primary {
  width: 120px;
  min-width: 0;
}
.attendance-primary .attendance-pill {
  padding: 0;
}
.attendance-menu .action-menu-items button .ui-icon:not(:first-child) {
  display: none;
}
.dashboard-measurements {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  min-height: 44px;
}
.dashboard-measurements .ui-icon {
  width: 22px;
  height: 22px;
}
.dash-heading {
  flex-wrap: wrap;
}
.profile-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 374px) {
  .attendance-row {
    grid-template-columns: minmax(0, 1fr) 112px 44px;
  }
  .attendance-primary {
    width: 112px;
  }
  .attendance-identity {
    grid-template-columns: minmax(0, 1fr);
  }
  .attendance-identity > .student-avatar {
    display: none;
  }
}
.presence-menu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.presence-menu-heading .menu-context {
  flex: 1;
}
.presence-menu-heading .icon-only {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 10px;
}
.attendance-menu .action-menu-items button {
  gap: 9px;
}
.attendance-menu
  .action-menu-items
  button[aria-label="Zustandsmenü schließen"]
  .ui-icon {
  display: block;
}
@media (min-width: 375px) and (max-width: 450px) {
  .attendance-row {
    grid-template-columns: minmax(0, 1fr) 112px 44px;
    gap: 6px;
  }
  .attendance-primary {
    width: 112px;
  }
  .attendance-identity {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 7px;
  }
  .attendance-identity > .student-avatar {
    width: 28px;
    height: 28px;
  }
}
.attendance-primary.long-status > span:first-child {
  display: none;
}
.attendance-primary .attendance-pill {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.attendance-primary.long-status .attendance-pill {
  font-size: 0.8125rem;
}
.measurement-links > button {
  min-width: 100px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.measurement-links > select {
  flex: 1;
  min-width: 0;
}
.measurement-list .field-session-card > .measurement-open {
  display: flex;
  align-items: center;
  gap: 8px;
}
.measurement-preview > span {
  overflow-wrap: anywhere;
}
.attendance-primary .attendance-pill {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 0.18: small context choices and one shared pupil-information affordance. */
.context-picker #panel-content {
  width: 100%;
}
.context-picker .pilot-content {
  gap: 12px;
}
.context-picker-controls {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 68px;
  z-index: 3;
  background: var(--surface);
  padding: 0 0 12px;
}
.context-choice-tabs {
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: #e8eff2;
}
.context-choice-tabs button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.context-choice-tabs button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}
.context-choice-list {
  display: grid;
  gap: 8px;
}
.context-choice-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 12px;
  text-align: left;
}
.context-choice-row[data-selected="true"] {
  background: #e4f0eb;
  border: 2px solid #437f70;
  padding: 11px;
}
.context-choice-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}
.context-choice-row strong {
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.context-choice-row small {
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--muted);
}
.context-choice-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #e6eef4;
  border-radius: 13px;
  flex-shrink: 0;
}
.context-choice-date {
  width: 76px;
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.context-choice-list .ui-icon {
  width: 22px;
  height: 22px;
}
.context-picker-more {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.context-picker-more > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
}
.context-picker-more > .selected-context {
  margin: 12px 0;
}
.context-picker-more > button {
  margin-top: 10px;
}
.context-picker-more p {
  font-size: 0.875rem;
}
.person-info-button {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  color: var(--brand);
}
.person-info-button.has-information::after,
.attendance-name-info.has-information::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #246b72;
  border: 2px solid white;
}
.person-info-tabs {
  display: flex;
  gap: 4px;
  background: #e6edf1;
  border-radius: 999px;
  padding: 4px;
}
.person-info-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
}
.person-info-tabs button[aria-pressed="true"] {
  background: var(--brand);
  color: white;
}
.person-info-tabs .ui-icon {
  width: 20px;
  height: 20px;
}
.person-info-summary {
  width: 100%;
  border: 1px solid #a9c9bb;
  background: #e7f2ec;
  color: #164b3e;
  padding: 10px 12px;
  border-radius: 16px;
  display: grid;
  gap: 5px;
  text-align: left;
}
.person-info-summary > span {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.875rem;
}
.person-info-summary .ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.person-support-row {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
}
.person-support-row > div {
  display: grid;
  gap: 5px;
}
.person-support-row small {
  font-size: 0.8125rem;
  color: var(--muted);
}
.person-support-row p {
  font-size: 0.9375rem;
  margin: 0;
  white-space: pre-wrap;
}
.person-support-history > summary,
.person-history > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  cursor: pointer;
}
.person-history {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 12px;
}
.person-history .lesson-feed-list {
  max-height: 340px;
}
.person-history summary::after {
  content: "+";
  margin-left: auto;
}
.person-history[open] summary::after {
  content: "−";
}
.date-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.date-pair input {
  min-width: 0;
}
.profile-actions {
  display: flex;
  gap: 6px;
}
.profile-actions > button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px 5px;
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #eef3f6;
}
.profile-actions .ui-icon {
  width: 20px;
  height: 20px;
}
.attendance-name-info {
  grid-column: 2;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
}
.attendance-name-info .ui-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.dash-learner-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}
.dash-learner-entry > .dash-learner {
  width: 100%;
}
.team-person-with-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}
.team-person-list {
  display: grid;
  gap: 4px;
}
.team-person-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.person-information-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.person-information-picker > button {
  min-height: 48px;
  text-align: left;
  justify-content: flex-start;
}
.field-person:not(.field-tile) > .person-info-button {
  flex-shrink: 0;
}
@media (max-width: 374px) {
  .person-info-tabs button {
    font-size: 0.8125rem;
    gap: 4px;
  }
  .person-info-tabs .ui-icon {
    width: 17px;
    height: 17px;
  }
  .attendance-name-info {
    grid-column: 1;
  }
  .profile-actions > button {
    flex-direction: column;
    min-height: 54px;
  }
  .context-choice-date {
    width: 65px;
  }
}
.person-note-item {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  text-align: left;
  min-height: 44px;
}
.person-note-item > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
}
.context-picker .panel-header {
  z-index: 6;
  background: var(--surface);
}
.context-picker-controls {
  top: 76px;
}
.context-picker-controls::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: var(--surface);
}

/* 0.18: compact optional roster capture and immediately saved themes. */
:root[data-appearance="navy"] {
  --canvas: #123b50;
  --brand: #164f65;
  --page: #eef3f7;
  --accent: #c5ef39;
}
:root[data-appearance="forest"] {
  --canvas: #103e31;
  --brand: #145b45;
  --page: #eef4f0;
  --accent: #c5eb56;
}
:root[data-appearance="neutral"] {
  --canvas: #243b51;
  --brand: #254e70;
  --page: #f0f2f5;
  --accent: #cee5f7;
}
.theme-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.theme-choices button {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 14px 8px;
}
.theme-choices button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--selection);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.theme-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #123b50;
  border: 4px solid #e5eff5;
}
[data-theme-choice="forest"] .theme-swatch {
  background: #103e31;
}
[data-theme-choice="neutral"] .theme-swatch {
  background: #243b51;
  border-color: #cee5f7;
}
.grid-actions {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.grid-actions .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.grid-actions > .field + .field {
  flex: 1.4;
}
.grid-actions label {
  display: none;
}
.grid-actions select {
  min-height: 44px;
  border-radius: 16px;
  padding: 8px;
  font-size: 0.875rem;
}
.person-grid {
  gap: 6px;
}
.person-grid .person-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 6px 3px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
.person-grid .person-cell strong {
  font-size: 0.8125rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.person-grid .person-cell .person-state-chip {
  position: static;
  max-width: 100%;
  font-size: 0.6875rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  padding: 2px 4px;
}
.person-grid .person-cell[data-presence="absent"] {
  border-color: #bc5163;
  background: #fff0f2;
}
.person-grid .person-cell[data-presence="present"] {
  border-color: #4b8972;
  background: #eef8f2;
}
.person-grid .person-cell[data-state-id="excused"],
.person-grid .person-cell[data-state-id="attest"] {
  border-color: #6489ba;
  background: #eef4fc;
}
.person-grid .person-cell .person-comment-marker {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
}
.person-grid .person-cell .person-comment-marker .ui-icon {
  width: 13px;
  height: 13px;
}
.person-grid .person-cell .person-markers {
  position: absolute;
  left: 2px;
  top: 2px;
}
:root[data-text-size="large"] .person-grid .person-cell strong {
  font-size: 1rem;
}
.person-grid .person-cell .person-state-chip {
  color: var(--brand);
  background: #e6f0f2;
  border: 0;
}
.person-grid .person-cell[data-presence="absent"] .person-state-chip {
  color: #94283e;
  background: #ffe1e6;
}
.grid-toolbox {
  margin-bottom: 8px;
}
.grid-toolbox .grid-actions {
  margin-bottom: 4px;
}
.grid-gesture-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.person-grid > .capture-pending,
.layout-board > .capture-pending,
.attendance-row > .capture-pending,
.quick-roster-quick .inline-ratings > .capture-pending {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.person-grid .person-cell strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.3em;
  overflow: hidden;
  flex-shrink: 1;
}
.person-grid .person-cell {
  gap: 1px;
  padding: 4px 2px;
}
.person-grid .person-cell[data-presence-tone="blue"] {
  background: #edf4fc;
  border-color: #7293bb;
  color: #214b78;
}
.person-grid .person-cell[data-presence-tone="blue"] .person-state-chip {
  color: #214b78;
  background: #dceafa;
}
.person-grid .person-cell[data-presence-tone="violet"] {
  background: #f3effa;
  border-color: #9785bc;
  color: #5d4589;
}
.person-grid .person-cell[data-presence-tone="violet"] .person-state-chip {
  color: #5d4589;
  background: #e7def6;
}
.person-grid .person-cell[data-presence-tone="amber"] {
  background: #fff7e5;
  border-color: #b89b58;
}
/* 0.19: focused capture, source transparency and compact organization. */
.person-capture-tabs {
  display: flex;
}
.person-capture-tabs button {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  padding: 10px 5px;
}
.person-details-menu {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.person-details-menu summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
}
.person-details-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.source-list {
  display: grid;
  gap: 10px;
}
.source-entry {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.source-entry small {
  color: var(--muted);
}
.source-entry p {
  margin: 0;
  overflow-wrap: anywhere;
}
.dash-events button.event-chip {
  min-height: 44px;
  cursor: pointer;
}
.main-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.main-nav button {
  min-width: 0;
}
.main-nav .nav-icon {
  min-width: 0;
  width: min(56px, 100%);
}
.page-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.page-actions-row h1 {
  flex: 1;
  margin: 0;
  font-size: 1.6rem;
}
.page-actions-row button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: 10px;
}
.page-actions-row button > span {
  display: none;
}
[data-page="orga"] {
  max-width: 900px;
  margin: auto;
  padding: 20px 16px 100px;
}
.orga-locked {
  text-align: center;
  padding: 36px 16px;
}
.orga-lock-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: var(--selection);
  border-radius: 26px;
}
.orga-lock-icon svg {
  width: 40px;
  height: 40px;
}
.orga-locked h2 {
  margin: 20px 0 8px;
}
.orga-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 14px;
}
.orga-tabs button {
  border-radius: 999px;
  min-height: 44px;
  font-size: 0.8125rem;
  padding: 8px 12px;
}
.orga-tabs button[aria-pressed="true"] {
  background: var(--brand);
  color: white;
}
.orga-section {
  margin-top: 20px;
}
.orga-section h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.orga-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.orga-entry-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.orga-entry-title {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 44px;
  font-weight: 700;
}
.orga-entry-title span {
  overflow-wrap: anywhere;
}
.orga-entry-body small {
  color: var(--muted);
}
.orga-entry.is-done .orga-entry-title {
  text-decoration: line-through;
}
.orga-check {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.orga-entry > button:last-child:not(.orga-check) {
  padding: 8px;
  font-size: 0.75rem;
}
.orga-empty {
  padding: 35px 12px;
  text-align: center;
  color: var(--muted);
}
.orga-done-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.orga-done-toggle input {
  width: 22px;
  height: 22px;
}
.orga-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.orga-add-grid button {
  min-height: 90px;
  border-radius: 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
}
.orga-add-grid svg {
  width: 30px;
  height: 30px;
}
.orga-time-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.orga-time-fields .field:first-child {
  grid-column: 1/-1;
}
.orga-course-link {
  margin-top: 24px;
}
.orga-course-link summary {
  min-height: 44px;
  padding: 12px 0;
}
.meeting-slots {
  display: grid;
  gap: 8px;
}
.meeting-slots button {
  text-align: left;
  padding: 14px;
  min-height: 50px;
  border-radius: 16px;
}
.meeting-slots .free {
  background: #edf6e5;
  border-color: #9ab77a;
}
.meeting-slots .occupied {
  background: #e4eef8;
  border-color: #7899ba;
}
@media (max-width: 430px) {
  .main-nav button {
    font-size: 0.6875rem;
  }
}
body[data-view="orga"] #course-switch:disabled {
  opacity: 1;
}
body[data-view="orga"] #course-switch small {
  color: #d8e7ee;
}
.orga-emblem {
  background: #e4eff3;
  display: grid;
  place-items: center;
}
.orga-emblem .ui-icon {
  width: 28px;
  height: 28px;
}
.desktop-room-board {
  position: relative;
  background:
    linear-gradient(90deg, #d2dde43d 1px, transparent 1px),
    linear-gradient(#d2dde43d 1px, transparent 1px);
  background-size: 24px 24px;
}
.desktop-room-board .person-cell {
  margin: 0;
  padding: 4px;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  user-select: none;
  touch-action: pan-x pan-y;
}
.empty-room-seat {
  background: #e1e7eb;
  border: 1px dashed #6f8794;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #4a6371;
  font-size: 0.75rem;
}
.seat-capture {
  max-height: min(62dvh, 580px);
}
.seat-capture .pilot-content {
  gap: 10px;
}
.desktop-import-mapping {
  display: grid;
  gap: 10px;
}
.layout-viewport {
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
}
.layout-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: end;
}
.layout-toolbar > button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: 10px;
}
.layout-toolbar:has(.room-plan-choice) {
  grid-template-columns: minmax(0, 1fr) 48px;
}
.layout-toolbar .room-plan-choice {
  grid-column: 1 / -1;
}
.layout-toolbar > button {
  width: 48px;
  justify-self: end;
}
.source-link {
  min-height: 44px;
  margin-top: 10px;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 0.8125rem;
}
.dash-panel details > summary {
  min-height: 44px;
  padding-top: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.dash-panel details > p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* 0.19.1: compact classroom review and explicit organizer states. */
.orga-state {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #dce9ed;
  color: #23485b;
}
.orga-state.cancelled {
  background: #ffe0e6;
  color: #8e1734;
}
.meeting-slots button:disabled {
  opacity: 1;
  color: var(--muted);
  background: var(--subtle);
  border-color: var(--line);
}
.person-capture-tabs + form .input-draft-status:empty {
  display: none;
}
.draft-discard {
  font-size: 0.8125rem;
  min-height: 44px;
}
.dash-learner-entry .dash-learner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 12px 0;
}
.dash-learner-entry .dash-learner small {
  grid-column: 1 / -1;
}
.dash-learner-entry .dash-learner > span {
  font-size: 0.8125rem;
  white-space: nowrap;
}
#panel[data-pilot-view="person"] .context-caption {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  margin: 0;
}
.observation-draft .input-draft-status {
  background: #fff3d9;
  color: #725215;
}
.observation-draft .input-draft-status:empty {
  display: none;
}
.dash-learner-entry .dash-learner small {
  font-weight: 400;
  color: var(--muted);
}

.quick-mode-switch {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 24px;
  margin-bottom: 12px;
}
.people-controls .quick-mode-switch > button {
  min-width: 0;
  padding: 8px 4px;
  font-size: 0.875rem;
  letter-spacing: 0;
}
@media (max-width: 359px) {
  .people-controls .quick-mode-switch > button {
    font-size: 0.8rem;
  }
}
@media (min-width: 720px) {
  .quick-mode-switch {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-radius: 999px;
  }
}
.quick-observation-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border-radius: 20px;
  padding: 12px 16px;
  margin: 0 0 14px;
  background: var(--card, #fff);
  border: 1px solid var(--line);
}
.quick-observation-choice > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.quick-observation-choice small {
  font-size: 0.75rem;
}
.quick-observation-choice strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.quick-observation-choice svg {
  width: 24px;
  height: 24px;
}
.quick-observation-actions {
  display: flex;
  gap: 8px;
}
.quick-observation-record {
  flex: 1;
  min-height: 44px;
  border-radius: 16px;
}
.observation-count {
  min-width: 64px;
  min-height: 44px;
  border-radius: 16px;
}
.kind-positive {
  --event-color: #12634b;
  --event-fill: #e1f3e9;
}
.kind-negative {
  --event-color: #8a3d18;
  --event-fill: #fff0df;
}
.kind-neutral {
  --event-color: #24546a;
  --event-fill: #e7f0f6;
}
.quick-observation-record,
.observation-kind,
.event-chip[class*="kind-"] {
  background: var(--event-fill);
  color: var(--event-color);
  border-color: var(--event-color);
}
.quick-observation-choice {
  border-left: 4px solid var(--event-color);
}
.observation-options,
.observation-group {
  margin: 10px 0 16px;
}
.observation-options h3,
.observation-group h3 {
  color: var(--event-color);
  font-size: 0.875rem;
  margin: 0 0 8px;
}
.observation-options button {
  width: 100%;
  min-height: 48px;
  text-align: left;
  margin-bottom: 8px;
  background: var(--event-fill);
  color: var(--event-color);
}
.observation-kind {
  display: inline-block;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 0.875rem;
}
.grading-basis summary,
.measurement-grade-basis summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
}
.grading-basis p,
.measurement-grade-basis p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.people-controls:has(.quick-mode-switch) {
  grid-template-columns: minmax(0, 1fr);
}
.people-search-row .people-utility {
  margin: 0;
  flex-shrink: 0;
}
.people-search-row .people-menu > summary {
  width: 44px;
  height: 48px;
}
.quick-student:has(.quick-observation-actions) {
  grid-template-columns: 34px minmax(0, 1fr) 96px 40px;
  grid-template-areas: "avatar name ratings note";
  gap: 8px;
  align-items: center;
  padding: 14px 0;
}
.quick-observation-actions {
  grid-area: ratings;
}
.quick-observation-actions .quick-observation-record {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  max-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  flex: 0 0 44px;
  box-shadow: none;
  border: 1px solid var(--event-color);
}
.quick-observation-actions .quick-observation-record svg {
  width: 24px;
  height: 24px;
}
.quick-observation-actions .observation-count {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  font-size: 0.875rem;
  box-shadow: none;
}
.quick-student:has(.quick-observation-actions)
  .quick-student-head
  > .icon-only {
  width: 40px;
  min-width: 40px;
}
.quick-student:has(.quick-observation-actions) .quick-name {
  font-size: 0.875rem;
}

.people-search-row:has(.people-utility) {
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  align-items: center;
  gap: 8px;
}
.people-search-row:has(.people-utility) .people-filter > summary {
  width: 44px;
  height: 48px;
}

@media (min-width: 375px) and (max-width: 450px) {
  :root[data-density="compact"] body[data-view="people"] #main {
    padding-inline: 14px;
  }
}
:root[data-density="compact"] .quick-roster-quick {
  container: quick-ratings / inline-size;
  padding-inline: 8px;
}
:root[data-density="compact"] :is(.quick-roster-quick, .quick-roster-points) > .quick-student,
:root[data-density="compact"] .attendance-row {
  padding-block: 6px;
}
:root[data-density="compact"] .quick-roster-quick > .quick-student {
  align-items: center;
  gap: 4px;
}
.quick-roster-quick .quick-name {
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
:root[data-density="compact"] .quick-roster-quick .inline-ratings {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(44px, 1fr);
  min-width: 0;
  gap: 3px;
}
:root[data-density="compact"] .quick-roster-quick .inline-ratings button {
  padding: 4px 2px;
  overflow-wrap: anywhere;
}
:root[data-density="compact"] .quick-roster-quick > .quick-student:has(> select) {
  grid-template-columns: 32px minmax(0, 1fr) minmax(80px, 0.7fr) 44px;
  grid-template-areas: "avatar name ratings note";
}
.quick-roster-quick > .quick-student > select {
  min-width: 0;
  min-height: 44px;
}
@container quick-ratings (min-width: 344px) {
  .quick-roster-quick > .quick-student:has(.inline-ratings) {
    grid-template-columns: minmax(60px, 1fr) max-content 44px;
    grid-template-areas: "name ratings note";
  }
  .quick-roster-quick .quick-student:has(.inline-ratings) .student-avatar {
    display: none;
  }
  :root[data-density="compact"] .quick-roster-quick .inline-ratings {
    grid-auto-columns: 44px;
  }
}
@container quick-ratings (min-width: 440px) {
  .quick-roster-quick > .quick-student:has(.inline-ratings) {
    grid-template-columns: 36px minmax(82px, 1fr) max-content 44px;
    grid-template-areas: "avatar name ratings note";
    gap: 8px;
  }
  .quick-roster-quick .quick-student:has(.inline-ratings) .student-avatar {
    display: grid;
  }
  :root[data-density="compact"] .quick-roster-quick .inline-ratings {
    grid-auto-columns: 48px;
    gap: 4px;
  }
}
.attendance-name-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}
.attendance-identity > .student-avatar {
  grid-area: auto;
  margin: 0;
}
:root[data-density="compact"] .attendance-primary {
  min-height: 44px;
  padding-block: 5px;
}
:root[data-density="compact"] .attendance-primary .attendance-pill {
  margin: 0;
}
:root[data-density="comfortable"] .attendance-name-copy:has(.attendance-unrecorded) {
  min-height: 64px;
  align-content: center;
  gap: 6px;
}
:root[data-text-size="large"] .quick-identity .quick-name,
:root[data-text-size="large"] .attendance-identity strong,
:root[data-text-size="large"] .quick-roster-points .point-value {
  font-size: 1.125rem;
}
:root[data-text-size="large"] .quick-grade-label,
:root[data-text-size="large"] .quick-identity .point-recorded,
:root[data-text-size="large"] .attendance-unrecorded,
:root[data-text-size="large"] .attendance-primary .attendance-pill {
  font-size: 0.9375rem;
}

/* Optional area access protection, kept out of the daily capture flow. */
.protection-options {
  display: grid;
  gap: 10px;
}
.protection-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: white;
  min-height: 76px;
}
.protection-row > span:nth-child(2) {
  flex: 1;
  display: grid;
  gap: 5px;
}
.protection-row svg {
  width: 26px;
  height: 26px;
  color: var(--brand);
}
.protection-row small {
  font-size: 0.875rem;
  color: var(--muted);
}
.protection-row input {
  width: 25px;
  height: 25px;
  accent-color: var(--brand);
}
.protection-editor {
  padding: 16px;
  border-radius: 20px;
  background: var(--subtle);
}
.access-gate {
  max-width: 440px;
  margin: 32px auto;
  padding: 24px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
}
.access-glyph svg {
  width: 40px;
  height: 40px;
  color: var(--brand);
}
.access-gate .field {
  display: grid;
  margin: 12px 0;
}
.access-gate button {
  width: 100%;
  min-height: 48px;
  margin: 8px 0;
}
.protection-row input[role="switch"] {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 28px;
  min-width: 48px;
  flex: 0 0 48px;
  border-radius: 99px;
  border: 1px solid #bdcbd1;
  background: #dce5e9;
  position: relative;
  cursor: pointer;
}
.protection-row input[role="switch"]::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #14364b33;
  transition: transform 0.15s ease;
}
.protection-row input[role="switch"]:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.protection-row input[role="switch"]:checked::before {
  transform: translateX(20px);
}
.protection-row input[role="switch"]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

/* Appointment slots: distinct compact booking surface within the existing sheet. */
.meeting-slots button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 12px 16px;
  min-height: 72px;
}
.meeting-slots button strong {
  font-size: 1rem;
}
.meeting-slots button > span:not(.meeting-slot-glyph) {
  grid-column: 1;
  overflow-wrap: anywhere;
}
.meeting-slot-glyph {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
.meeting-event-context,
.meeting-booking-context {
  display: grid;
  gap: 5px;
}
.meeting-booking-context {
  padding: 16px;
  border-radius: 20px;
  background: var(--subtle);
  border: 1px solid var(--line);
}
.meeting-booking-context strong {
  font-size: 1.5rem;
}
.meeting-booking-context small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.meeting-booking details summary,
.meeting-conversations > summary {
  padding: 12px 0;
  min-height: 44px;
}
.meeting-conversations {
  padding-left: 14px;
  border-left: 3px solid var(--line);
  margin-bottom: 14px;
}
.meeting-summary {
  font-weight: 650;
}

/* Intentional empty/import-only workspace: readable context and compact plan rows. */
#course-switch .planning-context-note { color: #d8e7ee; }
.planning-structure-row { display: grid; gap: 4px; text-align: left; width: 100%; }
.planning-structure-row small { font-size: .8rem; font-weight: 500; }

/* Existing sheet language, compact local planning review. */
.planning-import-row { display: grid; gap: .2rem; padding: .7rem 0; border-bottom: 1px solid var(--border, #bed0d9); }
.planning-import-row small { color: var(--muted, #405967); overflow-wrap: anywhere; }
.planning-import-conflict { padding: 1rem; border: 1px solid #b5cbd4; border-radius: 20px; margin: .5rem 0; }
.planning-import-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.planning-import-compare p { display: grid; gap: .3rem; align-content: start; background: #edf4f7; padding: .7rem; border-radius: 14px; overflow-wrap: anywhere; margin: .7rem 0; }
.planning-import-conflict select { width: 100%; min-height: 48px; }

.planning-import-consent { display:flex; align-items:center; gap:.8rem; padding:.75rem; min-height:48px; border-radius:14px; background:#edf4f7; font-size:.88rem; font-weight:600; }
.planning-import-consent input[type=checkbox] { flex:0 0 24px; width:24px; height:24px; min-height:24px; margin:0; }

.structure-capture { margin-bottom: 16px; }

/* Native sync review uses the existing sheet; choices never rely on color alone. */
.sync-review {
  display: grid;
  gap: 1.25rem;
}
.sync-review-group h3 {
  margin: 0 0 0.75rem;
}
.sync-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sync-review-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border, #cedbe1);
  overflow-wrap: anywhere;
}
.sync-review-fields {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(0, 2fr);
  gap: 0.25rem 0.75rem;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}
.sync-review-fields dt {
  color: var(--muted, #4b6371);
}
.sync-review-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.sync-review-conflict {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.sync-review-conflict legend {
  font-weight: 700;
}
.sync-review-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  margin: 0.6rem 0;
  border: 2px solid #c6d6dd;
  border-radius: 20px;
  cursor: pointer;
}
.sync-review-option:has(input:checked) {
  border-color: var(--accent, #15546b);
  background: #edf6f8;
}
.sync-review-option input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  min-height: 24px;
  width: 24px;
}
.sync-review-option > div {
  flex: 1;
  min-width: 0;
}
.sync-review-option small {
  display: block;
  margin-top: 0.25rem;
}
.sync-review-actions {
  display: flex;
  gap: 0.6rem;
  position: sticky;
  bottom: 0;
  padding: 0.8rem 0;
  background: white;
}
.sync-review-actions button {
  flex: 1;
  min-width: 0;
}
.sync-review-option strong,
.sync-review-option span { display: block; overflow-wrap: anywhere; }
.sync-review-option span { margin-top: .45rem; }

/* Device setup uses the same quiet sheets and touch targets as teaching. */
.connection-file { display: grid; gap: .5rem; }
.connection-file small { overflow-wrap: anywhere; color: var(--muted, #526873); }
.connection-fingerprint { display: block; font-variant-numeric: tabular-nums; letter-spacing: .04em; overflow-wrap: anywhere; }
.connection-scope { font-size: .9rem; }
.connection-scope p { margin-block: .65rem 0; }
.connection-device { padding-block: .9rem; border-bottom: 1px solid var(--line, #d8e1e5); }
.connection-device h3 { margin-block: 0 .25rem; }
.connection-device p { margin-block: .25rem .6rem; }
.connection-device details { margin-block: .5rem; }
.connection-device-heading { display: flex; align-items: center; gap: .75rem; }
.connection-device-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; background: #e4f0ed; color: #123d4e; }
.connection-device-icon svg { width: 25px; height: 25px; }

/* One-time person linking uses the same compact review sheet. */
.sync-enrollment-target { display: grid; gap: .35rem; min-width: 0; }
.sync-enrollment-target small { color: var(--muted, #4b6371); }
.sync-enrollment-target select { width: 100%; min-width: 0; }

/* Keep course affiliation separate from lesson attendance. */
.course-membership-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.course-membership-row .person-name {
  min-width: 0;
}
.course-membership-row .person-name strong {
  font-size: 1rem;
}

.connection-conflict-value {
  font: inherit;
  margin-block: .35rem;
  max-height: 12rem;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.connection-workspace-status {
  color: var(--muted);
  font-size: .9rem;
  margin-block: 0 .3rem;
}

.connection-text-link {
  justify-self: start;
  width: fit-content;
  padding: .45rem 0;
  border: 0;
  background: transparent;
  color: var(--accent-ink, #164d5d);
  text-align: left;
  text-decoration: underline;
}

html[data-account-access="blocked"] .app-header,
html[data-account-access="blocked"] .dock { display: none; }

html[data-account-access="blocked"] #main {
  display: grid;
  align-content: center;
  min-height: 88dvh;
  padding-block: 1.5rem;
}

.account-gate {
  width: min(100%, 29rem);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--surface, #fff);
  border: 1px solid var(--line, #cad8dd);
  border-radius: 1.4rem;
  box-shadow: 0 1.2rem 3rem #123b5016;
}

.account-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.1rem;
}

.account-brand img { border-radius: .75rem; }
.account-gate h1 { margin-block: 1.2rem .8rem; }
.account-gate form input:not([type="checkbox"]) { width: 100%; min-width: 0; }
.account-gate form button[type="submit"] { min-height: 2.75rem; }
.account-gate .connection-text-link { margin-block: .75rem 0; }
.account-notice { border-block-start: 1px solid var(--line, #cad8dd); padding-block-start: .85rem; }

.connection-device-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}
.connection-device-actions:empty { display: none; }
