
:root {
  color-scheme: dark;
  --ink: #090d0a;
  --panel: #101711;
  --panel-2: #141d16;
  --line: #344337;
  --line-soft: #263128;
  --text: #e7eadf;
  --muted: #929d8e;
  --green: #a9bf9b;
  --green-deep: #6f886b;
  --gold: #bda268;
  --danger: #d68d80;
  --shadow: rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% -10%, rgba(107, 133, 99, .16), transparent 35rem),
    linear-gradient(180deg, #0b100c 0%, #080b09 100%);
  color: var(--text);
}
button { font: inherit; }
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.seal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font: 600 20px Georgia, serif;
}
.eyebrow, .metric-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand h1 { margin: 2px 0 0; font: 500 23px Georgia, serif; }
.actions { display: flex; align-items: center; gap: 10px; }
.button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 15px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.button:hover { border-color: var(--green); background: rgba(169, 191, 155, .06); }
.button:disabled { cursor: wait; opacity: .55; }
.button-primary {
  border-color: var(--green-deep);
  background: var(--green);
  color: #111710;
  font-weight: 700;
}
.button-primary:hover { border-color: var(--green); background: #bad0ad; }
.button-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
}
.google-mark { font: 700 17px Arial, sans-serif; }
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 0 20px;
}
.intro h2 { margin: 0 0 7px; font: 500 32px Georgia, serif; }
.intro p { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.55; }
.identity { color: var(--muted); font-size: 12px; text-align: right; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric {
  min-height: 116px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 17px;
  background: linear-gradient(145deg, rgba(20,29,22,.96), rgba(13,19,15,.96));
  box-shadow: 0 15px 40px var(--shadow);
}
.metric strong { display: block; margin-top: 22px; font: 500 27px Georgia, serif; }
.metric small { display: block; margin-top: 5px; color: var(--muted); }
.notice {
  margin: 14px 0;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 14px 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.notice strong { color: var(--green); }
.panel {
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(16, 23, 17, .88);
  box-shadow: 0 15px 40px var(--shadow);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-header h3 { margin: 0; font: 500 18px Georgia, serif; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.collections { display: grid; gap: 1px; background: var(--line-soft); }
.collection { background: var(--panel); }
.collection summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 19px;
  cursor: pointer;
  list-style: none;
}
.collection summary::-webkit-details-marker { display: none; }
.collection summary::after { content: "+"; color: var(--gold); font-size: 18px; }
.collection[open] summary::after { content: "−"; }
.collection-title { font-weight: 650; }
.collection-count { color: var(--muted); font-size: 11px; }
.collection pre {
  max-height: 420px;
  margin: 0;
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  padding: 18px 19px;
  background: #0a0f0b;
  color: #cdd7c8;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.empty { padding: 42px 20px; color: var(--muted); text-align: center; }
.gate { display: grid; min-height: calc(100vh - 56px); place-items: center; }
.gate-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  background: linear-gradient(145deg, rgba(20,29,22,.98), rgba(11,16,12,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.gate-card .seal { width: 52px; height: 52px; }
.gate-card h2 { margin: 28px 0 10px; font: 500 32px Georgia, serif; }
.gate-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.gate-note { margin-top: 18px !important; font-size: 12px; }
.error { color: var(--danger) !important; }
.loading { color: var(--muted); }
@media (max-width: 700px) {
  .shell { width: min(100% - 20px, 980px); padding-top: 16px; }
  .topbar, .intro { align-items: flex-start; flex-direction: column; }
  .topbar { gap: 14px; }
  .intro { margin-top: 26px; }
  .identity { text-align: left; }
  .metrics { grid-template-columns: 1fr; }
  .actions { width: 100%; flex-wrap: wrap; }
  .actions .button { flex: 1; }
  .gate-card { padding: 27px 22px; }
}
