:root, body.theme-light {
    /* Polished Minimalist Earth-Tone Brand Profiles */
    --bg-base: #F5F4F0;
    --sidebar-dark: #121315;
    --surface-light: #ECEAE4;
    --card-bg: #FFFFFF;

    /* Vibrant Premium Brand Color Coordinates */
    --clay-rust: #D15E45;
    --terracotta: #DE8A66;
    --sandstone: #EAB491;
    --charcoal-solid: #121315;

    /* Dynamic Structural Gradients */
    --gradient-primary: linear-gradient(135deg, var(--clay-rust) 0%, var(--terracotta) 50%, var(--sandstone) 100%);
    --gradient-warm-earth: linear-gradient(180deg, var(--terracotta) 0%, var(--sandstone) 100%);
    --gradient-slate: linear-gradient(180deg, #FBFBFA 0%, #ECEAE4 100%);
    --border-neutral: rgba(18, 19, 21, 0.06);

    --text-dark: #121315;
    --text-secondary: #4E525C;
    --text-muted: #8E929E;
    --text-white: #FFFFFF;

    --success: #3E7253;
    --warning: var(--terracotta);
    --danger: var(--clay-rust);
    --info: #325973;

    --sidebar-width: 280px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;

    --shadow-card: 0 8px 30px rgba(18, 19, 21, 0.02);
    --shadow-overlay: 0 24px 64px rgba(18, 19, 21, 0.08);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-active-row: 0 8px 24px rgba(18, 19, 21, 0.03);

    --body-bg: #B0BDB5;
    --sec-sidebar-bg: #FFFFFF;
}

body.theme-mid {
    --bg-base: #b7c3bb;
    --sidebar-dark: #18221c;
    --surface-light: #ccd7d0;
    --card-bg: #eef2ef;
    --clay-rust: #de8a66;
    --terracotta: #6b8275;
    --sandstone: #a3b899;
    --charcoal-solid: #18221c;
    --gradient-primary: linear-gradient(135deg, var(--clay-rust) 0%, var(--terracotta) 50%, var(--sandstone) 100%);
    --gradient-warm-earth: linear-gradient(180deg, var(--terracotta) 0%, var(--sandstone) 100%);
    --gradient-slate: linear-gradient(180deg, #ccd7d0 0%, #eef2ef 100%);
    --border-neutral: rgba(24, 34, 28, 0.12);
    --text-dark: #18221c;
    --text-secondary: #35473d;
    --text-muted: #5e7065;
    --text-white: #ffffff;
    --success: #3E7253;
    --warning: #de8a66;
    --danger: #cc4d35;
    --info: #325973;

    --sidebar-width: 280px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;

    --shadow-card: 0 8px 30px rgba(18, 19, 21, 0.02);
    --shadow-overlay: 0 24px 64px rgba(18, 19, 21, 0.08);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-active-row: 0 8px 24px rgba(18, 19, 21, 0.03);

    --body-bg: #ccd7d0;
    --sec-sidebar-bg: #e2e8e4;
}

body.theme-dark {
    --bg-base: #000000;
    --sidebar-dark: #050505;
    --surface-light: #0c0c0c;
    --card-bg: #070707;
    --clay-rust: #ff1111;
    --terracotta: #cc0000;
    --sandstone: #ff5555;
    --charcoal-solid: #ff0000;
    --gradient-primary: linear-gradient(135deg, #ff1111 0%, #880000 50%, #000000 100%);
    --gradient-warm-earth: linear-gradient(180deg, #cc0000 0%, #ff5555 100%);
    --gradient-slate: linear-gradient(180deg, #0c0c0c 0%, #000000 100%);
    --border-neutral: rgba(255, 42, 42, 0.18);
    --text-dark: #eceae4;
    --text-secondary: #a0a5b5;
    --text-muted: #5e6473;
    --text-white: #ffffff;
    --success: #00ff66;
    --warning: #ffaa00;
    --danger: #ff1111;
    --info: #00ccff;

    --sidebar-width: 280px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;

    --shadow-card: 0 8px 30px rgba(255, 0, 0, 0.04);
    --shadow-overlay: 0 24px 64px rgba(0, 0, 0, 0.95);
    --shadow-inset: inset 0 2px 4px rgba(255, 0, 0, 0.04);
    --shadow-active-row: 0 8px 24px rgba(255, 0, 0, 0.15);

    --body-bg: #000000;
    --sec-sidebar-bg: #030303;
}

body.theme-dark {
    font-family: 'Space Mono', monospace !important;
}
body.theme-dark .sec-nav-btn {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
body.theme-dark input, body.theme-dark select, body.theme-dark textarea, body.theme-dark button {
    font-family: 'Space Mono', monospace !important;
}
body.theme-dark ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
body.theme-dark ::-webkit-scrollbar-track {
    background: #000000 !important;
}
body.theme-dark ::-webkit-scrollbar-thumb {
    background: #ff1111 !important;
    border-radius: 3px;
}
body.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #ff5555 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--body-bg) !important;
    color: var(--text-dark);
    font-family: "Plus Jakarta Sans", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    margin: 0;
    padding: 24px;
    transition: background 0.25s ease;
}

/* Secondary Sidebar Styling with theme support */
.secondary-sidebar {
    background: var(--sec-sidebar-bg) !important;
}

/* Theme Mid font and text weight improvements */
body.theme-mid {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 550 !important;
}
body.theme-mid .sec-nav-btn {
    font-weight: 700 !important;
}
body.theme-mid .sidebar-nav-item {
    font-weight: 700 !important;
}
body.theme-mid input, body.theme-mid select, body.theme-mid textarea, body.theme-mid button {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 600 !important;
}

/* Outer rounded desktop layout frame matching mockup */
.dashboard-window-frame {
    background: var(--bg-base); /* F5F4F0 */
    width: 100%;
    height: 100%;
    border-radius: 36px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 64px rgba(18, 19, 21, 0.08);
}

/* Sidebar Narrow Vertical Framework */
.sidebar {
    width: 80px;
    background: var(--sidebar-dark);
    margin: 16px 12px 16px 16px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    z-index: 10;
    justify-content: space-between;
    height: calc(100% - 32px);
    flex-shrink: 0;
}

.sidebar-top-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.sidebar-middle-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: auto 0;
}

.sidebar-bottom-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Sidebar action button (+) */
.sidebar-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Navigation items */
.sidebar-nav-item {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-item.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12); /* nice active highlighted pill */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Secondary items (lower contrast) */
.sidebar-nav-item.secondary-item {
    color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav-item.secondary-item:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

/* Tooltip styling for icon-only navigation */
.sidebar-nav-item::after {
    content: attr(data-label);
    position: absolute;
    left: 70px;
    background: #121315;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-family: "Space Mono", monospace;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    transform: translateX(-10px);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sidebar-nav-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Avatar styling */
.sidebar-avatar-container {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.sidebar-avatar-container:hover {
    transform: scale(1.1);
    border-color: var(--terracotta);
}

.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-pill-badge {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: #A4A9B8;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.main-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 5;
}

/* Header Framework */
.header-navigation {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-neutral);
    gap: 32px;
}

.welcome-heading-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-heading-group h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.header-icon-badge {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Global Omnibox Search Bar */
.header-search-trigger-container {
    flex: 1;
    max-width: 340px;
    position: relative;
}

.header-search-trigger-bar {
    width: 100%;
    padding: 11px 18px 11px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.header-search-trigger-bar:hover {
    border-color: rgba(24, 24, 24, 0.15);
    background: var(--surface-light);
}

.header-search-icon-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.shortcut-hint-badge {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    border: 1px solid rgba(24, 24, 24, 0.04);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-action-base {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.btn-action-base:hover {
    background: var(--surface-light);
}

.btn-action-charcoal {
    background: var(--sidebar-dark);
    color: var(--text-white);
    border-color: var(--sidebar-dark);
}

.btn-action-charcoal:hover {
    background: #202020;
}

/* Canvas Area */
.view-scroll-canvas {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.view-scroll-canvas.no-scroll {
    overflow: hidden !important;
}

.view-scroll-canvas.routing-fade {
    opacity: 0;
    transform: translateY(6px);
}

.dashboard-main-asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

/* Ribbon Controls */
.segmented-ribbon-strip {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ribbon-pill-item {
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.ribbon-pill-item:hover {
    background: var(--surface-light);
    color: var(--text-dark);
}

.ribbon-pill-item.active {
    background: var(--sidebar-dark);
    border-color: var(--sidebar-dark);
    color: var(--text-white);
}

.metrics-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

/* Structural Metric Paneling */
.tactical-metric-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-neutral);
    position: relative;
}

.metric-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.metric-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.metric-card-context-dot {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.metric-num-display-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-main-value {
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: var(--text-dark);
}

.metric-target-fraction {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.metric-badge-tracker {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    background: var(--surface-light);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.capsule-sequence-track {
    display: flex;
    gap: 6px;
    width: 100%;
}

.capsule-sequence-node {
    flex: 1;
    height: 32px;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

.capsule-sequence-node.filled-active {
    background: var(--clay-rust);
}

.tactical-metric-card.accent-colored-theme {
    background: var(--surface-light);
    border-color: var(--border-neutral);
}

.tactical-metric-card.accent-colored-theme .capsule-sequence-node.filled-active {
    background: var(--clay-rust);
}

/* Step Pillar Graphs */
.statistics-graph-panel {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-neutral);
    padding: 32px;
}

.graph-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.graph-panel-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-pill-columns-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 220px;
    padding-top: 20px;
    border-bottom: 1px solid var(--border-neutral);
    position: relative;
}

.graph-vertical-column-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
    gap: 12px;
}

.interactive-capsule-column-bar {
    width: 24px;
    height: 100%;
    background: var(--surface-light);
    border-radius: var(--radius-pill);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: visible;
}

.column-bar-fill-segment {
    width: 100%;
    background: var(--terracotta);
    border-radius: var(--radius-pill);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: height 0.4s ease;
}

.column-bar-fill-segment.clay-accent {
    background: var(--gradient-warm-earth);
}

.column-bar-fill-segment::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
    position: absolute;
    top: 10px;
}

.column-floating-accent-dot {
    width: 8px;
    height: 8px;
    background: var(--clay-rust);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -24px;
}

.graph-column-axis-label {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Right Hand Directories */
.right-directory-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.directory-horizontal-split-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.directory-square-capsule-tile {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.directory-square-capsule-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 24, 24, 0.15);
}

.tile-micro-icon {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.tile-core-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.directory-row-link-card {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.directory-row-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 24, 24, 0.15);
}

.directory-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.directory-card-arrow-indicator {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 16px;
}

.directory-card-desc-sub {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* File Manager Directory Views */
.file-explorer-workspace-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    transition: grid-template-columns 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.file-explorer-workspace-layout.inspector-panel-active {
    grid-template-columns: 1fr 340px;
}

.recent-shelf-section-wrapper {
    margin-bottom: 32px;
}

.recent-shelf-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.recent-shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.recent-file-grid-card {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.recent-file-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-active-row);
    border-color: rgba(24, 24, 24, 0.12);
}

.file-thumbnail-box {
    height: 48px;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.file-card-label-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-card-size-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: -2px;
}

.explorer-toolbar-actions-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: var(--card-bg);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-neutral);
}

.toolbar-left-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.toolbar-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-matrix-table-container {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-neutral);
    overflow: hidden;
}

table.inventory-sheet {
    width: 100%;
    border-collapse: collapse;
}

th.matrix-head {
    text-align: left;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-neutral);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Space Mono", monospace;
    color: var(--text-muted);
}

td.matrix-cell {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-neutral);
    font-size: 14px;
}

.explorer-row-item {
    cursor: pointer;
    transition: all 0.12s ease;
}

.explorer-row-item:hover td {
    background: var(--surface-light);
}

.explorer-row-item.selected-active td {
    background: var(--surface-light);
    border-bottom-color: var(--clay-rust);
    font-weight: 600;
}

.explorer-sidebar-inspector-panel {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-neutral);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
    position: sticky;
    top: 0;
}

.inspector-thumbnail-preview {
    height: 140px;
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 1px dashed var(--border-neutral);
}

.inspector-section-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inspector-block-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.inspector-desc-prose {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.property-data-matrix-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-neutral);
    font-size: 13px;
}

.property-data-matrix-row:last-child {
    border-bottom: none;
}

.property-matrix-key {
    color: var(--text-muted);
}

.property-matrix-value {
    color: var(--text-dark);
    font-weight: 600;
    font-family: "Space Mono", monospace;
}

/* Form Components & Precision Custom Inputs */
.input-text-field {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-md);
    background: var(--surface-light);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-text-field:focus {
    border-color: var(--clay-rust);
}

.custom-dropdown-container {
    position: relative;
    width: 100%;
    user-select: none;
}

.dropdown-trigger {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-trigger:hover {
    background: var(--surface-light);
}

.dropdown-trigger::after {
    content: "";
    width: 10px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 5 5-5z' fill='%23121315'/%3E%3C/svg%3E") no-repeat center;
    transition: transform 0.2s ease;
}

.custom-dropdown-container.active .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown-menu-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-overlay);
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    z-index: 999;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-dropdown-container.active .dropdown-menu-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-option {
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-option:hover {
    background: var(--surface-light);
}

.dropdown-option.selected {
    color: var(--clay-rust);
    font-weight: 600;
    background: var(--surface-light);
}

.custom-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-md);
    background: var(--surface-light);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    resize: none;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.custom-textarea:focus {
    border-color: var(--clay-rust);
}

.slider-flex-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}

.clay-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--surface-light);
    border-radius: var(--radius-pill);
    outline: none;
}

.clay-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--clay-rust);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.clay-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-counter-display {
    font-family: "Space Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 44px;
    text-align: right;
}

/* Graphics Topologies */
.chart-matrix-container {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    width: 100%;
    border: 1px solid var(--border-neutral);
}

.chart-line-element {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pie-donut-flex-engine {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    padding: 8px 0;
}

.donut-svg-viewport {
    transform: rotate(-90deg);
}

.donut-segment-track {
    fill: none;
    stroke: var(--bg-base);
    stroke-width: 14;
}

.donut-segment-fill {
    fill: none;
    stroke-width: 14;
    stroke-linecap: square;
    transition: stroke-dasharray 0.5s ease;
}

.chart-legend-matrix {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-matrix-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.legend-color-patch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.hardware-array-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.array-node-tile {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: left;
    position: relative;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    position: absolute;
    top: 20px;
    right: 20px;
}

.status-dot-pulse::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulseRing 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.node-title-id {
    font-family: "Space Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.node-subtitle-metrics {
    font-size: 12px;
    color: var(--text-muted);
}



#cluster-radar-chart {
    border: none !important;
    outline: none !important;
}

#cluster-radar-chart .apexcharts-canvas {
    border: none !important;
    outline: none !important;
}

/* Omnibox Console Overlay Component */
.console-backdrop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 24, 24, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.console-backdrop-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.console-modal-container {
    width: 100%;
    max-width: 740px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-overlay);
    border: 1px solid var(--border-neutral);
    overflow: hidden;
    transform: translateY(-12px);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.console-backdrop-overlay.open .console-modal-container {
    transform: translateY(0);
}

.console-search-input-wrapper {
    position: relative;
    border-bottom: 1px solid var(--border-neutral);
}

.console-lens-icon {
    position: absolute;
    left: 24px;
    top: 22px;
    font-size: 20px;
    opacity: 0.6;
    color: var(--text-dark);
}

.console-main-input {
    width: 100%;
    padding: 22px 32px 22px 56px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
}

.console-clear-button {
    position: absolute;
    right: 24px;
    top: 20px;
    width: 24px;
    height: 24px;
    background: var(--surface-light);
    border-radius: 50%;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    pointer-events: auto;
}

.console-micro-nav-bar {
    background: var(--surface-light);
    border-bottom: 1px solid var(--border-neutral);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.micro-nav-action-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.micro-kbd-capsule {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--text-dark);
    box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
}

.micro-nav-spacer-line {
    flex-grow: 1;
}

.micro-close-trigger {
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.micro-close-trigger:hover {
    color: var(--text-dark);
}

.console-quick-filters-strip {
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-neutral);
    background: var(--card-bg);
}

.filter-pill-button {
    padding: 6px 14px;
    background: var(--surface-light);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-pill-button:hover {
    background: var(--surface-light);
    color: var(--text-dark);
}

.filter-pill-button.active {
    background: var(--sidebar-dark);
    border-color: var(--sidebar-dark);
    color: var(--text-white);
}

/* Search Results List */
.console-search-results-list {
    max-height: 320px;
    overflow-y: auto;
    background: var(--card-bg);
    border-top: 1px solid var(--border-neutral);
}

.console-empty-placeholder {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-family: "Space Mono", monospace;
}

.search-result-item {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border-neutral);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: var(--surface-light);
}

.search-result-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(18, 19, 21, 0.04);
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.search-result-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.search-result-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.search-result-category-badge {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(18, 19, 21, 0.05);
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100000;
}

.toast-message {
    background: var(--sidebar-dark);
    color: var(--text-white);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-overlay);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(20px);
    opacity: 0;
    animation: toastSlideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    min-width: 280px;
}

@keyframes toastSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading Spinner inside Buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-action-base.btn-loading::after {
    border-top-color: var(--text-dark);
}
.btn-action-charcoal.btn-loading::after {
    border-top-color: var(--text-white);
}

/* Hover states for tactical items */
.array-node-tile {
    transition: all 0.2s ease;
}
.array-node-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 20, 18, 0.15);
    box-shadow: var(--shadow-card);
}
.tactical-metric-card {
    transition: all 0.2s ease;
}
.tactical-metric-card:hover {
    border-color: rgba(20, 20, 18, 0.15);
    box-shadow: var(--shadow-card);
}

@keyframes ambientFlowEngine {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes routeFlow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -1000;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(24, 24, 24, 0.15);
    border-radius: var(--radius-pill);
}

/* Expanded Render Engine Viewports and IDE Styles */
.file-explorer-workspace-layout.inspector-panel-active {
    grid-template-columns: 1fr 580px !important;
}

.inspector-viewport {
    height: 320px;
    background: #101113; /* deep dark workspace preview */
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(18, 19, 21, 0.08);
    margin-bottom: 12px;
    user-select: none;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.2);
}

.viewport-controls-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-light);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-neutral);
    font-size: 11px;
    color: var(--text-secondary);
    font-family: "Space Mono", monospace;
    gap: 12px;
    margin-top: -4px;
    margin-bottom: 16px;
}

.viewport-btn-small {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.15s ease;
}

.viewport-btn-small:hover {
    background: var(--surface-light);
    border-color: rgba(18, 19, 21, 0.15);
}

.viewport-btn-small.active {
    background: var(--clay-rust);
    border-color: var(--clay-rust);
    color: #FFFFFF;
}

/* Image Viewer Channel isolation simulation */
.image-viewer-preview {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), filter 0.2s ease;
}

.image-viewer-preview.channel-r {
    filter: contrast(120%) grayscale(100%) sepia(100%) hue-rotate(-50deg) saturate(500%);
}

.image-viewer-preview.channel-g {
    filter: contrast(120%) grayscale(100%) sepia(100%) hue-rotate(50deg) saturate(500%);
}

.image-viewer-preview.channel-b {
    filter: contrast(120%) grayscale(100%) sepia(100%) hue-rotate(190deg) saturate(500%);
}

.image-viewer-preview.channel-a {
    opacity: 0.45;
}

.viewport-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.viewport-grid-overlay.active {
    opacity: 1;
}

/* Video Sequencer mockup */
.video-viewport-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-viewport-element {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-sequencer-controls {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.video-scrubber-track {
    flex: 1;
    height: 6px;
    background: rgba(18, 19, 21, 0.08);
    border-radius: var(--radius-pill);
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.video-scrubber-fill {
    height: 100%;
    width: 0%;
    background: var(--clay-rust);
    border-radius: var(--radius-pill);
    position: relative;
}

.video-scrubber-handle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sidebar-dark);
    position: absolute;
    right: -6px;
    top: -3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.1s ease;
}

.video-scrubber-track:hover .video-scrubber-handle {
    transform: scale(1.2);
}

/* SVG Viewer rendering visual preview */
.svg-viewport-render {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: #FFFFFF;
    background-image: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px; /* transparent chessboard grid */
}

.svg-viewport-render svg {
    max-width: 90%;
    max-height: 90%;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Stylized PDF Viewer mockup */
.pdf-viewer-container {
    width: 100%;
    height: 100%;
    background: #36393F;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pdf-mock-page {
    width: 80%;
    aspect-ratio: 1 / 1.414;
    background: #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #121315;
    font-size: 8px;
    line-height: 1.5;
    position: relative;
    transform: translateY(0);
    transition: transform 0.2s ease;
}

.pdf-mock-page:hover {
    transform: translateY(-2px);
}

.pdf-header-row {
    border-bottom: 1.5px solid rgba(18, 19, 21, 0.12);
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-weight: 700;
    font-family: "Space Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-secondary);
}

.pdf-mock-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.pdf-mock-paragraph-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.pdf-mock-text-line {
    height: 6px;
    background: rgba(18, 19, 21, 0.08);
    border-radius: var(--radius-sm);
    width: 100%;
}

.pdf-mock-text-line.short { width: 65%; }
.pdf-mock-text-line.medium { width: 85%; }

.pdf-footer-row {
    border-top: 1px solid rgba(18, 19, 21, 0.08);
    padding-top: 8px;
    margin-top: 16px;
    color: var(--text-muted);
    text-align: center;
    font-family: "Space Mono", monospace;
    font-size: 7px;
}

/* Text Viewer log reader */
.text-viewer-container {
    width: 100%;
    height: 100%;
    background: #FAF8F5; /* clean warm paper tone */
    color: #2D3139;
    padding: 28px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
    overflow-y: auto;
    white-space: pre-wrap;
    border-radius: inherit;
}

/* Code IDE editor workspace */
.ide-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #141517;
}

.ide-editor-area {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    background: #18191B;
}

.ide-line-numbers {
    width: 38px;
    background: #111213;
    color: rgba(255, 255, 255, 0.2);
    font-family: "Space Mono", monospace;
    font-size: 12px;
    text-align: right;
    padding: 16px 8px 16px 0;
    user-select: none;
    line-height: 1.6;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.ide-text-editor {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #E2E8F0;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    padding: 16px;
    resize: none;
    line-height: 1.6;
    tab-size: 4;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
}

.ide-console-log-panel {
    height: 120px;
    background: #0E0F10;
    padding: 14px 20px;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: #38BDF8;
    overflow-y: auto;
    text-align: left;
    border-top: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.5);
}

.ide-log-line {
    margin-bottom: 5px;
    line-height: 1.4;
}

.ide-log-line.info { color: #8E929E; }
.ide-log-line.success { color: #10B981; }
.ide-log-line.warning { color: var(--terracotta); }
.ide-log-line.error { color: var(--clay-rust); }

/* 3-Panel File Manager Layout Override */
.file-explorer-workspace-layout.inspector-panel-active {
    display: grid !important;
    grid-template-columns: 210px 1fr 580px !important;
    gap: 24px !important;
    height: calc(100vh - 240px) !important;
    min-height: 600px !important;
    overflow: hidden !important;
    margin-bottom: 32px !important;
}

.file-viewer-viewport-panel {
    height: 100%;
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
}

.file-tree-sidebar-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-xl);
    padding: 20px;
    overflow-y: auto;
    text-align: left;
    overscroll-behavior: contain;
}

.file-tree-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-family: "Space Mono", monospace;
}

.tree-folder-group {
    list-style: none;
    padding-left: 0;
}

.tree-node-row {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    gap: 8px;
    transition: all 0.15s ease;
    user-select: none;
}

.tree-node-row:hover {
    background: var(--surface-light);
    color: var(--text-dark);
}

.tree-node-row.active {
    background: var(--surface-light);
    color: var(--clay-rust);
    border-left: 3px solid var(--clay-rust);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.tree-node-row .arrow-icon {
    font-size: 9px;
    width: 8px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.tree-node-row.collapsed .arrow-icon {
    transform: rotate(-90deg);
}

.tree-folder-children {
    padding-left: 16px;
    list-style: none;
    transition: max-height 0.25s ease-out, opacity 0.2s ease;
    overflow: hidden;
}

.tree-folder-children.hidden {
    display: none;
}

/* Compact Table Browser Panel */
.file-browser-table-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.file-browser-table-panel .file-matrix-table-container {
    border: none;
    border-radius: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.file-browser-table-panel table.inventory-sheet th.matrix-head {
    padding: 10px 16px;
    font-size: 10px;
}

.file-browser-table-panel table.inventory-sheet td.matrix-cell {
    padding: 8px 16px;
    font-size: 12px;
}

.file-browser-table-panel .explorer-row-item.selected-active td {
    background: rgba(209, 94, 69, 0.08); /* warm light clay highlighting */
    border-bottom-color: var(--clay-rust);
    color: var(--text-dark);
}

/* Custom Right-Click Context Menu */
.custom-context-menu {
    position: fixed;
    background: #1C1C1E; /* Premium dark slate background */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Clean border */
    border-radius: 8px; /* Clean 8px borders */
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
    padding: 6px 0;
    min-width: 220px;
    z-index: 100000;
    animation: contextFadeIn 0.12s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
}

@keyframes contextFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Push shortcut to the right */
    gap: 16px;
    transition: all 0.12s ease;
}

.context-menu-item:hover {
    background: var(--clay-rust); /* retain terracotta accents for menu selection */
    color: #FFFFFF;
}

.context-menu-item:hover .context-shortcut {
    color: rgba(255, 255, 255, 0.7);
}

.context-menu-item.danger {
    color: #DE8A66; /* light terracotta danger style */
}

.context-menu-item.danger:hover {
    background: var(--clay-rust);
    color: #FFFFFF;
}

.context-shortcut {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.context-menu-item-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

/* Default Viewport Placeholder State */
.viewport-placeholder-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    height: 100%;
}

.viewport-placeholder-icon {
    font-size: 44px;
    margin-bottom: 16px;
    opacity: 0.65;
    animation: pulsePlaceholder 3s ease-in-out infinite;
}

@keyframes pulsePlaceholder {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.03); }
}

.viewport-placeholder-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.viewport-placeholder-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 320px;
}
