/* ============================================================
   DESK ANIMATIONS STUDIO — DASHBOARD MASTER DESIGN (profile.css)
   ============================================================ */

:root {
    --bg-obsidian-core: #030712;
    --bg-surface-panel: #0b0f19;
    --bg-intercom-dock: #070a13;
    --bg-glass-blur: rgba(11, 15, 25, 0.7);
    --border-dim: rgba(255, 255, 255, 0.05);
    --border-active: rgba(59, 130, 246, 0.3);
    
    --neon-blue: #3b82f6;
    --neon-blue-glow: rgba(37, 99, 235, 0.25);
    --neon-emerald: #10b981;
    --neon-amber: #f59e0b;
    --neon-purple: #8b5cf6;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-dark-muted: #4b5563;
    
    --font-stack-sans: 'Plus Jakarta Sans', sans-serif;
    --font-stack-mono: 'JetBrains Mono', monospace;
}

/* ── GLOBAL CORE LAYOUT ───────────────────────────────────── */
body.dashboard-obsidian-shell {
    background: var(--bg-obsidian-core);
    color: var(--text-primary);
    font-family: var(--font-stack-sans);
    min-height: 100vh;
    margin: 0;
}

.app-layout-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

canvas {
    background-color: #0e121c;
    border: none;
    outline: none;
    box-shadow: none;
    display: block;
}

/* ── INTERACTIVE WORKSPACE SIDEBAR ────────────────────────── */
.workspace-sidebar {
    width: 280px;
    background: var(--bg-surface-panel);
    border-right: 1px solid var(--border-dim);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 40;
}

.sidebar-brand-wrapper {
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-logo {
    width: 100%;
    height: auto;
    max-height: 46px;
    object-fit: contain;
    object-position: center;
}

.brand-emblem-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}

.brand-title-string {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

.sidebar-navigation-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px;
    flex: 1;
}

.sidebar-navigation-links .nav-item-link {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-navigation-links .nav-item-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-navigation-links .nav-item-link.active {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #fff;
}

.link-svg-icon {
    width: 18px;
    height: 18px;
}

.sidebar-user-anchor-card {
    padding: 20px;
    margin: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-anchor-avatar-shell {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    padding: 1px;
    flex-shrink: 0;
}

.user-anchor-avatar-element {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-surface-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    overflow: hidden;
}

.user-anchor-meta-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-anchor-display-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-anchor-email-address {
    font-size: 0.72rem;
    color: var(--text-dark-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── DESPATCH WORKSPACE MAIN CONTENT FRAMEWORK ────────────── */
.main-workspace-dispatch {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-obsidian-core);
    overflow-y: auto;
}

.workspace-top-navigation-bar {
    height: 80px;
    background: var(--bg-glass-blur);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    flex-shrink: 0;
}

.navigation-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navigation-title-headline {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
}

.identity-badge-pill {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--neon-blue);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navigation-meta-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.portal-return-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.portal-return-link:hover {
    color: var(--neon-blue);
}

.workspace-action-logout-btn {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.workspace-action-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--neon-blue);
}

.theme-icon { width: 17px; height: 17px; }
.theme-icon-moon { display: none; }

[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* ── VIEW CONTROL SWITCHERS ──────────────────────────────── */
.content-panel-view {
    padding: 40px;
    flex: 1;
}

.content-panel-view.hidden-view {
    display: none !important;
}

.content-panel-view.active-view {
    display: block;
}

.content-panel-view.full-viewport-height-layout-mode {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    box-sizing: border-box;
}

/* Width cap only for Dashboard + Settings — Orders, Inbox, and Messages
   are left full-width since their content (tables, chat) benefits from it. */
#view-dashboard,
#view-profile {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── DASHBOARD WELCOME BANNER + QUICK ACTIONS ────────────── */
.dash-welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(59,130,246,0.10), rgba(139,92,246,0.06) 60%, transparent);
    border: 1px solid var(--border-dim);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.dash-welcome-banner::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
    pointer-events: none;
}
.dash-welcome-text { min-width: 0; position: relative; z-index: 1; }
.dash-welcome-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--neon-blue);
}
.dash-welcome-headline {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 6px 0 4px 0;
    letter-spacing: -0.4px;
}
.dash-welcome-headline #dashGreetingName { color: var(--neon-blue); }
.dash-welcome-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}
.dash-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.dash-quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
    white-space: nowrap;
}
.dash-quick-action-btn:hover {
    border-color: rgba(59,130,246,0.35);
    background: rgba(59,130,246,0.08);
    transform: translateY(-1px);
}
.dash-quick-action-btn.dash-quick-action-primary {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59,130,246,0.28);
}
.dash-quick-action-btn.dash-quick-action-primary:hover {
    background: #2563eb;
}
.dqa-icon { font-size: 0.95rem; }

/* ── UPCOMING DEADLINES PANEL ─────────────────────────────── */
.dash-deadlines-panel { margin-bottom: 32px; }
.dash-deadlines-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card shell — subtle depth, gradient edge accent, roomier layout */
.dash-deadline-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px 16px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
    border: 1px solid var(--border-dim);
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

/* Left accent bar instead of a plain dot */
.dash-deadline-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16,185,129,0.5);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.dash-deadline-row.deadline-soon::before   { background: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,0.5); }
.dash-deadline-row.deadline-urgent::before { background: #f43f5e; box-shadow: 0 0 10px rgba(244,63,94,0.55); }

.dash-deadline-row:hover {
    border-color: rgba(59,130,246,0.32);
    background: linear-gradient(135deg, rgba(59,130,246,0.07), rgba(59,130,246,0.015));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.dash-deadline-row.deadline-urgent:hover {
    border-color: rgba(244,63,94,0.35);
    box-shadow: 0 10px 24px rgba(244,63,94,0.15);
}

/* Avatar badge replaces the small dot — gives the card a visual anchor.
   Urgency still reads clearly through the ring color + left accent bar. */
.dash-deadline-urgency-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(16,185,129,0.08);
    border: 2px solid rgba(16,185,129,0.35);
    font-size: 1rem;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.dash-deadline-urgency-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dash-deadline-row.deadline-soon .dash-deadline-urgency-dot {
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.4);
}
.dash-deadline-row.deadline-urgent .dash-deadline-urgency-dot {
    background: rgba(244,63,94,0.08);
    border-color: rgba(244,63,94,0.45);
    box-shadow: 0 0 10px rgba(244,63,94,0.2);
}

/* Title + status stack */
.dash-deadline-title {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.1px;
}

/* Countdown gets its own pill instead of bare text */
.dash-deadline-countdown {
    font-family: var(--font-stack-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    letter-spacing: -0.1px;
}
.dash-deadline-row.deadline-soon .dash-deadline-countdown {
    color: #fbbf24;
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.2);
}
.dash-deadline-row.deadline-urgent .dash-deadline-countdown {
    color: #f43f5e;
    background: rgba(244,63,94,0.08);
    border-color: rgba(244,63,94,0.22);
    animation: deadlinePulse 1.8s ease-in-out infinite;
}
@keyframes deadlinePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(244,63,94,0); }
    50%      { box-shadow: 0 0 10px rgba(244,63,94,0.25); }
}

/* Trailing chevron so the card reads as clearly clickable */
.dash-deadline-row::after {
    content: '›';
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark-muted);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), color 0.25s ease;
}
.dash-deadline-row:hover::after {
    color: var(--neon-blue);
    transform: translateX(3px);
}

[data-theme="light"] .dash-deadline-row {
    background: linear-gradient(135deg, rgba(15,23,42,0.02), rgba(15,23,42,0.005));
}
[data-theme="light"] .dash-deadline-row:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(59,130,246,0.01));
}
[data-theme="light"] .dash-deadline-countdown {
    background: rgba(15,23,42,0.03);
    border-color: rgba(15,23,42,0.08);
}

/* ── REALTIME MATRIX METRIC CARDS ────────────────────────── */
.dashboard-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card-box {
    background: var(--bg-surface-panel);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.metric-card-box::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), transparent 70%);
    opacity: 0.6;
}
.metric-card-box:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

.metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-stack-sans);
}

/* Dashboard Segment Divider Framework */
.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
}

.workspace-card-panel {
    background: var(--bg-surface-panel);
    border: 1px solid var(--border-dim);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.workspace-card-panel:hover {
    border-color: rgba(255, 255, 255, 0.09);
}

.box-fixed-height {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.card-panel-header-block {
    margin-bottom: 24px;
}

.card-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.card-panel-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 6px 0 0 0;
    line-height: 1.5;
}

/* ── REALTIME PIPELINE HIGH-FIDELITY TABLE HEADERS ──────── */
.order-row-header {
    display: grid !important;
    grid-template-columns: 0px 1fr 1.7fr 1.5fr 1.2fr 0px !important;
    gap: 24px !important;
    padding: 0 24px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.orh-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.orh-spacer {
    display: block;
    width: 100%;
    height: 1px;
}

#orderTableHeader,
#dashboardOrderTableHeader {
    margin-bottom: 8px;
    margin-top: 4px;
    padding-top: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px 8px 0 0;
}

/* Base styling for header layout groups */
.orh-column-group {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

/* Title label sits in its own fixed column now */
.title-price-header-group {
    justify-content: flex-start;
}
.title-price-header-group .orh-title {
    margin-left: 0;
}
.title-price-header-group .orh-price {
    display: none; /* Price now has its own dedicated grid column below */
}

/* Alignment for Status & Due Date Track */
.status-date-header-group {
    display: flex;
    align-items: center;
    gap: 16px; /* Matches the updated gap layout of the data rows below */
    justify-content: flex-start;
}
.status-date-header-group .orh-status {
    margin-left: 0;
}
.status-date-header-group .orh-duedate {
    margin-left: 0;
}

/* Standalone PRICE header label, in its own fixed grid column */
.orh-price-standalone {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── PRODUCTION RECORD ROWS & COMPONENT TRACKS ─────────────── */
.dash-order-rows-wrap,
.order-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 0 0;
}

.order-rows-gap-provider {
    height: 12px;
    width: 100%;
}

.dash-order-row {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1.6fr) 90px minmax(0, 1.1fr) 44px !important;
    align-items: center;
    gap: 18px !important;
    padding: 16px 20px !important;
    margin-bottom: 0 !important;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.order-card {
    display: flex;
    flex-direction: column;
    gap: 54px !important;
    padding: 18px 24px !important;
    margin-bottom: -12px !important;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.order-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--card-accent, #3b82f6);
    opacity: 0.6;
}

.oc-top-row {
    display: grid !important;
    grid-template-columns: 44px 1.5fr 1.3fr 44px !important;
    align-items: center;
    gap: 24px !important;
    min-width: 0;
}

/* Tier Accent Maps */
.order-card.tier-coal    { --card-accent: #94a3b8; }
.order-card.tier-iron    { --card-accent: #3b82f6; }
.order-card.tier-diamond { --card-accent: #a78bfa; }

/* ── COMPONENT HOVER & IDLE INTERACTION MATRIX ───────────── */
.dash-order-row:hover, .order-card:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.12) !important;
}

/* ── COMPONENT TYPOGRAPHY LAYER & ROUNDED CAPSULE BADGES ── */
.dor-tier-subtitle {
    display: none !important; /* System fully hidden as per specification */
}

.dor-id-block {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.dor-id-block .order-title-badge-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.oc-id-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.oc-id-block .order-title-badge-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.order-title-badge-container {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
}

.order-title-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.1px;
    /* Allow this badge to actually shrink inside its flex/grid parent so
       max-width/ellipsis can take effect, instead of growing to fit its
       text and pushing the price tag out of place. */
    min-width: 0;
    flex-shrink: 1;
}

.dor-subject, .oc-subject {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-order-row:hover .order-title-badge,
.order-card:hover .order-title-badge {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* "New" badge — fixed size, never shrinks or wraps, sits between the
   title and the price without affecting the price tag's position. */
.order-card-new-badge {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── COMPONENT METRIC VISUAL ACCENTS (PRICE & TIMERS) ────── */
.order-price-tag {
    font-family: var(--font-stack-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.18);
    padding: 5px 20px;
    border-radius: 8px;
    flex-shrink: 0;
    letter-spacing: -0.2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    margin-left: 10px;
    justify-self: start;
}

.dor-price {
    font-family: var(--font-stack-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
    text-align: right;
    flex-shrink: 0;
}

.order-status-timer-group {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: start;
    min-width: 0;
    flex-wrap: nowrap;
}

.order-row-countdown {
    font-family: var(--font-stack-mono);
    font-size: 0.74rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    letter-spacing: -0.1px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-row-countdown.urgent {
    color: #f43f5e !important;
    background: rgba(244, 63, 94, 0.04) !important;
    border-color: rgba(244, 63, 94, 0.15) !important;
}

.order-row-countdown.pending {
    color: #475569 !important;
    background: transparent;
    border-color: transparent;
    font-style: italic;
}

.dash-order-row:hover .order-price-tag,
.order-card:hover .order-price-tag {
    background: #10b981;
    color: #030712;
    border-color: #10b981;
}

.dash-order-row:hover .order-row-countdown:not(.urgent):not(.pending),
.order-card:hover .order-row-countdown:not(.urgent):not(.pending) {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

/* ── STATUS PILL STATE INDEPENDENT SNAPPING ──────────────── */
.oc-status-pill {
    justify-self: start !important; 
    margin-left: 0 !important; 
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.oc-status-pill.status-submitted   { background: rgba(249,115,22,0.12);  color: #f97316; border: 1px solid rgba(249,115,22,0.25); }
.oc-status-pill.status-accepted    { background: rgba(59,130,246,0.12);  color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }
.oc-status-pill.status-in_progress { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }
.oc-status-pill.status-revision    { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.oc-status-pill.status-completed   { background: rgba(16,185,129,0.12);  color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.oc-status-pill.status-delivered   { background: rgba(99,102,241,0.12);  color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
.oc-status-pill.status-cancelled   { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

/* ── NEON PROGRESS GRAPH FILL LINES ─────────────────────── */
.oc-status-bar {
    position: relative;
    height: 32px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
}

.oc-status-bar-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    opacity: 0.35;
}

.oc-status-bar-label {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.oc-status-bar.status-submitted   .oc-status-bar-fill  { background: #f97316; }
.oc-status-bar.status-submitted   .oc-status-bar-label { color: #f97316; }
.oc-status-bar.status-accepted    .oc-status-bar-fill  { background: #3b82f6; }
.oc-status-bar.status-accepted    .oc-status-bar-label { color: #3b82f6; }
.oc-status-bar.status-in_progress .oc-status-bar-fill  { background: #a78bfa; }
.oc-status-bar.status-in_progress .oc-status-bar-label { color: #a78bfa; }
.oc-status-bar.status-revision    .oc-status-bar-fill  { background: #fbbf24; }
.oc-status-bar.status-revision    .oc-status-bar-label { color: #fbbf24; }
.oc-status-bar.status-completed   .oc-status-bar-fill  { background: #10b981; }
.oc-status-bar.status-completed   .oc-status-bar-label { color: #10b981; }
.oc-status-bar.status-cancelled   .oc-status-bar-fill  { background: #64748b; }
.oc-status-bar.status-cancelled   .oc-status-bar-label { color: #94a3b8; }

/* ── NEON GLOW IMPLEMENTATION ON SERVICE MEDIA SHELLS ───── */
.dor-service-image, .oc-service-image {
    width: 40px; 
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0;
}

.oc-service-image {
    width: 44px;
    height: 44px;
}

.dor-service-image img, .oc-service-image img,
.dor-service-image canvas, .oc-service-image canvas {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Subtle border brighten on hover, no heavy bloom */
.dash-order-row:hover .dor-service-image,
.order-card:hover .oc-service-image {
    border-color: rgba(59, 130, 246, 0.55) !important;
}

/* ── COMPONENT ACCOUNT IDENTIFICATION BRAND LOGOS ───────── */
.dor-user-logo, .oc-user-logo {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.oc-user-logo {
    width: 44px; height: 44px;
}

.dor-user-logo img, .oc-user-logo img,
.dor-user-logo canvas, .oc-user-logo canvas {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── COMPONENT SYSTEM FALLBACK EMPTY NOTIFICATIONS ───────── */
.dash-orders-empty, .orders-empty-state {
    text-align: center; padding: 60px 20px; color: #475569;
}
.dash-orders-empty span, .orders-empty-icon {
    font-size: 3rem; display: block; margin-bottom: 16px;
}
.orders-empty-state h3 {
    font-size: 1rem; font-weight: 600; color: #94a3b8; margin-bottom: 8px;
}

/* ── INTERCOM LINK CORE DOCK WIDGETS ─────────────────────── */
.premium-intercom-link-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-intercom-link-card + .premium-intercom-link-card {
    margin-top: 12px;
}

.premium-intercom-link-card:hover {
    background: rgba(59, 130, 246, 0.03);
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.intercom-branding-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-obsidian-core);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

.intercom-branding-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}

.intercom-meta-text {
    margin-left: 16px;
    flex: 1;
    min-width: 0;
}

.intercom-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.intercom-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.verified-studio-svg-badge {
    width: 15px; height: 15px; color: var(--neon-blue); flex-shrink: 0;
}

.intercom-status-hint {
    font-size: 0.78rem; color: var(--text-secondary); margin: 4px 0 0 0;
}

.intercom-chevron-icon {
    font-size: 1.1rem;
    color: var(--text-dark-muted);
    margin-left: 12px;
    transition: color 0.2s;
    font-family: var(--font-stack-mono);
}

.premium-intercom-link-card:hover .intercom-chevron-icon {
    color: var(--neon-blue);
}

.intercom-footer-status-bar {
    flex: 1; display: flex; align-items: flex-end; justify-content: flex-start; margin-top: 20px;
}

.operational-system-status-pill {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.15); border: 1px solid var(--border-dim); padding: 6px 14px; border-radius: 10px;
}

.status-indicator-dot {
    width: 6px; height: 6px; border-radius: 50%;
}
.status-indicator-dot.processing-active-pulse { background: var(--neon-amber); box-shadow: 0 0 8px var(--neon-amber); }
.status-indicator-dot.idle-clear-state { background: var(--neon-emerald); box-shadow: 0 0 8px var(--neon-emerald); }

.status-indicator-text-label {
    font-size: 0.78rem; color: var(--text-secondary);
}

.dashboard-embedded-table-scroll-wrap {
    flex: 1; overflow-y: auto;
}

/* ── RE-DESIGNED INTERCOM CRYPTO LIVE CHAT CORE STREAMS ── */
.overhauled-full-size-chat-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(16, 24, 48, 0.4), transparent), var(--bg-intercom-dock);
}

.chat-terminal-header-block {
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-dim);
    background: rgba(11, 18, 38, 0.5);
    backdrop-filter: blur(16px);
}

.chat-terminal-identity-left {
    display: flex; align-items: center;
}

.chat-terminal-avatar-frame {
    width: 44px; height: 44px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); margin-right: 16px; flex-shrink: 0;
}
.chat-terminal-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }

.chat-terminal-header-title-row { display: flex; align-items: center; gap: 8px; }
.chat-terminal-main-headline { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0; }

.chat-terminal-notification-badge {
    background: var(--neon-blue); color: #fff; padding: 1px 6px; border-radius: 6px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
}

.chat-terminal-availability-tracker { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; }
.availability-pulsing-neon-dot { width: 6px; height: 6px; background: var(--neon-emerald); border-radius: 50%; box-shadow: 0 0 8px var(--neon-emerald); }

.chat-terminal-stream-feed-scroller {
    flex: 1; overflow-y: auto; padding: 40px; display: flex; flex-direction: column; gap: 18px;
}
.chat-terminal-stream-feed-scroller::-webkit-scrollbar { width: 5px; }
.chat-terminal-stream-feed-scroller::-webkit-scrollbar-track { background: transparent; }
.chat-terminal-stream-feed-scroller::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.chat-terminal-msg-row-block {
    display: flex; gap: 14px; max-width: 75%; animation: terminalMessageReveal 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes terminalMessageReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-terminal-msg-row-block.transmit-client { align-self: flex-end; flex-direction: row-reverse; }
.chat-terminal-msg-row-block.transmit-support { align-self: flex-start; }

.chat-terminal-stream-avatar {
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; flex-shrink: 0;
}
.chat-terminal-stream-avatar.client-gradient-badge { background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #fff; }
.chat-terminal-stream-avatar.support-asset-badge { background: #111827; border: 1px solid var(--border-dim); }

.chat-terminal-bubble-composition-wrapper { display: flex; flex-direction: column; }
.chat-terminal-msg-row-block.transmit-client .chat-terminal-bubble-composition-wrapper { align-items: flex-end; }
.chat-terminal-msg-row-block.transmit-support .chat-terminal-bubble-composition-wrapper { align-items: flex-start; }

.chat-terminal-text-bubble { padding: 12px 18px; font-size: 0.9rem; line-height: 1.5; }
.chat-terminal-msg-row-block.transmit-client .chat-terminal-text-bubble { background: var(--neon-blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-terminal-msg-row-block.transmit-support .chat-terminal-text-bubble { background: var(--bg-surface-panel); color: var(--text-primary); border: 1px solid var(--border-dim); border-radius: 16px 16px 16px 4px; }

.chat-terminal-timestamp-tag { font-size: 0.68rem; color: var(--text-dark-muted); margin-top: 6px; font-family: var(--font-stack-mono); }

/* Broadcast Loading States */
.chat-terminal-typing-broadcast-row { display: none; align-items: center; gap: 8px; padding: 8px 40px; }
.pulsing-triple-dot-element { display: flex; gap: 4px; }
.pulse-dot { width: 5px; height: 5px; background: var(--text-dark-muted); border-radius: 50%; animation: dotBroadcastPulse 1.2s infinite ease-in-out both; }
.pulse-dot:nth-child(2) { animation-delay: 0.15s; }
.pulse-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBroadcastPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1.2); opacity: 1; }
}

.typing-broadcast-string-text { font-size: 0.78rem; color: var(--text-dark-muted); margin: 0; }

.chat-terminal-dock-input-area { padding: 0 40px 40px 40px; background: transparent; }
.chat-terminal-floating-dock-wrapper {
    background: var(--bg-surface-panel); border: 1px solid var(--border-dim); border-radius: 16px; padding: 8px 10px 8px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.chat-terminal-floating-dock-wrapper:focus-within { border-color: rgba(59, 130, 246, 0.4); }

.dock-utility-attach-file-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 1.1rem; cursor: pointer; }
.dock-core-text-input { flex: 1; background: transparent !important; border: none !important; outline: none !important; color: #fff; font-size: 0.9rem; font-family: inherit; }

.dock-action-transmit-message-btn {
    background: var(--neon-blue); color: #fff; border: none; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 0.82rem; cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.dock-action-transmit-message-btn:hover { background: #2563eb; }

/* ── DISCORD-STYLE REPLY / EDIT / DELETE ─────────────────── */
.chat-reply-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 8px 16px;
    margin: 0 0 -4px 0;
}
.chat-edit-preview-bar {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.25);
}
.chat-reply-preview-body {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.78rem;
}
.chat-reply-preview-label {
    color: var(--neon-blue);
    font-weight: 700;
    flex-shrink: 0;
}
.chat-edit-preview-bar .chat-reply-preview-label { color: #fbbf24; }
.chat-reply-preview-text {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-reply-preview-cancel {
    background: transparent;
    border: none;
    color: var(--text-dark-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.15s;
}
.chat-reply-preview-cancel:hover { color: #f87171; background: rgba(239,68,68,0.08); }

.chat-terminal-bubble-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-terminal-msg-row-block.transmit-client .chat-terminal-bubble-row { flex-direction: row-reverse; }

.chat-msg-actions-row {
    display: flex;
    gap: 2px;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.chat-terminal-msg-row-block:hover .chat-msg-actions-row {
    opacity: 1;
    transform: translateY(0);
}
.chat-msg-action-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.chat-msg-action-btn:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.1);
    color: #fff;
}
.chat-msg-action-btn[data-chat-action="delete"]:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.chat-msg-edited-tag {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.6;
    margin-left: 6px;
    font-style: italic;
}

.chat-terminal-text-bubble-deleted {
    background: transparent !important;
    border: 1px dashed var(--border-dim) !important;
}
.chat-msg-deleted-text {
    color: var(--text-dark-muted);
    font-style: italic;
    font-size: 0.85rem;
}

.chat-reply-quote-block {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--text-dark-muted);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 5px 10px;
    margin-bottom: 4px;
    max-width: 100%;
    cursor: pointer;
    transition: all 0.15s;
}
.chat-reply-quote-block:hover {
    border-color: rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.05);
}
.chat-reply-quote-icon { flex-shrink: 0; }
.chat-reply-quote-sender { font-weight: 700; color: var(--neon-blue); flex-shrink: 0; }
.chat-reply-quote-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-reply-quote-deleted .chat-reply-quote-text { font-style: italic; }

@keyframes chatJumpHighlightPulse {
    0%, 100% { background: transparent; }
    30% { background: rgba(59, 130, 246, 0.12); }
}
.chat-msg-jump-highlight .chat-terminal-text-bubble {
    animation: chatJumpHighlightPulse 1.2s ease;
}

[data-theme="light"] .chat-reply-preview-bar { background: rgba(59,130,246,0.05); }
[data-theme="light"] .chat-edit-preview-bar { background: rgba(251,191,36,0.06); }
[data-theme="light"] .chat-reply-quote-block { background: rgba(15,23,42,0.02); }
[data-theme="light"] .chat-msg-action-btn { background: rgba(15,23,42,0.03); }

/* ── DATA REGISTRATION DATA GRID HOVER MODULES ───────────── */
.modern-segmented-tab-filter-row { display: flex; gap: 6px; margin-bottom: 24px; }
.segmented-filter-pill {
    background: transparent; border: 1px solid var(--border-dim); color: var(--text-secondary); padding: 8px 16px; border-radius: 10px; font-size: 0.82rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; transition: all 0.2s;
}
.segmented-filter-pill.active { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.15); color: #fff; }
.pill-badge-counter-value { font-family: var(--font-stack-mono); font-size: 0.7rem; background: rgba(255,255,255,0.05); padding: 1px 6px; border-radius: 6px; }

.modern-premium-data-grid-container { background: var(--bg-surface-panel); border: 1px solid var(--border-dim); border-radius: 16px; overflow: hidden; }
.premium-data-grid { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.premium-data-grid th { color: var(--text-dark-muted); font-weight: 600; padding: 16px 20px; border-bottom: 1px solid var(--border-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }
.premium-data-grid td { padding: 20px; border-bottom: 1px solid var(--border-dim); vertical-align: middle; }
.premium-data-grid tbody tr:last-child td { border: none; }

.order-id-string-hash { font-family: var(--font-stack-mono); color: #fff; font-weight: 500; }
.order-date-string-value { font-family: var(--font-stack-mono); color: var(--text-secondary); font-size: 0.85rem; }
.order-price-string-valuation-tag { font-family: var(--font-stack-mono); color: #fff; font-weight: 600; text-align: right; }

.premium-tier-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.premium-tier-badge.package-tier-diamond { background: rgba(6, 182, 212, 0.08); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.15); }
.premium-tier-badge.package-tier-gold { background: rgba(251, 191, 36, 0.08); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.15); }
.premium-tier-badge.package-tier-iron { background: rgba(148, 163, 184, 0.08); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.15); }

.pipeline-progress-status-container-wrapper { display: flex; flex-direction: column; gap: 6px; }
.pipeline-status-text-value { font-size: 0.8rem; font-weight: 500; }
.pipeline-status-text-value.state-label-rendering { color: var(--neon-amber); }
.pipeline-status-text-value.state-label-revision { color: var(--neon-purple); }
.pipeline-status-text-value.state-label-completed { color: var(--neon-emerald); }

.premium-neon-progress-bar-track { width: 140px; height: 4px; background: rgba(255,255,255,0.03); border-radius: 4px; overflow: hidden; }
.premium-neon-progress-bar-fill { height: 100%; background: var(--neon-blue); }
.premium-neon-progress-bar-fill.accent-color-map-rendering { background: var(--neon-amber); box-shadow: 0 0 6px var(--neon-amber); }
.premium-neon-progress-bar-fill.accent-color-map-revision { background: var(--neon-purple); box-shadow: 0 0 6px var(--neon-purple); }
.premium-neon-progress-bar-fill.accent-color-map-completed { background: var(--neon-emerald); }

.grid-empty-state-fallback-message { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; gap: 12px; }
.empty-state-symbol { font-size: 1.5rem; }
.grid-empty-state-fallback-message p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); }

/* ── ACCOUNT CONFIGURATION FIELD MODULES ─────────────────── */
.text-border-demarcation { border-bottom: 1px solid var(--border-dim); padding-bottom: 20px; }
.form-control-layout-block { margin-bottom: 24px; }
.control-label-element-label { display: block; font-size: 0.75rem; color: var(--text-dark-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; font-weight: 700; }
.premium-text-input-field, .premium-textarea-input-field { width: 100%; background: rgba(0,0,0,0.15); border: 1px solid var(--border-dim); border-radius: 12px; padding: 14px; color: #fff; font-family: inherit; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.premium-text-input-field:focus, .premium-textarea-input-field:focus { border-color: rgba(59, 130, 246, 0.3); }
.premium-textarea-input-field { height: 110px; resize: none; line-height: 1.5; }

.avatar-selection-matrix-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.avatar-selection-matrix-grid .avatar-matrix-option-box { background: rgba(255,255,255,0.01); border: 1px solid var(--border-dim); border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; font-size: 1.2rem; transition: all 0.2s; }
.avatar-selection-matrix-grid .avatar-matrix-option-box:hover { background: rgba(255,255,255,0.03); }
.avatar-selection-matrix-grid .avatar-matrix-option-box.active { border-color: var(--neon-blue); background: rgba(59, 130, 246, 0.05); }
.hardware-upload-action-box { display: flex; align-items: center; justify-content: center; }

.premium-action-submit-form-btn { background: var(--neon-blue); color: #fff; border: none; padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 0.88rem; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.premium-action-submit-form-btn:hover { background: #2563eb; }

.workspace-dynamic-alert-banner { padding: 14px 24px; border-radius: 12px; margin-bottom: 24px; font-size: 0.88rem; font-weight: 500; display: none; margin: 32px 40px 0 40px; }
.workspace-dynamic-alert-banner.notification-success { background: rgba(16, 185, 129, 0.06); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--neon-emerald); }
.workspace-dynamic-alert-banner.notification-error { background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.2); color: #f87171; }

/* ── CYBERPUNK SECURITY SYSTEM INTEGRATED LOCKDOWNS ──────── */
@keyframes lockTerminalShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.lock-shake-active {
    animation: lockTerminalShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.03) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1) !important;
}

.lock-shake-active .intercom-chevron-icon {
    color: #f87171 !important; transform: rotate(90deg);
}

.unavailable-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(3, 7, 18, 0.85); color: #d2d5d6; font-family: var(--font-stack-sans); font-size: 0.9rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 5;
}

#aiAssistantCard.card-locked {
    border-color: #b69e9e !important; background: #030712 !important; cursor: not-allowed; transform: scale(0.98) !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2) !important;
}

#aiAssistantCard.card-locked > *:not(.unavailable-overlay) { filter: blur(6px) grayscale(100%); opacity: 0.05; transition: all 0.3s ease; }
#aiAssistantCard.card-locked .unavailable-overlay { opacity: 1; transform: translateY(0); }

/* ── PREMIUM ORDER DETAILED STRUCTURAL MODALS (ODM) ──────── */
.odm-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.odm-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(8px); }
.odm-container {
    position: relative; z-index: 1; display: flex; gap: 0; background: #0d1526; border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; width: 100%; max-width: 860px; max-height: 90vh; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.6); animation: odmSlideIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes odmSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.odm-close-btn {
    position: absolute; top: 16px; right: 16px; z-index: 10; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #94a3b8; transition: all 0.2s;
}
.odm-close-btn svg { width: 16px; height: 16px; }
.odm-close-btn:hover { background: rgba(244,63,94,0.1); color: #f43f5e; }

.odm-left-panel { width: 260px; min-width: 260px; background: #090d1a; border-right: 1px solid rgba(255,255,255,0.06); padding: 32px 24px; overflow-y: auto; }
.odm-right-panel { flex: 1; padding: 32px 28px; overflow-y: auto; }
.odm-order-title { font-size: 1.45rem; font-weight: 800; line-height: 1.25; margin-bottom: 14px; background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.2px; }
.odm-tier-row { display: flex; align-items: center; gap: 10px; }
.odm-tier-badge { font-size: 0.75rem; font-weight: 600; background: rgba(59,130,246,0.1); color: #3b82f6; padding: 3px 8px; border-radius: 6px; }
.odm-price { font-size: 1rem; font-weight: 700; color: #10b981; }
.odm-divider { border: none; border-top: 1px solid rgba(255,255,255,0.05); margin: 20px 0; }
.odm-label { font-size: 0.72rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.odm-countdown-display { font-family: var(--font-stack-mono); font-size: 1.05rem; font-weight: 600; color: #f8fafc; background: rgba(255,255,255,0.04); border-radius: 8px; padding: 10px 14px; text-align: center; }

/* Timeline Tracking Steps inside Modals */
.odm-timeline-steps { display: flex; flex-direction: column; gap: 0; }
.odm-step { display: flex; align-items: flex-start; gap: 10px; position: relative; padding-bottom: 18px; }
.odm-step:last-child { padding-bottom: 0; }
.odm-step-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 3px; flex-shrink: 0; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.12); position: relative; z-index: 1; }
.odm-step.done .odm-step-dot { background: #10b981; border-color: #10b981; }
.odm-step.active .odm-step-dot { background: #3b82f6; border-color: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.odm-step-line { position: absolute; left: 4px; top: 13px; bottom: 0; width: 2px; background: rgba(255,255,255,0.06); }
.odm-step.done .odm-step-line { background: rgba(16,185,129,0.3); }
.odm-step-text { font-size: 0.8rem; color: #64748b; }
.odm-step.done .odm-step-text, .odm-step.active .odm-step-text { color: #f8fafc; }

.odm-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: #f8fafc; }
.odm-detail-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.odm-detail-row.full-row { display: block; }
.odm-detail-label { font-size: 0.72rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.6px; }
.odm-detail-value { font-size: 0.9rem; color: #cbd5e1; margin-top: 2px; }
.odm-desc-text { line-height: 1.6; margin-top: 6px; }

.odm-status-info-banner { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.15); border-radius: 10px; }
.odm-status-info-banner span { font-size: 1.2rem; }
.odm-status-info-banner p { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; }

/* ── PIPELINE ACTIVITY GRAPH CARD ────────────────────────── */
.activity-graph-wrap { display: flex; align-items: center; gap: 26px; margin-bottom: 20px; }

.activity-donut-shell { flex-shrink: 0; }
.activity-donut {
    --da-bg: conic-gradient(rgba(255,255,255,0.05) 0 100%);
    width: 108px; height: 108px; border-radius: 50%;
    background: var(--da-bg);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: background 0.6s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.35);
}
.activity-donut::before {
    content: '';
    position: absolute; inset: 12px; border-radius: 50%;
    background: var(--bg-surface-panel);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.activity-donut-center {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.activity-donut-total { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.1; }
.activity-donut-caption { font-size: 0.66rem; color: var(--text-dark-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px; }

.activity-legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; min-width: 0; }
.activity-legend-row { display: flex; align-items: center; gap: 10px; }
.activity-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }
.activity-legend-name { font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; flex-shrink: 0; width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-legend-track { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.05); overflow: hidden; min-width: 0; }
.activity-legend-fill { height: 100%; border-radius: 4px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.activity-legend-count { font-family: var(--font-stack-mono); font-size: 0.76rem; font-weight: 700; color: #fff; width: 20px; text-align: right; flex-shrink: 0; }

.activity-legend-empty { font-size: 0.82rem; color: var(--text-dark-muted); padding: 4px 0; }

.activity-trend-row {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-dim);
    display: flex; flex-direction: column; gap: 10px;
}
.activity-trend-label { font-size: 0.72rem; font-weight: 700; color: var(--text-dark-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.activity-sparkline { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.activity-spark-bar {
    flex: 1; min-width: 0; border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, rgba(59,130,246,0.9), rgba(59,130,246,0.25));
    transition: height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    position: relative;
}
.activity-spark-bar:hover { opacity: 0.8; }
.activity-spark-bar.spark-current { background: linear-gradient(180deg, rgba(16,185,129,0.95), rgba(16,185,129,0.25)); }

/* ── PRESETS INTERFACE COMPONENT FILTERS & ACTIONS ────────── */
.new-order-btn {
    display: inline-flex; align-items: center; gap: 6px; background: var(--neon-blue); color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer;
}
.new-order-btn:hover { background: #2563eb; transform: translateY(-1px); }

.order-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.order-filter-pill {
    display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); color: #64748b; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.order-filter-pill.active { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #3b82f6; }
.filter-count { background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 10px; font-size: 0.72rem; }
.order-filter-pill.active .filter-count { background: rgba(59,130,246,0.2); }

/* ── HIGH-FIDELITY RESPONSIVE GRAPH RESPONSIVENESS MATRICES ── */
@media (max-width: 1024px) {
    .dashboard-metrics-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .dashboard-top-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .dash-welcome-banner { flex-direction: column; align-items: flex-start; padding: 22px; }
    .dash-quick-actions { width: 100%; }
    .dash-quick-action-btn { flex: 1; justify-content: center; }
}

/* ── MOBILE NAV TOGGLE (hamburger) ───────────────────────── */
.mobile-nav-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    margin-right: 14px;
    flex-shrink: 0;
}
.mobile-nav-toggle-btn svg { width: 18px; height: 18px; }
.mobile-nav-toggle-btn:hover { border-color: rgba(59, 130, 246, 0.3); color: var(--neon-blue); }

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.6);
    z-index: 45;
}
.mobile-nav-backdrop.open { display: block; }

@media (max-width: 768px) {
    .mobile-nav-toggle-btn { display: flex; }

    .workspace-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.35);
    }
    .workspace-sidebar.mobile-open {
        transform: translateX(0);
    }

    .workspace-top-navigation-bar { padding: 0 24px; }
    .content-panel-view { padding: 24px; }
}

@media (max-width: 700px) {
    .dash-order-row { grid-template-columns: 32px 1fr auto 32px !important; row-gap: 10px; }
    .dor-user-logo { width: 32px; height: 32px; }
    .order-status-timer-group { gap: 12px !important; }
    .order-price-tag { margin-left: 0 !important; }
}

@media (max-width: 600px) {
    #orderTableHeader, #dashboardOrderTableHeader { display: none !important; }
    .order-card { padding: 16px; gap: 12px; }
    .oc-top-row { grid-template-columns: 36px 1fr auto 36px !important; gap: 10px; }
    .oc-user-logo { width: 36px; height: 36px; }
    .order-price-tag { margin-left: 0 !important; padding: 5px 12px; }
    .order-status-timer-group { gap: 8px !important; }
    .oc-id-block { gap: 8px !important; }
}


.orh-main-title {
    margin: 0px;
    /* your specific edits here, e.g., margin-left: 10px; */
}

/* This will ONLY affect the Price word */
.orh-main-price {
    margin-left: 0px;
    /* your specific edits here */
}

/* This will ONLY affect the Status word */
.orh-main-status {
    margin-right: 100px;
    /* your specific edits here */
}

/* This will ONLY affect the Due Date word */
.orh-main-duedate {
    margin: 0px;
    /* your specific edits here */
}
/* ── Order Page Sidebar Status Pills (order-page-controller.js) ── */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.status-pill--inprogress { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }
.status-pill--delivered  { background: rgba(99,102,241,0.12);  color: #818cf8; border: 1px solid rgba(99,102,241,0.25);  }
.status-pill--revision   { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.25);  }
.status-pill--completed  { background: rgba(16,185,129,0.12);  color: #10b981; border: 1px solid rgba(16,185,129,0.25);  }
.status-pill--cancelled  { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }
.status-pill--default    { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }
.oc-action-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.oc-btn-accept,
.oc-btn-revision {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.oc-btn-accept:hover,
.oc-btn-revision:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.oc-btn-accept {
    background: #10b981;
    color: #fff;
}

.oc-btn-revision {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
/* ═══════════════════════════════════════════════════════════════
   INBOX — SUPPORT TICKET CARDS
   ═══════════════════════════════════════════════════════════════ */

/* Ticket card stacks like an order card but with a teal accent line */
.ticket-card {
    --card-accent: #06b6d4; /* cyan — distinct from order blue/purple */
}

/* Service emoji in the avatar slot */
.ticket-icon-shell {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.06) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.12) !important;
}

/* Ticket ID tag — monospace badge next to the title */
.ticket-id-tag {
    font-family: var(--font-stack-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.18);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Budget pill — standalone, not inheriting oc-service-image fixed dims */
.ticket-budget-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.18);
    box-shadow: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.ticket-budget-inner {
    font-family: var(--font-stack-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #06b6d4;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

/* Ticket status pill overrides (reuse .oc-status-pill colours) */
.ticket-status-pill.status-open       { background: rgba(6,182,212,0.10);  color: #06b6d4; border: 1px solid rgba(6,182,212,0.25); }
.ticket-status-pill.status-in_review  { background: rgba(251,191,36,0.10); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.ticket-status-pill.status-resolved   { background: rgba(16,185,129,0.10); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.ticket-status-pill.status-closed     { background: rgba(100,116,139,0.10);color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }



/* Hover — cyan glow instead of blue */
.ticket-card:hover {
    border-color: rgba(6, 182, 212, 0.45) !important;
    box-shadow: 0 12px 26px rgba(0,0,0,0.32), 0 0 0 1px rgba(6,182,212,0.15) !important;
}

.ticket-card:hover .order-title-badge {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.ticket-card:hover .ticket-icon-shell {
    border-color: rgba(6, 182, 212, 0.55) !important;
}
/* ══════════════════════════════════════════════════════════════
   LIGHT THEME — applied via [data-theme="light"] on <body>
   ══════════════════════════════════════════════════════════════ */
[data-theme="light"] {
    --bg-obsidian-core: #f4f5f7;
    --bg-surface-panel: #ffffff;
    --bg-intercom-dock: #f7f8fa;
    --bg-glass-blur: rgba(255, 255, 255, 0.78);
    --border-dim: rgba(15, 23, 42, 0.08);
    --border-active: rgba(59, 130, 246, 0.35);

    --text-primary: #1e293b;
    --text-secondary: #5b6472;
    --text-dark-muted: #94a3b8;
}

[data-theme="light"] canvas { background-color: #eef0f4; }

/* Headline / label text that was hardcoded to white or near-white */
[data-theme="light"] .brand-title-string,
[data-theme="light"] .navigation-title-headline,
[data-theme="light"] .user-anchor-display-name,
[data-theme="light"] .order-title-badge,
[data-theme="light"] .dor-subject,
[data-theme="light"] .oc-subject,
[data-theme="light"] .card-panel-title,
[data-theme="light"] .metric-value,
[data-theme="light"] .chat-terminal-main-headline,
[data-theme="light"] .intercom-title,
[data-theme="light"] .activity-donut-total,
[data-theme="light"] .activity-legend-count,
[data-theme="light"] .odm-detail-value,
[data-theme="light"] .odm-step-text,
[data-theme="light"] .odm-countdown-display,
[data-theme="light"] .order-id-string-hash,
[data-theme="light"] .order-price-string-valuation-tag,
[data-theme="light"] .premium-tier-badge,
[data-theme="light"] .grid-empty-state-fallback-message p {
    color: var(--text-primary);
    text-shadow: none;
}

[data-theme="light"] .dor-price { color: var(--text-primary); }

/* Order / ticket cards — swap the dark translucent fill for a light one */
[data-theme="light"] .dash-order-row,
[data-theme="light"] .order-card {
    background: #fbfbfd;
    border-color: rgba(15, 23, 42, 0.07);
}
[data-theme="light"] .dash-order-row:hover,
[data-theme="light"] .order-card:hover {
    background: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08), 0 0 16px rgba(59, 130, 246, 0.12) !important;
}
[data-theme="light"] .order-title-badge {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .dor-user-logo,
[data-theme="light"] .oc-user-logo {
    background: rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .order-row-countdown {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.07);
    color: #64748b;
}

/* Form controls */
[data-theme="light"] .premium-text-input-field,
[data-theme="light"] .premium-textarea-input-field,
[data-theme="light"] .dock-core-text-input {
    color: var(--text-primary);
}
[data-theme="light"] .premium-text-input-field,
[data-theme="light"] .premium-textarea-input-field {
    background: rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .avatar-matrix-option-box {
    background: rgba(15, 23, 42, 0.02);
}
[data-theme="light"] .avatar-selection-matrix-grid .avatar-matrix-option-box:hover {
    background: rgba(15, 23, 42, 0.05);
}

/* Order detail modal */
[data-theme="light"] .odm-container {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .odm-left-panel {
    background: #f7f8fa;
    border-color: rgba(15, 23, 42, 0.07);
}
[data-theme="light"] .odm-order-title {
    background: linear-gradient(135deg, #1e293b 0%, #64748b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="light"] .odm-countdown-display {
    background: rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .odm-backdrop {
    background: rgba(15, 23, 42, 0.35);
}

/* Activity graph donut hole */
[data-theme="light"] .activity-donut::before {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .activity-donut {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Scrollbars + chat */
[data-theme="light"] .chat-terminal-stream-feed-scroller::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .chat-terminal-header-block {
    background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .chat-terminal-floating-dock-wrapper {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* Welcome banner + deadlines on light theme */
[data-theme="light"] .dash-welcome-banner {
    background: linear-gradient(120deg, rgba(59,130,246,0.08), rgba(139,92,246,0.05) 60%, transparent);
    border-color: rgba(15,23,42,0.07);
}
[data-theme="light"] .dash-quick-action-btn {
    background: rgba(15,23,42,0.02);
    color: var(--text-primary);
}
[data-theme="light"] .dash-quick-action-btn:hover {
    background: rgba(59,130,246,0.08);
}
[data-theme="light"] .dash-deadline-row {
    background: #fbfbfd;
    border-color: rgba(15,23,42,0.07);
}
[data-theme="light"] .dash-deadline-title { color: var(--text-primary); }

/* Sidebar + top bar depth on white */
[data-theme="light"] .workspace-sidebar {
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .sidebar-navigation-links .nav-item-link.active {
    background: rgba(59, 130, 246, 0.07);
}
[data-theme="light"] .sidebar-user-anchor-card {
    background: rgba(15, 23, 42, 0.02);
}
[data-theme="light"] .metric-card-box:hover,
[data-theme="light"] .workspace-card-panel {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

/* ══════════════════════════════════════════════════════════════
   PROFESSIONAL POLISH LAYER — accessibility, consistency, restraint
   ══════════════════════════════════════════════════════════════ */

/* Consistent, visible keyboard focus across every interactive element */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-item-link:focus-visible,
.order-card:focus-visible,
.dash-order-row:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: 2px;
    border-radius: 8px;
}
[data-theme="light"] button:focus-visible,
[data-theme="light"] a:focus-visible,
[data-theme="light"] input:focus-visible,
[data-theme="light"] textarea:focus-visible {
    outline-color: rgba(37, 99, 235, 0.6);
}

/* Slightly tighter, more deliberate heading rhythm */
.navigation-title-headline,
.card-panel-title,
.chat-terminal-main-headline {
    letter-spacing: -0.3px;
}

/* Section title spacing consistency between metrics row and top row */
.dashboard-metrics-row + .dashboard-top-row { margin-top: 0; }

/* Buttons — unify the interactive feel across primary actions */
.new-order-btn,
.premium-action-submit-form-btn,
.dock-action-transmit-message-btn {
    letter-spacing: 0.1px;
}
.new-order-btn:active,
.premium-action-submit-form-btn:active,
.dock-action-transmit-message-btn:active,
.oc-btn-accept:active,
.oc-btn-revision:active {
    transform: translateY(0) scale(0.98);
}

/* Empty states — calmer icon treatment, consistent copy hierarchy */
.dash-orders-empty span,
.orders-empty-icon,
.grid-empty-state-fallback-message .empty-state-symbol {
    opacity: 0.55;
}
.orders-empty-state h3 { letter-spacing: -0.1px; }

/* Table header restraint — remove uppercase shadow harshness */
.orh-label { text-shadow: none; }

/* Segmented filter pills: crisper active state */
.order-filter-pill.active { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }

/* Scrollbar polish applied dashboard-wide, not just chat */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }
[data-theme="light"] * { scrollbar-color: rgba(15,23,42,0.15) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.12); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,0.2); }

/* Modal close button — calmer resting state, clear hover intent */
.odm-close-btn { transition: background 0.2s, color 0.2s, border-color 0.2s; }

/* Sidebar active nav — crisper left accent instead of full-pill glow */
.sidebar-navigation-links .nav-item-link.active {
    position: relative;
}
.sidebar-navigation-links .nav-item-link.active::before {
    content: '';
    position: absolute;
    left: -16px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px;
    background: var(--neon-blue);
    border-radius: 0 3px 3px 0;
}

/* Identity badge pill — quieter, more legible at small size */
.identity-badge-pill { font-weight: 700; }

/* Consistent card corner radius across the dashboard's primary surfaces */
.workspace-card-panel,
.modern-premium-data-grid-container,
.odm-container { border-radius: 18px; }

/* ══════════════════════════════════════════════════════════════
   SETTINGS TAB — expanded preference cards
   ══════════════════════════════════════════════════════════════ */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.settings-grid .settings-span-2 { grid-column: 1 / -1; }

.settings-hint-text {
    font-size: 0.78rem;
    color: var(--text-dark-muted);
    margin: 14px 2px 0 2px;
}

/* Appearance card */
.appearance-option-row { display: flex; gap: 12px; }
.appearance-option-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dim);
    border-radius: 14px;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.appearance-option-btn:hover { border-color: rgba(59, 130, 246, 0.25); }
.appearance-option-btn.active {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.06);
    color: #fff;
}
.appearance-swatch {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.appearance-swatch-dark { background: linear-gradient(135deg, #0b0f19 0%, #1c2333 100%); }
.appearance-swatch-light { background: linear-gradient(135deg, #ffffff 0%, #e4e7ec 100%); }

/* Notification toggle rows */
.settings-toggle-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-dim);
}
.settings-toggle-row:last-child { border-bottom: none; padding-bottom: 4px; }
.settings-toggle-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.settings-toggle-title { font-size: 0.86rem; font-weight: 600; color: #f1f5f9; }
.settings-toggle-desc { font-size: 0.76rem; color: var(--text-dark-muted); line-height: 1.4; }

.settings-switch {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-dim);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 0;
}
.settings-switch-knob {
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), background 0.2s ease;
}
.settings-switch[aria-checked="true"] {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
}
.settings-switch[aria-checked="true"] .settings-switch-knob {
    transform: translateX(18px);
    background: #ffffff;
}

/* Account details */
.account-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.account-detail-item { display: flex; flex-direction: column; gap: 8px; }
.account-detail-value { font-size: 0.9rem; font-weight: 600; color: #f1f5f9; }

.settings-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-dim);
    border-radius: 14px;
}
.settings-danger-btn {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.settings-danger-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
}

@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
    .account-details-grid { grid-template-columns: 1fr; }
}

/* Light-theme adjustments for the new settings cards */
[data-theme="light"] .appearance-option-btn { background: rgba(15,23,42,0.02); color: var(--text-secondary); }
[data-theme="light"] .appearance-option-btn.active { color: var(--text-primary); }
[data-theme="light"] .settings-toggle-title,
[data-theme="light"] .account-detail-value { color: var(--text-primary); }
[data-theme="light"] .settings-danger-zone { background: rgba(15,23,42,0.015); }
/* ══════════════════════════════════════════════════════════════
   DASHBOARD ENHANCEMENTS — metric trends
   ══════════════════════════════════════════════════════════════ */
.metric-trend {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dark-muted);
}
.metric-trend:empty { display: none; }
.metric-trend-up { color: var(--neon-emerald); }
.metric-trend-down { color: #f87171; }
.metric-trend-neutral { color: var(--text-dark-muted); }

/* ══════════════════════════════════════════════════════════════
   ORDERS — SEARCH + SORT TOOLBAR
   ══════════════════════════════════════════════════════════════ */
.order-toolbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-search-field {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.order-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-dark-muted);
    pointer-events: none;
}
.order-search-input {
    width: 100%;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 11px 14px 11px 40px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.order-search-input:focus { border-color: rgba(59, 130, 246, 0.35); }
.order-search-input::placeholder { color: var(--text-dark-muted); }

.order-sort-select {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 11px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.order-sort-select:focus { border-color: rgba(59, 130, 246, 0.35); }

.orders-no-match-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-dark-muted);
    font-size: 0.85rem;
}

[data-theme="light"] .order-search-input,
[data-theme="light"] .order-sort-select {
    background: rgba(15, 23, 42, 0.03);
}

/* ══════════════════════════════════════════════════════════════
   IMAGE LIGHTBOX (shared by profile.js and order.html)
   ══════════════════════════════════════════════════════════════ */
.img-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(3,4,8,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.img-lightbox-overlay.hidden { display: none; }
.img-lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}

/* ══════════════════════════════════════════════════════════════
   ORDER / TICKET GRID — "LOAD MORE" PAGINATION CONTROL
   ══════════════════════════════════════════════════════════════ */
.grid-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0 4px;
}
.grid-load-more-btn {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.25);
    color: #60a5fa;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.grid-load-more-btn:hover { background: rgba(59,130,246,0.14); }