:root {
  --ink: #18312b;
  --muted: #4c5f55;
  --green: #185b46;
  --deep: #103f32;
  --pale: #e2eee5;
  --paper: #fbfaf5;
  --line: #cad5ca;
  --warm: #f3e9c6;
  --error: #9b2928;
  --focus: #2f6fd0;
  color-scheme: light;
  font-family: 'Atkinson Hyperlegible Next', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--green);
  caret-color: var(--green);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
::selection { background: var(--pale); color: var(--deep); }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.top, .page, .foot { width: min(760px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.dots { display: inline-grid; grid-template-columns: repeat(3, 9px); gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.dots i:nth-child(2) { background: #c9b57a; }
.dots i:nth-child(3) { background: #7fa894; }
.page { padding-bottom: 48px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.1; letter-spacing: -0.015em; margin: 12px 0 14px; text-wrap: balance; }
h2 { font-size: 1.35rem; margin: 34px 0 8px; }
h3 { font-size: 1.08rem; margin: 22px 0 4px; }
p, li { max-width: 68ch; }
.lead { font-size: 1.12rem; color: var(--muted); margin-top: 0; }
.panel { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: clamp(18px, 4vw, 32px); margin-top: 18px; }
form { display: grid; gap: 18px; }
label, .field { display: grid; gap: 6px; font-weight: 700; }
.field small { font-weight: 400; color: var(--muted); font-size: .97rem; }
label small, .hint { font-weight: 400; color: var(--muted); font-size: .97rem; }
input[type="text"], input[type="password"], select { width: 100%; max-width: 30rem; min-height: 50px; padding: 10px 12px; border: 2px solid #788a79; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
.check { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; }
summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 700; }
.top a:not(.mark) { min-height: 44px; display: inline-flex; align-items: center; }
button, .button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 12px; border: 2px solid var(--green); background: var(--green); color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
button:hover:enabled, .button:hover { background: var(--deep); border-color: var(--deep); }
button:disabled { opacity: .55; cursor: not-allowed; }
.quiet { background: #fff; color: var(--green); }
.quiet:hover:enabled, a.quiet:hover { background: var(--pale); color: var(--deep); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.status { min-height: 1.5em; margin: 0; font-weight: 700; }
.status.error { color: var(--error); }
.code { font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace; font-size: clamp(1.2rem, 4.6vw, 1.7rem); font-weight: 700; letter-spacing: .04em; background: var(--pale); border-radius: 12px; padding: 12px 16px; overflow-wrap: anywhere; margin: 6px 0 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
.steps { display: flex; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.steps li { flex: 1 1 0; height: 8px; border-radius: 99px; background: var(--line); }
.steps li.done { background: var(--green); }
.step-label { margin: 0 0 4px; font-weight: 700; color: var(--muted); }
#free-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#free-slots label { border: 2px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; justify-items: start; }
#free-slots img { width: 66px; height: 66px; object-fit: contain; }
ol.howto { padding-left: 1.3rem; display: grid; gap: 8px; }
.foot { border-top: 1px solid var(--line); padding-block: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 520px) {
  #free-slots { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
  .row > * { flex: 1 1 100%; }
}
@media print {
  .top, .foot, .noprint, button, .button { display: none !important; }
  .panel { border: 1px solid #000; }
  body { background: #fff; }
}
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.top .hint { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mark { white-space: nowrap; }
@media (max-width: 520px) {
  .top { flex-wrap: wrap; row-gap: 2px; }
  .top .hint { flex-basis: 100%; white-space: normal; overflow-wrap: anywhere; }
}
.panel h2 { margin-top: 0; }
