/* PlantBreed EU — Stylesheet */

:root {
    --bg-primary: #0a1a0f;
    --bg-secondary: #0f2518;
    --bg-card: #122b1a;
    --bg-input: #0d1f14;
    --border: #1e4d2e;
    --border-light: #2d6a4f;
    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --text-muted: #6b9e7a;
    --accent: #2d6a4f;
    --accent-light: #40916c;
    --accent-bright: #52b788;
    --accent-glow: #95d5b2;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --review-color: #52b788;
    --patent-color: #f4a261;
    --ngt-color: #a78bfa;
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0d2a16 50%, var(--bg-primary) 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--accent-bright);
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.auth-form h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
}

.auth-form .subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin: -10px 0 20px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.field input, select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.field input:focus, select:focus {
    outline: none;
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 2px rgba(82, 183, 136, 0.15);
}

.hint {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.code-input {
    font-size: 24px !important;
    letter-spacing: 8px;
    text-align: center;
    font-weight: bold;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

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

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.auth-links a {
    color: var(--accent-bright);
    text-decoration: none;
    font-size: 13px;
}

.auth-links a:hover { text-decoration: underline; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
}

.flash {
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
}

.flash.error { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
.flash.success { background: rgba(82, 183, 136, 0.15); color: var(--accent-bright); border: 1px solid rgba(82, 183, 136, 0.3); }
.flash.info { background: rgba(52, 152, 219, 0.15); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.3); }

/* Top Bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }

.logo {
    font-size: 20px;
    color: var(--accent-bright);
    font-weight: 700;
}

.tagline-sm {
    color: var(--text-muted);
    font-size: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.nav-link:hover { color: var(--accent-bright); }

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
}

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

.inline { display: inline; }

/* Dashboard */
.dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

/* Mode Selector */
.mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.mode-btn:hover { border-color: var(--border-light); }

.mode-btn.active[data-mode="review"] { border-color: var(--review-color); background: rgba(82, 183, 136, 0.08); }
.mode-btn.active[data-mode="patent"] { border-color: var(--patent-color); background: rgba(244, 162, 97, 0.08); }

.mode-icon { font-size: 28px; margin-bottom: 8px; }
.mode-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.mode-desc { font-size: 12px; color: var(--text-muted); text-align: center; }

/* Selection Panel */
.selection-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.select-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.select-col label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.select-col select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13px;
}

.select-col select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search Mode Radio */
.search-mode-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.search-mode-row > label {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    accent-color: var(--accent-bright);
}

/* NGT Badge */
.ngt-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.ngt-icon { font-size: 20px; }

.ngt-info strong {
    display: block;
    color: var(--ngt-color);
    font-size: 13px;
}

.ngt-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Generate Button */
.btn-generate {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-generate:hover:not(:disabled) { background: var(--accent-light); }
.btn-generate:disabled { opacity: 0.4; cursor: not-allowed; }

/* Progress */
.progress-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-bright);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

#progress-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: var(--accent-bright);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s;
    animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
    0% { width: 0%; margin-left: 0; }
    50% { width: 40%; margin-left: 30%; }
    100% { width: 0%; margin-left: 100%; }
}

/* Results */
.results-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
}

.results-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.results-header h2 {
    color: var(--accent-bright);
    font-size: 20px;
}

.results-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.btn-download {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-download:hover { background: var(--accent-light); }

/* Report Content */
.report-text {
    line-height: 1.8;
    font-size: 14px;
    color: var(--text-primary);
}

.report-text h1 { color: var(--accent-bright); font-size: 22px; margin: 24px 0 12px; }
.report-text h2 { color: var(--accent-light); font-size: 18px; margin: 20px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.report-text h3 { color: var(--accent-glow); font-size: 15px; margin: 16px 0 8px; }
.report-text p { margin-bottom: 12px; }
.report-text ul, .report-text ol { margin: 8px 0 12px 24px; }
.report-text li { margin-bottom: 4px; }
.report-text strong { color: var(--accent-glow); }

.report-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 12px;
}

.report-text th {
    background: var(--accent);
    color: white;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
}

.report-text td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.report-text tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* Legal Framework Banner */
.legal-banner {
    background: rgba(244, 162, 97, 0.08);
    border: 1px solid rgba(244, 162, 97, 0.25);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.legal-banner h3 {
    color: var(--patent-color);
    font-size: 15px;
    margin-bottom: 14px;
}

.legal-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.legal-item {
    padding: 12px;
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.5;
}

.legal-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.legal-item.dutch {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.legal-item.dutch strong { color: #ff9800; }

.legal-item.eu {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.legal-item.eu strong { color: #2196f3; }

.legal-item.cases {
    background: rgba(156, 39, 176, 0.1);
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.legal-item.cases strong { color: #9c27b0; }

.legal-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* CPVO Panel */
.cpvo-panel {
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.25);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
}

.cpvo-panel h3 {
    color: #66bb6a;
    font-size: 15px;
    margin-bottom: 12px;
}

.cpvo-panel h4 {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 12px 0 8px;
}

.cpvo-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.cpvo-stat {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.cpvo-stat.granted { color: #66bb6a; }
.cpvo-stat.pending { color: #ffa726; }

.cpvo-panel ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.cpvo-panel li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 3px 0;
}

.cpvo-link {
    display: inline-block;
    margin-top: 12px;
    color: #66bb6a;
    text-decoration: none;
    font-size: 13px;
}

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

@media (max-width: 768px) {
    .legal-items { grid-template-columns: 1fr; }
    .cpvo-panel ul { grid-template-columns: 1fr; }
}

.report-figures {
    margin-top: 24px;
}

.report-figures svg {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* Sources Panel */
.sources-panel {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.sources-panel h3 {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.source-item {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 13px;
}

.source-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.source-badge.europmc { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.source-badge.openalex { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.source-badge.ensembl { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.source-badge.gramene { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.source-badge.epo { background: rgba(244, 162, 97, 0.2); color: #f4a261; }

.source-title {
    color: var(--text-primary);
    line-height: 1.4;
}

.source-title a { color: var(--accent-bright); text-decoration: none; }
.source-title a:hover { text-decoration: underline; }

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

/* Samples Page */
.samples-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.samples-page h2 {
    color: var(--accent-bright);
    font-size: 24px;
    margin-bottom: 8px;
}

.samples-page .subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.sample-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.sample-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.2s;
}

.sample-card.expandable { cursor: pointer; }
.sample-card.expandable:hover { border-color: var(--accent); }
.sample-card.expanded { border-color: var(--accent); }

.sample-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.expand-arrow {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform 0.2s;
}

.sample-card h3 {
    color: var(--text-primary);
    margin: 10px 0 8px;
    font-size: 17px;
}

.sample-card > .sample-header p,
.sample-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.tag.hot { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* Expanded sample report */
.sample-report {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.report-content {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.7;
}

.report-content h2 {
    color: var(--accent-bright);
    font-size: 20px;
    margin-bottom: 4px;
}

.report-content h3 {
    color: var(--accent);
    font-size: 15px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.report-content p {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.report-content strong {
    color: var(--text-primary);
}

.report-meta {
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-bottom: 16px !important;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 12px;
}

.report-content th {
    background: rgba(45, 106, 79, 0.2);
    color: var(--accent-bright);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
}

.report-content td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.report-content tr:hover td {
    background: rgba(255,255,255,0.02);
}

.report-content ul {
    margin: 8px 0 16px 20px;
    padding: 0;
}

.report-content li {
    color: var(--text-secondary);
    font-size: 13.5px;
    margin-bottom: 6px;
    line-height: 1.6;
}

.report-content li strong {
    color: var(--accent-bright);
}

.report-disclaimer {
    color: var(--text-muted) !important;
    font-size: 11.5px !important;
    margin-top: 20px !important;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.sample-mode {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sample-mode.review { background: rgba(82, 183, 136, 0.15); color: var(--review-color); }
.sample-mode.patent { background: rgba(244, 162, 97, 0.15); color: var(--patent-color); }

.sample-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    padding: 3px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.tag.ngt { background: rgba(167, 139, 250, 0.15); color: var(--ngt-color); }

.cta {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.cta .btn-primary {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
}

/* Error Banner */
.error-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius);
    margin-bottom: 16px;
    color: #e74c3c;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.error-banner button {
    background: none;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 16px;
    white-space: nowrap;
}

.error-banner button:hover { background: rgba(231, 76, 60, 0.1); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* No Papers Notice */
.no-papers-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.no-papers-notice strong {
    color: #ffc107;
    font-size: 14px;
}

.no-papers-notice p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.legal-page h2 {
    color: var(--accent-bright);
    font-size: 24px;
    margin-bottom: 4px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section h3 {
    color: var(--accent-light);
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-section ul {
    margin: 8px 0 12px 24px;
    padding: 0;
}

.legal-section li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-section strong {
    color: var(--text-primary);
}

.legal-section a {
    color: var(--accent-bright);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.processor-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.processor-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.processor-item strong {
    color: var(--accent-glow);
    display: block;
    margin-bottom: 6px;
}

.processor-item p {
    margin-bottom: 6px;
}

.processor-item a {
    color: var(--accent-bright);
    text-decoration: none;
    font-size: 13px;
}

.processor-item a:hover {
    text-decoration: underline;
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 12px;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-bright);
    text-decoration: underline;
}

/* AI Disclosure Banner */
.ai-disclosure-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.25);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--info);
}

.ai-disclosure-banner strong {
    color: var(--info);
}

.ai-disclosure-banner a {
    color: var(--info);
    text-decoration: underline;
}

/* Utility */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    .select-row { grid-template-columns: 1fr 1fr; }
    .mode-selector { grid-template-columns: 1fr; }
    .results-header { flex-direction: column; gap: 12px; }
    .topbar { flex-direction: column; gap: 8px; }
    .tagline-sm { display: none; }
}

@media (max-width: 480px) {
    .select-row { grid-template-columns: 1fr; }
    .search-mode-row { flex-direction: column; align-items: start; }
}
