.modern-subpage #content.ct-page {
  --ct-ink: #19363a;
  --ct-muted: #415d61;
  --ct-line: #cbdcdb;
  --ct-panel: #fff;
  --ct-soft: #edf6f3;
  --ct-accent: #075d54;
  --ct-danger: #9d272e;
  --ct-primary: #136b61;
  --ct-secondary: #70419c;
  color: var(--ct-ink);
}
.ct-page *, .ct-page *::before, .ct-page *::after { box-sizing: border-box; min-width: 0; }
.ct-page [hidden] { display: none !important; }
.modern-subpage #content.ct-page :is(h1,h2,h3,h4,strong,legend,caption) { color: var(--ct-ink); }
.modern-subpage #content.ct-page h1 { font-size: clamp(24px, 4.5vw, 34px); line-height: 1.35; margin: 10px 0 14px; word-break: keep-all; }
.modern-subpage #content.ct-page h2 { font-size: clamp(20px, 3.7vw, 26px); line-height: 1.45; margin: 0 0 12px; }
.modern-subpage #content.ct-page h3 { font-size: 18px; line-height: 1.5; margin: 18px 0 10px; }
.modern-subpage #content.ct-page p { margin: 10px 0 14px; color: var(--ct-muted); line-height: 1.75; overflow-wrap: anywhere; }
.modern-subpage #content.ct-page .ct-kicker { color: var(--ct-accent); font-size: 13px; font-weight: 700; }
.modern-subpage #content.ct-page .ct-header p:not(.ct-kicker) { font-size: 16px; font-weight: 400; margin: 12px 0; }
.ct-page .ct-panel {
  background: var(--ct-panel); border: 1px solid var(--ct-line); border-radius: 10px; padding: clamp(12px, 2.7vw, 22px); margin: 16px 0 22px;
}
.ct-page fieldset { border: 0; padding: 0; margin: 16px 0; }
.ct-page legend { font-weight: 750; margin: 0 0 7px; padding: 0; }
.ct-page .ct-grid, .ct-page .ct-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.ct-page label { display: block; color: var(--ct-ink); font-size: 14px; font-weight: 650; }
.modern-subpage #content.ct-page :is(input[type=text],input[type=date],select,textarea) {
  display: block; width: 100%; min-height: 44px; height: auto; margin-top: 4px; padding: 7px 9px; font: inherit; color: var(--ct-ink);
  background: var(--ct-panel); border: 1px solid var(--ct-line); border-radius: 6px;
}
.modern-subpage #content.ct-page select { appearance: auto; }
.modern-subpage #content.ct-page button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; height: auto; padding: 8px 12px;
  font: inherit; font-size: 14px; font-weight: 750; line-height: 1.45; white-space: normal; color: var(--ct-ink);
  background: var(--ct-panel); border: 1px solid var(--ct-line); border-radius: 7px; box-shadow: none; cursor: pointer;
}
.modern-subpage #content.ct-page button:hover { background: var(--ct-soft); }
.modern-subpage #content.ct-page button.ct-primary { background: var(--ct-primary); color: white; }
.modern-subpage #content.ct-page button:disabled { opacity: .6; cursor: not-allowed; }
.ct-page :is(input,select,textarea,button,summary,a,[tabindex]):focus-visible { outline: 3px solid var(--ct-accent); outline-offset: 3px; }
.ct-page details { border-top: 1px solid var(--ct-line); padding: 7px 0; margin-top: 10px; }
.ct-page summary { color: var(--ct-accent); font-weight: 700; min-height: 40px; padding: 7px 0; cursor: pointer; }
.modern-subpage #content.ct-page .ct-error { color: var(--ct-danger); font-weight: 700; }
.ct-page .ct-error:empty { display: none; }
.ct-page .ct-card { background: var(--ct-soft); border-radius: 8px; padding: 10px; border: 1px solid var(--ct-line); }
.ct-page .ct-card span, .ct-page .ct-card strong { display: block; overflow-wrap: anywhere; }
.ct-page .ct-card strong { font-size: clamp(16px, 3.5vw, 24px); }
.ct-page .ct-entry { border: 1px solid var(--ct-line); border-radius: 8px; padding: 12px; }
.ct-page .ct-entry legend { padding-inline: 6px; }
.ct-page .ct-actions label { align-self: end; }
.ct-page .ct-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 12px 0; }
.ct-page .ct-detail > * { padding: 6px; margin: 0; border-bottom: 1px solid var(--ct-line); overflow-wrap: anywhere; }
.ct-page .ct-detail dd { text-align: right; }
.ct-page .ct-scroll { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.ct-page table { width: 100%; margin: 0; font-size: 13px; color: var(--ct-ink); border-collapse: collapse; }
.ct-page caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.ct-page :is(th,td) { padding: 8px; border: 1px solid var(--ct-line); white-space: nowrap; }
.ct-page thead { background: var(--ct-soft); }
.ct-page .ct-header { margin-bottom: 20px; }
.ct-page #ct-result-title { scroll-margin-top: 95px; }
.ct-page .ct-guide li { color: var(--ct-muted); overflow-wrap: anywhere; }
.ct-page .ct-guide h2:not(:first-child) { margin-top: 24px !important; }
.ct-page [aria-invalid=true] { outline: 2px solid var(--ct-danger); }
.modern-subpage #content.ct-page.ct-dark {
  color-scheme: dark; --ct-ink: #ecf6f5; --ct-muted: #c6dedb; --ct-line: #50736e; --ct-panel: #172d30;
  --ct-soft: #223d3d; --ct-accent: #a4ebd6; --ct-danger: #ffbdc1; --ct-secondary: #d7b8ff; background: var(--ct-panel);
}
.modern-subpage #content.ct-page.ct-dark a { color: var(--ct-accent); }
@media (max-width: 540px) {
  .ct-page .ct-grid { grid-template-columns: 1fr; }
  .ct-page .ct-actions button { flex: 1 1 auto; }
  .ct-page .ct-actions label { width: 100%; }
}
@media print {
  body:has(.ct-page) :is(.modern-site-header,#sidebar,#copyright,.ct-no-print,.modern-mobile-dock,ins,iframe) { display: none !important; }
  body:has(.ct-page) :is(#main,#main > .row > div,#content,.wrapper,#ct-result,#ct-compare-panel) {
    width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
    background: white !important; color: black !important; box-shadow: none !important;
  }
  .modern-subpage #content.ct-page:is(.ct-page, .ct-dark) { --ct-panel: #fff; --ct-ink: #111; --ct-muted: #222; --ct-soft: #f2f2f2; --ct-accent: #123833; }
  .ct-page .ct-scroll { overflow: visible; }
  .ct-page :is(th,td) { white-space: normal; overflow-wrap: anywhere; padding: 2px; font-size: 9px; }
  .ct-page tr, .ct-page .ct-card { break-inside: avoid; }
}

.ct-page .ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.ct-page .ct-check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 10px 0; }
.modern-subpage #content.ct-page .ct-check input[type=checkbox] { appearance: auto; opacity: 1; position: static; width: 20px; height: 20px; margin: 0; flex: 0 0 20px; }
.ct-page .ct-note { background: var(--ct-soft); border-inline-start: 3px solid var(--ct-accent); padding: 12px; border-radius: 4px; }
.ct-page .ct-warnings { padding: 10px 10px 10px 28px; border: 1px solid var(--ct-danger); border-radius: 8px; }
.ct-page .ct-warnings li { margin: 6px 0; color: var(--ct-ink); font-size: 14px; }
.ct-page .ct-bars { display: block; width: 100%; height: auto; margin: 14px 0; max-width: 650px; }
.ct-page .ct-bars text { fill: var(--ct-ink); font-size: 15px; font-family: system-ui,sans-serif; }
.ct-page .ct-bars rect { fill: var(--ct-accent); }
.ct-page :is(#ct-details,#ct-periods,#ct-protocols) { margin-top: 24px; }
.ct-page .ct-entry { padding: 12px; }
@media print {
  body:has(.ct-page) :is(#ct-history,#ct-compare-panel:has(#ct-comparison-result:empty)) { display: none !important; }
}

