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

.gc-page fieldset{border:1px solid var(--gc-line);border-radius:8px;padding:10px}
.gc-page .gc-sim-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:center}
.gc-page #gc-scene{width:100%;max-height:330px;background:var(--gc-soft);border-radius:8px}
.gc-page #gc-scene text{fill:var(--gc-ink);font:14px system-ui,sans-serif}
.gc-page #gc-ball{fill:var(--gc-accent)}
.gc-page .gc-ground{stroke:var(--gc-ink);stroke-width:3}
.gc-page .gc-arrow{stroke:var(--gc-secondary);stroke-width:3}
.gc-page #gc-arrow-head path{fill:var(--gc-secondary)}
.gc-page #gc-sim-values{margin:0;display:grid;grid-template-columns:1fr;gap:4px}
.gc-page #gc-sim-values dt{font-size:13px;color:var(--gc-muted);margin-top:7px}
.gc-page #gc-sim-values dd{font-size:18px;color:var(--gc-ink);font-weight:700;margin:0;overflow-wrap:anywhere}
.gc-page #gc-slider{width:100%;height:44px;accent-color:var(--gc-accent);display:block}
.gc-page #gc-active-svg,.gc-page .gc-bars{width:100%;height:auto;display:block}
.gc-page .gc-choices{display:flex;flex-wrap:wrap;gap:8px 16px}
.gc-page #gc-graph-caption{font-size:13px}
@media(max-width:540px){.gc-page .gc-sim-grid{grid-template-columns:1fr}.gc-page #gc-scene{max-height:250px}}
@media(prefers-reduced-motion:reduce){.gc-page *{scroll-behavior:auto!important;transition:none!important}}
@media print{body:has(.gc-page) :is(#gc-form,#gc-compare-form,#gc-records-panel,.gc-no-print){display:none!important}.gc-page #gc-active-svg{max-height:300px}.gc-page #gc-simulation{break-inside:avoid}.gc-page #gc-scene{max-height:200px}}
