@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #4f46e5;
    --brand-strong: #4338ca;
    --brand-soft: #e0e7ff;
    --blue: #3b82f6;
    --amber: #f59e0b;
    --red: #ef4444;
    --green: #10b981;
    --shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.06), transparent 25%),
        linear-gradient(135deg, #f8fafc 0%, var(--surface-soft) 100%);
    color: var(--text);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand {
    font-family: 'Outfit', sans-serif;
}


a {
    color: inherit;
    text-decoration: none;
}

main,
section,
article,
form,
div {
    min-width: 0;
}

.topbar {
    align-items: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 6vw;
    position: sticky;
    top: 0;
    z-index: 20;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.topbar-actions {
    align-items: center;
    display: flex;
    flex: 0 1 auto;
    gap: 14px;
    justify-content: flex-end;
    margin-left: auto;
}

.topbar-note {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    gap: 10px;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), #164e63);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.brand-logo {
    display: block;
    max-height: 40px;
    max-width: 140px;
    object-fit: contain;
}

.public-menu,
.footer-menu,
.footer-social {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-menu-button {
    align-items: center;
    background: var(--brand-soft);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 48px;
    transition: all 0.2s ease;
}

.mobile-menu-button:hover {
    background: #c7d2fe;
}

.mobile-menu-button span {
    background: var(--brand);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 20px;
    transition: all 0.2s ease;
}

.mobile-menu-button span + span {
    margin-top: 0;
}

.public-menu a,
.footer-menu a,
.footer-social a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    transition: color 0.16s ease, background 0.16s ease;
}

.public-menu a:hover,
.footer-menu a:hover,
.footer-social a:hover {
    color: var(--brand-strong);
}

.language-selector {
    flex: 0 0 auto;
}

.language-selector select {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    min-height: 40px;
    padding: 0 10px;
}

.sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.ghost-link {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand-strong);
    font-weight: 700;
    padding: 10px 14px;
    text-align: center;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.ghost-link:hover {
    background: var(--brand-soft);
    border-color: rgba(15, 118, 110, 0.30);
}

.hero {
    align-items: center;
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    min-height: 640px;
    padding: 86px 6vw 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 60%);
    z-index: -1;
    filter: blur(60px);
}

.hero-copy h1,
.report-hero h1 {
    font-size: 52px;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0 0 18px;
    max-width: 820px;
}

.hero-copy p,
.report-hero p,
.section-heading p,
.promo-band p {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
    max-width: 760px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-badges span,
.audit-form-foot span {
    background: var(--brand-soft);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 10px;
}

.eyebrow {
    color: var(--brand-strong) !important;
    font-size: 13px !important;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 12px !important;
    text-transform: uppercase;
}

.audit-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audit-form:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.audit-form::before {
    background: linear-gradient(90deg, var(--brand), var(--blue));
    border-radius: 16px 16px 0 0;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.audit-form-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.audit-form-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.audit-form-head strong {
    color: var(--brand-strong);
}

.audit-form label {
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
}

.hp-field {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.captcha-field,
.report-captcha {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    margin-top: 12px;
}

.captcha-field input,
.report-captcha input {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    margin-left: 6px;
    min-height: 38px;
    padding: 0 10px;
    width: 86px;
}

.audit-input-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.audit-input-row input {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 17px;
    min-height: 54px;
    min-width: 0;
    padding: 0 20px;
    transition: all 0.2s ease;
}

.audit-input-row input:focus,
.captcha-modal-panel input:focus,
.language-selector select:focus {
    background: #ffffff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    outline: 0;
}

.audit-input-row button {
    background: linear-gradient(135deg, var(--brand), var(--blue));
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    min-height: 54px;
    padding: 0 28px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.audit-input-row button:hover,
.report-actions button:hover,
.external-action:hover,
.captcha-confirm:hover,
.cookie-notice button:hover {
    background: linear-gradient(135deg, var(--brand-strong), var(--blue));
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-2px);
}

.audit-input-row button:active,
.report-actions button:active,
.external-action:active,
.captcha-confirm:active {
    transform: translateY(1px);
}

.audit-form-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.audit-input-row button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.form-error {
    background: #fff3f0;
    border: 1px solid #ffd0c7;
    border-radius: 8px;
    color: var(--red) !important;
    margin-top: 14px !important;
    padding: 10px 12px;
}

.recent-section,
.report-layout {
    padding: 36px 6vw 70px;
}

.site-footer {
    background: #101a25;
    color: #d9e4ee;
    display: grid;
    gap: 18px;
    padding: 34px 6vw;
}

.site-footer strong {
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
}

.site-footer p,
.site-footer small {
    color: #aebdca;
    margin: 0;
}

.site-footer a {
    color: #d9e4ee;
}

.site-footer .app-version {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.75;
}

.cookie-notice {
    align-items: center;
    background: #101a25;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    bottom: 18px;
    box-shadow: var(--shadow);
    color: #ffffff;
    display: flex;
    gap: 14px;
    left: 50%;
    max-width: min(920px, calc(100% - 36px));
    padding: 14px;
    position: fixed;
    transform: translateX(-50%);
    width: max-content;
    z-index: 80;
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice p {
    color: #d9e4ee;
    margin: 0;
}

.cookie-notice button {
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    flex: 0 0 auto;
    font-weight: 800;
    min-height: 40px;
    padding: 0 14px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2,
.promo-band h2 {
    font-size: 32px;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 8px;
}

.recent-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.recent-card,
.metric-card,
.check-card,
.stat-card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
    box-shadow: var(--shadow-soft);
}

.recent-card {
    display: grid;
    gap: 8px;
    min-height: 160px;
    padding: 22px;
    transition: all 0.3s ease;
}

.recent-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.recent-card span:not(.score-pill),
.recent-card small {
    color: var(--muted);
}

.score-pill {
    align-items: center;
    border-radius: 10px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    width: 52px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 28px;
}

.report-layout {
    display: grid;
    gap: 24px;
}

.static-page {
    padding: 56px 6vw 70px;
}

.static-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 920px;
    padding: 40px;
}

.static-content h1 {
    font-size: 44px;
    line-height: 1.08;
    margin: 0 0 14px;
}

.static-content h2 {
    font-size: 24px;
    margin: 28px 0 8px;
}

.static-content p {
    color: var(--muted);
    margin: 0 0 12px;
}

.report-hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f5fbfa 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    min-height: 310px;
    padding: 30px;
}

.report-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.report-actions form {
    margin: 0;
}

.report-actions form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-actions button {
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 0 16px;
}

.link-actions {
    display: flex;
    margin-top: 14px;
}

.external-action {
    background: var(--brand);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
}

.score-ring {
    align-items: center;
    border-radius: 12px;
    color: #ffffff;
    display: grid;
    height: 150px;
    justify-items: center;
    padding: 18px;
    text-align: center;
    width: 150px;
    box-shadow: var(--shadow-soft);
}

.score-ring strong {
    font-size: 58px;
    line-height: 1;
}

.score-ring span {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.score-pill.good,
.score-ring.good {
    background: var(--green);
    color: #ffffff;
}

.score-pill.ok,
.score-ring.ok {
    background: var(--blue);
    color: #ffffff;
}

.score-pill.warn,
.score-ring.warn {
    background: var(--amber);
    color: #ffffff;
}

.score-pill.bad,
.score-ring.bad {
    background: var(--red);
    color: #ffffff;
}

.metric-card strong.good {
    color: var(--green);
}

.metric-card strong.ok {
    color: var(--blue);
}

.metric-card strong.warn {
    color: var(--amber);
}

.metric-card strong.bad {
    color: var(--red);
}

.report-tabs {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: thin;
    max-width: 100%;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.report-tabs button {
    background: var(--surface-soft);
    border: 0;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    flex: 0 0 auto;
    font-weight: 800;
    min-height: 40px;
    padding: 0 14px;
}

.score-grid,
.detail-grid,
.stat-row {
    display: grid;
    gap: 14px;
}

.score-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric-card,
.stat-card {
    min-height: 112px;
    padding: 18px;
}

.metric-card span,
.stat-card small {
    color: var(--muted);
    display: block;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.metric-card strong,
.stat-card strong {
    display: block;
    font-size: 38px;
    line-height: 1;
    margin-top: 14px;
}

.metric-card strong {
    background: transparent;
}

.promo-band {
    background: linear-gradient(135deg, var(--brand-strong), #164e63);
    border-radius: 8px;
    color: #ffffff;
    padding: 28px;
}

.promo-band p {
    color: #d6f1ef;
}

.report-section {
    padding-top: 20px;
    scroll-margin-top: 92px;
}

.detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.check-card {
    min-height: 176px;
    padding: 18px;
}

.check-card-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.check-card-top span,
.stat-card-top span {
    border-radius: 8px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px;
    text-transform: uppercase;
}

.help-button {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-strong);
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.check-card h3 {
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.check-card p,
.check-card small {
    color: var(--muted);
    display: block;
    overflow-wrap: anywhere;
}

.check-card.is-ok span {
    background: #e6f5ec;
    color: var(--green);
}

.check-card.is-alert span {
    background: #fff1d6;
    color: var(--amber);
}

.check-card.is-info span {
    background: #e8eef8;
    color: var(--blue);
}

.stat-card.is-ok .stat-card-top span {
    background: #e6f5ec;
    color: var(--green);
}

.stat-card.is-alert .stat-card-top span {
    background: #fff1d6;
    color: var(--amber);
}

.stat-card.is-info .stat-card-top span {
    background: #e8eef8;
    color: var(--blue);
}

.wide-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 14px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.wide-panel h3,
.keyword-block h4 {
    font-size: 20px;
    margin: 0 0 14px;
}

.serp-preview {
    border-left: 4px solid var(--blue);
    display: grid;
    gap: 4px;
    padding-left: 14px;
}

.serp-preview strong {
    color: #1a0dab;
    font-size: 18px;
}

.serp-preview span {
    color: #006621;
}

.serp-preview p {
    color: #545454;
    margin: 0;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    border-collapse: collapse;
    min-width: 620px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.keyword-block + .keyword-block {
    margin-top: 22px;
}

.stat-row {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 14px;
}

.simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.simple-list li {
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
    padding: 12px 0;
}

.simple-list li:last-child {
    border-bottom: 0;
}

.recommendation-list {
    display: grid;
    gap: 10px;
}

.recommendation-item {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 170px 150px;
    min-height: 72px;
    padding: 16px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.recommendation-item[hidden] {
    display: none;
}

.recommendation-item span,
.recommendation-item em {
    color: var(--muted);
    font-style: normal;
}

.help-modal[hidden] {
    display: none;
}

.captcha-modal[hidden] {
    display: none;
}

.captcha-modal {
    inset: 0;
    position: fixed;
    z-index: 70;
}

.captcha-modal-backdrop {
    background: rgba(16, 26, 37, 0.62);
    inset: 0;
    position: absolute;
}

.captcha-modal-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(16, 26, 37, 0.24);
    display: grid;
    gap: 14px;
    left: 50%;
    max-width: 430px;
    padding: 26px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 36px);
}

.captcha-icon {
    align-items: center;
    background: #e6f5ec;
    border-radius: 999px;
    color: var(--green);
    display: inline-flex;
    font-size: 20px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.captcha-modal-panel h2 {
    font-size: 25px;
    margin: 0 36px 0 0;
}

.captcha-modal-panel h3 {
    align-items: center;
    display: flex;
    font-size: 24px;
    gap: 12px;
    line-height: 1.2;
    margin: 0 36px 0 0;
}

.captcha-modal-panel p {
    color: var(--muted);
    margin: 0;
}

.captcha-modal-panel label {
    display: grid;
    gap: 8px;
    font-weight: 900;
}

.captcha-challenge {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    grid-template-columns: minmax(0, 1fr) 150px;
    padding: 10px;
}

.captcha-challenge span {
    color: var(--text);
    font-size: 18px;
}

.captcha-modal-panel input {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-size: 18px;
    min-height: 50px;
    padding: 0 14px;
    width: 100%;
}

.captcha-error {
    background: #fff3f0;
    border: 1px solid #ffd0c7;
    border-radius: 8px;
    color: var(--red) !important;
    padding: 9px 10px;
}

.captcha-confirm {
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    min-height: 48px;
    padding: 0 16px;
}

.captcha-modal-close {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 34px;
}

.help-modal {
    inset: 0;
    position: fixed;
    z-index: 50;
}

.help-modal-backdrop {
    background: rgba(24, 33, 47, 0.56);
    inset: 0;
    position: absolute;
}

.help-modal-panel {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow);
    left: 50%;
    max-width: 520px;
    padding: 24px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 36px);
}

.help-modal-panel h2 {
    font-size: 24px;
    margin: 0 36px 10px 0;
}

.help-modal-panel p {
    color: var(--muted);
    margin: 0;
}

.help-modal-close {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 32px;
}

@media (max-width: 820px) {
    .topbar {
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 18px;
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .topbar-actions {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 8px;
        display: none;
        gap: 12px;
        margin-left: 0;
        padding: 12px;
        width: 100%;
    }

    .topbar-actions.is-open {
        display: grid;
    }

    .topbar-actions .public-menu {
        align-items: stretch;
        display: grid;
        width: 100%;
    }

    .topbar-actions .public-menu a,
    .topbar-actions .ghost-link {
        background: var(--surface-soft);
        border-radius: 8px;
        padding: 10px 12px;
        width: 100%;
    }

    .cookie-notice {
        align-items: stretch;
        flex-direction: column;
        width: calc(100% - 36px);
    }

    .cookie-notice button {
        width: 100%;
    }

    .hero,
    .recent-section,
    .report-layout,
    .static-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        align-items: stretch;
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 36px;
    }

    .hero-copy h1,
    .report-hero h1 {
        font-size: 38px;
        line-height: 1.08;
    }

    .audit-input-row {
        grid-template-columns: 1fr;
    }

    .report-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
    }

    .score-ring {
        height: 128px;
        width: 128px;
    }

    .recommendation-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .topbar {
        min-height: 60px;
        padding: 0 14px;
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .topbar-note {
        display: none;
    }

    .brand {
        font-size: 16px;
    }

    .language-selector,
    .language-selector select {
        width: 100%;
    }

    .brand-mark {
        height: 34px;
        width: 34px;
    }

    .hero,
    .recent-section,
    .report-layout,
    .static-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        gap: 22px;
        padding-bottom: 26px;
        padding-top: 30px;
    }

    .hero-copy h1,
    .report-hero h1 {
        font-size: 31px;
    }

    .hero-copy p,
    .report-hero p,
    .section-heading p,
    .promo-band p {
        font-size: 15px;
    }

    .hero-badges {
        gap: 8px;
        margin-top: 18px;
    }

    .hero-badges span,
    .audit-form-foot span {
        font-size: 12px;
        padding: 7px 8px;
    }

    .audit-form,
    .wide-panel,
    .promo-band,
    .static-content {
        padding: 16px;
    }

    .static-content h1 {
        font-size: 31px;
    }

    .audit-form-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .audit-input-row input,
    .audit-input-row button {
        min-height: 50px;
        width: 100%;
    }

    .recent-grid,
    .detail-grid,
    .score-grid,
    .stat-row {
        grid-template-columns: 1fr;
    }

    .metric-card,
    .stat-card {
        min-height: 104px;
        padding: 14px;
    }

    .metric-card strong,
    .stat-card strong {
        font-size: 30px;
    }

    .metric-card span,
    .stat-card small {
        font-size: 12px;
    }

    .report-layout {
        gap: 18px;
        padding-bottom: 42px;
        padding-top: 24px;
    }

    .report-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .report-actions form,
    .report-actions button,
    .report-actions .ghost-link,
    .external-action {
        width: 100%;
    }

    .report-captcha,
    .report-captcha input {
        width: 100%;
    }

    .score-ring {
        height: auto;
        min-height: 104px;
        width: 100%;
    }

    .score-ring strong {
        font-size: 48px;
    }

    .report-tabs {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .report-tabs button {
        flex: 1 1 auto;
        font-size: 13px;
        min-height: 38px;
        padding: 0 12px;
    }

    .section-heading h2,
    .promo-band h2 {
        font-size: 24px;
    }

    .check-card {
        min-height: auto;
        padding: 16px;
    }

    .check-card h3 {
        font-size: 17px;
    }

    .recommendation-item {
        padding: 14px;
    }

    .table-wrap {
        overflow-x: visible;
    }

    table.mobile-card-table,
    table.mobile-card-table thead,
    table.mobile-card-table tbody,
    table.mobile-card-table tr,
    table.mobile-card-table th,
    table.mobile-card-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    table.mobile-card-table {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    table.mobile-card-table thead {
        height: 1px;
        overflow: hidden;
        position: absolute;
        width: 1px;
    }

    table.mobile-card-table tr {
        background: var(--surface-soft);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px;
    }

    table.mobile-card-table th,
    table.mobile-card-table td {
        border-bottom: 0;
        padding: 7px 0;
    }

    table.mobile-card-table td::before {
        color: var(--muted);
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 900;
        margin-bottom: 2px;
        text-transform: uppercase;
    }

    table.key-value-table td::before {
        display: none;
    }

    table.key-value-table th {
        color: var(--muted);
        font-size: 11px;
        padding-bottom: 2px;
    }

    table:not(.mobile-card-table) {
        min-width: 480px;
    }

    th,
    td {
        padding: 10px;
    }

    .help-modal-panel {
        max-height: calc(100vh - 36px);
        overflow-y: auto;
        padding: 20px;
    }

    .captcha-modal-panel {
        max-height: calc(100vh - 36px);
        overflow-y: auto;
        padding: 20px;
    }

    .captcha-challenge {
        grid-template-columns: 1fr;
    }

    .captcha-challenge input {
        width: 100%;
    }
}

@media (max-width: 380px) {
    table:not(.mobile-card-table) {
        min-width: 420px;
    }
}
