/* ============================================================
   Seldues — Clean Black & White Minimal UI
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #0a0a0a;
    --near-black: #1a1a1a;
    --dark-grey: #333333;
    --mid-grey: #666666;
    --light-grey: #999999;
    --border: #e5e5e5;
    --bg-light: #f7f7f7;
    --bg-white: #ffffff;
    --sidebar-width: 220px;
    --topbar-height: 64px;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
}

html, body {
    height: 100%;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--near-black);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── App Layout ──────────────────────────────────────────── */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--black);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 22px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.55);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}

.nav-link--active {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

.nav-link--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Main Area ───────────────────────────────────────────── */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    flex-shrink: 0;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--near-black);
    letter-spacing: -0.3px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-greeting {
    font-size: 13.5px;
    color: var(--mid-grey);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--near-black);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* ── Content / Scrollable ────────────────────────────────── */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

/* ── Workspace Grid ──────────────────────────────────────── */
.workspace {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.workspace-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.workspace-right {
    position: sticky;
    top: 0;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.card-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 10px;
    letter-spacing: 0.1px;
}

/* ── Booking Textarea ────────────────────────────────────── */
.booking-textarea {
    width: 100%;
    min-height: 200px;
    resize: vertical;
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--near-black);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.15s;
}

.booking-textarea:focus {
    border-color: var(--near-black);
}

.booking-textarea::placeholder {
    color: var(--light-grey);
}

/* ── Submit Row ──────────────────────────────────────────── */
.submit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.btn-submit {
    background: var(--black);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, opacity 0.15s;
    letter-spacing: 0.1px;
    min-width: 110px;
    justify-content: center;
}

.btn-submit:hover:not(:disabled) {
    background: var(--dark-grey);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-submit__spinner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-submit__spinner svg {
    width: 14px;
    height: 14px;
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Submit message */
.submit-msg {
    font-size: 13px;
}
.submit-msg--success { color: #1a7a3a; }
.submit-msg--error   { color: #b91c1c; }
.submit-msg--warning { color: #92400e; }

/* ── Section Title ───────────────────────────────────────── */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--near-black);
    margin-bottom: 0;
    letter-spacing: -0.1px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.search-wrap {
    position: relative;
    flex-shrink: 0;
}

.search-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--light-grey);
    pointer-events: none;
}

.search-input {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px 6px 30px;
    font-size: 13px;
    width: 200px;
    outline: none;
    background: var(--white);
    color: var(--near-black);
}

.search-input:focus {
    border-color: var(--near-black);
}

/* ── Generated Proformas List ────────────────────────────── */
.proforma-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
}

.proforma-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.proforma-row:first-child {
    padding-top: 0;
}

.proforma-row__icon {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.proforma-row__icon svg {
    width: 16px;
    height: 16px;
    color: var(--mid-grey);
}

.proforma-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.proforma-row__name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--near-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proforma-row__status {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status--pending     { color: #b45309; }
.status--processing  { color: #1d4ed8; }
.status--completed   { color: #15803d; }
.status--failed      { color: #b91c1c; }

.proforma-row__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.action-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--near-black);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.12s;
    cursor: pointer;
}

.action-link:hover {
    background: var(--bg-light);
    text-decoration: none;
}

.action-link--muted {
    color: var(--light-grey);
    cursor: not-allowed;
    pointer-events: none;
}

.action-link--delete {
    background: none;
    border: none;
    color: #c40000;
    cursor: pointer;
    font: inherit;
    padding: 4px 10px;
}

.action-link--delete:hover {
    background: #fff0f0;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 10px;
    color: var(--light-grey);
    text-align: center;
}

.empty-state svg {
    width: 36px;
    height: 36px;
    opacity: 0.35;
}

.empty-state p {
    font-size: 13px;
    line-height: 1.5;
}

/* ── Status / Queue Card ─────────────────────────────────── */
.status-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Progress bar */
.progress-wrap {
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar__fill {
    height: 100%;
    width: 0%;
    background: var(--near-black);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-bar__fill--active {
    animation: pulse-bar 1.6s ease-in-out infinite;
}

@keyframes pulse-bar {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

.progress-label {
    font-size: 11.5px;
    color: var(--light-grey);
}

/* Queue count */
.queue-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
}

.queue-count__number {
    font-size: 36px;
    font-weight: 700;
    color: var(--near-black);
    line-height: 1;
    letter-spacing: -1px;
}

.queue-count__label {
    font-size: 13px;
    color: var(--mid-grey);
    font-weight: 500;
}

/* Rules */
.rules-section {
    margin-bottom: 16px;
}

.rules-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--light-grey);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rules-list__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--dark-grey);
}

.rules-list__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

/* Queue items */
.queue-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.queue-item--processing {
    background: #eff6ff;
}

.queue-item--pending {
    background: #fffbeb;
}

.queue-item__name {
    font-size: 12px;
    font-weight: 500;
    color: var(--near-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.queue-item__badge {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--mid-grey);
    flex-shrink: 0;
}

.queue-item--processing .queue-item__badge { color: #1d4ed8; }
.queue-item--pending    .queue-item__badge { color: #b45309; }

/* ── Edit Page ───────────────────────────────────────────── */
.edit-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.edit-back {
    display: flex;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mid-grey);
    transition: color 0.12s;
}

.back-link:hover {
    color: var(--near-black);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.edit-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--near-black);
    letter-spacing: -0.3px;
}

.edit-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-meta__date {
    font-size: 12px;
    color: var(--light-grey);
}

.edit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.edit-card {
    display: flex;
    flex-direction: column;
}

.edit-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.edit-card__header .card-label {
    margin-bottom: 0;
}

.edit-card__actions {
    display: flex;
    gap: 8px;
}

.html-editor {
    flex: 1;
    width: 100%;
    min-height: 380px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--near-black);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    outline: none;
    resize: vertical;
    tab-size: 4;
    transition: border-color 0.15s;
}

.html-editor:focus {
    border-color: var(--near-black);
    background: var(--bg-white);
}

.edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

/* Preview card */
.preview-card {
    display: flex;
    flex-direction: column;
}

.preview-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.preview-card__header .card-label {
    margin-bottom: 0;
}

.preview-wrap {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
    min-height: 380px;
}

.preview-frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: none;
    display: block;
}

/* ── Shared Buttons ──────────────────────────────────────── */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--near-black);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: #cccccc;
}

.btn-secondary svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mid-grey);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
    text-decoration: none;
}

.btn-ghost:hover {
    color: var(--near-black);
    background: var(--bg-light);
}

/* ── Scrollbar styling (WebKit) ──────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* ── Name Formatter ──────────────────────────────────────── */
.nf-layout {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: start;
    gap: 0;
}

.nf-pane {
    height: 100%;
}

.nf-textarea {
    min-height: 360px;
    resize: vertical;
}

.nf-output-area {
    background: var(--bg-light);
    color: var(--near-black);
    cursor: default;
}

.nf-output-area:focus {
    border-color: var(--border);
    background: var(--bg-light);
}

.nf-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.nf-copy-btn {
    font-size: 12px;
    padding: 5px 12px;
}

.nf-arrow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 52px;
    color: var(--border);
}

/* Progress bar */
.nf-progress-wrap {
    width: 100%;
}

.nf-progress-track {
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--border);
}

.nf-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--near-black);
    border-radius: 2px;
}

.nf-progress-label {
    font-size: 11.5px;
    color: var(--light-grey);
}

/* Toast */
.nf-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--near-black);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.nf-toast svg { flex-shrink: 0; color: #55efc4; }

.nf-toast--show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .nf-layout {
        grid-template-columns: 1fr;
    }
    .nf-arrow {
        display: none;
    }
}

/* ── Flight Schedule ─────────────────────────────────────── */
.fs-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.fs-stats {
    display: flex;
    align-items: center;
}

.fs-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.fs-stat:first-child { padding-left: 0; }

.fs-stat-div {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

.fs-stat__num {
    font-size: 24px;
    font-weight: 700;
    color: #cf1f4c;
    line-height: 1;
    letter-spacing: -0.5px;
}

.fs-stat__num--intl { color: #1d4ed8; }
.fs-stat__num--dom  { color: #15803d; }

.fs-stat__lbl {
    font-size: 10.5px;
    color: var(--light-grey);
    font-weight: 500;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.fs-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fs-pills {
    display: flex;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.fs-pill {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--mid-grey);
    font-family: var(--font);
    transition: all 0.15s;
}

.fs-pill.active {
    background: #cf1f4c;
    color: #ffffff;
}

.fs-q2-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--mid-grey);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.2px;
}

.fs-q2-toggle:hover {
    border-color: #cccccc;
    background: var(--bg-light);
}

.fs-q2-toggle--on {
    background: var(--near-black);
    color: #ffffff;
    border-color: var(--near-black);
}

.fs-q2-toggle--on:hover {
    background: var(--dark-grey);
    border-color: var(--dark-grey);
}

.fs-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.fs-upd {
    font-size: 11px;
    color: var(--light-grey);
    white-space: nowrap;
}

.fs-countdown {
    font-size: 11px;
    color: var(--border);
    white-space: nowrap;
    font-family: var(--mono);
}

.fs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.fs-grid--single {
    grid-template-columns: 1fr;
}

.fs-section-card {
    padding: 0;
    overflow: hidden;
}

.fs-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--dark-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-light);
}

.fs-section-count {
    font-size: 11px;
    font-weight: 700;
    color: #cf1f4c;
    background: rgba(207, 31, 76, 0.08);
    padding: 1px 7px;
    border-radius: 10px;
}

.fs-section-dest {
    margin-left: auto;
    font-size: 11px;
    color: var(--light-grey);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    font-family: var(--mono);
}

.fs-flight-list {
    max-height: calc(100vh - 290px);
    overflow-y: auto;
}

/* Domestic / International sub-headers */
.fs-subhead {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

.fs-subhead:first-child { border-top: none; }

.fs-subhead--intl { color: #1d4ed8; }
.fs-subhead--intl svg { stroke: #1d4ed8; }

.fs-subhead--dom { color: #15803d; }
.fs-subhead--dom svg { stroke: #15803d; }

.fs-subhead__count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
}

.fs-subhead--intl .fs-subhead__count { background: rgba(29,78,216,0.08); color: #1d4ed8; }
.fs-subhead--dom  .fs-subhead__count { background: rgba(21,128,61,0.08);  color: #15803d; }

.fs-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--bg-light);
    transition: background 0.12s;
}

.fs-row:last-child { border-bottom: none; }
.fs-row:hover { background: var(--bg-light); }

.fs-row__flight {
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 600;
    color: #cf1f4c;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.fs-row__route {
    font-size: 13px;
    color: var(--near-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-row__time {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--mid-grey);
    white-space: nowrap;
}

.fs-row__time strong { color: var(--near-black); font-weight: 600; }
.fs-row__time s { text-decoration: line-through; opacity: 0.45; margin-right: 4px; }

.fs-row__term {
    font-size: 10.5px;
    color: var(--light-grey);
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    font-family: var(--mono);
}

.fs-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.fs-s-landed    { background: rgba(21,128,61,0.10);   color: #15803d; }
.fs-s-departed  { background: rgba(180,83,9,0.10);    color: #b45309; }
.fs-s-scheduled { background: rgba(100,116,139,0.10); color: #64748b; }
.fs-s-cancelled { background: rgba(185,28,28,0.10);   color: #b91c1c; }
.fs-s-airborne  { background: rgba(29,78,216,0.10);   color: #1d4ed8; }

.fs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    color: var(--light-grey);
    font-size: 13px;
}

.fs-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: #cf1f4c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.fs-empty {
    padding: 28px 18px;
    text-align: center;
    color: var(--light-grey);
    font-size: 13px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .workspace {
        grid-template-columns: 1fr;
    }
    .workspace-right {
        position: static;
    }
    .edit-layout {
        grid-template-columns: 1fr;
    }
    .fs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --sidebar-width: 0px;
    }
    .sidebar {
        display: none;
    }
    .content {
        padding: 16px;
    }
    .topbar {
        padding: 0 16px;
    }
}
