:root {
    --bg: #faf9f6;
    --bg-card: #ffffff;
    --bg-sidebar: #f5f4f0;
    --border: #e0dcd0;
    --text: #2a2418;
    --text-muted: #5a5038;
    --text-heading: #1a1408;
    --text-dim: #706848;
    --text-subtle: #908868;
    --gold: #b8860b;
    --gold-dark: #9a7209;
    --gold-dim: #c9a030;
    --accent-bg: #fdf9f0;
    --accent-bg2: #f8f3e8;
    --border-hover: #d0c8a0;
    --separator: #e8e4d8;
    --card-hover: #f8f7f3;
    --chip-bg: #fdf5e0;
    --btn-primary-text: #ffffff;
    --radius: 8px;
    --reason-bg: #f5f4f0;
    --banner-bg: linear-gradient(135deg, #fdf9f0, #f8f3e8);
    --banner-border: #e8dcc0;
}

body.dark {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-sidebar: #0d0d0d;
    --border: #2a2218;
    --text: #e6d8b8;
    --text-muted: #a09668;
    --text-heading: #f0e8d0;
    --text-dim: #8a8060;
    --text-subtle: #908860;
    --gold: #d4a840;
    --gold-dark: #b8860b;
    --gold-dim: #c9a030;
    --accent-bg: #1a1610;
    --accent-bg2: #17130c;
    --border-hover: #3a2e18;
    --separator: #1e1e1e;
    --card-hover: #141414;
    --chip-bg: #2a1f0e;
    --btn-primary-text: #0a0a0a;
    --reason-bg: #0d0d0d;
    --banner-bg: linear-gradient(135deg, #1a1610, #17130c);
    --banner-border: #2e2414;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.login-screen { display: flex; min-height: 100vh; }
.login-left {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px;
}
.login-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem; color: var(--gold); font-weight: 700;
    letter-spacing: 0.06em; margin-bottom: 6px;
}
.login-tagline { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 56px; }
.login-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 36px 40px; width: 420px; text-align: center;
}
.login-card-title { font-size: 1.05rem; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.login-card-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 28px; }

.btn-feishu {
    display: block; width: 100%; padding: 14px;
    background: #3370ff; border: none; border-radius: var(--radius);
    color: #fff; font-size: 1rem; font-weight: 600;
    text-decoration: none; text-align: center;
    cursor: pointer; transition: background 0.2s;
}
.btn-feishu:hover { background: #2860e0; }

.login-divider { display: flex; align-items: center; gap: 10px; margin: 24px 0; }
.login-divider-line { flex: 1; height: 1px; background: var(--border); }
.login-divider-text { font-size: 0.7rem; color: var(--text-dim); }
.login-info { font-size: 0.73rem; color: var(--text-dim); line-height: 1.6; }
.login-info b { color: var(--text); }
.login-pw-form { display: flex; gap: 8px; }
.login-pw-input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); font-size: 0.85rem; font-family: inherit; }
.login-pw-input:focus { outline: none; border-color: var(--gold); }
.login-pw-input::placeholder { color: var(--text-dim); }
.login-pw-input:-webkit-autofill,
.login-pw-input:-webkit-autofill:hover,
.login-pw-input:-webkit-autofill:focus,
.login-pw-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s;
}
.btn-pw { padding: 10px 20px; border: 1px solid var(--gold); border-radius: 4px; background: transparent; color: var(--gold); cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.btn-pw:hover { background: var(--gold); color: #000; }
.login-error { margin-top: 12px; font-size: 0.78rem; color: #e05555; text-align: center; }

.login-right {
    width: 440px; background: var(--bg-sidebar); border-left: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center; padding: 60px 44px;
}
.login-right h3 { font-size: 0.9rem; font-weight: 600; color: var(--text-heading); margin-bottom: 24px; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.feature-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.feature-text b { color: var(--text); font-weight: 600; }
.feature-privacy {
    margin-top: 28px; padding: 14px 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.75rem; color: var(--text-dim); line-height: 1.6;
}
.feature-privacy b { color: var(--text); }

.nav {
    display: flex; align-items: center; padding: 12px 28px;
    background: var(--bg-card); border-bottom: 1px solid var(--border); gap: 16px;
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700; font-size: 1.3rem; color: var(--gold); letter-spacing: 0.04em;
}
.nav-sub { font-size: 0.82rem; color: var(--text-muted); }
.nav-spacer { flex: 1; }
.nav-user { font-size: 0.82rem; color: var(--text); }
.nav-logout { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; }
.nav-logout:hover { color: var(--text); }
.main { max-width: 1200px; margin: 0 auto; padding: 24px; }

.page { max-width: 900px; margin: 0 auto; padding: 32px 28px; }
.page-header { margin-bottom: 32px; }
.page-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.page-sub { color: var(--text-muted); font-size: 0.88rem; }
.setup-banner {
    background: linear-gradient(135deg, var(--accent-bg), var(--accent-bg2));
    border: 1px solid var(--banner-border); border-radius: 12px;
    padding: 36px 40px; text-align: center; margin-bottom: 32px;
}
.setup-welcome { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.setup-banner h2 { font-size: 1.3rem; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.setup-banner p { font-size: 0.85rem; color: var(--text-muted); }

.section { margin-bottom: 32px; }
.section-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.section-num {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--gold); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-family: 'JetBrains Mono', monospace; flex-shrink: 0;
}
.section-title { font-size: 1rem; font-weight: 600; color: var(--text-heading); }
.section-hint { font-size: 0.73rem; color: var(--text-muted); margin-left: auto; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.field-label .required { color: var(--gold); margin-left: 2px; }

input[type="text"], input[type="password"], select, textarea {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: 9px 14px; border-radius: 6px; font-size: 0.88rem;
    font-family: 'Noto Serif SC', serif;
}
input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 80px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    padding: 5px 14px; border-radius: 16px;
    border: 1px solid var(--border); font-size: 0.78rem;
    cursor: pointer; color: var(--text-muted); background: var(--bg-card);
    transition: all 0.15s; user-select: none;
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.selected { background: var(--accent-bg); border-color: var(--gold); color: var(--gold); font-weight: 500; }
.chip input[type="checkbox"] { display: none; }

.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn {
    padding: 10px 28px; border-radius: 6px; font-size: 0.9rem;
    font-family: 'Noto Serif SC', serif; cursor: pointer; font-weight: 600;
    text-decoration: none; display: inline-block;
}
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text); }
.btn-primary { background: linear-gradient(135deg, var(--gold-dark), var(--gold-dark)); border: 1px solid var(--gold-dim); color: var(--btn-primary-text); }

/* ====== Main Layout ====== */
.main { display: flex; gap: 0; max-width: 100%; padding: 0; }
.main-content { flex: 1; padding: 20px 28px; min-width: 0; }
.main-sidebar {
    width: 360px; flex-shrink: 0;
    background: var(--bg-sidebar); border-left: 1px solid var(--border);
    padding: 20px 24px; position: sticky; top: 0;
    height: 100vh; overflow-y: auto;
}

/* ====== Tab Bar ====== */
.tabs {
    display: flex; align-items: center; gap: 2px;
    padding: 10px 28px; background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
}
.tab {
    padding: 7px 17px; border-radius: 6px;
    font-size: 0.88rem; color: var(--text-muted); cursor: pointer;
    font-weight: 400; transition: color 0.15s; user-select: none;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent-bg); color: var(--gold); font-weight: 700; }

/* ====== Match Button ====== */
.btn-match {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-dark));
    border: 1px solid var(--gold-dim); color: var(--btn-primary-text);
    padding: 9px 24px; border-radius: 6px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.04em; transition: all 0.2s;
}
.btn-match:hover { opacity: 0.9; }
.btn-match.active {
    background: var(--accent-bg); border-color: var(--gold); color: var(--gold);
}

/* ====== Match Banner ====== */
.match-banner {
    background: linear-gradient(135deg, var(--accent-bg), var(--accent-bg2));
    border: 1px solid var(--banner-border); border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0; padding: 14px 20px;
    margin-bottom: 18px; display: none;
    align-items: center; gap: 14px;
}
.match-mode .match-banner { display: flex; }
.match-banner-text { color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.match-banner-sub { color: var(--text-muted); font-size: 0.82rem; }
.match-banner-filters { display: flex; gap: 6px; margin-left: auto; }
.match-chip {
    padding: 3px 10px; border-radius: 10px;
    background: var(--chip-bg); color: var(--gold);
    font-size: 0.68rem; cursor: pointer;
}
.match-chip.off { background: transparent; color: var(--text-muted); }

/* ====== Card Grid ====== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 1500px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ====== Cards ====== */
.card {
    display: block; text-decoration: none; color: inherit;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 22px 22px 18px 22px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--border-hover); background: var(--card-hover); }
.card.gold  { border-top: 2px solid var(--gold); }
.card.light { border-top: 2px solid var(--gold-dim); }
.card.mid   { border-top: 2px solid var(--gold-dark); }
.card.low   { border-top: 2px solid var(--text-muted); }

.card-channel {
    display: inline-block; padding: 3px 10px; border-radius: 10px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
    background: var(--accent-bg); color: var(--gold); margin-bottom: 12px;
}
.card-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem; font-weight: 500; color: var(--gold);
    line-height: 1; display: none;
}
.card-score span {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.72rem; color: var(--text-muted);
    margin-left: 6px;
}
.match-mode .card-score { display: block; }
.card-score-wrapper { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.card-title {
    font-weight: 600; font-size: 1rem; color: var(--text-heading);
    letter-spacing: 0.02em; line-height: 1.5; margin-bottom: 8px;
}
.card-desc {
    color: var(--text-muted); font-size: 0.85rem;
    margin-bottom: 10px; line-height: 1.7;
}
.card-reason {
    font-size: 0.75rem; color: var(--text-dim); margin-bottom: 8px;
    padding: 8px 10px; background: var(--bg-sidebar); border-radius: 6px;
    line-height: 1.5; display: none;
}
.card-reason b { color: var(--gold); font-weight: 500; }
.match-mode .card-reason { display: block; }

.card-footer {
    display: flex; flex-wrap: wrap; gap: 4px 14px;
    font-size: 0.78rem; color: var(--text-muted);
    padding-top: 12px; border-top: 1px solid var(--separator);
}
.card-updated {
    margin-left: auto;
    font-size: 0.72rem;
    opacity: 0.65;
}

/* ====== Sidebar ====== */
.sidebar-block { margin-bottom: 28px; }
.sidebar-block-title {
    font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
    letter-spacing: 0.06em; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sidebar-stat { display: flex; justify-content: space-between; padding: 5px 0; }
.sidebar-stat-label { font-size: 0.82rem; color: var(--text-muted); }
.sidebar-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem; color: var(--gold); font-weight: 500;
}
.sidebar-link {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0; font-size: 0.82rem; color: var(--text-muted);
    text-decoration: none; cursor: pointer; transition: color 0.15s;
}
.sidebar-link:hover { color: var(--text); }
.sidebar-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
}
.sidebar-recent-item {
    font-size: 0.78rem; color: var(--text-muted);
    padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ====== Empty States ====== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-title { font-size: 1rem; color: var(--text-muted); margin-bottom: 8px; }
.empty-state-desc { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 20px; line-height: 1.6; }
.empty-state-link { color: var(--gold); font-size: 0.85rem; cursor: pointer; font-weight: 500; text-decoration: none; }
.empty-state-link:hover { text-decoration: underline; }

/* ====== Signal Detail Page ====== */
.detail-header { margin-bottom: 40px; }
.detail-score-block {
    display: flex; align-items: center; gap: 24px; margin-bottom: 20px;
}
.detail-score-circle {
    width: 100px; height: 100px; border-radius: 50%;
    border: 4px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem; font-weight: 500; color: var(--gold);
    flex-shrink: 0; background: conic-gradient(var(--gold) 0deg, transparent 0deg);
}
.detail-score-info { flex: 1; }
.detail-score-channel {
    display: inline-block; padding: 3px 10px; border-radius: 10px;
    font-size: 0.7rem; font-weight: 600;
    background: var(--accent-bg); color: var(--gold);
    margin-bottom: 8px;
}
.detail-score-title { font-size: 1.4rem; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.detail-source { font-size: 0.82rem; color: var(--text-subtle); }
.detail-source a { color: var(--gold); text-decoration: none; }
.detail-source a:hover { text-decoration: underline; }

/* Quick Info Bar */
.detail-quick-info {
    display: flex; gap: 0; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 0; margin-bottom: 32px;
}
.detail-info-item {
    flex: 1; text-align: center;
    border-right: 1px solid var(--border); padding: 0 16px;
}
.detail-info-item:last-child { border-right: none; }
.detail-info-label { font-size: 0.73rem; color: var(--text-muted); margin-bottom: 2px; }
.detail-info-value {
    font-size: 0.9rem; color: var(--text-heading); font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Description */
.detail-desc {
    font-size: 0.95rem; color: var(--text-muted); line-height: 1.9;
    margin-bottom: 32px; padding: 20px 24px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}

/* Match Analysis Grid */
.detail-analysis { margin-bottom: 32px; }
.detail-section-title {
    font-size: 1rem; font-weight: 600; color: var(--text-heading);
    margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.analysis-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px;
}
.analysis-label {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.analysis-name { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.analysis-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem; color: var(--gold); font-weight: 500;
}
.analysis-bar {
    height: 4px; background: var(--separator); border-radius: 2px; overflow: hidden;
}
.analysis-fill {
    height: 100%; background: var(--gold); border-radius: 2px;
    transition: width 0.5s;
}
.analysis-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

/* Steps */
.detail-steps { margin-bottom: 32px; }
.detail-steps ol {
    list-style: none; counter-reset: step;
    padding: 0; margin: 0;
}
.detail-steps li {
    counter-increment: step; position: relative;
    padding: 10px 0 10px 36px;
    font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
    border-left: 1px solid var(--border); margin-left: 12px;
}
.detail-steps li::before {
    content: counter(step);
    position: absolute; left: -14px; top: 10px;
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--gold); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; background: var(--bg);
}

/* Risk Warning */
.detail-risks { margin-bottom: 32px; }
.risk-warning {
    border-left: 3px solid #c96930;
    padding: 12px 16px; margin-bottom: 6px;
    font-size: 0.85rem; color: var(--text-muted);
    background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0;
}

/* Related Opportunities */
.detail-related { margin-bottom: 32px; }
.related-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; cursor: pointer;
    transition: border-color 0.2s; text-decoration: none; display: block;
}
.related-card:hover { border-color: var(--border-hover); }
.related-card-channel {
    font-size: 0.68rem; color: var(--gold); margin-bottom: 6px;
}
.related-card-title { font-size: 0.88rem; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.related-card-desc {
    font-size: 0.78rem; color: var(--text-subtle); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Action Buttons */
.detail-actions {
    display: flex; gap: 10px; justify-content: flex-end;
    padding-top: 20px; border-top: 1px solid var(--border);
}
.detail-actions .btn.active-state {
    background: var(--accent-bg); border-color: var(--gold); color: var(--gold);
}

/* ====== Mobile Responsive (≤768px) ====== */
@media (max-width: 768px) {

    /* ── Login screen ── */
    .login-screen { flex-direction: column; min-height: 100vh; min-height: 100dvh; }
    .login-left { padding: 24px 16px; flex: 1; justify-content: center; min-height: 0; }
    .login-card { width: 100%; padding: 28px 20px; }
    .login-logo { font-size: 1.8rem; }
    .login-tagline { margin-bottom: 32px; }
    .login-right { width: 100%; padding: 28px 20px; border-left: none; border-top: 1px solid var(--border); flex-shrink: 0; }
    .login-pw-form { flex-direction: column; }
    .login-pw-input { width: 100%; }
    .btn-pw { width: 100%; }

    /* ── Nav ── */
    .nav { flex-wrap: wrap; padding: 8px 14px; gap: 8px; }
    .nav-logo { font-size: 1.1rem; }
    .nav-sub { font-size: 0.72rem; }
    .nav-spacer { display: none; }
    .nav-user { font-size: 0.72rem; }
    .nav a.sidebar-link { font-size: 0.7rem !important; padding: 2px 4px !important; }

    /* ── Tabs ── */
    .tabs { padding: 8px 10px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .tab { padding: 6px 10px; font-size: 0.75rem; flex-shrink: 0; }

    /* ── Main layout ── */
    .main { flex-direction: column; padding: 0; }
    .main-content { padding: 14px; }
    .main-sidebar {
        width: 100%; border-left: none; border-top: 1px solid var(--border);
        position: static; height: auto; padding: 16px;
    }

    /* ── Card grid ── */
    .card-grid { grid-template-columns: 1fr; gap: 10px; }
    .card { padding: 16px; }

    /* ── Signal detail ── */
    .detail-header { margin-bottom: 24px; }
    .detail-score-block { flex-direction: column; align-items: flex-start; gap: 14px; }
    .detail-score-circle { width: 72px; height: 72px; font-size: 1.3rem; }
    .detail-score-title { font-size: 1.1rem; }
    .detail-quick-info { flex-wrap: wrap; }
    .detail-info-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); padding: 10px 12px; }
    .detail-info-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .detail-info-item:nth-last-child(-n+2) { border-bottom: none; }
    .detail-desc { font-size: 0.85rem; padding: 14px 16px; }
    .analysis-grid { grid-template-columns: 1fr; }
    .related-cards { grid-template-columns: 1fr; }
    .detail-actions { flex-direction: column; }
    .detail-actions .btn { width: 100%; text-align: center; }

    /* ── Page layout ── */
    .page { padding: 16px; }
    .page-title { font-size: 1.3rem; }
    .fields { grid-template-columns: 1fr; }

    /* ── Admin tables ── */
    .admin-table { font-size: 0.72rem; }
    .admin-table th, .admin-table td { padding: 6px 4px; }
    .admin-table .title-cell { max-width: 120px; }
    .admin-table .desc-cell { display: none; }
    .admin-toolbar { flex-wrap: wrap; gap: 6px; }

    /* ── Setup / Profile ── */
    .setup-banner { padding: 24px 20px; }
}
