/* ── Settings Modal ───────────────────────────────────── */

.settings-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 999;
}

.settings-overlay.active {
    display: block;
}

.settings-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    width: 92%;
    max-width: 680px;
    height: 85vh;
    overflow: hidden;
    z-index: 1000;
}

.settings-modal.active {
    display: flex;
    flex-direction: column;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-emphasis);
    color: var(--fg-inv);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 35px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--fg-inv);
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.08s, color 0.08s, border-color 0.08s;
}

.settings-close:hover {
    background: var(--fg-inv);
    color: var(--bg-emphasis);
    border-color: transparent;
}

.settings-body {
    padding: 20px 16px;
    overflow-y: scroll;
    flex: 1 1 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fg-2);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-4);
    padding-bottom: 4px;
}

.settings-theme-cards {
    display: flex;
    gap: 12px;
}

.theme-card {
    flex: 1;
    cursor: pointer;
    border: 2px solid var(--border-3);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    user-select: none;
}

.theme-card:hover {
    border-color: var(--border-2);
}

.theme-card.active {
    border-color: var(--border);
    box-shadow: 0 0 0 1px var(--border);
}

.theme-card-preview {
    height: 76px;
}

.theme-card-hdr {
    height: 16px;
}

.theme-card-body {
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.theme-card-line {
    height: 3px;
    border-radius: 2px;
    width: 100%;
}

.theme-card-line.short {
    width: 55%;
}

.theme-card-dots {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.theme-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* Sunset preview */
.theme-preview-sunset                   { background: #FEFCF3; }
.theme-preview-sunset .theme-card-hdr  { background: #222222; }
.theme-preview-sunset .theme-card-line { background: #dddddd; }
.theme-preview-sunset .theme-card-dot.g { background: #d4edda; border: 1px solid #b8dfc3; }
.theme-preview-sunset .theme-card-dot.y { background: #fff3cd; border: 1px solid #ffd54f; }
.theme-preview-sunset .theme-card-dot.r { background: #f8d7da; border: 1px solid #f5c6cb; }

/* Day preview */
.theme-preview-day                   { background: #ffffff; }
.theme-preview-day .theme-card-hdr  { background: #111111; }
.theme-preview-day .theme-card-line { background: #dddddd; }
.theme-preview-day .theme-card-dot.g { background: #d4edda; border: 1px solid #b8dfc3; }
.theme-preview-day .theme-card-dot.y { background: #fff3cd; border: 1px solid #ffd54f; }
.theme-preview-day .theme-card-dot.r { background: #f8d7da; border: 1px solid #f5c6cb; }

/* Dark preview */
.theme-preview-dark                   { background: #1a1a18; }
.theme-preview-dark .theme-card-hdr  { background: #3a3a36; }
.theme-preview-dark .theme-card-line { background: #3a3a36; }
.theme-preview-dark .theme-card-dot.g { background: #1a3325; border: 1px solid #2a5040; }
.theme-preview-dark .theme-card-dot.y { background: #2e2500; border: 1px solid #5a4500; }
.theme-preview-dark .theme-card-dot.r { background: #2e0f12; border: 1px solid #5a1a1a; }

.theme-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    font-weight: 600;
    text-align: center;
    padding: 5px 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--fg-3);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-4);
    transition: color 0.15s;
}

.theme-card.active .theme-card-label {
    color: var(--fg);
    font-weight: 700;
}

.settings-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-slider-row input[type="range"] {
    flex: 1;
    accent-color: var(--fg);
}

.settings-slider-value {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 36px;
    text-align: right;
}

/* ── Fleet Cards (read-only) ─────────────────────────── */

.fleet-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fleet-card {
    border: 1px solid var(--border-3);
    border-radius: var(--radius);
    background: var(--bg-surface);
    padding: 8px 10px;
    font-size: 0.72rem;
}

.fleet-card-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-4);
    flex-wrap: wrap;
}

.fleet-card-type {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--fg);
    flex-shrink: 0;
}

.fleet-card-name {
    color: var(--fg-3);
    font-size: 0.65rem;
    flex: 1 1 auto;
}

.fleet-card-cat {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--fg-4);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.fleet-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fleet-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.fleet-card-lbl {
    color: var(--fg-3);
    font-size: 0.67rem;
}

.fleet-card-val {
    font-weight: 600;
    color: var(--fg);
    font-size: 0.72rem;
}

.fleet-card-caps {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid var(--border-4);
    flex-wrap: wrap;
}

.fleet-cap {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 1px 5px;
    border: 1px solid var(--border-2);
    color: var(--fg-3);
}

/* ── Approach Minimums ───────────────────────────────── */

.approaches-search-input {
    width: 100%;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 6px 8px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    background: var(--bg-surface);
    color: var(--fg);
    margin-bottom: 8px;
}

.approaches-search-input:focus {
    border-color: var(--fg);
    outline: none;
}

.approaches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.approaches-airport {
    border: 1px solid var(--border-4);
}

.approaches-airport-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 8px;
    background: var(--bg-subtle, var(--bg-surface));
    border-bottom: 1px solid var(--border-4);
}

.approaches-icao {
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--fg);
    flex-shrink: 0;
}

.approaches-name {
    font-size: 0.68rem;
    color: var(--fg-3);
    flex: 1 1 auto;
}

.approaches-updated {
    font-size: 0.6rem;
    color: var(--fg-4);
    white-space: nowrap;
    flex-shrink: 0;
}

.approaches-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.approaches-table th {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-4);
    font-weight: 600;
    text-align: left;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border-4);
}

.approaches-table td {
    padding: 4px 8px;
    color: var(--fg-2);
    border-bottom: 1px solid var(--border-4);
}

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

.approaches-note {
    margin-top: 10px;
    font-size: 0.65rem;
    color: var(--fg-4);
    font-style: italic;
}

/* ── Info Modal ──────────────────────────────────────── */

.info-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.info-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.info-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    width: min(74vw, 360px);
    max-width: 360px;
    height: min(280px, 58vh);
    max-height: 58vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.info-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.info-guide-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease;
    color: var(--fg);
}

.info-guide-overlay.active {
    opacity: 1;
}

#info-guide-path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

#info-guide-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    fill: var(--fg);
    stroke: var(--bg);
    stroke-width: 3px;
    paint-order: stroke fill;
    stroke-linejoin: round;
    dominant-baseline: middle;
    text-anchor: middle;
    font-style: normal;
}

.info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px 9px;
    border-bottom: 1px solid var(--border-warm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
}

.info-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--fg-4);
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.15s;
}

.info-modal-close:hover {
    color: var(--fg);
}

.info-modal-body {
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    position: relative;
}

.info-cards-track {
    display: flex;
    width: 400%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card {
    flex: 0 0 calc(100% / 4);
    width: calc(100% / 4);
    padding: 12px 18px 14px;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    text-align: center;
}

.info-card-inner {
    width: 100%;
    max-width: 520px;
}

.info-card .info-section {
    margin-bottom: 14px;
}

.info-card .info-section:last-child {
    margin-bottom: 0;
}

.info-card .info-section-title {
    margin-bottom: 10px;
}

.info-card .info-section p {
    text-align: left;
}

.info-card .info-section-title {
    text-align: center;
}

.info-card .info-source-list,
.info-card .info-source-list li {
    text-align: left;
}

.info-card-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--fg);
    opacity: 0.85;
}

.info-card-graphic svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Safety margin visual gradient bar */
.margin-bar {
    margin: 14px 0 10px;
    border: 1px solid var(--border-warm);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    height: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.margin-bar > div {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.margin-bar .mb-red    { flex: 0 0 50%; background: #e53935; }
.margin-bar .mb-orange { flex: 0 0 12%; background: #ff9800; }
.margin-bar .mb-green  { flex: 1 1 auto; background: #4caf50; }

.margin-bar-labels {
    display: flex;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--fg-3);
    margin-bottom: 14px;
}
.margin-bar-labels span:nth-child(1) { flex: 0 0 50%; text-align: center; }
.margin-bar-labels span:nth-child(2) { flex: 0 0 12%; text-align: center; white-space: nowrap; }
.margin-bar-labels span:nth-child(3) { flex: 1 1 auto; text-align: center; }

.info-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    border-top: 1px solid var(--border-warm);
    background: var(--bg);
}

.info-arrow {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
    cursor: pointer;
    flex: 0 0 auto;
    padding: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.info-arrow:hover:not(:disabled) {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.info-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.info-arrow svg {
    pointer-events: none;
}

.info-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
}

.info-dot {
    background: none;
    border: 1px solid var(--border-warm);
    color: var(--fg-3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}

.info-dot:hover {
    border-color: var(--border);
    color: var(--fg-2);
}

.info-dot[aria-current="true"] {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.info-kb-hint {
    display: none;
}

@media (max-width: 480px) {
    .info-modal {
        width: min(90vw, 100%);
        height: min(230px, 82vh);
    }
    .info-card {
        padding: 10px 14px 12px;
    }
    .info-modal-footer {
        padding: 6px 10px;
        gap: 5px;
    }
    .info-arrow {
        width: 24px;
        height: 24px;
    }
    .info-dots {
        gap: 4px;
    }
    .info-dot {
        width: 18px;
        height: 18px;
        font-size: 0.58rem;
    }
}

.info-section {
    margin-bottom: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg);
    margin-bottom: 8px;
}

.info-section p {
    font-size: 0.78rem;
    color: var(--fg-2);
    line-height: 1.6;
    margin: 0 0 6px;
}

.info-section-legal {
    border-top: 1px solid var(--border-warm);
    padding-top: 16px;
    margin-top: 4px;
}

.info-section-legal p {
    color: var(--fg-3);
    font-size: 0.72rem;
}

.info-source-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}

.info-source-list li {
    font-size: 0.76rem;
    color: var(--fg-2);
    line-height: 1.5;
    padding: 3px 0;
    border-bottom: 1px solid var(--border-warm);
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 16px;
}

.info-source-list li:last-child {
    border-bottom: none;
}

.info-source-label {
    font-weight: 700;
    color: var(--fg);
    white-space: nowrap;
}

/* ── Author Card Modal ───────────────────────────────── */

button.footer-credit-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
}

/* ── PDF Export Modal ─────────────────────────────────── */

.pdf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 1099;
}

.pdf-overlay.active { display: block; }

.pdf-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    width: 94%;
    max-width: 720px;
    /* explicit height keeps the flex body scrollable on all viewport sizes */
    height: 90vh;
    max-height: 720px;
    z-index: 1100;
    flex-direction: column;
    overflow: hidden;
}

.pdf-modal.active { display: flex; }

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-emphasis);
    color: var(--fg-inv);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.pdf-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 35px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--fg-inv);
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.08s, color 0.08s, border-color 0.08s;
}

.pdf-modal-close:hover {
    background: var(--fg-inv);
    color: var(--bg-emphasis);
    border-color: transparent;
}

.pdf-modal-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-modal-header-icon {
    opacity: 0.7;
    flex-shrink: 0;
}

.pdf-modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pdf-modal-subtitle {
    font-size: 0.64rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.6;
}

.pdf-modal-body {
    padding: 20px;
    overflow-y: scroll;
    flex: 1 1 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.pdf-section {
    margin-bottom: 22px;
}

#pdf-section-weather {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-4);
}

/* ── Section header with icon ── */

.pdf-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-4);
}

.pdf-section-icon {
    width: 28px;
    height: 28px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-3);
    flex-shrink: 0;
}

.pdf-section-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pdf-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fg);
    margin: 0;
}

.pdf-section-subtitle {
    font-size: 0.63rem;
    color: var(--fg-4);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

/* ── Chip-based airport search ── */

.pdf-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    background: var(--bg);
    min-height: 38px;
    margin-bottom: 10px;
    cursor: text;
}

.pdf-chips {
    display: contents;
}

.pdf-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-emphasis);
    color: var(--fg-inv);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 6px 3px 9px;
    border-radius: var(--radius);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pdf-chip-remove {
    background: none;
    border: none;
    color: var(--fg-inv);
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    line-height: 1;
    margin-left: 1px;
    display: flex;
    align-items: center;
    transition: opacity 0.12s;
}

.pdf-chip-remove:hover {
    opacity: 1;
}

.pdf-chip-input-wrap {
    position: relative;
    flex: 1 1 120px;
    min-width: 80px;
}

.pdf-chip-input-wrap .pdf-airport-input {
    border: none;
    padding: 2px 0;
    font-size: 0.78rem;
    background: transparent;
    width: 100%;
}

.pdf-chip-input-wrap .pdf-airport-input:focus {
    outline: none;
}

/* ── Airport input (chip inline) ── */

.pdf-airport-input-wrap {
    position: relative;
    flex: 1 1 auto;
}

.pdf-airport-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.pdf-airport-input.invalid {
    border-color: #c0392b;
}

.pdf-airport-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 180px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.pdf-airport-dropdown.active { display: block; }

.pdf-airport-dropdown .autocomplete-item {
    padding: 6px 8px;
    cursor: pointer;
    font-size: 0.74rem;
    border-bottom: 1px solid var(--border-4);
}

.pdf-airport-dropdown .autocomplete-item:hover,
.pdf-airport-dropdown .autocomplete-item.selected {
    background: var(--bg-emphasis);
    color: var(--fg-inv);
}

/* ── ETA pill row ── */

.pdf-eta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    color: var(--fg-2);
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ETA popover must float above the PDF modal (z-index 1100) */
#pdf-eta-popover {
    z-index: 1200;
}

/* ── Area briefing master toggle ── */

/* ── Area enable checkbox + label ── */

.pdf-area-enable {
    width: 15px;
    height: 15px;
    accent-color: var(--bg-emphasis);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.pdf-area-header-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.pdf-area-header-label:hover .pdf-section-title {
    opacity: 0.75;
}

/* ── Area briefing body + product badges ── */

.pdf-area-body {
    transition: opacity 0.15s;
}

.pdf-area-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 4px;
}

.pdf-area-options .badge {
    font-size: 0.68rem;
    padding: 4px 10px;
}

.pdf-wind-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top:20px;
    padding-left: 2px;
    transition: opacity 0.15s;
}

.pdf-wind-badges-label {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-4);
    margin-right: 2px;
    flex-shrink: 0;
   
}

.pdf-wind-badges .badge {
    font-size: 0.68rem;
    padding: 3px 8px;
}

.pdf-error {
    display: none;
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
    padding: 8px 10px;
    font-size: 0.72rem;
    border: 1px solid #c0392b;
    border-radius: var(--radius);
    margin-top: 8px;
}

.pdf-error.active { display: block; }

.pdf-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    border-top: 1px solid var(--border-4);
    flex-shrink: 0;
}

.pdf-footer-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    color: var(--fg-4);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex: 1;
    min-width: 0;
}

.pdf-footer-note svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.pdf-footer-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pdf-btn-secondary, .pdf-btn-primary {
    padding: 7px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.18s;
}

.pdf-btn-secondary {
    background: none;
    border: 1px solid var(--border-2);
    color: var(--fg-3);
}

.pdf-btn-secondary:hover {
    color: var(--fg);
    border-color: var(--fg);
}

.pdf-btn-primary {
    background: var(--bg-emphasis);
    border: 1px solid var(--bg-emphasis);
    color: var(--fg-inv);
    font-weight: 600;
}

.pdf-btn-primary:hover {
    opacity: 0.85;
}

.pdf-btn-primary:disabled {
    opacity: 0.5;
    cursor: wait;
}
