/* CSS Variables for theming */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-highlight: #e8f5e9;
    --text-primary: #212529;
    --text-secondary: #666666;
    --text-muted: #737373;
    --border-color: #dddddd;
    --border-light: #eeeeee;
    --accent-primary: #007bff;
    --accent-primary-hover: #0056b3;
    --accent-danger: #dc3545;
    --accent-danger-hover: #c82333;
    --accent-success: #4caf50;
    --accent-warning: #ff9800;
    --link-color: #007bff;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    --verdict-bg: #f0faf0;
    --verdict-border: #c8e6c9;
}

[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f2940;
    --bg-highlight: #1e3a2f;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #8c8c8c;
    --border-color: #3a3a5a;
    --border-light: #2a2a4a;
    --accent-primary: #4dabf7;
    --accent-primary-hover: #74c0fc;
    --accent-danger: #ff6b6b;
    --accent-danger-hover: #ff8787;
    --accent-success: #69db7c;
    --accent-warning: #ffd43b;
    --link-color: #74c0fc;
    --verdict-bg: #1a2e1a;
    --verdict-border: #2e4a2e;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* ===== LINKS: underline by default for accessibility ===== */
a {
    text-decoration: underline;
}

/* Navigation and UI links: no underline */
.page-end-about a,
.community-link,
.report-btn,
.card .job-url a,
.sticky-brand a {
    text-decoration: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

body.has-history .hero-section,
html.has-history-preload .hero-section {
    display: none;
}

.hero-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* Theme toggle hero position */
.theme-toggle-hero {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
}

body.has-history .theme-toggle-hero {
    display: none;
}

/* ===== HERO ENTRANCE ANIMATION ===== */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section.hero-animate .hero-icon,
.hero-section.hero-animate .hero-title,
.hero-section.hero-animate .hero-subtitle,
.hero-section.hero-animate .search-bar-pill,
.hero-section.hero-animate .trust-line,
.hero-section.hero-animate .page-end {
    opacity: 0;
    animation: heroFadeIn 0.5s ease-out forwards;
}

.hero-section.hero-animate .hero-icon       { animation-delay: 0.05s; }
.hero-section.hero-animate .hero-title      { animation-delay: 0.12s; }
.hero-section.hero-animate .hero-subtitle   { animation-delay: 0.19s; }
.hero-section.hero-animate .search-bar-pill { animation-delay: 0.26s; }
.hero-section.hero-animate .trust-line      { animation-delay: 0.35s; }
.hero-section.hero-animate .page-end        { animation-delay: 0.44s; }

/* ===== HISTORY STATE ENTRANCE ANIMATION ===== */
body.content-animate .sticky-header {
    animation: heroFadeIn 0.3s ease-out;
}

body.content-animate .history-toolbar {
    opacity: 0;
    animation: heroFadeIn 0.4s ease-out 0.08s forwards;
}

body.content-animate .history-container .card {
    animation: cardFadeIn 0.4s ease-out backwards;
}

body.content-animate .history-container .card:nth-child(1) { animation-delay: 0.1s; }
body.content-animate .history-container .card:nth-child(2) { animation-delay: 0.17s; }
body.content-animate .history-container .card:nth-child(3) { animation-delay: 0.24s; }
body.content-animate .history-container .card:nth-child(4) { animation-delay: 0.31s; }
body.content-animate .history-container .card:nth-child(5) { animation-delay: 0.38s; }
body.content-animate .history-container .card:nth-child(n+6) { animation-delay: 0.43s; }

body.content-animate #resultsPageEnd {
    opacity: 0;
    animation: heroFadeIn 0.4s ease-out 0.48s forwards;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-section.hero-animate .hero-icon,
    .hero-section.hero-animate .hero-title,
    .hero-section.hero-animate .hero-subtitle,
    .hero-section.hero-animate .search-bar-pill,
    .hero-section.hero-animate .trust-line,
    .hero-section.hero-animate .page-end,
    body.content-animate .sticky-header,
    body.content-animate .history-toolbar,
    body.content-animate .history-container .card,
    body.content-animate #resultsPageEnd {
        animation: none;
        opacity: 1;
    }
}

/* Trust line */
.trust-line {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}

.trust-line svg {
    color: #22c55e;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ===== THEME TOGGLE SLIDER ===== */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 28px;
}
.theme-slider .theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-primary);
    z-index: 1;
}
.theme-slider .theme-icon-sun {
    left: 6px;
}
.theme-slider .theme-icon-moon {
    right: 6px;
}
.theme-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-primary);
    transition: 0.3s;
    border-radius: 50%;
    z-index: 2;
}
.theme-switch input:checked + .theme-slider {
    background-color: var(--accent-primary);
}
.theme-switch input:checked + .theme-slider:before {
    transform: translateX(24px);
}

/* ===== PILL SEARCH BAR ===== */
.search-bar-pill {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 560px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--bg-secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar-pill:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.pill-input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
}

.pill-input::placeholder {
    color: var(--text-muted);
}

.pill-input.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.pill-btn {
    padding: 10px 24px;
    margin: 4px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: var(--font-sans);
}

.pill-btn:hover {
    background: var(--accent-primary-hover);
}

/* Compact pill for sticky header */
.pill-compact {
    max-width: 400px;
}

.pill-compact .pill-input {
    padding: 10px 16px;
    font-size: 14px;
}

.pill-compact .pill-btn {
    padding: 8px 18px;
    font-size: 13px;
}

/* ===== STICKY HEADER ===== */
.sticky-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    transition: background-color 0.3s;
}

body.has-history .sticky-header {
    display: block;
}

.sticky-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.sticky-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sticky-logo {
    width: 28px;
    height: 28px;
}

.sticky-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.sticky-header .search-bar-pill {
    flex: 1;
}

.sticky-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

/* ===== RESULTS WRAPPER ===== */
.results-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ===== HISTORY TOOLBAR ===== */
.history-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.history-count {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.btn-clear-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color 0.2s;
    font-family: var(--font-sans);
}

.btn-clear-text:hover {
    color: var(--accent-danger);
}

.filter-input {
    width: 22ch;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.filter-input:focus,
.filter-input.has-value {
    outline: none;
    border-color: var(--accent-warning);
    background-color: #fff8e1;
}

[data-theme="dark"] .filter-input:focus,
[data-theme="dark"] .filter-input.has-value {
    background-color: #2a2520;
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.toolbar-divider {
    width: 1px;
    height: 16px;
    background: var(--border-color);
    flex-shrink: 0;
}

.toolbar-toggle {
    display: none;
}

/* ===== HISTORY CONTAINER ===== */
.history-container {
    /* No max-height — page scrolls naturally */
}

.history-container .card:first-child {
    border-left: 4px solid var(--accent-primary);
}

/* ===== CARD DESIGN ===== */
.card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    animation: cardFadeIn 0.3s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    padding-right: 80px;
}

.card .company {
    margin: 0 0 16px 0;
    color: var(--accent-primary);
    font-size: 14px;
}

.card .company strong {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 12px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: var(--font-sans);
}

.copy-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.copy-btn.copied {
    background: var(--accent-success);
    color: white;
    border-color: var(--accent-success);
}

/* Verdict area */
.verdict {
    background: var(--verdict-bg);
    border: 1px solid var(--verdict-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.verdict .date-main {
    font-size: 1.15em;
    font-weight: 600;
    color: var(--accent-success);
    margin: 0 0 4px 0;
}

.verdict .time-ago {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

.verdict .date-explanation {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Details (detected dates) */
.card details {
    margin-top: 12px;
}

.card summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
}

.card .detail-content {
    padding: 10px 0;
    font-size: 13px;
}

.card .detail-content p {
    margin: 5px 0;
}

.card .detail-content small {
    color: var(--text-muted);
}

.card a {
    color: var(--link-color);
}

/* Card footer */
.card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.card-footer-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recheck-btn {
    padding: 8px 18px;
    font-size: 13px;
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-sans);
}

.recheck-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.recheck-note {
    font-size: 11px;
    color: var(--text-muted);
}

.delete-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: #dc3545;
}

.delete-btn svg {
    width: 14px;
    height: 14px;
}

/* Job URL in card */
.card .job-url {
    word-break: break-all;
    overflow-wrap: break-word;
    display: block;
    font-size: 11px;
    margin-top: 12px;
    color: var(--text-muted);
}

.card .job-url a {
    color: var(--text-muted);
}

/* Warning / error / success */
.error {
    color: var(--accent-danger);
}

.success {
    color: var(--accent-success);
}

.warning {
    color: var(--accent-warning);
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

/* Report button */
.report-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #ff4500;
    background: transparent;
    border: 1px solid #ff4500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.report-btn:hover {
    background: #ff4500;
    color: white;
}

/* ===== INLINE LOADING CARD ===== */
.loading-progress {
    padding: 4px 0;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.loading-step.completed {
    color: var(--text-muted);
}

.loading-step .step-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-step .step-icon svg {
    width: 14px;
    height: 14px;
    color: var(--accent-success);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== PAGE-END SECTION ===== */
.page-end {
    text-align: center;
    padding: 24px 0;
}

.page-end-about {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.page-end-about a {
    color: var(--link-color);
}

.page-end-about a:hover {
    text-decoration: underline;
}

.page-end-kofi {
    transform: scale(0.8);
    transform-origin: center center;
}

/* ===== HIDDEN INSIGHTS ===== */
.hidden-insights {
    margin-top: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
}

.hidden-insights summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hidden-insights summary:hover {
    color: var(--accent-primary-hover);
}

.hidden-insights-count {
    background: var(--accent-primary);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: normal;
}

.hidden-insights-content {
    padding: 12px 0 0 0;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.insight-item:last-child {
    margin-bottom: 0;
}

.insight-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.insight-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-value {
    color: var(--text-primary);
    font-weight: 500;
}

.insight-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: var(--text-primary);
}

.modal-section h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.modal-section p, .modal-section ul {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.modal-section ul {
    padding-left: 20px;
}

.modal-section li {
    margin-bottom: 6px;
}

.modal-kofi {
    margin-top: 12px;
}

/* About link */
.about-link {
    color: var(--link-color);
    font-size: 14px;
}

/* Confirm dialog */
.confirm-modal .modal-content {
    max-width: 360px;
    margin: auto;
    padding: 24px;
    text-align: center;
}

.confirm-modal .confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #dc3545;
}

.confirm-modal h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.confirm-modal p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--font-sans);
}

.confirm-buttons button:active {
    transform: scale(0.98);
}

.btn-cancel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--border-color);
}

.btn-danger {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Indeed modal */
.indeed-modal .confirm-icon {
    color: #003A9B;
}

.indeed-modal p {
    text-align: left;
    line-height: 1.5;
}

.indeed-modal .modal-content {
    max-width: 420px;
}

.indeed-modal strong {
    color: var(--text-primary);
}

/* LinkedIn modal */
.linkedin-modal .confirm-icon {
    color: #0A66C2;
}

.linkedin-modal p {
    text-align: left;
    line-height: 1.5;
}

.linkedin-modal .modal-content {
    max-width: 420px;
}

.linkedin-modal strong {
    color: var(--text-primary);
}

.btn-primary {
    background: #0A66C2;
    border: 1px solid #0A66C2;
    color: white;
}

.btn-primary:hover {
    background: #004182;
}

/* Version cards in About modal */
.version-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-primary);
}

.version-card .version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.version-card .version-number {
    font-weight: bold;
    color: var(--accent-primary);
}

.version-card .version-date {
    font-size: 12px;
    color: var(--text-muted);
}

.version-card .version-notes {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Community link */
.community-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ff4500;
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
}

.community-link:hover {
    background: #e03d00;
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
    .hero-section {
        min-height: 100dvh;
        padding: 30px 16px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .pill-input {
        font-size: 16px;
        padding: 12px 16px;
    }

    .pill-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Sticky header: hide title, search fills space */
    .sticky-title {
        display: none;
    }

    .sticky-header-inner {
        gap: 10px;
        padding: 0 12px;
    }

    .sticky-header .search-bar-pill {
        flex: 1;
        max-width: none;
    }

    .pill-compact .pill-input {
        font-size: 16px;
        padding: 10px 14px;
    }

    /* Cards: reduced padding */
    .card {
        padding: 18px;
    }

    .card h3 {
        padding-right: 70px;
    }

    /* Results wrapper: tighter padding */
    .results-wrapper {
        padding: 0 12px 30px;
    }

    /* Hide header toggle on mobile, show toolbar toggle instead */
    .sticky-controls {
        display: none;
    }

    .toolbar-toggle {
        display: flex;
        margin-left: auto;
    }

    /* History toolbar: wrap on mobile */
    .history-toolbar {
        flex-wrap: wrap;
    }

    .filter-input {
        font-size: 16px;
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    /* Verdict */
    .verdict .time-ago {
        font-size: 1.3rem;
    }

    /* Page-end */
    .page-end-kofi {
        transform: scale(0.75);
    }
}
