.hermes-workspace-shell {
        margin-top: 12px;
        padding-bottom: 56px;
        background: var(--hermes-paper);
        color: var(--hermes-ink);
        font-family: Manrope, "Segoe UI", sans-serif;
    }

    .hermes-workspace-shell .mud-typography,
    .hermes-workspace-shell .mud-table,
    .hermes-workspace-shell .mud-table-cell,
    .hermes-workspace-shell .mud-input,
    .hermes-workspace-shell .mud-input-control,
    .hermes-workspace-shell .mud-select,
    .hermes-workspace-shell .mud-switch-label,
    .hermes-workspace-shell .mud-form-label { color: var(--hermes-ink); }

    .hermes-workspace-shell .muted-text { color: var(--hermes-muted) !important; }
    .hermes-workspace-shell .workspace-wrap-text { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }

    .workspace-command-hero {
        min-height: 0;
        padding: clamp(20px, 3vw, 36px) 0 24px;
        border-bottom: 1px solid var(--hermes-line);
    }

    .workspace-command-hero .mud-typography-h4 {
        max-width: 800px;
        color: var(--hermes-ink) !important;
        font-size: clamp(2rem, 4.2vw, 3.5rem);
        font-weight: 750;
        letter-spacing: -.055em;
        line-height: 1.03;
    }

    .workspace-command-hero .mud-button-text-primary {
        padding-left: 0;
        color: var(--hermes-accent) !important;
        font-family: "JetBrains Mono", Consolas, monospace;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .workspace-hero-actions { gap: 10px; }

    .workspace-metrics {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin: 0 0 28px;
        border-top: 1px solid var(--hermes-line);
        border-bottom: 1px solid var(--hermes-line);
    }

    .metric-item {
        min-width: 0;
        padding: 22px;
        border-right: 1px solid var(--hermes-line);
        background: transparent;
    }
    .metric-item:last-child { border-right: 0; }
    .metric-item .mud-typography-overline,
    .workspace-preparation .mud-typography-overline {
        color: var(--hermes-muted) !important;
        font-family: "JetBrains Mono", Consolas, monospace;
        font-size: .65rem;
        font-weight: 700;
        letter-spacing: .1em;
    }
    .metric-item .mud-typography-h6 {
        color: var(--hermes-ink) !important;
        font-weight: 750;
        letter-spacing: -.025em;
        line-height: 1.2;
    }
    .metric-item .metric-line { display: block; margin-top: 5px; line-height: 1.45; }
    .metric-item--subscription .subscription-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .metric-item--subscription .subscription-plan-name { min-width: 0; }
    .credit-bar-section { margin-top: 10px; }
    .credit-bar { height: 5px !important; margin-bottom: 4px; }
    .credit-bar-values { display: flex; justify-content: flex-end; font-family: "JetBrains Mono", Consolas, monospace; }

    .workspace-quick-connect {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin: 0 0 24px;
        border: 1px solid var(--hermes-line);
    }
    .quick-connect-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 48px;
        padding: 8px 14px;
        color: var(--hermes-ink);
        border: 0;
        border-right: 1px solid var(--hermes-line);
        background: var(--hermes-surface);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
        transition: color 180ms ease, background 180ms ease;
    }
    .quick-connect-button:last-child { border-right: 0; }
    .quick-connect-button.active { color: var(--hermes-accent-ink); background: var(--hermes-accent); }
    .quick-connect-button:hover:not(:disabled) { background: var(--hermes-accent-muted); color: var(--hermes-accent-strong); }
    .quick-connect-button.active:hover:not(:disabled) { background: var(--hermes-accent-strong); color: var(--hermes-accent-ink); }
    .quick-connect-button:disabled { cursor: not-allowed; opacity: .48; }

    .workspace-preparation {
        display: grid;
        gap: 22px;
        padding: clamp(22px, 4vw, 34px) 0;
        border-top: 1px solid var(--hermes-line);
        border-bottom: 1px solid var(--hermes-line);
    }
    .workspace-preparation-waiting { min-height: min(60vh, 480px); place-items: center; align-content: center; text-align: center; }
    .workspace-waiting-copy { max-width: 34rem; color: var(--hermes-muted); font-size: clamp(1.25rem, 2.8vw, 1.8rem); font-weight: 700; line-height: 1.3; animation: workspace-waiting-copy-in 460ms ease both; }
    @keyframes workspace-waiting-copy-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    .workspace-preparation__header { display: flex; gap: 16px; align-items: center; }
    .workspace-preparation__indicator {
        display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center;
        border: 1px solid var(--hermes-accent); border-radius: 50%; background: var(--hermes-accent-muted);
    }
    .workspace-preparation__actions { justify-content: flex-end; }

    .hermes-workspace-shell .section-card,
    .hermes-workspace-shell .channel-card {
        border: 1px solid var(--hermes-line) !important;
        border-radius: 0 !important;
        background: var(--hermes-surface) !important;
        color: var(--hermes-ink) !important;
        box-shadow: none !important;
    }
    .hermes-workspace-shell .telegram-binding-panel,
    .hermes-workspace-shell .max-binding-panel,
    .hermes-workspace-shell .vk-binding-panel { background: var(--hermes-surface) !important; }

    .hermes-workspace-shell .workspace-tabs {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }
    .hermes-workspace-shell .workspace-tabs .mud-tabs-tabbar,
    .hermes-workspace-shell .workspace-tabs .mud-tabs-toolbar {
        min-height: 52px;
        padding: 0;
        border-top: 1px solid var(--hermes-line);
        border-bottom: 1px solid var(--hermes-line);
        background: transparent !important;
        box-shadow: none;
    }
    .hermes-workspace-shell .workspace-tabs .mud-tab {
        min-height: 51px;
        padding: 0 18px;
        color: var(--hermes-muted) !important;
        border-radius: 0;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        transition: color 180ms ease, background 180ms ease;
    }
    .hermes-workspace-shell .workspace-tabs .mud-tab:hover { color: var(--hermes-accent) !important; background: var(--hermes-accent-quiet); }
    .hermes-workspace-shell .workspace-tabs .mud-tab.mud-tab-active { color: var(--hermes-accent) !important; background: transparent; }
    .hermes-workspace-shell .workspace-tabs .mud-tabs-slider,
    .hermes-workspace-shell .workspace-tabs .mud-tab-slider { height: 2px; background: var(--hermes-accent) !important; }
    .hermes-workspace-shell .workspace-tabs .mud-tabs-panels,
    .hermes-workspace-shell .workspace-tabs .mud-tab-panel { color: var(--hermes-ink); background: transparent !important; }

    .hermes-workspace-shell .telegram-binding-grid { display: grid; grid-template-columns: minmax(220px, .86fr) minmax(320px, 1.14fr); gap: 20px; }
    .hermes-workspace-shell .telegram-profile-rail { display: grid; gap: 8px; align-content: start; }
    .hermes-workspace-shell .telegram-profile-option { display: grid; gap: 5px; width: 100%; min-height: 82px; padding: 13px 14px; color: var(--hermes-ink); text-align: left; border: 1px solid var(--hermes-line); border-radius: 0; background: transparent; cursor: pointer; transition: border-color 180ms ease, background 180ms ease; }
    .hermes-workspace-shell .telegram-profile-option:hover { border-color: var(--hermes-accent); background: var(--hermes-accent-muted); }
    .hermes-workspace-shell .telegram-profile-option.selected { border-color: var(--hermes-accent); background: var(--hermes-accent-muted); box-shadow: inset 3px 0 0 var(--hermes-accent); }
    .hermes-workspace-shell .telegram-profile-title { color: var(--hermes-ink); font-weight: 750; overflow-wrap: anywhere; }
    .hermes-workspace-shell .telegram-profile-subtitle { color: var(--hermes-muted); font-size: .82rem; overflow-wrap: anywhere; }
    .hermes-workspace-shell .telegram-profile-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--hermes-muted); font-size: .78rem; font-weight: 700; }
    .hermes-workspace-shell .telegram-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hermes-muted); }
    .hermes-workspace-shell .telegram-status-dot.linked { background: var(--hermes-success); }
    .hermes-workspace-shell .telegram-status-dot.pending { background: var(--hermes-accent); }
    .hermes-workspace-shell .telegram-binding-detail { min-height: 250px; padding: 18px; border: 1px solid var(--hermes-line); background: var(--hermes-surface-muted); }
    .hermes-workspace-shell .telegram-binding-detail-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
    .hermes-workspace-shell .telegram-linked-account,
    .hermes-workspace-shell .telegram-empty-binding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 16px; padding: 14px; border-left: 3px solid var(--hermes-accent); background: var(--hermes-accent-muted); }
    .hermes-workspace-shell .telegram-linked-account svg { color: var(--hermes-success) !important; }
    .hermes-workspace-shell .telegram-empty-binding svg { color: var(--hermes-accent) !important; }
    .hermes-workspace-shell .telegram-link-command { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; padding: 12px; border: 1px solid var(--hermes-line); background: var(--hermes-surface); }
    .hermes-workspace-shell .telegram-link-command span { color: var(--hermes-ink); font-family: "JetBrains Mono", Consolas, monospace; font-size: clamp(.9rem, 2vw, 1.15rem); font-weight: 700; overflow-wrap: anywhere; }

    .hermes-workspace-shell .mud-chip { min-height: 30px; border-color: var(--hermes-line) !important; border-radius: 999px; background: transparent !important; color: var(--hermes-ink) !important; font-weight: 700; }
    .hermes-workspace-shell .mud-chip-color-success { color: var(--hermes-success) !important; border-color: color-mix(in srgb, var(--hermes-success) 48%, transparent) !important; }
    .hermes-workspace-shell .mud-chip-color-primary, .hermes-workspace-shell .mud-chip-color-info { color: var(--hermes-accent) !important; border-color: var(--hermes-line-strong) !important; }
    .hermes-workspace-shell .mud-chip-color-warning { color: var(--hermes-warning) !important; border-color: color-mix(in srgb, var(--hermes-warning) 52%, transparent) !important; }

    .hermes-workspace-shell .mud-input-control > .mud-input-control-input-container > .mud-input-label,
    .hermes-workspace-shell .mud-input-label, .hermes-workspace-shell .mud-select-label { color: var(--hermes-muted) !important; font-weight: 650; }
    .hermes-workspace-shell .mud-input-root, .hermes-workspace-shell .mud-select-input,
    .hermes-workspace-shell .mud-input-slot, .hermes-workspace-shell input,
    .hermes-workspace-shell textarea { color: var(--hermes-ink) !important; }
    .hermes-workspace-shell .mud-input-outlined-border { border-color: var(--hermes-line) !important; }
    .hermes-workspace-shell .mud-input.mud-input-outlined { background: var(--hermes-surface); }
    .hermes-workspace-shell .mud-input.mud-input-outlined:hover .mud-input-outlined-border,
    .hermes-workspace-shell .mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border { border-color: var(--hermes-accent) !important; }
    .hermes-workspace-shell .mud-input-adornment, .hermes-workspace-shell .mud-select-icon { color: var(--hermes-accent) !important; }
    .hermes-workspace-shell .mud-switch, .hermes-workspace-shell .mud-switch label,
    .hermes-workspace-shell .mud-switch .mud-typography, .hermes-workspace-shell .mud-switch .mud-switch-label { color: var(--hermes-ink) !important; }
    .hermes-workspace-shell .mud-switch.mud-disabled, .hermes-workspace-shell .mud-switch.mud-disabled .mud-typography { color: var(--hermes-muted) !important; }

    .hermes-workspace-shell .mud-button-root { min-height: 40px; border-radius: 5px; font-weight: 700; letter-spacing: 0; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
    .hermes-workspace-shell .mud-button-filled-primary { color: var(--hermes-accent-ink) !important; background: var(--hermes-accent) !important; box-shadow: none !important; }
    .hermes-workspace-shell .mud-button-filled-primary:hover:not(.mud-disabled) { background: var(--hermes-accent-strong) !important; }
    .hermes-workspace-shell .mud-button-outlined-primary, .hermes-workspace-shell .mud-button-outlined-info { color: var(--hermes-accent) !important; border-color: var(--hermes-line-strong) !important; background: transparent !important; }
    .hermes-workspace-shell .mud-button-outlined-success { color: var(--hermes-success) !important; border-color: color-mix(in srgb, var(--hermes-success) 48%, transparent) !important; }
    .hermes-workspace-shell .mud-button-outlined-warning { color: var(--hermes-warning) !important; border-color: color-mix(in srgb, var(--hermes-warning) 52%, transparent) !important; }
    .hermes-workspace-shell .mud-button-outlined-secondary { color: var(--hermes-muted) !important; border-color: var(--hermes-line) !important; }
    .hermes-workspace-shell .mud-button-root.mud-disabled { color: var(--hermes-muted) !important; border-color: var(--hermes-line) !important; background: var(--hermes-surface-soft) !important; opacity: 1; }

    .hermes-workspace-shell .mud-table { background: transparent !important; }
    .hermes-workspace-shell .mud-table-container { border: 1px solid var(--hermes-line); border-radius: 0; background: var(--hermes-surface) !important; }
    .hermes-workspace-shell .mud-table-head .mud-table-cell { color: var(--hermes-muted) !important; border-bottom-color: var(--hermes-line) !important; background: var(--hermes-surface-muted); font-family: "JetBrains Mono", Consolas, monospace; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
    .hermes-workspace-shell .mud-table-body .mud-table-cell { color: var(--hermes-ink) !important; border-bottom-color: var(--hermes-line) !important; }
    .hermes-workspace-shell .mud-table-row:hover { background: var(--hermes-accent-quiet) !important; }
    .hermes-workspace-shell .mud-alert { border-radius: 0; border-color: var(--hermes-line) !important; background: var(--hermes-surface-muted) !important; color: var(--hermes-ink) !important; }
    .hermes-workspace-shell .mud-alert .mud-alert-icon, .hermes-workspace-shell .mud-link { color: var(--hermes-accent) !important; }
    .hermes-workspace-shell .mud-link { font-weight: 700; text-decoration-color: var(--hermes-line-strong); }
    .hermes-workspace-shell .mud-progress-linear { border-radius: 999px; background: var(--hermes-line) !important; }

    .hermes-workspace-shell :is(button, a, input, textarea, [role="button"]):focus-visible {
        outline: 3px solid var(--hermes-focus) !important;
        outline-offset: 3px;
    }
    .hermes-workspace-state { display: grid; align-content: center; gap: 12px; min-height: 360px; padding: 28px; color: var(--hermes-muted); border-top: 1px solid var(--hermes-line); border-bottom: 1px solid var(--hermes-line); }
    .workspace-skeleton { width: min(520px, 100%); height: 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--hermes-ink) 9%, transparent), color-mix(in srgb, var(--hermes-surface) 86%, var(--hermes-paper)), color-mix(in srgb, var(--hermes-ink) 9%, transparent)); background-size: 220% 100%; animation: hermes-workspace-shimmer 1.8s ease-in-out infinite; }
    .workspace-skeleton-wide { width: min(760px, 100%); height: 58px; }
    @keyframes hermes-workspace-shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }

    @media (max-width: 900px) {
        .workspace-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .metric-item:nth-child(2) { border-right: 0; }
        .metric-item:nth-child(-n+2) { border-bottom: 1px solid var(--hermes-line); }
        .workspace-command-hero { align-items: flex-start !important; }
        .workspace-hero-actions { width: 100%; }
        .hermes-workspace-shell .telegram-binding-grid { grid-template-columns: 1fr; }
        .hermes-workspace-shell .telegram-profile-rail { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    }
    @media (max-width: 640px) {
        .hermes-workspace-shell { margin-top: 0; padding-inline: 4px; }
        .workspace-command-hero { padding-top: 18px; }
        .hermes-workspace-shell .mud-button-root { min-height: 44px; }
        .workspace-metrics, .workspace-quick-connect { grid-template-columns: 1fr; }
        .metric-item, .metric-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--hermes-line); }
        .metric-item:last-child { border-bottom: 0; }
        .workspace-quick-connect { gap: 0; }
        .quick-connect-button { min-height: 44px; border-right: 0; border-bottom: 1px solid var(--hermes-line); }
        .quick-connect-button:last-child { border-bottom: 0; }
        .workspace-preparation__header { align-items: flex-start; }
        .workspace-tabs .mud-tabs-toolbar { padding: 0; overflow-x: auto; }
        .workspace-tabs .mud-tab { min-width: auto; min-height: 44px; padding-inline: 12px; font-size: .8rem; }
        .hermes-workspace-shell .telegram-binding-detail-head { display: grid; }
        .hermes-workspace-shell .telegram-profile-rail { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
        .hermes-workspace-shell *, .hermes-workspace-shell *::before, .hermes-workspace-shell *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }
