:root {
  color-scheme: light;
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --muted: #64748b;
  --muted-bg: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #15803d;
  --green-soft: #f0fdf4;
  --amber: #a16207;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --ring: rgba(37, 99, 235, 0.2);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { border: 0; }
a { color: inherit; }

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--foreground);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link, .btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}

.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--foreground); background: var(--muted-bg); }

.btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-weight: 550;
}
.btn:hover { background: var(--muted-bg); border-color: var(--border-strong); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.btn-danger { border-color: #fecaca; background: var(--red-soft); color: var(--red); }
.btn-danger:hover { border-color: #fca5a5; background: #fee2e2; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 30px; padding: 4px 9px; font-size: 12px; }
.btn-icon { width: 34px; padding: 0; }

.icon { width: 16px; height: 16px; flex: 0 0 auto; }

.hero {
  text-align: center;
}

.hero-inner { max-width: 720px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--muted);
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.hero p {
  max-width: 590px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

.hero-query {
  position: relative;
  padding: 92px 0 72px;
}
.hero-query::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 680px;
  height: 420px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.075), transparent 68%);
  pointer-events: none;
}
.hero-query .hero-inner { width: min(760px, 100%); margin: 0 auto; }
.hero-domain-field {
  width: min(620px, 100%);
  min-height: 64px;
  margin: 32px auto 0;
  padding: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(15,23,42,.09), 0 2px 8px rgba(15,23,42,.05);
}
.hero-domain-field input {
  min-height: 48px;
  padding: 8px 4px 8px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--foreground);
  box-shadow: none;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.hero-domain-field input::placeholder { color: #94a3b8; opacity: 1; }
.hero-domain-field input:focus { border: 0; box-shadow: none; }
.hero-domain-field span { padding: 0 14px 0 5px; color: var(--muted); font-size: 17px; font-weight: 600; }
.hero-domain-field button {
  min-width: 76px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--foreground);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
}
.hero-domain-field button:hover { background: var(--primary-hover); }
.hero-domain-field button:disabled { opacity: .55; cursor: wait; }
.hero-query .hero-whois-output {
  width: min(620px, 100%);
  max-width: none;
  min-height: 0;
  margin: 22px auto 0;
  text-align: left;
}
.available-card {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.available-card strong, .available-card span { display: block; }
.available-card strong { font-size: 16px; overflow-wrap: anywhere; }
.available-card span { margin-top: 2px; color: var(--green); font-size: 12px; }

.section { margin-top: 28px; }
.section-heading { margin-bottom: 14px; }
.section-heading h1, .section-heading h2 { margin: 0; letter-spacing: -0.025em; }
.section-heading h1 { font-size: 27px; }
.section-heading h2 { font-size: 18px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); }

.card, .panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.panel { overflow: hidden; }
.panel-head {
  min-height: 58px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 18px; }

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.dashboard-header h1 { margin: 0; font-size: 26px; letter-spacing: -0.035em; }
.dashboard-header p { margin: 4px 0 0; color: var(--muted); }

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--muted-bg);
  font-weight: 700;
  text-transform: uppercase;
}
.account-chip strong, .account-chip span { display: block; line-height: 1.25; }
.account-chip span { color: var(--muted); font-size: 11px; }

.domain-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.domain-summary {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.domain-summary h2 { margin: 0; font-size: 21px; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.domain-summary p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.domain-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted-bg);
  width: fit-content;
}
.tab {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 550;
}
.tab.active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgba(15,23,42,.08); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-copy h3 { margin: 0; font-size: 15px; }
.toolbar-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcff; }
.record-name { min-width: 170px; }
.record-value { min-width: 220px; max-width: 420px; overflow-wrap: anywhere; }
.record-actions { display: flex; justify-content: flex-end; gap: 5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }

.type-badge {
  min-width: 50px;
  display: inline-flex;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--muted-bg);
  color: #334155;
  font: 700 11px/1.4 ui-monospace, monospace;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.badge.success { background: var(--green-soft); color: var(--green); }
.badge.warning { background: var(--amber-soft); color: var(--amber); }
.badge.danger { background: var(--red-soft); color: var(--red); }
.badge.info { background: var(--blue-soft); color: var(--blue); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
label { color: #334155; font-size: 12px; font-weight: 650; }
.field-help { color: var(--muted); font-size: 11px; }

input, textarea, select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--card);
  color: var(--foreground);
  padding: 9px 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
select { min-height: 38px; }
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring); }
input:disabled, textarea:disabled, select:disabled { background: var(--muted-bg); color: var(--muted); }

.input-group { display: flex; align-items: stretch; }
.input-group input { border-radius: 7px 0 0 7px; }
.input-addon {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: var(--muted-bg);
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.check-row { display: flex; align-items: flex-start; gap: 9px; }
.check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--foreground); }
.check-row label { font-weight: 500; }

.alert {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted-bg);
  color: #334155;
  font-size: 12px;
}
.alert + .alert { margin-top: 8px; }
.alert.error { border-color: #fecaca; background: var(--red-soft); color: #b91c1c; }
.alert.success { border-color: #bbf7d0; background: var(--green-soft); color: var(--green); }
.alert.warning { border-color: #fde68a; background: var(--amber-soft); color: #854d0e; }
.alert.info { border-color: #bfdbfe; background: var(--blue-soft); color: #1d4ed8; }

.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 9px; background: var(--muted-bg); }
.empty strong { display: block; color: var(--foreground); margin-bottom: 3px; }
.empty p { margin: 0; }
.empty .btn { margin-top: 14px; }

.skeleton { position: relative; overflow: hidden; background: var(--muted-bg); border-radius: 6px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading-card { height: 180px; }

.details { border-top: 1px solid var(--border); }
.details summary {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; color: var(--muted); font-size: 18px; font-weight: 400; }
.details[open] summary::after { content: "−"; }
.details-body { padding: 0 18px 18px; }

.danger-zone { border-color: #fecaca; }
.danger-zone .panel-head { border-color: #fee2e2; }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: 0 16px 40px rgba(15,23,42,.14); animation: toast-in .2s ease-out; }
.toast.error { border-color: #fecaca; color: #b91c1c; }
.toast.success { border-color: #bbf7d0; color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 24px 80px rgba(15,23,42,.24);
  overflow: auto;
}
.modal::backdrop { background: rgba(15,23,42,.46); backdrop-filter: blur(2px); }
.modal-head { padding: 17px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.modal-body { padding: 18px; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

.whois-box { margin: 14px 0 0; min-height: 210px; max-height: 460px; overflow: auto; padding: 14px; border-radius: 8px; background: #0f172a; color: #dbeafe; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, monospace; }

.login-layout { min-height: calc(100vh - 130px); display: grid; place-items: center; }
.login-card { width: min(420px, 100%); padding: 24px; }
.login-card h1 { margin: 0; font-size: 22px; letter-spacing: -0.025em; }
.login-card p { margin: 7px 0 20px; color: var(--muted); }
.login-card .btn { width: 100%; }
.linuxdo-icon { width: 18px; height: 18px; border-radius: 4px; }

.hidden { display: none !important; }
.spacer { height: 14px; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--red); }
.text-right { text-align: right; }

@media (max-width: 760px) {
  .shell { width: min(100vw - 20px, 1120px); padding-top: 12px; }
  .topbar { margin-bottom: 24px; }
  .brand-subtitle { display: none; }
  .dashboard-header { align-items: stretch; flex-direction: column; }
  .account-chip { width: 100%; }
  .domain-summary { align-items: flex-start; flex-direction: column; }
  .form-grid, .field-row { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 12px; border-bottom: 1px solid var(--border); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { padding: 3px 0; border: 0; }
  .data-table tbody tr:hover { background: transparent; }
  .record-actions { justify-content: flex-start; margin-top: 8px; }
  .record-value { min-width: 0; max-width: none; }
  .domain-switcher { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav .nav-link { display: none; }
  .hero-query { padding: 58px 0 44px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 15px; }
  .hero-domain-field { min-height: 56px; margin-top: 26px; padding: 5px; grid-template-columns: minmax(0, 1fr) auto; }
  .hero-domain-field input { min-height: 44px; padding-left: 10px; font-size: 17px; }
  .hero-domain-field span { padding-right: 10px; font-size: 14px; }
  .hero-domain-field button { grid-column: 1 / -1; width: 100%; min-height: 44px; margin-top: 5px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions .btn { flex: 1; }
  .available-card { align-items: stretch; flex-direction: column; }
  .available-card .btn { width: 100%; }
  .panel-head { align-items: flex-start; }
}

/* Minimal admin */
.admin-body { min-height: 100vh; background: #f8fafc; }
.admin-topbar { width: min(1440px, calc(100% - 40px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-topbar .brand strong, .admin-topbar .brand small { display: block; }
.admin-topbar .brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.btn-dark { border-color: var(--foreground); background: var(--foreground); color: #fff; }
.btn-dark:hover { border-color: #273449; background: #273449; }
.btn-small { min-height: 30px; padding: 4px 9px; font-size: 12px; }
.admin-identity { color: var(--muted); font-size: 13px; }
.admin-shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto 56px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; }
.admin-nav { position: sticky; top: 20px; align-self: start; display: grid; gap: 5px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.admin-nav-item { width: 100%; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); text-align: left; font: inherit; font-weight: 650; cursor: pointer; }
.admin-nav-item:hover { background: #f8fafc; color: var(--foreground); }
.admin-nav-item.active { background: var(--foreground); color: #fff; }
.admin-main { min-width: 0; }
.admin-gate { width: min(640px, calc(100% - 40px)); margin: 80px auto; }
.admin-section { display: grid; gap: 18px; }
.section-heading { min-height: 62px; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.section-heading h1 { margin: 2px 0 0; font-size: 27px; letter-spacing: -.03em; }
.section-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card { display: grid; gap: 7px; min-height: 128px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.stat-card span, .stat-card small { color: var(--muted); font-size: 12px; }
.stat-card strong { align-self: end; font-size: 30px; letter-spacing: -.04em; }
.admin-note { padding: 20px; }
.admin-note h2, .settings-card h2 { margin: 0 0 8px; font-size: 16px; }
.admin-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.admin-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 9px; }
.admin-toolbar .input { min-height: 40px; }
.table-panel { overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 11px 13px; border-bottom: 1px solid var(--border); background: #f8fafc; color: var(--muted); text-align: left; white-space: nowrap; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.admin-table td { padding: 12px 13px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbfdff; }
.admin-table td strong { display: block; font-size: 12px; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-table .align-right { text-align: right; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.empty-cell { padding: 48px !important; color: var(--muted); text-align: center !important; }
.status-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 750; }
.status-active, .status-paid { background: #ecfdf5; color: #047857; }
.status-suspended, .status-failed { background: #fef2f2; color: #b91c1c; }
.status-pending, .status-review { background: #fff7ed; color: #c2410c; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 11px; }
.quota-input { width: 72px; min-height: 34px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.admin-settings-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); gap: 14px; align-items: start; }
.settings-card { display: grid; gap: 15px; padding: 20px; }
.settings-card label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.word-list { display: flex; flex-wrap: wrap; gap: 7px; }
.word-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px 5px 9px; border: 1px solid var(--border); border-radius: 999px; background: #f8fafc; font-size: 11px; }
.word-chip button { padding: 0 2px; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.muted { color: var(--muted); font-size: 12px; }
.empty-state { padding: 48px 24px; color: var(--muted); text-align: center; }
.empty-state h1, .empty-state h2 { margin: 0 0 8px; color: var(--foreground); }
.empty-state p { margin: 0 0 18px; }
.admin-body > .toast { position: fixed; z-index: 100; right: 18px; bottom: 18px; min-width: 220px; }

@media (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-template-columns: repeat(5, 1fr); }
  .admin-nav-item { text-align: center; }
}

@media (max-width: 680px) {
  .admin-topbar, .admin-shell { width: min(100% - 20px, 1440px); }
  .admin-topbar .header-actions .btn-secondary, .admin-identity { display: none; }
  .admin-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px; overflow-x: auto; }
  .admin-nav-item { padding: 9px 5px; font-size: 11px; }
  .stat-grid, .admin-settings-grid { grid-template-columns: 1fr; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}
