@font-face {
    font-family: "Open Sans Local";
    src: url("/fonts/OpenSans.woff") format("woff");
    font-style: normal;
    font-weight: 400;
}

.workflow-status-panel {
    margin-bottom: 1.5rem;
}

.workflow-status-block {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 1rem;
    padding-top: 1rem;
}

.workflow-mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.workflow-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.workflow-action-form {
    margin-top: 0.5rem;
}

@font-face {
    font-family: "Open Sans Local";
    src: url("/fonts/OpenSansSemiBold.woff") format("woff");
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Open Sans Local";
    src: url("/fonts/OpenSansBold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
}

body {
    --shell-bg-top: #e7edf2;
    --shell-bg-bottom: #f5f7fa;
    --shell-bg-image: url("/Content/images/background.webp");
    --shell-text: #16222d;
    --shell-muted: #5f7181;
    --shell-border: rgba(12, 52, 80, 0.1);
    --shell-panel: rgba(255, 255, 255, 0.86);
    --shell-panel-strong: rgba(255, 255, 255, 0.95);
    --shell-panel-soft: #eef4f8;
    --shell-accent: #0b4d73;
    --shell-accent-soft: rgba(11, 77, 115, 0.1);
    --shell-accent-contrast: #ffffff;
    --shell-danger: #c2183a;
    --shell-danger-soft: rgba(194, 24, 58, 0.12);
    --shell-success: #0c7b58;
    --shell-success-soft: rgba(12, 123, 88, 0.12);
    --shell-shadow: 0 28px 70px rgba(11, 35, 56, 0.12);
    --shell-shadow-soft: 0 18px 40px rgba(11, 35, 56, 0.08);
    background:
        linear-gradient(180deg, rgba(243, 247, 250, 0.92) 0%, rgba(248, 250, 252, 0.94) 42%, rgba(251, 252, 253, 0.97) 100%),
        radial-gradient(circle at top left, rgba(11, 77, 115, 0.14), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(194, 24, 58, 0.1), transparent 20%),
        var(--shell-bg-image),
        linear-gradient(180deg, var(--shell-bg-top) 0%, var(--shell-bg-bottom) 52%, #fbfcfd 100%);
    background-attachment: fixed, fixed, fixed, fixed, fixed;
    background-position: center top, left top, 82% 18%, center center, center center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: auto, auto, auto, cover, cover;
    color: var(--shell-text);
    font-family: "Open Sans Local", "Trebuchet MS", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

body.theme-ocean {
    --shell-accent: #0b4d73;
    --shell-accent-soft: rgba(11, 77, 115, 0.1);
}

body.theme-forest {
    --shell-accent: #165c46;
    --shell-accent-soft: rgba(22, 92, 70, 0.1);
}

body.theme-ember {
    --shell-accent: #9e3d21;
    --shell-accent-soft: rgba(158, 61, 33, 0.11);
}

a {
    transition: color 0.18s ease, opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #0b4d73 0%, #0f678f 100%);
    border-color: #0b4d73;
    box-shadow: 0 14px 28px rgba(11, 77, 115, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0a4568 0%, #0d5e83 100%);
    border-color: #0a4568;
}

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

.topbar {
    backdrop-filter: blur(20px);
    background: linear-gradient(180deg, rgba(6, 40, 62, 0.95) 0%, rgba(8, 54, 82, 0.92) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--shell-accent-contrast);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.topbar a {
    color: var(--shell-accent-contrast);
    margin-left: 0;
    text-decoration: none;
}

.topbar .container {
    gap: 1rem;
}

.brand-lockup {
    align-items: center;
    display: flex;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.9rem;
    margin-right: 0.75rem;
}

.brand-logo {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    display: block;
    height: 3.4rem;
    object-fit: contain;
    padding: 0.3rem 0.55rem;
}

.brand-copy {
    display: grid;
    gap: 0.08rem;
}

.brand-copy strong {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    opacity: 0.82;
    text-transform: uppercase;
}

.topbar-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.topbar-user {
    font-weight: 700;
}

.topbar-menu {
    position: relative;
}

.topbar-menu summary {
    list-style: none;
}

.topbar-menu summary::-webkit-details-marker {
    display: none;
}

.topbar-menu-summary,
.topbar-icon-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    gap: 0.45rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.95rem;
    user-select: none;
}

.topbar-icon-button {
    justify-content: center;
    min-width: 2.6rem;
    padding: 0.55rem;
}

.topbar-icon-button svg {
    display: block;
    height: 1.1rem;
    width: 1.1rem;
}

.intelligence-hero {
    margin-bottom: 1.5rem;
}

.intelligence-filters {
    margin-bottom: 1rem;
}

.intelligence-filters--compact {
    background: rgba(255, 255, 255, 0.8);
}

.intelligence-filter-form,
.intelligence-filter-grid,
.intelligence-metric-grid,
.intelligence-list-grid,
.intelligence-insight-grid,
.intelligence-chart-grid,
.intelligence-overview-grid {
    display: grid;
    gap: 1rem;
}

.intelligence-filter-primary {
    align-items: end;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.intelligence-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.intelligence-filter-advanced {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin-top: 1rem;
    padding-top: 1rem;
}

.intelligence-filter-advanced > summary {
    color: var(--shell-text);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    margin-bottom: 1rem;
}

.intelligence-filter-advanced > summary::-webkit-details-marker {
    display: none;
}

.intelligence-filter-actions,
.intelligence-card-actions,
.intelligence-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.intelligence-filter-actions {
    margin-top: 1rem;
}

.intelligence-tabs {
    margin-bottom: 1.5rem;
}

.intelligence-tab {
    background: var(--shell-panel);
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    color: var(--shell-text);
    display: inline-flex;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

.intelligence-tab.is-active {
    background: var(--shell-accent);
    border-color: var(--shell-accent);
    color: var(--shell-accent-contrast);
}

.intelligence-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 1.5rem;
}

.intelligence-card,
.intelligence-list-card,
.intelligence-insight-card,
.intelligence-chart-card,
.intelligence-timeline-item {
    background: var(--shell-panel-strong);
    border: 1px solid var(--shell-border);
    border-radius: 20px;
    box-shadow: var(--shell-shadow-soft);
    padding: 1.2rem;
}

.intelligence-card--interactive {
    overflow: hidden;
    position: relative;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.intelligence-card--interactive:hover {
    border-color: rgba(45, 140, 255, 0.3);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.metric-card-sparkline-wrap {
    height: 3.25rem;
    margin: 0.6rem 0 0.8rem;
}

.metric-card-sparkline {
    height: 100%;
    width: 100%;
}

.intelligence-card-hover-note {
    background: rgba(45, 140, 255, 0.06);
    border: 1px solid rgba(45, 140, 255, 0.12);
    border-radius: 14px;
    margin-top: 0.85rem;
    opacity: 0;
    padding: 0.75rem 0.85rem;
    transform: translateY(6px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.intelligence-card-hover-note span {
    color: var(--shell-accent);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.intelligence-card-hover-note p {
    margin: 0;
}

.intelligence-card--interactive:hover .intelligence-card-hover-note {
    opacity: 1;
    transform: translateY(0);
}

.intelligence-card--critical {
    border-color: rgba(194, 24, 58, 0.28);
    box-shadow: 0 18px 40px rgba(194, 24, 58, 0.12);
}

.intelligence-card--warning {
    border-color: rgba(179, 118, 23, 0.28);
}

.intelligence-card--positive {
    border-color: rgba(12, 123, 88, 0.25);
}

.intelligence-card-topline,
.intelligence-list-head,
.intelligence-list-metrics,
.intelligence-answer-block,
.intelligence-distribution,
.intelligence-overview-panels,
.intelligence-timeline {
    display: grid;
    gap: 0.75rem;
}

.intelligence-card-topline,
.intelligence-list-head {
    align-items: start;
    grid-template-columns: 1fr auto;
}

.intelligence-card-label,
.intelligence-list-head h3 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0;
    text-transform: uppercase;
}

.intelligence-list-head p,
.intelligence-summary {
    color: var(--shell-muted);
    margin: 0.2rem 0 0;
}

.intelligence-metric-value {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1;
}

.intelligence-trend,
.intelligence-severity {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.32rem 0.7rem;
    text-transform: uppercase;
}

.intelligence-trend--up,
.intelligence-severity--critical {
    background: var(--shell-danger-soft);
    color: var(--shell-danger);
}

.intelligence-trend--down,
.intelligence-severity--positive {
    background: var(--shell-success-soft);
    color: var(--shell-success);
}

.intelligence-trend--flat,
.intelligence-severity--warning,
.intelligence-severity--neutral {
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
}

.intelligence-answer-block div {
    background: var(--shell-panel-soft);
    border-radius: 14px;
    padding: 0.7rem 0.85rem;
}

.intelligence-answer-block span {
    color: var(--shell-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.intelligence-section {
    margin-bottom: 1.5rem;
}

.intelligence-list-grid,
.intelligence-insight-grid,
.intelligence-chart-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.operational-signal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.operational-signal-card {
    background:
        radial-gradient(circle at top right, rgba(45, 140, 255, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(15, 24, 35, 0.98) 0%, rgba(11, 20, 30, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    box-shadow: 0 22px 44px rgba(3, 8, 15, 0.34);
    overflow: hidden;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.operational-signal-card:hover {
    border-color: rgba(45, 140, 255, 0.26);
    box-shadow: 0 26px 52px rgba(3, 8, 15, 0.42);
    transform: translateY(-2px);
}

.operational-signal-overlay {
    inset: 0;
    position: absolute;
    z-index: 0;
}

.operational-signal-content {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    position: relative;
    z-index: 1;
}

.operational-signal-head {
    align-items: start;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 1fr auto;
}

.operational-signal-kicker {
    color: var(--shell-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.operational-signal-head h3 {
    margin: 0;
}

.operational-signal-head p {
    color: var(--shell-muted);
    margin: 0.3rem 0 0;
}

.operational-signal-priority {
    white-space: nowrap;
}

.operational-signal-summary {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    justify-content: space-between;
}

.operational-signal-value {
    color: var(--shell-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.operational-signal-delta {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
}

.operational-signal-delta--up {
    background: var(--shell-danger-soft);
    color: var(--shell-danger);
}

.operational-signal-delta--down {
    background: var(--shell-success-soft);
    color: var(--shell-success);
}

.operational-signal-delta--flat {
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
}

.operational-signal-delta-arrow {
    font-size: 1rem;
    line-height: 1;
}

.operational-signal-sparkline-wrap {
    background: linear-gradient(180deg, rgba(9, 17, 26, 0.92) 0%, rgba(12, 20, 30, 0.88) 100%);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem;
}

.operational-signal-sparkline {
    display: block;
    height: 120px;
    width: 100%;
}

.operational-signal-sparkline-grid {
    fill: none;
    stroke: rgba(148, 163, 184, 0.18);
    stroke-width: 1;
}

.operational-signal-sparkline-line {
    fill: none;
    stroke: var(--shell-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.operational-signal-sparkline-fill {
    fill: rgba(45, 140, 255, 0.14);
}

.operational-signal-card.intelligence-card--critical .operational-signal-sparkline-line {
    stroke: var(--shell-danger);
}

.operational-signal-card.intelligence-card--critical .operational-signal-sparkline-fill {
    fill: rgba(194, 24, 58, 0.12);
}

.operational-signal-card.intelligence-card--warning .operational-signal-sparkline-line {
    stroke: #d99517;
}

.operational-signal-card.intelligence-card--warning .operational-signal-sparkline-fill {
    fill: rgba(217, 149, 23, 0.12);
}

.operational-signal-card.intelligence-card--positive .operational-signal-sparkline-line {
    stroke: var(--shell-success);
}

.operational-signal-card.intelligence-card--positive .operational-signal-sparkline-fill {
    fill: rgba(12, 123, 88, 0.12);
}

.operational-signal-axis {
    color: rgba(203, 213, 225, 0.82);
    display: flex;
    font-size: 0.72rem;
    gap: 0.75rem;
    justify-content: space-between;
}

.operational-signal-axis span {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.operational-signal-insights {
    display: grid;
    gap: 0.7rem;
}

.operational-signal-insights div {
    background: var(--shell-panel-soft);
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
}

.intelligence-asset-selector-panel {
    margin-bottom: 1.5rem;
}

.intelligence-asset-selector-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.intelligence-asset-selector-actions {
    align-items: end;
    display: flex;
    gap: 0.75rem;
}

.operational-signal-insights span,
.operational-signal-impact span {
    color: var(--shell-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.operational-signal-insights p {
    margin: 0;
}

.operational-signal-impact {
    background: linear-gradient(180deg, rgba(16, 27, 39, 0.94) 0%, rgba(12, 22, 33, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
}

.operational-signal-impact strong {
    color: var(--shell-heading);
    display: block;
    font-size: 0.98rem;
}

.operational-signal-actions {
    position: relative;
    z-index: 2;
}

.intelligence-overview-grid {
    grid-template-columns: minmax(220px, 280px) 1fr;
}

.intelligence-distribution {
    align-content: start;
}

.intelligence-distribution-item {
    background: var(--shell-panel-soft);
    border: 1px solid var(--shell-border);
    border-radius: 18px;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
}

.intelligence-distribution-item strong {
    font-size: 1.8rem;
}

.intelligence-health-badge {
    align-items: center;
    border-radius: 20px;
    display: inline-grid;
    gap: 0.2rem;
    justify-items: center;
    min-width: 120px;
    padding: 0.9rem 1rem;
}

.intelligence-health-badge strong {
    font-size: 2rem;
    line-height: 1;
}

.intelligence-asset-header {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.intelligence-bar-chart {
    align-items: end;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    min-height: 180px;
}

.intelligence-bar-slot {
    align-items: end;
    display: grid;
    gap: 0.45rem;
    height: 100%;
}

.intelligence-bar {
    align-items: end;
    background: linear-gradient(180deg, var(--shell-accent) 0%, rgba(11, 77, 115, 0.68) 100%);
    border-radius: 14px 14px 6px 6px;
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 6%;
    padding: 0.45rem 0.3rem;
}

.intelligence-bar span {
    font-size: 0.72rem;
    font-weight: 700;
}

.intelligence-bar-slot small {
    color: var(--shell-muted);
    font-size: 0.72rem;
    text-align: center;
}

.intelligence-action-table td,
.intelligence-action-table th {
    min-width: 150px;
    vertical-align: top;
}

.action-queue-priority {
    display: grid;
    gap: 0.35rem;
    justify-items: start;
}

.intelligence-ai-panel {
    background:
        radial-gradient(circle at top right, rgba(11, 77, 115, 0.12), transparent 34%),
        radial-gradient(circle at bottom left, rgba(12, 123, 88, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 248, 251, 0.98) 100%);
}

.ai-query-starters,
.ai-query-actions,
.ai-query-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.ai-query-starters {
    margin-bottom: 1rem;
}

.ai-query-starter {
    background: rgba(11, 77, 115, 0.08);
    border: 1px solid rgba(11, 77, 115, 0.12);
    border-radius: 999px;
    color: var(--shell-accent);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.ai-query-starter:hover {
    background: rgba(11, 77, 115, 0.14);
}

.ai-query-form {
    display: grid;
    gap: 0.9rem;
}

.ai-query-textarea {
    background: linear-gradient(180deg, rgba(14, 25, 36, 0.96) 0%, rgba(11, 20, 31, 0.94) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--shell-text);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    min-height: 130px;
    padding: 1rem 1.05rem;
    resize: vertical;
}

.ai-query-textarea::placeholder {
    color: rgba(148, 163, 184, 0.78);
}

.ai-query-textarea:focus {
    background: linear-gradient(180deg, rgba(16, 28, 40, 0.98) 0%, rgba(12, 22, 33, 0.96) 100%);
    border-color: rgba(45, 140, 255, 0.34);
    box-shadow: 0 0 0 0.2rem rgba(45, 140, 255, 0.14);
    color: var(--shell-text);
}

.ai-query-actions {
    align-items: center;
    justify-content: space-between;
}

.ai-query-fallback[hidden] {
    display: none !important;
}

.ai-query-response {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.ai-query-answer,
.ai-query-card {
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.96) 0%, rgba(11, 20, 30, 0.94) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    padding: 1rem 1.05rem;
}

.ai-query-answer span,
.ai-query-card h3 {
    color: var(--shell-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.ai-query-answer p,
.ai-query-card ul {
    margin: 0;
}

.ai-query-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ai-query-card ul {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.1rem;
}

@media (max-width: 960px) {
    .intelligence-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .intelligence-tabs {
        overflow-x: auto;
        padding-bottom: 0.2rem;
        white-space: nowrap;
    }

    .intelligence-metric-grid,
    .intelligence-list-grid,
    .intelligence-insight-grid,
    .intelligence-chart-grid {
        grid-template-columns: 1fr;
    }
}

.topbar-menu[open] .topbar-menu-summary,
.topbar-menu[open] .topbar-icon-button,
.topbar-menu-summary:hover,
.topbar-icon-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.topbar-chevron {
    font-size: 0.85rem;
    opacity: 0.88;
}

.topbar-menu-dropdown {
    background: #fff;
    border: 1px solid rgba(28, 58, 75, 0.12);
    border-radius: 16px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.12);
    min-width: 12rem;
    padding: 0.45rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 30;
}

.topbar-menu-dropdown-compact {
    min-width: 10rem;
}

.topbar-menu-dropdown a {
    border-radius: 12px;
    color: var(--shell-text);
    display: block;
    margin-left: 0;
    padding: 0.7rem 0.8rem;
}

.topbar-menu-dropdown a:hover {
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
    text-decoration: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.75rem;
    margin: 0 auto;
    max-width: 1700px;
    padding: 1.75rem;
}

.shell-nav {
    min-width: 0;
}

.shell-nav-toggle {
    display: none;
}

.shell-nav-toggle::-webkit-details-marker {
    display: none;
}

.sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(244, 248, 251, 0.88) 100%);
    border: 1px solid var(--shell-border);
    border-radius: 26px;
    box-shadow: var(--shell-shadow);
    height: fit-content;
    max-width: 100%;
    overflow: hidden;
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

.sidebar-section + .sidebar-section {
    border-top: 1px solid var(--shell-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.sidebar-rollup {
    border-top: 1px solid var(--shell-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.sidebar-rollup-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.sidebar-rollup-summary::-webkit-details-marker {
    display: none;
}

.sidebar-rollup-count {
    background: var(--shell-accent-soft);
    border-radius: 999px;
    color: var(--shell-accent);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
}

.sidebar-rollup-body {
    margin-top: 0.6rem;
}

.sidebar-title {
    color: var(--shell-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.side-link {
    border-radius: 16px;
    color: var(--shell-text);
    display: block;
    margin-bottom: 0.25rem;
    padding: 0.8rem 0.95rem;
    text-decoration: none;
}

.side-link:hover {
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
    transform: translateX(2px);
}

.side-link small {
    color: #6b7c8d;
    display: block;
    font-size: 0.77rem;
    margin-top: 0.1rem;
}

.side-link-disabled {
    color: #7b8794;
    cursor: default;
}

.side-link-disabled:hover {
    background: transparent;
    color: #7b8794;
}

.content-shell {
    min-width: 0;
}

.shell-context-card {
    background:
        radial-gradient(circle at top right, rgba(11, 77, 115, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 252, 0.96) 100%);
    margin-bottom: 1.5rem;
}

.shell-context-head {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.shell-context-head h2 {
    margin-bottom: 0.35rem;
}

.shell-context-head p,
.shell-context-note {
    color: var(--shell-muted);
    margin: 0;
}

.shell-context-kicker,
.shell-stat-label {
    color: var(--shell-accent);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.shell-context-badges,
.shell-context-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.shell-context-badge {
    background: rgba(11, 77, 115, 0.08);
    border-radius: 999px;
    color: var(--shell-accent);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
}

.shell-context-note {
    background: rgba(11, 77, 115, 0.06);
    border: 1px solid rgba(11, 77, 115, 0.1);
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
}

.shell-context-form,
.shell-context-grid {
    display: grid;
    gap: 1rem;
}

.shell-context-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.shell-context-grid label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

.shell-context-grid label span {
    color: var(--shell-muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shell-stat-value {
    color: var(--shell-text);
    display: block;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1;
}

.hero-card,
.panel-card,
.auth-card {
    background: var(--shell-panel);
    border: 1px solid var(--shell-border);
    border-radius: 28px;
    box-shadow: var(--shell-shadow);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card {
    margin-bottom: 1.5rem;
}

.hero-card::before,
.panel-card::before,
.auth-card::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    content: "";
    height: 1px;
    left: 1.5rem;
    position: absolute;
    right: 1.5rem;
    top: 0;
}

.page-header-bar {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.hero-meta {
    margin-bottom: 0;
    color: var(--shell-muted);
}

.info-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel-card-wide {
    grid-column: 1 / -1;
}

.auth-card {
    max-width: 540px;
    margin: 2rem auto;
}

.auth-form {
    display: grid;
    gap: 0.85rem;
}

.public-shell {
    min-height: calc(100vh - 92px);
}

.public-shell-auth {
    align-items: stretch;
    display: flex;
    padding: 2rem;
}

.auth-stage {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
    margin: auto;
    max-width: 1400px;
    width: 100%;
}

.auth-brand-panel {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 30%),
        radial-gradient(circle at bottom right, rgba(194, 24, 58, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(5, 43, 66, 0.92) 0%, rgba(10, 74, 107, 0.95) 54%, rgba(12, 93, 121, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: 0 34px 80px rgba(7, 31, 46, 0.28);
    color: #fff;
    display: grid;
    gap: 1.5rem;
    min-height: 100%;
    overflow: hidden;
    padding: 2.4rem;
    position: relative;
}

.auth-brand-panel::after {
    background:
        linear-gradient(transparent 95%, rgba(255, 255, 255, 0.05) 95%),
        linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.05) 95%);
    background-size: 38px 38px;
    content: "";
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    position: absolute;
}

.auth-brand-panel > * {
    position: relative;
    z-index: 1;
}

.auth-brand-mark {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    display: inline-flex;
    justify-content: center;
    max-width: 320px;
    padding: 1rem 1.2rem;
}

.auth-brand-mark img {
    display: block;
    max-width: 100%;
}

.auth-brand-panel h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.02;
    margin: 0;
    max-width: 12ch;
}

.auth-brand-panel p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.04rem;
    margin: 0;
    max-width: 52rem;
}

.auth-feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.auth-feature-grid article {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.auth-feature-grid strong {
    font-size: 0.95rem;
}

.auth-feature-grid span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.auth-card-premium {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 252, 253, 0.95) 100%);
    margin: 0;
    max-width: none;
    padding: 2.2rem;
}

.auth-card-head {
    margin-bottom: 1rem;
}

.auth-card-head h2 {
    margin-bottom: 0.35rem;
}

.auth-card-head p {
    color: var(--shell-muted);
    margin: 0;
}

.auth-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

dt {
    font-weight: 700;
}

.stat-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.dashboard-section-heading {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dashboard-section-heading p {
    color: var(--shell-muted);
    margin: 0.35rem 0 0;
}

.dashboard-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-tile {
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(28, 58, 75, 0.16);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 170px;
    padding: 1.25rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-tile:hover {
    box-shadow: 0 24px 42px rgba(28, 58, 75, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.dashboard-tile__eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.88;
    text-transform: uppercase;
}

.dashboard-tile__count {
    font-size: 2.8rem;
    line-height: 1;
    margin: 0.35rem 0 0.1rem;
}

.dashboard-tile__label {
    font-size: 1.05rem;
    font-weight: 700;
}

.dashboard-tile__meta {
    margin-top: auto;
    opacity: 0.88;
}

.dashboard-tile--aqua {
    background: linear-gradient(145deg, #177e89 0%, #0f5c66 100%);
}

.dashboard-tile--crimson {
    background: linear-gradient(145deg, #c44536 0%, #8f2d22 100%);
}

.dashboard-tile--amber {
    background: linear-gradient(145deg, #d98e04 0%, #a86404 100%);
}

.dashboard-tile--cobalt {
    background: linear-gradient(145deg, #2a6fdb 0%, #1f4f9f 100%);
}

.dashboard-tile--slate {
    background: linear-gradient(145deg, #5c677d 0%, #3c4456 100%);
}

.dashboard-tile--orange {
    background: linear-gradient(145deg, #e36414 0%, #b64a08 100%);
}

.dashboard-tile--green {
    background: linear-gradient(145deg, #4c956c 0%, #2f6f4b 100%);
}

.dashboard-tile--teal {
    background: linear-gradient(145deg, #00838f 0%, #005662 100%);
}

.dashboard-tile--berry {
    background: linear-gradient(145deg, #8f3b76 0%, #5f234d 100%);
}

.stat-tile {
    background: var(--shell-panel-soft);
    border: 1px solid var(--shell-border);
    border-radius: 14px;
    padding: 1rem;
}

.stat-tile span {
    color: var(--shell-muted);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.stat-tile strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1.1;
}

.table-subtle {
    color: #6b7c8d;
    font-size: 0.85rem;
}

.jobs-filter {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 320px) auto auto;
}

.jobs-filter-legacy {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.jobs-filter-toolbar {
    overflow: visible;
    padding-bottom: 0;
}

.jobs-filter-row {
    align-items: end;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.jobs-filter-cell {
    min-width: 0;
}

.jobs-filter-cell .form-control,
.jobs-filter-cell .form-select {
    font-size: 0.92rem;
    min-height: 2.55rem;
    width: 100%;
}

.jobs-filter-cell-date .form-control {
    width: 100%;
}

.jobs-filter-cell-customer .form-control {
    width: 100%;
}

.jobs-filter-cell-select .form-select {
    width: 100%;
}

.jobs-filter-cell-search .form-control {
    width: 100%;
}

.jobs-filter-cell-check {
    padding-bottom: 0;
}

.jobs-filter-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

@media (max-width: 1200px) {
    .jobs-filter-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .jobs-filter-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jobs-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jobs-filter-actions {
        justify-content: stretch;
    }

    .jobs-filter-actions .btn {
        flex: 1 1 0;
    }
}

.directory-filter {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(260px, 420px) auto auto;
}

.jobs-filter-check {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.filter-summary {
    color: var(--shell-muted);
    margin: 0.9rem 0 0;
}

.filter-summary a {
    color: var(--shell-accent);
    font-weight: 700;
    text-decoration: none;
}

.filter-summary a:hover {
    text-decoration: underline;
}

.validation-summary:empty {
    display: none;
}

.validation-summary-valid {
    display: none;
}

#login-shift-field.is-hidden {
    display: none;
}

.job-update-form {
    display: grid;
    gap: 1rem;
}

.job-update-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.job-update-grid-span {
    grid-column: 1 / -1;
}

.job-update-notes textarea {
    min-height: 9rem;
}

.job-update-form select[multiple] {
    min-height: 10rem;
}

.job-parts-builder {
    border-top: 1px solid var(--shell-border);
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.job-parts-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.job-part-row {
    align-items: end;
    background: #f9fbfc;
    border: 1px solid var(--shell-border);
    border-radius: 14px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 2.2fr) minmax(120px, 0.7fr) minmax(80px, 0.45fr) auto;
    padding: 1rem;
}

.job-part-field {
    min-width: 0;
}

.job-part-field-wide {
    min-width: 0;
}

.job-part-meta {
    margin-top: 0.45rem;
}

.job-part-checkbox .form-check {
    min-height: 2.5rem;
    padding-top: 0.45rem;
}

.job-part-actions {
    display: flex;
    justify-content: flex-end;
}

.job-update-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.job-editor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.job-editor-section {
    border-top: 1px solid var(--shell-border);
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.job-editor-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.job-editor-stat {
    background: linear-gradient(180deg, rgba(250, 251, 246, 0.95) 0%, rgba(243, 247, 236, 0.98) 100%);
    border: 1px solid rgba(94, 112, 46, 0.16);
    border-radius: 16px;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.job-editor-stat strong {
    color: #445126;
    font-size: 1.05rem;
}

.job-editor-checkbox .form-check {
    min-height: 2.5rem;
    padding-top: 0.45rem;
}

.job-technician-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.job-technician-picker {
    display: grid;
    gap: 0.75rem;
}

.job-technician-summary {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--shell-border);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    list-style: none;
    min-height: 2.75rem;
    padding: 0.75rem 0.95rem;
}

.job-technician-summary::-webkit-details-marker {
    display: none;
}

.job-technician-summary::after {
    color: var(--shell-accent);
    content: "v";
    font-size: 0.85rem;
}

.job-technician-picker[open] .job-technician-summary::after {
    transform: rotate(180deg);
}

.job-technician-panel {
    background: rgba(9, 17, 27, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem;
}

.job-technician-option {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    color: #e6edf3;
    cursor: pointer;
    display: flex;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.8rem 0.95rem;
}

.job-technician-option input {
    margin-top: 0.2rem;
}

.job-files-legacy-hint {
    align-self: center;
}

.parts-order-builder {
    border-top: 1px solid var(--shell-border);
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.parts-order-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.parts-order-line {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 250, 0.98) 100%);
    border: 1px solid var(--shell-border);
    border-radius: 18px;
    padding: 1rem;
}

.parts-order-line-grid {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(240px, 2.1fr) repeat(4, minmax(110px, 0.75fr)) minmax(180px, 1fr) auto;
}

.parts-order-line-main {
    min-width: 0;
}

.parts-order-line-metrics {
    background: var(--shell-accent-soft);
    border-radius: 14px;
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem 0.95rem;
}

.parts-order-line-metrics span {
    color: var(--shell-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.parts-order-line-metrics strong {
    color: var(--shell-accent);
    display: block;
    font-size: 1.1rem;
}

.parts-order-line-actions {
    display: flex;
    justify-content: flex-end;
}

.job-attachment-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.job-attachment-form .form-control {
    max-width: 22rem;
}

.job-files-scope {
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.96) 0%, rgba(11, 20, 30, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    color: #e6edf3;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.job-files-scope-head h3,
.job-files-scope-head h4 {
    color: #fff;
    margin: 0;
}

.job-file-upload-form {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.45fr) minmax(0, 1fr) auto;
}

.job-update-form .form-control,
.job-update-form .form-select,
.job-technician-panel .form-control {
    background: rgba(7, 14, 22, 0.9);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: #e6edf3;
}

.job-update-form .form-control::placeholder,
.job-technician-panel .form-control::placeholder {
    color: rgba(203, 213, 225, 0.62);
}

.job-update-form .form-control:focus,
.job-update-form .form-select:focus,
.job-technician-panel .form-control:focus {
    background: rgba(9, 17, 27, 0.96);
    border-color: rgba(45, 140, 255, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(45, 140, 255, 0.16);
    color: #f8fbff;
}

.job-update-form .form-select option {
    background: #0b1622;
    color: #f4f8fc;
}

.job-file-upload-form .form-control,
.job-file-upload-form .form-select,
.job-attachment-form .form-control {
    background: rgba(7, 14, 22, 0.9);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: #e6edf3;
}

.job-file-upload-form .form-control::placeholder,
.job-attachment-form .form-control::placeholder {
    color: rgba(203, 213, 225, 0.62);
}

.job-file-upload-form .form-control:focus,
.job-file-upload-form .form-select:focus,
.job-attachment-form .form-control:focus {
    background: rgba(9, 17, 27, 0.96);
    border-color: rgba(45, 140, 255, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(45, 140, 255, 0.16);
    color: #f8fbff;
}

.job-file-upload-form .form-control[type="file"],
.job-attachment-form .form-control[type="file"] {
    color: #dce7f1;
}

.job-file-upload-form .form-control[type="file"]::file-selector-button,
.job-attachment-form .form-control[type="file"]::file-selector-button {
    background: rgba(24, 39, 56, 0.94);
    border: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    color: #f8fbff;
    margin-right: 0.8rem;
    padding: 0.6rem 0.85rem;
}

.job-files-feedback {
    min-height: 1.2rem;
}

.job-files-feedback.is-success {
    color: var(--shell-success);
}

.job-files-feedback.is-error {
    color: var(--shell-danger);
}

.job-files-list {
    display: grid;
    gap: 0.75rem;
}

.job-file-item {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    color: #e6edf3;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}

.job-file-meta {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.job-file-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.job-file-title-row strong {
    overflow-wrap: anywhere;
}

.job-file-description {
    color: #dce7f1;
    font-size: 0.92rem;
}

.job-file-actions {
    display: flex;
    gap: 0.55rem;
}

.job-file-tag {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.22rem 0.6rem;
    text-transform: uppercase;
}

.job-file-tag-photo {
    background: rgba(11, 77, 115, 0.1);
    color: var(--shell-accent);
}

.job-file-tag-document {
    background: rgba(12, 123, 88, 0.12);
    color: var(--shell-success);
}

.job-files-legacy {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    margin-top: 0.9rem;
    padding: 0.9rem 1rem 1rem;
}

.job-files-legacy .job-link {
    color: #8ec5ff;
}

.job-files-legacy .job-link:hover,
.job-files-legacy .job-link:focus {
    color: #c6e2ff;
}

.job-files-empty {
    color: var(--shell-muted);
}

.job-files-scope .table-subtle,
.job-files-legacy .table-subtle {
    color: rgba(203, 213, 225, 0.72);
}

.job-files-scope .simple-list,
.job-files-legacy .simple-list {
    color: #dce7f1;
}

.job-files-scope .simple-list li,
.job-files-legacy .simple-list li {
    color: inherit;
}

.job-files-scope .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.2);
    color: #dce7f1;
}

.job-files-scope .btn-outline-secondary:hover,
.job-files-scope .btn-outline-secondary:focus {
    background: rgba(45, 140, 255, 0.14);
    border-color: rgba(45, 140, 255, 0.32);
    color: #f8fbff;
}

.trend-chart-shell {
    background:
        radial-gradient(circle at top left, rgba(45, 140, 255, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(10, 19, 28, 0.82) 0%, rgba(13, 23, 34, 0.72) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 1.25rem;
}

.trend-chart-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.trend-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    justify-content: flex-end;
}

.trend-legend-item {
    align-items: center;
    color: var(--shell-text);
    display: inline-flex;
    font-size: 0.85rem;
    gap: 0.45rem;
}

.trend-legend-swatch {
    border-radius: 999px;
    display: inline-block;
    height: 0.8rem;
    width: 0.8rem;
}

.trend-chart-frame {
    position: relative;
}

.trend-chart-svg {
    background: transparent;
    display: block;
    height: auto;
    width: 100%;
}

.trend-axis-labels {
    color: var(--shell-muted);
    display: grid;
    font-size: 0.82rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-top: -0.4rem;
    padding-left: 3.5rem;
    padding-right: 1rem;
    text-align: center;
}

.jobs-table td {
    vertical-align: top;
}

.directory-table td {
    vertical-align: top;
}

.job-link {
    color: var(--shell-accent);
    font-weight: 700;
    text-decoration: none;
}

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

.job-summary {
    color: var(--shell-muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
    max-width: 42rem;
}

.status-pill {
    background: var(--shell-accent-soft);
    border-radius: 999px;
    color: var(--shell-accent);
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
}

.back-link {
    color: var(--shell-muted);
    display: inline-block;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

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

.history-card {
    background: #f9fbfc;
    border: 1px solid var(--shell-border);
    border-radius: 14px;
    padding: 1.25rem;
}

.history-card + .history-card {
    margin-top: 1rem;
}

.history-head {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.history-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.table-actions {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.table-actions form {
    margin: 0;
}

.history-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.job-detail-card {
    min-width: 0;
}

.job-detail-card-wide {
    grid-column: 1 / -1;
}

.job-detail-kv-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.job-detail-kv-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.job-detail-kv-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    display: grid;
    gap: 0.32rem;
    min-width: 0;
    padding: 0.95rem 1rem;
}

.job-detail-kv-item span {
    color: var(--shell-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.job-detail-kv-item strong {
    color: #f8fbff;
    font-size: 0.98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.job-detail-kv-item-wide {
    grid-column: span 2;
}

.job-detail-kv-item.is-alert {
    border-color: rgba(239, 68, 68, 0.28);
}

.job-detail-kv-item.is-alert strong {
    color: #fca5a5;
}

@media (max-width: 767.98px) {
    .job-detail-kv-item-wide {
        grid-column: auto;
    }
}

.simple-list {
    margin: 0;
    padding-left: 1.2rem;
}

.settings-form {
    display: grid;
    gap: 1.25rem;
}

.settings-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.translation-grid {
    display: grid;
    gap: 1rem;
}

.translation-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 1.2fr) minmax(320px, 2fr);
}

.permission-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.permission-card {
    align-items: center;
    background: #f9fbfc;
    border: 1px solid var(--shell-border);
    border-radius: 14px;
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
}

.tech-tracker-filter {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 280px) auto;
}

.tech-tracker-actions {
    display: flex;
    gap: 0.75rem;
}

.tech-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tech-card {
    background: linear-gradient(180deg, rgba(13, 24, 35, 0.96) 0%, rgba(17, 29, 41, 0.98) 100%);
    border: 1px solid rgba(90, 116, 136, 0.2);
    border-radius: 18px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.tech-card-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.tech-card-head h3 {
    color: #f5f9fc;
    margin: 0;
}

.tech-card .table-subtle {
    color: rgba(201, 214, 226, 0.72);
}

.tech-card-total {
    background: rgba(45, 140, 255, 0.14);
    border: 1px solid rgba(45, 140, 255, 0.22);
    border-radius: 999px;
    color: #b9d7ff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
}

.tech-job-list {
    display: grid;
    gap: 0.75rem;
}

.tech-job-item {
    background: rgba(20, 34, 47, 0.96);
    border: 1px solid rgba(98, 123, 143, 0.16);
    border-radius: 14px;
    color: #edf4fa;
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tech-job-item:hover {
    border-color: rgba(126, 179, 255, 0.28);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
}

.tech-job-top {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.tech-job-top strong {
    color: #f8fbff;
}

.tech-card .status-pill {
    background: rgba(123, 144, 163, 0.16);
    border: 1px solid rgba(123, 144, 163, 0.2);
    color: #d8e6f3;
}

.tech-card .job-summary {
    color: rgba(225, 234, 241, 0.84);
}

.parts-tracker-hero {
    background:
        radial-gradient(circle at top right, rgba(45, 140, 255, 0.18), transparent 36%),
        radial-gradient(circle at bottom left, rgba(194, 24, 58, 0.12), transparent 32%),
        linear-gradient(145deg, rgba(12, 20, 30, 0.98) 0%, rgba(10, 17, 26, 0.98) 100%);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
}

.parts-tracker-kicker {
    color: var(--shell-accent);
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.parts-tracker-hero-copy p {
    color: rgba(210, 221, 231, 0.78);
    margin-bottom: 0;
    max-width: 48rem;
}

.parts-tracker-filter {
    align-items: end;
    background: linear-gradient(180deg, rgba(14, 25, 36, 0.96) 0%, rgba(12, 22, 33, 0.98) 100%);
    border: 1px solid rgba(84, 112, 134, 0.18);
    border-radius: 24px;
    box-shadow: 0 22px 40px rgba(4, 10, 18, 0.28);
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.1rem;
}

.parts-filter-heading {
    grid-column: 1 / -1;
}

.parts-filter-heading h2 {
    font-size: 1.2rem;
    margin: 0 0 0.3rem;
}

.parts-filter-heading p {
    color: rgba(205, 216, 227, 0.74);
    margin: 0;
}

.parts-tracker-filter .form-label {
    color: rgba(214, 224, 234, 0.8);
}

.parts-tracker-filter .form-control,
.parts-discrepancy-form .form-control {
    background: rgba(8, 14, 22, 0.96);
    border-color: rgba(86, 110, 129, 0.28);
    color: #f4f8fc;
}

.parts-tracker-filter .form-control:focus,
.parts-discrepancy-form .form-control:focus {
    background: rgba(8, 14, 22, 0.98);
    border-color: rgba(126, 179, 255, 0.58);
    box-shadow: 0 0 0 0.18rem rgba(45, 140, 255, 0.16);
    color: #ffffff;
}

.parts-tracker-filter .form-control::placeholder,
.parts-discrepancy-form .form-control::placeholder {
    color: rgba(184, 198, 210, 0.55);
}

.parts-tracker-focus-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 1.35rem;
}

.parts-focus-card {
    backdrop-filter: blur(10px);
    background: rgba(16, 27, 39, 0.82);
    border: 1px solid rgba(84, 112, 134, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 32px rgba(4, 10, 18, 0.26);
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.05rem;
}

.parts-focus-card.is-positive {
    background: linear-gradient(180deg, rgba(11, 41, 31, 0.94) 0%, rgba(11, 29, 24, 0.96) 100%);
}

.parts-focus-card.is-negative {
    background: linear-gradient(180deg, rgba(48, 19, 25, 0.94) 0%, rgba(30, 15, 19, 0.96) 100%);
}

.parts-focus-label {
    color: rgba(160, 178, 196, 0.8);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.parts-focus-card strong {
    color: #f8fbff;
    font-size: 1.28rem;
    line-height: 1.15;
}

.parts-focus-card small {
    color: rgba(211, 222, 232, 0.74);
    font-size: 0.82rem;
}

.parts-tracker-actions {
    display: flex;
    gap: 0.75rem;
}

.parts-tracker-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 1.5rem;
}

.parts-summary-card {
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.98) 0%, rgba(11, 20, 30, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(3, 8, 15, 0.34);
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.05rem;
}

.parts-summary-card--usage {
    background: linear-gradient(160deg, rgba(42, 17, 23, 0.98) 0%, rgba(19, 14, 19, 0.98) 100%);
}

.parts-summary-card--receipt {
    background: linear-gradient(160deg, rgba(16, 30, 41, 0.98) 0%, rgba(11, 20, 30, 0.98) 100%);
}

.parts-summary-card--net {
    background: linear-gradient(160deg, rgba(12, 37, 29, 0.98) 0%, rgba(10, 23, 20, 0.98) 100%);
}

.parts-summary-card span {
    color: rgba(173, 190, 206, 0.82);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.parts-summary-card strong {
    color: #f8fbff;
    font-size: 2rem;
    line-height: 1;
}

.parts-summary-card small {
    color: rgba(212, 223, 232, 0.74);
    font-size: 0.82rem;
}

.parts-scope-panel {
    background:
        radial-gradient(circle at top right, rgba(45, 140, 255, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(14, 23, 35, 0.98) 0%, rgba(11, 20, 30, 0.98) 100%);
}

.parts-scope-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.parts-scope-card {
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.96) 0%, rgba(11, 20, 30, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    padding: 1rem 1.05rem;
}

.parts-scope-card span {
    color: var(--shell-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.parts-scope-card strong {
    color: #f8fbff;
    font-size: 1.02rem;
}

.parts-scope-card small {
    color: var(--shell-muted);
    font-size: 0.84rem;
}

.parts-discrepancy-note {
    background: linear-gradient(180deg, rgba(14, 27, 39, 0.94) 0%, rgba(11, 22, 32, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    color: #e6edf3;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
}

.parts-discrepancy-table td {
    vertical-align: top;
}

.parts-discrepancy-table.table {
    color: #e7eef5;
}

.parts-discrepancy-table.table > :not(caption) > * > * {
    background: rgba(11, 20, 30, 0.98);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.parts-discrepancy-notes {
    max-width: 28rem;
    min-width: 16rem;
    white-space: normal;
}

.parts-discrepancy-form {
    display: grid;
    gap: 0.65rem;
    min-width: 15rem;
}

.parts-discrepancy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.parts-movement-chart {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    min-height: 300px;
}

.parts-movement-bucket {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.parts-movement-bars {
    align-items: end;
    display: flex;
    flex: 1 1 auto;
    gap: 0.45rem;
    justify-content: center;
    margin-top: auto;
    min-height: 210px;
}

.parts-movement-bar {
    align-items: flex-start;
    border-radius: 20px 20px 12px 12px;
    color: #fff;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.55rem 0.3rem;
    text-align: center;
    width: min(36px, 100%);
}

.parts-movement-bar-in {
    background: linear-gradient(180deg, #3b88b5 0%, #0b4d73 100%);
}

.parts-movement-bar-out {
    background: linear-gradient(180deg, #e54e74 0%, #b01638 100%);
}

.parts-movement-net {
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    margin: 0 auto;
    padding: 0.2rem 0.55rem;
}

.parts-movement-net.is-positive {
    background: var(--shell-success-soft);
    color: var(--shell-success);
}

.parts-movement-net.is-negative {
    background: var(--shell-danger-soft);
    color: var(--shell-danger);
}

.movement-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.movement-legend-item {
    align-items: center;
    color: var(--shell-text);
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.45rem;
}

.movement-swatch {
    border-radius: 999px;
    display: inline-block;
    height: 0.8rem;
    width: 0.8rem;
}

.movement-swatch-in {
    background: linear-gradient(180deg, #3b88b5 0%, #0b4d73 100%);
}

.movement-swatch-out {
    background: linear-gradient(180deg, #e54e74 0%, #b01638 100%);
}

.parts-tracker-bar-label {
    color: var(--shell-muted);
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: center;
}

.parts-spotlight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.parts-spotlight-card {
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.98) 0%, rgba(11, 20, 30, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(3, 8, 15, 0.34);
    display: grid;
    gap: 0.95rem;
    padding: 1.2rem;
}

.parts-spotlight-card.is-critical {
    background:
        radial-gradient(circle at top right, rgba(229, 78, 116, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(26, 18, 24, 0.98) 0%, rgba(17, 15, 22, 0.98) 100%);
}

.parts-spotlight-card.is-warning {
    background:
        radial-gradient(circle at top right, rgba(240, 188, 67, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(28, 23, 17, 0.98) 0%, rgba(18, 17, 14, 0.98) 100%);
}

.parts-spotlight-card.is-active {
    background:
        radial-gradient(circle at top right, rgba(59, 136, 181, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(13, 23, 34, 0.98) 0%, rgba(10, 19, 29, 0.98) 100%);
}

.parts-spotlight-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.parts-spotlight-head h3 {
    margin: 0;
}

.parts-spotlight-total {
    background: var(--shell-accent-soft);
    border-radius: 999px;
    color: var(--shell-accent);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}

.parts-spotlight-metrics {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    padding: 0.85rem;
}

.parts-spotlight-metric {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.parts-spotlight-metrics dt,
.parts-spotlight-metrics dd {
    margin: 0;
}

.parts-spotlight-metrics dt {
    color: var(--shell-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.parts-spotlight-metrics dd {
    font-size: 1.2rem;
    font-weight: 800;
}

.parts-coverage-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem 0.9rem;
}

.parts-coverage-head {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.parts-coverage-head span {
    color: var(--shell-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.parts-coverage-head strong {
    font-size: 0.9rem;
}

.parts-coverage-track {
    background: rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    height: 0.7rem;
    overflow: hidden;
    position: relative;
}

.parts-coverage-fill {
    border-radius: 999px;
    display: block;
    height: 100%;
    min-width: 0.7rem;
}

.parts-coverage-fill.is-critical {
    background: linear-gradient(90deg, #c2183a 0%, #e54e74 100%);
}

.parts-coverage-fill.is-warning {
    background: linear-gradient(90deg, #d99517 0%, #f0bc43 100%);
}

.parts-coverage-fill.is-healthy {
    background: linear-gradient(90deg, #0c7b58 0%, #2fa67e 100%);
}

.parts-coverage-meta {
    color: var(--shell-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.5rem 1rem;
    justify-content: space-between;
}

.parts-health-pill {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}

.parts-health-pill.is-critical {
    background: var(--shell-danger-soft);
    color: var(--shell-danger);
}

.parts-health-pill.is-warning {
    background: rgba(236, 181, 44, 0.14);
    color: #936000;
}

.parts-health-pill.is-healthy {
    background: var(--shell-success-soft);
    color: var(--shell-success);
}

.parts-spotlight-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.parts-spotlight-ribbon span,
.parts-rollup-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 999px;
    color: rgba(226, 232, 240, 0.94);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
}

.parts-asset-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.parts-asset-card {
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.98) 0%, rgba(11, 20, 30, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(3, 8, 15, 0.34);
    color: #e6edf3;
    display: grid;
    gap: 0.85rem;
    padding: 1.2rem;
}

.parts-asset-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.parts-asset-head h3 {
    margin: 0;
}

.parts-asset-total {
    background: linear-gradient(145deg, #0f678f 0%, #0b4d73 100%);
    border-radius: 999px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}

.parts-asset-part-list {
    display: grid;
    gap: 0.7rem;
}

.parts-asset-part-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
}

.quote-builder-section {
    margin-top: 1.25rem;
}

.quote-rate-callout {
    align-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
}

.quote-rate-callout strong {
    color: #fff;
    font-size: 1.15rem;
}

.quote-line-pricing {
    min-width: 13rem;
}

.quote-line-pricing span {
    color: var(--shell-muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.quote-line-pricing strong {
    color: #fff;
}

.quote-part-search-shell {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.quote-part-search-results {
    display: grid;
    gap: 0.55rem;
}

.quote-part-search-result {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    color: #e9f0f6;
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    text-align: left;
}

.quote-part-search-result span {
    color: rgba(210, 221, 231, 0.72);
    font-size: 0.85rem;
}

.parts-asset-part-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: right;
}

.movement-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.77rem;
    font-weight: 800;
    padding: 0.28rem 0.68rem;
}

.movement-pill-in {
    background: var(--shell-success-soft);
    color: var(--shell-success);
}

.movement-pill-out {
    background: var(--shell-danger-soft);
    color: var(--shell-danger);
}

.movement-pill-soft {
    background: rgba(11, 77, 115, 0.08);
    color: var(--shell-accent);
}

.movement-qty {
    font-weight: 800;
}

.movement-qty-in {
    color: var(--shell-success);
}

.movement-qty-out {
    color: var(--shell-danger);
}

.movement-qty-soft {
    color: var(--shell-accent);
}

@media (max-width: 900px) {
    .intelligence-asset-selector-form {
        grid-template-columns: 1fr;
    }

    .intelligence-asset-selector-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .app-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .shell-nav {
        display: block;
        order: -1;
    }

    .shell-nav-toggle {
        align-items: center;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--shell-border);
        border-radius: 18px;
        box-shadow: var(--shell-shadow-soft);
        color: var(--shell-text);
        cursor: pointer;
        display: flex;
        font-weight: 800;
        justify-content: space-between;
        list-style: none;
        padding: 0.95rem 1rem;
    }

    .shell-nav-toggle-icon {
        color: var(--shell-accent);
        font-size: 0.85rem;
        transition: transform 0.18s ease;
    }

    .shell-nav[open] .shell-nav-toggle {
        background: var(--shell-panel-strong);
        border-color: rgba(11, 77, 115, 0.18);
    }

    .shell-nav[open] .shell-nav-toggle-icon {
        transform: rotate(180deg);
    }

    .shell-nav > .sidebar {
        display: none;
        margin-top: 0.8rem;
    }

    .shell-nav[open] > .sidebar {
        display: block;
    }

    .sidebar {
        box-shadow: var(--shell-shadow-soft);
        max-height: calc(100vh - 10rem);
        overflow: auto;
        position: static;
    }

    .jobs-filter {
        grid-template-columns: 1fr;
    }

    .page-header-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .shell-context-head {
        flex-direction: column;
    }

    .directory-filter {
        grid-template-columns: 1fr;
    }

    .trend-chart-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .trend-legend {
        justify-content: flex-start;
    }

    .job-parts-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-part-row {
        grid-template-columns: 1fr;
    }

    .job-part-actions {
        justify-content: flex-start;
    }

    .job-file-upload-form {
        grid-template-columns: 1fr;
    }

    .job-file-item,
    .job-file-actions {
        flex-direction: column;
    }

    .parts-order-header {
        flex-direction: column;
    }

    .parts-order-line-grid {
        grid-template-columns: 1fr;
    }

    .parts-order-line-actions {
        justify-content: flex-start;
    }

    .history-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-stage {
        grid-template-columns: 1fr;
    }

    .public-shell-auth {
        padding: 1rem;
    }

    .topbar .container {
        align-items: center !important;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }

    .topbar-actions {
        margin-left: auto;
        flex-wrap: wrap;
    }

    .dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tech-tracker-filter {
        grid-template-columns: 1fr;
    }

    .translation-row {
        grid-template-columns: 1fr;
    }

    .tech-tracker-actions {
        flex-wrap: wrap;
    }

    .tech-card-head,
    .tech-job-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .parts-tracker-hero {
        grid-template-columns: 1fr;
    }

    .parts-tracker-filter {
        grid-template-columns: 1fr;
    }

    .parts-tracker-actions {
        flex-wrap: wrap;
    }

    .parts-coverage-head,
    .parts-coverage-meta,
    .parts-spotlight-head,
    .parts-asset-head,
    .parts-asset-part-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .parts-asset-part-meta {
        align-items: flex-start;
        text-align: left;
    }

    .parts-spotlight-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trend-chart-shell {
        padding: 1rem;
    }

    .trend-axis-labels {
        padding-left: 2.5rem;
        padding-right: 0.6rem;
    }
}

@media (max-width: 640px) {
    .topbar .container {
        padding-bottom: 0.8rem !important;
        padding-top: 0.8rem !important;
    }

    .brand,
    .brand-lockup {
        min-width: 0;
    }

    .brand {
        gap: 0.65rem;
        margin-right: 0;
    }

    .brand-logo {
        border-radius: 14px;
        height: 2.7rem;
        padding: 0.2rem 0.4rem;
    }

    .brand-copy strong {
        font-size: 0.96rem;
        letter-spacing: 0.04em;
    }

    .subtitle {
        display: none;
    }

    .topbar-actions {
        justify-content: space-between;
        width: 100%;
    }

    .topbar-user {
        max-width: 9.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-menu-summary,
    .topbar-icon-button {
        min-height: 2.35rem;
        padding: 0.45rem 0.75rem;
    }

    .topbar-icon-button {
        min-width: 2.35rem;
    }

    .topbar-menu-dropdown {
        min-width: min(13rem, calc(100vw - 2rem));
    }

    .app-shell {
        gap: 0.85rem;
        padding: 0.85rem;
    }

    .hero-card,
    .panel-card,
    .auth-card {
        border-radius: 22px;
        padding: 1.15rem;
    }

    .auth-card {
        margin: 1rem auto;
    }

    .public-shell-auth {
        padding: 0.75rem;
    }

    .auth-stage {
        gap: 0.85rem;
    }

    .auth-brand-panel {
        border-radius: 24px;
        gap: 1rem;
        padding: 1.15rem;
    }

    .auth-brand-mark {
        max-width: 280px;
        padding: 0;
    }

    .auth-brand-mark img {
        height: 3.4rem;
        max-height: none;
        width: auto;
    }

    .parts-tracker-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .auth-brand-panel h1 {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
        line-height: 1.08;
        max-width: none;
    }

    .auth-brand-panel p {
        font-size: 0.92rem;
    }

    .auth-feature-grid {
        gap: 0.7rem;
        grid-template-columns: 1fr;
    }

    .auth-feature-grid article {
        border-radius: 16px;
        gap: 0.3rem;
        padding: 0.8rem;
    }

    .auth-feature-grid strong,
    .auth-feature-grid span {
        font-size: 0.84rem;
    }

    .auth-card-head h2,
    .page-header-bar h1,
    .hero-card h1,
    .panel-card h1 {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        line-height: 1.12;
    }

    .page-header-bar {
        gap: 0.65rem;
    }

    .dashboard-tile {
        min-height: 142px;
        padding: 1rem;
    }

    .dashboard-tile__count {
        font-size: 2.2rem;
    }

    .table-responsive {
        font-size: 0.92rem;
    }

    .trend-chart-header {
        gap: 0.75rem;
    }

    .trend-axis-labels {
        font-size: 0.72rem;
        margin-top: 0.15rem;
        padding-left: 1.85rem;
        padding-right: 0.3rem;
    }

    .trend-axis-labels span:nth-child(even) {
        display: none;
    }

    .parts-summary-card strong {
        font-size: 1.7rem;
    }

    .parts-discrepancy-notes {
        max-width: none;
        min-width: 12rem;
    }

    .parts-discrepancy-form {
        min-width: 12rem;
    }

    .parts-movement-chart {
        grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
        min-height: 240px;
    }

    .parts-spotlight-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .public-shell-auth,
    .app-shell {
        padding: 0.65rem;
    }

    .hero-card,
    .panel-card,
    .auth-card {
        border-radius: 18px;
        padding: 1rem;
    }

    .auth-brand-panel {
        border-radius: 20px;
        padding: 1rem;
    }

    .auth-brand-mark {
        max-width: 180px;
        padding: 0.55rem 0.7rem;
    }

    .auth-brand-mark img {
        max-height: 2.15rem;
    }

    .auth-brand-panel h1 {
        font-size: 1.4rem;
    }

    .auth-brand-panel p {
        font-size: 0.88rem;
    }

    .auth-feature-grid article {
        padding: 0.72rem;
    }

    .auth-feature-grid span {
        font-size: 0.8rem;
    }

    .topbar-menu-summary,
    .topbar-icon-button {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .page-header-bar h1,
    .hero-card h1,
    .panel-card h1,
    .auth-card-head h2 {
        font-size: 1.28rem;
    }
}

.notification-center {
    position: relative;
}

.notification-bell {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.notification-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #c43d24;
    color: #fff;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    min-width: 24rem;
    max-width: 30rem;
}

.notification-dropdown-head,
.notification-dropdown-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.notification-mini-list,
.notification-list {
    display: grid;
    gap: 0.85rem;
}

.notification-mini-item,
.notification-row {
    border: 1px solid rgba(8, 43, 60, 0.12);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.75);
}

.notification-mini-item.is-unread,
.notification-row.is-unread {
    border-color: rgba(196, 61, 36, 0.35);
    box-shadow: 0 10px 24px rgba(8, 43, 60, 0.06);
}

.notification-mini-copy,
.notification-row-copy {
    display: grid;
    gap: 0.3rem;
}

.notification-mini-actions,
.notification-row-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.notification-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.notification-row h2 {
    font-size: 1.05rem;
    margin: 0;
}

.notification-row p {
    margin: 0;
}

.notification-row-meta {
    color: rgba(8, 43, 60, 0.65);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.app-technician .sidebar {
    max-width: 18rem;
}

body.app-technician .shell-nav-toggle {
    background: linear-gradient(135deg, rgba(8, 54, 82, 0.92), rgba(12, 78, 106, 0.9));
}

.tech-hero {
    margin-bottom: 1.25rem;
}

.tech-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    margin-bottom: 1.25rem;
}

.tech-summary-card {
    min-height: 10rem;
}

.tech-summary-card-danger {
    border: 1px solid rgba(194, 24, 58, 0.15);
    box-shadow: inset 0 0 0 1px rgba(194, 24, 58, 0.08);
}

.tech-card-stack,
.tech-history-stack {
    display: grid;
    gap: 0.9rem;
}

.tech-job-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(8, 43, 60, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(8, 43, 60, 0.08);
    color: inherit;
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    text-decoration: none;
}

.tech-job-card:hover,
.tech-job-card:focus {
    border-color: rgba(11, 77, 115, 0.24);
    transform: translateY(-1px);
}

.tech-job-card-urgent {
    border-color: rgba(194, 24, 58, 0.24);
    box-shadow: 0 16px 36px rgba(194, 24, 58, 0.1);
}

.tech-job-card-top,
.tech-history-head,
.tech-quick-actions,
.tech-parts-row {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
}

.tech-job-card-body,
.tech-parts-block,
.tech-upload-form,
.tech-inline-upload {
    display: grid;
    gap: 0.6rem;
}

.tech-job-card-headline {
    font-weight: 700;
}

.tech-job-card-notes {
    color: rgba(8, 43, 60, 0.82);
}

.tech-job-card-meta {
    color: rgba(8, 43, 60, 0.72);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.92rem;
}

.tech-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    margin-bottom: 1rem;
}

.tech-detail-list {
    display: grid;
    gap: 0.45rem 0.9rem;
    grid-template-columns: minmax(7rem, 9rem) 1fr;
    margin: 0;
}

.tech-detail-list dt {
    color: rgba(8, 43, 60, 0.72);
    font-weight: 700;
}

.tech-detail-list dd {
    margin: 0;
}

.tech-form-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.tech-form-grid-span {
    grid-column: 1 / -1;
}

.tech-touch-button,
.tech-touch-input {
    min-height: 3.25rem;
}

.tech-submit-button {
    width: 100%;
}

.tech-parts-row {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) 7rem 8rem;
}

.tech-parts-check {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    min-height: 3.25rem;
}

.tech-history-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(8, 43, 60, 0.08);
    border-radius: 20px;
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
}

.tech-attachment-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 900px) {
    body.app-technician .app-shell {
        display: block;
    }

    .tech-parts-row {
        grid-template-columns: 1fr;
    }

    .tech-quick-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tech-quick-actions form,
    .tech-quick-actions .btn {
        width: 100%;
    }
}

body {
    --shell-bg-top: #081018;
    --shell-bg-bottom: #0e1721;
    --shell-text: #e6edf3;
    --shell-muted: #94a6b8;
    --shell-border: rgba(148, 163, 184, 0.16);
    --shell-panel: rgba(12, 20, 29, 0.88);
    --shell-panel-strong: rgba(16, 25, 36, 0.96);
    --shell-panel-soft: rgba(15, 23, 35, 0.84);
    --shell-accent: #2d8cff;
    --shell-accent-soft: rgba(45, 140, 255, 0.14);
    --shell-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
    --shell-shadow-soft: 0 16px 34px rgba(0, 0, 0, 0.2);
    background:
        radial-gradient(circle at top left, rgba(45, 140, 255, 0.11), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(45, 140, 255, 0.08), transparent 16%),
        linear-gradient(180deg, var(--shell-bg-top) 0%, var(--shell-bg-bottom) 100%);
    background-attachment: fixed, fixed, fixed;
    background-size: auto, auto, cover;
}

.app-header {
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar {
    background: rgba(7, 12, 18, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.topbar::after {
    background: linear-gradient(90deg, rgba(45, 140, 255, 0.45), rgba(45, 140, 255, 0));
    opacity: 0.7;
}

.topbar .container,
.app-header-context .container {
    max-width: 1680px;
}

.brand {
    gap: 0.75rem;
}

.brand-logo {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    height: 2rem;
    padding: 0;
}

.brand-copy {
    gap: 0.2rem;
}

.brand-copy strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.subtitle {
    color: #9fb2c4;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
}

.topbar-menu-summary,
.topbar-icon-button {
    background: rgba(18, 28, 40, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    color: #dbe7f3;
}

.topbar-menu[open] .topbar-menu-summary,
.topbar-menu[open] .topbar-icon-button,
.topbar-menu-summary:hover,
.topbar-icon-button:hover {
    background: rgba(23, 36, 50, 0.98);
    border-color: rgba(45, 140, 255, 0.24);
    color: #fff;
}

.topbar-menu-dropdown {
    background: rgba(10, 18, 27, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

.topbar-menu-dropdown a {
    color: #d6e2ee;
}

.topbar-menu-dropdown a:hover {
    background: rgba(45, 140, 255, 0.12);
    color: #fff;
}

.app-header-context {
    background: rgba(9, 15, 23, 0.88);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.shell-context-bar {
    align-items: start;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.55rem 0;
}

.shell-context-bar__summary {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.shell-context-bar__mobile-summary {
    display: none;
}

.shell-context-bar__label {
    color: #7fa6d3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.shell-context-bar__summary small {
    color: var(--shell-muted);
}

.shell-context-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.shell-context-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    color: #dbe6f2;
    display: inline-flex;
    gap: 0.45rem;
    min-height: 1.85rem;
    max-width: 100%;
    padding: 0.28rem 0.68rem;
}

.shell-context-pill strong {
    color: #7fa6d3;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shell-context-pill.is-selected {
    background: rgba(45, 140, 255, 0.12);
    border-color: rgba(45, 140, 255, 0.24);
    color: #fff;
}

.shell-context-mobile-chip {
    align-items: center;
    background: rgba(45, 140, 255, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    color: #dbeafe;
    display: inline-flex;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.16rem 0.5rem;
    text-transform: uppercase;
}

.shell-context-mobile-text {
    color: #e6edf3;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shell-context-editor {
    min-width: 0;
}

.shell-context-editor summary {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: #e6edf3;
    cursor: pointer;
    display: inline-flex;
    gap: 0.6rem;
    justify-content: space-between;
    list-style: none;
    min-height: 2.1rem;
    max-width: 100%;
    padding: 0.48rem 0.8rem;
}

.shell-context-editor summary::-webkit-details-marker {
    display: none;
}

.shell-context-inline-form {
    align-items: end;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    margin-top: 0.75rem;
    min-width: min(100%, 940px);
}

.shell-context-field {
    display: grid;
    gap: 0.28rem;
}

.shell-context-field span {
    color: #8ba0b3;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.shell-context-inline-form .form-select {
    background-color: rgba(17, 27, 38, 0.96);
    border-color: rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    color: #e6edf3;
    min-height: 2.35rem;
}

.shell-context-inline-form .form-select:focus {
    border-color: rgba(45, 140, 255, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(45, 140, 255, 0.16);
}

.shell-context-inline-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.shell-context-inline-hint {
    color: #8ea1b4;
    font-size: 0.76rem;
}

@media (max-width: 1200px) {
    .shell-context-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .shell-context-editor summary {
        width: 100%;
    }

    .shell-context-inline-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .topbar .container {
        gap: 0.65rem;
        padding-bottom: 0.8rem !important;
        padding-top: 0.8rem !important;
    }

    .brand {
        gap: 0.6rem;
    }

    .brand-logo {
        max-height: 1.8rem;
    }

    .topbar-actions {
        gap: 0.4rem;
    }

    .app-header-context .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .shell-context-bar {
        gap: 0.45rem;
        padding: 0.22rem 0 0.08rem;
    }

    .shell-context-bar__summary {
        gap: 0.3rem;
    }

    .shell-context-bar__label,
    .shell-context-pills--desktop {
        display: none;
    }

    .shell-context-bar__mobile-summary {
        align-items: center;
        display: flex;
        gap: 0.45rem;
        min-width: 0;
    }

    .shell-context-mobile-text,
    .shell-context-editor summary,
    .shell-context-field span {
        white-space: nowrap;
    }

    .shell-context-editor summary {
        font-size: 0.84rem;
        padding: 0.4rem 0.68rem;
    }

    .shell-context-editor summary .table-subtle {
        display: none;
    }

    .shell-context-inline-form {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-top: 0.6rem;
    }

    .shell-context-inline-form .form-select {
        min-height: 2.6rem;
    }

    .content-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.side-link {
    align-items: flex-start;
    display: grid;
    gap: 0.18rem 0.8rem;
    grid-template-columns: auto 1fr;
}

.side-link > small {
    grid-column: 2;
}

.side-link-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    color: #7fa6d3;
    display: inline-flex;
    font-size: 0.64rem;
    font-weight: 800;
    height: 1.8rem;
    justify-content: center;
    letter-spacing: 0.08em;
    min-width: 1.8rem;
    padding: 0 0.3rem;
    text-transform: uppercase;
}

.sidebar {
    background: rgba(9, 15, 23, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.sidebar-section + .sidebar-section,
.sidebar-rollup {
    border-top-color: rgba(148, 163, 184, 0.08);
}

.sidebar-title {
    color: #7fa6d3;
}

.side-link {
    border: 1px solid transparent;
    border-radius: 12px;
    color: #dbe6f2;
    padding: 0.72rem 0.85rem;
}

.side-link:hover {
    background: rgba(45, 140, 255, 0.1);
    border-color: rgba(45, 140, 255, 0.16);
    color: #fff;
    transform: translateX(0);
}

.side-link.is-active {
    background: linear-gradient(180deg, rgba(45, 140, 255, 0.16) 0%, rgba(45, 140, 255, 0.08) 100%);
    border-color: rgba(45, 140, 255, 0.26);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(45, 140, 255, 0.08);
}

.side-link.is-active .side-link-icon {
    background: rgba(45, 140, 255, 0.18);
    border-color: rgba(45, 140, 255, 0.28);
    color: #fff;
}

.side-link small {
    color: #8ea1b4;
}

.admin-subgroup {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    margin-top: 0.45rem;
    padding-top: 0.45rem;
}

.admin-subgroup summary {
    align-items: center;
    color: #c8d5e2;
    cursor: pointer;
    display: flex;
    font-size: 0.84rem;
    font-weight: 700;
    gap: 0.55rem;
    list-style: none;
    padding: 0.5rem 0.2rem;
}

.admin-subgroup summary::-webkit-details-marker {
    display: none;
}

.admin-subgroup[open] summary {
    color: #fff;
}

.admin-subgroup-links {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.2rem;
}

.admin-overview-link {
    margin-bottom: 0.35rem;
}

.admin-hub-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-hub-card,
.admin-focus-card,
.empty-state-card {
    background: linear-gradient(180deg, rgba(14, 23, 35, 0.96) 0%, rgba(9, 16, 25, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.34);
}

.admin-hub-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.admin-hub-card__header {
    align-items: start;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: auto 1fr;
}

.admin-hub-card__icon {
    align-items: center;
    background: rgba(11, 77, 115, 0.08);
    border: 1px solid rgba(11, 77, 115, 0.14);
    border-radius: 14px;
    color: var(--shell-accent);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.admin-hub-card__header h2,
.admin-focus-card h2,
.empty-state-card h2 {
    margin: 0;
}

.admin-hub-card__header p,
.admin-focus-card p,
.empty-state-card p {
    color: #9fb2c6;
    margin: 0.25rem 0 0;
}

.admin-hub-card__header h2,
.admin-focus-card h2,
.empty-state-card h2,
.empty-state-card h3 {
    color: #f8fafc;
}

.admin-hub-card__body {
    display: grid;
    gap: 0.7rem;
}

.admin-hub-link {
    background: rgba(15, 23, 35, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    color: #e6edf3;
    display: block;
    padding: 0.9rem 1rem;
    text-decoration: none;
}

.admin-hub-link:hover {
    border-color: rgba(11, 77, 115, 0.25);
    box-shadow: 0 10px 24px rgba(11, 35, 56, 0.08);
    transform: translateY(-1px);
}

.admin-hub-link strong {
    color: var(--shell-heading);
    display: block;
    margin-bottom: 0.2rem;
}

.admin-hub-link span {
    color: var(--shell-muted);
    display: block;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-hub-card__actions {
    display: flex;
    justify-content: flex-start;
}

.admin-inline-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.admin-inline-anchors a {
    background: rgba(11, 77, 115, 0.08);
    border-radius: 999px;
    color: var(--shell-accent);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
}

.admin-focus-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-focus-card,
.empty-state-card {
    padding: 1.2rem;
}

.admin-focus-card__eyebrow {
    color: var(--shell-muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.content-shell > .alert {
    margin-bottom: 1rem;
}

.shell-page-header {
    background: linear-gradient(180deg, rgba(13, 21, 31, 0.96) 0%, rgba(10, 17, 25, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
}

.shell-breadcrumbs {
    align-items: center;
    color: #8da1b3;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    gap: 0.45rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.shell-breadcrumb-item:last-child {
    color: #dce7f1;
}

.shell-breadcrumb-item {
    text-decoration: none;
}

.shell-breadcrumb-item.is-current {
    color: #fff;
}

.shell-breadcrumb-separator {
    color: rgba(141, 161, 179, 0.65);
}

.shell-page-header .page-header-bar h1 {
    color: #fff;
    margin-bottom: 0.2rem;
}

.shell-page-header .hero-meta {
    color: var(--shell-muted);
}

.shell-page-header__section {
    color: #7fa6d3;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.panel-card-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    margin-bottom: 1rem;
}

.panel-card-summary::-webkit-details-marker {
    display: none;
}

.page-actions-bar {
    display: flex;
    justify-content: flex-end;
}

.command-centre-hero {
    background: linear-gradient(135deg, rgba(15, 24, 35, 0.96) 0%, rgba(7, 16, 26, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.command-centre-hero__eyebrow {
    color: #7fa6d3;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.command-centre-hero__intro h2 {
    color: #fff;
    margin-bottom: 0.4rem;
}

.command-centre-hero__intro p {
    color: var(--shell-muted);
    margin: 0;
}

.command-centre-action-bar,
.command-risk-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.command-action-tile,
.command-risk-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    display: grid;
    gap: 0.28rem;
    padding: 1rem;
}

.command-action-tile span,
.command-risk-card span {
    color: #7fa6d3;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.command-action-tile strong,
.command-risk-card strong {
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
}

.command-action-tile small,
.command-risk-card small {
    color: var(--shell-muted);
}

.command-action-tile.is-critical,
.command-risk-card.is-critical {
    border-color: rgba(239, 68, 68, 0.22);
}

.command-action-tile.is-warning,
.command-risk-card.is-warning {
    border-color: rgba(245, 158, 11, 0.22);
}

.command-action-tile.is-positive,
.command-risk-card.is-positive {
    border-color: rgba(16, 185, 129, 0.22);
}

.priority-indicator {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.3rem 0.7rem;
}

.priority-indicator.is-critical {
    background: rgba(239, 68, 68, 0.12);
    color: #fb7185;
}

.priority-indicator.is-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.priority-indicator.is-positive {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.hero-card,
.panel-card,
.auth-card {
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.94) 0%, rgba(12, 20, 29, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.12);
    border-radius: 24px;
}

.hero-card::before,
.panel-card::before,
.auth-card::before {
    background: linear-gradient(90deg, rgba(45, 140, 255, 0.42), rgba(45, 140, 255, 0));
}

.table-subtle,
.hero-card p,
.panel-card p,
.panel-card li,
.panel-card dt,
.panel-card dd {
    color: var(--shell-muted);
}

.shell-stat-value,
.panel-card h1,
.panel-card h2,
.panel-card h3,
.hero-card h1,
.hero-card h2,
.hero-card h3 {
    color: #fff;
}

.table-responsive {
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
}

.table {
    color: #dce7f1;
}

.table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: rgba(148, 163, 184, 0.08);
}

.auth-brand-panel {
    background:
        radial-gradient(circle at top left, rgba(45, 140, 255, 0.16), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(45, 140, 255, 0.12), transparent 22%),
        linear-gradient(145deg, rgba(7, 12, 18, 0.98) 0%, rgba(12, 21, 30, 0.98) 58%, rgba(13, 24, 36, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.12);
}

.auth-brand-panel::after {
    background:
        radial-gradient(circle at 16% 24%, rgba(45, 140, 255, 0.15), transparent 18%),
        radial-gradient(circle at 84% 74%, rgba(45, 140, 255, 0.1), transparent 18%);
    opacity: 1;
}

.auth-brand-mark {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 420px;
    padding: 0;
}

.auth-brand-mark img {
    height: 4.5rem;
    width: auto;
}

.auth-feature-grid article {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.intelligence-filter-note {
    margin-top: 0.25rem;
}

.intelligence-trend,
.intelligence-severity {
    border-radius: 10px;
    display: inline-flex;
    line-height: 1.2;
    padding: 0.34rem 0.62rem;
}

.notification-center .notification-bell {
    font-weight: 700;
}

.shell-context-selector {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.shell-context-selector__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shell-context-chip,
.signal-pill {
    align-items: center;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: #dce7f1;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.25rem;
    line-height: 1.2;
    padding: 0.42rem 0.78rem;
    white-space: nowrap;
}

.shell-context-chip.is-selected,
.signal-pill-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fbbf24;
}

.signal-pill-critical {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.signal-pill-healthy,
.shell-context-chip {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.22);
    color: #86efac;
}

.shell-context-selector__form {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: min(100%, 60rem);
}

.shell-context-selector__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.shell-context-selector__field span {
    color: var(--shell-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.decision-section-heading {
    align-items: start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.decision-table tbody tr td {
    vertical-align: top;
}

.decision-row {
    transition: background-color 120ms ease, transform 120ms ease;
}

.decision-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.decision-row-critical {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), transparent 35%);
}

.decision-row-warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), transparent 35%);
}

.decision-row-healthy {
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.06), transparent 35%);
}

.decision-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.decision-metric {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.45rem;
}

.decision-hero,
.decision-summary-card {
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.98), rgba(12, 20, 29, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    margin-bottom: 1.5rem;
    padding: 1.4rem 1.5rem;
}

.decision-hero-critical,
.decision-summary-card-critical {
    box-shadow: inset 0 1px 0 rgba(239, 68, 68, 0.18);
}

.decision-hero-warning,
.decision-summary-card-warning {
    box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.18);
}

.decision-hero-healthy,
.decision-summary-card-healthy {
    box-shadow: inset 0 1px 0 rgba(52, 211, 153, 0.18);
}

.decision-hero__main,
.decision-summary-card__header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.decision-hero__grid,
.decision-summary-card__grid,
.recommended-action-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.decision-hero__label {
    color: var(--shell-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.recommended-action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
    padding: 1rem;
}

.recommended-action-card p {
    min-height: 3rem;
}

.job-timeline {
    display: grid;
    gap: 0.85rem;
}

.job-timeline-step {
    align-items: start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 18px;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 0.85rem 1fr;
    padding: 1rem;
}

.job-timeline-step__marker {
    border-radius: 999px;
    height: 0.85rem;
    margin-top: 0.3rem;
    width: 0.85rem;
}

.job-timeline-step-critical .job-timeline-step__marker {
    background: #ef4444;
}

.job-timeline-step-warning .job-timeline-step__marker {
    background: #f59e0b;
}

.job-timeline-step-healthy .job-timeline-step__marker {
    background: #34d399;
}

.job-timeline-step__top {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

@media (max-width: 1200px) {
    .shell-context-selector {
        align-items: stretch;
        flex-direction: column;
    }

    .shell-context-selector__form,
    .decision-hero__grid,
    .decision-summary-card__grid,
    .recommended-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .shell-context-selector__form,
    .decision-hero__grid,
    .decision-summary-card__grid,
    .recommended-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-copy strong {
        font-size: 0.9rem;
    }

    .subtitle {
        font-size: 0.64rem;
    }

    .decision-hero__main,
    .decision-summary-card__header,
    .decision-section-heading,
    .job-timeline-step__top {
        align-items: stretch;
        flex-direction: column;
    }
}

body.app-live-operations {
    overflow: hidden;
}

body.app-live-operations .content-shell {
    overflow: hidden;
    padding-bottom: 0;
}

.live-operations-root {
    height: calc(100vh - 10.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.live-operations-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(82, 122, 153, 0.24);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(9, 19, 29, 0.94), rgba(12, 24, 35, 0.96));
}

.live-operations-kicker,
.live-panel-kicker {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(126, 179, 255, 0.88);
}

.live-operations-topbar__brand h1,
.live-panel-header h2 {
    margin: 0.2rem 0;
    font-size: 1.55rem;
}

.live-operations-topbar__brand p {
    margin: 0;
    color: rgba(205, 219, 230, 0.74);
}

.live-operations-topbar__status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.live-status-pill,
.live-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 122, 144, 0.28);
    background: rgba(14, 29, 41, 0.9);
    color: rgba(232, 240, 246, 0.9);
}

.live-status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #3ddc97;
    box-shadow: 0 0 0.8rem rgba(61, 220, 151, 0.5);
}

.live-operations-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.12fr 1.24fr 1fr;
    grid-template-rows: minmax(0, 1.6fr) minmax(0, 0.62fr) minmax(0, 0.92fr);
    grid-template-areas:
        "feed sites actions"
        "kpis kpis kpis"
        "timeline timeline assets";
}

.live-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(82, 122, 153, 0.22);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(8, 18, 28, 0.98), rgba(11, 22, 33, 0.98));
    box-shadow: 0 1.25rem 2.6rem rgba(0, 0, 0, 0.2);
}

.live-panel-feed { grid-area: feed; }
.live-panel-sites { grid-area: sites; }
.live-panel-actions { grid-area: actions; }
.live-panel-kpis { grid-area: kpis; }
.live-panel-timeline { grid-area: timeline; }
.live-panel-assets { grid-area: assets; }

.live-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.8rem;
    border-bottom: 1px solid rgba(88, 111, 129, 0.14);
}

.live-panel-body,
.live-kpi-strip {
    min-height: 0;
    overflow: auto;
    padding: 0.9rem 1rem 1rem;
}

.live-incident-feed,
.live-action-queue,
.live-timeline,
.live-risk-assets {
    display: grid;
    gap: 0.75rem;
}

.live-incident-card,
.live-action-card,
.live-site-tile,
.live-risk-asset,
.live-kpi-tile,
.live-timeline-item {
    border-radius: 0.95rem;
    border: 1px solid rgba(92, 116, 133, 0.16);
    background: rgba(15, 28, 39, 0.88);
    color: inherit;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.live-incident-card:hover,
.live-action-card:hover,
.live-site-tile:hover,
.live-kpi-tile:hover,
.live-timeline-item:hover,
.live-risk-asset:hover {
    transform: translateY(-1px);
    border-color: rgba(126, 179, 255, 0.32);
}

.live-incident-card {
    display: block;
    padding: 0.9rem 1rem;
}

.live-incident-card__head,
.live-timeline-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.live-incident-card__scope {
    margin-top: 0.35rem;
    color: rgba(207, 220, 232, 0.72);
    font-size: 0.88rem;
}

.live-incident-card p,
.live-action-card p,
.live-timeline-item p {
    margin: 0.45rem 0 0;
    color: rgba(225, 234, 240, 0.8);
    font-size: 0.92rem;
}

.live-site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.8rem;
}

.live-site-tile {
    text-align: left;
    padding: 0.95rem;
}

.live-site-tile strong,
.live-risk-asset strong,
.live-action-card strong,
.live-timeline-item strong,
.live-kpi-tile strong {
    display: block;
}

.live-site-tile span,
.live-risk-asset span,
.live-kpi-tile span {
    display: block;
    color: rgba(205, 218, 228, 0.72);
}

.live-site-tile small,
.live-risk-asset small,
.live-kpi-tile small {
    display: block;
    margin-top: 0.35rem;
    color: rgba(190, 205, 216, 0.64);
}

.live-site-tile.is-selected {
    border-color: rgba(126, 179, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(126, 179, 255, 0.28);
}

.live-site-tile.is-filter {
    border-style: dashed;
}

.live-action-card {
    padding: 0.95rem 1rem;
}

.live-action-card[data-live-nav],
.live-kpi-tile[href],
.live-timeline-item[href] {
    cursor: pointer;
}

.live-action-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.live-kpi-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.live-kpi-tile {
    padding: 0.8rem 0.95rem;
}

.live-kpi-tile strong {
    font-size: 1.35rem;
    margin-top: 0.2rem;
}

.live-timeline-item {
    padding: 0.9rem 1rem;
}

.live-timeline-item span {
    color: rgba(203, 218, 228, 0.68);
    font-size: 0.88rem;
    white-space: nowrap;
}

.live-risk-asset {
    display: block;
    padding: 0.9rem 1rem;
}

.is-critical {
    border-color: rgba(240, 59, 41, 0.45);
    background: linear-gradient(180deg, rgba(58, 17, 18, 0.86), rgba(36, 16, 18, 0.9));
}

.is-amber {
    border-color: rgba(224, 164, 56, 0.4);
    background: linear-gradient(180deg, rgba(54, 34, 12, 0.82), rgba(36, 24, 12, 0.9));
}

.is-yellow {
    border-color: rgba(214, 191, 69, 0.34);
    background: linear-gradient(180deg, rgba(51, 43, 12, 0.8), rgba(33, 29, 13, 0.88));
}

.is-healthy {
    border-color: rgba(61, 220, 151, 0.28);
    background: linear-gradient(180deg, rgba(12, 43, 30, 0.74), rgba(11, 29, 22, 0.88));
}

.is-pulse {
    animation: liveCriticalPulse 1.8s ease-in-out infinite;
}

.is-flash {
    animation: liveChangeFlash 0.9s ease;
}

@keyframes liveCriticalPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(240, 59, 41, 0); }
    50% { box-shadow: 0 0 1.2rem rgba(240, 59, 41, 0.28); }
}

@keyframes liveChangeFlash {
    0% { box-shadow: inset 0 0 0 1px rgba(126, 179, 255, 0.92), 0 0 1rem rgba(126, 179, 255, 0.24); }
    100% { box-shadow: none; }
}

@media (max-width: 1400px) {
    .live-operations-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(5, minmax(0, auto));
        grid-template-areas:
            "feed sites"
            "actions actions"
            "kpis kpis"
            "timeline timeline"
            "assets assets";
    }

    .live-kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.app-live-operations {
        overflow: auto;
    }

    .live-operations-root {
        height: auto;
    }

    .live-operations-grid {
        display: flex;
        flex-direction: column;
    }

    .live-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tech-tracker-hero-shell {
    background:
        radial-gradient(circle at top right, rgba(45, 140, 255, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(18, 109, 91, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(11, 19, 29, 0.96) 0%, rgba(15, 24, 35, 0.98) 100%);
    border: 1px solid rgba(84, 112, 134, 0.22);
}

.tech-tracker-hero-shell h1,
.tech-tracker-shift-panel h2 {
    color: #f5f9fc;
}

.tech-tracker-hero-shell p,
.tech-tracker-shift-panel p {
    color: rgba(210, 221, 231, 0.76);
}

.tech-tracker-hero-shell .form-label {
    color: rgba(210, 221, 231, 0.8);
}

.tech-tracker-shift-panel {
    background: linear-gradient(180deg, rgba(10, 18, 27, 0.98) 0%, rgba(13, 24, 35, 0.98) 100%);
    border: 1px solid rgba(84, 112, 134, 0.18);
}

.tech-tracker-shift-panel .dashboard-section-heading {
    margin-bottom: 1rem;
}

.tech-tracker-shift-panel .dashboard-section-heading p,
.tech-tracker-shift-panel .table-subtle {
    color: rgba(201, 214, 226, 0.72);
}

.tech-tracker-shift-panel .tech-card {
    background: linear-gradient(180deg, rgba(14, 25, 36, 0.98) 0%, rgba(18, 30, 42, 0.98) 100%);
    border-color: rgba(90, 116, 136, 0.22);
}

.tech-tracker-shift-panel .tech-card h3,
.tech-tracker-shift-panel .tech-job-top strong {
    color: #f8fbff;
}

.tech-tracker-shift-panel .tech-card-total {
    background: rgba(45, 140, 255, 0.16);
    border-color: rgba(45, 140, 255, 0.24);
    color: #c8e0ff;
}

.tech-tracker-shift-panel .tech-job-item {
    background: linear-gradient(180deg, rgba(18, 32, 46, 0.98) 0%, rgba(22, 37, 51, 0.98) 100%);
    border-color: rgba(99, 124, 144, 0.18);
    color: #edf4fa;
}

.tech-tracker-shift-panel .tech-job-item:hover {
    background: linear-gradient(180deg, rgba(21, 37, 53, 0.98) 0%, rgba(25, 42, 58, 0.98) 100%);
    border-color: rgba(126, 179, 255, 0.3);
    color: #ffffff;
}

.tech-tracker-shift-panel .tech-card .status-pill {
    background: rgba(107, 128, 148, 0.14);
    border: 1px solid rgba(107, 128, 148, 0.2);
    color: #dce8f3;
}

.tech-tracker-shift-panel .job-summary {
    color: rgba(231, 238, 244, 0.82);
}

.tech-tracker-screen {
    display: grid;
    gap: 1.25rem;
}

.tech-tracker-screen .tech-tracker-panel-card,
.tech-tracker-screen .tech-tracker-shift-panel,
.tech-tracker-screen .hero-card.tech-tracker-hero-shell {
    box-shadow: 0 18px 42px rgba(4, 10, 18, 0.32);
}

.tech-tracker-screen .tech-tracker-panel-card {
    background:
        radial-gradient(circle at top right, rgba(45, 140, 255, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(9, 16, 24, 0.98) 0%, rgba(13, 22, 32, 0.98) 100%);
    border: 1px solid rgba(84, 112, 134, 0.18);
}

.tech-tracker-screen .tech-tracker-panel-card p,
.tech-tracker-screen .tech-tracker-panel-card .table-subtle {
    color: rgba(213, 223, 233, 0.76);
}

.tech-tracker-screen .tech-tracker-panel-card .alert {
    background: linear-gradient(180deg, rgba(77, 22, 24, 0.96) 0%, rgba(57, 18, 21, 0.98) 100%);
    border-color: rgba(219, 79, 79, 0.32);
    color: #ffe2e2;
}

.tech-tracker-screen .tech-tracker-filter .form-control {
    background: rgba(8, 14, 22, 0.96);
    border-color: rgba(86, 110, 129, 0.28);
    color: #f4f8fc;
}

.tech-tracker-screen .tech-tracker-filter .form-control:focus {
    background: rgba(8, 14, 22, 0.98);
    border-color: rgba(126, 179, 255, 0.58);
    box-shadow: 0 0 0 0.18rem rgba(45, 140, 255, 0.16);
    color: #ffffff;
}

.tech-tracker-screen .tech-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 30px rgba(3, 8, 14, 0.28);
}

.tech-tracker-screen .tech-card .table-subtle,
.tech-tracker-screen .tech-job-item .table-subtle {
    color: rgba(208, 219, 230, 0.74);
}

.tech-tracker-screen .tech-job-item .job-summary {
    color: rgba(237, 243, 248, 0.84);
}

.tech-tracker-screen .tech-card .status-pill {
    backdrop-filter: blur(8px);
}
