/* Poliquicks admin chrome — intentionally distinct from the candidate-site
   theme so it reads as the platform, not as a campaign page. Neutral SaaS
   look: cool gray surface, indigo primary, system font. */

:root {
    --admin-bg: #f4f6fa;
    --admin-surface: #ffffff;
    --admin-text: #1f2937;
    --admin-text-muted: #6b7280;
    --admin-border: #e5e7eb;
    --admin-border-strong: #d1d5db;
    --admin-primary: #4f46e5;
    --admin-primary-hover: #4338ca;
    --admin-danger: #dc2626;
    --admin-danger-hover: #b91c1c;
    --admin-success: #059669;
    --admin-warning: #d97706;
    --admin-radius: 8px;
    --admin-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --admin-shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--admin-text);
    background: var(--admin-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--admin-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--admin-text); }
h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 0.75rem; }
.muted { color: var(--admin-text-muted); }

/* ============ TOPBAR ============ */
.topbar {
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    height: 56px;
    display: flex; align-items: center;
    padding: 0 1.5rem;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1280px; margin: 0 auto; gap: 1.5rem; }
.topbar-brand { font-weight: 700; font-size: 1.05rem; color: var(--admin-text); display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.topbar-brand:hover { text-decoration: none; }
.topbar-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--admin-primary); display: inline-block; }
.topbar-brand img { height: 28px; width: auto; display: block; }
.topbar-brand .brand-mark { display: none; }
.topbar-brand-label { font-weight: 500; font-size: 0.85rem; color: var(--admin-text-muted); text-transform: uppercase; letter-spacing: 0.1em; padding-left: 0.65rem; border-left: 1px solid var(--admin-border); line-height: 1; }
.topbar-nav { display: flex; gap: 0.25rem; align-items: center; flex: 1; margin-left: 1.5rem; }
.topbar-nav a { color: var(--admin-text-muted); padding: 0.4rem 0.75rem; border-radius: 6px; font-weight: 500; font-size: 0.9rem; }
.topbar-nav a:hover { background: var(--admin-bg); color: var(--admin-text); text-decoration: none; }
.topbar-nav a.active { background: var(--admin-bg); color: var(--admin-text); }
.topbar-user { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--admin-text-muted); }
.topbar-user .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--admin-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; }
.topbar-user button { background: none; border: none; color: var(--admin-text-muted); cursor: pointer; font: inherit; padding: 0.25rem 0.5rem; border-radius: 4px; }
.topbar-user button:hover { color: var(--admin-text); background: var(--admin-bg); }

/* ============ LAYOUT ============ */
.page { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.page-narrow { max-width: 760px; }
.page.with-hero { padding-top: 2rem; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-header-text { flex: 1; min-width: 240px; }
.card { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius); padding: 1.5rem; box-shadow: var(--admin-shadow); margin-bottom: 1rem; }
.card-header { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--admin-border); }
.card-header h2 { margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.card-header p { margin: 0; font-size: 0.9rem; color: var(--admin-text-muted); }
.accent-card { border-top: 3px solid var(--admin-primary); border-radius: var(--admin-radius); }

/* ============ HERO BAND ============ */
.hero-band {
    background:
        radial-gradient(circle at 15% 0%, rgba(255,255,255,0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 100%, rgba(255,255,255,0.12) 0%, transparent 50%),
        linear-gradient(135deg, #4338ca 0%, #4f46e5 45%, #6366f1 100%);
    color: #fff;
    padding: 3rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-band-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.hero-band .polibot {
    position: absolute;
    right: clamp(1rem, 5vw, 4rem);
    bottom: -10px;
    width: clamp(110px, 14vw, 170px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
    z-index: 1;
    animation: polibot-bob 4s ease-in-out infinite;
}
@keyframes polibot-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 820px) {
    .hero-band .polibot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-band .polibot { animation: none; }
}
.hero-band h1 {
    color: #fff;
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.hero-band p {
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(4px);
}

/* ============ STEP BADGE ============ */
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-primary), #818cf8);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    flex-shrink: 0;
}

/* ============ FORMS ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row.full { grid-column: 1 / -1; }
label { font-weight: 500; font-size: 0.875rem; color: var(--admin-text); }
label .req { color: var(--admin-danger); margin-left: 0.15rem; }
label .hint { display: block; font-weight: 400; color: var(--admin-text-muted); font-size: 0.8rem; margin-top: 0.1rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=url], select, textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--admin-text);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border-strong);
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Safari renders <select> as the short native control and ignores the shared
   padding, so the Party dropdown sat smaller than its neighbors. Stripping
   appearance makes every browser use our box model; the chevron is re-added
   as a background so the control still reads as a dropdown. */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 14px;
    padding-right: 2.3rem;
}

input:focus, select:focus, textarea:focus { outline: none; border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
textarea { resize: vertical; min-height: 80px; }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--admin-border-strong); border-radius: 6px; overflow: hidden; background: var(--admin-surface); }
.slug-input:focus-within { border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.slug-input input { border: none; box-shadow: none; }
.slug-input input:focus { box-shadow: none; }
.slug-input .slug-suffix { display: flex; align-items: center; padding: 0 0.75rem; background: var(--admin-bg); color: var(--admin-text-muted); font-size: 0.85rem; border-left: 1px solid var(--admin-border); white-space: nowrap; }
.file-row { display: flex; align-items: center; gap: 0.75rem; }
.file-row .file-preview { width: 56px; height: 56px; border-radius: 8px; background: var(--admin-bg); border: 1px dashed var(--admin-border-strong); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--admin-text-muted); font-size: 0.75rem; }
.file-row .file-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.9rem; font-weight: 500;
    padding: 0.45rem 0.9rem;
    background: var(--admin-surface);
    color: var(--admin-text);
    border: 1px solid var(--admin-border-strong);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.upload-btn:hover { color: var(--admin-primary); border-color: var(--admin-primary); }
.upload-btn .ico { width: 1rem; height: 1rem; }
.field-error { color: var(--admin-danger); font-size: 0.85rem; margin-top: 0.15rem; display: none; }
.form-row.has-error input, .form-row.has-error select { border-color: var(--admin-danger); }
.form-row.has-error .field-error { display: block; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: inherit; font-size: 0.9rem; font-weight: 500; padding: 0.55rem 1rem; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn-primary { background: linear-gradient(135deg, var(--admin-primary) 0%, #6366f1 100%); color: #fff; border-color: var(--admin-primary); box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2); }
.btn-primary:hover { background: linear-gradient(135deg, var(--admin-primary-hover) 0%, var(--admin-primary) 100%); border-color: var(--admin-primary-hover); text-decoration: none; box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3); }
.btn-secondary { background: var(--admin-surface); color: var(--admin-text); border-color: var(--admin-border-strong); }
.btn-secondary:hover { background: var(--admin-bg); text-decoration: none; }
.btn-danger { background: var(--admin-danger); color: #fff; border-color: var(--admin-danger); }
.btn-danger:hover { background: var(--admin-danger-hover); border-color: var(--admin-danger-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--admin-text-muted); border-color: transparent; padding: 0.35rem 0.5rem; }
.btn-ghost:hover { color: var(--admin-text); background: var(--admin-bg); text-decoration: none; }
.btn-lg { padding: 0.7rem 1.25rem; font-size: 1rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; gap: 0.75rem; align-items: center; }

/* ============ LOGIN ============ */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 400px; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius); box-shadow: var(--admin-shadow-lg); padding: 2rem; }
.login-card .topbar-brand { justify-content: center; margin-bottom: 1.5rem; font-size: 1.15rem; }
/* Sign-in lockup: the real wordmark instead of a dot + "Poliquicks Admin".
   Larger than the topbar's 28px since it's the only branding on the page. */
.login-brand { display: flex; justify-content: center; align-items: center; gap: 0.7rem; margin-bottom: 1.75rem; }
.login-brand img { height: 30px; width: auto; max-width: 60%; display: block; }
.login-brand .brand-divider { width: 1px; height: 24px; background: var(--admin-border-strong); flex-shrink: 0; }
.login-brand .brand-label { font-size: 0.95rem; font-weight: 600; color: var(--admin-text-muted); white-space: nowrap; }
.login-card h1 { font-size: 1.25rem; margin-bottom: 0.25rem; text-align: center; }
.login-card .muted { text-align: center; margin-bottom: 1.5rem; font-size: 0.9rem; }
.login-card .form-grid { grid-template-columns: 1fr; gap: 0.9rem; margin-bottom: 1.25rem; }
.login-card .btn { width: 100%; }
.login-error { color: var(--admin-danger); font-size: 0.9rem; margin-bottom: 1rem; padding: 0.55rem 0.75rem; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; display: none; }
.login-error.show { display: block; }
.card-header .card-sub { font-size: 0.85rem; color: #6b7280; margin: 0.25rem 0 0; font-weight: 400; }

/* Password field with a show/hide eye. */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 2.6rem; }
.pw-eye {
    position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%);
    width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 6px; color: #6b7280; cursor: pointer;
}
.pw-eye:hover { color: var(--admin-text, #111827); background: rgba(0,0,0,0.05); }
.pw-eye svg { width: 1.1rem; height: 1.1rem; }
.pw-eye .eye-shut { display: none; }
.pw-eye.on .eye-open { display: none; }
.pw-eye.on .eye-shut { display: initial; }

/* Live password checklist. */
.pw-rules { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; gap: 0.35rem 1rem; flex-wrap: wrap; font-size: 0.82rem; color: #6b7280; }
/* Every rule is a checkmark from the start — grey until met, green once met —
   so the list reads as requirements ticking off, not radio buttons. */
.pw-rules li::before { content: "✓"; display: inline-block; width: 1.1rem; color: #c7cbd1; font-weight: 700; transition: color 0.15s; }
.pw-rules li.ok { color: #047857; }
.pw-rules li.ok::before { color: #047857; }
.login-demo { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--admin-border); font-size: 0.8rem; color: var(--admin-text-muted); }
.login-demo strong { color: var(--admin-text); font-weight: 600; display: block; margin-bottom: 0.4rem; }
.login-demo code { background: var(--admin-bg); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.8rem; color: var(--admin-text); }
.login-demo .demo-row { margin-bottom: 0.35rem; }

/* ============ TABLE ============ */
.table-wrap { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius); overflow: hidden; box-shadow: var(--admin-shadow); }
table.users-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.users-table th { text-align: left; font-weight: 600; padding: 0.75rem 1rem; background: var(--admin-bg); color: var(--admin-text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--admin-border); }
.users-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--admin-border); vertical-align: middle; }
.users-table tr:last-child td { border-bottom: none; }
.users-table tr:hover td { background: #fafbfc; }
.users-table .name-cell { font-weight: 600; }
.users-table .name-cell .sub { display: block; font-weight: 400; color: var(--admin-text-muted); font-size: 0.8rem; margin-top: 0.1rem; }
.users-table .actions-cell { white-space: nowrap; text-align: right; }
.users-table .actions-cell .btn { padding: 0.35rem 0.6rem; font-size: 0.8rem; margin-left: 0.25rem; }
.empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--admin-text-muted); }
.empty-state h3 { color: var(--admin-text); margin-bottom: 0.5rem; }

.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.badge-live { background: #d1fae5; color: #065f46; }
.badge-draft { background: #fef3c7; color: #92400e; }
/* Custom domain under the subdomain in the users table. */
.domain-sub { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--admin-text-muted); margin-top: 0.15rem; }
.domain-sub .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #9ca3af; display: inline-block; }
.domain-sub .dot-active { background: #10b981; }
.domain-sub .dot-pending { background: #f59e0b; }
.domain-sub .dot-error { background: #ef4444; }
.btn .ico { width: 1rem; height: 1rem; vertical-align: -0.2rem; margin-right: 0.3rem; }

/* ============ SUCCESS CARD ============ */
.success-card {
    text-align: center;
    padding: 2.75rem 2rem 2.5rem;
    position: relative;
    /* Soft indigo wash fading to white — the card carries the brand color now
       that the hero band hides on success. */
    background: linear-gradient(180deg, #eef2ff 0%, var(--admin-surface) 140px);
    border-color: #c7d2fe;
    overflow: visible;
}
/* Gradient brand stripe across the top, matching the hero band's palette. */
.success-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--admin-radius) var(--admin-radius) 0 0;
    background: linear-gradient(90deg, #4338ca 0%, #6366f1 55%, #818cf8 100%);
}
/* The mascot peeks over the corner — same friendly bob as the hero version. */
.success-bot {
    position: absolute;
    top: -34px;
    right: -18px;
    width: 92px;
    transform: rotate(6deg);
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
    animation: bot-bob 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bot-bob {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(-7px); }
}
@media (max-width: 640px) { .success-bot { display: none; } }
@media (prefers-reduced-motion: reduce) { .success-bot { animation: none; } }
/* auth-action's saved/error states: everything centered, icon included. */
#state-done, #state-error { text-align: center; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--admin-primary) 0%, #818cf8 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; margin-bottom: 0.6rem; font-weight: 700; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35); }
.success-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
/* The site address inside the success message. Underlined so it reads as
   clickable against the muted paragraph text (scoped to the <p>, so the
   .btn anchors in the card below are untouched). */
#success-detail a { color: var(--admin-primary); font-weight: 500; text-decoration: none; }
#success-detail a:hover { color: var(--admin-primary-hover); text-decoration: underline; }
#success-detail { margin-bottom: 1.5rem; }

/* The two bookmark-me links on the success card: label above, URL in a copyable
   box. URLs render in mono (same convention as .site-url). */
.success-links { max-width: 460px; margin: 0 auto; text-align: left; display: grid; gap: 0.9rem; }
.link-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--admin-text); margin-bottom: 0.3rem; }
.link-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
}
.link-box a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.85rem;
    color: var(--admin-primary);
    text-decoration: none;
}
.link-box a:hover { text-decoration: underline; }
.copy-btn {
    flex-shrink: 0;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-text);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border-strong);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { background: var(--admin-bg); }
.copy-btn.copied { color: var(--admin-success); border-color: var(--admin-success); }
.success-tip { margin-top: 1.25rem; font-size: 0.85rem; }
.success-card .site-url { display: inline-block; margin: 1rem 0 1.5rem; padding: 0.6rem 1rem; background: var(--admin-bg); border: 1px solid var(--admin-border); border-radius: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.95rem; }

/* ============ MODAL ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.45); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--admin-surface); border-radius: var(--admin-radius); box-shadow: var(--admin-shadow-lg); width: 100%; max-width: 420px; overflow: hidden; }
.modal-body { padding: 1.5rem; }
.modal-body h3 { margin-bottom: 0.5rem; }
.modal-body p { color: var(--admin-text-muted); margin-bottom: 0; }
.modal-footer { padding: 1rem 1.5rem; background: var(--admin-bg); display: flex; gap: 0.5rem; justify-content: flex-end; border-top: 1px solid var(--admin-border); }

/* ============ TOAST ============ */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--admin-text); color: #fff; padding: 0.75rem 1.25rem; border-radius: 6px; box-shadow: var(--admin-shadow-lg); transform: translateY(150%); transition: transform 0.3s ease; z-index: 1100; font-size: 0.9rem; }
.toast.show { transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
    .topbar { padding: 0 1rem; }
    .topbar-inner { gap: 0.75rem; }
    /* Compact PQ mark instead of the wordmark; the nav says where you are. */
    .topbar-brand .brand-full, .topbar-brand-label { display: none; }
    .topbar-brand .brand-mark { display: block; height: 24px; }
    .topbar-nav { margin-left: 0; }
    .topbar-nav a { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
    .topbar-user { gap: 0.5rem; }
    .topbar-user .user-email { display: none; }
    .page { padding: 1rem; }
    /* The table keeps its columns and scrolls sideways — hiding the action
       buttons would make rows read-only on a phone. */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.users-table { min-width: 640px; }
    .users-table th:nth-child(2), .users-table td:nth-child(2),
    .users-table th:nth-child(5), .users-table td:nth-child(5) { display: none; }
}
