* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --ink: #172033;
  --muted: #647086;
  --line: #d8dee8;
  --paper: #eef2f7;
  --white: #fff;
  --blue: #1b65c9;
  --green: #178a52;
  --amber: #a96800;
  --red: #ba2f3a;
  --gray: #58606f;
  --teal: #2b7f86;
  --sdis-blue: #302f86;
  --sdis-blue-dark: #24205f;
  --sdis-gold: #c09a45;
  --sdis-red: #e1261c;
  --sdis-night: #1f2d3a;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--sdis-blue) 0 154px, #ffffff 154px 166px, var(--paper) 166px 100%);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body.simulation-page {
  background: #e9eef5;
}

body.login-page {
  background: #eef3f8;
}

button,
input,
textarea,
select {
  font-family: inherit;
  letter-spacing: 0;
  font-size: 16px;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

a,
label {
  touch-action: manipulation;
}

summary {
  touch-action: pan-y;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(320px, 540px);
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.shell.is-loading,
.shell.mode-login-web {
  grid-template-columns: minmax(0, 100%);
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #eef3f8;
}

.shell.is-loading > .device-switcher,
.shell.is-loading > .panel,
.shell.is-loading > .phone > .statusbar,
.shell.mode-login-web > .device-switcher,
.shell.mode-login-web > .panel,
.shell.mode-login-web > .phone > .statusbar {
  display: none;
}

.shell.is-loading > .phone,
.shell.mode-login-web > .phone {
  width: 100%;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell.is-loading > .phone > .app,
.shell.mode-login-web > .phone > .app {
  height: auto;
  min-height: 100svh;
  background: transparent;
}

.initial-loader {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(48, 47, 134, .08) 0, rgba(255, 255, 255, 0) 270px),
    #eef3f8;
}

.initial-loader img {
  width: 76px;
  height: 98px;
  object-fit: contain;
}

.initial-loader p,
.web-login-eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.initial-loader h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 900;
}

.initial-loader span {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

.initial-loader-error span {
  color: #8a2630;
}

.device-switcher {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  gap: 4px;
  border: 1px solid #d6deea;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .08);
}

.device-switcher:empty {
  display: none;
}

.device-switcher button {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.device-switcher button.active {
  background: var(--sdis-blue);
  color: #fff;
}

.device-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
}

.device-icon.device-phone {
  width: 10px;
  height: 16px;
  border-radius: 4px;
}

.device-icon.device-tablet {
  width: 14px;
  height: 17px;
  border-radius: 4px;
}

.device-icon.device-web {
  width: 18px;
  height: 12px;
  border-radius: 3px;
}

.device-icon.device-web::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 3px 0 currentColor;
}

.shell.mode-simulation {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 920px);
  align-items: start;
  justify-content: center;
  padding: 14px 18px 24px;
}

.shell.mode-simulation > .phone {
  width: min(100%, 920px);
  height: auto;
  min-height: calc(100svh - 38px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell.mode-simulation > .phone > .statusbar {
  display: none;
}

.shell.mode-simulation > .phone > .app {
  height: auto;
  min-height: calc(100svh - 38px);
  background: transparent;
}

.shell.mode-simulation > .panel {
  display: none;
}

.shell.mode-simulation > .device-switcher {
  display: none;
}

.shell.mode-tablet {
  grid-template-columns: minmax(560px, 720px) minmax(320px, 500px);
}

.shell.mode-tablet > .phone {
  width: min(100%, 720px);
  border-radius: 28px;
}

.shell.mode-admin-dashboard {
  grid-template-columns: minmax(0, 100%);
  align-items: start;
  justify-content: center;
  background: var(--paper);
}

.shell.mode-admin-dashboard .web-header {
  background-color: var(--sdis-blue);
  background-image:
    linear-gradient(90deg, rgba(47, 45, 135, .96) 0%, rgba(47, 45, 135, .84) 46%, rgba(47, 45, 135, .9) 100%),
    url("/static/img/cod2-ccfm-banner.jpg");
  background-position: center 43%;
  background-size: cover;
}

.shell.mode-admin-dashboard > .phone {
  height: auto;
  min-height: calc(100svh - 56px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell.mode-admin-dashboard-phone > .phone {
  width: min(100%, 430px);
}

.shell.mode-admin-dashboard-tablet > .phone {
  width: min(100%, 820px);
}

.shell.mode-admin-dashboard > .phone > .statusbar,
.shell.mode-admin-dashboard > .panel {
  display: none;
}

.shell.mode-admin-dashboard > .phone > .app {
  height: auto;
  min-height: calc(100svh - 56px);
  background: transparent;
}

body.admin-dashboard-phone-page {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--paper);
}

body.admin-dashboard-phone-page .shell,
body.admin-dashboard-phone-page .shell.mode-admin-dashboard,
body.admin-dashboard-phone-page .shell.mode-admin-dashboard > .phone,
body.admin-dashboard-phone-page .shell.mode-admin-dashboard > .phone > .app,
body.admin-dashboard-phone-page .web-page,
body.admin-dashboard-phone-page .web-main {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard {
  display: block;
  padding: 0;
}

body.admin-dashboard-phone-page .web-page {
  overflow-x: clip;
}

body.admin-dashboard-phone-page .web-tabs {
  width: 100%;
  max-width: 100vw;
}

.shell.mode-admin-dashboard .web-tabs {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.shell.mode-admin-dashboard .web-tabs button,
.shell.mode-admin-dashboard .web-tabs a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.shell.mode-admin-dashboard-phone .web-header,
.shell.mode-admin-dashboard-tablet .web-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.shell.mode-admin-dashboard-phone .web-session,
.shell.mode-admin-dashboard-tablet .web-session {
  justify-items: stretch;
}

.shell.mode-admin-dashboard-phone .web-stage-badge,
.shell.mode-admin-dashboard-tablet .web-stage-badge {
  max-width: none;
  text-align: left;
}

.shell.mode-admin-dashboard-phone .web-logout,
.shell.mode-admin-dashboard-tablet .web-logout {
  width: 100%;
}

.shell.mode-admin-dashboard-phone .web-main {
  padding: 16px 12px 22px;
}

.shell.mode-admin-dashboard-phone .web-grid,
.shell.mode-admin-dashboard-phone .mechanical-grid,
.shell.mode-admin-dashboard-phone .mechanical-grid.two,
.shell.mode-admin-dashboard-phone .web-roster,
.shell.mode-admin-dashboard-phone .rotation-grid {
  grid-template-columns: 1fr;
}

.shell.mode-admin-dashboard-tablet .web-grid,
.shell.mode-admin-dashboard-tablet .mechanical-grid,
.shell.mode-admin-dashboard-tablet .rotation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shell.mode-admin-dashboard-phone .web-section-head,
.shell.mode-admin-dashboard-tablet .web-section-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.shell.mode-admin-dashboard-phone .admin-trainer-head {
  display: none;
}

.shell.mode-admin-dashboard-phone .admin-trainer-row {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 8px 10px;
}

.shell.mode-admin-dashboard-phone .admin-trainer-row > *:not(.admin-select) {
  grid-column: 2;
}

.shell.mode-admin-dashboard-phone .admin-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.shell.mode-admin-dashboard-phone,
.shell.mode-admin-dashboard-phone > .phone,
.shell.mode-admin-dashboard-phone > .phone > .app,
.shell.mode-admin-dashboard-phone .web-page,
.shell.mode-admin-dashboard-phone .web-main,
.shell.mode-admin-dashboard-phone .web-grid,
.shell.mode-admin-dashboard-phone .archive-main-accordions,
.shell.mode-admin-dashboard-phone .archive-section-details,
.shell.mode-admin-dashboard-phone .archive-section-body {
  min-width: 0;
  max-width: 100%;
}

.shell.mode-admin-dashboard-phone {
  overflow-x: hidden;
}

.shell.mode-admin-dashboard-phone .web-main {
  width: 100%;
}

.shell.mode-admin-dashboard-phone .web-grid {
  grid-template-columns: 1fr;
}

.shell.mode-admin-dashboard-phone .web-card.wide,
.shell.mode-admin-dashboard-phone .home-readiness-section,
.shell.mode-admin-dashboard-phone .home-expected-section,
.shell.mode-admin-dashboard-phone .mechanical-alert-card {
  grid-column: 1 / -1;
}

.shell.mode-admin-dashboard-phone .web-card,
.shell.mode-admin-dashboard-phone .web-table-card,
.shell.mode-admin-dashboard-phone .archive-section-details,
.shell.mode-admin-dashboard-phone .archive-trainee-details,
.shell.mode-admin-dashboard-phone .readiness-item,
.shell.mode-admin-dashboard-phone .home-expected-row,
.shell.mode-admin-dashboard-phone .expected-level-card,
.shell.mode-admin-dashboard-phone .mechanical-card,
.shell.mode-admin-dashboard-phone .trainee-edit-details,
.shell.mode-admin-dashboard-phone .summative-jury-row,
.shell.mode-admin-dashboard-phone .transversal-competency-row {
  width: 100%;
  max-width: 100%;
}

.shell.mode-admin-dashboard-phone .web-card *,
.shell.mode-admin-dashboard-phone .web-table-card *,
.shell.mode-admin-dashboard-phone .archive-section-details *,
.shell.mode-admin-dashboard-phone .readiness-item *,
.shell.mode-admin-dashboard-phone .home-expected-row *,
.shell.mode-admin-dashboard-phone .expected-level-card *,
.shell.mode-admin-dashboard-phone .mechanical-card *,
.shell.mode-admin-dashboard-phone .trainee-edit-details * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.shell.mode-admin-dashboard-phone .rp-mobile-actions .compact-action,
.shell.mode-admin-dashboard-phone .web-tabs a,
.shell.mode-admin-dashboard-phone .web-tabs button {
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.shell.mode-admin-dashboard-phone .archive-section-details > summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  min-height: 0;
  padding: 12px;
}

.shell.mode-admin-dashboard-phone .archive-section-details > summary div {
  min-width: 0;
}

.shell.mode-admin-dashboard-phone .archive-section-details > summary strong {
  font-size: 20px;
}

.shell.mode-admin-dashboard-phone .archive-section-details > summary span {
  font-size: 13px;
}

.shell.mode-admin-dashboard-phone .archive-section-details > summary em {
  grid-column: 2;
  justify-self: start;
  text-align: left;
  white-space: normal;
}

.shell.mode-admin-dashboard-phone .archive-section-body {
  padding: 12px;
}

.shell.mode-admin-dashboard-phone .home-expected-counters {
  grid-template-columns: 1fr;
}

.shell.mode-admin-dashboard-phone .home-expected-counter {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 12px;
}

.shell.mode-admin-dashboard-phone .home-expected-counter strong {
  font-size: 26px;
  text-align: right;
}

.shell.mode-admin-dashboard-phone .home-expected-axis {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.shell.mode-admin-dashboard-phone .home-expected-row {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
}

.shell.mode-admin-dashboard-phone .home-expected-person strong {
  font-size: 18px;
}

.shell.mode-admin-dashboard-phone .home-expected-track {
  width: 100%;
}

.shell.mode-admin-dashboard-phone .home-expected-values strong {
  font-size: 15px;
}

.shell.mode-admin-dashboard-phone .home-expected-values span {
  font-size: 13px;
}

.shell.mode-admin-dashboard-phone .readiness-item {
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
}

.shell.mode-admin-dashboard-phone .readiness-item .compact-action,
.shell.mode-admin-dashboard-phone .web-actions-row .compact-action,
.shell.mode-admin-dashboard-phone .archive-section-actions .compact-action {
  width: 100%;
}

.shell.mode-admin-dashboard-phone .expected-trainee-body {
  overflow: visible;
}

.shell.mode-admin-dashboard-phone .expected-level-grid {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
  padding: 0;
}

.shell.mode-admin-dashboard-phone .expected-level-card {
  flex: initial;
}

.shell.mode-admin-dashboard-phone .expected-level-card-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.shell.mode-admin-dashboard-phone .expected-level-card-head span {
  text-align: left;
}

.shell.mode-admin-dashboard-phone .expected-level-metrics {
  grid-template-columns: 1fr;
}

.shell.mode-admin-dashboard-phone .expected-level-metrics p {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
}

.shell.mode-admin-dashboard-phone .expected-level-metrics em {
  grid-column: 1 / -1;
}

.shell.mode-admin-dashboard-phone .expected-block-details p {
  grid-template-columns: 38px minmax(0, 1fr);
}

.shell.mode-admin-dashboard-phone .expected-block-details em {
  grid-column: 2;
  text-align: left;
}

.shell.mode-admin-dashboard-phone .archive-msp-grid {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
  padding-bottom: 0;
}

.shell.mode-admin-dashboard-phone .archive-msp-card {
  min-width: 0;
}

.shell.mode-admin-dashboard-phone .archive-msp-actions,
.shell.mode-admin-dashboard-phone .archive-msp-editor-head,
.shell.mode-admin-dashboard-phone .archive-msp-editor-actions,
.shell.mode-admin-dashboard-phone .archive-msp-editor-top-actions,
.shell.mode-admin-dashboard-phone .summative-jury-row-actions {
  align-items: stretch;
  flex-direction: column;
}

.shell.mode-admin-dashboard-phone .archive-msp-actions button,
.shell.mode-admin-dashboard-phone .archive-msp-editor-actions button,
.shell.mode-admin-dashboard-phone .archive-msp-editor-top-actions button,
.shell.mode-admin-dashboard-phone .summative-jury-row-actions button {
  width: 100%;
}

.shell.mode-admin-dashboard-phone .archive-msp-editor-block-head,
.shell.mode-admin-dashboard-phone .archive-msp-learner-analysis,
.shell.mode-admin-dashboard-phone .archive-msp-editor-notes.final-notes,
.shell.mode-admin-dashboard-phone .summative-jury-grid,
.shell.mode-admin-dashboard-phone .summative-jury-texts,
.shell.mode-admin-dashboard-phone .mechanical-detail-grid,
.shell.mode-admin-dashboard-phone .mechanical-card-head,
.shell.mode-admin-dashboard-phone .mechanical-card-actions,
.shell.mode-admin-dashboard-phone .mechanical-qr,
.shell.mode-admin-dashboard-phone .mechanical-qr.large,
.shell.mode-admin-dashboard-phone .trainer-sheet-toolbar,
.shell.mode-admin-dashboard-phone .mechanical-sheet-toolbar,
.shell.mode-admin-dashboard-phone .mechanical-report-toolbar {
  display: grid;
  grid-template-columns: 1fr;
}

.shell.mode-admin-dashboard-phone .mechanical-card-actions .outline,
.shell.mode-admin-dashboard-phone .mechanical-report-actions .compact-action,
.shell.mode-admin-dashboard-phone .trainer-sheet-toolbar button,
.shell.mode-admin-dashboard-phone .mechanical-sheet-toolbar button {
  width: 100%;
}

.shell.mode-admin-dashboard-phone .mechanical-photo-gallery {
  grid-template-columns: 1fr;
}

.shell.mode-admin-dashboard-phone .mechanical-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shell.mode-admin-dashboard-phone .mechanical-photos img,
.shell.mode-admin-dashboard-phone .mechanical-photo-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.shell.mode-admin-dashboard-phone .web-table-head,
.shell.mode-admin-dashboard-phone .web-table-row,
.shell.mode-admin-dashboard-phone .summative-head,
.shell.mode-admin-dashboard-phone .summative-row {
  min-width: max-content;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  overflow-x: hidden !important;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .web-table-head {
  display: none;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .fctt-returns-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #dce3ec;
  border-left: 3px solid var(--sdis-blue);
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  overflow: hidden;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .fctt-returns-row:last-child {
  border-bottom: 1px solid #dce3ec;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .returns-trainee-cell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, 30%);
  grid-template-rows: auto;
  gap: 6px;
  align-items: center;
  padding-bottom: 1px;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .returns-trainee-cell strong {
  font-size: 16px;
  line-height: 1.05;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .returns-trainee-cell .compact-action {
  width: 100%;
  min-height: 30px;
  padding: 0 6px;
  font-size: 11px;
  white-space: nowrap;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .msp-chip {
  height: auto;
  min-height: 34px;
  gap: 1px;
  padding: 4px 3px;
  font-size: 9px;
  line-height: 1;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .msp-chip-title {
  width: 100%;
  min-width: 0;
  -webkit-line-clamp: 1;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .msp-chip small {
  display: block;
  width: 100%;
  font-size: 7px;
  line-height: 1;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell.mode-admin-dashboard-phone .fctt-returns-table .transversal-return-chip {
  grid-column: 1 / -1;
  min-height: 34px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-header {
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-brand {
  gap: 10px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-brand img {
  width: 48px;
  height: 62px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-brand p {
  font-size: 11px;
  line-height: 1.05;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-brand h1 {
  margin-top: 2px;
  font-size: 32px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-brand span {
  margin-top: 2px;
  font-size: 13px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-session {
  gap: 6px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-stage-badge {
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.25;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-logout {
  min-height: 38px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow-x: hidden;
  overscroll-behavior-x: auto;
  padding: 0 6px;
}

body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-tabs button,
body.admin-dashboard-phone-page .shell.mode-admin-dashboard-phone .web-tabs a {
  min-width: 0;
  min-height: 34px;
  justify-content: center;
  padding: 0 3px;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.shell.mode-phone > .panel,
.shell.mode-tablet > .panel {
  display: none;
}

.shell.mode-web {
  position: relative;
  grid-template-columns: minmax(0, 100%);
  align-items: start;
  justify-content: stretch;
  padding: 18px 0 0;
  background: var(--paper);
}

.shell.mode-web::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 305px;
  background-color: var(--sdis-blue);
  background-image:
    linear-gradient(90deg, rgba(47, 45, 135, .96) 0%, rgba(47, 45, 135, .84) 46%, rgba(47, 45, 135, .9) 100%),
    url("/static/img/cod2-ccfm-banner.jpg");
  background-position: center 43%;
  background-size: cover;
  z-index: 0;
}

.shell.mode-web > .device-switcher,
.shell.mode-web > .phone {
  position: relative;
  z-index: 1;
}

.shell.mode-web > .phone {
  width: 100%;
  height: auto;
  min-height: calc(100svh - 92px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell.mode-web > .phone > .statusbar,
.shell.mode-web > .panel {
  display: none;
}

.shell.mode-web > .phone > .app {
  height: auto;
  min-height: calc(100svh - 92px);
  background: transparent;
}

body.fctt-desktop-web-page .shell.mode-web,
body.fctt-desktop-web-page .shell.mode-web > .phone,
body.fctt-desktop-web-page .shell.mode-web > .phone > .app,
body.fctt-desktop-web-page .shell.mode-web .web-page,
body.fctt-desktop-web-page .shell.mode-web .web-main {
  max-height: none;
  overflow: visible;
  overflow-y: visible;
  overscroll-behavior-y: auto;
}

body.fctt-desktop-web-page {
  overflow-x: clip;
  overscroll-behavior-y: auto;
}

body.fctt-desktop-web-page .shell.mode-web {
  overflow-x: clip;
  overflow-y: visible;
}

.web-login-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  background: #eef3f8;
}

.web-login-panel {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(32px, 5vw, 72px);
  background: #fff;
  box-shadow: 10px 0 40px rgba(23, 32, 51, .08);
}

.web-login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.web-login-brand img {
  width: 62px;
  height: 80px;
  object-fit: contain;
}

.web-login-brand strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 900;
}

.web-login-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.web-login-title {
  display: grid;
  gap: 10px;
}

.web-login-title h1 {
  margin: 0;
  max-width: 440px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
}

.web-login-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

.web-login-form {
  max-width: 440px;
}

.web-login-form input {
  min-height: 58px;
  border-radius: 7px;
  background: #f9fbfd;
}

.web-login-form input[readonly] {
  background: #edf2f8;
}

.web-login-form .primary {
  min-height: 58px;
}

.web-login-visual {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background-color: var(--sdis-blue);
  background-image:
    linear-gradient(90deg, rgba(36, 32, 95, .92), rgba(48, 47, 134, .55)),
    url("/static/img/cod2-ccfm-banner.jpg");
  background-position: center;
  background-size: cover;
}

.web-login-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: var(--sdis-gold);
}

.web-login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.web-login-visual-copy p {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.web-login-visual-copy h2 {
  margin: 0;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 900;
}

.phone {
  overflow: hidden;
  width: min(100%, 390px);
  height: min(860px, calc(100svh - 56px));
  min-height: 720px;
  border: 10px solid #111;
  border-radius: 38px;
  background: var(--white);
  box-shadow: 0 20px 80px rgba(23, 32, 51, .22);
}

.phone,
.panel {
  min-width: 0;
}

.statusbar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 18px;
  color: #eef7ff;
  background: var(--sdis-blue);
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
}

.statusbar > span {
  min-width: 0;
  max-width: 100%;
}

.statusbar > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusbar > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 1 auto;
}

.trainer-access-reset {
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.app {
  height: calc(100% - 42px);
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow-x: hidden;
}

.app.busy {
  opacity: .72;
  pointer-events: none;
}

.top {
  padding: 17px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.compact-top {
  padding: 12px 18px 9px;
}

.mobile-top-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 0 10px;
  padding: 0 14px;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--sdis-blue);
  font-size: 15px;
  font-weight: 900;
}

.crumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.block-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
}

.student-start-name {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
}

.student-block-title {
  border: 2px solid #cfd7e5;
  border-left: 6px solid var(--sdis-blue);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.progress {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.student-progress {
  display: grid;
  align-items: stretch;
  gap: 7px;
}

.student-progress span {
  display: block;
}

.student-progress .bar {
  width: 100%;
  flex: none;
  height: 14px;
}

.student-progress-segments {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(22, minmax(0, 1fr));
  gap: 2px;
}

.student-progress-segments i {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: #dfe5ee;
}

.student-progress-segments i.filled {
  background: var(--sdis-blue);
}

.bar {
  height: 9px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf2;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.content {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  padding: 22px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.content.compact {
  gap: 14px;
  padding-bottom: 28px;
}

.briefing-content {
  padding-bottom: 128px;
  scroll-padding-bottom: 150px;
}

.briefing-content .phone-expected-blocks {
  margin-bottom: 10px;
}

.student-start-content {
  padding-bottom: 96px;
  scroll-padding-bottom: 118px;
}

.strong {
  font-weight: 800;
}

.center {
  text-align: center;
}

.start-title {
  margin: 0;
  font-size: 29px;
  line-height: 1.13;
  font-weight: 900;
}

.copy,
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.item-code {
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.item-text {
  margin: 0;
  font-size: 27px;
  line-height: 1.16;
  font-weight: 900;
}

.choices {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.choice {
  min-height: 68px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-align: left;
  padding: 0 18px;
}

.student-choice-footer {
  flex-direction: column;
  align-items: stretch;
  min-height: 136px;
}

.student-back-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.student-prev {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.student-choice-area {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.choice-help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.compact-choices {
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.compact-choices .choice {
  min-width: 0;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 5px 3px;
  text-align: center;
  line-height: 1;
}

.compact-choices .choice span {
  font-size: 22px;
  font-weight: 900;
}

.compact-choices .choice small {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, .95);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice:active,
.gauge button:active,
.secondary:active,
.primary:active,
.tile:active,
.outline:active {
  transform: translateY(1px);
  filter: brightness(.94);
}

.green { background: var(--green); }
.amber { background: var(--amber); }
.red { background: var(--red); }
.gray { background: var(--gray); }

.tile-grid,
.msp-grid {
  display: grid;
  gap: 10px;
}

.tile-grid {
  grid-template-columns: repeat(2, 1fr);
}

.msp-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tile {
  min-height: 86px;
  border: 2px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  padding: 8px;
}

.name-tile {
  display: grid;
  place-content: center;
  gap: 6px;
  line-height: 1.1;
}

.name-tile span,
.msp-tile span {
  display: block;
  overflow-wrap: anywhere;
}

.name-tile small,
.msp-tile small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.fctt-place-top {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid #dfe6f0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.fctt-place-top .crumb {
  margin-bottom: 6px;
  color: var(--teal);
  letter-spacing: .02em;
}

.fctt-place-top .block-title {
  font-size: 25px;
  letter-spacing: 0;
}

.fctt-place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fctt-place-meta span {
  max-width: 100%;
  border: 1px solid #d7e0eb;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fctt-place-content {
  background:
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 42%);
  padding: 16px 18px 18px;
}

.fctt-place-grid {
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fctt-place-tile {
  position: relative;
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid #d8e0ea;
  border-top: 5px solid var(--sdis-blue);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.fctt-place-tile:focus-visible,
.fctt-place-tile:hover {
  border-color: rgba(196, 154, 50, .75);
  border-top-color: var(--sdis-gold);
  box-shadow: 0 8px 22px rgba(48, 47, 134, .10);
}

.fctt-place-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--sdis-blue);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.name-tile .fctt-place-name {
  min-width: 0;
  display: -webkit-box;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.08;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.name-tile .fctt-place-note {
  min-width: 0;
  color: #667085;
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: .02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fctt-place-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  padding: 10px 18px max(12px, env(safe-area-inset-bottom));
  background: var(--sdis-blue);
}

.fctt-place-footer .compact-action {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.05;
  white-space: nowrap;
}

.fctt-place-footer [data-admin-mobile-dashboard] {
  grid-column: 1 / -1;
  min-height: 48px;
  border-color: #cfd7e5;
  color: var(--ink);
  background: #fff;
}

@media (max-width: 360px) {
  .fctt-place-content {
    padding: 12px 14px 16px;
  }

  .fctt-place-grid {
    gap: 8px;
  }

  .fctt-place-tile {
    min-height: 112px;
    gap: 6px;
    padding: 9px 7px;
  }

  .fctt-place-avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .name-tile .fctt-place-name {
    font-size: 13px;
  }
}

.tile.large {
  min-height: 84px;
  font-size: 20px;
}

.phone-start-actions {
  display: grid;
  gap: 10px;
}

.phone-sim-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.msp-tile {
  display: grid;
  place-content: center;
  gap: 5px;
  line-height: 1.05;
  padding: 8px 10px;
}

.msp-tile small {
  font-size: 10px;
  line-height: 1.05;
}

.msp-tile.ok {
  border-color: rgba(23, 138, 82, .35);
  border-left: 5px solid var(--green);
  background: #eefaf3;
}

.msp-tile.ready {
  border-color: rgba(192, 154, 69, .4);
  border-left: 5px solid var(--gold);
  background: #fff8e8;
}

.msp-tile.open {
  border-color: rgba(48, 47, 134, .34);
  border-left: 5px solid var(--sdis-blue);
  background: #f1f3ff;
}

.msp-tile.empty {
  border-left: 5px solid #d4dce9;
}

.footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
  flex-shrink: 0;
}

.footer.fctt-place-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
  min-height: 0;
  padding: 10px 18px max(12px, env(safe-area-inset-bottom));
  background: var(--sdis-blue);
}

.footer.fctt-place-footer .compact-action {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.05;
  white-space: nowrap;
}

.footer.fctt-place-footer [data-admin-mobile-dashboard] {
  grid-column: 1 / -1;
  min-height: 48px;
  border-color: #cfd7e5;
  color: var(--ink);
  background: #fff;
}

.student-start-footer {
  flex-wrap: nowrap;
}

.primary,
.secondary,
.outline {
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .08s ease, box-shadow .15s ease;
}

.primary {
  border-color: var(--sdis-blue);
  color: #fff;
  background: var(--sdis-blue);
}

.primary:disabled,
.secondary:disabled,
.outline:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.secondary {
  border-color: var(--gray);
  color: #fff;
  background: var(--gray);
}

.outline {
  border: 2px solid #cfd7e5;
  color: var(--ink);
  background: #fff;
}

.outline:hover,
.outline:focus-visible,
.tile:hover,
.compact-action:hover,
.compact-action:focus-visible,
.msp-chip:hover,
.msp-chip:focus-visible {
  border-color: var(--sdis-gold);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}

.danger-outline {
  border-color: #f1b9b9;
  color: #9b1c1c;
}

.mini {
  min-height: 48px;
  padding: 0 12px;
  font-size: 14px;
}

.link-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  padding: 12px;
}

input {
  min-height: 54px;
}

select {
  min-height: 54px;
  font-size: 16px;
  font-weight: 800;
  padding: 0 10px;
}

input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--sdis-blue);
}

.checkline {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  text-transform: none;
  color: var(--ink);
  font-size: 14px;
}

.checkline span {
  color: var(--ink);
}

.text-zone {
  min-height: 120px;
  resize: vertical;
  line-height: 1.35;
}

.form-row-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-field-input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: 900 20px/1.2 inherit;
}

.text-zone.tall {
  min-height: 260px;
  font-size: 20px;
}

.trainer-suggestions {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.trainer-suggestions-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.trainer-suggestions-head strong {
  color: var(--ink);
  font-size: 16px;
}

.trainer-suggestions-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trainer-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trainer-suggestion-chip {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.trainer-suggestion-chip:hover,
.trainer-suggestion-chip:focus-visible {
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: 0 0 0 3px rgba(48, 47, 134, 0.12);
}

.link-zone {
  min-height: 92px;
  font-size: 13px;
  word-break: break-all;
}

.gauge {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

.gauge button {
  min-height: 64px;
  border: 2px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.gauge button.selected,
.block-mark.selected {
  outline: 4px solid rgba(192, 154, 69, .38);
  outline-offset: 2px;
}

.feeling-slider-card {
  --feeling-value: 5;
  display: grid;
  gap: 16px;
  padding: 16px 14px 14px;
  border: 2px solid #d3dcea;
  border-radius: 8px;
  background: #fff;
}

.feeling-slider-card.selected {
  border-color: rgba(49, 47, 134, .55);
  box-shadow: 0 0 0 4px rgba(49, 47, 134, .11);
}

.feeling-slider-head,
.feeling-scale {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.feeling-slider-head span,
.feeling-scale span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feeling-slider-head span:last-child,
.feeling-scale span:last-child {
  text-align: right;
}

.feeling-slider-head output {
  min-width: 92px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f2f5fb;
  color: var(--ink);
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}

.feeling-slider-card.selected .feeling-slider-head output {
  background: #312f86;
  color: #fff;
}

.feeling-range {
  width: 100%;
  height: 48px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}

.feeling-range::-webkit-slider-runnable-track {
  height: 18px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 999px;
  background: linear-gradient(90deg, #cf2f2f 0%, #f0c44f 50%, #1f9b59 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
}

.feeling-range::-webkit-slider-thumb {
  width: 44px;
  height: 44px;
  margin-top: -14px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #312f86;
  box-shadow: 0 3px 10px rgba(17, 24, 39, .28);
  -webkit-appearance: none;
  appearance: none;
}

.feeling-range::-moz-range-track {
  height: 18px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 999px;
  background: linear-gradient(90deg, #cf2f2f 0%, #f0c44f 50%, #1f9b59 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
}

.feeling-range::-moz-range-thumb {
  width: 38px;
  height: 38px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #312f86;
  box-shadow: 0 3px 10px rgba(17, 24, 39, .28);
}

.qr-content {
  align-items: center;
}

.qr {
  width: min(270px, 86%);
  aspect-ratio: 1;
  border: 12px solid #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(23, 32, 51, .18);
}

.qr-open-button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.qr-open-button:focus-visible {
  outline: 4px solid rgba(192, 154, 69, .5);
  outline-offset: 4px;
  border-radius: 10px;
}

.trainer-qr-button {
  align-self: center;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 16, 28, .78);
}

.qr-modal-card {
  display: grid;
  gap: 14px;
  width: min(92vw, 620px);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.qr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qr-modal-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.qr-modal-head button {
  min-height: 44px;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 900;
}

.qr-modal-card img {
  width: min(80vw, 540px);
  aspect-ratio: 1;
  justify-self: center;
  border: 16px solid #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(23, 32, 51, .16);
}

.qr-modal-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.qr-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-modal-card {
  width: min(94vw, 920px);
}

.photo-modal-card img {
  width: auto;
  max-width: min(88vw, 860px);
  height: auto;
  max-height: 76vh;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  background: #f4f7fb;
}

.driving-balance-card {
  width: min(94vw, 760px);
  max-height: 86vh;
  overflow-y: auto;
}

.driving-balance-summary {
  display: grid;
  gap: 5px;
  border-left: 5px solid var(--sdis-gold);
  background: #fffaf0;
  padding: 10px 12px;
  text-align: left !important;
}

.driving-balance-summary span {
  color: var(--muted);
  font-size: 13px;
}

.driving-balance-list {
  display: grid;
  gap: 8px;
}

.driving-balance-row {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.driving-balance-row.no-ccf {
  border-left-color: var(--red);
  background: #fff7f7;
}

.driving-balance-row.under-target {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.driving-balance-row.over-target {
  border-left-color: var(--blue);
  background: #f4f8ff;
}

.driving-balance-row.target-ok {
  border-left-color: var(--green);
}

.driving-balance-row strong,
.driving-balance-row span,
.driving-balance-row em,
.driving-balance-row p {
  display: block;
}

.driving-balance-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

.driving-balance-row span,
.driving-balance-row em,
.driving-balance-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.driving-balance-row em {
  margin-top: 4px;
  color: var(--ink);
  font-style: normal;
}

.trainer-qr-sheet-card {
  width: min(96vw, 1120px);
  max-height: 92vh;
  overflow: auto;
}

.trainer-qr-sheet-actions > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trainer-qr-sheet {
  display: grid;
  gap: 18px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 22px;
  background: #f8fafc;
}

.trainer-qr-sheet header {
  display: grid;
  gap: 4px;
  text-align: center;
}

.trainer-qr-sheet h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}

.trainer-qr-sheet header span {
  color: var(--muted);
  font-weight: 900;
}

.trainer-qr-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.trainer-qr-sheet-item {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  text-align: center;
}

.trainer-qr-sheet-item img {
  width: min(100%, 180px);
  aspect-ratio: 1;
  justify-self: center;
  border: 8px solid #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .12);
}

.trainer-qr-sheet-item strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.trainer-qr-sheet-item span {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trainer-qr-sheet-item a {
  color: var(--sdis-blue);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.warning-text {
  margin: 0;
  border: 1px solid #f2c6c6;
  border-radius: 8px;
  background: #fff4f4;
  color: #8c1d25;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.success-text {
  margin: 0;
  border: 1px solid #a9d6b8;
  border-radius: 8px;
  background: #f0fff5;
  color: #166534;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.stage-confirm {
  margin: 0;
  border: 1px solid #d7c087;
  border-radius: 8px;
  background: #fffaf0;
  color: #755c18;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.brief-card,
.brief-metric,
.rank-row {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.brief-card.priority {
  border-left: 5px solid var(--sdis-gold);
  background: #fffaf0;
}

.briefing-group {
  display: grid;
  gap: 8px;
}

.briefing-group.warning {
  border-left: 5px solid var(--amber);
  background: #fffaf0;
}

.briefing-group.positive {
  border-left: 5px solid var(--green);
  background: #f3fbf7;
}

.briefing-group.question {
  border-left: 5px solid var(--teal);
  background: #f2fbfc;
}

.ai-briefing-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-left: 5px solid var(--sdis-blue);
  background: #f8fbff;
}

.ai-briefing-card small {
  display: block;
  color: #7b8495;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.ai-note-card {
  border-left: 5px solid var(--sdis-gold);
  background: #fffdf5;
}

.phone-trainee-situation {
  border-left: 5px solid var(--teal);
  background: #f2fbfc;
}

.phone-trainee-situation p {
  white-space: pre-line;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 850;
}

.phone-trainee-situation small {
  display: block;
  color: #66748a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.ai-note-card p {
  white-space: pre-line;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  margin-bottom: 0;
}

.expected-blocks {
  display: grid;
  gap: 8px;
  border-left: 5px solid var(--red);
  background: #fff8f8;
}

.expected-row {
  display: grid;
  gap: 4px;
  border: 1px solid #f1c7cd;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.expected-row b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.expected-row span {
  color: #8c1d25;
  font-size: 12px;
  font-weight: 900;
}

.phone-expected-blocks {
  gap: 10px;
  border-left: 5px solid var(--sdis-blue);
  background: #fbfdff;
}

.phone-expected-blocks > strong,
.phone-expected-context {
  display: block;
}

.phone-expected-blocks > strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.phone-expected-context {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.phone-expected-axis {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.phone-expected-axis strong {
  color: var(--sdis-blue);
  text-align: center;
}

.phone-expected-axis span:last-child {
  text-align: right;
}

.phone-expected-block-row {
  display: grid;
  gap: 7px;
  border: 1px solid #dce3ec;
  border-left: 5px solid #d4dce9;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.phone-expected-block-row > strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.phone-expected-block-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.phone-expected-block-row.ahead {
  border-left-color: #1e9a5a;
}

.phone-expected-block-row.ok {
  border-left-color: #2563eb;
}

.phone-expected-block-row.watch {
  border-left-color: #d89a18;
}

.phone-expected-block-row.late {
  border-left-color: #c02636;
}

.phone-expected-block-row.missing {
  border-left-color: #94a3b8;
}

.phone-expected-block-row.ahead .home-expected-track em {
  background: #1e9a5a;
}

.phone-expected-block-row.watch .home-expected-track em {
  background: #d89a18;
}

.phone-expected-block-row.late .home-expected-track em {
  background: #c02636;
}

.phone-expected-block-row.missing .home-expected-track em {
  background: #94a3b8;
}

.briefing-item {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.briefing-item.high {
  border-left: 5px solid var(--red);
}

.briefing-item.medium {
  border-left: 5px solid var(--amber);
}

.briefing-item.positive {
  border-left: 5px solid var(--green);
}

.briefing-item.info {
  border-left: 5px solid var(--teal);
}

.briefing-item b,
.brief-sources summary {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.briefing-item small {
  display: block;
  margin-top: 5px;
  color: #7b8495;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.briefing-item p {
  margin-top: 4px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.briefing-item-source {
  margin-top: 6px;
}

.briefing-item-source summary {
  width: max-content;
  color: #66748a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.brief-sources summary {
  cursor: pointer;
}

.briefing-details {
  display: grid;
  gap: 10px;
  background: #f8fafc;
}

.briefing-details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.briefing-details[open] summary {
  margin-bottom: 10px;
}

.brief-subsection {
  display: grid;
  gap: 8px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.brief-card strong,
.brief-subsection strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.brief-card p,
.brief-subsection p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.brief-metric {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 74px;
}

.brief-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-metric strong {
  margin-top: 4px;
  font-size: 24px;
}

.muted-small {
  color: var(--muted);
  font-size: 13px;
}

.skill-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.skill-row span,
.skill-row strong {
  font-size: 13px;
  font-weight: 900;
}

.skill-bar {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf2;
}

.skill-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.rank-row {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 10px;
  align-items: center;
}

.rank-row strong {
  display: block;
  font-size: 15px;
}

.rank-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.row-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.row-export-actions a {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd7e5;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  padding: 4px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.rank-row > span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2f7;
  font-size: 18px;
  font-weight: 900;
}

.rank-row.ahead > span {
  background: #e7f6ed;
  color: var(--green);
}

.rank-row.late > span {
  background: #fff0f2;
  color: var(--red);
}

.stat-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.stat-export-actions .outline {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  text-align: center;
  font-size: 12px;
}

.summative-head,
.summative-row {
  display: grid;
  grid-template-columns: 58px repeat(7, minmax(34px, 1fr));
  gap: 6px;
  align-items: center;
}

.summative-head {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.summative-row {
  margin-top: 7px;
  font-size: 12px;
}

.decision-dot {
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.decision-dot.green {
  background: #167a4a;
}

.decision-dot.amber {
  background: #bd7c10;
}

.decision-dot.red {
  background: #b42318;
}

.decision-dot.gray {
  background: #6b7280;
}

.decision-dot.empty {
  border: 1px dashed #cfd7e5;
  color: var(--muted);
  background: #f8fafc;
}

.wait-screen {
  align-items: center;
  justify-content: center;
}

.pulse {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf4f6;
  color: var(--teal);
  text-align: center;
  padding: 24px;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 12px #d7edf0;
}

.trainer-block {
  gap: 10px;
}

.fctt-msp-header {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.top.compact-top.fctt-msp-header {
  padding: 8px 12px 6px;
}

.fctt-msp-header .crumb {
  margin-bottom: 1px;
  font-size: 10px;
}

.fctt-msp-header .block-title {
  font-size: 18px;
  line-height: 1.05;
}

.fctt-msp-subtitle {
  display: none;
}

.fctt-msp-progress {
  margin-top: 1px;
  gap: 7px;
  font-size: 11px;
  line-height: 1;
}

.fctt-msp-progress .bar {
  height: 5px;
}

.fctt-msp-onepage {
  gap: 6px;
  padding: 7px 8px 72px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-bottom: 76px;
}

.fctt-msp-block-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 34%);
  gap: 5px 6px;
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 2px solid #d7dee9;
  border-left: 4px solid var(--sdis-blue);
  border-radius: 7px;
  background: #fff;
  padding: 7px;
  overflow: visible;
}

.fctt-msp-block-card.is-complete {
  border-color: rgba(23, 138, 82, .36);
  border-left-color: var(--green);
  background: #f8fffb;
}

.fctt-msp-block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-column: 1;
  grid-row: 1;
  gap: 4px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.fctt-msp-block-head > div {
  min-width: 0;
}

.fctt-msp-block-head span {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.fctt-msp-block-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: normal;
}

.fctt-msp-block-head h3 strong {
  color: var(--sdis-blue);
}

.fctt-msp-block-head em {
  display: none;
}

.fctt-msp-block-card.is-complete .fctt-msp-block-head em {
  background: #e9f8f0;
  color: var(--green);
}

.fctt-msp-competency {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 6px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fctt-msp-block-choices {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.fctt-msp-block-choices.choices-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fctt-msp-block-choices.choices-4 {
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mark.block-mark.fctt-block-choice {
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 3px;
  overflow: hidden;
}

.fctt-block-choice span {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
}

.fctt-block-choice small {
  display: none;
}

.fctt-msp-detail {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.fctt-msp-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 3px 7px;
  color: var(--sdis-blue);
  font-weight: 950;
  font-size: 11px;
  cursor: pointer;
  list-style: none;
}

.fctt-msp-detail summary::-webkit-details-marker {
  display: none;
}

.fctt-msp-detail summary strong {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.fctt-msp-detail[open] summary {
  border-bottom: 1px solid #e5ebf3;
  background: #f8fafc;
}

.fctt-msp-footer {
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 52px;
  padding: 6px 8px;
  gap: 7px;
}

.fctt-msp-footer button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 8px;
  font-size: 14px;
}

@media (max-width: 380px) {
  .fctt-msp-header .block-title {
    font-size: 16px;
  }

  .fctt-msp-block-card {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .fctt-msp-block-head em {
    display: none;
  }

  .fctt-msp-block-head h3 {
    font-size: 12px;
  }

  .fctt-msp-block-choices {
    gap: 4px;
  }

  .fctt-block-choice small {
    display: none;
  }
}

.trainer-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.trainer-item strong {
  display: block;
  color: var(--teal);
  font-size: 14px;
}

.trainer-item p {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.answer-pill {
  min-width: 44px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.block-choice-footer {
  align-items: center;
}

.block-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.mark.block-mark {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.done {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
  text-align: center;
}

.done h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.1;
}

.done p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.student-lic-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.summary-card,
.success-box {
  display: grid;
  gap: 6px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
  text-align: left;
}

.summary-card strong,
.success-box strong {
  color: var(--ink);
  font-size: 15px;
}

.summary-card span,
.success-box span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.success-box {
  border-color: #b9dfcc;
  background: #f2fbf6;
}

.success-box strong {
  color: var(--green);
}

.final-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dual-phone-sim {
  min-height: calc(100svh - 38px);
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 14px;
  padding: 0;
}

.sim-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px;
}

.sim-title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sim-title-row h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.sim-phones {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 390px));
  justify-content: center;
  align-items: start;
  gap: 16px;
}

.sim-phone-frame {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 8px solid #111;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(23, 32, 51, .2);
}

.sim-qr-demo-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, .12);
}

.sim-phone-status {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: #eef7ff;
  background: #0b4d83;
  font-size: 12px;
  font-weight: 900;
}

.sim-screen {
  height: min(74svh, 780px);
  min-height: 640px;
  max-height: 780px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}

.sim-real-phone {
  gap: 0;
  padding: 0;
}

.sim-real-phone > .top {
  flex: none;
}

.sim-real-phone > .content {
  flex: 1;
  min-height: 0;
}

.sim-real-phone > .footer {
  position: static;
  flex: none;
}

.sim-real-phone .tile-grid,
.sim-real-phone .msp-grid {
  grid-template-columns: 1fr;
}

.sim-real-phone .tile,
.sim-real-phone .tile.large {
  min-height: 70px;
  font-size: 16px;
}

.sim-phones-mechanical {
  grid-template-columns: minmax(300px, 360px) minmax(320px, 390px);
}

.sim-mechanical-qr-screen {
  justify-content: start;
  text-align: left;
}

.sim-mechanical-qr-screen .trainer-qr-button {
  align-self: center;
  width: min(100%, 245px);
  aspect-ratio: 1;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.sim-mechanical-qr-screen .trainer-qr-button .qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sim-mechanical-public-demo .content {
  gap: 12px;
}

.sim-initial-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sim-initial-photo-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 7px;
}

.sim-initial-photo-card strong,
.sim-initial-photo-card span {
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.sim-initial-photo-card strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.sim-initial-photo-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.sim-initial-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  border: 1px solid #cfd7e5;
  background:
    linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,0) 42%),
    linear-gradient(160deg, #b7c4d3 0%, #e6ebf1 42%, #54616e 43%, #343b43 53%, #9ba8b5 54%, #f2f4f7 100%);
}

.sim-initial-photo-2 {
  background:
    linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,0) 44%),
    linear-gradient(150deg, #d7dde5 0%, #eef2f5 35%, #6e7882 36%, #303841 52%, #c6ced7 53%, #fff 100%);
}

.sim-initial-photo-3 {
  background:
    linear-gradient(135deg, rgba(255,255,255,.36), rgba(255,255,255,0) 45%),
    linear-gradient(165deg, #9aa8b5 0%, #dfe5ec 48%, #4a5562 49%, #2f3740 63%, #eef1f4 64%, #fafafa 100%);
}

.sim-initial-photo-4 {
  background:
    linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,0) 40%),
    linear-gradient(155deg, #cdd5de 0%, #f6f8fa 46%, #687684 47%, #303741 60%, #b3bfca 61%, #fff 100%);
}

.sim-demo-dashboard {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sim-demo-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
}

.sim-demo-card h3 {
  font-size: 17px;
  line-height: 1.12;
}

.sim-progress-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.sim-progress-step {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  background: #f9fbfe;
  text-align: center;
}

.sim-progress-step.ok {
  border-color: #bfe7d2;
  background: #eefaf4;
}

.sim-progress-step.active {
  border-color: #b7d5f6;
  background: #eff7ff;
}

.sim-progress-step strong,
.sim-expected-row strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.1;
}

.sim-progress-step span,
.sim-expected-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sim-expected-list {
  display: grid;
  gap: 9px;
}

.sim-expected-row {
  display: grid;
  gap: 6px;
}

.sim-expected-row > div:first-child {
  display: grid;
  gap: 2px;
}

.sim-deviation-bar {
  --sim-delta: 0%;
  position: relative;
  height: 18px;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff0f0 0%, #f6f8fb 50%, #effaf4 100%);
}

.sim-deviation-bar i {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 3px;
  height: 26px;
  border-radius: 999px;
  background: #312f86;
  transform: translateX(-50%);
}

.sim-deviation-bar b {
  position: absolute;
  left: calc(50% + clamp(-44%, var(--sim-delta), 44%));
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #c09a45;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .22);
  transform: translate(-50%, -50%);
}

.sim-screen h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

.sim-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.sim-safe-note {
  padding: 10px 12px;
  border: 1px solid #e7d19b;
  border-left: 4px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink) !important;
}

.sim-off {
  justify-content: center;
  background: #eff3f8;
  text-align: center;
}

.sim-brief,
.sim-items {
  display: grid;
  gap: 8px;
}

.sim-brief p,
.sim-items div {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px;
}

.sim-qr {
  align-self: center;
  width: min(245px, 85%);
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .16);
}

.pulse.small {
  width: 178px;
  height: 178px;
  align-self: center;
  font-size: 19px;
}

.sim-block h3 {
  font-size: 20px;
}

.sim-items div {
  display: grid;
  grid-template-columns: 48px 1fr 38px;
  gap: 7px;
  align-items: center;
}

.sim-items strong {
  color: var(--teal);
  font-size: 12px;
}

.sim-items span {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.sim-items b {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eef2f7;
  font-size: 12px;
}

.sim-mark-row,
.sim-answer-row {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sim-mark-row button,
.sim-answer-row button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.sim-student-item h3 {
  border: 2px solid #cfd7e5;
  border-left: 6px solid var(--sdis-blue);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  font-size: 18px;
}

.sim-vehicle-box {
  width: 100%;
  text-align: left;
}

.sim-mechanical-form {
  text-align: left;
}

.sim-mechanical-form .text-zone.tall {
  min-height: 112px;
}

.sim-mechanical-photo {
  width: min(100%, 260px);
  max-height: 220px;
  align-self: center;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
}

.stage-box {
  margin: 18px 24px 0;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.stage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.stage-row .outline {
  min-height: 54px;
}

.stage-session-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.stage-session-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-session-form input {
  min-height: 44px;
  border: 2px solid #d4dce9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
  text-transform: none;
}

.stage-lock {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.new-stage-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.web-page {
  overflow: hidden;
  width: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.web-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  color: #fff;
  padding: 22px 28px;
  border-bottom: 5px solid var(--sdis-gold);
}

.web-header::before {
  content: none;
}

.web-header > * {
  position: relative;
  z-index: 1;
}

.web-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.web-brand img {
  width: 76px;
  height: 98px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .22));
}

.web-brand p,
.web-brand h1,
.web-brand span {
  margin: 0;
}

.web-brand p {
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.web-brand h1 {
  margin-top: 4px;
  font-size: 46px;
  line-height: .95;
}

.web-brand span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .92);
  font-size: 17px;
  font-weight: 800;
}

.web-session {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: rgba(255, 255, 255, .9);
}

.web-stage-badge {
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .94);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.web-logout {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
}

.web-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1px solid #dce3ec;
  background: #fff;
  padding: 0 28px;
}

.web-tabs button,
.web-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.web-tabs button.active,
.web-tabs a.active {
  border-bottom-color: var(--sdis-gold);
  color: var(--sdis-blue);
}

.web-tabs .web-tabs-mechanical {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  justify-content: center;
  min-width: 58px;
  min-height: 40px;
  margin-left: auto;
  border: 1px solid #d1d9e6;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 51, .08);
  color: var(--sdis-blue);
  padding: 0 15px;
  font-size: 14px;
  line-height: 1;
}

.web-tabs .web-tabs-mechanical.active {
  border-color: var(--sdis-gold);
  background: #fffaf0;
  box-shadow: inset 0 -3px 0 var(--sdis-gold), 0 8px 18px rgba(23, 32, 51, .08);
}

.web-tabs .web-tabs-mechanical.has-alert::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--sdis-red);
  box-shadow: 0 0 0 4px rgba(190, 24, 24, .14);
}

.web-main {
  background: #fff;
  padding: 24px 28px 30px;
}

.web-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rp-mobile-hub {
  display: none;
}

.rp-mobile-title h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.08;
}

.rp-mobile-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rp-mobile-kpis article {
  min-width: 0;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.rp-mobile-kpis span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rp-mobile-kpis strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.rp-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.web-card,
.web-table-card,
.web-stage-list article {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.web-card.wide {
  grid-column: span 4;
}

.web-card h2,
.web-card h3,
.web-section-head h2 {
  margin: 0;
}

.web-card p {
  color: var(--muted);
  line-height: 1.45;
}

.stage-diagnostic {
  margin-top: 10px;
  border-left: 4px solid var(--sdis-gold);
  background: #fffaf0;
  color: var(--ink) !important;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 900;
}

.web-eyebrow {
  margin: 0 0 8px !important;
  color: var(--teal) !important;
  font-size: 12px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.web-card.metric {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.web-card.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.web-card.metric strong {
  color: var(--sdis-blue);
  font-size: 38px;
  line-height: 1;
}

.web-briefing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.web-briefing-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.web-briefing-profile .ai-briefing-card {
  margin-top: 12px;
}

.web-briefing-generation {
  display: grid;
  gap: 12px;
  border-left: 5px solid #dce3ec;
}

.web-briefing-generation.latest {
  border-left-color: var(--sdis-gold);
  background: #fffdf5;
}

.web-briefing-generation.pending {
  border-left-color: var(--sdis-blue);
  background: #f8fbff;
}

.web-briefing-generation.error {
  border-left-color: var(--red);
  background: #fff8f8;
}

.web-briefing-generation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.web-briefing-generation-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.web-briefing-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
}

.web-briefing-summary.single {
  grid-template-columns: minmax(0, 1fr);
}

.narrative-summary-card {
  border-left: 5px solid var(--sdis-gold);
  background: #fffdf5;
}

.narrative-summary-card p {
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  margin: 8px 0 0;
  white-space: pre-line;
}

.web-briefing-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.web-briefing-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.preparation-grid {
  align-items: start;
}

.preparation-accordion {
  display: grid;
  gap: 12px;
}

.prep-details {
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .05);
  overflow: hidden;
}

.prep-details summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.prep-details summary::-webkit-details-marker {
  display: none;
}

.prep-details summary span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--sdis-blue);
  color: #fff;
  font-weight: 950;
}

.prep-details summary strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.prep-details summary em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.prep-details[open] summary {
  border-bottom: 1px solid #dce3ec;
  background: #f8fafc;
}

.prep-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.prep-panel > article,
.prep-note {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.prep-note {
  border-left: 5px solid var(--sdis-gold);
  background: #fffaf0;
}

.prep-note h3,
.prep-panel h3 {
  margin: 0 0 8px;
}

.prep-note p:last-child,
.prep-panel article p:last-child {
  margin-bottom: 0;
}

.prep-save {
  justify-self: stretch;
  margin-top: 4px;
}

.preparation-contacts-form {
  display: grid;
  gap: 12px;
}

.preparation-contact-list {
  display: grid;
  gap: 10px;
}

.preparation-contact-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(160px, 1fr) minmax(96px, auto);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
}

.preparation-contact-row label {
  display: grid;
  gap: 6px;
}

.preparation-contact-actions {
  display: grid;
  grid-template-columns: minmax(160px, max-content) minmax(220px, 1fr);
  gap: 10px;
}

.preparation-memo-form {
  display: grid;
  gap: 10px;
}

.preparation-day-memo {
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.preparation-day-memo summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  list-style: none;
}

.preparation-day-memo summary::-webkit-details-marker {
  display: none;
}

.preparation-day-memo[open] summary {
  border-bottom: 1px solid #dce3ec;
  background: #f8fafc;
}

.preparation-day-memo summary strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.preparation-day-memo summary span {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.preparation-day-memo label {
  display: grid;
  gap: 7px;
  padding: 14px 14px 8px;
}

.preparation-day-memo textarea {
  min-height: 96px;
  resize: vertical;
}

.prep-add-point {
  justify-self: start;
  margin: 0 14px 10px;
}

.preparation-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 4px 14px 14px;
  color: var(--ink);
  line-height: 1.35;
}

.preparation-check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
  font-weight: 800;
}

.preparation-check-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.preparation-check-item input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--sdis-blue);
}

.preparation-check-item span {
  min-width: 0;
}

.preparation-point-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preparation-edit-point,
.preparation-delete-point {
  min-height: 34px;
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.preparation-edit-point {
  border: 1px solid #cfd7e5;
  color: var(--sdis-blue);
}

.preparation-delete-point {
  border: 1px solid #f0b8bc;
  color: #a9222d;
}

.preparation-point-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.preparation-point-editor label {
  padding: 0;
}

.preparation-point-editor textarea {
  min-height: 74px;
}

.preparation-point-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.preparation-check-item.is-editing .preparation-check-main,
.preparation-check-item.is-editing .preparation-point-actions {
  display: none;
}

.preparation-check-item.is-checked {
  color: var(--muted);
  background: #f3f6fa;
}

.preparation-check-item.is-checked span {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.prep-qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px minmax(160px, 220px);
  gap: 14px;
  align-items: center;
}

.prep-qr-card p {
  margin: 0;
}

.prep-qr-preview img {
  width: 112px;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .14);
}

.prep-qr-actions {
  display: grid;
  gap: 8px;
}

.source-inbox {
  margin-top: 10px;
}

.map-route-upload {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.map-route-upload .wide {
  grid-column: 1 / -1;
}

.map-route-upload .prep-save {
  grid-column: 1 / -1;
}

.map-route-color input[type="color"] {
  min-height: 48px;
  padding: 4px;
}

.map-route-list {
  display: grid;
  gap: 10px;
}

.map-route-card,
.map-route-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--route-color, var(--sdis-blue));
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.map-route-card > div,
.map-route-empty {
  min-width: 0;
}

.map-route-card strong,
.map-route-empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.map-route-card span,
.map-route-empty span,
.map-route-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.map-route-card p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.35;
}

.vehicle-assignment-card form {
  display: grid;
  gap: 16px;
}

.vehicle-import-box {
  display: grid;
  gap: 10px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.vehicle-scenario-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px 14px;
}

.vehicle-scenario-box strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.vehicle-scenario-box span {
  color: var(--sdis-blue);
  font-size: 15px;
  font-weight: 950;
}

.vehicle-import-box h4 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.stage-days-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 10px;
}

.stage-day-box {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  margin: 0;
  padding: 10px;
  background: #fbfcff;
}

.stage-day-box legend {
  padding: 0 4px;
  color: var(--sdis-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.vehicle-assignment-wrap {
  overflow-x: auto;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
}

.vehicle-assignment-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.trainer-planning-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding-bottom: 6px;
  scrollbar-gutter: stable;
}

.trainer-planning-wrap::-webkit-scrollbar {
  height: 14px;
}

.trainer-planning-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf2f7;
}

.trainer-planning-wrap::-webkit-scrollbar-thumb {
  border: 3px solid #edf2f7;
  border-radius: 999px;
  background: var(--sdis-blue);
}

.trainer-planning-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.trainer-col-active {
  width: 72px;
}

.trainer-col-qr {
  width: 74px;
}

.trainer-col-role {
  width: 152px;
}

.trainer-col-matricule {
  width: 112px;
}

.trainer-col-grade,
.trainer-col-name,
.trainer-col-first {
  width: 124px;
}

.trainer-col-note {
  width: 178px;
}

.trainer-col-day {
  width: 78px;
}

.trainer-planning-table th,
.trainer-planning-table td {
  border-bottom: 1px solid #dce3ec;
  border-right: 1px solid #dce3ec;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

.trainer-planning-table th {
  background: #eaf3ff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.trainer-planning-table th strong,
.trainer-planning-table th span {
  display: block;
}

.trainer-planning-table th span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
}

.trainer-planning-table tbody tr:nth-child(odd) td {
  background: #f8fafc;
}

.trainer-planning-table input,
.trainer-planning-table select {
  min-height: 40px;
  padding: 6px 8px;
  font-size: 13px;
}

.trainer-role-select {
  width: 100%;
  font-weight: 800;
}

.trainer-qr-cell {
  text-align: center;
  white-space: nowrap;
}

.trainer-mini-qr {
  width: 46px;
  height: 46px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  display: block;
  margin: 0 auto 4px;
}

.trainer-mini-qr img {
  width: 100%;
  height: 100%;
  display: block;
}

.trainer-qr-download {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.trainer-qr-empty {
  color: var(--muted);
  font-weight: 900;
}

.trainer-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.trainer-sheet-toolbar div {
  display: grid;
  gap: 2px;
}

.trainer-sheet-toolbar strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.trainer-sheet-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mechanical-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.mechanical-sheet-toolbar div {
  display: grid;
  gap: 2px;
}

.mechanical-sheet-toolbar strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.mechanical-sheet-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.mechanical-report-toolbar {
  align-items: stretch;
}

.mechanical-sheet-toolbar .mechanical-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.mechanical-report-actions .compact-action {
  min-width: 174px;
}

.mechanical-panel-content.mechanical-sheet-toolbar {
  border: 0;
  border-top: 1px solid #dce3ec;
  border-radius: 0;
}

.mechanical-daily-check-content {
  display: grid;
  gap: 10px;
  border-top: 1px solid #dce3ec;
  padding: 12px;
}

.mechanical-daily-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mechanical-daily-tabs button {
  min-height: 46px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.mechanical-daily-tabs button.active {
  border-color: var(--sdis-blue);
  background: var(--sdis-blue);
  color: #fff;
}

.mechanical-daily-day,
.mechanical-daily-asset {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.mechanical-daily-day > header,
.mechanical-daily-asset > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.mechanical-daily-day > header {
  background: #f8fafc;
  color: var(--sdis-blue);
  cursor: default;
}

.mechanical-daily-day > header small,
.mechanical-daily-asset > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.mechanical-daily-assets {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.mechanical-daily-asset-body {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #e8edf4;
  padding: 12px;
}

.mechanical-daily-asset-body > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mechanical-daily-asset-body strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.mechanical-daily-asset-body span,
.mechanical-daily-asset-body p,
.mechanical-daily-blank-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mechanical-daily-asset-body p {
  margin: 4px 0 0;
}

.mechanical-daily-blank-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px dashed #cfd8e5;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.mechanical-daily-blank-actions > div:first-child {
  display: grid;
  gap: 2px;
}

.status-ok {
  color: #168257 !important;
}

.status-muted {
  color: #7b8495 !important;
}

.table-scroll-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.vehicle-assignment-table th,
.vehicle-assignment-table td {
  border-bottom: 1px solid #dce3ec;
  border-right: 1px solid #dce3ec;
  padding: 9px;
  text-align: center;
  vertical-align: middle;
}

.vehicle-assignment-table th {
  background: #fffca8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.vehicle-assignment-table th strong,
.vehicle-assignment-table th span {
  display: block;
}

.vehicle-assignment-table th span {
  margin-top: 4px;
  font-size: 12px;
}

.vehicle-assignment-table tbody tr:nth-child(odd) td {
  background: #f8fafc;
}

.vehicle-assignment-table input,
.vehicle-assignment-table select {
  min-height: 42px;
  padding: 6px 8px;
  font-size: 14px;
}

.vehicle-assignment-table input[type="number"] {
  width: 72px;
  text-align: center;
}

.vehicle-day-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  font-weight: 950;
}

.vehicle-day-toggle input {
  min-height: auto;
  accent-color: var(--sdis-blue);
}

.vehicle-active-toggle {
  min-width: 74px;
}

.import-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.import-result {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px 14px;
}

.import-result strong {
  color: var(--ink);
}

.import-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.trainee-edit-list,
.foad-progress-list,
.msp-settings-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.trainee-edit-details {
  border: 1px solid #dce3ec;
  border-left: 5px solid transparent;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.trainee-edit-details > summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.trainee-edit-details > summary::-webkit-details-marker {
  display: none;
}

.trainee-edit-details > summary > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--sdis-blue);
  font-weight: 950;
}

.trainee-edit-summary-main {
  min-width: 0;
}

.trainee-edit-summary-main strong,
.trainee-edit-summary-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trainee-edit-summary-main strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.trainee-edit-summary-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.trainee-edit-details > summary em {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

.trainee-edit-details > summary em.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.trainee-edit-details > summary em.is-warning {
  background: #fffbeb;
  color: #a16207;
}

.trainee-edit-details[open] > summary {
  border-bottom: 1px solid #dce3ec;
  background: #f8fafc;
}

.trainee-edit-details[open] {
  border-left-color: var(--sdis-gold);
}

.trainee-edit-row,
.foad-progress-row,
.msp-setting-row {
  display: grid;
  grid-template-columns: 72px minmax(190px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f9fbfd;
  padding: 10px;
}

.trainee-edit-details .trainee-edit-row {
  border: 0;
  border-radius: 0;
  margin: 0;
}

.foad-progress-row {
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 160px);
}

.foad-progress-row > div {
  min-width: 0;
}

.foad-progress-row > div strong,
.foad-progress-row > div span {
  display: block;
}

.foad-progress-row > div span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.trainee-active {
  align-self: center;
  min-height: 44px;
}

.msp-setting-row {
  grid-template-columns: 72px minmax(220px, 1fr) minmax(180px, 240px) minmax(190px, .8fr);
  align-items: center;
}

.msp-setting-row > strong {
  color: var(--sdis-blue);
  font-size: 15px;
}

.msp-setting-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.web-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.web-actions-row .primary,
.web-actions-row .outline {
  min-height: 44px;
}

.web-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.assistant-section-head {
  align-items: center;
}

.assistant-status-pill {
  border: 1px solid #dce3ec;
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.assistant-status-pill.ready {
  border-color: rgba(44, 132, 137, .28);
  background: rgba(44, 132, 137, .09);
  color: var(--teal);
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
}

.assistant-question-card,
.assistant-answer-card {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.assistant-question-card {
  display: grid;
  gap: 14px;
}

.assistant-form {
  display: grid;
  gap: 12px;
}

.assistant-form label {
  display: grid;
  gap: 7px;
}

.assistant-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.assistant-form textarea {
  min-height: 142px;
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  resize: vertical;
}

.assistant-suggestions {
  display: grid;
  gap: 8px;
}

.assistant-suggestions .compact-action {
  justify-content: flex-start;
  min-height: 40px;
  padding-inline: 12px;
  text-align: left;
  white-space: normal;
}

.assistant-answer-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  border-left: 5px solid var(--sdis-gold);
  background: #fffdf7;
}

.assistant-answer-card.empty,
.assistant-answer-card.loading {
  align-content: center;
  border-left-color: #dce3ec;
  background: #f8fafc;
}

.assistant-answer-card.error {
  border-left-color: var(--red);
  background: #fff8f8;
}

.assistant-answer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.assistant-answer-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.assistant-answer-head > span {
  border: 1px solid #dce3ec;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.assistant-answer-text {
  display: grid;
  gap: 8px;
}

.assistant-answer-text p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.48;
}

.assistant-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.assistant-topic-list span,
.assistant-source-list span {
  border: 1px solid rgba(48, 47, 134, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--sdis-blue);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.assistant-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  border-top: 1px solid #eadfbd;
  padding-top: 10px;
}

.assistant-source-list strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.web-table-card {
  overflow-x: auto;
}

.web-table-head,
.web-table-row {
  display: grid;
  grid-template-columns: minmax(176px, 1.35fr) repeat(9, minmax(86px, 1fr));
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.web-table-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0 0 8px;
  border-bottom: 1px solid #e5eaf1;
}

.web-table-row {
  padding: 10px 0;
  border-bottom: 1px solid #edf1f6;
}

.web-table-row:last-child {
  border-bottom: 0;
}

.returns-trainee-cell {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.returns-trainee-cell strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.returns-trainee-cell .compact-action {
  width: 100%;
  min-height: 38px;
}

.msp-chip {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  height: 64px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 2px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.08;
  padding: 6px 6px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.transversal-return-chip {
  border-style: dashed;
}

.msp-chip-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.msp-chip small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  min-height: 11px;
  text-transform: uppercase;
}

.msp-chip.ok {
  border-color: #b9dfcc;
  background: #f2fbf6;
}

.msp-chip.ready {
  border-color: #b9d4f3;
  background: #f2f7ff;
}

.msp-chip.open {
  border-color: #f0d39c;
  background: #fffaf0;
}

.compact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.web-stage-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.web-main .stage-box {
  margin: 0;
}

.stage-home-card {
  grid-column: 1 / -1;
  border: 2px solid rgba(182, 146, 66, .65);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 58%);
}

.stage-home-card .stage-box {
  border: 2px solid #cfd8e6;
  background: #fff;
}

.terrain-network-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  border: 2px solid rgba(49, 47, 134, .22);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}

.terrain-network-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.terrain-network-address {
  display: grid;
  gap: 4px;
  min-width: min(100%, 330px);
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.terrain-network-address span,
.terrain-network-qr span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.terrain-network-address strong {
  color: var(--sdis-blue);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.terrain-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.terrain-network-qr {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.terrain-network-qr img {
  width: 120px;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .12);
}

.terrain-network-qr strong,
.terrain-network-qr span {
  display: block;
}

.terrain-network-qr strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.terrain-network-qr span {
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.terrain-network-actions {
  margin-top: -2px;
}

.mechanical-alert-card {
  display: grid;
  gap: 14px;
}

.home-readiness-section {
  grid-column: span 4;
}

.readiness-body {
  gap: 12px;
}

.readiness-status {
  display: grid;
  gap: 4px;
  border: 1px solid #dce3ec;
  border-left: 6px solid #d89a18;
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px 14px;
}

.readiness-status.ready {
  border-left-color: #1e9a5a;
  background: #f0fff5;
}

.readiness-status strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.readiness-status span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}

.readiness-list {
  display: grid;
  gap: 8px;
}

.readiness-list.compact {
  margin-top: 10px;
}

.readiness-item {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dce3ec;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.readiness-item.critical {
  border-left-color: #c02636;
  background: #fff7f7;
}

.readiness-item.warning {
  border-left-color: #d89a18;
  background: #fffaf0;
}

.readiness-item.ok {
  border-left-color: #1e9a5a;
  background: #f8fffb;
}

.readiness-item > span {
  color: var(--sdis-blue);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.readiness-item.critical > span {
  color: #9f1239;
}

.readiness-item.warning > span {
  color: #8a5b00;
}

.readiness-item.ok > span {
  color: #166534;
}

.readiness-item strong,
.readiness-item p {
  display: block;
}

.readiness-item strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.readiness-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.readiness-ok-details {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.readiness-ok-details summary {
  cursor: pointer;
  color: var(--sdis-blue);
  font-weight: 950;
}

.mechanical-alert-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.mechanical-alert-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.mechanical-alert-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.mechanical-alert-list {
  display: grid;
  gap: 8px;
}

.mechanical-alert-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.mechanical-alert-row.latest {
  border-color: rgba(190, 24, 24, .28);
  background: #fff7f7;
}

.mechanical-alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.mechanical-alert-row.latest .mechanical-alert-dot {
  background: var(--sdis-red);
  box-shadow: 0 0 0 5px rgba(190, 24, 24, .12);
}

.mechanical-alert-row strong,
.mechanical-alert-row p,
.mechanical-alert-row small {
  display: block;
}

.mechanical-alert-row strong {
  color: var(--sdis-blue);
  font-size: 15px;
  line-height: 1.15;
}

.mechanical-alert-row p {
  margin: 4px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.mechanical-alert-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.macbook-backup-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.macbook-backup-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.macbook-backup-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.macbook-backup-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.macbook-backup-status {
  display: grid;
  gap: 7px;
}

.macbook-backup-actions .primary {
  min-width: min(100%, 360px);
}

.admin-security-card {
  display: grid;
  gap: 10px;
}

.admin-trainer-table-card {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  overflow-x: auto;
}

.admin-trainer-head,
.admin-trainer-row {
  display: grid;
  grid-template-columns: 86px minmax(190px, 1.2fr) minmax(130px, .8fr) 110px minmax(120px, .7fr) minmax(120px, .7fr) minmax(190px, 1fr) minmax(150px, .9fr) minmax(210px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 1400px;
}

.admin-trainer-head {
  background: #eaf2fb;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 12px 14px;
}

.admin-trainer-row {
  padding: 12px 14px;
  border-top: 1px solid #e6edf6;
}

.admin-trainer-row.inactive {
  background: #f7f8fb;
  color: #7b8495;
}

.admin-select {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-select input {
  width: 20px;
  height: 20px;
  accent-color: var(--sdis-blue);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-rp-shortcut-panel {
  gap: 14px;
}

.admin-shortcut-grid {
  display: grid;
  gap: 12px;
}

.admin-shortcut-card {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-shortcut-title {
  display: grid;
  gap: 4px;
}

.admin-shortcut-title strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.admin-shortcut-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.admin-shortcut-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.admin-shortcut-actions .compact-action {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  text-align: center;
}

.generated-password-panel {
  border: 2px solid rgba(182, 146, 66, .65);
  border-radius: 8px;
  background: #fffaf0;
  padding: 16px;
}

.generated-password-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.generated-password-head h3,
.generated-password-head p {
  margin: 0 0 6px;
}

.generated-password-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.generated-password-list article {
  border: 1px solid #d8c28a;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.generated-password-list code {
  border: 1px solid #d4dceb;
  border-radius: 6px;
  background: #f5f7fb;
  padding: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  white-space: normal;
  overflow-wrap: anywhere;
}

.web-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.web-roster article {
  display: grid;
  gap: 8px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.web-roster article.trainee-roster-card {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.trainee-photo {
  width: 76px;
  height: 96px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f8;
  display: grid;
  place-items: center;
  color: var(--sdis-blue);
  font-size: 22px;
  font-weight: 950;
}

.trainee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainee-photo.is-clickable {
  cursor: zoom-in;
}

.trainee-photo.is-clickable:focus-visible {
  outline: 4px solid rgba(192, 154, 69, .5);
  outline-offset: 4px;
}

.trainee-photo.large {
  width: 118px;
  height: 148px;
  font-size: 30px;
}

.trainee-roster-body {
  min-width: 0;
}

.web-roster strong {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.web-roster h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.web-roster p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.trainee-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.trainee-profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.trainee-profile-actions .trainee-photo-actions,
.trainee-profile-actions .trainee-lic-actions {
  display: contents;
}

.trainee-profile-actions .compact-action {
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border-width: 2px;
}

.trainee-profile-actions .photo-file-action {
  grid-column: 1 / -1;
}

.photo-file-action {
  cursor: pointer;
}

.photo-file-action input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.danger-soft {
  color: #b42318 !important;
  border-color: #f5b5b0 !important;
}

.trainee-brief-profile {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.trainee-brief-profile strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.trainee-brief-profile p {
  margin: 6px 0 0;
}

.trainee-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.trainee-profile-fact {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: baseline;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 7px 9px;
}

.trainee-profile-fact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.trainee-profile-fact strong {
  font-size: 18px;
}

.trainee-license-status-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 9px;
  align-items: center;
  cursor: pointer;
}

.trainee-license-status-toggle input {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--primary);
}

.trainee-job-status {
  border-color: #cdd9ea;
  background: #f5f8ff;
}

.trainee-foad-status.complete {
  border-color: #9bd8b4;
  background: #eefbf4;
}

.trainee-foad-status.near {
  border-color: #d8c18b;
  background: #fffaf0;
}

.trainee-foad-status.todo,
.trainee-foad-status.missing {
  border-color: #f1b6b2;
  background: #fff5f5;
}

.trainee-lic-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.trainee-app-action {
  grid-column: 1 / -1;
}

.app-workshop-guidance p,
.app-workshop-empty p,
.app-workshop-card p,
.app-workshop-return p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.app-workshop-form {
  display: grid;
  gap: 12px;
}

.app.workshop-scroll-mode {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.app-workshop-content {
  display: block;
  min-height: auto;
  overflow: visible;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  padding-bottom: 18px;
  scroll-padding: 18px 0 18px;
}

.app-workshop-content > * + * {
  margin-top: 14px;
}

.app-workshop-content label,
.app-workshop-content input,
.app-workshop-content textarea,
.app-workshop-content select {
  touch-action: auto;
}

.app-workshop-content .text-zone {
  min-height: 104px;
  -webkit-overflow-scrolling: touch;
}

.app-workshop-list {
  display: grid;
  gap: 12px;
}

.app-workshop-card.revoked {
  opacity: .72;
}

.app-workshop-card-head {
  display: block;
}

.app-workshop-card-head h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
}

.app-workshop-card-head span,
.app-workshop-return span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.app-workshop-qr {
  width: 82px;
  min-height: 82px;
  padding: 4px;
}

.app-workshop-qr img {
  width: 100%;
  height: auto;
  display: block;
}

.app-workshop-return {
  border-left: 4px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

.app-workshop-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.app-public-content {
  gap: 14px;
}

.app-public-card,
.app-public-form {
  display: grid;
  gap: 12px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.app-public-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
}

.app-public-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.app-public-label {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.app-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app-choice {
  min-height: 58px;
  padding: 6px;
  font-size: 13px;
  line-height: 1.1;
}

.app-choice.selected {
  border-color: var(--sdis-blue);
  color: #fff;
  background: var(--sdis-blue);
}

.trainer-trombinoscope-list {
  display: grid;
  gap: 10px;
}

.trainer-trombinoscope-card {
  display: grid;
  gap: 10px;
}

.trainer-trombinoscope-profile {
  width: 100%;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.trainer-trombinoscope-profile span {
  min-width: 0;
}

.trainer-trombinoscope-profile strong {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.trainer-trombinoscope-profile small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.mechanical-form,
.mechanical-reports {
  display: grid;
  gap: 18px;
}

.stage-vehicles-form {
  padding: 0 16px 16px;
}

.mechanical-group {
  display: grid;
  gap: 10px;
}

.mechanical-group h3 {
  margin: 0;
  color: var(--sdis-blue);
  font-size: 20px;
}

.mechanical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mechanical-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mechanical-card {
  display: grid;
  gap: 10px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.mechanical-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.mechanical-title-line {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mechanical-card-head strong {
  color: var(--sdis-blue);
  font-size: 16px;
}

.mechanical-title-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sdis-blue);
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  cursor: pointer;
}

.mechanical-title-button:hover,
.mechanical-title-button:focus-visible {
  color: var(--sdis-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mechanical-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mechanical-card-head .mechanical-unread-dot {
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #c52434;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(197, 36, 52, .14);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.mechanical-panel {
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.mechanical-panel summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  color: var(--sdis-blue);
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.mechanical-panel summary span {
  min-width: 0;
}

.mechanical-panel summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.departmental-fleet-form {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.replacement-content {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.replacement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.replacement-card {
  display: grid;
  gap: 10px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.replacement-card.has-match {
  border-left: 5px solid var(--sdis-gold);
  background: #fffaf0;
}

.replacement-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.replacement-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.replacement-matches {
  display: grid;
  gap: 6px;
}

.replacement-matches strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.replacement-matches span {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.replacement-matches em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.departmental-fleet-group {
  display: grid;
  gap: 6px;
}

.departmental-fleet-group h3 {
  margin: 6px 0 2px;
  color: var(--ink);
  font-size: 16px;
}

.departmental-fleet-head,
.departmental-fleet-row {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr .9fr .85fr 1.35fr 72px;
  gap: 8px;
  align-items: center;
}

.departmental-fleet-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.departmental-fleet-row {
  padding: 7px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #f8fafc;
}

.departmental-fleet-row.new-row {
  background: #fffaf0;
  border-style: dashed;
}

.departmental-fleet-row input,
.departmental-fleet-row select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d4dbe7;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.departmental-fleet-row .checkline.compact {
  justify-content: center;
  min-height: 42px;
  margin: 0;
}

.driver-rotation-content {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.driver-rotation-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.driver-rotation-head strong,
.rotation-current-card h3 {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.driver-rotation-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.driver-rotation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.rotation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rotation-entry {
  display: grid;
  gap: 7px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

.rotation-entry h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.rotation-entry p {
  display: grid;
  grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.rotation-entry strong {
  color: var(--ink);
}

.rotation-paddock {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8dee8;
  border-left: 5px solid var(--sdis-indigo);
  border-radius: 8px;
  background: #f7f9fc;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.rotation-paddock strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.rotation-paddock span {
  min-width: 0;
  text-align: right;
}

.rotation-mobile-note {
  display: block !important;
  grid-template-columns: none !important;
  color: var(--sdis-indigo) !important;
  background: #eef0ff;
  border-radius: 8px;
  padding: 8px;
}

.rotation-front-form {
  display: grid;
  gap: 10px;
}

.rotation-front-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.rotation-phone-content {
  gap: 12px;
}

.rotation-transition-head {
  display: grid;
  gap: 6px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.rotation-transition-head h1,
.rotation-transition-head p {
  margin: 0;
}

.rotation-transition-head h1 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
}

.rotation-transition-head p:not(.web-eyebrow) {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.rotation-transition-entry {
  background: #f7fafc;
}

.rotation-move-list {
  display: grid;
  gap: 10px;
}

.rotation-move-row {
  display: grid;
  gap: 5px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.rotation-move-row strong,
.rotation-move-row span,
.rotation-move-row p {
  margin: 0;
}

.rotation-move-row strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.1;
}

.rotation-move-row span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.rotation-move-row p {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.rotation-next-briefing {
  display: grid;
  gap: 10px;
}

.rotation-next-vehicle {
  margin: 4px 0 -2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.app.rotation-scroll-mode {
  height: auto;
  min-height: calc(100svh - 42px);
  display: flex;
  overflow-x: visible;
  overflow-y: visible;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

.app.rotation-scroll-mode .rotation-phone-content {
  display: grid;
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  padding-bottom: 14px;
}

.app.rotation-scroll-mode .footer {
  flex: 0 0 auto;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.shell.rotation-scroll-mode-shell {
  align-items: start;
  overflow: visible;
}

.shell.rotation-scroll-mode-shell > .phone {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

.shell.rotation-scroll-mode-shell > .phone > .app {
  height: auto;
  min-height: calc(100svh - 42px);
  overflow: visible;
}

.rotation-current-card,
.rotation-previous {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.rotation-phone-list {
  display: grid;
  gap: 10px;
}

.rotation-phone-list .rotation-entry p {
  grid-template-columns: 84px minmax(0, 1fr);
}

.rotation-previous summary {
  font-size: 16px;
  font-weight: 950;
}

.mechanical-qr {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: center;
}

.mechanical-qr img {
  width: 92px;
  aspect-ratio: 1;
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .13);
}

.mechanical-qr textarea {
  min-height: 92px;
  resize: none;
  font-size: 11px;
  line-height: 1.25;
}

.vehicle-identity-box {
  display: grid;
  gap: 4px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fbfbf6;
  padding: 12px;
}

.vehicle-identity-box strong,
.vehicle-identity-box span {
  display: block;
}

.vehicle-identity-box strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.vehicle-identity-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.mechanical-public-section {
  display: grid;
  gap: 12px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.mechanical-public-section summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.mechanical-public-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mechanical-public-tabs button {
  min-height: 44px;
  border: 2px solid #d3dbe8;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.mechanical-public-tabs button.active {
  border-color: var(--sdis-blue);
  background: var(--sdis-blue);
  color: #fff;
}

.morning-check-form,
.morning-check-section {
  gap: 10px;
}

.morning-day-details {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.morning-day-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  color: var(--sdis-blue);
  font-size: 22px;
  font-weight: 950;
  text-transform: capitalize;
}

.morning-day-details > summary small {
  color: var(--slate);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.morning-day-card {
  display: grid;
  gap: 12px;
  border-top: 1px solid #edf1f6;
  padding: 12px;
}

.morning-check-wizard {
  padding-top: 2px;
}

.morning-wizard-head {
  display: grid;
  gap: 5px;
  border-left: 5px solid var(--sdis-blue);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.morning-wizard-head span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.morning-wizard-head strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.12;
}

.morning-wizard-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: .85fr .9fr 1fr;
  gap: 8px;
  border-top: 1px solid #dce3ec;
  background: rgba(255, 255, 255, .96);
  padding: 10px 0 0;
}

.morning-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.morning-check-grid.levels {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

@media (max-width: 520px) {
  .morning-check-grid {
    grid-template-columns: 1fr;
  }

  .morning-check-grid input,
  .morning-check-grid select {
    min-width: 0;
    width: 100%;
  }

  .morning-wizard-actions {
    grid-template-columns: 1fr 1fr;
  }

  .morning-wizard-actions [data-cancel-morning-check] {
    grid-column: 1 / -1;
  }
}

.morning-item-list {
  display: grid;
  gap: 10px;
}

.morning-check-item {
  display: grid;
  gap: 9px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.morning-check-item strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.morning-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.morning-choice {
  position: relative;
  flex: 1 1 86px;
}

.morning-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.morning-choice span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 2px solid #d3dbe8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.morning-choice input:checked + span {
  border-color: var(--sdis-blue);
  background: #f1f3ff;
  color: var(--sdis-blue);
}

.morning-comment {
  min-height: 58px;
}

.morning-photo-capture {
  min-height: 48px;
  background: #fff;
}

.morning-latest {
  display: grid;
  gap: 3px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f0fdf4;
  padding: 10px 12px;
}

.morning-latest strong,
.morning-latest span {
  display: block;
  line-height: 1.2;
}

.morning-latest span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.morning-history {
  margin-top: 2px;
}

.guided-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.guided-photo-capture,
.report-photo-capture {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 58px;
  border: 2px solid #d3dbe8;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.guided-photo-capture input,
.report-photo-capture input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.guided-photo-capture img {
  display: none;
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #dce3ec;
}

.guided-photo-capture img.visible {
  display: block;
}

.guided-photo-capture.locked {
  border-color: #a8d9be;
  background: #f6fbf8;
  color: #14532d;
}

.guided-photo-capture.locked a {
  display: block;
}

.guided-photo-capture small {
  color: #166534;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.guided-photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guided-photo-thumbs img {
  width: 82px;
  height: 62px;
  object-fit: cover;
  border: 1px solid #dce3ec;
  border-radius: 8px;
}

.mechanical-known-reports {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.mechanical-known-reports summary {
  font-size: 15px;
}

.mechanical-known-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mechanical-known-list article {
  display: grid;
  gap: 3px;
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 9px;
}

.mechanical-known-list strong,
.mechanical-known-list span {
  display: block;
}

.mechanical-known-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mechanical-known-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.mechanical-card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.mechanical-card-actions .outline {
  display: grid;
  place-items: center;
  text-align: center;
}

.mechanical-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.mechanical-qr.large {
  grid-template-columns: 132px 1fr;
}

.mechanical-qr.large img {
  width: 132px;
}

.mechanical-qr.large textarea {
  min-height: 132px;
}

.mechanical-reports {
  margin-top: 24px;
}

.compact-head {
  margin-bottom: 0;
}

.mechanical-report {
  display: grid;
  gap: 9px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.mechanical-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mechanical-report-head > div {
  min-width: 0;
}

.mechanical-report-head .compact-action {
  flex: 0 0 auto;
}

.mechanical-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mechanical-report-edit-form {
  display: grid;
  gap: 12px;
}

.mechanical-report-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mechanical-report-edit-grid label {
  display: grid;
  gap: 5px;
}

.mechanical-report-edit-grid .wide {
  grid-column: 1 / -1;
}

.mechanical-report-edit-check {
  align-content: end;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

.mechanical-report strong,
.mechanical-report span,
.mechanical-report small {
  display: block;
}

.mechanical-report span,
.mechanical-report small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mechanical-report p {
  margin: 0;
  line-height: 1.35;
}

.mechanical-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mechanical-photos a {
  display: grid;
  gap: 4px;
  width: 112px;
  color: inherit;
  text-decoration: none;
}

.mechanical-photos img {
  width: 112px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dce3ec;
}

.mechanical-photos span {
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 800;
}

.mechanical-photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mechanical-photo-gallery article {
  display: grid;
  gap: 7px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.mechanical-photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #dce3ec;
}

.mechanical-photo-gallery strong,
.mechanical-photo-gallery span {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.mechanical-photo-gallery strong {
  color: var(--text);
}

.mechanical-photo-gallery span {
  color: var(--muted);
  font-weight: 800;
}

.mechanical-initial-details {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
}

.mechanical-initial-details summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 900;
}

.mechanical-initial-details summary strong {
  color: var(--muted);
  font-size: 13px;
}

.mechanical-initial-details .mechanical-photo-gallery,
.mechanical-initial-details .web-card {
  margin: 0 16px 16px;
}

.web-stage-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.web-stage-list article.selected {
  border-left: 5px solid var(--sdis-gold);
}

.web-stage-list strong,
.web-stage-list span {
  display: block;
}

.official-docs {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  min-width: 0;
  overflow-x: clip;
}

.official-docs .web-section-head,
.official-docs .web-section-head > div,
.official-docs .web-card.wide,
.official-docs form {
  min-width: 0;
}

.official-docs .web-card.wide {
  grid-column: 1 / -1;
}

.official-doc-note {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(192, 154, 69, .44);
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
}

.official-doc-note strong {
  color: var(--ink);
  font-size: 16px;
}

.official-doc-note span {
  color: #66542a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.official-doc-list {
  display: grid;
  gap: 10px;
}

.doc-upload-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.doc-upload-title {
  grid-column: 1 / -1;
}

.doc-upload-title h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
}

.doc-upload-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-upload-box .wide {
  grid-column: 1 / -1;
}

.doc-upload-box input,
.doc-upload-box select,
.doc-upload-box textarea {
  width: 100%;
  border: 2px solid #d4dce9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
  text-transform: none;
}

.lic-school-inbox {
  margin: 10px 0 14px;
}

.lic-school-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.lic-school-file strong,
.lic-school-file span {
  min-width: 0;
}

.lic-school-file nav {
  grid-row: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 8px;
}

.doc-category {
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.doc-category summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 14px 16px;
  color: var(--sdis-blue);
  font-size: 16px;
  font-weight: 950;
  list-style: none;
}

.doc-category summary::-webkit-details-marker {
  display: none;
}

.doc-category summary::after {
  content: "+";
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.doc-category[open] summary::after {
  content: "-";
}

.doc-category summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.doc-category .official-doc-list {
  border-top: 1px solid #edf1f6;
  padding: 12px;
}

.official-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.official-doc-row.editing-msp {
  align-items: start;
}

.official-doc-row strong,
.official-doc-row span,
.official-doc-row small {
  display: block;
}

.official-doc-row strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.official-doc-row span,
.official-doc-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.official-doc-row nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}

.project-docs .official-doc-row nav {
  grid-template-columns: minmax(118px, 1fr);
}

.trainer-documents {
  gap: 12px;
}

.mobile-section-title {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.mobile-documents {
  display: grid;
  gap: 10px;
}

.mobile-documents .official-doc-row nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-documents.project-docs .official-doc-row nav {
  grid-template-columns: minmax(0, 1fr);
}

.archive-trainee-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 8px;
}

.archive-session-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(136px, 168px));
  gap: 8px;
  justify-content: end;
  justify-self: end;
  margin-left: auto;
  width: min(100%, 704px);
  max-width: 100%;
}

.archive-dashboard {
  display: grid;
  gap: 14px;
}

.archive-main-accordions {
  display: grid;
  gap: 12px;
}

.archive-section-details {
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.archive-section-details > summary {
  align-items: center;
  background: #fff;
  color: var(--sdis-blue);
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  min-height: 64px;
  padding: 14px 16px;
}

.archive-section-details > summary::-webkit-details-marker,
.archive-trainee-details > summary::-webkit-details-marker,
.summative-jury-row > summary::-webkit-details-marker,
.transversal-competency-row > summary::-webkit-details-marker {
  display: none;
}

.archive-section-details > summary::before,
.archive-trainee-details > summary::before,
.summative-jury-row > summary::before,
.transversal-competency-row > summary::before {
  color: var(--brand);
  content: "▶";
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 950;
  transition: transform 0.16s ease;
}

.archive-section-details[open] > summary::before,
.archive-trainee-details[open] > summary::before,
.summative-jury-row[open] > summary::before,
.transversal-competency-row[open] > summary::before {
  transform: rotate(90deg);
}

.archive-section-details > summary div,
.archive-trainee-details > summary div {
  flex: 1 1 auto;
  min-width: 0;
}

.archive-section-details > summary strong {
  color: var(--brand);
  display: block;
  font-size: 20px;
  line-height: 1.12;
}

.archive-section-details > summary span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
  margin-top: 3px;
}

.archive-section-details > summary em {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.archive-section-details[open] > summary {
  border-bottom: 1px solid #e6ecf4;
  background: #f8fafc;
}

.archive-section-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.archive-section-actions {
  justify-self: stretch;
  margin-left: 0;
  width: 100%;
}

.catchup-note {
  background: #f8fafc;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-blue);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.catchup-note strong,
.catchup-form-head span,
.catchup-form-grid label span,
.catchup-textarea span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.catchup-note span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.catchup-certification-list,
.catchup-certification-form {
  display: grid;
  gap: 14px;
}

.catchup-certification-details {
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  overflow: hidden;
}

.catchup-certification-details > summary {
  align-items: center;
  color: var(--brand);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 950;
  gap: 10px;
  line-height: 1.2;
  list-style: none;
  padding: 16px 18px;
}

.catchup-certification-details > summary::-webkit-details-marker {
  display: none;
}

.catchup-certification-details > summary::before {
  color: var(--ink);
  content: "▶";
  flex: 0 0 auto;
  font-size: 16px;
}

.catchup-certification-details[open] > summary {
  border-bottom: 1px solid #e6ecf4;
}

.catchup-certification-details[open] > summary::before {
  content: "▼";
}

.catchup-certification-details > .catchup-certification-form {
  border: 0;
  border-radius: 0;
}

.catchup-create-row {
  display: flex;
  justify-content: flex-start;
}

.catchup-empty {
  background: #f8fafc;
}

.catchup-empty p {
  color: var(--muted);
  font-weight: 850;
  margin: 0;
}

.catchup-certification-form {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 14px;
}

.catchup-certification-form.locked input:disabled,
.catchup-certification-form.locked select:disabled,
.catchup-certification-form.locked textarea:disabled {
  background: #f8fafc;
  color: var(--ink);
  opacity: 1;
}

.catchup-certification-form.locked .catchup-choice-row {
  pointer-events: none;
}

.catchup-form-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.catchup-form-head h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.catchup-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.catchup-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catchup-form-grid label,
.catchup-textarea {
  display: grid;
  gap: 5px;
}

.catchup-form-grid label.wide {
  grid-column: span 2;
}

.catchup-form-grid input,
.catchup-form-grid select,
.catchup-form-grid textarea,
.catchup-textarea textarea {
  background: #fff;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  padding: 10px;
  width: 100%;
}

.catchup-form-grid textarea,
.catchup-textarea textarea {
  min-height: 92px;
  resize: vertical;
}

.catchup-decision-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certification-sheet {
  display: grid;
  gap: 14px;
}

.certification-header {
  background: #c49a32;
  border: 2px solid #172033;
  color: #fff;
  display: grid;
  gap: 6px;
  padding: 13px;
  text-align: center;
}

.certification-header strong {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.certification-header span {
  font-size: 14px;
  font-weight: 850;
}

.certification-fields {
  border: 1px solid #1f2937;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certification-fields label,
.certification-analysis {
  display: grid;
  gap: 6px;
}

.certification-fields label {
  border-bottom: 1px solid #1f2937;
  border-right: 1px solid #1f2937;
  min-width: 0;
  padding: 9px;
}

.certification-fields label:nth-child(2n) {
  border-right: 0;
}

.certification-fields label span,
.certification-analysis > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.certification-fields label strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  min-height: 18px;
  overflow-wrap: anywhere;
}

.certification-analysis {
  background: #f8fafc;
  border: 1px solid #1f2937;
  padding: 10px;
}

.certification-blocks,
.certification-analysis-grid {
  display: grid;
  gap: 12px;
}

.certification-block {
  border: 1px solid #1f2937;
  display: grid;
  gap: 0;
}

.certification-block-head {
  align-items: center;
  background: #f3f4f6;
  border-bottom: 1px solid #1f2937;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.certification-block-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.certification-choice-row {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 46px);
}

.certification-choice-row .block-mark {
  min-height: 42px;
  width: 46px;
}

.certification-indicators {
  display: grid;
}

.certification-indicators p {
  border-bottom: 1px solid #d1d5db;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
  padding: 8px 10px;
}

.certification-indicators p:last-child {
  border-bottom: 0;
}

.certification-analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certification-analysis-grid label {
  display: grid;
  gap: 6px;
}

.certification-analysis-grid label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cert-official-wrap {
  background: #eef3f8;
  overflow: auto;
  padding: 14px;
}

.cert-official-sheet {
  background: #fff;
  color: #111827;
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  gap: 14px;
  margin: 0 auto;
  min-width: 760px;
  padding: 22px;
  width: 100%;
}

.cert-official-top {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 82px minmax(0, 1fr);
}

.cert-official-top img {
  height: 70px;
  object-fit: contain;
  width: 70px;
}

.cert-official-title {
  background: #c9992e;
  border: 2px solid #111827;
  display: grid;
  gap: 8px;
  padding: 13px;
  text-align: center;
}

.cert-official-title strong {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.cert-official-title span {
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.cert-official-meta,
.cert-official-blocks {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.cert-official-meta th,
.cert-official-meta td,
.cert-official-blocks th,
.cert-official-blocks td {
  border: 1.5px solid #111827;
}

.cert-official-meta th,
.cert-official-meta td {
  font-size: 15px;
  font-weight: 900;
  height: 43px;
  line-height: 1.15;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

.cert-official-meta th {
  width: 170px;
}

.cert-official-meta td {
  overflow-wrap: anywhere;
}

.cert-level-head {
  text-align: center !important;
}

.cert-level-value {
  background: #09a9d8;
  color: #000;
  font-size: 20px !important;
  text-align: center !important;
  width: 42px;
}

.cert-official-learner,
.cert-official-trainer {
  border: 1.5px solid #111827;
  display: grid;
}

.cert-official-learner h3,
.cert-official-trainer h3 {
  background: #bfbfbf;
  border-bottom: 1.5px solid #111827;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  padding: 10px;
  text-align: center;
}

.cert-official-learner > div {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 128px;
  padding: 14px;
}

.cert-gauge {
  aspect-ratio: 2 / 1;
  background: conic-gradient(from 270deg at 50% 100%, #1f9d49 0 42deg, #ffd12c 42deg 91deg, #f04b23 91deg 180deg, transparent 180deg 360deg);
  border-radius: 110px 110px 0 0;
  display: block;
  position: relative;
  width: 88px;
}

.cert-gauge::after {
  background: #fff;
  border-radius: 90px 90px 0 0;
  bottom: 0;
  content: "";
  height: 34px;
  left: 27px;
  position: absolute;
  width: 34px;
}

.cert-official-learner textarea,
.cert-official-trainer textarea {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  min-height: 96px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.cert-official-blocks th {
  background: #d9d9d9;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  padding: 8px;
  text-align: center;
}

.cert-col-competence {
  width: 220px;
}

.cert-competence-cell {
  background: #d9d9d9;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.18;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

.cert-indicator-cell {
  color: #111827;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
  padding: 5px 7px;
  vertical-align: middle;
}

.cert-sheet-choice-cell {
  background: #d9d9d9;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  width: 39px;
}

.cert-sheet-choice {
  background: transparent;
  border: 0;
  color: transparent;
  cursor: pointer;
  display: grid;
  font-size: 20px;
  font-weight: 950;
  height: 100%;
  min-height: 54px;
  place-items: center;
  width: 100%;
}

.cert-sheet-choice.selected {
  color: #111827;
}

.cert-sheet-choice.selected::after {
  content: "X";
}

.cert-sheet-choice.selected {
  font-size: 0;
}

.cert-sheet-choice:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}

.cert-official-trainer > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 150px;
}

.cert-official-trainer label {
  display: grid;
  grid-template-rows: auto 1fr;
}

.cert-official-trainer label + label {
  border-left: 1.5px solid #111827;
}

.cert-official-trainer label span {
  border-bottom: 1.5px solid #111827;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  padding: 6px;
  text-align: center;
  text-decoration: underline;
}

.cert-official-trainer textarea {
  border: 0;
  border-radius: 0;
  min-height: 116px;
}

.cert-official-legend {
  align-items: center;
  display: grid;
  gap: 8px 18px;
  grid-template-columns: 170px 42px minmax(0, 1fr);
  justify-content: center;
  margin-top: 4px;
}

.cert-official-legend span,
.cert-official-legend em {
  color: #111827;
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.2;
}

.cert-official-legend strong {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

.cert-editor-wrap {
  background: #eef3f8;
  overflow: auto;
  padding: 10px;
}

.cert-editor-sheet {
  aspect-ratio: 910 / 1287;
  background: #fff;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto;
  max-width: 910px;
  min-width: 760px;
  position: relative;
  width: 100%;
}

.cert-editor-bg {
  display: block;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  width: 100%;
}

.cert-editor-banner,
.cert-editor-level,
.cert-editor-fill,
.cert-editor-input,
.cert-editor-textarea,
.cert-editor-choice {
  position: absolute;
  z-index: 2;
}

.cert-editor-banner {
  align-content: center;
  background: #c49a32;
  border: 2px solid #111;
  color: #fff;
  display: grid;
  justify-items: center;
  line-height: 1.15;
  text-align: center;
}

.cert-editor-banner strong {
  color: #fff;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.1;
}

.cert-editor-banner span {
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.1;
}

.cert-editor-level {
  align-items: center;
  background: #00a9d8;
  border: 1px solid #111;
  color: #000;
  display: flex;
  font-size: 18px;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
}

.cert-editor-fill {
  align-items: center;
  color: #111827;
  display: flex;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.08;
  overflow: hidden;
  padding: 0 4px;
  text-transform: none;
}

.cert-editor-date {
  font-size: 10px;
}

.cert-editor-input,
.cert-editor-textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.75);
  border-radius: 3px;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 850;
  line-height: 1.16;
  padding: 5px 7px;
  resize: none;
}

.cert-editor-input {
  font-size: 12px;
}

.cert-editor-textarea {
  font-size: 13px;
}

.cert-editor-choice {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1d4ed8;
  cursor: pointer;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.cert-editor-choice:hover,
.cert-editor-choice:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: -2px;
}

.cert-editor-choice.selected {
  color: #1557a8;
}

.catchup-block-card {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.catchup-block-card legend {
  color: var(--brand);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  padding: 0 4px;
}

.catchup-choice-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catchup-choice-row label {
  align-items: center;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  justify-items: center;
  min-height: 58px;
  padding: 7px;
  text-align: center;
}

.catchup-choice-row input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.catchup-choice-row span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.catchup-choice-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.catchup-choice-row label.selected.green,
.catchup-choice-row label:has(input:checked).green {
  background: #d9f7e5;
  border-color: #1a9b59;
}

.catchup-choice-row label.selected.amber,
.catchup-choice-row label:has(input:checked).amber {
  background: #fff5d8;
  border-color: #c49a32;
}

.catchup-choice-row label.selected.red,
.catchup-choice-row label:has(input:checked).red {
  background: #ffe6e6;
  border-color: #cf3434;
}

.catchup-choice-row label.selected.gray,
.catchup-choice-row label:has(input:checked).gray {
  background: #edf1f6;
  border-color: #8b98aa;
}

.catchup-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-trainee-list {
  display: grid;
  gap: 10px;
}

.archive-trainee-details {
  border: 1px solid #dce3ec;
  border-left: 5px solid transparent;
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.archive-trainee-details.editing-msp {
  border-left: 5px solid var(--brand);
}

.archive-trainee-details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
  min-height: 70px;
  padding: 13px 14px;
}

.archive-trainee-details[open] > summary {
  border-bottom: 1px solid #edf1f6;
  background: #f8fafc;
}

.archive-trainee-details strong,
.archive-trainee-details span,
.archive-trainee-details small {
  display: block;
}

.archive-trainee-details strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.18;
}

.archive-trainee-details span,
.archive-trainee-details small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.archive-trainee-body {
  display: grid;
  gap: 12px;
  padding: 13px 14px;
}

.expected-source-card {
  display: grid;
  gap: 4px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.expected-source-card strong,
.expected-source-card span,
.expected-source-card em {
  display: block;
}

.expected-source-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.expected-source-card span,
.expected-source-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.3;
}

.home-expected-section {
  grid-column: span 4;
}

.home-expected-body {
  gap: 12px;
}

.home-expected-counters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.home-expected-counter {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid #dce3ec;
  border-left: 5px solid #d4dce9;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.home-expected-counter span,
.home-expected-counter strong {
  display: block;
}

.home-expected-counter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.home-expected-counter strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.home-expected-counter.ahead {
  border-left-color: #1e9a5a;
}

.home-expected-counter.ok {
  border-left-color: #2563eb;
}

.home-expected-counter.watch {
  border-left-color: #d89a18;
}

.home-expected-counter.late {
  border-left-color: #c02636;
}

.home-expected-counter.missing {
  border-left-color: #94a3b8;
}

.home-expected-chart {
  display: grid;
  gap: 8px;
}

.home-expected-axis,
.home-expected-row {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(260px, 1fr) minmax(260px, 360px);
  gap: 12px;
  align-items: center;
}

.home-expected-axis {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-expected-axis strong {
  color: var(--sdis-blue);
  text-align: center;
}

.home-expected-axis span:last-child {
  text-align: right;
}

.home-expected-row {
  border: 1px solid #dce3ec;
  border-left: 5px solid #d4dce9;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.home-expected-row.ahead {
  border-left-color: #1e9a5a;
}

.home-expected-row.ok {
  border-left-color: #2563eb;
}

.home-expected-row.watch {
  border-left-color: #d89a18;
}

.home-expected-row.late {
  border-left-color: #c02636;
}

.home-expected-row.missing {
  border-left-color: #94a3b8;
}

.home-expected-person strong,
.home-expected-person span,
.home-expected-values strong,
.home-expected-values span {
  display: block;
}

.home-expected-person-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.home-expected-person-link:hover strong,
.home-expected-person-link:focus-visible strong {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-expected-person-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(49, 46, 129, 0.22);
  outline-offset: 3px;
}

.home-expected-person strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
}

.home-expected-person span,
.home-expected-values span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.home-expected-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff1f2 0%, #fff7ed 35%, #eff6ff 50%, #ecfdf5 100%);
  box-shadow: inset 0 0 0 1px #d7dfeb;
}

.home-expected-zero {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 2px;
  background: var(--sdis-blue);
  transform: translateX(-50%);
}

.home-expected-track em {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--sdis-blue);
  box-shadow: 0 2px 8px rgba(21, 33, 58, .28);
  transform: translate(-50%, -50%);
}

.home-expected-row.ahead .home-expected-track em {
  background: #1e9a5a;
}

.home-expected-row.watch .home-expected-track em {
  background: #d89a18;
}

.home-expected-row.late .home-expected-track em {
  background: #c02636;
}

.home-expected-row.missing .home-expected-track em {
  background: #94a3b8;
}

.home-expected-values strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.expected-status-pill {
  border: 1px solid #dce3ec;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  flex: 0 0 auto;
  padding: 7px 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.expected-status-pill.ahead,
.expected-level-card.ahead {
  border-color: #b8dfca;
  background: #f4fbf7;
}

.expected-status-pill.ok,
.expected-level-card.ok {
  border-color: #cdd8ea;
  background: #f8fafc;
}

.expected-status-pill.watch,
.expected-level-card.watch {
  border-color: #efd59f;
  background: #fffaf0;
}

.expected-status-pill.late,
.expected-level-card.late {
  border-color: #f0b7bd;
  background: #fff7f8;
}

.expected-trainee-body {
  overflow-x: auto;
}

.expected-level-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0 2px 8px;
  overflow-x: auto;
  scrollbar-color: #c49a32 #edf1f6;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.expected-level-card {
  display: grid;
  flex: 0 0 300px;
  gap: 10px;
  border: 1px solid #dce3ec;
  border-left: 5px solid #d4dce9;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.expected-level-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.expected-level-card-head strong,
.expected-level-card-head span {
  display: block;
}

.expected-level-card-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.expected-level-card-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.expected-level-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.expected-level-metrics p {
  display: grid;
  gap: 2px;
  margin: 0;
  border: 1px solid #e0e7f0;
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  text-align: center;
}

.expected-level-metrics span,
.expected-level-metrics strong,
.expected-level-metrics em {
  display: block;
}

.expected-level-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.expected-level-metrics strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.expected-level-metrics em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.expected-block-details {
  border-top: 1px solid #e8edf5;
  padding-top: 7px;
}

.expected-block-details summary {
  cursor: pointer;
  color: var(--sdis-blue);
  font-size: 12px;
  font-weight: 950;
}

.expected-block-details div {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.expected-block-details p {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.expected-block-details strong {
  color: var(--ink);
}

.expected-block-details em {
  color: var(--ink);
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.process-verbal-panel {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  min-width: 0;
}

.pv-head,
.pv-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.pv-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.pv-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 8px;
}

.pv-table-scroll-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pv-table-wrap {
  position: relative;
  z-index: 1;
  overflow: auto;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  max-height: min(62vh, 680px);
  min-width: 0;
  overscroll-behavior-x: contain;
  scrollbar-color: #c49a32 #edf1f6;
  scrollbar-width: auto;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.pv-table-wrap:focus {
  outline: 3px solid rgba(196, 154, 50, .32);
  outline-offset: 2px;
}

.pv-table-wrap::-webkit-scrollbar {
  height: 14px;
  width: 14px;
}

.pv-table-wrap::-webkit-scrollbar-track {
  background: #edf1f6;
}

.pv-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid #edf1f6;
  border-radius: 999px;
  background: #c49a32;
}

.pv-table {
  display: grid;
  min-width: 1240px;
  width: max-content;
}

.pv-row {
  display: grid;
  grid-template-columns: 92px 150px 150px 210px repeat(4, 130px) 130px;
  align-items: stretch;
  border-bottom: 1px solid #edf1f6;
}

.pv-row:last-child {
  border-bottom: 0;
}

.pv-row.has-override {
  background: #fffaf0;
}

.pv-header {
  background: #e9edf3;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pv-header span {
  padding: 10px 8px;
  border-right: 1px solid #d4dce9;
}

.pv-header span:last-child,
.pv-cell:last-child {
  border-right: 0;
}

.pv-cell {
  display: grid;
  align-items: stretch;
  min-height: 52px;
  border-right: 1px solid #edf1f6;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.pv-cell span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pv-cell input,
.pv-cell select {
  appearance: auto;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  padding: 8px;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.pv-cell input:focus,
.pv-cell select:focus {
  outline: 3px solid rgba(49, 47, 134, .32);
  outline-offset: -3px;
  background: #fff;
}

.pv-cell.manual input,
.pv-cell.manual select {
  background: #fff6dc;
}

.pv-official-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 12px;
}

.pv-official-meta-grid label {
  display: grid;
  gap: 6px;
}

.pv-official-meta-grid label:first-child {
  grid-column: 1 / -1;
}

.pv-official-meta-grid span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pv-official-meta-grid input {
  width: 100%;
  min-height: 46px;
  border: 2px solid #d4dce9;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  padding: 8px 10px;
}

.pv-signature-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pv-signature-edit-grid label {
  display: grid;
  gap: 7px;
}

.pv-signature-edit-grid span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.pv-signature-edit-grid textarea {
  width: 100%;
  min-height: 112px;
  border: 2px solid #d4dce9;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  padding: 10px 12px;
  resize: vertical;
}

.pv-foot {
  align-items: center;
}

.pv-foot span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.summative-jury-panel {
  display: grid;
  gap: 14px;
}

.summative-jury-list {
  display: grid;
  gap: 12px;
}

.summative-jury-row {
  display: grid;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.summative-jury-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  list-style: none;
  padding: 14px;
}

.summative-jury-head strong,
.summative-jury-head span,
.summative-jury-head small {
  display: block;
}

.summative-jury-head strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.summative-jury-head span,
.summative-jury-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.summative-jury-body {
  border-top: 1px solid #edf1f6;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.summative-jury-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: 8px;
}

.summative-jury-grid label,
.summative-plan-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.summative-jury-grid select,
.summative-jury-grid input,
.summative-jury-texts textarea {
  width: 100%;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  padding: 10px;
}

.summative-jury-grid select {
  min-height: 44px;
}

.summative-jury-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.summative-jury-plans .check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.summative-jury-plans input {
  width: 18px;
  height: 18px;
}

.summative-jury-texts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summative-plan-field-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.summative-plan-field-head span {
  min-width: 0;
}

.summative-plan-field-head .micro-action {
  border-radius: 7px;
  font-size: 11px;
  min-height: 30px;
  padding: 6px 9px;
  text-transform: none;
}

.summative-jury-texts textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.35;
  text-transform: none;
}

.summative-jury-row-actions {
  align-items: center;
  border-top: 1px solid #e7edf5;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 12px;
}

.summative-jury-row-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.transversal-list {
  display: grid;
  gap: 10px;
}

.transversal-competency-row {
  display: grid;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.transversal-competency-head {
  align-items: start;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 70px;
  padding: 13px 14px;
}

.transversal-competency-row[open] > .transversal-competency-head {
  border-bottom: 1px solid #edf1f6;
}

.transversal-competency-head div {
  flex: 1 1 auto;
  min-width: 0;
}

.transversal-competency-head strong,
.transversal-competency-head span,
.transversal-competency-head small {
  display: block;
}

.transversal-competency-head strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.18;
}

.transversal-competency-head span,
.transversal-competency-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.transversal-competency-body {
  display: grid;
  gap: 12px;
  padding: 13px 14px;
}

.transversal-entry-form {
  display: grid;
  gap: 14px;
}

.transversal-entry-head {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(120px, 180px) minmax(220px, 1fr);
  gap: 10px;
}

.transversal-entry-head label,
.transversal-entry-notes label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.transversal-entry-head input,
.transversal-entry-head select,
.transversal-entry-notes textarea {
  width: 100%;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  padding: 10px;
}

.transversal-readonly-note {
  display: grid;
  gap: 6px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-blue);
  border-radius: 8px;
  background: #f7f9fc;
  padding: 12px;
}

.transversal-readonly-note strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.transversal-readonly-note p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-wrap;
}

.transversal-entry-blocks {
  display: grid;
  gap: 12px;
}

.transversal-entry-block {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  overflow: hidden;
}

.transversal-entry-block summary {
  align-items: center;
  background: #f7f9fc;
  border-bottom: 1px solid #e6ecf4;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding: 12px;
}

.transversal-entry-block summary::-webkit-details-marker {
  display: none;
}

.transversal-entry-block summary::before {
  color: var(--brand);
  content: "▸";
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 950;
}

.transversal-entry-block[open] summary::before {
  content: "▾";
}

.transversal-entry-block summary span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.transversal-entry-block h4 {
  flex: 1;
  margin: 0;
  color: var(--brand);
  font-size: 15px;
  line-height: 1.25;
}

.transversal-block-choice-inline {
  align-items: center;
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  grid-template-columns: repeat(4, 38px);
}

.transversal-block-choice-inline label {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfd7e5;
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  height: 30px;
  justify-items: center;
}

.transversal-block-choice-inline input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.transversal-block-choice-inline span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.transversal-block-choice-inline label.selected.green,
.transversal-block-choice-inline label:has(input:checked).green {
  background: #d9f7e5;
  border-color: #1a9b59;
}

.transversal-block-choice-inline label.selected.amber,
.transversal-block-choice-inline label:has(input:checked).amber {
  background: #fff5d8;
  border-color: #c49a32;
}

.transversal-block-choice-inline label.selected.red,
.transversal-block-choice-inline label:has(input:checked).red {
  background: #ffe6e6;
  border-color: #cf3434;
}

.transversal-block-choice-inline label.selected.gray,
.transversal-block-choice-inline label:has(input:checked).gray {
  background: #edf1f6;
  border-color: #8b98aa;
}

.transversal-entry-items {
  display: grid;
}

.transversal-entry-item {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(130px, 190px);
  gap: 12px;
  padding: 12px;
}

.transversal-entry-item + .transversal-entry-item {
  border-top: 1px solid #edf1f6;
}

.transversal-entry-item div {
  min-width: 0;
}

.transversal-entry-item strong {
  color: var(--teal);
  display: block;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.transversal-entry-item p {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
}

.transversal-entry-item small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-top: 4px;
}

.transversal-entry-item .transversal-learner-pill {
  align-self: center;
  border-radius: 8px;
  background: #f2f5fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  padding: 10px;
  text-align: center;
}

.transversal-entry-item .transversal-learner-pill.green {
  background: #e8f8ee;
  color: #17663c;
}

.transversal-entry-item .transversal-learner-pill.amber {
  background: #fff5d8;
  color: #7b5b11;
}

.transversal-entry-item .transversal-learner-pill.red {
  background: #ffe6e6;
  color: #8e1f1f;
}

.transversal-entry-item .transversal-learner-pill.gray {
  background: #f2f5fb;
  color: var(--muted);
}

.transversal-choice-set {
  border: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  min-width: 0;
  padding: 0;
}

.transversal-entry-block > .transversal-choice-set-block {
  border-bottom: 1px solid #edf1f6;
  padding: 12px;
}

.transversal-choice-set legend {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  grid-column: 1 / -1;
  line-height: 1.2;
  text-transform: uppercase;
}

.transversal-choice-set label {
  align-items: center;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-height: 54px;
  padding: 6px 4px;
  text-align: center;
}

.transversal-choice-set input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.transversal-choice-set span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.transversal-choice-set small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.05;
  margin: 0;
}

.transversal-choice-set label.selected.green,
.transversal-choice-set label:has(input:checked).green {
  background: #d9f7e5;
  border-color: #1a9b59;
}

.transversal-choice-set label.selected.amber,
.transversal-choice-set label:has(input:checked).amber {
  background: #fff5d8;
  border-color: #c49a32;
}

.transversal-choice-set label.selected.red,
.transversal-choice-set label:has(input:checked).red {
  background: #ffe6e6;
  border-color: #cf3434;
}

.transversal-choice-set label.selected.gray,
.transversal-choice-set label:has(input:checked).gray {
  background: #edf1f6;
  border-color: #8b98aa;
}

.transversal-entry-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.transversal-entry-notes textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.35;
  text-transform: none;
}

.transversal-entry-actions {
  align-items: center;
  border-top: 1px solid #e7edf5;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 12px;
}

.transversal-entry-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.transversal-entry-actions nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.official-doc-row .archive-trainee-actions {
  grid-template-columns: repeat(2, minmax(118px, 1fr));
}

.archive-msp-details {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid #edf1f6;
  padding-top: 10px;
}

.archive-msp-details summary {
  cursor: pointer;
  color: var(--sdis-blue);
  font-size: 13px;
  font-weight: 950;
}

.archive-msp-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  margin-top: 10px;
  padding: 0 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #c49a32 #edf1f6;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.archive-msp-card {
  display: grid;
  flex: 0 0 360px;
  min-width: 360px;
  max-width: 360px;
  gap: 7px;
  border: 1px solid #dce3ec;
  border-left: 5px solid #d4dce9;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  scroll-snap-align: start;
}

.archive-msp-card.ok {
  border-left-color: var(--green);
}

.archive-msp-card.ready {
  border-left-color: var(--amber);
}

.archive-msp-card.open {
  border-left-color: var(--sdis-blue);
}

.archive-msp-card strong {
  font-size: 13px;
}

.archive-msp-context-menu {
  position: fixed;
  z-index: 10000;
  width: min(230px, calc(100vw - 24px));
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
  padding: 6px;
}

.archive-msp-context-menu button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #991b1b;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.archive-msp-context-menu button:hover,
.archive-msp-context-menu button:focus {
  background: #fff1f2;
  outline: none;
}

.archive-msp-context-menu strong {
  font-size: 13px;
}

.archive-msp-context-menu span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
}

.archive-msp-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.archive-msp-editor {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-blue);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.archive-msp-editor-head,
.archive-msp-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.archive-msp-editor-top-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
  min-width: min(100%, 420px);
}

.archive-msp-editor-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.archive-msp-editor-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.archive-msp-editor-form {
  display: grid;
  gap: 12px;
}

.archive-msp-editor-block {
  display: grid;
  gap: 10px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.archive-msp-editor-block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}

.archive-msp-editor-block-head strong,
.archive-msp-editor-block-head span,
.archive-msp-editor-block-head label span,
.archive-msp-learner-analysis span,
.archive-msp-analysis-title,
.archive-msp-editor-notes span {
  display: block;
}

.archive-msp-editor-block-head strong {
  color: var(--ink);
  font-size: 16px;
}

.archive-msp-editor-block-head span,
.archive-msp-editor-block-head label span,
.archive-msp-learner-analysis span,
.archive-msp-analysis-title,
.archive-msp-editor-notes span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.archive-msp-editor-block-head select,
.archive-msp-editor-notes textarea {
  width: 100%;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  padding: 10px;
}

.archive-msp-learner-analysis {
  display: grid;
  gap: 5px;
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.archive-msp-learner-analysis-value {
  min-height: 74px;
  margin: 0;
  padding: 10px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  white-space: pre-wrap;
}

.archive-msp-analysis-title {
  margin: 4px 0 -4px;
  color: var(--ink);
}

.archive-msp-editor-items {
  display: grid;
  gap: 6px;
}

.archive-msp-editor-items p {
  display: grid;
  grid-template-columns: 58px 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.archive-msp-editor-items span,
.archive-msp-editor-items strong {
  color: var(--teal);
  font-style: normal;
}

.archive-msp-editor-items strong {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #edf2f7;
  color: var(--ink);
}

.archive-msp-editor-items em {
  min-width: 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.25;
}

.archive-msp-editor-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.archive-msp-editor-notes.final-notes {
  border: 1px solid #dce3ec;
  border-left: 5px solid var(--sdis-gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.archive-msp-editor-notes label,
.archive-msp-learner-analysis {
  display: grid;
  gap: 5px;
}

.archive-msp-editor-notes textarea {
  min-height: 82px;
  resize: vertical;
}

.web-stage-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 80px rgba(23, 32, 51, .11);
  padding: 0;
  overflow: hidden;
}

.panel .eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.sdis-panel-header {
  position: relative;
  overflow: hidden;
  background: var(--sdis-blue);
  color: #fff;
  padding: 22px 24px 18px;
}

.sdis-panel-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--sdis-gold);
}

.sdis-brand-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
}

.sdis-crest {
  width: 82px;
  height: 108px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .22));
}

.sdis-kicker {
  margin: 0 0 6px !important;
  color: rgba(255, 255, 255, .88) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 900;
  text-transform: uppercase;
}

.panel .sdis-panel-header h1 {
  margin: 0;
  color: #fff;
  font-size: 44px;
  line-height: .95;
  letter-spacing: 0;
}

.sdis-subtitle {
  margin: 6px 0 0 !important;
  color: rgba(255, 255, 255, .92) !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  font-weight: 800;
}

.sdis-navline {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 800;
}

.sdis-navline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sdis-navline span + span::before {
  content: "";
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .45);
}

.sdis-intro {
  margin: 0 !important;
  padding: 18px 24px 0;
  color: var(--muted);
}

.summary,
.actions,
.password-box {
  margin: 18px 24px 0;
  display: grid;
  gap: 10px;
}

.summary {
  border-left: 4px solid var(--sdis-gold);
  padding-left: 14px;
}

.summary strong {
  font-size: 15px;
}

.summary span {
  color: var(--muted);
  font-size: 14px;
}

.actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.actions .outline,
.actions .primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  font-size: 14px;
}

.note {
  margin: 18px 24px 24px;
  border-radius: 8px;
  background: #f6f8fb;
  padding: 12px;
  color: var(--muted);
  font-size: 14px !important;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 12px 14px;
  background: #172033;
  color: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 51, .25);
  text-align: center;
  font-weight: 900;
}

@media (max-width: 860px) {
  html,
  body {
    overscroll-behavior-y: auto;
  }

  .shell.mode-admin-dashboard {
    display: block;
    padding: 0;
    overflow: visible;
  }

  .shell.mode-admin-dashboard > .device-switcher {
    display: none;
  }

  .shell.mode-admin-dashboard > .phone {
    width: 100%;
    min-height: 100svh;
    overflow: visible;
  }

  .shell.mode-admin-dashboard > .phone > .app {
    min-height: 100svh;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  .shell.mode-admin-dashboard .web-page {
    overflow: visible;
  }

  .shell.mode-admin-dashboard .web-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }

  .shell.mode-admin-dashboard-phone .web-header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .shell.mode-admin-dashboard .web-brand {
    gap: 12px;
  }

  .shell.mode-admin-dashboard .web-brand img {
    width: 54px;
    height: 70px;
  }

  .shell.mode-admin-dashboard .web-brand h1 {
    font-size: 34px;
  }

  .shell.mode-admin-dashboard .web-brand span {
    font-size: 14px;
  }

  .shell.mode-admin-dashboard .web-session {
    justify-items: stretch;
    gap: 8px;
  }

  .shell.mode-admin-dashboard .web-stage-badge {
    max-width: none;
    text-align: left;
  }

  .shell.mode-admin-dashboard .web-logout {
    width: 100%;
    min-height: 42px;
  }

  .shell.mode-admin-dashboard .web-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 10px;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shell.mode-admin-dashboard .web-tabs::-webkit-scrollbar {
    display: none;
  }

  .shell.mode-admin-dashboard .web-tabs button,
  .shell.mode-admin-dashboard .web-tabs a {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .shell.mode-admin-dashboard .web-main {
    padding: 16px 12px 22px;
    overflow: visible;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-hub {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-title,
  .shell.mode-admin-dashboard-phone .rp-mobile-title h2,
  .shell.mode-admin-dashboard-phone .rp-mobile-kpis,
  .shell.mode-admin-dashboard-phone .rp-mobile-kpis article,
  .shell.mode-admin-dashboard-phone .rp-mobile-actions,
  .shell.mode-admin-dashboard-phone .web-card,
  .shell.mode-admin-dashboard-phone .web-card *,
  .shell.mode-admin-dashboard-phone .terrain-network-card,
  .shell.mode-admin-dashboard-phone .terrain-network-card *,
  .shell.mode-admin-dashboard-phone .macbook-backup-card,
  .shell.mode-admin-dashboard-phone .macbook-backup-card * {
    min-width: 0;
    max-width: 100%;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-title h2,
  .shell.mode-admin-dashboard-phone .web-card h2,
  .shell.mode-admin-dashboard-phone .web-card h3,
  .shell.mode-admin-dashboard-phone .web-card p,
  .shell.mode-admin-dashboard-phone .web-stage-badge,
  .shell.mode-admin-dashboard-phone .terrain-network-address strong,
  .shell.mode-admin-dashboard-phone .terrain-network-qr span,
  .shell.mode-admin-dashboard-phone .macbook-backup-status p {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-title h2 {
    font-size: 19px;
    line-height: 1.12;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell.mode-admin-dashboard-phone .home-expected-counters {
    grid-template-columns: 1fr;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-kpis article {
    padding: 8px;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-kpis span {
    font-size: 10px;
    line-height: 1.1;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-kpis strong {
    font-size: 22px;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-actions {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-actions .compact-action,
  .shell.mode-admin-dashboard-phone button,
  .shell.mode-admin-dashboard-phone input,
  .shell.mode-admin-dashboard-phone select,
  .shell.mode-admin-dashboard-phone textarea {
    min-height: 44px;
  }

  .shell.mode-admin-dashboard-phone .rp-mobile-actions .compact-action {
    width: 100%;
    padding-inline: 8px;
    font-size: 12px;
    line-height: 1.12;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
  }

  .shell.mode-admin-dashboard .preparation-day-memo summary {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }

  .shell.mode-admin-dashboard .prep-add-point {
    justify-self: stretch;
    margin: 0 12px 10px;
    width: calc(100% - 24px);
  }

  .shell.mode-admin-dashboard .preparation-checklist {
    padding: 4px 12px 12px;
    gap: 10px;
  }

  .shell.mode-admin-dashboard .preparation-check-item {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .shell.mode-admin-dashboard .preparation-check-main {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .shell.mode-admin-dashboard .preparation-check-item input {
    width: 28px;
    height: 28px;
    margin-top: 0;
  }

  .shell.mode-admin-dashboard .preparation-check-text {
    display: block;
    min-width: 0;
    width: 100%;
    font-size: 16px;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .shell.mode-admin-dashboard .preparation-point-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .shell.mode-admin-dashboard .preparation-edit-point,
  .shell.mode-admin-dashboard .preparation-delete-point {
    width: 100%;
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
  }

  .shell.mode-admin-dashboard-phone .web-table-card,
  .shell.mode-admin-dashboard-phone .web-card.wide,
  .shell.mode-admin-dashboard-phone .home-readiness-section,
  .shell.mode-admin-dashboard-phone .home-expected-section,
  .shell.mode-admin-dashboard-phone .mechanical-alert-card {
    min-width: 0;
  }

  .shell.mode-admin-dashboard-phone .web-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shell.mode-admin-dashboard-phone .web-table-wrap,
  .shell.mode-admin-dashboard-phone .archive-table-wrap,
  .shell.mode-admin-dashboard-phone .driver-rotation-table-wrap,
  .shell.mode-admin-dashboard-phone .mechanical-table-wrap {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shell.mode-admin-dashboard .web-section-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .shell.mode-admin-dashboard .web-actions-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shell.mode-admin-dashboard .archive-session-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    margin-left: 0;
    width: 100%;
  }

  .shell.mode-admin-dashboard .web-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shell.mode-admin-dashboard-phone .web-grid {
    grid-template-columns: 1fr;
  }

  .shell.mode-admin-dashboard .home-expected-section {
    grid-column: 1 / -1;
  }

  .shell.mode-admin-dashboard .terrain-network-head,
  .shell.mode-admin-dashboard .terrain-network-grid {
    grid-template-columns: 1fr;
  }

  .shell.mode-admin-dashboard .terrain-network-head {
    display: grid;
  }

  .shell.mode-admin-dashboard .terrain-network-qr {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .shell.mode-admin-dashboard .terrain-network-qr img {
    width: 96px;
  }

  .shell.mode-admin-dashboard .home-expected-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell.mode-admin-dashboard .home-expected-axis,
  .shell.mode-admin-dashboard .home-expected-row {
    grid-template-columns: 1fr;
  }

  .shell.mode-admin-dashboard .home-expected-axis span,
  .shell.mode-admin-dashboard .home-expected-axis span:last-child,
  .shell.mode-admin-dashboard .home-expected-axis strong {
    text-align: left;
  }

  .shell.mode-admin-dashboard .home-expected-axis span:first-child {
    display: none;
  }

  .shell.mode-admin-dashboard .web-card,
  .shell.mode-admin-dashboard .web-table-card,
  .shell.mode-admin-dashboard .web-stage-list article {
    padding: 12px;
  }

  .shell.mode-admin-dashboard .mechanical-grid,
  .shell.mode-admin-dashboard .mechanical-grid.two,
  .shell.mode-admin-dashboard .web-roster,
  .shell.mode-admin-dashboard .rotation-grid {
    grid-template-columns: 1fr;
  }

  .shell.mode-admin-dashboard .admin-trainer-head {
    display: none;
  }

  .shell.mode-admin-dashboard .admin-trainer-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 8px 10px;
  }

  .shell.mode-admin-dashboard .admin-trainer-row > *:not(.admin-select) {
    grid-column: 2;
  }

  .shell.mode-admin-dashboard .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shell.mode-admin-dashboard .admin-shortcut-actions {
    grid-template-columns: 1fr;
  }

  .shell.mode-admin-dashboard-tablet .admin-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell.mode-admin-dashboard-tablet .admin-shortcut-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-export-actions,
  .row-export-actions {
    display: none;
  }

  .mechanical-detail-grid,
  .mechanical-photo-gallery,
  .web-roster,
  .rotation-grid {
    grid-template-columns: 1fr;
  }

  .web-roster article.trainee-roster-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .trainee-photo {
    width: 64px;
    height: 82px;
    font-size: 19px;
  }

  .trainee-photo.large {
    width: 96px;
    height: 122px;
    font-size: 26px;
  }

  .trainee-brief-profile {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .trainer-trombinoscope-profile {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .web-briefing-profile,
  .web-briefing-summary,
  .web-briefing-details-grid {
    grid-template-columns: 1fr;
  }

  .prep-qr-card {
    grid-template-columns: 1fr;
  }

  .prep-qr-preview {
    justify-self: start;
  }

  .prep-qr-actions,
  .qr-modal-actions {
    grid-template-columns: 1fr;
  }

  .driving-balance-row {
    grid-template-columns: 1fr;
  }

  .official-doc-row {
    grid-template-columns: 1fr;
  }

  .official-doc-row nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preparation-contact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preparation-contact-row button {
    grid-column: 1 / -1;
  }

  .map-route-upload,
  .map-route-card,
  .map-route-empty {
    grid-template-columns: 1fr;
  }

  .map-route-upload {
    display: grid;
  }

  .map-route-card,
  .map-route-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .map-route-card .compact-action {
    width: 100%;
  }

  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .assistant-section-head {
    align-items: stretch;
  }

  .assistant-status-pill {
    justify-self: start;
    white-space: normal;
  }

  .assistant-answer-head {
    display: grid;
  }

  .assistant-answer-head > span {
    justify-self: start;
    white-space: normal;
  }

  .trainee-edit-details > summary {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .trainee-edit-details > summary em {
    grid-column: 2;
    justify-self: start;
  }

  .trainee-edit-summary-main small {
    white-space: normal;
  }

  .foad-progress-row {
    grid-template-columns: 1fr;
  }

  .transversal-entry-head,
  .transversal-entry-item,
  .transversal-entry-notes {
    grid-template-columns: 1fr;
  }

  .transversal-entry-block summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .transversal-block-choice-inline {
    grid-template-columns: repeat(4, minmax(34px, 1fr));
    width: 100%;
  }

  .transversal-choice-set {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transversal-entry-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .transversal-entry-actions nav {
    justify-content: stretch;
  }

  .transversal-entry-actions .compact-action {
    width: 100%;
  }

  .preparation-contact-actions {
    grid-template-columns: 1fr;
  }

  .archive-msp-grid {
    display: flex;
  }

  .mechanical-alert-head,
  .macbook-backup-head,
  .mechanical-alert-row,
  .driver-rotation-head {
    align-items: stretch;
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .driver-rotation-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .driver-rotation-actions {
    justify-content: stretch;
  }

  .driver-rotation-actions .compact-action {
    width: 100%;
  }

  .mechanical-alert-head,
  .macbook-backup-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mechanical-alert-row .outline {
    grid-column: 2;
    justify-self: start;
  }

  .import-box,
  .doc-upload-box,
  .trainee-edit-row,
  .msp-setting-row {
    grid-template-columns: 1fr;
  }

  .device-switcher {
    display: none;
  }

  .shell {
    display: block;
    padding: 0;
  }

  .shell.is-loading,
  .shell.mode-login-web {
    display: grid;
    grid-template-columns: minmax(0, 100%);
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .panel {
    display: none;
  }

  .web-login-page {
    grid-template-columns: 1fr;
  }

  .web-login-panel {
    min-height: 100svh;
    padding: 28px 18px;
    box-shadow: none;
  }

  .web-login-title h1 {
    font-size: 34px;
  }

  .web-login-visual {
    display: none;
  }

  .shell.mode-simulation > .phone {
    width: 100%;
    height: auto;
    min-height: 100svh;
  }

  .shell.mode-simulation > .phone > .app {
    min-height: 100svh;
    overflow-y: auto;
  }

  .dual-phone-sim {
    min-height: 100svh;
    padding: 14px;
  }

  .sim-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .sim-title-row h2 {
    font-size: 22px;
  }

  .sim-title-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sim-phones {
    grid-template-columns: minmax(0, 390px);
    justify-content: center;
    gap: 14px;
  }

  .sim-phone-frame {
    width: 100%;
    border-width: 5px;
    border-radius: 20px;
  }

  .sim-phone-status {
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  .sim-screen {
    height: min(76svh, 740px);
    min-height: 560px;
    max-height: 740px;
    padding: 10px;
    gap: 10px;
  }

  .sim-screen h3 {
    font-size: 17px;
  }

  .sim-screen p {
    font-size: 11px;
  }

  .sim-screen .primary,
  .sim-screen .outline,
  .sim-screen .secondary {
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }

  .sim-screen .gauge {
    gap: 5px;
  }

  .sim-screen .gauge button {
    height: 42px;
    font-size: 16px;
  }

  .sim-screen .item-code {
    font-size: 16px;
  }

  .sim-screen .sim-answer-row {
    gap: 5px;
  }

  .sim-screen .sim-answer-row button {
    min-height: 40px;
    font-size: 12px;
  }

  .panel {
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 390px) {
  .top {
    padding: 13px 14px 10px;
  }

  .content {
    padding: 18px 14px 16px;
    gap: 14px;
  }

  .student-start-content {
    padding-bottom: 88px;
    scroll-padding-bottom: 112px;
  }

  .start-title {
    font-size: 23px;
    line-height: 1.12;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .trainer-place-content .fctt-place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-text {
    font-size: 24px;
  }

  .choice {
    min-height: 64px;
  }

  .gauge {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .mechanical-public-tabs {
    grid-template-columns: 1fr;
  }

  .morning-check-grid {
    grid-template-columns: 1fr;
  }

  .morning-choice {
    flex-basis: 76px;
  }

  .morning-day-details > summary {
    font-size: 20px;
  }

  .morning-wizard-head strong {
    font-size: 20px;
  }

  .morning-wizard-actions {
    grid-template-columns: 1fr 1fr;
  }

  .morning-wizard-actions [data-cancel-morning-check] {
    grid-column: 1 / -1;
  }

  .gauge button {
    min-height: 50px;
    font-size: 20px;
  }

  .feeling-slider-card {
    gap: 12px;
    padding: 14px 12px 12px;
  }

  .feeling-slider-head {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .feeling-slider-head span {
    text-align: left;
  }

  .feeling-slider-head span:last-child {
    text-align: right;
  }

  .feeling-slider-head output {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
    order: -1;
  }

  .feeling-range {
    height: 52px;
  }

  .feeling-scale {
    grid-template-columns: repeat(3, 1fr);
  }

  .text-zone.tall {
    min-height: 116px;
    font-size: 17px;
  }

  .trainer-suggestions {
    padding: 12px;
  }

  .trainer-suggestions-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .trainer-suggestion-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trainer-suggestion-chip {
    width: 100%;
    min-height: 46px;
    font-size: 14px;
  }

  .student-start-footer {
    min-height: 62px;
    align-items: center;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .student-start-footer .primary {
    min-height: 46px;
    padding: 0 16px;
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .trainer-sheet-toolbar,
  .mechanical-sheet-toolbar,
  .trainer-qr-sheet-actions,
  .trainer-qr-sheet-actions > div {
    align-items: stretch;
    flex-direction: column;
  }

  .trainer-qr-sheet {
    padding: 14px;
  }

  .certification-fields {
    grid-template-columns: 1fr;
  }

  .certification-fields label {
    border-right: 0;
  }

  .certification-block-head,
  .certification-analysis-grid {
    grid-template-columns: 1fr;
  }

  .certification-choice-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .certification-choice-row .block-mark {
    width: 100%;
  }

  .mechanical-panel summary {
    align-items: flex-start;
  flex-direction: column;
}

.mechanical-daily-tabs {
  grid-template-columns: 1fr;
}

.mechanical-report-head {
  align-items: stretch;
  flex-direction: column;
}

.mechanical-report-head .compact-action {
  width: fit-content;
}

.mechanical-report-actions {
  justify-content: flex-start;
}

.mechanical-report-edit-grid {
  grid-template-columns: 1fr;
}

.departmental-fleet-head {
  display: none;
}

  .departmental-fleet-row {
    grid-template-columns: 1fr 1fr;
  }

  .departmental-fleet-row input[name="commune"],
  .departmental-fleet-row input[name="notes"] {
    grid-column: 1 / -1;
  }

  .archive-session-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .preparation-contact-row {
    grid-template-columns: 1fr;
  }

  .archive-msp-grid {
    display: flex;
  }

  .archive-msp-card {
    flex-basis: 280px;
    min-width: 280px;
    max-width: 280px;
  }

  .archive-msp-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .replacement-grid {
    grid-template-columns: 1fr;
  }

  .summative-jury-head {
    display: grid;
  }

  .summative-jury-grid,
  .summative-jury-texts {
    grid-template-columns: 1fr;
  }

  .summative-jury-row-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catchup-form-head,
  .catchup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catchup-form-grid,
  .catchup-decision-grid,
  .catchup-notes {
    grid-template-columns: 1fr;
  }

  .catchup-form-grid label.wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .stage-session-form,
  .lic-school-file,
  .lic-school-file nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  body:has(.generated-password-panel) > *:not(.shell),
  body:has(.generated-password-panel) .web-header,
  body:has(.generated-password-panel) .web-tabs,
  body:has(.generated-password-panel) .web-section-head,
  body:has(.generated-password-panel) .admin-security-card,
  body:has(.generated-password-panel) .admin-trainer-table-card,
  body:has(.generated-password-panel) .device-switcher {
    display: none !important;
  }

  body:has(.generated-password-panel) .shell,
  body:has(.generated-password-panel) .phone,
  body:has(.generated-password-panel) .app,
  body:has(.generated-password-panel) .web-page,
  body:has(.generated-password-panel) .web-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body:has(.generated-password-panel) .statusbar {
    display: none !important;
  }

  body:has(.generated-password-panel) .generated-password-panel {
    border: 0;
    background: #fff;
  }

  body:has(.generated-password-panel) .generated-password-head .web-actions-row {
    display: none;
  }

  body:has(.trainer-qr-sheet-modal) > :not(.trainer-qr-sheet-modal),
  body:has(.mechanical-qr-sheet-modal) > :not(.mechanical-qr-sheet-modal) {
    display: none !important;
  }

  .trainer-qr-sheet-modal,
  .mechanical-qr-sheet-modal {
    position: static;
    display: block;
    padding: 0;
    background: #fff;
  }

  .trainer-qr-sheet-card,
  .mechanical-qr-sheet-card {
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .trainer-qr-sheet-actions {
    display: none;
  }

  .trainer-qr-sheet,
  .mechanical-qr-sheet {
    border: 0;
    padding: 0;
    background: #fff;
  }

  .trainer-qr-sheet-grid,
  .mechanical-qr-sheet-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10mm;
  }

  .trainer-qr-sheet-item,
  .mechanical-qr-sheet-item {
    break-inside: avoid;
    border-color: #cfd7e5;
  }

  .trainer-qr-sheet-item a,
  .mechanical-qr-sheet-item a {
    display: none;
  }
}
