:root {
  color-scheme: dark;
  --background: #050505;
  --surface: #101010;
  --surface-raised: #181818;
  --border: #2b2b2b;
  --text: #f3f3f3;
  --muted: #9c9c9c;
  --accent: #f47b42;
  --accent-hover: #ff925e;
  --on-accent: #111;
  --focus: #72b7ff;
  --alert-text: #ffd7c7;
  --alert-background: rgba(165, 54, 21, 0.22);
  --alert-border: rgba(244, 123, 66, 0.42);
  --input-background: #181818;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #fff;
    --surface: #f6f6f6;
    --surface-raised: #ececec;
    --border: #dcdcdc;
    --text: #151515;
    --muted: #666;
    --accent: #d9581c;
    --accent-hover: #c04a12;
    --on-accent: #fff;
    --focus: #1a6fd6;
    --alert-text: #8a2c08;
    --alert-background: #fff1ea;
    --alert-border: #f3b393;
    --input-background: #fff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.site-header {
  display: flex;
  min-height: 64px;
  padding: 0 clamp(16px, 4vw, 48px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-logo {
  width: 3em;
  height: 1.03em;
  background: var(--accent);
  -webkit-mask: url("taste-logo.svg") center / contain no-repeat;
  mask: url("taste-logo.svg") center / contain no-repeat;
}

.header-account { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; }
.header-account a { font-weight: 650; text-decoration: none; }

.link-button {
  padding: 0;
  color: var(--muted);
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

main { display: grid; padding: clamp(24px, 6vh, 64px) 16px 64px; place-items: start center; }
.stack { display: grid; width: min(640px, 100%); gap: 18px; }
.page-header h1 { margin: 0; font-size: 2rem; letter-spacing: -0.03em; }

.card {
  display: grid;
  width: min(420px, 100%);
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.card-wide { width: 100%; }
.card h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.03em; }
.card h2 { margin: 0; font-size: 1rem; }
.lead { margin: 0; color: var(--muted); line-height: 1.5; }
.note { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.form { display: grid; gap: 8px; }
.form label { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.form label small { font-weight: 500; }

.form input {
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  background: var(--input-background);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.form .button { justify-self: start; margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.button-primary { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.button-primary:hover { background: var(--accent-hover); }

.alert,
.notice {
  margin: 0;
  padding: 12px 14px;
  line-height: 1.5;
  border-radius: 10px;
}

.alert { color: var(--alert-text); background: var(--alert-background); border: 1px solid var(--alert-border); }
.notice { background: var(--surface-raised); border: 1px solid var(--border); }

.servers { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.servers li {
  display: flex;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-raised);
  border-radius: 10px;
}

.servers li div { display: grid; gap: 2px; }
.servers small { color: var(--muted); font-size: 0.78rem; }

.verify-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.verify-banner .link-button { color: var(--accent); font-weight: 700; }
