/* Clinilio report form: theme tokens match mre.report.html.CLINILIO */
:root {
  --ink: #012c55;
  --accent: #00879a;
  --accent-soft: #e0f2f3;
  --decor: #30c078;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --fg: #0f1f33;
  --muted: #55657a;
  --rule: #dde4ec;
  --error: #b42318;
  --focus: #00879a;
  --button: #006f7d;  /* white text 5.6:1 */
  --on-button: #ffffff;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #d6e4f5; --accent: #2bb3c0; --accent-soft: #0f3338; --bg: #0b1622;
    --surface: #102233; --fg: #e6edf5; --muted: #9fb0c3; --rule: #22374c;
    --error: #ff8a80; --focus: #2bb3c0; --button: #2bb3c0; --on-button: #04202a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #d6e4f5; --accent: #2bb3c0; --accent-soft: #0f3338; --bg: #0b1622;
  --surface: #102233; --fg: #e6edf5; --muted: #9fb0c3; --rule: #22374c;
  --error: #ff8a80; --focus: #2bb3c0; --button: #2bb3c0; --on-button: #04202a;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body);
  font-size: 1rem; line-height: 1.55; }
h1, h2 { font-family: var(--font-display); font-weight: 650; color: var(--ink); line-height: 1.2;
  margin: 0 0 0.5rem; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
h2 { font-size: 1.25rem; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.top { padding: 16px; max-width: 760px; margin: 0 auto; }
.logo-panel { display: inline-block; background: #fff; border-radius: 8px; padding: 6px 10px; }
.logo { height: 44px; width: auto; display: block; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.lede { color: var(--muted); margin: 0 0 1.25rem; max-width: 60ch; }
.rule { width: 72px; height: 3px; background: var(--decor); border: 0; margin: 0 0 1rem; }

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
  padding: 20px; }
.stepper { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.75rem; letter-spacing: 0.02em; }

.field { margin: 0 0 1rem; position: relative; }
label { display: block; font-weight: 500; margin: 0 0 0.3rem; }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=url], input:not([type]), select {
  width: 100%; font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 8px; padding: 0.65rem 0.75rem; min-height: 44px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; }
.err { color: var(--error); font-size: 0.9rem; margin: 0.3rem 0 0; min-height: 0; }
.err:empty { display: none; }
.note { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0 0; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.suggestions { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--rule);
  border-radius: 8px; background: var(--surface); }
.suggestions li { padding: 0.55rem 0.6rem; border-radius: 6px; cursor: pointer; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--accent-soft); }
.suggestions .sub { color: var(--muted); font-size: 0.88rem; display: block; }

.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.check label { font-weight: 400; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 500; margin: 0 0 0.3rem; padding: 0; }
.stack > * + * { margin-top: 8px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.25rem; }
button, .button { font: inherit; font-weight: 600; border-radius: 8px; min-height: 44px;
  padding: 0.6rem 1.1rem; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid transparent; }
.primary { background: var(--button); color: var(--on-button); }
.primary[disabled] { opacity: 0.6; cursor: progress; }
.secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.linkish { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent);
  font-weight: 500; text-decoration: underline; margin-top: 0.5rem; }
.ts { margin-top: 1rem; min-height: 0; }

.status .label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.4rem; overflow-wrap: anywhere; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--accent-soft);
  border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 0.5rem 0 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.keep { display: flex; gap: 8px; margin-top: 1rem; align-items: flex-end; flex-wrap: wrap; }
.keep .field { flex: 1 1 260px; margin: 0; }
.keep input { font-size: 0.85rem; }
.report-frame { width: 100%; border: 1px solid var(--rule); border-radius: 10px; margin-top: 1.25rem;
  background: #fff; min-height: 600px; display: block; }

.policy h2 { margin-top: 1.5rem; }
.policy table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.policy th, .policy td { text-align: left; border-bottom: 1px solid var(--rule); padding: 6px 8px;
  vertical-align: top; }
.policy .table-scroll { overflow-x: auto; }

.foot { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; color: var(--muted);
  font-size: 0.88rem; }
