:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #101416;
  color: #edf2ed;
  font-synthesis: none;
  --muted: #a5b2aa;
  --mint: #b6e4bf;
  --border: #313b36;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 82% -18%, #243a2d 0%, transparent 58%), #101416;
}
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; }
.shell { max-width: 1152px; margin: 0 auto; padding: 0 32px 64px; }
.top {
  min-height: 83px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 750; white-space: nowrap; }
.brand > span:last-child { color: var(--muted); font-weight: 500; }
.mark, .tile { display: inline-grid; place-items: center; color: var(--mint); background: #263a2e; border: 1px solid #3b5343; }
.mark { width: 36px; height: 36px; border-radius: 11px; margin-right: 4px; }
.mark svg { width: 21px; height: 21px; }
.mark.large { width: 56px; height: 56px; border-radius: 16px; margin: 0 0 10px; }
.mark.large svg { width: 26px; height: 26px; }
.heading { margin: 65px 0 35px; }
h1 { margin: 0; font-size: clamp(32px, 5.2vw, 56px); line-height: 1.1; letter-spacing: -.045em; }
p { color: var(--muted); line-height: 1.5; }
.heading p { margin: 13px 0 0; font-size: 17px; }
.card-editor {
  width: fit-content; max-width: 100%; margin: 0 0 22px;
  border: 1px solid var(--border); border-radius: 12px; background: #19201d;
}
.card-editor[open] { width: min(100%, 480px); }
.card-editor summary { padding: 11px 15px; color: var(--mint); font-weight: 650; cursor: pointer; }
.card-form { display: grid; gap: 14px; padding: 3px 15px 15px; }
.card-form label { display: grid; gap: 6px; font-size: 14px; }
.card-form small { color: var(--muted); font-size: inherit; }
.card-form input {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; background: #101416; color: inherit; font: inherit;
}
.card-form .primary { justify-self: start; }
.form-error { margin: 0; color: #ffe1ac; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 22px; min-height: 190px; border: 1px solid var(--border); border-radius: 16px;
  background: #19201d; transition: background .18s ease, border-color .18s ease;
}
.card:hover { border-color: #73977d; background: #202c25; }
.tile { width: 43px; height: 43px; border-radius: 12px; }
.arrow { position: absolute; top: 23px; right: 21px; color: var(--mint); }
.arrow svg { width: 18px; height: 18px; }
.card h2 { margin: 17px 0 0; font-size: 20px; letter-spacing: -.025em; }
.card p { margin: 6px 0 16px; font-size: 14px; }
.card h2, .card p { overflow-wrap: anywhere; }
.host { color: var(--mint); font-size: 12px; margin-top: auto; padding-top: 6px; overflow-wrap: anywhere; }
.account { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; }
.account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button, .primary { font: inherit; font-weight: 650; border-radius: 9px; cursor: pointer; }
button { padding: 8px 12px; color: inherit; background: #1c2620; border: 1px solid var(--border); }
button:hover { border-color: var(--mint); }
.primary { display: inline-block; padding: 13px 20px; color: #122016; background: var(--mint); }
.primary:hover { background: #d4f1d9; }
.gate { width: min(100%, 470px); margin: clamp(42px, 11vh, 105px) auto 0; padding: clamp(24px, 5vw, 42px); background: #19201d; border: 1px solid var(--border); border-radius: 22px; }
.gate h1 { font-size: clamp(30px, 4.5vw, 42px); }
.gate p { margin: 14px 0 26px; }
.gate .notice { color: #ffe1ac; border-left: 2px solid #dbab6e; padding-left: 12px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .shell { padding-inline: 18px; }
  .top { min-height: 70px; }
  .heading { margin: 43px 0 24px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
