:root {
  --paper: #F3F5F8; --ink: #1B2430; --muted: #5B6675; --line: #D6DCE4;
  --teal: #0F6E6E; --teal-soft: #E1F0EF;
  --amber: #8A5A0B; --amber-soft: #FBF0DA;
  --red: #B42318; --red-soft: #FDE8E6;
  --grey-soft: #E9ECF1; --white: #FFFFFF;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
       background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.screen { min-height: 100%; display: grid; place-items: start center; padding: 24px; }
.card { width: 100%; max-width: 620px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.card.wide { max-width: 860px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 1.1rem; margin: 26px 0 6px; }
.lead { color: var(--muted); margin: 0 0 22px; }
label { display: block; font-weight: 700; margin: 16px 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .92rem; }
input[type=text], input[type=url], input[type=number], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: inherit;
}
textarea { min-height: 72px; resize: vertical; font-size: .9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
code { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: .9em; }

.primary { width: 100%; margin-top: 22px; padding: 14px; border: 0; border-radius: 10px;
           background: var(--teal); color: #fff; font-weight: 700; font-size: 1.05rem; }
.primary:disabled { background: #9DB5B5; cursor: not-allowed; }
.ghost { padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); font-weight: 700; color: inherit; }
.ghost:disabled { color: var(--muted); cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.msg { padding: 12px 14px; border-radius: 8px; margin-top: 14px; }
.msg.ok { background: var(--teal-soft); color: var(--teal); }
.msg.bad { background: var(--red-soft); color: var(--red); }
.msg.warn { background: var(--amber-soft); color: var(--amber); }
.note { font-size: .9rem; color: var(--muted); margin-top: 12px; }
details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
summary { font-weight: 700; cursor: pointer; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px;
        background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.grey { background: var(--grey-soft); color: var(--muted); }

.linkbox { margin-top: 18px; padding: 16px 18px; background: var(--teal-soft); border-radius: 10px; }
.linkbox strong { display: block; margin-bottom: 4px; }
.linkbox .url { display: block; margin: 8px 0; padding: 10px 12px; background: var(--white); border: 1px solid var(--line);
                border-radius: 8px; font-size: .88rem; word-break: break-all; }

.timeline { list-style: none; padding: 0; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .w { color: var(--amber); font-weight: 700; }

@media (max-width: 620px) { .card { padding: 22px; } .grid2 { grid-template-columns: 1fr; } }
