:root {
  --bg: #0f1419;
  --card: #1a2332;
  --text: #e7edf5;
  --muted: #8b9bb0;
  --accent: #4f8cff;
  --accent2: #6c5ce7;
  --danger: #e74c3c;
  --border: #2a3545;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body.page {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, #243b55 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 10%, #2d1b4e 0%, transparent 50%),
    var(--bg);
  color: var(--text);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(15, 20, 25, 0.75);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
nav { display: flex; gap: 0.75rem; align-items: center; }
.nav-user {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.5rem;
}
.nav-user .who { color: var(--muted); font-size: 0.9rem; }
.nav-user-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
}
.nav-ids { font-size: 0.85rem; color: var(--muted); }

.hero {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.lead { color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.foot { text-align: center; color: var(--muted); padding: 2rem; font-size: 0.85rem; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.25);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.sm { padding: 0.4rem 0.65rem; font-size: 0.85rem; }

.dash { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem 3rem; }
.dash h1 { margin-top: 0; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}
.card h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 0.5rem; }
.input {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #121a26;
  color: var(--text);
  min-width: 200px;
}
.input.grow { flex: 1 1 240px; }
.input.slug { flex: 0 1 200px; min-width: 140px; max-width: 240px; }
.meta { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; }
.msg { padding: 0.75rem 1rem; border-radius: 10px; }
.msg.err { background: rgba(231, 76, 60, 0.15); border: 1px solid rgba(231, 76, 60, 0.35); }
.msg.ok { background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.35); }

.links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.link-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 1fr 1.6fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: #121a26;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.link-note { min-width: 0; }
.link-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-label.muted { font-weight: 400; color: var(--muted); }
@media (max-width: 720px) {
  .link-row { grid-template-columns: 1fr; }
}
.short a { color: var(--accent); word-break: break-all; }
.long {
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
form.inline { margin: 0; }
