/* ============ Reset & base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #2952e3;
    --primary-dark: #1e3fb8;
    --accent: #ff5a1f;
    --accent-dark: #e14a12;
    --success: #16a34a;
    --warn: #d97706;
    --danger: #dc2626;
    --ink: #0f1225;
    --ink-soft: #5c6079;
    --bg: #f5f6fa;
    --card: #ffffff;
    --border: #e4e6f0;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 2px rgba(15, 18, 37, 0.05), 0 1px 3px rgba(15, 18, 37, 0.06);
    --shadow-lg: 0 12px 28px -8px rgba(15, 18, 37, 0.18), 0 4px 10px -4px rgba(15, 18, 37, 0.08);
    --sidebar-bg: #14152b;
    --sidebar-bg-active: #1f2140;
    --sidebar-text: #9497b8;
    --sidebar-text-active: #ffffff;
    --sidebar-border: #262845;
    --sidebar-width: 248px;
}
html { -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.main-content { min-height: 70vh; padding: 40px 0 60px; }
h1, h2, h3, h4 { letter-spacing: -0.015em; font-weight: 700; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ============ Public header (marketing/auth pages) ============ */
header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.header-flex { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #ff8a4c);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
nav { display: flex; align-items: center; gap: 22px; }
nav a:not(.btn-sm) { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
nav a:not(.btn-sm):hover { color: var(--ink); text-decoration: none; }
.btn-sm { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 13.5px; }
.btn-sm:hover { background: var(--accent-dark); text-decoration: none; }

footer { border-top: 1px solid var(--border); padding: 26px 0; text-align: center; color: var(--ink-soft); font-size: 13px; }

/* ============ Buttons ============ */
.btn {
    display: inline-block; background: var(--primary); color: #fff; border: none;
    padding: 12px 24px; border-radius: 9px; font-size: 14.5px; font-weight: 700;
    cursor: pointer; transition: background 0.15s, transform 0.1s; font-family: inherit;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-cta { background: var(--accent); }
.btn-cta:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.btn-outline:hover { background: #f8f9fc; border-color: var(--primary); color: var(--primary); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============ Hero (legacy marketing homepage, kept for reference) ============ */
.hero {
    text-align: center; padding: 72px 20px 56px;
    background: radial-gradient(ellipse at top, #eef1ff 0%, var(--bg) 60%);
    border-radius: var(--radius-lg); margin-bottom: 48px;
}
.hero h1 { font-size: 42px; margin-bottom: 14px; }
.hero .subtitle { font-size: 18px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px; }
.search-form {
    display: flex; gap: 10px; max-width: 560px; margin: 0 auto 12px;
    background: var(--card); padding: 8px; border-radius: 12px; box-shadow: var(--shadow-lg);
}
.search-form input { flex: 1; border: none; padding: 12px 16px; font-size: 16px; border-radius: 8px; outline: none; font-family: inherit; }
.search-form input:focus { box-shadow: 0 0 0 3px rgba(41, 82, 227, 0.15); }
.trust-line { font-size: 13px; color: #9497b8; margin-top: 8px; }
.error { color: var(--danger); font-weight: 600; margin-top: 10px; }

.features { padding: 20px 0 40px; text-align: center; }
.features h2 { font-size: 26px; margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 40px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; text-align: left; }
.feature-card .icon { width: 38px; height: 38px; margin-bottom: 14px; color: var(--accent); }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 13.5px; }

/* ============ Auth pages ============ */
.auth-shell {
    min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 20% 10%, #1c1e3d 0%, #0f1225 55%, #0a0b18 100%);
    padding: 40px 20px;
}
.auth-card {
    background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 40px 36px; width: 100%; max-width: 400px;
}
.auth-card .auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 22px; }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-subtitle { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-bottom: 26px; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field-group input {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 14.5px; font-family: inherit; transition: border-color 0.15s;
}
.field-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(41, 82, 227, 0.12); }
.auth-card .btn { width: 100%; margin-top: 4px; }
.auth-links { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 8px; }
.auth-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.auth-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }

/* legacy simple auth section fallback */
section.auth { max-width: 380px; margin: 40px auto; }
section.auth input { width: 100%; padding: 11px 13px; margin-bottom: 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14.5px; }

/* ============ App shell (dashboard / report / admin) ============ */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
    width: var(--sidebar-width); flex-shrink: 0; background: var(--sidebar-bg);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.app-sidebar .sidebar-logo {
    display: flex; align-items: center; gap: 10px; padding: 22px 20px;
    color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -0.02em;
}
.app-sidebar .sidebar-logo:hover { text-decoration: none; }
.sidebar-nav { display: flex; flex-direction: column; flex: 1; padding: 8px 12px; }
.sidebar-section-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: #585b7a; padding: 16px 12px 8px; font-weight: 700; }
.sidebar-link {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px;
    color: var(--sidebar-text); font-size: 14px; font-weight: 600; margin-bottom: 2px; transition: background 0.12s, color 0.12s;
}
.sidebar-link:hover { background: var(--sidebar-bg-active); color: #fff; text-decoration: none; }
.sidebar-link.active { background: var(--sidebar-bg-active); color: #fff; }
.sidebar-link.active .sidebar-icon { color: var(--accent); }
.sidebar-icon { width: 18px; height: 18px; flex-shrink: 0; color: #6b6e92; }
.sidebar-link:hover .sidebar-icon, .sidebar-link.active .sidebar-icon { color: inherit; }
.sidebar-footer { border-top: 1px solid var(--sidebar-border); padding: 14px 20px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sidebar-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.sidebar-user-info { overflow: hidden; }
.sidebar-user-email { color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { color: var(--sidebar-text); font-size: 11px; text-transform: capitalize; }
.sidebar-footer a { color: var(--sidebar-text); font-size: 12.5px; font-weight: 600; }
.sidebar-footer a:hover { color: #fff; }

.app-main { flex: 1; min-width: 0; }
.app-topbar {
    height: 64px; background: var(--card); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 30;
}
.app-topbar h1 { font-size: 18px; }
.app-topbar .topbar-actions { display: flex; align-items: center; gap: 12px; }
.app-content { padding: 28px; max-width: 1200px; }

.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.admin-tabs a { padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.admin-tabs a:hover { color: var(--ink); text-decoration: none; }
.admin-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============ Score card / gauge ============ */
.results-header { text-align: center; margin-bottom: 32px; }
.results-header h1 { font-size: 28px; margin-bottom: 6px; }
.results-url { color: var(--ink-soft); word-break: break-all; font-size: 14px; }
.score-card {
    display: flex; align-items: center; gap: 44px; justify-content: center; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.score-circle { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.score-circle.large { width: 160px; height: 160px; }
.score-circle svg { width: 100%; height: 100%; }
.score-number { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%); font-size: 36px; font-weight: 800; }
.score-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, 62px); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; font-weight: 600; }
.score-details { display: flex; gap: 30px; flex-wrap: wrap; }
.detail-item { display: flex; flex-direction: column; }
.detail-label { font-size: 11.5px; color: #9497b8; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.detail-value { font-size: 17px; font-weight: 700; }

.report-score-section {
    display: flex; align-items: center; gap: 48px; justify-content: center; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.report-header { text-align: center; margin-bottom: 22px; }
.report-header h1 { font-size: 24px; margin-bottom: 6px; }
.report-url { color: var(--ink-soft); word-break: break-all; font-size: 14px; }
.report-date { color: #9497b8; font-size: 12.5px; margin-top: 2px; }

/* category score bars (Ahrefs-style horizontal bars instead of plain boxes) */
.category-scores { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.category-score-item { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 12px; }
.category-score-item .cat-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.category-score-item .cat-bar-track { height: 8px; background: #eef0f6; border-radius: 99px; overflow: hidden; }
.category-score-item .cat-bar-fill { height: 100%; border-radius: 99px; }
.category-score-item .cat-value { font-size: 13px; font-weight: 800; text-align: right; }

/* ============ Metrics grid ============ */
.metrics-grid, .report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-bottom: 32px; }
.metric-card, .report-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px; box-shadow: var(--shadow);
}
.metric-card h3 { font-size: 13px; margin-bottom: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.report-card h2 { font-size: 14.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.report-card h2 .card-icon { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }
.metric-value { font-size: 14.5px; word-break: break-word; margin-bottom: 4px; }
.metrics-table { width: 100%; border-collapse: collapse; }
.metrics-table td { padding: 7px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.metrics-table tr:first-child td { border-top: none; }
.metrics-table td:first-child { color: var(--ink-soft); font-weight: 600; }
.broken-link-list, .keyword-list { list-style: none; margin-top: 12px; padding: 0; font-size: 12px; color: var(--ink-soft); }
.broken-link-list li, .keyword-list li { padding: 5px 0; border-top: 1px solid var(--border); word-break: break-all; }

/* ============ Recommendations ============ */
.recommendations-section, .recommendations-full { margin-bottom: 32px; }
.recommendations-section h2, .recommendations-full h2 { font-size: 20px; margin-bottom: 18px; }
.rec-card {
    background: var(--card); border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px;
    padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.rec-critical { border-left-color: var(--danger); }
.rec-warning { border-left-color: var(--warn); }
.rec-info { border-left-color: var(--primary); }
.rec-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.rec-header h4 { font-size: 15px; margin: 0; font-weight: 700; }
.rec-priority { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; letter-spacing: 0.04em; }
.badge-critical { background: var(--danger); }
.badge-warning { background: var(--warn); }
.badge-info { background: var(--primary); }
.rec-category { font-size: 11.5px; color: var(--ink-soft); background: #f1f2f8; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.rec-fix { margin-top: 10px; background: #f8f9fc; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.success-message { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 14px 16px; border-radius: 10px; font-weight: 600; }

.report-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.btn-back { color: var(--ink-soft); font-weight: 600; font-size: 13.5px; }
.action-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.action-buttons .btn { padding: 10px 18px; font-size: 13.5px; background: var(--card); color: var(--ink); border: 1.5px solid var(--border); }
.action-buttons .btn:hover { border-color: var(--primary); color: var(--primary); background: #f8f9fc; }

/* ============ Paywall / teaser ============ */
.locked-section {
    position: relative; margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); background: var(--card); padding: 28px;
}
.locked-list { list-style: none; filter: blur(4px); user-select: none; pointer-events: none; }
.locked-list li { padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.locked-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(245,246,250,0.2) 0%, rgba(245,246,250,0.97) 55%);
    text-align: center; padding: 20px;
}
.locked-overlay .lock-icon { width: 34px; height: 34px; margin-bottom: 10px; color: var(--accent); }
.locked-overlay h3 { font-size: 19px; margin-bottom: 6px; }
.locked-overlay p { color: var(--ink-soft); margin-bottom: 16px; font-size: 13.5px; }

.upsell-card {
    background: linear-gradient(135deg, #14152b 0%, #262a4f 100%);
    border-radius: var(--radius-lg); color: #fff;
    padding: 38px; text-align: center; margin-bottom: 32px;
}
.upsell-card h3 { font-size: 20px; margin-bottom: 4px; }
.upsell-card .price { font-size: 42px; font-weight: 800; margin: 12px 0 4px; }
.upsell-card .price span { font-size: 14px; font-weight: 500; color: #a7abce; }
.included-list { list-style: none; text-align: left; max-width: 380px; margin: 20px auto 26px; }
.included-list li { padding: 7px 0; font-size: 13.5px; color: #d2d4ec; }
.included-list li::before { content: "✓ "; color: #34e0a1; font-weight: 800; }

/* ============ Checkout page ============ */
.checkout-wrap { max-width: 460px; margin: 0 auto; }
.order-summary {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.order-summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; }
.order-summary .row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 17px; }
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-divider { text-align: center; color: #9497b8; font-size: 12.5px; margin: 2px 0; }
#paypal-button-container { min-height: 45px; }
.secure-note { text-align: center; font-size: 12px; color: #9497b8; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0; opacity: 0.65; flex-wrap: wrap; }
.trust-row span { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* ============ Dashboard (app shell content) ============ */
.dashboard-hero {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.dashboard-hero h2 { font-size: 15px; margin-bottom: 14px; }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14.5px; font-family: inherit; }
.audit-list { list-style: none; }
.audit-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 18px; margin-bottom: 10px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.audit-list .audit-score { font-weight: 800; width: 40px; text-align: center; padding: 3px 0; border-radius: 6px; font-size: 13px; flex-shrink: 0; }
.tag { font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.tag-paid { background: #dcfce7; color: #166534; }
.tag-locked { background: #f1f2f8; color: var(--ink-soft); }

/* ============ Admin dashboard ============ */
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0 0 28px; }
.admin-stat-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; box-shadow: var(--shadow);
}
.admin-stat-card .stat-label { font-size: 11.5px; color: #9497b8; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 7px; font-weight: 700; }
.admin-stat-card .stat-value { font-size: 27px; font-weight: 800; }
.admin-stat-card .stat-sub { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #9497b8; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fafafd; font-weight: 700; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafd; }
.role-badge { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.02em; }
.role-admin { background: #ede9fe; color: #6d28d9; }
.role-premium { background: #dcfce7; color: #166534; }
.role-user { background: #f1f2f8; color: var(--ink-soft); }
.settings-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px; max-width: 560px; box-shadow: var(--shadow); }
.settings-card h2 { font-size: 15px; margin-bottom: 18px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13.5px; font-family: inherit;
}
.form-row textarea { font-family: ui-monospace, monospace; font-size: 12.5px; min-height: 90px; }
.form-hint { font-size: 11.5px; color: #9497b8; margin-top: 5px; line-height: 1.5; }

@media (max-width: 900px) {
    .app-shell { flex-direction: column; }
    .app-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; overflow-x: auto; padding: 0; }
    .sidebar-nav { display: flex; padding: 10px; }
    .sidebar-footer { display: none; }
    .sidebar-section-label { display: none; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 28px; }
    .search-form { flex-direction: column; }
    .score-card, .report-score-section { flex-direction: column; text-align: center; }
    .category-scores { width: 100%; }
    .app-content { padding: 18px; }
    .app-topbar { padding: 0 18px; }
}
