:root {
  --bg: #eef4f9;
  --panel: #ffffff;
  --panel-soft: #f6f9fc;
  --ink: #1d2f44;
  --muted: #3a4c62;
  --line: #d7e1ea;
  --accent: #355f8a;
  --accent-hover: #2f557c;
  --accent-soft: #dfeaf5;
  --danger: #b42318;
  --warning: #7e5a16;
  --warning-bg: #fff2da;
  --notice-bg: #edf3f9;
  --notice-error-bg: #fdecec;
  --control-bg: #ffffff;
  --control-ink: #1d2f44;
  --code-bg: #f6f9fc;
  --pill-bg: #dfeaf5;
  --pill-line: #bccbd9;
  --pill-ink: #23476b;
  --danger-bg: #fdecec;
  --danger-line: #efb8b8;
  --success: #1f7a1f;
  --success-line: #9dd2af;
  --mini-button-bg: #3a4c62;
  --sidebar-bg: #355f8a;
  --sidebar-ink: #ffffff;
  --sidebar-muted: rgba(238,245,252,0.9);
  --sidebar-line: rgba(255,255,255,0.2);
  --sidebar-control-bg: rgba(255,255,255,0.16);
  --sidebar-control-line: rgba(255,255,255,0.2);
  --metric-bg: #ffffff;
  --table-head-bg: #edf3f9;
  --shadow: 0 12px 28px rgba(31, 55, 82, 0.12);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #08111d;
  --panel: #0f1d2e;
  --panel-soft: #14263c;
  --ink: #e8f2ff;
  --muted: #b7cde6;
  --line: #244566;
  --accent: #6ca2d7;
  --accent-hover: #2f6299;
  --accent-soft: #23425f;
  --danger: #ff8c7f;
  --warning: #ffc66d;
  --warning-bg: #342616;
  --notice-bg: #17314f;
  --notice-error-bg: #452831;
  --control-bg: #0d1a2a;
  --control-ink: #e8f2ff;
  --code-bg: #14263c;
  --pill-bg: #23425f;
  --pill-line: #2f5f93;
  --pill-ink: #dcebfa;
  --danger-bg: #452831;
  --danger-line: #8f4b5c;
  --success: #8ee39a;
  --success-line: #2f5f93;
  --mini-button-bg: #1c436d;
  --sidebar-bg: #122943;
  --sidebar-ink: #eef5fc;
  --sidebar-muted: rgba(238,245,252,0.88);
  --sidebar-line: rgba(255,255,255,0.18);
  --sidebar-control-bg: rgba(255,255,255,0.12);
  --sidebar-control-line: rgba(255,255,255,0.2);
  --metric-bg: #0f1d2e;
  --table-head-bg: #17314f;
  --shadow: 0 16px 28px rgba(2, 8, 18, 0.48);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 8% -10%, #d5e2ef 0%, transparent 48%),
    radial-gradient(circle at 100% 10%, #dce9f4 0%, transparent 40%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% -10%, #18304a 0%, transparent 48%),
    radial-gradient(circle at 100% 10%, #1a3550 0%, transparent 40%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.button.secondary {
  background: var(--panel-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}
button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
button:hover { background: var(--accent-hover); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  background: var(--control-bg);
  color: var(--control-ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"] { width: auto; }
textarea { min-height: 100px; }
code {
  background: var(--code-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
}
table { width: 100%; border-collapse: collapse; }
thead, th { background: var(--table-head-bg); }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 256px;
  height: 100dvh;
  background: linear-gradient(180deg, var(--sidebar-bg), #426f9b 45%, #678eb4);
  color: var(--sidebar-ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 4px 0 18px rgba(20, 42, 65, 0.22);
}
html[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #122943, #1b3e63 45%, #27557f);
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.45);
}
.brand-panel {
  flex: 0 0 auto;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--sidebar-line);
}
.school-logo {
  display: block;
  width: 100% !important;
  height: 96px !important;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 12px;
}
.brand-title {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.school-name {
  color: var(--sidebar-muted);
  font-size: 13px;
}
.school-switch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.school-switch select {
  width: 100%;
  background: var(--sidebar-control-bg);
  border-color: var(--sidebar-control-line);
  color: var(--sidebar-ink);
}
.school-switch option { color: var(--control-ink); background: var(--control-bg); }
.school-switch button {
  background: var(--sidebar-control-bg);
  border: 1px solid var(--sidebar-control-line);
  text-align: center;
  padding: 8px 10px;
}
.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.logout-form {
  flex: 0 0 auto;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--sidebar-line);
}
.sidebar a, .sidebar button {
  display: block;
  width: 100%;
  color: var(--sidebar-ink);
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.sidebar a:hover, .sidebar button:hover {
  background: rgba(255,255,255,0.18);
}
.nav-group {
  margin: 2px 0;
}
.nav-group summary {
  display: block;
  width: 100%;
  color: var(--sidebar-ink);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.nav-group summary:hover {
  background: rgba(255,255,255,0.18);
}
.nav-group a {
  padding-left: 28px;
}
.sidebar .school-switch button {
  background: var(--sidebar-control-bg);
  border: 1px solid var(--sidebar-control-line);
  border-radius: 6px;
  text-align: center;
  padding: 8px 10px;
}
.with-sidebar {
  margin-left: 256px;
  padding: 28px;
  width: calc(100vw - 256px);
  max-width: none;
}
.login-panel, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
}
.login-panel { max-width: 420px; margin: 80px auto; }
.login-panel label, .grid-form label, .scan-form label { display: block; margin: 12px 0 6px; font-weight: 600; }
.auth-panel {
  width: min(1120px, calc(100vw - 40px));
  margin: 48px auto;
}
.auth-head {
  max-width: 760px;
  margin-bottom: 22px;
}
.auth-head h1 { margin: 0 0 8px; }
.auth-head p { color: var(--muted); margin: 0; }
.mfa-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.mfa-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  padding: 18px;
}
.mfa-card h2,
.mfa-card h3 { margin-top: 0; }
.compact-form {
  grid-template-columns: 140px minmax(0, 1fr);
}
.totp-setup-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.qr-card {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.qr-card svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 196px;
}
.totp-secret {
  word-break: break-all;
  white-space: normal;
}
.recovery-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.recovery-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
}
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.panel > table,
.panel > form + table {
  min-width: 760px;
}
.panel {
  overflow-x: auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: none;
  margin-bottom: 18px;
}
.metric {
  background: var(--metric-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.metric strong { display: block; font-size: 32px; }
.compact-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 16px;
}
.compact-metrics .metric {
  box-shadow: none;
  padding: 16px;
}
.compact-metrics .metric strong {
  font-size: 28px;
  color: var(--accent);
}
.metric.warning { border-color: #ffd591; background: var(--warning-bg); }
.metric span, .muted { color: var(--muted); }
.alert { color: var(--warning); font-weight: 700; }
.notice { padding: 12px; border-radius: 6px; margin: 10px 0; background: var(--notice-bg); }
.notice.error { background: var(--notice-error-bg); color: var(--danger); }
.notice.warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(255, 213, 145, 0.45); }
.code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding-left: 20px;
}
.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.report-tile {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
}
.report-tile strong { display: block; margin-bottom: 6px; color: var(--ink); }
.report-tile span { color: var(--muted); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  background: var(--pill-bg);
  border: 1px solid var(--pill-line);
  color: var(--pill-ink);
  border-radius: 999px;
  padding: 4px 9px;
  margin: 2px;
  font-size: 13px;
}
.pill.danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.pill.success { background: rgba(31, 122, 31, 0.12); border-color: var(--success-line); color: var(--success); }
.muted-pill { background: var(--panel-soft); border-color: var(--line); color: var(--muted); }
.warning-pill { background: var(--warning-bg); border-color: #ffd591; color: var(--warning); }
.small-button {
  display: inline-block;
  width: auto;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.danger-button {
  background: var(--danger) !important;
  color: #fff !important;
}
.button-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}
.status-ok, .status-blocked {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 6px;
}
.status-ok { color: var(--success); }
.status-blocked { color: var(--danger); }
.error-text { color: var(--danger) !important; }
.grid-form { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.grid-form button { grid-column: 2; justify-self: start; }
.inline-form { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.inline-mini { display: inline-block; margin-left: 8px; }
.inline-mini button { padding: 5px 8px; font-size: 13px; background: var(--mini-button-bg); }
.user-row-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 150px minmax(160px, 1fr) auto;
  gap: 8px;
}
.source-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr);
  gap: 8px;
}
.pool-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(170px, 1fr) minmax(190px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.pool-filter-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 700;
}
.accessory-row-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(4, auto) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.inline-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}
.logo-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.logo-preview {
  width: 96px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  padding: 6px;
}
.theme-toggle {
  margin-bottom: 8px;
  border: 1px solid var(--sidebar-control-line) !important;
  border-radius: 6px;
  background: var(--sidebar-control-bg) !important;
  text-align: center !important;
}
.checklist-form {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) auto;
  gap: 8px;
}
.checklist-phase-stack {
  display: grid;
  gap: 14px;
}
.checklist-phase {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel-soft);
}
.checklist-phase h3 {
  margin: 0;
}
.checklist-item-list {
  display: grid;
  gap: 10px;
}
.checklist-item-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.delivery-checklist-form {
  display: grid;
  gap: 14px;
}
.checklist-action-row {
  display: grid;
  grid-template-columns: max-content max-content minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}
.inline-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.form-field-kind {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.checklist-action-row .form-field-kind + input {
  grid-column: span 2;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.action-grid form,
.action-grid button {
  width: 100%;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  margin-top: 4px;
  padding: 12px 0 0;
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.official-checklist {
  display: grid;
  gap: 18px;
}
.official-check-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.official-check-section h3 {
  margin: 0;
}
.official-check-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.official-check-grid {
  display: grid;
  gap: 12px;
}
.official-check-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.official-field {
  display: grid;
  gap: 6px;
}
.official-field label {
  font-weight: 700;
}
.official-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-weight: 700;
}
.official-check input[type="checkbox"] {
  margin-top: 3px;
}
.compact-list {
  margin: 0;
  padding-left: 28px;
  color: var(--muted);
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inline-upload-form {
  display: inline-flex;
}
.file-button {
  cursor: pointer;
}
.file-button input[type="file"] {
  display: none;
}
.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-list a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover,
.clickable-row:focus {
  background: var(--panel-soft);
  outline: none;
}
.signature-field {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.signature-pad,
.signature-preview {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
.signature-preview {
  display: block;
  object-fit: contain;
}
.signature-preview.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--panel-soft);
}
.signature-actions {
  display: flex;
  justify-content: flex-end;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.reader { max-width: 520px; margin-top: 14px; }
.details { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 14px; }
.details dt { font-weight: 700; }
.details dd { margin: 0; }
.modal-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.modal-dialog.wide-dialog { width: min(1180px, calc(100vw - 32px)); }
.modal-dialog::backdrop { background: rgba(4, 12, 22, 0.62); }
.modal-close-form {
  float: right;
  margin: -10px -8px 8px 12px;
}
.modal-close-form button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--panel-soft);
}
.modal-form { margin-top: 18px; }
.mapping-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.mapping-suggestion {
  margin-top: 6px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 600;
}
.technical-path {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.planned-person {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin: 16px 0;
}
.document-steps {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}
.document-steps li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.document-steps li span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.document-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.document-steps li.current {
  border-color: var(--accent);
  background: var(--notice-bg);
}
.document-steps li.complete { border-color: var(--success-line); }
.pdf-frame-wrap {
  width: 100%;
  max-width: none;
  height: min(82dvh, 1040px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 12px;
}
.pdf-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--panel);
}
.pdf-fill-form {
  display: grid;
  gap: 14px;
  margin: 16px 0 22px;
}
.pdf-field-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}
.pdf-field-grid > label:first-child,
.pdf-field-grid > label:not(.inline-check) {
  font-weight: 700;
}
.pdf-field-grid small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}
.pdf-checkbox {
  justify-self: start;
}
.pdf-ink-grid {
  display: grid;
  gap: 14px;
}
.pdf-ink-field .signature-pad {
  height: 140px;
}
.pdf-drawing-field .signature-pad {
  height: min(42dvh, 360px);
}
.pdf-final-confirm {
  justify-self: end;
}
.pdf-canvas-editor {
  display: grid;
  gap: 12px;
}
.pdf-editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.pdf-editor-pages {
  display: grid;
  gap: 18px;
}
.pdf-editor-page {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.pdf-editor-page canvas {
  display: block;
  width: 100%;
  height: auto;
}
.pdf-editor-draw {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: crosshair;
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; height: auto; overflow: visible; }
  .sidebar-nav { overflow: visible; }
  .with-sidebar { margin-left: 0; padding: 16px; }
  .grid-form, .details { grid-template-columns: 1fr; }
  .pdf-field-grid { grid-template-columns: 1fr; }
  .user-row-form { grid-template-columns: 1fr; }
  .pool-filter-form { grid-template-columns: 1fr; }
  .accessory-row-form { grid-template-columns: 1fr; }
  .checklist-form { grid-template-columns: 1fr; }
  .checklist-item-row { grid-template-columns: 1fr; }
  .checklist-action-row { grid-template-columns: 1fr; }
  .official-check-grid.two { grid-template-columns: 1fr; }
  .photo-actions { flex-direction: column; }
  .inline-upload-form, .file-button { width: 100%; }
  .form-actions { justify-content: stretch; }
  .form-actions button { width: 100%; }
  .grid-form button { grid-column: 1; }
}
@media print {
  :root, body[data-theme="dark"] {
    --bg: #fff;
    --text: #111;
    --muted: #444;
    --panel: #fff;
    --line: #999;
  }
  body { background: #fff; color: #111; }
  .sidebar, .no-print, .theme-toggle { display: none !important; }
  .with-sidebar { margin-left: 0; padding: 0; }
  .panel, .print-panel {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
  }
  a { color: #111; text-decoration: none; }
}
