.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    line-height: 1;
}

:root {
    --workspace-sidebar-width: 18.25rem;
    --workspace-shell-gap: clamp(0.75rem, 1vw, 1.1rem);
    --workspace-sidebar-inline-padding: 1.2rem;
    --workspace-step-icon-size: 1.82rem;
    --workspace-accent: #82e0aa;
    --workspace-surface: #f8f9fb;
    --workspace-surface-alt: #eef3f3;
    --workspace-ink: #0f172a;
    --workspace-muted: #64748b;
}

.workspace-logo-home-btn {
    font: inherit;
    color: inherit;
    text-align: left;
}

.dashboard-topbar-icon-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.dashboard-sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: var(--workspace-sidebar-width);
    min-width: var(--workspace-sidebar-width);
    height: calc(100vh - 80px);
    z-index: 900;
    display: flex;
    flex-direction: column;
    padding: 2rem 0 1.35rem;
    background: #ffffff;
    border-right: 1px solid #f1f5f9;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

body.workspace-shell-active .dashboard-sidebar {
    top: 0;
    height: 100vh;
}

.dashboard-sidebar.hidden {
    display: none;
}

.dashboard-sidebar:not(.hidden) ~ #dashboard-view.active,
.dashboard-sidebar:not(.hidden) ~ #spec-alignment-view.active,
.dashboard-sidebar:not(.hidden) ~ #messaging-view.active {
    margin-left: calc(var(--workspace-sidebar-width) + var(--workspace-shell-gap));
    width: calc(100% - var(--workspace-sidebar-width) - var(--workspace-shell-gap));
}

.workspace-sidebar-shell {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 var(--workspace-sidebar-inline-padding);
    margin-bottom: 2.25rem;
}

.workspace-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.workspace-sidebar-brand-mark {
    width: 4rem;
    height: 4rem;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.workspace-sidebar-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    mix-blend-mode: normal;
    filter: none;
}

.workspace-sidebar-brand-name {
    font-family: "Manrope", var(--font-display), sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1;
}

.workspace-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 var(--workspace-sidebar-inline-padding) 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.workflow-steps-group {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.sidebar-btn {
    width: 100%;
    border: 0;
    border-radius: 0.72rem;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.66rem 0.74rem;
    font-family: "Inter", var(--font-sans), sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

.sidebar-btn.active {
    background: rgba(130, 224, 170, 0.12);
    color: #191c1e;
    border-right: 0;
    box-shadow: inset 2px 0 0 var(--workspace-accent);
}

.sidebar-btn-icon {
    width: var(--workspace-step-icon-size);
    height: var(--workspace-step-icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.06rem;
    color: inherit;
    line-height: 1;
    flex: 0 0 var(--workspace-step-icon-size);
}

.sidebar-btn-label {
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
}

.dashboard-sidebar .sidebar-btn > .sidebar-btn-label {
    flex: 1 1 auto;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    transform: none;
}

#btn-dash-main .sidebar-btn-label {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #334155;
}

.dashboard-sidebar .sidebar-btn > .sidebar-btn-icon {
    flex: 0 0 var(--workspace-step-icon-size);
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    transform: none;
}

.sidebar-btn.workflow-step {
    align-items: center;
    justify-content: flex-start;
    min-height: 2.55rem;
    padding-left: 0.74rem;
}

.sidebar-step-index {
    width: var(--workspace-step-icon-size);
    height: var(--workspace-step-icon-size);
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 var(--workspace-step-icon-size);
}

.sidebar-btn.workflow-step.active .sidebar-step-index {
    background: var(--workspace-accent);
    color: #002111;
}

.dashboard-sidebar .sidebar-btn.workflow-step > .sidebar-step-index {
    flex: 0 0 var(--workspace-step-icon-size);
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    transform: none;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-group-label {
    margin: 0;
    padding: 0 0.72rem;
    color: #94a3b8;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-utility-btn,
.sidebar-logout-btn {
    width: 100%;
    border: 0;
    border-radius: 0.72rem;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.66rem 0.74rem;
    font-family: "Inter", var(--font-sans), sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-utility-btn:hover,
.sidebar-logout-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

.sidebar-logout-btn {
    color: #dc2626;
}

.sidebar-logout-btn:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.user-guide-toggle.active {
    background: #0f172a;
    color: #f8fafc;
}

.workspace-sidebar-language {
    border-radius: 0.72rem;
    background: #f8fafc;
    padding: 0.58rem 0.72rem;
    display: grid;
    gap: 0.24rem;
}

.workspace-sidebar-language-label {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.workspace-sidebar-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.workspace-sidebar-language-switch .lang-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0;
}

.workspace-sidebar-language-switch .lang-btn.active {
    color: #0f172a;
}

.workspace-sidebar-language-switch .divider {
    color: #cbd5e1;
}

.sidebar-footer {
    border-top: 1px solid #f1f5f9;
    margin-top: 0.4rem;
    padding: 1rem var(--workspace-sidebar-inline-padding) 0;
    display: flex;
    flex-direction: column;
    gap: 0.46rem;
}

.workspace-sidebar-user-card {
    margin: 0.2rem 0;
    border: 1px solid #f1f5f9;
    border-radius: 0.72rem;
    background: #ffffff;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.72rem;
}

.workspace-sidebar-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.58rem;
    background: rgba(130, 224, 170, 0.2);
    color: #036c45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Manrope", var(--font-display), sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.workspace-sidebar-user-copy {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

#sidebar-username {
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar-user-title {
    color: #94a3b8;
    font-size: 0.62rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .role-badge-mini {
    margin-left: auto;
    border-radius: 0.35rem;
    background: #97f6be;
    color: #007348;
    border: 0;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.12rem 0.34rem;
    line-height: 1.2;
}

.dashboard-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 880;
}

.dashboard-mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-main-panel {
    background: var(--workspace-surface);
}

.dashboard-main-panel.workspace-dashboard-layout {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.35rem 1.35rem;
}

.panel-content.workspace-dashboard-layout {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.workspace-dashboard-loading {
    min-height: calc(100vh - 6rem);
    display: grid;
    place-items: center;
}

.workspace-dashboard-shell {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.workspace-dashboard-header h1 {
    margin: 0;
    color: #0f172a;
    font-family: "Manrope", var(--font-display), sans-serif;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.workspace-dashboard-hero {
    display: grid;
    gap: 0.58rem;
}

.workspace-dashboard-hero-cta {
    border: 0;
    border-radius: 1rem;
    background: #0f172a;
    color: #ffffff;
    width: 100%;
    min-height: clamp(11rem, 30vh, 14rem);
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.workspace-dashboard-hero-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.workspace-dashboard-hero-cta.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.workspace-dashboard-hero-cta-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0) 55%),
        radial-gradient(circle at 80% 75%, rgba(130, 224, 170, 0.2) 0, rgba(130, 224, 170, 0) 45%);
    pointer-events: none;
}

.workspace-dashboard-hero-cta-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
}

.workspace-dashboard-hero-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--workspace-accent);
    color: #002111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.workspace-dashboard-hero-icon .material-symbols-outlined {
    font-size: 1.65rem;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.workspace-dashboard-hero-title {
    color: #ffffff;
    font-family: "Manrope", var(--font-display), sans-serif;
    font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.workspace-dashboard-hero-badge {
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.34rem 0.62rem;
}

.workspace-rollout-note {
    margin: 0;
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.5;
}

.workspace-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.workspace-dashboard-section {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workspace-dashboard-section-head {
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.workspace-dashboard-section-head h2 {
    margin: 0;
    color: #64748b;
    font-family: "Inter", var(--font-sans), sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.workspace-dashboard-link-btn {
    border: 0;
    background: transparent;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-family: "Inter", var(--font-sans), sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.workspace-dashboard-link-btn .material-symbols-outlined {
    font-size: 0.9rem;
}

.workspace-dashboard-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.workspace-dashboard-task-card {
    width: 100%;
    border: 1px solid #f1f5f9;
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.04);
    display: grid;
    gap: 0.68rem;
    padding: 1rem;
    text-align: left;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.workspace-dashboard-task-card:hover {
    border-color: rgba(130, 224, 170, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.1);
}

.workspace-dashboard-task-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.workspace-dashboard-task-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.workspace-dashboard-task-icon-wrap {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.66rem;
    background: rgba(130, 224, 170, 0.18);
    color: #005231;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.workspace-dashboard-task-icon-wrap .material-symbols-outlined {
    font-size: 1.2rem;
}

.workspace-dashboard-task-card--conversation .workspace-dashboard-task-icon-wrap {
    background: #dbeafe;
    color: #1d4ed8;
}

.workspace-dashboard-task-card--qc .workspace-dashboard-task-icon-wrap {
    background: #dcfce7;
    color: #166534;
}

.workspace-dashboard-task-copy {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.workspace-dashboard-task-copy h4 {
    margin: 0;
    color: #0f172a;
    font-family: "Manrope", var(--font-display), sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-dashboard-task-copy p {
    margin: 0;
    color: #94a3b8;
    font-family: "Inter", var(--font-sans), sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-dashboard-task-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--workspace-accent);
    color: #002111;
    font-family: "Inter", var(--font-sans), sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.3rem 0.48rem;
    flex: 0 0 auto;
}

.workspace-dashboard-task-card--neutral .workspace-dashboard-task-chip {
    background: #f1f5f9;
    color: #64748b;
}

.workspace-dashboard-progress {
    width: 100%;
    height: 0.36rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.workspace-dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #82e0aa 0%, #53c97e 100%);
}

.workspace-dashboard-task-meta {
    margin: 0;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.workspace-dashboard-section-head--orders {
    align-items: center;
}

.workspace-dashboard-orders-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.workspace-dashboard-icon-btn {
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    border-radius: 0.46rem;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.workspace-dashboard-icon-btn .material-symbols-outlined {
    font-size: 1rem;
}

.workspace-dashboard-icon-btn:hover {
    color: #334155;
    background: #f8fafc;
}

.workspace-dashboard-table-shell {
    border: 1px solid #f1f5f9;
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.workspace-dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.workspace-dashboard-table thead th {
    background: rgba(248, 250, 252, 0.8);
    color: #94a3b8;
    font-family: "Inter", var(--font-sans), sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.64rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f8fafc;
}

.workspace-dashboard-table thead th:last-child {
    text-align: right;
}

.workspace-dashboard-order-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.workspace-dashboard-order-row:hover {
    background: #f8fafc;
}

.workspace-dashboard-table td {
    padding: 0.84rem 1rem;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
}

.workspace-dashboard-table tr:last-child td {
    border-bottom: 0;
}

.workspace-dashboard-order-main {
    display: grid;
    gap: 0.16rem;
}

.workspace-dashboard-order-reference {
    color: #0f172a;
    font-family: "Inter", var(--font-sans), sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.workspace-dashboard-order-supplier {
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.3;
}

.workspace-dashboard-order-status-cell {
    width: 1%;
    white-space: nowrap;
}

.workspace-dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    border-radius: 999px;
    padding: 0.26rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.workspace-dashboard-status-dot {
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 auto;
}

.workspace-dashboard-status--pending {
    background: #f1f5f9;
    color: #64748b;
}

.workspace-dashboard-status--processing {
    background: #dbeafe;
    color: #2563eb;
}

.workspace-dashboard-status--in_transit {
    background: #dcfce7;
    color: #166534;
}

.workspace-dashboard-status--delivered {
    background: #bbf7d0;
    color: #166534;
}

.workspace-dashboard-order-action-cell {
    width: 1%;
    text-align: right;
    color: #cbd5e1;
}

.workspace-dashboard-row-arrow {
    font-size: 1.1rem;
}

.workspace-dashboard-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 0.8rem;
    background: rgba(248, 250, 252, 0.75);
    padding: 1.05rem;
    text-align: center;
}

.workspace-dashboard-empty h3 {
    margin: 0;
    color: #334155;
    font-family: "Manrope", var(--font-display), sans-serif;
    font-size: 0.94rem;
}

.workspace-dashboard-empty p {
    margin: 0.34rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.workspace-dashboard-empty--table {
    margin: 0.25rem 0;
}

.workspace-dashboard-chat-fab {
    display: none;
}

@media (max-width: 1200px) {
    .workspace-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        top: var(--dashboard-mobile-top-offset);
        height: calc(100vh - var(--dashboard-mobile-top-offset));
        transform: translateX(-108%);
        transition: transform 0.28s ease;
        z-index: 920;
    }

    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }

    .dashboard-sidebar:not(.hidden) ~ #dashboard-view.active,
    .dashboard-sidebar:not(.hidden) ~ #spec-alignment-view.active,
    .dashboard-sidebar:not(.hidden) ~ #messaging-view.active {
        margin-left: 0;
        width: 100%;
    }

    .dashboard-main-panel.workspace-dashboard-layout {
        padding: 0.8rem;
    }

    .workspace-dashboard-shell {
        gap: 1rem;
    }
}

@media (max-width: 760px) {
    .workspace-dashboard-header h1 {
        font-size: 1.45rem;
    }

    .workspace-dashboard-hero-cta {
        min-height: 10rem;
        padding: 1rem;
    }

    .workspace-dashboard-task-card {
        padding: 0.86rem;
    }

    .workspace-dashboard-table {
        min-width: 35rem;
    }
}

/* Desktop topbar rework aligned with the pre-login chevron reference */
@media (min-width: 901px) {
    .dashboard-sidebar.dashboard-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        height: 82px;
        min-height: 82px;
        padding: 0 clamp(1rem, 1.8vw, 1.75rem);
        display: block;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
        overflow: visible;
        z-index: 940;
    }

    body.workspace-shell-active .dashboard-sidebar.dashboard-topbar {
        top: 0;
        height: 82px;
    }

    .dashboard-sidebar.dashboard-topbar:not(.hidden) ~ #dashboard-view.active,
    .dashboard-sidebar.dashboard-topbar:not(.hidden) ~ #spec-alignment-view.active,
    .dashboard-sidebar.dashboard-topbar:not(.hidden) ~ #messaging-view.active {
        margin-left: 0;
        margin-top: 82px;
        width: 100%;
        height: calc(100% - 82px);
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-shell {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 1.25rem;
        min-height: 0;
        height: 100%;
        width: 100%;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-logo-home-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        min-height: 40px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
        line-height: 1;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-brand-mark {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-brand-name {
        font-family: "Manrope", var(--font-display), sans-serif;
        font-size: 1.35rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        color: #111827;
        line-height: 1;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-scroll {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-scroll::-webkit-scrollbar {
        display: none;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: nowrap;
        min-width: max-content;
        margin: 0;
        padding: 0;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn {
        width: auto;
        min-width: 40px;
        min-height: 40px;
        height: 40px;
        padding: 0 1rem;
        border: 1px solid #dbe4ee;
        border-radius: 999px;
        background: #f8fafc;
        color: #334155;
        box-shadow: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        line-height: 1;
        white-space: nowrap;
        transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn:hover {
        background: #ffffff;
        border-color: #cbd5e1;
        color: #0f172a;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn > .sidebar-btn-icon {
        flex: 0 0 auto;
        width: auto;
        height: auto;
        margin: 0;
        font-size: 18px;
        line-height: 1;
        transform: none;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn > .sidebar-btn-label {
        flex: 0 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.05;
        transform: none;
    }

    .dashboard-sidebar.dashboard-topbar #btn-dash-main {
        padding: 0 1rem 0 0.9rem;
        background: #f8fafc;
        border-color: #dbe4ee;
        color: #334155;
    }

    .dashboard-sidebar.dashboard-topbar #btn-dash-main.active {
        background: #ffffff;
        border-color: #cbd5e1;
        color: #0f172a;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .dashboard-sidebar.dashboard-topbar #btn-dash-main .sidebar-btn-label {
        max-width: none;
        font-size: 13px;
        font-weight: 700;
        color: inherit;
    }

    .dashboard-sidebar.dashboard-topbar .workflow-steps-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        min-width: max-content;
        margin: 0;
        padding: 0;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn.workflow-step {
        position: relative;
        flex: 0 0 auto;
        min-width: max-content;
        min-height: 52px;
        height: 52px;
        justify-content: center;
        padding: 0 2rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin-left: -16px;
        clip-path: polygon(calc(100% - 24px) 0%, 100% 50%, calc(100% - 24px) 100%, 0% 100%, 24px 50%, 0% 0%);
        color: #ffffff;
        font-family: var(--font-display);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.01em;
        text-align: center;
        overflow: visible;
    }

    .dashboard-sidebar.dashboard-topbar .workflow-steps-group .sidebar-btn.workflow-step.is-visible-first {
        margin-left: 0;
        clip-path: polygon(calc(100% - 24px) 0%, 100% 50%, calc(100% - 24px) 100%, 0% 100%, 0% 0%);
        border-radius: 6px 0 0 6px;
    }

    .dashboard-sidebar.dashboard-topbar .workflow-steps-group .sidebar-btn.workflow-step.is-visible-last {
        padding-right: 1.6rem;
        clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 24px 50%, 0% 0%);
        border-radius: 0 6px 6px 0;
    }

    .dashboard-sidebar.dashboard-topbar .workflow-steps-group .sidebar-btn.workflow-step.is-visible-first.is-visible-last {
        margin-left: 0;
        padding: 0 1.6rem;
        clip-path: inset(0 round 6px);
        border-radius: 6px;
    }

    .dashboard-sidebar.dashboard-topbar #btn-dash-sourcing {
        background: #1e293b;
    }

    .dashboard-sidebar.dashboard-topbar #btn-dash-conversations {
        background: #3c4460;
    }

    .dashboard-sidebar.dashboard-topbar #btn-dash-order {
        background: #7c6258;
    }

    .dashboard-sidebar.dashboard-topbar #btn-dash-qc {
        background: #10b981;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn.workflow-step:hover {
        color: #ffffff;
        border-color: transparent;
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
        z-index: 1;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn.workflow-step.active {
        color: #ffffff;
        border-color: transparent;
        transform: translateY(-2px);
        filter: brightness(1.08) saturate(1.02);
        box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16), inset 0 0 0 2px rgba(255, 255, 255, 0.16);
        z-index: 2;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn.workflow-step > .sidebar-step-index {
        display: none;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-btn.workflow-step > .sidebar-btn-label {
        max-width: none;
        overflow: visible;
        font-size: 14px;
        font-weight: 600;
        color: inherit;
        line-height: 1.1;
        text-align: center;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer {
        border-top: 0;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.6rem;
        flex: 0 0 auto;
        min-width: 0;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-group {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 0.55rem;
        align-self: center;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-group-label {
        display: none;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-topbar-divider {
        width: 1px;
        height: 40px;
        background: #e2e8f0;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .sidebar-utility-btn,
    .dashboard-sidebar.dashboard-topbar .sidebar-footer .sidebar-logout-btn {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        height: 40px;
        padding: 0;
        border-radius: 999px;
        border: 1px solid #dbe4ee;
        background: #ffffff;
        color: #475569;
        box-shadow: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .sidebar-utility-btn .sidebar-btn-icon,
    .dashboard-sidebar.dashboard-topbar .sidebar-footer .sidebar-logout-btn .sidebar-btn-icon {
        width: auto;
        height: auto;
        margin: 0;
        font-size: 18px;
        line-height: 1;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .user-guide-toggle {
        width: auto;
        min-width: 0;
        min-height: 40px;
        height: 40px;
        padding: 0 0.85rem;
        gap: 0.45rem;
        font-size: 12px;
        font-weight: 600;
        color: #334155;
        line-height: 1;
        align-self: center;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .user-guide-toggle span:last-child {
        display: inline;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
        line-height: 1;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .user-guide-toggle.active {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #0f172a;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-language {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        height: 40px;
        padding: 0 0.8rem;
        border-radius: 999px;
        border: 1px solid #dbe4ee;
        background: #ffffff;
        box-shadow: none;
        line-height: 1;
        align-self: center;
        transform: translateY(-2px);
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-language-label {
        display: none;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-language-switch {
        display: inline-flex;
        align-items: center;
        gap: 0.24rem;
        line-height: 1;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-language-switch .lang-btn {
        border: 0;
        background: transparent;
        padding: 0;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        color: #475569;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-language-switch .lang-btn.active {
        color: #0f172a;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-language-switch .divider {
        color: #94a3b8;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-user-card {
        margin: 0;
        min-height: 40px;
        height: 40px;
        padding: 0 0.75rem 0 0.3rem;
        border-radius: 999px;
        border: 1px solid #dbe4ee;
        background: #f8fafc;
        box-shadow: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        line-height: 1;
        align-self: center;
        transform: translateY(-2px);
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-avatar {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        color: #047857;
        background: #d1fae5;
        box-shadow: none;
    }

    .dashboard-sidebar.dashboard-topbar .workspace-sidebar-user-copy {
        min-width: 0;
        display: block;
    }

    .dashboard-sidebar.dashboard-topbar #sidebar-username {
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        color: #334155;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }

    .dashboard-sidebar.dashboard-topbar #sidebar-user-title,
    .dashboard-sidebar.dashboard-topbar #sidebar-role {
        display: none;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .sidebar-utility-btn#workspace-sidebar-settings-btn {
        color: #475569;
        border-color: transparent;
        background: transparent;
        transform: translateY(-2px);
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .sidebar-logout-btn {
        color: #f97316;
        background: transparent;
        border-color: transparent;
        transform: translateY(-2px);
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .sidebar-utility-btn#workspace-sidebar-settings-btn:hover {
        background: #f8fafc;
        color: #0f172a;
        border-color: transparent;
    }

    .dashboard-sidebar.dashboard-topbar .sidebar-footer .sidebar-logout-btn:hover {
        background: #ffedd5;
        color: #ea580c;
        border-color: transparent;
    }
}
