/* ==========================================================================
   IndexMePlease - design system
   ========================================================================== */

:root {
  --bg: #f6f7fb;
  --bg-soft: #eef0f7;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --border: #e6e8f0;
  --border-strong: #d3d7e6;
  --text: #131629;
  --text-soft: #5b6178;
  --text-faint: #8b91a8;

  --brand: #5b5bd6;
  --brand-strong: #4a49c4;
  --brand-soft: #eeeeff;
  --brand-ring: rgba(91, 91, 214, 0.28);

  --ok: #12805c;
  --ok-soft: #e2f7ee;
  --warn: #a1620b;
  --warn-soft: #fdf1dc;
  --bad: #c62a45;
  --bad-soft: #fdeaee;
  --info: #1f6fb2;
  --info-soft: #e6f2fc;
  --muted-soft: #eff0f5;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(19, 22, 41, 0.06), 0 1px 3px rgba(19, 22, 41, 0.04);
  --shadow: 0 4px 16px rgba(19, 22, 41, 0.07);
  --shadow-lg: 0 18px 44px rgba(19, 22, 41, 0.13);
  --sidebar-w: 256px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0e1018;
  --bg-soft: #151824;
  --surface: #171a26;
  --surface-2: #1c2030;
  --border: #262b3d;
  --border-strong: #333a52;
  --text: #eef0f8;
  --text-soft: #a3aac2;
  --text-faint: #767e99;

  --brand: #8b8bf5;
  --brand-strong: #a0a0ff;
  --brand-soft: #232449;
  --brand-ring: rgba(139, 139, 245, 0.32);

  --ok: #4ade9f;
  --ok-soft: #14342a;
  --warn: #f0b45e;
  --warn-soft: #3a2c14;
  --bad: #ff8095;
  --bad-soft: #3c1a22;
  --info: #6ab5f0;
  --info-soft: #14293c;
  --muted-soft: #232838;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.75rem; }
code, pre, .mono { font-family: var(--mono); font-size: 0.86em; }

/* ------------------------------------------------------------------ layout */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand) 0%, #8f6ff0 100%);
  display: grid; place-items: center;
  color: #fff; font-size: 17px; font-weight: 800;
  box-shadow: 0 4px 12px var(--brand-ring);
}
.brand small { display: block; font-size: 0.66rem; color: var(--text-faint); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-faint); font-weight: 650; padding: 16px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-soft); font-weight: 520; font-size: 0.9rem;
  transition: background 0.14s ease, color 0.14s ease;
}
.nav-item:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 620; }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.85; }
.nav-item .count { margin-left: auto; font-size: 0.74rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius-sm);
  color: var(--text); width: 100%;
}
.user-chip:hover { background: var(--bg-soft); text-decoration: none; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-strong);
  display: grid; place-items: center; font-weight: 700; font-size: 0.8rem;
  object-fit: cover; flex: 0 0 32px;
}
.user-chip .meta { min-width: 0; }
.user-chip .meta strong { display: block; font-size: 0.83rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .meta span { display: block; font-size: 0.72rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 1.18rem; }
.topbar .spacer { flex: 1; }
.topbar-sub { font-size: 0.8rem; color: var(--text-faint); }

.content { padding: 24px 28px 56px; max-width: 1400px; width: 100%; }

.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .spacer { flex: 1; }
.page-head p { color: var(--text-soft); margin: 4px 0 0; font-size: 0.9rem; }

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { font-size: 0.98rem; }
.card-head .spacer { flex: 1; }
.card-head p { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-faint); }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

/* -------------------------------------------------------------------- stats */

.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat .label { font-size: 0.78rem; color: var(--text-faint); font-weight: 560; text-transform: uppercase; letter-spacing: 0.05em; }
.stat .value { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 0.8rem; color: var(--text-soft); margin-top: 3px; }
.stat .accent { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand); }
.stat.ok .accent { background: var(--ok); }
.stat.warn .accent { background: var(--warn); }
.stat.bad .accent { background: var(--bad); }
.stat.info .accent { background: var(--info); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 0.865rem; font-weight: 570; cursor: pointer;
  transition: all 0.14s ease; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--bg-soft); text-decoration: none; border-color: var(--text-faint); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
.btn svg { width: 16px; height: 16px; }
.btn[disabled], .btn.disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px var(--brand-ring); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; border-radius: 7px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-block { width: 100%; }

.btn-google {
  background: #fff; color: #24292f; border: 1px solid #d5d9e2; font-weight: 600;
  padding: 12px 20px; font-size: 0.95rem; border-radius: 11px; box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: #f7f8fa; border-color: #b9c0cd; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 0.745rem; font-weight: 620; letter-spacing: 0.01em; white-space: nowrap;
  background: var(--muted-soft); color: var(--text-soft);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand-strong); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 0.78rem; color: var(--text-soft);
  background: var(--surface);
}

/* ------------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.table th {
  text-align: left; padding: 10px 14px; font-size: 0.73rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint);
  border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
table.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table tbody tr:last-child td { border-bottom: none; }
table.table tbody tr:hover { background: var(--surface-2); }
table.table td.num, table.table th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.table .url-cell { max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.table .nowrap { white-space: nowrap; }
.checkbox-col { width: 34px; }

/* -------------------------------------------------------------------- forms */

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label.lbl { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 5px; }

.input, .select, .textarea {
  width: 100%; padding: 9px 12px; font-family: inherit; font-size: 0.88rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); transition: border-color 0.14s, box-shadow 0.14s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring);
}
.textarea { min-height: 130px; resize: vertical; font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b91a8' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.switch-row {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.switch-row:last-child { border-bottom: none; }
.switch-row .txt { flex: 1; }
.switch-row .txt strong { display: block; font-size: 0.87rem; font-weight: 600; }
.switch-row .txt span { font-size: 0.79rem; color: var(--text-faint); }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 40px; margin-top: 2px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; cursor: pointer; inset: 0; background: var(--border-strong);
  border-radius: 999px; transition: background 0.18s;
}
.switch .track::before {
  content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.18s; box-shadow: var(--shadow-sm);
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::before { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--brand-ring); }

form.auto-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 150px; }

/* ----------------------------------------------------------------- progress */

.progress { height: 7px; border-radius: 999px; background: var(--muted-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width 0.4s ease; }
.progress.ok > span { background: var(--ok); }
.progress.warn > span { background: var(--warn); }
.progress.bad > span { background: var(--bad); }

.meter { display: flex; align-items: center; gap: 10px; }
.meter .progress { flex: 1; min-width: 70px; }
.meter .pct { font-size: 0.8rem; color: var(--text-soft); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }

/* -------------------------------------------------------------------- flash */

.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 9px; max-width: 420px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-lg);
  font-size: 0.86rem; animation: slide-in 0.22s ease;
}
.flash.success { border-left-color: var(--ok); }
.flash.error { border-left-color: var(--bad); }
.flash.warning { border-left-color: var(--warn); }
.flash button { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 2px; }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------- tabs */

.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 9px 15px; font-size: 0.88rem; font-weight: 570; color: var(--text-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--brand-strong); border-bottom-color: var(--brand); font-weight: 640; }

/* -------------------------------------------------------------------- empty */

.empty { text-align: center; padding: 44px 24px; color: var(--text-soft); }
.empty .icon {
  width: 52px; height: 52px; border-radius: 15px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.empty .icon svg { width: 25px; height: 25px; }
.empty h3 { margin-bottom: 6px; }
.empty p { max-width: 430px; margin: 0 auto 16px; font-size: 0.88rem; }

/* ------------------------------------------------------------------- charts */

.chart { width: 100%; display: block; overflow: visible; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-soft); margin-top: 10px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }

.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut-legend { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 9px; }
.donut-legend .row { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; }
.donut-legend .row .swatch { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .row .val { margin-left: auto; font-weight: 640; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- pagination */

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 14px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 32px; height: 32px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; font-size: 0.82rem; color: var(--text-soft); background: var(--surface);
}
.pagination a:hover { background: var(--bg-soft); text-decoration: none; color: var(--text); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 620; }

/* ------------------------------------------------------------------- login */

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px 8%; }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-hero {
  background: linear-gradient(150deg, #4b3fd1 0%, #6d4fe0 45%, #9a5bd8 100%);
  color: #fff; padding: 48px 6%; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  position: relative; overflow: hidden;
}
.auth-hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.09); right: -170px; top: -130px;
}
.auth-hero h2 { font-size: 2rem; line-height: 1.2; max-width: 460px; }
.auth-hero p { color: rgba(255, 255, 255, 0.86); max-width: 440px; }
.auth-hero ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.auth-hero li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; color: rgba(255, 255, 255, 0.94); }
.auth-hero li svg { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px; }

/* ------------------------------------------------------------------- misc */

.divider { height: 1px; background: var(--border); margin: 18px 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-faint); }
.soft { color: var(--text-soft); }
.small { font-size: 0.8rem; }
.tiny { font-size: 0.74rem; }
.strong { font-weight: 650; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.code-block {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; font-family: var(--mono); font-size: 0.79rem; color: var(--text-soft);
  overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}

.callout {
  display: flex; gap: 11px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--info-soft); color: var(--info); font-size: 0.855rem; line-height: 1.5;
}
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.ok { background: var(--ok-soft); color: var(--ok); }
.callout.bad { background: var(--bad-soft); color: var(--bad); }
.callout svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.callout a { color: inherit; text-decoration: underline; }

.spinner {
  width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bulk-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--brand-soft); border-bottom: 1px solid var(--border); flex-wrap: wrap;
}

.og-preview {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; max-width: 520px; background: var(--surface);
}
.og-preview img { width: 100%; display: block; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--muted-soft); }
.og-preview .body { padding: 11px 13px; }
.og-preview .domain { font-size: 0.74rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; }
.og-preview .title { font-weight: 620; margin: 3px 0; font-size: 0.95rem; }
.og-preview .desc { font-size: 0.83rem; color: var(--text-soft); }

.serp-preview { max-width: 600px; }
.serp-preview .serp-url { font-size: 0.79rem; color: var(--text-soft); }
.serp-preview .serp-title { color: #1a0dab; font-size: 1.14rem; margin: 2px 0 3px; line-height: 1.3; }
html[data-theme="dark"] .serp-preview .serp-title { color: #8ab4f8; }
.serp-preview .serp-desc { font-size: 0.86rem; color: var(--text-soft); }

.mobile-toggle { display: none; }

@media (max-width: 1180px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform 0.22s ease; box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: none; }
  .mobile-toggle { display: inline-flex; }
  .content { padding: 18px 16px 48px; }
  .topbar { padding: 12px 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .form-row, .form-row.three { grid-template-columns: minmax(0, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { order: 2; padding: 36px 24px; }
}
