
:root {
  --bg: #080d0f;
  --surface: #ffffff;
  --surface-alt: #f7f9fb;
  --text: #16191d;
  --text-muted: #5a6472;
  --line: #e0e5eb;
  --line-strong: #ccd4dd;
  --accent: #2f6fed;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(47, 111, 237, .1);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 22, 32, .06), 0 14px 36px rgba(16, 22, 32, .09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --surface-alt: #1c2128;
    --text: #e9edf2;
    --text-muted: #9aa5b1;
    --line: #262d36;
    --line-strong: #38414d;
    --accent: #5b8dff;
    --accent-contrast: #0f1216;
    --accent-soft: rgba(91, 141, 255, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 44px rgba(0, 0, 0, .45);
  }
}

/* ---------------------------------------------------------------- base --- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.blocked {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

a { color: var(--accent); }

a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.mono {
  font-family: var(--mono);
  font-size: .9em;
  font-variant-ligatures: none;
  letter-spacing: .01em;
  word-break: break-all;
}

/* --------------------------------------------------------------- shell --- */

.wrap {
  width: 100%;
  max-width: 680px;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px 28px;
}

/* ---------------------------------------------------------------- head --- */

.card__head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent);
}

.badge__icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge__shield { fill: var(--accent-soft); }

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.015em;
}

.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
}

.host {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------- facts --- */

.meta {
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface-alt);
  overflow: hidden;
}

.meta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.meta__row:last-child { border-bottom: 0; }

.meta__key {
  margin: 0;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.meta__val {
  margin: 0;
  flex: 1 1 auto;
  text-align: right;
  color: var(--text);
}

.hint {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- actions --- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  filter: brightness(.94);
  color: var(--accent-contrast);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost.is-copied {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  color: var(--accent);
}

/* -------------------------------------------------------------- panels --- */

.panels {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.panel { border-bottom: 1px solid var(--line); }

.panel__summary {
  position: relative;
  padding: 14px 30px 14px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.panel__summary::-webkit-details-marker { display: none; }
.panel__summary::marker { content: ""; }

.panel__summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .18s ease, margin-top .18s ease;
}

.panel[open] > .panel__summary::after {
  margin-top: -2px;
  transform: rotate(225deg);
}

.panel__summary:hover { color: var(--accent); }
.panel__summary:hover::after { border-color: var(--accent); }

.panel__body {
  padding: 0 8px 18px 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.panel__body > *:first-child { margin-top: 0; }
.panel__body > *:last-child { margin-bottom: 0; }

.list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.list li { margin-bottom: 7px; }

.list--ordered > li::marker { font-weight: 600; color: var(--text); }

.panel__note {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background-color: var(--surface-alt);
  font-size: 13.5px;
}

/* --------------------------------------------------------------- foot ---- */

.card__foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.foot__line {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.foot__line--quiet { font-size: 12px; opacity: .85; }

.brand { font-weight: 600; color: var(--text); }

.link { text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------ narrower --- */

@media (max-width: 560px) {
  body.blocked { padding: 20px 14px; }
  .card { padding: 26px 22px 20px; }
  .title { font-size: 23px; }
  .meta__val { text-align: left; flex-basis: 100%; }
  .actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  body.blocked { display: block; padding: 0; background: #fff; }
  .card { box-shadow: none; border-color: #999; }
  .actions { display: none; }
  .panels details { display: block; }
}
