:root {
    --bg-color: #f9fafb;
    --text-color: #1f2933;
    --card-bg: #ffffff;
    --border-color: #d9e2ec;
    --accent-color: #2563eb;
    --muted-color: #52606d;
    --success: #0f9d58;
    --danger: #d93025;
    --warning: #fbbc05;
    --badge-bg: #e4e7eb;
}

body[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --card-bg: #1e293b;
    --border-color: #334155;
    --accent-color: #60a5fa;
    --muted-color: #94a3b8;
    --badge-bg: #27364d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.header-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: underline;
}

body[data-theme="dark"] a {
    color: #e2e8f0;
}

body[data-theme="dark"] a:hover,
body[data-theme="dark"] a:focus {
    color: #f8fafc;
}

.brand-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
}

.brand-text {
    font-weight: 700;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(148, 163, 184, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.summary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.summary-card-title {
    margin: 0;
    font-size: 1rem;
}

.summary-card-value {
    font-weight: 700;
    font-size: 1.5rem;
}

.summary-card-value-block {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.35;
    word-break: break-word;
}

.summary-card-message {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted-color);
}

.analysis-warning {
    margin: 0.75rem 0;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 0.9rem;
    line-height: 1.4;
}

body[data-theme="dark"] .analysis-warning {
    border-color: rgba(252, 211, 77, 0.45);
    background: rgba(251, 191, 36, 0.14);
    color: #facc15;
}

.summary-card button {
    align-self: flex-start;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.summary-card button:hover,
.summary-card button:focus {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.summary-card.status-full {
    background: rgba(15, 157, 88, 0.12);
    border-color: rgba(15, 157, 88, 0.35);
}

.summary-card.status-partial {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 146, 60, 0.45);
}

.summary-card.status-blocked {
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
}

.summary-card.status-empty {
    background: rgba(148, 163, 184, 0.08);
    border-style: dashed;
}

.summary-card.status-present {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.45);
}

.summary-card.status-absent {
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
}

.summary-highlight {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    transition: box-shadow 0.3s ease;
}

.main-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    margin: 0 auto;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.45rem;
    background: var(--card-bg);
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease;
}

.menu-toggle:focus,
.menu-toggle:hover {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.5);
}

.menu-toggle .menu-icon {
    width: 20px;
    height: 14px;
    position: relative;
    display: inline-block;
}

.menu-toggle .menu-icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle .menu-icon span:nth-child(1) {
    top: 0;
}

.menu-toggle .menu-icon span:nth-child(2) {
    top: 6px;
}

.menu-toggle .menu-icon span:nth-child(3) {
    bottom: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-link {
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.4);
}

.nav-link.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.theme-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 34px;
    padding: 0;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(135deg, #1f2937, #0f172a);
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.45);
    cursor: pointer;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.theme-toggle-btn[data-mode="dark"] {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    border-color: rgba(250, 204, 21, 0.6);
    box-shadow: inset 0 2px 6px rgba(241, 196, 15, 0.3);
}

.theme-toggle-btn:hover {
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.18);
}

.theme-toggle-btn:focus {
    outline: 3px solid rgba(96, 165, 250, 0.45);
    outline-offset: 2px;
}

.theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.theme-icon-sun {
    left: 12px;
    opacity: 0.25;
    color: #facc15;
}

.theme-icon-moon {
    right: 12px;
    opacity: 1;
    color: #cbd5f5;
}

.theme-toggle-btn[data-mode="dark"] .theme-icon-sun {
    opacity: 1;
    color: #facc15;
}

.theme-toggle-btn[data-mode="dark"] .theme-icon-moon {
    opacity: 0.3;
    color: #6366f1;
}

.theme-toggle-thumb {
    position: absolute;
    top: 50%;
    left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.45);
    transform: translateY(-50%);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle-btn[data-mode="dark"] .theme-toggle-thumb {
    transform: translate(30px, -50%);
    background: #1e293b;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
}


.locale-select {
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: inherit;
    font-weight: 600;
    min-width: 110px;
    max-width: 200px;
}

.locale-select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-toggle input[type="checkbox"] {
    width: 40px;
    height: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}


.analyze-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
}

.form-inline {
    display: flex;
    gap: 0.75rem;
}

.form-inline input[type="url"],
.form-inline input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    background: transparent;
    color: inherit;
}

.form-inline input[type="url"]:focus,
.form-inline input[type="text"]:focus {
    outline: 2px solid var(--accent-color);
    border-color: transparent;
}

.form-inline button {
    padding: 0.75rem 1.3rem;
    border-radius: 8px;
    border: none;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-inline button:hover,
.form-inline button:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    outline: none;
}

body[data-theme="dark"] .form-inline button {
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.25);
}

body[data-theme="dark"] .form-inline button:hover,
body[data-theme="dark"] .form-inline button:focus {
    box-shadow: 0 14px 30px rgba(96, 165, 250, 0.3);
}

.bots-fieldset {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
}

.bots-fieldset legend {
    padding: 0 0.5rem;
    font-weight: 600;
}

.bot-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.bot-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.bot-item:hover {
    border-color: var(--accent-color);
}

.bot-item input[type="checkbox"] {
    margin: 0;
}

.bot-name {
    font-weight: 600;
}

.bot-type {
    font-size: 0.75rem;
    background: var(--badge-bg);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bot-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bot-actions button,
.export-actions button {
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    border: none;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.bot-actions button:hover,
.export-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

#formFeedback {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--muted-color);
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
}

.tab-button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.report-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.report-meta {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.report-meta a {
    color: var(--accent-color);
}

.report-section-heading {
    margin: 2rem 0 0.75rem;
}


.category-block {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    margin-bottom: 1rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.category-block.status-partial {
    border-color: rgba(217, 48, 37, 0.35);
}

.category-block.status-full {
    border-color: rgba(15, 157, 88, 0.35);
}

.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.category-info h3 {
    margin: 0 0 0.35rem;
}

.category-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
}

.category-summary-text {
    font-weight: 400;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.category-info .category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted-color);
}

.category-info .category-percentage {
    font-weight: 700;
    color: var(--accent-color);
}

.category-toggle {
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
}

.category-toggle:hover {
    border-color: var(--accent-color);
}

.category-detail {
    border-top: 1px solid var(--border-color);
    padding: 0 1rem 1rem;
    background: rgba(148, 163, 184, 0.08);
}

.category-detail-body {
    padding-top: 0.75rem;
}

.category-detail[hidden] {
    display: none;
}



.category-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.category-table th,
.category-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.category-table tbody tr:last-child td {
    border-bottom: none;
}

.category-table .bot-name {
    font-weight: 600;
}

.category-table .bot-ua {
    font-size: 0.75rem;
    color: var(--muted-color);
    word-break: break-all;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.allowed {
    background: rgba(15, 157, 88, 0.15);
    color: var(--success);
}

.status-badge.disallowed {
    background: rgba(217, 48, 37, 0.15);
    color: var(--danger);
}

.status-badge.noindexed {
    background: rgba(251, 188, 5, 0.2);
    color: #9a6b05;
}

.category-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted-color);
}

.result-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.bot-card-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.bot-ua {
    font-size: 0.8rem;
    color: var(--muted-color);
    word-break: break-all;
}

.bot-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.bot-links a {
    color: var(--accent-color);
    text-decoration: none;
}

.bot-delay {
    font-size: 0.8rem;
    color: var(--muted-color);
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.allowed {
    background: rgba(15, 157, 88, 0.12);
    color: var(--success);
}

.badge.disallowed {
    background: rgba(217, 48, 37, 0.12);
    color: var(--danger);
}

.badge.noindexed {
    background: rgba(251, 188, 5, 0.18);
    color: #9a6b05;
}

.mech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.mech-tags span {
    font-size: 0.75rem;
    background: var(--badge-bg);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.rule-details {
    font-size: 0.85rem;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 0.6rem;
    border: 1px dashed var(--border-color);
    display: none;
}

.rule-details.active {
    display: block;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.result-actions button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: inherit;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.result-actions button:hover {
    border-color: var(--accent-color);
}

.code-block {
    background: rgba(148, 163, 184, 0.12);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    max-height: 260px;
}

.inline-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.inline-meta div {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.inline-meta strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-color);
}

#robotsStatus,
#robotsUrl,
#sitemapsList {
    word-break: break-all;
}

.technical-assets {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.technical-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.technical-summary .summary-card {
    margin: 0;
}

.technical-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.technical-summary-list li {
    font-size: 0.9rem;
    color: var(--muted-color);
    word-break: break-word;
}

.export-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

#exportPreview {
    width: 100%;
    min-height: 200px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    background: rgba(148, 163, 184, 0.08);
    color: inherit;
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.history-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
}

.history-list .history-url {
    font-weight: 600;
    word-break: break-all;
}

.history-list .history-time {
    font-size: 0.8rem;
    color: var(--muted-color);
}

.history-list .history-summary {
    font-size: 0.85rem;
    text-align: right;
}

.history-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.history-pagination button {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.history-pagination button:hover {
    border-color: var(--accent-color);
}

.footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted-color);
}

.footer code {
    background: rgba(148, 163, 184, 0.18);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.home-tagline {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.05rem;
    color: var(--muted-color);
}

.home-section h2 {
    margin-top: 0;
}

.home-section p {
    margin: 0.75rem 0;
}

.home-section ul {
    margin: 0.75rem 0 0.25rem 1.25rem;
    padding: 0;
}

.faq-section article + article {
    margin-top: 1.5rem;
}

.faq-section h2,
.faq-section h3 {
    margin-top: 0;
}

.faq-section ul {
    margin: 0.75rem 0 0.25rem 1.25rem;
    padding: 0;
}

.faq-index-list {
    margin: 0.75rem 0 0.25rem 1.25rem;
    padding: 0;
}

.faq-index-list li {
    margin: 0.35rem 0;
}

.faq-index-list a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 500;
}

.faq-index-list a:hover,
.faq-index-list a:focus {
    text-decoration: underline;
}

.faq-item {
    padding: 1.1rem 1.35rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(148, 163, 184, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item + .faq-item {
    margin-top: 1.25rem;
}

.faq-item h2 {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.faq-item-active {
    border-color: rgba(37, 99, 235, 0.75);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.faq-answer p {
    margin: 0.65rem 0;
}

.faq-answer ul {
    margin: 0.65rem 0 0.25rem 1.25rem;
}

.report-title-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3);
    margin-right: 0.6rem;
    vertical-align: middle;
}

.technical-files-list {
    list-style: none;
    margin: 0.75rem 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.technical-files-list li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.technical-file-status {
    color: var(--muted-color);
    margin-left: 0;
    font-size: 0.8rem;
}

.history-card {
    margin-bottom: 1.5rem;
}

.history-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .header {
        gap: 0.75rem;
    }

    .header-top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-auto-rows: auto;
        align-items: center;
        width: 100%;
        gap: 0.65rem;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        gap: 0.5rem;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 0.75rem;
        background: var(--card-bg);
        display: none;
        margin-top: 0.35rem;
        margin-inline: 0;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        justify-content: center;
        gap: 0.35rem;
        flex-wrap: nowrap;
        justify-self: center;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
        grid-column: 3;
        grid-row: 1;
    }

    .locale-select {
        flex: 0 1 auto;
        min-width: 80px;
        padding: 0.28rem 0.5rem;
        max-width: 130px;
    }

    .header-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .form-inline {
        flex-direction: column;
        width: 100%;
    }

    .form-inline button {
        width: 100%;
    }

    .header-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .history-list li {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .history-list .history-summary {
        text-align: left;
    }

    .category-info .category-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}
