/* ══════════════════════════════════════════════════════════════════
   StudySmarter Market Intelligence — Dashboard Corporate
   Stripe/Linear inspired, blue accent, structured cards
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=DM+Mono:wght@400;500&display=swap');

:root {
    --ink: #0a0a0f;
    --ink-secondary: #374151;
    --ink-muted: #6b7280;
    --surface: #f3f4f6;
    --surface-raised: #ffffff;
    --surface-inset: #f9fafb;
    --rule: #d1d5db;
    --rule-light: #e5e7eb;
    --accent: #ff7d04;
    --accent-muted: #fff3e6;
    --success: #16a34a;
    --success-muted: #dcfce7;
    --warning: #d97706;
    --warning-muted: #fef3c7;
    --danger: #dc2626;
    --danger-muted: #fee2e2;
    --mono: 'DM Mono', 'SF Mono', 'Fira Code', monospace;
    --sans: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
    --content-width: 1200px;
    --gutter: 48px;
    --radius: 8px;
    --radius-sm: 6px;
    /* Keep legacy vars for JS-generated content */
    --smarter-blue: #ff7d04;
    --smarter-blue-light: #ff9633;
    --smarter-blue-dark: #e06800;
    --smarter-blue-bg: #fff3e6;
    --text-primary: #0f0f14;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-card: #ffffff;
    --border: #e4e4e7;
    --border-light: #f0f0f2;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 3px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--sans);
    background: var(--surface);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 19px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Header ──────────────────────────────────────────────────────── */

.header {
    background: var(--ink);
    color: #fff;
    border-bottom: none;
    padding: 16px var(--gutter);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon { flex-shrink: 0; }

.logo-title {
    font-size: 23px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.demo-badge {
    background: #ff7d04;
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.08em;
}

/* ── Tab Bar ─────────────────────────────────────────────────────── */

.tab-bar {
    background: var(--surface-raised);
    border-bottom: 1px solid var(--rule);
    padding: 0 var(--gutter);
    display: flex;
    gap: 0;
    max-width: var(--content-width);
    margin: 0 auto;
    overflow-x: auto;
}

.tab {
    padding: 16px 24px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-muted);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab:hover { color: var(--ink-secondary); }
.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.tab-icon { font-size: 14px; opacity: 0.7; }

/* ── Content Area ────────────────────────────────────────────────── */

.content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px var(--gutter) 80px;
}

.panel { display: none; animation: fadeUp 0.3s ease; }
.panel.active { display: block; }

.panel-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
}

.panel-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.panel-header p {
    font-size: 18px;
    color: var(--ink-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

/* ── Forms ────────────────────────────────────────────────────────── */

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.flex-2 { flex: 2; }
.form-group.flex-1 { flex: 1; }

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 17px;
    color: var(--ink);
    background: var(--surface-raised);
    transition: border-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.form-group textarea { resize: vertical; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    margin-top: 8px;
    letter-spacing: 0.01em;
}

.btn-primary:hover { background: #e06800; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Results Area ────────────────────────────────────────────────── */

.results-area {
    margin-top: 40px;
    animation: fadeUp 0.25s ease;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}

.results-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.original-reach {
    font-size: 13px;
    color: var(--ink-secondary);
}

.hidden { display: none !important; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Summary Cards ───────────────────────────────────────────────── */

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.summary-card {
    background: var(--surface-raised);
    border: 1px solid var(--rule-light);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.summary-card .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--mono);
}

.summary-card .value {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 6px;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.summary-card .note {
    font-size: 15px;
    color: var(--ink-muted);
    margin-top: 4px;
}

.summary-card.green .value { color: var(--success); }
.summary-card.yellow .value { color: var(--warning); }
.summary-card.red .value { color: var(--danger); }

/* ── Card Grid (Title Optimization) ──────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.variant-card {
    background: var(--surface-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.15s;
}

.variant-card:hover { border-color: var(--ink-muted); }

.variant-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
}

.variant-card .keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.keyword-badge {
    background: var(--surface-inset);
    color: var(--ink-secondary);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--mono);
}

.variant-card .improvement-note {
    font-size: 15px;
    color: var(--ink-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.reach-bar {
    background: var(--surface-inset);
    border-radius: 3px;
    height: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.reach-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.reach-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.reach-change {
    font-weight: 600;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.reach-change.positive { background: var(--success-muted); color: var(--success); }
.reach-change.negative { background: var(--warning-muted); color: var(--warning); }
.reach-change.neutral { background: var(--surface-inset); color: var(--ink-muted); }

.recommendations-box {
    margin-top: 24px;
    background: var(--surface-inset);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--rule-light);
}

.recommendations-box h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.recommendations-box ul { list-style: none; padding: 0; }

.recommendations-box li {
    font-size: 13px;
    color: var(--ink-secondary);
    padding: 5px 0 5px 20px;
    position: relative;
    line-height: 1.5;
}

.recommendations-box li::before {
    content: "—";
    color: var(--ink-muted);
    position: absolute;
    left: 0;
}

/* ── Data Table ──────────────────────────────────────────────────── */

.table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.data-table thead { border-bottom: 2px solid var(--ink); }

.data-table th {
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--ink);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--mono);
    white-space: nowrap;
    cursor: default;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-light);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.data-table tbody tr:hover { background: var(--surface-inset); }

.vz-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    font-family: var(--mono);
}

.vz-green { background: var(--success-muted); color: var(--success); }
.vz-yellow { background: var(--warning-muted); color: var(--warning); }
.vz-red { background: var(--danger-muted); color: var(--danger); }

.engpass-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.engpass-ja { background: var(--danger-muted); color: var(--danger); }
.engpass-beobachtung { background: var(--warning-muted); color: var(--warning); }
.engpass-nein { background: var(--success-muted); color: var(--success); }

/* ── Charts ──────────────────────────────────────────────────────── */

.chart-container {
    background: var(--surface-raised);
    border: 1px solid var(--rule-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.chart-container h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--mono);
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* ── Salary Display ──────────────────────────────────────────────── */

.salary-display {
    background: var(--surface-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 20px;
}

.salary-range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.salary-value { text-align: center; }

.salary-value .amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.salary-value.side .amount {
    font-size: 22px;
    color: var(--ink-muted);
}

.salary-value .label {
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--mono);
}

.salary-bar {
    height: 6px;
    background: var(--surface-inset);
    border-radius: 3px;
    margin: 20px 0 8px;
    position: relative;
    overflow: hidden;
}

.salary-bar::after {
    content: '';
    position: absolute;
    left: 30%;
    right: 30%;
    top: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 3px;
}

.salary-marker {
    position: absolute;
    top: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--surface-raised);
    transform: translateX(-50%);
    z-index: 1;
}

.salary-time-unit {
    font-size: 12px;
    color: var(--ink-muted);
    font-family: var(--mono);
}

.details-box {
    background: var(--surface-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 24px;
}

.details-box h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.details-box p {
    font-size: 16px;
    color: var(--ink-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.confidence-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--mono);
}

.confidence-high { background: var(--success-muted); color: var(--success); }
.confidence-medium { background: var(--warning-muted); color: var(--warning); }
.confidence-low { background: var(--danger-muted); color: var(--danger); }

/* ── Shortages List ──────────────────────────────────────────────── */

.shortages-list { margin-top: 24px; }

.shortages-list h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--mono);
}

.shortage-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-light);
}

.shortage-item:last-child { border-bottom: none; }

.shortage-item .rank {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    min-width: 24px;
    font-family: var(--mono);
}

.shortage-item .info { flex: 1; }
.shortage-item .beruf { font-weight: 600; font-size: 16px; color: var(--ink); }
.shortage-item .niveau { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }

/* ── Postings List ─────────────────────────────────────────────── */

.postings-list { margin-top: 24px; }

.postings-list h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--mono);
}

.posting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-light);
    transition: background 0.1s;
}

.posting-item:last-child { border-bottom: none; }

.posting-item .title { font-weight: 600; font-size: 17px; color: var(--ink); }
.posting-item .company { font-size: 16px; color: var(--ink-secondary); margin-top: 2px; }
.posting-item .meta { font-size: 15px; color: var(--ink-muted); text-align: right; }

.posting-item a {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.posting-item a:hover { text-decoration: underline; }

.posting-salary {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}

/* ── Loading Overlay ─────────────────────────────────────────────── */

.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250, 250, 250, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--rule);
    border-top: 2px solid var(--ink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay p {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-secondary);
}

/* ── SEO Score Ring ──────────────────────────────────────────────── */

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.seo-score {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.seo-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.seo-ring-bg { stroke: var(--rule); }
.seo-ring-fill { transition: stroke-dasharray 0.4s ease; }

.seo-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--seo-color, var(--ink));
    font-family: var(--mono);
}

.seo-score-inline {
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.seekers-ratio-inline {
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-muted);
}

.seo-reach-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Hero Card ───────────────────────────────────────────────────── */

.hero-card {
    flex: 1.5;
    min-width: 200px;
    background: var(--surface-raised);
    border: 1px solid var(--rule-light);
    border-top: 3px solid var(--hero-color, var(--accent));
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.hero-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--mono);
}

.hero-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
    margin: 4px 0;
    font-variant-numeric: tabular-nums;
}

.hero-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-secondary);
}

.hero-detail {
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 4px;
    font-family: var(--mono);
}

.hero-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* ── Type Badges ─────────────────────────────────────────────────── */

.type-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

/* ── Type Filters ────────────────────────────────────────────────── */

.type-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--mono);
    margin-right: 4px;
}

.type-filter-btn {
    padding: 5px 12px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: transparent;
    color: var(--ink-secondary);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.type-filter-btn:hover {
    border-color: var(--ink-muted);
    color: var(--ink);
}

.type-filter-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* ── Competitor Table ────────────────────────────────────────────── */

.competitor-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.competitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.competitor-table thead { border-bottom: 2px solid var(--ink); }

.competitor-table th {
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--ink);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--mono);
    white-space: nowrap;
}

.competitor-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-light);
    font-variant-numeric: tabular-nums;
}

.competitor-table tbody tr:hover { background: var(--surface-inset); }

.diff {
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: var(--mono);
}

.diff.positive { background: var(--success-muted); color: var(--success); }
.diff.negative { background: var(--danger-muted); color: var(--danger); }

.source-hint {
    font-size: 11px;
    color: var(--ink-muted);
    font-style: normal;
    font-family: var(--mono);
}

/* ── Market Summary (Salary) ─────────────────────────────────────── */

.market-summary {
    background: var(--surface-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.market-summary h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 20px;
}

.market-range-bar { margin-top: 8px; }

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.median-label {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
}

.range-track {
    height: 6px;
    background: var(--surface-inset);
    border-radius: 3px;
    position: relative;
}

.range-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--warning), var(--accent), var(--success));
    opacity: 0.4;
}

.median-marker {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--surface-raised);
    transform: translateX(-50%);
}

.salary-fallback {
    text-align: center;
    padding: 32px;
    color: var(--ink-secondary);
}

.salary-fallback .salary-range {
    font-size: 20px;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
    :root { --gutter: 20px; }
    .form-row { flex-direction: column; }
    .charts-row { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .tab { padding: 12px 16px; font-size: 14px; }
    .salary-range { flex-direction: column; gap: 12px; }
    .summary-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .summary-cards { grid-template-columns: 1fr; }
    .content { padding: 24px var(--gutter); }
}
