:root {
    --app-ink: #12263a;
    --app-ink-soft: #5d6d7d;
    --app-bg: #edf1f5;
    --app-panel: #ffffff;
    --app-line: #d9e1e8;
    --app-brand: #164b63;
    --app-brand-deep: #0d2533;
    --app-accent: #c97735;
    --app-accent-soft: #eb9f63;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(201, 119, 53, 0.11), transparent 28%),
        radial-gradient(circle at left top, rgba(22, 75, 99, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, var(--app-bg) 100%);
    color: var(--app-ink);
    font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

.app-main {
    width: min(1760px, calc(100vw - 1rem));
    margin-inline: auto;
    padding-bottom: 2.5rem;
}

.login-page {
    background: linear-gradient(160deg, #0d2533 0%, #164b63 45%, #1a5c78 100%);
    min-height: 100vh;
}

.login-wrap {
    width: min(420px, calc(100vw - 2rem));
    padding: 1rem 0;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 0.25rem;
}

.login-brand-name {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.login-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(90deg, #0d2533 0%, var(--app-brand-deep) 45%, var(--app-brand) 100%);
    box-shadow: 0 0.75rem 2rem rgba(13, 37, 51, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-nav-inner {
    gap: 1rem;
}

.app-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.app-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
}

.brand-logo {
    max-height: 2rem;
    width: auto;
    object-fit: contain;
    display: block;
}

.login-brand .brand-logo {
    max-height: 3rem;
}

.app-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    transition: background 0.13s ease, color 0.13s ease;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.app-nav .nav-link.active {
    background: #fff;
    color: var(--app-brand-deep) !important;
    font-weight: 600;
}

.app-nav .nav-link.active:hover {
    background: rgba(255, 255, 255, 0.92);
}

/* Active state for dropdown items */
.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 0.3rem;
}

.app-user {
    text-align: right;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.app-account-bar {
    min-width: max-content;
}

.user-name {
    font-weight: 600;
    line-height: 1.1;
}

.user-caption {
    font-size: 0.78rem;
    opacity: 0.88;
}

.app-logout {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0.2rem 0.75rem rgba(0, 0, 0, 0.1);
}

.app-logout:hover,
.app-logout:focus {
    border-color: #fff;
    background: #fff;
    color: var(--app-brand-deep);
}

.app-alert-stack {
    display: grid;
    gap: 0.65rem;
}

.app-alert {
    border: 0;
    box-shadow: 0 0.4rem 1.1rem rgba(18, 38, 58, 0.08);
}

.hero-panel {
    padding: 1.65rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 30%),
        linear-gradient(135deg, rgba(15, 76, 92, 0.98), rgba(11, 49, 66, 0.98));
    color: #fff;
    box-shadow: 0 1rem 2.4rem rgba(15, 49, 66, 0.16);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    opacity: 0.72;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.hero-copy {
    max-width: 44rem;
    opacity: 0.84;
}

.hero-chip {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 600;
}

.stat-card {
    border: 0;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.stat-card-link:hover .stat-card,
.stat-card-link:focus .stat-card {
    transform: translateY(-2px);
    box-shadow: 0 0.7rem 1.4rem rgba(15, 23, 42, 0.12);
}

.stat-card-attention {
    border-left: 3px solid var(--bs-warning, #ffc107);
}

.letter-spacing-wide {
    letter-spacing: 0.06em;
}

.tab-content .tab-pane {
    padding-top: 1.25rem;
}

.stat-label {
    color: var(--app-ink-soft);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-foot {
    margin-top: 0.35rem;
    color: var(--app-ink-soft);
    font-size: 0.85rem;
}

.app-card,
.card {
    border: 1px solid var(--app-line);
    border-radius: 1rem;
    box-shadow: 0 0.35rem 1.2rem rgba(18, 38, 58, 0.06);
    color: var(--app-ink);
}

.app-card-header,
.card-header {
    background: linear-gradient(180deg, #fbfcfd 0%, #f4f7f9 100%);
    border-bottom: 1px solid var(--app-line);
    font-weight: 650;
    color: var(--app-ink);
}

/* ── Unify all Bootstrap button variants to the brand palette ─────────────── */

/* btn-primary → brand amber (replaces Bootstrap blue everywhere) */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-accent);
    --bs-btn-border-color: var(--app-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #bf7532;
    --bs-btn-hover-border-color: #bf7532;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b36e2e;
    --bs-btn-active-border-color: #b36e2e;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--app-accent);
    --bs-btn-disabled-border-color: var(--app-accent);
}

/* btn-outline-primary → amber outline (open/view/download: secondary positive) */
.btn-outline-primary {
    --bs-btn-color: var(--app-accent);
    --bs-btn-border-color: var(--app-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-accent);
    --bs-btn-hover-border-color: var(--app-accent);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #bf7532;
    --bs-btn-active-border-color: #bf7532;
}

/* app-primary-btn remains as an alias */
.app-primary-btn {
    background: var(--app-accent);
    border-color: var(--app-accent);
    color: #fff;
}

.app-primary-btn:hover,
.app-primary-btn:focus {
    background: #bf7532;
    border-color: #bf7532;
    color: #fff;
}

.app-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #e5edf2;
    color: var(--app-brand-deep);
    font-size: 0.82rem;
    font-weight: 600;
}

.table-link {
    color: var(--app-brand);
    font-weight: 600;
    text-decoration: none;
}

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

.table thead th {
    color: var(--app-ink-soft);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-color: var(--app-line);
}

.table > :not(caption) > * > * {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(22, 75, 99, 0.035);
}

.checksum {
    word-break: break-all;
    font-family: monospace;
}

details > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details.border {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--app-line) !important;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.05);
    color: var(--app-ink);
}

details > summary.bg-light {
    background: linear-gradient(180deg, #fbfcfd 0%, #f4f7f9 100%) !important;
    color: var(--app-ink);
}

.app-soft-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--app-line);
    border-radius: 1rem;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.05);
    color: var(--app-ink);
}

.bg-light,
.bg-light-subtle,
.list-group-item,
.table,
.form-control,
.form-select {
    color: var(--app-ink);
}

.bg-dark,
.app-navbar,
.hero-panel {
    color: #fff;
}

.table .text-muted,
.card .text-muted,
.app-soft-panel .text-muted,
details.border .text-muted {
    color: var(--app-ink-soft) !important;
}

.btn,
.form-control,
.form-select {
    border-radius: 0.8rem;
}

.form-label {
    font-weight: 600;
    color: var(--app-ink);
    margin-bottom: 0.35rem;
}

.form-text {
    color: var(--app-ink-soft);
}

.app-soft-panel .form-check {
    padding-left: 1.6rem;
}

.app-soft-panel .form-check-input {
    margin-top: 0.18rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(22, 75, 99, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(22, 75, 99, 0.12);
}

.btn-primary,
.btn-outline-primary,
.app-primary-btn {
    box-shadow: 0 0.35rem 0.9rem rgba(201, 119, 53, 0.18);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger {
    border-width: 1.5px;
}

.app-soft-panel .form-control,
.app-soft-panel .form-select,
.card .form-control,
.card .form-select {
    background-color: #fff;
}

.review-page {
    display: grid;
    gap: 1rem;
}

.review-workspace {
    --review-preview-width: 58%;
    display: flex;
    min-height: 72vh;
    border: 1px solid var(--app-line);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.05);
}

.review-pane {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.review-pane-preview {
    width: var(--review-preview-width);
    min-width: 20rem;
    background: #eef3f7;
}

.review-pane-sidebar {
    flex: 1 1 auto;
    min-width: 22rem;
    background: #fff;
    overflow: auto;
}

.review-splitter {
    width: 0.8rem;
    cursor: col-resize;
    background: linear-gradient(180deg, #dce5ec 0%, #c6d2dc 100%);
    border-inline: 1px solid rgba(18, 38, 58, 0.08);
}

.review-splitter:hover {
    background: linear-gradient(180deg, #d1dde7 0%, #bcc9d4 100%);
}

.review-split-active {
    cursor: col-resize;
    user-select: none;
}

.review-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(18, 38, 58, 0.08);
}

.review-pane-title {
    font-weight: 700;
}

.review-pane-subtitle {
    color: var(--app-ink-soft);
    font-size: 0.9rem;
}

.review-preview-frame {
    flex: 1 1 auto;
    min-height: 30rem;
    background: linear-gradient(180deg, #dde7ef 0%, #f6f9fb 100%);
}

.review-preview-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.review-preview-empty {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.review-summary-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

.review-summary-chip {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: #f4f7f9;
    border: 1px solid var(--app-line);
}

.review-summary-chip span {
    display: block;
    color: var(--app-ink-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-summary-chip strong {
    display: block;
    margin-top: 0.25rem;
}

.review-comments-panel,
.review-existing-comments,
.review-foldout {
    margin-inline: 1rem;
}

.review-comments-panel {
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 1rem;
    background: #fbfcfd;
}

.review-comments-header {
    margin-bottom: 1rem;
}

.review-entry-table {
    margin-bottom: 0;
}

.review-entry-table th {
    background: #f3f6f8;
    position: sticky;
    top: 0;
}

.review-entry-table textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.review-comment-card {
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 1rem;
    background: #fff;
}

.review-comment-meta,
.review-comment-tags {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.review-comment-tags {
    margin-top: 0.6rem;
}

.review-comment-body {
    margin-top: 0.75rem;
    white-space: pre-wrap;
}

.review-response-block {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--app-accent);
    background: #fbf7f2;
    border-radius: 0.75rem;
}

.review-foldout {
    border: 1px solid var(--app-line);
    border-radius: 1rem;
    background: #fbfcfd;
}

.review-foldout summary {
    padding: 0.9rem 1rem;
    font-weight: 650;
}

.review-foldout-body {
    padding: 0 1rem 1rem;
}

@media (max-width: 991.98px) {
    .review-workspace {
        display: grid;
        min-height: auto;
    }

    .review-pane-preview,
    .review-pane-sidebar {
        width: 100%;
        min-width: 0;
    }

    .review-splitter {
        display: none;
    }

    .review-preview-frame {
        min-height: 24rem;
    }
}

/* ── Settings page ── */
html { scrollbar-gutter: stable; }
.settings-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.settings-status .item {
    border: 1px solid #dbe3ef;
    border-radius: 0.75rem;
    background: #f8fbff;
    padding: 0.75rem 1rem;
}
.settings-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
}
.settings-shell .tab-content { min-height: 72vh; }
.settings-side .list-group-item {
    border-radius: 0.625rem;
    margin-bottom: 0.35rem;
    border: 1px solid #dbe3ef;
}
.settings-side .list-group-item.active {
    background: #0d6efd;
    border-color: #0d6efd;
}
@media (max-width: 991px) {
    .settings-shell { grid-template-columns: 1fr; }
}

/* ── Engineer workspace ── */
.engineer-shell { max-width: 980px; margin: 0 auto; padding: 1rem; }
.engineer-top { display: flex; gap: .75rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.engineer-badge { border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; font-weight: 600; }
.engineer-badge.online { background: #0f5132; color: #d1e7dd; }
.engineer-badge.offline { background: #664d03; color: #fff3cd; }
.engineer-card { background: #12263f; border: 1px solid #21446e; border-radius: 12px; padding: .9rem; margin-bottom: .7rem; color: #f7fbff; }
.engineer-card h3 { margin: 0 0 .4rem 0; font-size: 1rem; }
.engineer-meta { font-size: .85rem; opacity: .85; }
.engineer-empty { opacity: .75; font-size: .95rem; margin-top: 1rem; }
.engineer-btn {
    appearance: none;
    border: 1px solid #95b4da;
    background: transparent;
    color: #f7fbff;
    border-radius: 8px;
    padding: .35rem .65rem;
    font-size: .85rem;
    cursor: pointer;
}
.engineer-btn:hover { background: rgba(149, 180, 218, 0.15); }
.engineer-actions { margin-top: .75rem; display: flex; gap: .5rem; }

/* ── TQ editor (form) ── */
.tq-box {
    position: relative;
    min-height: 300px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.tq-box.drag-over { border-color: #4f6ef7; background: #f5f7ff; }
.tq-text {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 10px 12px;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    color: #1e293b;
    min-height: 300px;
}
.tq-text:empty:before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }
.tq-img-wrap {
    position: absolute;
    z-index: 2;
    cursor: move;
    user-select: none;
    touch-action: none;
}
.tq-img-wrap img {
    display: block;
    max-width: 500px;
    max-height: 400px;
    border-radius: 4px;
    border: 2px solid transparent;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.tq-img-wrap:hover img { border-color: #4f6ef7; }
.tq-img-del {
    display: none;
    position: absolute;
    top: -9px; right: -9px;
    width: 22px; height: 22px;
    background: #ef4444; color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 14px; line-height: 1;
    cursor: pointer;
    align-items: center; justify-content: center;
    padding: 0; z-index: 3;
}
.tq-img-wrap:hover .tq-img-del { display: flex; }
.tq-img-resize {
    display: none;
    position: absolute;
    bottom: -1px; right: -1px;
    width: 14px; height: 14px;
    background: #4f6ef7;
    border-radius: 3px 0 3px 0;
    cursor: se-resize;
    z-index: 3;
}
.tq-img-wrap:hover .tq-img-resize { display: block; }

/* ── TQ detail view ── */
.snag-desc-view { line-height: 1.7; color: #1e293b; }
.snag-desc-view p { white-space: pre-wrap; word-break: break-word; margin-bottom: 0.5rem; }
.snag-desc-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.snag-desc-imgs img { max-width: 100%; max-height: 400px; border-radius: 4px; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,.1); object-fit: contain; }
.tq-description-legacy { white-space: pre-wrap; line-height: 1.7; }
.tq-description-legacy img { max-width: 100%; display: block; margin: 6px 0; border-radius: 4px; border: 1px solid #e2e8f0; }

/* Feedback floating button */
.feedback-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1040;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4f6ef7;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(79,110,247,.45);
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}
.feedback-float-btn:hover { background: #3a54d0; transform: scale(1.08); }
.feedback-float-btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

/* ── Equipment calibration stat cards ── */
.eq-card-overdue  { border-left: 4px solid #dc3545 !important; }
.eq-card-due-soon { border-left: 4px solid #fd7e14 !important; }
.eq-card-current  { border-left: 4px solid #198754 !important; }
.eq-card-uncert   { border-left: 4px solid #6c757d !important; }
.eq-stat-lbl { font-size: .7rem; letter-spacing: .06em; }
.eq-stat-val { font-size: 2rem; line-height: 1; }
.text-warning-orange { color: #fd7e14 !important; }

/* ── Table header accent ── */
.tbl-head-subtle { background: #f8fafc !important; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }

/* ── Font-size utilities ── */
.fs-65  { font-size: .65rem !important; }
.fs-72  { font-size: .72rem !important; }
.fs-75  { font-size: .75rem !important; }
.fs-77  { font-size: .77rem !important; }
.fs-80  { font-size: .80rem !important; }
.fs-82  { font-size: .82rem !important; }
.fs-83  { font-size: .83rem !important; }
.fs-85  { font-size: .85rem !important; }
.fs-875 { font-size: .875rem !important; }
.fs-90  { font-size: .9rem !important; }
.fs-150 { font-size: 1.5rem !important; }
.fs-200 { font-size: 2rem !important; }
.fs-250 { font-size: 2.5rem !important; }

/* ── Max-width card wrappers ── */
.mw-220  { max-width: 220px; }
.mw-280  { max-width: 280px; }
.mw-420  { max-width: 420px; }
.mw-500  { max-width: 500px; }
.mw-520  { max-width: 520px; }
.mw-560  { max-width: 560px; }
.mw-600  { max-width: 600px; }
.mw-640  { max-width: 640px; }
.mw-720  { max-width: 720px; }
.mw-760  { max-width: 760px; }
.mw-900  { max-width: 900px; }
.mw-960  { max-width: 960px; }
.mw-980  { max-width: 980px; }
.mw-1200 { max-width: 1200px; }

/* ── Overflow / scroll utilities ── */
.mh-280-scroll  { max-height: 280px; overflow: auto; }
.mh-420-scroll  { max-height: 420px; overflow-y: auto; }
.mh-70vh-scroll { max-height: 70vh; overflow: auto; }
.mh-5em-clip    { max-height: 5em; overflow: hidden; }
.pre-wrap       { white-space: pre-wrap; }

/* ── Clickable row cursor ── */
[data-href] { cursor: pointer; }

/* ── Media attachment thumbnail ── */
.media-thumb { max-height: 200px; max-width: 300px; border-radius: 6px; border: 1px solid #e2e8f0; object-fit: cover; }

/* ── Gantt chart ── */
.gantt-dot { display: inline-block; width: 14px; height: 14px; }

/* ── Badge sizing ── */
.badge-lg { font-size: .9rem !important; padding: .5em 1em !important; }

/* ── Line-height tight ── */
.lh-1 { line-height: 1 !important; }

/* ── Filter bar ── */
.filter-select-sm { font-size: .82rem; padding: .35rem .65rem; }
.filter-input-sm  { min-width: 220px; }

/* ── Equipment check-list labels (shared across kit pages) ── */
.eq-cat-hdr    { font-size: .7rem; letter-spacing: .06em; }
.eq-item-label { cursor: pointer; }
.eq-badge-xs   { font-size: .62rem; }
.eq-meta-xs    { font-size: .72rem; }
.eq-sel-badge  { font-size: .72rem; }

/* ── Mobile optimisations ────────────────────────────────────────────────── */

/* Nav tabs: scroll horizontally on narrow screens instead of wrapping */
@media (max-width: 767.98px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 1px; /* prevent bottom border clip */
    }
    .nav-tabs::-webkit-scrollbar { display: none; }
    .nav-tabs .nav-item { flex-shrink: 0; }
    .nav-tabs .nav-link { white-space: nowrap; }
}

/* Account bar: min-width only needed when user name chip is visible */
@media (max-width: 767.98px) {
    .app-account-bar { min-width: 0; }
}

/* App main: ensure comfortable side padding on phones */
@media (max-width: 575.98px) {
    .app-main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Feedback float button: tuck in closer on small screens */
@media (max-width: 575.98px) {
    .feedback-float-btn {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Onboarding step num — tighten spacing on phone */
@media (max-width: 575.98px) {
    .onboarding-step-num { width: 24px; height: 24px; }
}
