:root {
    --primary-brand: #008f4c;
    --primary-hover: #00703a;
    --accent-brand: #f26522;
    --bg-base: #f0fdf4;
    --bg-surface: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #d1d5db;
    --header-bg: rgba(255, 255, 255, 0.95);
    --table-header-bg: #f0fdf4;
    --input-bg: #f9fafb;
    --hover-bg: rgba(0, 143, 76, 0.08);
    --active-bg: rgba(0, 143, 76, 0.12);
    --shadow-sm: 0 2px 4px rgba(0, 143, 76, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 143, 76, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 143, 76, 0.15);
}

[data-theme="dark"] {
    --bg-base: #064e3b;
    --bg-surface: #022c22;
    --text-main: #f3f4f6;
    --text-muted: #a7f3d0;
    --border-color: #047857;
    --header-bg: rgba(2, 44, 34, 0.95);
    --table-header-bg: #064e3b;
    --input-bg: #064e3b;
    --hover-bg: rgba(167, 243, 208, 0.1);
    --active-bg: rgba(167, 243, 208, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    overflow: hidden;
    background: var(--bg-base);
    color: var(--text-main);
    font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 0.92rem;
    -webkit-font-smoothing: antialiased;
}

.text-main {
    color: var(--text-main) !important;
}

.text-primary {
    color: var(--primary-brand) !important;
}

.text-success-custom {
    color: #10b981 !important;
}

.bg-primary {
    background-color: var(--primary-brand) !important;
    color: #fff !important;
}

.bg-success-custom {
    background-color: #10b981;
    color: #fff;
}

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

::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

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

#login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    z-index: 9999;
    background: var(--bg-surface);
    transition: opacity 0.5s ease;
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-surface);
    z-index: 2;
}

.login-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 60px;
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-brand) 100%);
}

.login-left .input-group-text {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-right: 0;
}

.login-left .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-left: 0;
    box-shadow: none;
    transition: 0.2s;
    padding-left: 0;
}

.login-left .form-control:focus {
    border-color: var(--border-color);
}

.login-left .input-group:focus-within {
    border-bottom: 2px solid var(--primary-brand);
}

.login-left .login-icon {
    color: var(--text-muted);
}

.login-left button.login-icon {
    border-left: 0;
    cursor: pointer;
}

.futuristic-glass-panel {
    z-index: 5;
    padding: 50px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    animation: floatUpDown 5s ease-in-out infinite alternate;
}

@keyframes floatUpDown {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.tech-ring {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: pulseRing 4s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8);
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.ring-2 {
    width: 500px;
    height: 500px;
    animation-delay: 1.5s;
}

.ring-3 {
    width: 700px;
    height: 700px;
    animation-delay: 3s;
}

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

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
        border-width: 3px;
    }
}

#main-app {
    display: flex;
    width: 100vw;
    height: 100vh;
    gap: 8px;
    padding: 8px;
    background: var(--bg-base);
}

#primary-sidebar {
    width: 80px;
    flex: 0 0 80px;
    background: var(--primary-brand);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    padding: 18px 0 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.module-icon {
    position: relative;
    width: 100%;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: 0.2s ease;
}

.module-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.module-icon.active {
    width: calc(100% - 4px);
    margin-left: 4px;
    color: var(--primary-brand);
    background: var(--bg-surface);
    border-left-color: var(--accent-brand);
    border-radius: 12px 0 0 12px;
}

.module-icon i {
    font-size: 1.35rem;
}

.module-icon.logout-btn {
    margin-top: auto;
    margin-bottom: 4px;
    color: #fca5a5;
    border-left-color: transparent;
}

.module-icon.logout-btn:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.2);
}

.module-icon span {
    display: none;
    position: absolute;
    left: 84px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
}

.module-icon:hover span {
    display: block;
}

#workspace {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.futuristic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    z-index: 3;
}

.eyebrow {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.page-title span {
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--input-bg);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.theme-toggle:hover {
    background: var(--hover-bg);
    color: var(--primary-brand);
    border-color: var(--primary-brand);
    transform: scale(1.04);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 18px;
    border-left: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.user-name {
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 700;
}

.user-status {
    color: #10b981;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.user-status i {
    font-size: 0.38rem;
    margin-right: 3px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(242, 101, 34, 0.4);
}

.tech-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 16px;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 143, 76, 0.04), rgba(242, 101, 34, 0.04));
}

.tech-grid {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    transform: rotateX(60deg) rotateZ(45deg);
    animation: moveGrid 20s linear infinite;
}

[data-theme="dark"] .tech-grid {
    opacity: 0.1;
}

@keyframes moveGrid {
    from { transform: rotateX(60deg) rotateZ(45deg) translateY(0); }
    to { transform: rotateX(60deg) rotateZ(45deg) translateY(60px); }
}

.module-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.module-content.page-dashboard-dashboard {
    padding: 0;
}

.flash-stack {
    display: grid;
    gap: 12px;
}

.card-custom {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 143, 76, 0.28);
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.form-control,
.form-select,
.input-group-text {
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-brand);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(0, 143, 76, 0.14);
}

.input-group-text {
    background: var(--table-header-bg);
    color: var(--primary-brand);
    font-weight: 700;
}

.form-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-brand);
    border-color: var(--primary-brand);
}

.btn-outline-primary:hover {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
}

.cms-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.cms-tabs::-webkit-scrollbar {
    height: 4px;
}

.cms-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

.cms-tabs .nav-link {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 18px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
}

.cms-tabs .nav-link:hover {
    background: var(--hover-bg);
    color: var(--primary-brand);
}

.cms-tabs .nav-link.active {
    background: var(--active-bg);
    color: var(--primary-brand);
    border-bottom-color: var(--accent-brand);
}

.accordion-custom .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.accordion-custom .accordion-button {
    background: var(--bg-surface);
    color: var(--primary-brand);
    font-weight: 800;
    padding: 18px 22px;
    box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background: var(--active-bg);
    color: var(--primary-brand);
}

.accordion-custom .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(35%) sepia(87%) saturate(1039%) hue-rotate(125deg) brightness(92%) contrast(101%);
}

.accordion-custom .accordion-body {
    padding: 24px;
}

.field-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    padding: 16px;
    height: 100%;
}

.field-value {
    width: 100%;
}

.field-note {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.processor-visuals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
    padding: 20px;
    background: var(--table-header-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.core-box {
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--primary-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 143, 76, 0.3);
}

.core-box.inactive {
    background: var(--border-color);
    opacity: 0.28;
    box-shadow: none;
    color: transparent;
}

.dashboard-wrapper {
    display: flex;
    flex-direction: column;
}

.hero-strip {
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
}

.hero-copy {
    margin: 0;
    color: var(--text-muted);
    max-width: 68ch;
}

.workflow-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.wf-node {
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    flex-shrink: 0;
}

.wf-node-link {
    text-decoration: none;
    color: inherit;
}

.wf-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.wf-label {
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.25;
}

.wf-node:hover .wf-icon {
    border-color: var(--primary-brand);
    background: var(--primary-brand);
    color: #fff;
    transform: scale(1.07);
}

.wf-node:hover .wf-label {
    color: var(--primary-brand);
}

.wf-node.result-node:hover .wf-icon {
    border-color: var(--accent-brand);
    background: var(--accent-brand);
}

.wf-node.result-node:hover .wf-label {
    color: var(--accent-brand);
}

.wf-line {
    flex: 1;
    min-width: 24px;
    height: 4px;
    margin: 30px -12px 0;
    border-radius: 999px;
    background: var(--border-color);
    position: relative;
}

.wf-line::after {
    content: "▶";
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 0.7rem;
    color: var(--border-color);
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}

.stat-card-value {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-main);
}

.stat-card-label {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.chart-panel,
.report-panel,
.terminal-panel,
.processor-panel {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.chart-area {
    position: relative;
    min-height: 280px;
}

.terminal {
    min-height: 250px;
    max-height: 420px;
    overflow: auto;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #374151;
    background: #111827;
    color: #34d399;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 0.85rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.terminal-window {
    min-height: 320px;
    max-height: 560px;
    overflow: auto;
    padding: 1rem;
    border-radius: 12px;
    background: #101418;
    color: #d6e2ff;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.pill-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--table-header-bg);
    color: var(--primary-brand);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 260px;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    background: var(--table-header-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
}

.paraview-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-tile {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.metric-tile span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-tile strong {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.metric-tile em {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: normal;
}

.paraview-workspace {
    display: flex;
    flex-direction: column;
    min-height: 640px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #101418;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.paraview-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.paraview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.surface-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: var(--table-header-bg);
    border-bottom: 1px solid var(--border-color);
}

.surface-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
}

.surface-button small {
    color: inherit;
    font-size: 0.72rem;
    opacity: 0.72;
}

.surface-button.active {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
    color: #fff;
}

.paraview-scene-frame {
    position: relative;
    flex: 1;
    min-height: 520px;
    overflow: hidden;
    background: #101418;
}

.paraview-scene {
    position: absolute;
    inset: 0;
}

.paraview-scene canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.paraview-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    max-width: calc(100% - 32px);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.86);
    color: #e5e7eb;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    font-size: 0.82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.paraview-status[data-state="loading"] {
    color: #fbbf24;
}

.paraview-status[data-state="ready"] {
    color: #86efac;
}

.paraview-status[data-state="error"] {
    color: #fecaca;
}

.paraview-details {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
}

.paraview-detail-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.path-readout code {
    display: block;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-main);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.surface-list {
    display: grid;
    gap: 8px;
}

.surface-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
}

.surface-row span,
.surface-row strong,
.surface-row em {
    min-width: 0;
    overflow-wrap: anywhere;
}

.surface-row span {
    color: var(--text-main);
    font-weight: 800;
}

.surface-row strong,
.surface-row em {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: normal;
}

.field-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.field-chip-grid span {
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--table-header-bg);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .paraview-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .paraview-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .module-content {
        padding: 20px;
    }

    .futuristic-header {
        padding: 14px 18px;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    #main-app {
        flex-direction: column;
        padding: 0;
    }

    #primary-sidebar {
        order: 2;
        width: 100%;
        flex: 0 0 auto;
        height: 70px;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        border-radius: 16px 16px 0 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-brand {
        display: none;
    }

    .module-icon {
        flex: 1;
        min-width: 60px;
        padding: 12px 8px;
        border-left: 0;
        border-top: 4px solid transparent;
        border-radius: 0;
    }

    .module-icon.active {
        width: auto;
        margin-left: 0;
        border-top-color: var(--accent-brand);
        border-left: 0;
        border-radius: 0;
    }

    .module-icon.logout-btn {
        margin-top: 0;
        margin-bottom: 0;
    }

    .module-icon span {
        display: none !important;
    }

    #workspace {
        order: 1;
        border-radius: 0;
        height: calc(100vh - 70px);
    }

    .futuristic-header {
        border-radius: 0;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .user-info {
        display: none;
    }

    .module-content {
        padding: 16px;
    }

    .workflow-stepper {
        padding: 18px;
    }

    .wf-line {
        margin: 30px -8px 0;
    }

    .hero-title {
        font-size: 1.28rem;
    }

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

    .paraview-workspace {
        min-height: 560px;
    }

    .paraview-toolbar,
    .paraview-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .paraview-actions form,
    .paraview-actions .btn-primary {
        width: 100%;
    }

    .icon-btn {
        width: 100%;
    }

    .surface-button {
        flex: 1 1 150px;
        justify-content: center;
    }

    .paraview-scene-frame {
        min-height: 420px;
    }

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