:root {
  color-scheme: light;
  --ink: #1c302e;
  --muted: #667570;
  --paper: #e8ede7;
  --card: #f8f9f5;
  --line: #cbd6ce;
  --accent: #df724e;
  --green: #225c50;
  font-family: 'Trebuchet MS', 'Lucida Sans', sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 8% 12%, #f5f6df 0, transparent 37%),
    radial-gradient(ellipse at 90% 75%, #ceded5 0, transparent 40%),
    var(--paper);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: repeating-linear-gradient(0deg, transparent 0 23px, #9aafa0 24px);
}
.shell { position: relative; max-width: 1440px; padding: 0 6.4%; margin: auto; min-height: 100vh; display: flex; flex-direction: column; }
.masthead, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.masthead { padding: 31px 0; border-bottom: 1px solid var(--ink); }
.brand { font-size: 18px; font-weight: 800; letter-spacing: -.08em; }
.brand-icon { color: var(--accent); font-size: 23px; vertical-align: -1px; margin-right: 7px; }
.edition, .eyebrow, .facts, .panel-top, .panel-foot, label, .site-footer, .hint, .required, .optional {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: .055em;
}
.edition-number { color: var(--accent); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(40px, 7vw, 140px); flex: 1; align-items: center; padding: 65px 0 90px; }
.intro { align-self: center; animation: enter .65s both; }
.eyebrow { color: var(--green); font-weight: 500; display: flex; align-items: center; gap: 9px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #df724e23; }
h1 { font-family: Georgia, serif; font-size: clamp(52px, 5.6vw, 88px); letter-spacing: -.065em; line-height: 1.065; margin: 32px 0; font-weight: 700; }
.period { color: var(--accent); }
.intro > p { max-width: 430px; font-size: 17px; line-height: 1.8; color: #4f625b; }
.rule { width: 60px; height: 1px; background: var(--accent); margin: 45px 0 25px; }
.facts { display: grid; gap: 15px; color: var(--green); font-weight: 500; }
.panel { background: var(--card); border: 1px solid #d9e1d9; padding: 30px 34px 22px; box-shadow: 12px 12px 0 #d2ded3; animation: enter .65s .12s both; }
.panel-top { color: var(--green); display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.panel-top > span:last-child { font-size: 18px; }
h2 { font-size: 31px; line-height: 1.2; letter-spacing: -.065em; margin: 29px 0 9px; }
.panel-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 30px; }
label:not(.checkline) { display: block; font-weight: 500; color: var(--green); margin: 20px 0 9px; }
input:not([type=hidden]):not([type=checkbox]), textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 500 15px 'Trebuchet MS', sans-serif;
  border-radius: 0;
  padding: 14px 13px;
  outline-offset: 2px;
}
input:focus, textarea:focus { outline: 2px solid var(--green); }
input[type=file] { font-size: 13px !important; padding: 11px !important; }
input::file-selector-button { font: 600 12px 'Trebuchet MS', sans-serif; border: 0; padding: 8px 11px; color: var(--ink); background: var(--paper); margin-right: 10px; }
textarea { resize: vertical; min-height: 83px; }
.hint { color: var(--muted); font-size: 10px; margin: 8px 0 0; line-height: 1.5; }
.required { color: var(--accent); float: right; font-size: 10px; }
.optional { color: var(--muted); float: right; font-size: 10px; }
.checkline { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0; font-size: 12px; letter-spacing: 0; line-height: 1.5; cursor: pointer; }
.checkline input { accent-color: var(--green); margin: 2px 0 0; width: 17px; height: 17px; flex: 0 0 auto; }
.checkline small { display: block; color: var(--muted); font-size: 11px; }
button { cursor: pointer; }
form > button:not(.logout button) { background: var(--ink); border: 0; color: #fff; font: 700 14px 'Trebuchet MS', sans-serif; width: 100%; text-align: left; padding: 18px 20px; display: flex; justify-content: space-between; margin-top: 23px; }
form > button:hover { background: var(--green); }
form > button:disabled { opacity: .55; cursor: wait; }
.logout button { border: 0; background: none; text-decoration: underline; color: var(--green); font: 500 11px 'Courier New', monospace; padding: 0; }
.panel-foot { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 32px; color: #85958b; display: flex; justify-content: space-between; font-size: 9px; }
.site-footer { padding: 21px 0 25px; border-top: 1px solid var(--ink); color: var(--green); font-size: 10px; }
.message { padding: 12px; margin: 12px 0; line-height: 1.5; font-size: 13px; }
.message.error { background: #fae7df; color: #873e2c; }
.message.success { background: #e1eee4; color: #245742; }
.progress-wrap { margin-top: 20px; }
.progress-track { background: var(--line); height: 5px; }
#progress-bar { width: 0; height: 100%; background: var(--accent); transition: width .2s; }
#progress-text { display: block; margin-top: 8px; font: 11px 'Courier New', monospace; }
[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 850px) {
  .shell { padding: 0 5%; }
  .layout { grid-template-columns: 1fr; gap: 38px; padding: 45px 0 65px; }
  h1 { font-size: clamp(48px, 8vw, 70px); margin: 20px 0; }
  .rule, .facts { display: none; }
  .intro > p { margin-bottom: 0; }
  .panel { max-width: 580px; width: 100%; }
}
@media (max-width: 520px) {
  .masthead { padding: 20px 0; }
  .edition { font-size: 9px; text-align: right; }
  .layout { padding: 32px 0 50px; gap: 32px; }
  h1 { font-size: clamp(43px, 11vw, 58px); }
  .intro > p { font-size: 14px; }
  .panel { padding: 22px 20px 18px; box-shadow: 6px 6px 0 #d2ded3; }
  .site-footer { font-size: 8px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
