/* Send2PC Admin - light theme shared with the desktop app */

/* Plus Jakarta Sans, served from this site (variable font, weights 400-800; Latin-extended covers ₹). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette shared with the RelayPulse site: lime hero, green brand, near-black text and buttons. */
  --bg: #fbfbfa;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1c1c1c;
  --muted: #64748b;
  --subtle: #94a3b8;
  --primary: #0b996e;
  --primary-hover: #09825d;
  --primary-soft: #ecfdf5;
  --brand: #008060;        /* wordmark */
  --brand-dark: #004d40;   /* text on mint */
  --lime: #c0ffa5;         /* hero and header on the landing page */
  --lime-strong: #bdf3a3;  /* call-to-action band */
  --mint: #eefbeb;         /* soft band */
  --mint-active: #ebfce5;  /* selected sidebar item */
  --ink: #1c1c1c;          /* black pill buttons */
  --success: #0b996e;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --violet: #004d40;       /* second accent (was violet): dark green */
  --violet-soft: #e6ffd9;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  --sidebar-width: 256px;
  /* Hindi text falls through to the phone's or PC's own Devanagari font (Plus Jakarta Sans has none). */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.1; }

.nav-label { padding: 14px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--subtle); text-transform: uppercase; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 2px; border-radius: 9px;
  color: var(--muted); font-weight: 600; font-size: 13.5px;
}
.nav-link:hover { background: #f3f4f6; color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--mint-active); color: var(--brand-dark); }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }

.sidebar-footer { margin-top: auto; padding-top: 14px; }
.account-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex: none;
}
.account-chip .who { min-width: 0; flex: 1; line-height: 1.3; color: var(--text); }
.account-chip a.who:hover { text-decoration: none; }
.account-chip a.who:hover strong { color: var(--primary); }
.account-chip .who strong { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip .who span { font-size: 11.5px; color: var(--muted); }
.icon-btn {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  padding: 6px; border-radius: 8px; display: grid; place-items: center;
}
.icon-btn:hover { background: #e5e7eb; color: var(--text); }
.sidebar-close, .sidebar-toggle, .nav-phone-only { display: none; }
.sidebar-toggle { place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; }
.sidebar-toggle .icon { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .sidebar, .sidebar-backdrop { transition: none !important; } }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 28px; display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 5;
}
.search { position: relative; flex: 1; max-width: 460px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.search input[type="search"] { padding-left: 38px; background: var(--bg); border-color: transparent; }
.search input[type="search"]:focus { background: var(--surface); border-color: var(--primary); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.content { padding: 26px 28px 40px; width: 100%; max-width: 1400px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 10px; }

/* ---------- Cards & stats ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-pad { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 15px; font-weight: 700; }
.section-title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.align-start { align-items: start; }

.stat { padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 30px; font-weight: 800; line-height: 1.2; margin-top: 2px; letter-spacing: -0.02em; }
.stat .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.stat-icon .icon { width: 20px; height: 20px; }
.tone-primary { background: var(--primary-soft); color: var(--primary); }
.tone-success { background: var(--success-soft); color: var(--success); }
.tone-warning { background: var(--warning-soft); color: var(--warning); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }

/* Key/value lists */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Bar charts (server-rendered) ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bar { width: 100%; max-width: 44px; background: var(--primary); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bar.alt { background: var(--violet); }
.bar.zero { background: var(--border); }
.bar-value { font-size: 12px; font-weight: 700; }
.bar-label { font-size: 11.5px; color: var(--muted); }

.hbar-row { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.hbar-track { height: 10px; background: #eef0f3; border-radius: 6px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--primary); border-radius: 6px; }

.bars.dense { gap: 3px; }
.bars.dense .bar { border-radius: 3px 3px 1px 1px; }
.bars.dense .bar-label { min-height: 17px; }

/* Period switch on the dashboard */
.segmented { display: inline-flex; padding: 3px; background: #eef0f3; border-radius: 10px; }
.segmented a { padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented a.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }

/* "Needs your attention" list */
.attention-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #eef0f3; color: var(--text); }
.attention-row:last-child { border-bottom: none; }
a.attention-row:hover { background: #fafbfc; text-decoration: none; }
.attention-row .stat-icon { width: 34px; height: 34px; }
.attention-row .stat-icon .icon { width: 17px; height: 17px; }
.attention-text { flex: 1; font-weight: 600; min-width: 0; }
.attention-row.quiet .attention-text { font-weight: 500; color: var(--muted); }

.rank-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef0f3; }
.rank-row:last-child { border-bottom: none; }
.rank-row a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.message-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #eef0f3; }
.message-row:last-child { border-bottom: none; }
.message-row > div { min-width: 0; }

/* Totals above a list */
.totals { display: flex; flex-wrap: wrap; gap: 28px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.totals div span { display: block; color: var(--muted); font-size: 12.5px; }
.totals div strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

.danger-zone { border-color: #fecaca; }
.danger-zone .section-title { color: var(--danger); }
.danger-zone p { margin: 0 0 14px; color: var(--muted); max-width: 70ch; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { max-width: 320px; }

/* ---------- Tables ---------- */
table.compact th, table.compact td { padding: 9px 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
  background: #f9fafb; padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }
td .primary { font-weight: 600; color: var(--text); }
td .secondary { font-size: 12.5px; color: var(--muted); }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions form { margin: 0; }
td .actions { flex-wrap: nowrap; }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--subtle); margin-bottom: 6px; }
.empty strong { display: block; color: var(--text); font-size: 15px; }

.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.pager div { display: flex; gap: 8px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warning-soft); color: var(--warning); }
.badge-error { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--primary-soft); color: var(--primary); }
.badge-neutral { background: #f3f4f6; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Forms & buttons ---------- */
label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], input[type="month"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; padding: 9px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; outline: none;
}
textarea { resize: vertical; min-height: 70px; display: block; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 153, 110, 0.18); }
.field { margin-bottom: 14px; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 4px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 14px; }
.check input { width: 16px; height: 16px; }

.filters { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.filters input { max-width: 320px; }
.filters input[type="date"], .filters input[type="month"] { width: auto; }
.filters select { width: auto; min-width: 150px; }
.filters label.inline { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
.staff-note { margin-top: 6px; padding: 6px 10px; background: var(--warning-soft); border-radius: 8px; font-size: 12.5px; color: #78350f; white-space: pre-line; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
}
.btn:hover { background: #f9fafb; text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { color: var(--danger); border-color: #fca5a5; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; padding: 12px 16px; font-size: 15px; border-radius: 999px; }

/* Collapsible edit forms */
details.editor > summary { list-style: none; cursor: pointer; }
details.editor > summary::-webkit-details-marker { display: none; }
details.editor[open] > summary { margin-bottom: 14px; }
.editor-body { border-top: 1px solid var(--border); padding-top: 16px; }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; overflow-wrap: anywhere; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid #bbf7d0; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }
.alert-notice { background: var(--warning-soft); color: #78350f; border: 1px solid #fde68a; white-space: pre-line; }
.alert ul { margin: 0; padding-left: 18px; font-weight: 500; }

/* ---------- Plans ---------- */
.plan { padding: 20px; display: flex; flex-direction: column; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.plan h3 { font-size: 17px; }
.plan-price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; }
.plan li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eef0f3; }
.plan li:last-child { border-bottom: none; }
.plan li span { color: var(--muted); }

/* ---------- Sign-in ---------- */
.auth { display: grid; grid-template-columns: 5fr 6fr; min-height: 100vh; }
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 44px 48px 40px;
  display: flex; flex-direction: column;
  background: var(--lime);
}
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.auth-brand::before { width: 84%; aspect-ratio: 1; right: -37%; top: -34%; }
.auth-brand::after { width: 100%; aspect-ratio: 1; left: -45%; bottom: -50%; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand { color: var(--ink); }
.auth-brand .brand { color: var(--brand); padding: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.auth-brand .brand-mark { display: none; }
.auth-copy { margin: auto 0; }
.auth-copy h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; max-width: 12em; }
.auth-copy p { color: rgba(28, 28, 28, 0.85); font-size: 16px; max-width: 30em; margin: 14px 0 26px; }
.auth-points { list-style: none; padding: 0; margin: 0; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.auth-points .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.auth-points .tick .icon { width: 14px; height: 14px; }
.auth-foot { font-size: 12.5px; color: rgba(28, 28, 28, 0.7); }
.auth-pane { background: var(--surface); display: grid; place-items: center; padding: 32px; }
.auth-form { width: 100%; max-width: 360px; }
.auth-form h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.auth-form > p { color: var(--muted); margin: 6px 0 22px; }
.auth-form input { padding: 11px 12px; font-size: 15px; }
.auth-form .form-grid { gap: 0 12px; }
.auth-switch { text-align: center; color: var(--muted); margin: 18px 0 0; }
.auth-mobile-top { display: none; }
@media (max-width: 860px) {
  .auth-pane { place-items: start center; padding: 0 20px 32px; }
  .auth-mobile-top { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 360px; padding: 18px 0 26px; }
  .auth-mobile-top .wordmark { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; color: var(--brand); }
  .auth-mobile-top .wordmark:hover { text-decoration: none; }
  .auth-mobile-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #f1f5f9; color: var(--text); font-weight: 700; font-size: 13px; }
  .auth-mobile-back:hover { text-decoration: none; background: #e2e8f0; }
  .auth-mobile-back .icon { width: 15px; height: 15px; }
  .auth-form h2 { font-size: 24px; }
  .auth-form input { font-size: 16px; } /* 16px stops iPhones zooming in when a field is tapped */
}
.auth-brand a.brand:hover { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* The sidebar slides in from the left; the top bar stays and gets a menu button. */
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(84vw, 300px); height: 100%; transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease; box-shadow: none; border-radius: 0 20px 20px 0; padding-top: 14px; }
  html.sidebar-open { overflow: hidden; }
  html.sidebar-open .sidebar { transform: none; box-shadow: 20px 0 40px rgba(15, 23, 42, 0.18); }
  .nav-phone-only { display: flex; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(15, 23, 42, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
  html.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .sidebar-close { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: none; border-radius: 12px; background: #f1f5f9; color: var(--text); cursor: pointer; }
  .sidebar-close .icon { width: 20px; height: 20px; }
  .sidebar .nav-link { padding: 11px 12px; font-size: 14.5px; }
  .sidebar-toggle { display: grid; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar-right { gap: 8px; }
  .content { padding: 20px 16px 32px; }
  .grid-2, .grid-3, .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  table { min-width: 760px; }
  td { white-space: nowrap; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
@media (max-width: 560px) {
  .topbar-right .btn:not(.btn-primary), .topbar-right .badge { display: none; } /* room for the main button on a phone */
  .grid-4 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}

/* "Check your email" page */
.verify-tips { margin: 0 0 20px; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.verify-tips li + li { margin-top: 6px; }
.verify-change { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.verify-change summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); }
.verify-change form { margin-top: 12px; }
.link-button { border: none; background: none; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
