:root {
  color-scheme: light;
  --red: #c9002b;
  --ink: #24292f;
  --muted: #59636f;
  --border: #dce1e6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f3f4f6; color: var(--ink); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
header { background: white; border-bottom: 3px solid var(--red); }
.header-content { max-width: 1000px; margin: auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.header-content img { object-fit: contain; }
.header-content span { border-left: 1px solid var(--border); padding-left: 24px; color: var(--muted); font-size: 15px; }
.header-content strong { display: block; color: var(--ink); font-weight: 600; }
main { max-width: 960px; margin: 32px auto 48px; padding: 0 24px; }
h1 { margin: 4px 0 10px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; }
h2 { font-size: 18px; margin: 0 0 12px; }
p { margin: 8px 0 16px; }
.intro > p:last-child, .footnote { color: var(--muted); }
.eyebrow { color: var(--red); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card { background: white; border: 1px solid var(--border); border-radius: 6px; padding: 26px; margin-top: 22px; box-shadow: 0 2px 3px #00000005; }
.session { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.session h1 { margin: 0; }
.intro { margin-top: 26px; }
.intro h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; margin-bottom: 10px; }
.session p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input { width: 100%; min-width: 0; border: 1px solid #aeb7c2; border-radius: 4px; padding: 10px 12px; color: var(--ink); background: white; font: inherit; }
input:focus { outline: 2px solid #c9002b44; outline-offset: 2px; border-color: var(--red); }
input:disabled { background: #f5f6f7; color: #606a75; }
small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.hint { background: #f5f6f8; padding: 14px; margin: 24px 0; font-size: 14px; border-radius: 4px; }
button { border: 1px solid var(--red); border-radius: 4px; background: var(--red); color: white; font: 600 14px/1.4 "Segoe UI", Arial, sans-serif; padding: 11px 16px; cursor: pointer; }
button:hover:enabled { background: #a80024; }
button:focus-visible { outline: 3px solid #24292f; outline-offset: 3px; }
button:disabled, fieldset:disabled button { cursor: not-allowed; opacity: .5; }
button.secondary { background: white; color: var(--ink); border-color: #aeb7c2; }
button.secondary:hover:enabled { background: #f0f2f4; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.recovery { margin-top: 20px; }
.recovery:has(> [hidden]):not(:has(> :not([hidden]))) { display: none; }
#status { color: var(--muted); font-size: 14px; min-height: 21px; margin: 16px 0 0; }
.notice { border: 1px solid #b5c8dc; border-left: 4px solid #3b6b9b; padding: 16px 18px; border-radius: 4px; margin-top: 18px; background: #edf4fb; overflow-wrap: anywhere; }
.notice.warning { background: #fff8e6; border-color: #e7ce8c; border-left-color: #9c6a00; }
.notice.error { background: #fdecea; border-color: #efc4bf; border-left-color: #b42318; color: #7a1a12; }
.notice.success { background: #edf7ee; border-color: #bdd9c0; border-left-color: #2e7135; color: #235b29; }
.notice:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.footnote { font-size: 13px; margin-top: 20px; }
footer { max-width: 960px; padding: 20px 24px; margin: auto; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
a { color: var(--ink); }
@media (max-width: 680px) {
  main { padding: 0 16px; margin-top: 24px; }
  .card { padding: 20px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .session { align-items: stretch; flex-direction: column; }
  .actions { flex-direction: column; }
  button { width: 100%; }
  footer { flex-direction: column; }
}
