.hermes-dashboard {
    --hermes-radius-xl: 20px;
    --hermes-radius-lg: 16px;
    --hermes-radius-md: 10px;
    --hermes-shadow: none;
    position: relative;
    z-index: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 1540px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(0.75rem, 1.5vw, 1.4rem);
    color: var(--hermes-text);
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

.hermes-dashboard *,
.hermes-dashboard *::before,
.hermes-dashboard *::after {
    box-sizing: border-box;
}

.hermes-dashboard::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: var(--hermes-bg);
}

.hermes-dashboard::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.025;
    background-image:
        linear-gradient(rgb(var(--hermes-ink-rgb) / calc(0.18 * var(--hermes-line-a))) 1px, transparent 1px),
        linear-gradient(90deg, rgb(var(--hermes-ink-rgb) / calc(0.18 * var(--hermes-line-a))) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hermes-dashboard h1,
.hermes-dashboard h2,
.hermes-dashboard h3,
.hermes-dashboard p {
    margin: 0;
}

.hermes-dashboard h1,
.hermes-dashboard h2,
.hermes-dashboard h3 {
    color: var(--hermes-text);
    letter-spacing: -0.035em;
    line-height: 1.04;
    text-wrap: balance;
}

.hermes-dashboard p {
    color: var(--hermes-muted);
    line-height: 1.62;
    text-wrap: pretty;
}

.hermes-dashboard code {
    color: inherit;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.hermes-dashboard .state-shell {
    display: grid;
    min-height: min(72dvh, 42rem);
    place-items: center;
}

.hermes-dashboard .state-shell--loading {
    min-height: 56dvh;
}

.hermes-dashboard .state-card,
.hermes-dashboard .hero-shell,
.hermes-dashboard .workspace-console,
.hermes-dashboard .workspace-nav,
.hermes-dashboard .workspace-content,
.hermes-dashboard .panel,
.hermes-dashboard .metric-card,
.hermes-dashboard .preview-card,
.hermes-dashboard .field-card,
.hermes-dashboard .channel-card,
.hermes-dashboard .skill-card,
.hermes-dashboard .site-card,
.hermes-dashboard .session-card,
.hermes-dashboard .workspace-switch,
.hermes-dashboard .composer-shell {
    border: 1px solid var(--hermes-line);
    background: var(--hermes-panel);
    box-shadow: var(--hermes-shadow);
}

.hermes-dashboard .state-card {
    width: min(100%, 48rem);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--hermes-radius-xl);
}

.hermes-dashboard .state-card--guest,
.hermes-dashboard .state-card--loading {
    width: min(100%, 60rem);
}

.hermes-dashboard .state-card h1,
.hermes-dashboard .hero-shell h1 {
    font-size: clamp(2.5rem, 5.8vw, 5.4rem);
}

.hermes-dashboard .state-card h2,
.hermes-dashboard .panel h2 {
    font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.hermes-dashboard .state-card > p,
.hermes-dashboard .hero-shell__summary,
.hermes-dashboard .panel__summary {
    max-width: 42rem;
    font-size: 1rem;
}

.hermes-dashboard .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.38rem;
    color: var(--hermes-accent);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hermes-dashboard .skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hermes-dashboard .skeleton-card {
    height: 9rem;
    overflow: hidden;
    border-radius: 20px;
    background: rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a)));
    position: relative;
}

.hermes-dashboard .skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgb(var(--hermes-ink-rgb) / calc(0.22 * var(--hermes-line-a))), transparent);
    animation: shimmer 1.55s linear infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.hermes-dashboard .hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(27rem, 0.82fr);
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    border-radius: var(--hermes-radius-xl);
    position: relative;
}

.hermes-dashboard .hero-shell::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 38%;
    height: 1px;
    pointer-events: none;
    background: var(--hermes-accent);
    opacity: 0.7;
}

.hermes-dashboard .hero-shell__main,
.hermes-dashboard .hero-shell__side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hermes-dashboard .hero-shell__main {
    justify-content: center;
}

.hermes-dashboard .hero-shell__side {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(11rem, 0.78fr);
    align-content: start;
    gap: 0.65rem;
}

.hermes-dashboard .hero-shell h1 {
    font-size: clamp(1.85rem, 3vw, 3.2rem);
    line-height: 1.05;
}

.hermes-dashboard .brand-lockup {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.95rem;
}

.hermes-dashboard .brand-lockup__mark {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.48);
    border-radius: 12px;
    color: var(--hermes-accent-ink);
    background: var(--hermes-accent);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 14px 32px rgb(var(--hermes-shadow-rgb) / calc(0.24 * var(--hermes-shadow-a)));
}

.hermes-dashboard .hero-shell__summary {
    max-width: 40rem;
    margin-top: 0.32rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.hermes-dashboard .status-rail,
.hermes-dashboard .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hermes-dashboard .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 1.55rem;
    padding: 0.2rem 0.52rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.1 * var(--hermes-line-a)));
    border-radius: 8px;
    color: var(--hermes-accent-2);
    background: var(--hermes-panel-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hermes-dashboard .status-pill--success {
    color: var(--hermes-success-ink);
    border-color: rgb(var(--hermes-success-rgb) / 0.36);
    background: var(--hermes-success-bg);
}

.hermes-dashboard .status-pill--warning {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.38 * var(--hermes-line-a)));
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .status-pill--danger {
    color: var(--hermes-danger-ink);
    border-color: rgb(var(--hermes-danger-rgb) / 0.38);
    background: var(--hermes-danger-bg);
}

.hermes-dashboard .status-pill--neutral {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-accent-rgb) / 0.34);
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .status-pill--muted {
    color: var(--hermes-muted);
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.08 * var(--hermes-line-a)));
    background: var(--hermes-panel-deep);
}

.hermes-dashboard .workspace-mark {
    display: grid;
    gap: 0.12rem;
    padding: 0.56rem 0.68rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.26);
    border-radius: 11px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .workspace-mark__label,
.hermes-dashboard .workspace-switch__label,
.hermes-dashboard .metric-card__label,
.hermes-dashboard .field-card__label {
    color: var(--hermes-soft);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hermes-dashboard .workspace-mark code {
    color: var(--hermes-accent-2);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hermes-dashboard .workspace-mark a {
    color: var(--hermes-accent-2);
    font-size: 0.74rem;
    text-decoration: none;
}

.hermes-dashboard .workspace-mark a:hover {
    color: var(--hermes-text);
}

.hermes-dashboard .workspace-switch {
    display: grid;
    gap: 0.38rem;
    padding: 0.56rem 0.68rem;
    border-radius: 11px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .workspace-switch__actions {
    gap: 0.35rem;
}

.hermes-dashboard .workspace-switch__link {
    min-height: 1.75rem;
    padding: 0.38rem 0.52rem;
    font-size: 0.74rem;
}

.hermes-dashboard .hero-shell__actions {
    grid-column: 1 / -1;
}

.hermes-dashboard .hero-shell__actions .button {
    min-height: 2rem;
    padding: 0.5rem 0.68rem;
    border-radius: 11px;
    font-size: 0.78rem;
}

.hermes-dashboard .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.62rem 0.92rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hermes-dashboard .button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.hermes-dashboard .button:active:not(:disabled) {
    transform: translateY(1px) scale(0.985);
}

.hermes-dashboard .button:disabled {
    cursor: not-allowed;
    opacity: 0.54;
}

.hermes-dashboard .button--primary {
    color: var(--hermes-accent-ink);
    border-color: var(--hermes-accent);
    background: var(--hermes-accent);
    box-shadow: 0 12px 28px rgb(var(--hermes-shadow-rgb) / calc(0.22 * var(--hermes-shadow-a)));
}

.hermes-dashboard .button--primary:hover:not(:disabled) {
    background: var(--hermes-accent-2);
}

.hermes-dashboard .button--secondary {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-accent-rgb) / 0.44);
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .button--panel-link {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-accent-rgb) / 0.48);
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .button--panel-link:hover {
    color: var(--hermes-accent-ink);
    background: var(--hermes-accent-2);
}

.hermes-dashboard .button--ghost,
.hermes-dashboard .button--ghost-danger {
    background: var(--hermes-panel-soft);
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.12 * var(--hermes-line-a)));
}

.hermes-dashboard .button--ghost {
    color: var(--hermes-muted);
}

.hermes-dashboard .button--ghost-danger {
    color: var(--hermes-danger-ink-hi);
    border-color: rgb(var(--hermes-danger-rgb) / 0.28);
}

.hermes-dashboard .button:focus-visible,
.hermes-dashboard .session-card:focus-visible,
.hermes-dashboard .channel-card button:focus-visible,
.hermes-dashboard .field-card input:focus-visible,
.hermes-dashboard .field-card select:focus-visible,
.hermes-dashboard .composer-shell__icon-button:focus-visible,
.hermes-dashboard .composer-shell__attachment button:focus-visible,
.hermes-dashboard .message-attachment:focus-visible,
.hermes-dashboard .workspace-mark a:focus-visible,
.hermes-dashboard .composer-shell__input:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgb(var(--hermes-accent-rgb) / 0.42), 0 0 0 6px var(--hermes-bg);
}

.hermes-dashboard .inline-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--hermes-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    background: var(--hermes-panel);
}

.hermes-dashboard .inline-banner strong,
.hermes-dashboard .inline-banner code {
    color: inherit;
}

.hermes-dashboard .inline-banner--info {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-accent-rgb) / 0.26);
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .inline-banner--success {
    color: var(--hermes-success-ink);
    border-color: rgb(var(--hermes-success-rgb) / 0.3);
    background: var(--hermes-success-bg);
}

.hermes-dashboard .inline-banner--warning {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.32 * var(--hermes-line-a)));
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .inline-banner--danger {
    color: var(--hermes-danger-ink);
    border-color: rgb(var(--hermes-danger-rgb) / 0.34);
    background: var(--hermes-danger-bg);
}

.hermes-dashboard .step-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding-left: 1.2rem;
    color: rgb(var(--hermes-ink-rgb) / 0.78);
}

.hermes-dashboard .step-list li {
    padding-left: 0.25rem;
    line-height: 1.6;
}

.hermes-dashboard .guest-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.hermes-dashboard .preview-card,
.hermes-dashboard .metric-card {
    display: grid;
    gap: 0.48rem;
    padding: 1.05rem;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a)));
}

.hermes-dashboard .preview-card strong,
.hermes-dashboard .metric-card strong {
    color: var(--hermes-text);
}

.hermes-dashboard .metric-card strong {
    font-size: 1.76rem;
    letter-spacing: 0;
    line-height: 1;
}

.hermes-dashboard .workspace-console {
    display: grid;
    grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 0;
    margin-top: 0.85rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--hermes-line);
    border-radius: var(--hermes-radius-xl);
    background: var(--hermes-panel);
    box-shadow: var(--hermes-shadow);
}

.hermes-dashboard .workspace-nav {
    position: sticky;
    top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    max-height: calc(100dvh - 1.2rem);
    min-height: 0;
    overflow: hidden;
    padding: 0.72rem;
    border: 0;
    border-right: 1px solid var(--hermes-line);
    border-radius: 0;
    background: var(--hermes-bg-2);
    box-shadow: none;
}

.hermes-dashboard .workspace-nav__new-chat {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.82rem;
    justify-content: center;
}

.hermes-dashboard .workspace-nav__items {
    display: grid;
    gap: 0.12rem;
}

.hermes-dashboard .workspace-nav__item {
    display: grid;
    gap: 0.08rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.46rem 0.58rem 0.46rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--hermes-accent-2);
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hermes-dashboard .workspace-nav__item:hover {
    transform: translateX(2px);
    border-color: var(--hermes-line);
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .workspace-nav__item:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgb(var(--hermes-accent-rgb) / 0.36);
}

.hermes-dashboard .workspace-nav__item--active {
    color: var(--hermes-text);
    border-color: rgb(var(--hermes-accent-rgb) / 0.28);
    background: var(--hermes-panel-strong);
    box-shadow: inset 2px 0 0 var(--hermes-accent);
}

.hermes-dashboard .workspace-nav__item span {
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0;
}

.hermes-dashboard .workspace-nav__item small {
    color: var(--hermes-soft);
    font-size: 0.68rem;
    line-height: 1.24;
}

.hermes-dashboard .workspace-nav__item:not(.workspace-nav__item--active) small {
    display: none;
}

.hermes-dashboard .workspace-nav__item--active small {
    color: var(--hermes-dim);
}

.hermes-dashboard .workspace-nav__sessions {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    flex: 1 1 auto;
    gap: 0.35rem;
    min-height: 0;
    overflow: hidden;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hermes-line);
}

.hermes-dashboard .workspace-nav__sessions-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.12rem;
}

.hermes-dashboard .workspace-nav__sessions-header .eyebrow {
    margin: 0;
    color: var(--hermes-soft);
}

.hermes-dashboard .workspace-nav__sessions-header strong {
    color: var(--hermes-text);
    font-size: 0.78rem;
    line-height: 1.14;
}

.hermes-dashboard .workspace-nav__sessions .session-list {
    min-height: 0;
    max-height: none;
    padding-right: 0.08rem;
}

.hermes-dashboard .workspace-nav__sessions-empty {
    margin: 0;
    padding: 0 0.12rem;
    color: var(--hermes-soft) !important;
    font-size: 0.72rem;
    line-height: 1.38 !important;
}

.hermes-dashboard .workspace-nav__profile-link {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0.7rem 0.48rem 0.15rem;
    color: var(--hermes-muted);
    border: 0;
    border-top: 1px solid var(--hermes-line);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.hermes-dashboard .workspace-nav__profile-link:hover,
.hermes-dashboard .workspace-nav__profile-link--active {
    color: var(--hermes-text);
}

.hermes-dashboard .workspace-nav__profile-link:focus-visible {
    outline: 2px solid var(--hermes-accent);
    outline-offset: -2px;
}

.hermes-dashboard .workspace-nav__profile-link > span:last-child {
    display: grid;
    min-width: 0;
}

.hermes-dashboard .workspace-nav__profile-link strong,
.hermes-dashboard .workspace-nav__profile-link small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .workspace-nav__profile-link strong {
    color: var(--hermes-text);
    font-size: 0.875rem;
}

.hermes-dashboard .workspace-nav__profile-link small {
    color: var(--hermes-soft);
    font-size: 0.6875rem;
    font-weight: 450;
}

.hermes-dashboard .workspace-nav__avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.28);
    border-radius: 50%;
    color: var(--hermes-text);
    background: rgb(var(--hermes-accent-rgb) / 0.22);
    font-size: 0.78rem;
    font-weight: 700;
}

.hermes-dashboard .workspace-nav__summary {
    display: grid;
    gap: 0.28rem;
    margin-top: auto;
    padding: 0.52rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.16 * var(--hermes-line-a)));
    border-radius: 10px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .workspace-nav__summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.hermes-dashboard .workspace-nav__summary span {
    color: var(--hermes-soft);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hermes-dashboard .workspace-nav__summary strong {
    color: var(--hermes-accent-2);
    font-size: 0.78rem;
    line-height: 1.1;
}

.hermes-dashboard .workspace-content {
    display: grid;
    gap: 0;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--hermes-bg);
    box-shadow: none;
    backdrop-filter: none;
}

.hermes-dashboard .workspace-content > .panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hermes-dashboard .panel {
    display: grid;
    gap: 0.72rem;
    padding: 0.85rem;
    border-radius: var(--hermes-radius-lg);
}

.hermes-dashboard .panel--collection {
    align-content: start;
}

.hermes-dashboard .panel--chat {
    display: flex;
    flex-direction: column;
    height: clamp(34rem, calc(100dvh - 9rem), 53rem);
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.hermes-dashboard .panel--chat > .chat-workspace,
.hermes-dashboard .panel--chat > .empty-panel {
    flex: 1 1 auto;
    min-height: 0;
}

.hermes-dashboard .work-panel {
    align-content: start;
    min-height: 34rem;
}

.hermes-dashboard .work-surface {
    gap: 0.72rem;
    padding: 0.85rem 1rem 1rem;
}

.hermes-dashboard .work-toolbar,
.hermes-dashboard .team-commandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.35rem;
    padding: 0.55rem 0.68rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.08 * var(--hermes-line-a)));
    border-radius: 14px;
    background: linear-gradient(100deg, rgb(var(--hermes-panel-rgb) / 0.86), rgb(var(--hermes-bg-2-rgb) / 0.82));
}

.hermes-dashboard .work-toolbar__state {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.hermes-dashboard .work-toolbar__state > div {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
}

.hermes-dashboard .work-toolbar__state strong {
    color: var(--hermes-text);
    font-size: 0.76rem;
}

.hermes-dashboard .work-toolbar__state span:last-child {
    overflow: hidden;
    color: var(--hermes-soft);
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .work-status-dot {
    flex: 0 0 auto;
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 50%;
    background: var(--hermes-dot-idle);
    box-shadow: 0 0 0 4px rgb(var(--hermes-dot-idle-rgb) / 0.1);
}

.hermes-dashboard .work-status-dot--online {
    background: var(--hermes-online);
    box-shadow: 0 0 0 4px rgb(var(--hermes-online-rgb) / 0.1);
}

.hermes-dashboard .work-primary-action {
    min-width: 8.5rem;
}

.hermes-dashboard .work-composer,
.hermes-dashboard .team-editor {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.3);
    border-radius: 16px;
    background: linear-gradient(145deg, rgb(var(--hermes-panel-raised-rgb) / 0.98), rgb(var(--hermes-bg-2-rgb) / 0.99));
    box-shadow: 0 22px 55px rgb(var(--hermes-shadow-rgb) / calc(0.2 * var(--hermes-shadow-a)));
}

.hermes-dashboard .work-composer > header,
.hermes-dashboard .team-editor > header,
.hermes-dashboard .work-detail > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.hermes-dashboard .work-composer h3,
.hermes-dashboard .team-editor h3,
.hermes-dashboard .work-detail h3 {
    margin: 0.12rem 0 0;
    color: var(--hermes-text);
    font-size: 1rem;
    line-height: 1.2;
}

.hermes-dashboard .work-icon-button {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    color: var(--hermes-soft);
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.09 * var(--hermes-line-a)));
    border-radius: 9px;
    background: rgb(var(--hermes-ink-rgb) / calc(0.02 * var(--hermes-line-a)));
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.hermes-dashboard .work-icon-button:hover {
    color: var(--hermes-text);
    border-color: rgb(var(--hermes-accent-rgb) / 0.35);
}

.hermes-dashboard .work-icon-button:focus-visible {
    outline: 2px solid var(--hermes-accent);
    outline-offset: 2px;
}

.hermes-dashboard .work-composer__grid,
.hermes-dashboard .team-editor__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(13rem, 0.75fr);
    gap: 0.7rem;
}

.hermes-dashboard .work-composer label,
.hermes-dashboard .team-editor label {
    display: grid;
    gap: 0.3rem;
    color: var(--hermes-dim);
    font-size: 0.67rem;
    font-weight: 760;
}

.hermes-dashboard .work-composer input,
.hermes-dashboard .work-composer select,
.hermes-dashboard .work-composer textarea,
.hermes-dashboard .team-editor input,
.hermes-dashboard .team-editor select,
.hermes-dashboard .team-editor textarea {
    width: 100%;
    min-height: 2.55rem;
    padding: 0.62rem 0.68rem;
    color: var(--hermes-text);
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.11 * var(--hermes-line-a)));
    border-radius: 10px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.72);
    font: inherit;
}

.hermes-dashboard .work-composer textarea,
.hermes-dashboard .team-editor textarea {
    resize: vertical;
}

.hermes-dashboard .work-composer input:focus-visible,
.hermes-dashboard .work-composer select:focus-visible,
.hermes-dashboard .work-composer textarea:focus-visible,
.hermes-dashboard .team-editor input:focus-visible,
.hermes-dashboard .team-editor select:focus-visible,
.hermes-dashboard .team-editor textarea:focus-visible {
    outline: 2px solid var(--hermes-accent);
    outline-offset: 1px;
    border-color: rgb(var(--hermes-accent-rgb) / 0.5);
}

.hermes-dashboard .work-composer__context,
.hermes-dashboard .team-editor__wide {
    grid-column: 1 / -1;
}

.hermes-dashboard .team-editor__switch-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem !important;
    padding: 0.72rem 0.78rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.1 * var(--hermes-line-a)));
    border-radius: 11px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.36);
}

.hermes-dashboard .team-editor__switch-row strong,
.hermes-dashboard .team-editor__switch-row small {
    display: block;
}

.hermes-dashboard .team-editor__switch-row strong { color: var(--hermes-text); font-size: 0.76rem; }
.hermes-dashboard .team-editor__switch-row small { margin-top: 0.16rem; color: var(--hermes-soft); font-size: 0.64rem; font-weight: 500; line-height: 1.35; }

.hermes-dashboard .team-editor__switch { position: relative; display: block; width: 2.55rem; height: 1.5rem; cursor: pointer; }
.hermes-dashboard .team-editor__switch input { position: absolute; inset: 0; box-sizing: border-box; width: 100%; min-height: 0; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.hermes-dashboard .team-editor__switch > span { display: block; width: 100%; height: 100%; border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.16 * var(--hermes-line-a))); border-radius: 999px; background: var(--hermes-switch-track); transition: background 160ms ease, border-color 160ms ease; }
.hermes-dashboard .team-editor__switch > span::after { display: block; width: 1.04rem; height: 1.04rem; margin: 0.16rem; border-radius: 50%; background: var(--hermes-switch-knob); content: ""; transition: transform 160ms ease, background 160ms ease; }
.hermes-dashboard .team-editor__switch input:checked + span { border-color: rgb(var(--hermes-accent-rgb) / 0.66); background: var(--hermes-switch-track-on); }
.hermes-dashboard .team-editor__switch input:checked + span::after { background: var(--hermes-switch-knob-on); transform: translateX(1.02rem); }
.hermes-dashboard .team-editor__switch input:focus-visible + span { outline: 2px solid var(--hermes-accent); outline-offset: 2px; }

.hermes-dashboard .skill-picker { display: grid; gap: 0.6rem; padding: 0.78rem; border: 1px solid rgb(var(--hermes-accent-rgb) / 0.2); border-radius: 13px; background: rgb(var(--hermes-bg-2-rgb) / 0.32); }
.hermes-dashboard .skill-picker--pending { min-height: 7.45rem; align-content: center; }
.hermes-dashboard .skill-picker--pending p { margin: 0; color: var(--hermes-soft); font-size: 0.72rem; }
.hermes-dashboard .skill-picker__header { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.hermes-dashboard .skill-picker__header > div:first-child { display: grid; gap: 0.12rem; }
.hermes-dashboard .skill-picker__header strong { color: var(--hermes-text); font-size: 0.82rem; }
.hermes-dashboard .skill-picker__actions { display: flex; flex-wrap: wrap; gap: 0.28rem; }
.hermes-dashboard .skill-picker__actions button { padding: 0.28rem 0.42rem; color: var(--hermes-accent-2); border: 1px solid rgb(var(--hermes-accent-rgb) / 0.24); border-radius: 7px; background: transparent; font: inherit; font-size: 0.62rem; font-weight: 730; cursor: pointer; }
.hermes-dashboard .skill-picker__actions button:hover:not(:disabled), .hermes-dashboard .skill-picker__actions button:focus-visible { color: var(--hermes-text); border-color: rgb(var(--hermes-accent-rgb) / 0.58); background: rgb(var(--hermes-accent-rgb) / 0.1); }
.hermes-dashboard .skill-picker__actions button:disabled { opacity: 0.42; cursor: default; }
.hermes-dashboard .skill-picker__notice { margin: 0; padding: 0.42rem 0.5rem; color: var(--hermes-accent-2); border-left: 2px solid rgb(var(--hermes-accent-rgb) / 0.7); border-radius: 5px; background: rgb(var(--hermes-accent-rgb) / 0.08); font-size: 0.65rem; line-height: 1.35; }
.hermes-dashboard .skill-picker__search { min-height: 2.25rem !important; }
.hermes-dashboard .skill-picker__list { display: grid; gap: 0.64rem; max-height: 15.5rem; overflow: auto; padding: 0.12rem 0.1rem 0.12rem 0; scrollbar-color: rgb(var(--hermes-accent-rgb) / 0.4) transparent; }
.hermes-dashboard .skill-picker__group { display: grid; gap: 0.34rem; }
.hermes-dashboard .skill-picker__group h4 { display: flex; align-items: center; gap: 0.35rem; margin: 0; color: var(--hermes-soft); font-size: 0.61rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hermes-dashboard .skill-picker__group h4 span { padding: 0.08rem 0.28rem; border-radius: 999px; background: rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a))); font-size: 0.56rem; }
.hermes-dashboard .skill-picker__chips { display: flex; flex-wrap: wrap; gap: 0.32rem; }
.hermes-dashboard .skill-picker__chip { position: relative; display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 0.34rem !important; max-width: 100%; padding: 0.38rem 0.48rem; color: var(--hermes-soft) !important; border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.1 * var(--hermes-line-a))); border-radius: 8px; background: rgb(var(--hermes-ink-rgb) / calc(0.025 * var(--hermes-line-a))); cursor: pointer; font-size: 0.67rem !important; font-weight: 650 !important; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.hermes-dashboard .skill-picker__chip:hover { border-color: rgb(var(--hermes-accent-rgb) / 0.42); background: rgb(var(--hermes-accent-rgb) / 0.08); }
.hermes-dashboard .skill-picker__chip--selected { color: var(--hermes-text) !important; border-color: rgb(var(--hermes-accent-rgb) / 0.6); background: rgb(var(--hermes-accent-rgb) / 0.16); }
.hermes-dashboard .skill-picker__chip input { position: absolute; width: 1px !important; min-height: 1px !important; opacity: 0; }
.hermes-dashboard .skill-picker__check { display: grid; width: 0.9rem; height: 0.9rem; flex: 0 0 0.9rem; place-items: center; color: transparent; border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.24 * var(--hermes-line-a))); border-radius: 4px; font-size: 0.63rem; line-height: 1; }
.hermes-dashboard .skill-picker__chip--selected .skill-picker__check { color: var(--hermes-accent-ink); border-color: var(--hermes-accent); background: var(--hermes-accent); }
.hermes-dashboard .skill-picker__chip input:focus-visible + .skill-picker__check { outline: 2px solid var(--hermes-accent); outline-offset: 2px; }
.hermes-dashboard .skill-picker__empty { margin: 0; padding: 1.2rem 0.6rem; color: var(--hermes-soft); font-size: 0.72rem; text-align: center; }

.hermes-dashboard .work-composer__actions,
.hermes-dashboard .team-editor__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.08 * var(--hermes-line-a)));
}

.hermes-dashboard .work-composer__actions > span,
.hermes-dashboard .team-editor__note {
    max-width: 35rem;
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.62rem;
    line-height: 1.45;
}

.hermes-dashboard .work-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(10.5rem, 1fr));
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.2rem 0 0.45rem;
    scrollbar-color: rgb(var(--hermes-accent-rgb) / 0.28) transparent;
}

.hermes-dashboard .work-board__empty {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 6.6rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.08 * var(--hermes-line-a)));
    border-radius: 16px;
    background: radial-gradient(circle at 12% 50%, rgb(var(--hermes-accent-rgb) / 0.08), transparent 30%), rgb(var(--hermes-panel-rgb) / 0.74);
}

.hermes-dashboard .work-board__empty-mark {
    position: relative;
    display: grid;
    gap: 0.28rem;
    width: 3.2rem;
    padding: 0.6rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.28);
    border-radius: 12px;
    background: rgb(var(--hermes-accent-rgb) / 0.07);
}

.hermes-dashboard .work-board__empty-mark span {
    display: block;
    height: 0.22rem;
    border-radius: 99px;
    background: rgb(var(--hermes-amber-rgb) / 0.65);
}

.hermes-dashboard .work-board__empty-mark span:nth-child(2) { width: 72%; }
.hermes-dashboard .work-board__empty-mark span:nth-child(3) { width: 48%; }

.hermes-dashboard .work-board__empty strong {
    color: var(--hermes-text);
    font-size: 0.9rem;
}

.hermes-dashboard .work-board__empty p {
    max-width: 40rem;
    margin: 0.3rem 0 0;
    color: var(--hermes-dim);
    font-size: 0.72rem;
    line-height: 1.5;
}

.hermes-dashboard .work-column {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    min-height: 15rem;
    padding: 0.62rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a)));
    border-radius: 13px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.62);
}

.hermes-dashboard .work-column > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.08rem 0.1rem 0.42rem;
    border-bottom: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.06 * var(--hermes-line-a)));
}

.hermes-dashboard .work-column > header h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    color: var(--hermes-muted);
    font-size: 0.69rem;
    font-weight: 780;
}

.hermes-dashboard .work-column > header h3::before {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--hermes-dot-idle);
    content: "";
}

.hermes-dashboard .work-column--running > header h3::before { background: var(--hermes-accent); box-shadow: 0 0 0 3px rgb(var(--hermes-accent-rgb) / 0.12); }
.hermes-dashboard .work-column--done > header h3::before { background: var(--hermes-online); }
.hermes-dashboard .work-column--blocked > header h3::before { background: var(--hermes-warn); }

.hermes-dashboard .work-column > header > span {
    color: var(--hermes-dim);
    font-size: 0.64rem;
}

.hermes-dashboard .work-column__items {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.hermes-dashboard .work-column__empty {
    margin: 0;
    padding: 1.1rem 0.3rem;
    color: var(--hermes-dim);
    font-size: 0.63rem;
    text-align: center;
}

.hermes-dashboard .work-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.7rem;
    color: var(--hermes-text);
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.09 * var(--hermes-line-a)));
    border-radius: 11px;
    background: linear-gradient(145deg, rgb(var(--hermes-panel-rgb) / 0.9), rgb(var(--hermes-bg-2-rgb) / 0.96));
    text-align: left;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.hermes-dashboard .work-card:hover {
    transform: translateY(-1px);
    border-color: rgb(var(--hermes-accent-rgb) / 0.38);
}

.hermes-dashboard .work-card--selected {
    border-color: rgb(var(--hermes-accent-rgb) / 0.68);
    background: linear-gradient(145deg, rgb(var(--hermes-panel-raised-rgb) / 0.96), rgb(var(--hermes-panel-raised-rgb) / 0.98));
}

.hermes-dashboard .work-card:focus-visible {
    outline: 2px solid var(--hermes-accent);
    outline-offset: 2px;
}

.hermes-dashboard .work-card__state {
    color: var(--hermes-soft);
    font-size: 0.56rem;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hermes-dashboard .work-card strong {
    font-size: 0.74rem;
    line-height: 1.35;
}

.hermes-dashboard .work-card__agent {
    overflow: hidden;
    color: var(--hermes-soft);
    font-size: 0.63rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .work-detail {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.22);
    border-radius: 15px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.88);
    position: sticky;
    top: 0.7rem;
    max-height: calc(100dvh - 7.5rem);
    overflow: auto;
}

.hermes-dashboard .work-detail p {
    margin: 0;
}

.hermes-dashboard .work-detail__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.hermes-dashboard .work-detail__content > div {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a)));
    border-radius: 11px;
    background: rgb(var(--hermes-ink-rgb) / calc(0.015 * var(--hermes-line-a)));
}

.hermes-dashboard .work-detail__content strong {
    color: var(--hermes-muted);
    font-size: 0.68rem;
}

.hermes-dashboard .work-detail__content p {
    white-space: pre-wrap;
    color: var(--hermes-dim);
    font-size: 0.7rem;
    line-height: 1.5;
}

.hermes-dashboard .work-detail__result { border-color: rgb(var(--hermes-online-rgb) / 0.22) !important; }
.hermes-dashboard .work-detail__error { border-color: rgb(var(--hermes-warn-rgb) / 0.28) !important; }
.hermes-dashboard .work-detail__error p { color: var(--hermes-warn-ink); }

.hermes-dashboard .work-events {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding-left: 1.05rem;
}

.hermes-dashboard .work-events li {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--hermes-soft);
    font-size: 0.64rem;
}

.hermes-dashboard .work-events small {
    flex: 0 0 auto;
    color: var(--hermes-dim);
    white-space: nowrap;
}

.hermes-dashboard .work-load-state {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 7.4rem;
    max-width: 43rem;
    padding: 1rem;
    border: 1px dashed rgb(var(--hermes-accent-rgb) / 0.42);
    border-radius: 14px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .work-load-state strong { color: var(--hermes-text); font-size: 0.88rem; }
.hermes-dashboard .work-load-state p { margin: 0.18rem 0 0; color: var(--hermes-soft); font-size: 0.76rem; line-height: 1.42; }
.hermes-dashboard .work-load-state--error { align-items: end; justify-content: space-between; border-style: solid; border-color: rgb(var(--hermes-warn-rgb) / 0.38); }
.hermes-dashboard .work-load-state__indicator { flex: 0 0 auto; width: 0.7rem; height: 0.7rem; border: 2px solid rgb(var(--hermes-accent-rgb) / 0.28); border-top-color: var(--hermes-accent); border-radius: 50%; animation: work-load-spin 0.9s linear infinite; }

.hermes-dashboard .team-onboarding {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    min-height: 12rem;
    padding: 1.4rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.28);
    border-radius: 18px;
    background: radial-gradient(circle at 12% 50%, rgb(var(--hermes-accent-rgb) / 0.12), transparent 28%), linear-gradient(145deg, rgb(var(--hermes-panel-raised-rgb) / 0.96), rgb(var(--hermes-panel-rgb) / 0.98));
}

.hermes-dashboard .team-onboarding h3,
.hermes-dashboard .team-onboarding p {
    margin: 0;
}

.hermes-dashboard .team-onboarding h3 {
    max-width: 40rem;
    margin-top: 0.22rem;
    color: var(--hermes-text);
    font-size: 1.12rem;
    line-height: 1.3;
}

.hermes-dashboard .team-onboarding > div:nth-child(2) > p:last-child {
    max-width: 38rem;
    margin-top: 0.48rem;
    color: var(--hermes-dim);
    font-size: 0.72rem;
    line-height: 1.5;
}

.hermes-dashboard .team-onboarding__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 4.3rem;
    height: 4.3rem;
    color: var(--hermes-muted);
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.42);
    border-radius: 17px;
    background: rgb(var(--hermes-accent-rgb) / 0.08);
    font-size: 1.2rem;
    font-weight: 850;
}

.hermes-dashboard .team-onboarding__mark i {
    position: absolute;
    bottom: -0.7rem;
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.32);
    border-radius: 5px;
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .team-onboarding__mark i:first-of-type { left: 0.65rem; }
.hermes-dashboard .team-onboarding__mark i:last-of-type { right: 0.65rem; }

.hermes-dashboard .team-commandbar__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hermes-dashboard .team-settings {
    position: relative;
}

.hermes-dashboard .team-settings summary {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    color: var(--hermes-dim);
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.09 * var(--hermes-line-a)));
    border-radius: 10px;
    background: rgb(var(--hermes-ink-rgb) / calc(0.02 * var(--hermes-line-a)));
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    list-style: none;
}

.hermes-dashboard .team-settings summary::-webkit-details-marker { display: none; }
.hermes-dashboard .team-settings summary:focus-visible { outline: 2px solid var(--hermes-accent); outline-offset: 2px; }

.hermes-dashboard .team-settings > div {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.45rem);
    right: 0;
    display: grid;
    gap: 0.65rem;
    width: 18rem;
    padding: 0.75rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.12 * var(--hermes-line-a)));
    border-radius: 12px;
    background: var(--hermes-panel-strong);
    box-shadow: 0 18px 45px rgb(var(--hermes-shadow-rgb) / calc(0.38 * var(--hermes-shadow-a)));
}

.hermes-dashboard .team-settings p {
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.64rem;
    line-height: 1.45;
}

.hermes-dashboard .team-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15.5rem;
    gap: 0.8rem;
    align-items: start;
}

.hermes-dashboard .team-org,
.hermes-dashboard .team-activity {
    display: grid;
    align-content: start;
    gap: 0;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a)));
    border-radius: 14px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.58);
    overflow: hidden;
}

.hermes-dashboard .team-org > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.72rem 0.82rem;
    border-bottom: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a)));
}

.hermes-dashboard .team-org h3 {
    margin: 0.14rem 0 0;
    color: var(--hermes-text);
    font-size: 0.9rem;
    line-height: 1.3;
}

.hermes-dashboard .team-org > header > span {
    color: var(--hermes-soft);
    font-size: 0.62rem;
}

.hermes-dashboard .team-forest {
    display: flex;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hermes-dashboard .team-canvas {
    min-height: 22rem;
    overflow: auto;
    padding: 1.2rem 1rem 1.5rem;
    background-color: rgb(var(--hermes-bg-2-rgb) / 0.7);
    background-image: radial-gradient(rgb(var(--hermes-accent-rgb) / 0.13) 0.75px, transparent 0.75px);
    background-size: 18px 18px;
    scrollbar-color: rgb(var(--hermes-accent-rgb) / 0.28) transparent;
}

.hermes-dashboard .work-board-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    min-width: 0;
}

.hermes-dashboard .work-board-layout--detail {
    grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 0.3fr);
}

.hermes-dashboard .team-forest > .agent-node {
    padding-top: 0;
}

.hermes-dashboard .team-forest > .agent-node::before,
.hermes-dashboard .team-forest > .agent-node::after {
    display: none;
}

.hermes-dashboard .team-add-branch {
    display: grid;
    justify-items: center;
}

.hermes-dashboard .team-add-branch > span {
    width: 1px;
    height: 1.25rem;
    background: rgb(var(--hermes-accent-rgb) / 0.42);
}

.hermes-dashboard .team-add-branch button {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.58rem 0.8rem;
    color: var(--hermes-dim);
    border: 1px dashed rgb(var(--hermes-accent-rgb) / 0.38);
    border-radius: 9px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.88);
    font: inherit;
    font-size: 0.64rem;
    cursor: pointer;
}

.hermes-dashboard .team-add-branch button:hover {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-accent-rgb) / 0.65);
    background: rgb(var(--hermes-accent-rgb) / 0.07);
}

.hermes-dashboard .team-add-branch button:focus-visible {
    outline: 2px solid var(--hermes-accent);
    outline-offset: 2px;
}

.hermes-dashboard .team-add-branch b {
    font-size: 0.9rem;
    font-weight: 500;
}

.hermes-dashboard .team-empty {
    display: grid;
    align-content: center;
    gap: 0.34rem;
    min-height: 8rem;
    padding: 1rem;
    border: 1px dashed rgb(var(--hermes-accent-rgb) / 0.35);
    border-radius: 12px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .team-empty strong { color: var(--hermes-text); }
.hermes-dashboard .team-empty p { max-width: 32rem; margin: 0; color: var(--hermes-soft); line-height: 1.45; }

.hermes-dashboard .team-editor {
    align-content: start;
}

.hermes-dashboard .team-editor__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hermes-dashboard .team-editor__wide {
    grid-column: 1 / -1;
}

.hermes-dashboard .team-editor__actions {
    align-items: flex-end;
}

.hermes-dashboard .team-editor__actions > .button {
    justify-self: start;
}

.hermes-dashboard .team-activity {
    position: sticky;
    top: 0.7rem;
    background: linear-gradient(150deg, rgb(var(--hermes-bg-2-rgb) / 0.88), rgb(var(--hermes-bg-2-rgb) / 0.96));
}

.hermes-dashboard .team-activity > section {
    display: grid;
    gap: 0.65rem;
    padding: 0.82rem;
    border-bottom: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a)));
}

.hermes-dashboard .team-activity > section:last-child {
    border-bottom: 0;
}

.hermes-dashboard .team-activity__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hermes-dashboard .team-activity__heading p {
    margin: 0;
}

.hermes-dashboard .team-activity__heading button {
    padding: 0;
    color: var(--hermes-accent-2);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.59rem;
    cursor: pointer;
}

.hermes-dashboard .team-activity__freshness {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--hermes-soft);
    font-size: 0.5rem;
}

.hermes-dashboard .team-activity__credits {
    color: var(--hermes-accent-hi);
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.hermes-dashboard .team-activity__credits small {
    color: var(--hermes-soft);
    font-size: 0.58rem;
    font-weight: 600;
}

.hermes-dashboard .team-activity__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.38rem;
}

.hermes-dashboard .team-activity__stats span {
    display: grid;
    gap: 0.08rem;
    padding: 0.45rem;
    color: var(--hermes-soft);
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.06 * var(--hermes-line-a)));
    border-radius: 8px;
    background: rgb(var(--hermes-ink-rgb) / calc(0.015 * var(--hermes-line-a)));
    font-size: 0.54rem;
}

.hermes-dashboard .team-activity__stats b {
    color: var(--hermes-muted);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}

.hermes-dashboard .team-activity__empty {
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.61rem;
    line-height: 1.45;
}

.hermes-dashboard .team-activity__list {
    display: grid;
}

.hermes-dashboard .team-activity__list > button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.48rem;
    align-items: center;
    padding: 0.52rem 0;
    color: inherit;
    border: 0;
    border-bottom: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.06 * var(--hermes-line-a)));
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.hermes-dashboard .team-activity__list > button:last-child {
    border-bottom: 0;
}

.hermes-dashboard .team-activity__list > button:hover strong {
    color: var(--hermes-accent-2);
}

.hermes-dashboard .team-activity__list > button > span {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.hermes-dashboard .team-activity__list strong,
.hermes-dashboard .team-activity__list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .team-activity__list strong {
    color: var(--hermes-muted);
    font-size: 0.62rem;
}

.hermes-dashboard .team-activity__list small {
    color: var(--hermes-soft);
    font-size: 0.52rem;
}

.hermes-dashboard .work-modal-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: var(--hermes-scrim-strong);
    backdrop-filter: blur(9px);
}

.hermes-dashboard .work-modal {
    width: min(42rem, 100%);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    border-radius: 17px;
    box-shadow: 0 30px 90px rgb(var(--hermes-shadow-rgb) / calc(0.58 * var(--hermes-shadow-a)));
}

.hermes-dashboard .work-modal .team-editor {
    border-color: rgb(var(--hermes-accent-rgb) / 0.42);
    background: radial-gradient(circle at 10% 0, rgb(var(--hermes-accent-rgb) / 0.11), transparent 35%), var(--hermes-panel);
}

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

@media (max-width: 1100px) {
    .hermes-dashboard .team-dashboard {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .work-board-layout--detail {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .work-detail {
        position: static;
        max-height: none;
    }

    .hermes-dashboard .team-activity {
        position: static;
    }
}

@media (max-width: 760px) {
    .hermes-dashboard .work-surface {
        grid-auto-rows: max-content;
        padding: 0.85rem;
    }

    .hermes-dashboard .work-toolbar,
    .hermes-dashboard .team-commandbar,
    .hermes-dashboard .work-composer__actions,
    .hermes-dashboard .team-editor__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hermes-dashboard .team-commandbar {
        display: grid;
        min-height: max-content;
        justify-content: stretch;
    }

    .hermes-dashboard .work-toolbar > .button,
    .hermes-dashboard .team-commandbar__actions,
    .hermes-dashboard .team-commandbar__actions > .button {
        width: 100%;
    }

    .hermes-dashboard .team-commandbar__actions {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .hermes-dashboard .work-composer__grid,
    .hermes-dashboard .team-editor__grid {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .work-composer__context,
    .hermes-dashboard .team-editor__wide {
        grid-column: auto;
    }

    .hermes-dashboard .skill-picker__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hermes-dashboard .skill-picker__list {
        max-height: 13rem;
    }

    .hermes-dashboard .team-canvas {
        min-height: 18rem;
        padding-inline: 0.6rem;
    }

    .hermes-dashboard .work-board {
        grid-template-columns: repeat(5, minmax(10.5rem, 1fr));
    }

    .hermes-dashboard .work-board__empty,
    .hermes-dashboard .team-onboarding {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .hermes-dashboard .work-detail__content {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .work-events li {
        display: grid;
        gap: 0.1rem;
    }

    .hermes-dashboard .work-load-state--error {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .hermes-dashboard .team-commandbar__actions > .button--secondary:first-child {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hermes-dashboard .work-card { transition: none; }
    .hermes-dashboard .work-load-state__indicator { animation: none; }
}

.hermes-dashboard .panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.hermes-dashboard .panel__toolbar {
    display: flex;
    justify-content: flex-end;
}

.hermes-dashboard .panel__header--compact {
    align-items: center;
    padding: 0 0.05rem;
}

.hermes-dashboard .panel__header--compact .eyebrow {
    margin-bottom: 0.18rem;
}

.hermes-dashboard .panel__header--compact h2 {
    font-size: clamp(1.02rem, 1.35vw, 1.36rem);
}

.hermes-dashboard .panel__summary {
    margin-top: 0.12rem;
    max-width: 36rem;
    font-size: 0.78rem;
    line-height: 1.32;
}

.hermes-dashboard .empty-panel {
    display: grid;
    align-content: center;
    gap: 0.55rem;
    min-height: 12rem;
    padding: 0.95rem;
    border: 1px dashed rgb(var(--hermes-ink-rgb) / calc(0.24 * var(--hermes-line-a)));
    border-radius: 12px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .empty-panel--compact {
    min-height: 8.5rem;
}

.hermes-dashboard .chat-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hermes-dashboard .chat-main {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    min-width: 0;
    min-height: 0;
    order: initial;
    overflow: hidden;
}

.hermes-dashboard .chat-main .chat-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.hermes-dashboard .chat-drop-indicator {
    position: absolute;
    inset: 0.72rem;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.34rem;
    padding: 1.4rem;
    text-align: center;
    color: var(--hermes-text);
    border: 1px dashed rgb(var(--hermes-ink-rgb) / 0.58);
    border-radius: 14px;
    background: var(--hermes-panel-soft);
    box-shadow: 0 20px 48px rgb(var(--hermes-shadow-rgb) / calc(0.32 * var(--hermes-shadow-a)));
    opacity: 0;
    pointer-events: none;
    transform: scale(0.985);
    transition: opacity 160ms ease, transform 160ms ease;
}

.hermes-dashboard .chat-main--drop-active .chat-drop-indicator {
    opacity: 1;
    transform: scale(1);
}

.hermes-dashboard .chat-drop-indicator strong {
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    line-height: 1.18;
}

.hermes-dashboard .chat-drop-indicator small {
    color: var(--hermes-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.hermes-dashboard .chat-drop-indicator__icon {
    position: relative;
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.12rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / 0.6);
    border-radius: 12px;
    background: var(--hermes-panel-raised);
}

.hermes-dashboard .chat-drop-indicator__icon::before,
.hermes-dashboard .chat-drop-indicator__icon::after {
    position: absolute;
    content: "";
}

.hermes-dashboard .chat-drop-indicator__icon::before {
    inset: 0.58rem 0.9rem 0.52rem;
    border-left: 2px solid currentColor;
    transform: translateX(0.08rem);
}

.hermes-dashboard .chat-drop-indicator__icon::after {
    left: 0.76rem;
    top: 0.62rem;
    width: 0.62rem;
    height: 0.62rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(-45deg);
}

.hermes-dashboard .chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    padding: clamp(0.72rem, 1.4vw, 1.35rem);
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    background: transparent;
    scrollbar-color: rgb(var(--hermes-ink-rgb) / calc(0.22 * var(--hermes-line-a))) rgb(var(--hermes-ink-rgb) / calc(0.04 * var(--hermes-line-a)));
}

.hermes-dashboard .message-bubble {
    display: grid;
    gap: 0.36rem;
    align-self: flex-start;
    min-width: 0;
    max-width: min(76ch, 78%);
    padding: 0.72rem 0.82rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.07 * var(--hermes-line-a)));
    border-radius: 12px;
    background: var(--hermes-panel);
    box-shadow: none;
}

.hermes-dashboard .message-bubble--user {
    margin-left: auto;
    align-self: flex-end;
    max-width: min(34rem, 70%);
    color: var(--hermes-text);
    border-color: rgb(var(--hermes-accent-rgb) / 0.22);
    background: var(--hermes-bubble-user);
}

.hermes-dashboard .message-bubble--assistant {
    border-color: transparent;
    background: transparent;
}

.hermes-dashboard .message-bubble--system,
.hermes-dashboard .message-bubble--tool {
    color: var(--hermes-muted);
    border-style: dashed;
    background: var(--hermes-bg-2);
}

.hermes-dashboard .message-bubble--error {
    color: var(--hermes-danger-ink);
    border-color: rgb(var(--hermes-danger-rgb) / 0.34);
    background: var(--hermes-danger-bg);
}

.hermes-dashboard .message-bubble--user p,
.hermes-dashboard .message-bubble--user .message-bubble__header,
.hermes-dashboard .message-bubble--user .message-bubble__meta {
    color: inherit;
}

.hermes-dashboard .message-bubble__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.58rem;
    color: var(--hermes-soft);
    font-size: 0.68rem;
    font-weight: 650;
}

.hermes-dashboard .message-bubble__meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.42rem;
    color: var(--hermes-soft);
    font-weight: 560;
}

.hermes-dashboard .message-bubble p {
    color: inherit;
    font-size: 0.92rem;
    line-height: 1.62;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Ход мысли: рабочие заметки агента между вызовами инструментов. Свёрнуты и приглушены,
   чтобы ответ читался первым, но остаются доступными без запроса в поддержку. */
.hermes-dashboard .message-thinking {
    align-self: flex-start;
    max-width: min(76ch, 78%);
    margin-bottom: -0.1rem;
    color: var(--hermes-soft);
}

.hermes-dashboard .message-thinking > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.24rem 0.1rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}

.hermes-dashboard .message-thinking > summary::-webkit-details-marker {
    display: none;
}

.hermes-dashboard .message-thinking > summary:hover,
.hermes-dashboard .message-thinking[open] > summary {
    color: var(--hermes-dim);
}

.hermes-dashboard .message-thinking > summary:focus-visible {
    outline: 2px solid var(--hermes-accent);
    outline-offset: 2px;
}

.hermes-dashboard .message-thinking__caret {
    width: 0;
    height: 0;
    flex: 0 0 auto;
    border-top: 0.28rem solid transparent;
    border-bottom: 0.28rem solid transparent;
    border-left: 0.38rem solid currentColor;
    transition: transform 160ms ease;
}

.hermes-dashboard .message-thinking[open] .message-thinking__caret {
    transform: rotate(90deg);
}

.hermes-dashboard .message-thinking__count {
    color: var(--hermes-soft);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    opacity: 0.85;
}

.hermes-dashboard .message-thinking__body {
    display: grid;
    gap: 0.7rem;
    margin: 0.3rem 0 0.45rem;
    padding: 0.1rem 0 0.1rem 0.75rem;
    border-left: 1px solid var(--hermes-line);
}

.hermes-dashboard .message-thinking__step {
    display: grid;
    gap: 0.16rem;
    color: var(--hermes-soft);
}

.hermes-dashboard .message-thinking__time {
    color: var(--hermes-soft);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
    .hermes-dashboard .message-thinking__caret {
        transition-duration: 0.01ms;
    }
}

.hermes-dashboard .message-attachments {
    display: grid;
    gap: 0.52rem;
    min-width: 0;
}

.hermes-dashboard .message-attachment {
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.095 * var(--hermes-line-a)));
    border-radius: 12px;
    background: var(--hermes-panel-strong);
    overflow: hidden;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hermes-dashboard .message-attachment:hover {
    transform: translateY(-1px);
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.16 * var(--hermes-line-a)));
    background: var(--hermes-panel-raised);
}

.hermes-dashboard .message-attachment--image {
    display: grid;
    gap: 0.42rem;
    width: min(100%, 34rem);
    padding: 0.42rem;
}

.hermes-dashboard .message-attachment--image img {
    display: block;
    width: 100%;
    max-height: 22rem;
    object-fit: contain;
    border-radius: 9px;
    background: var(--hermes-image-bg);
}

.hermes-dashboard .message-attachment__caption {
    display: grid;
    gap: 0.12rem;
    padding: 0 0.1rem 0.06rem;
}

.hermes-dashboard .message-attachment__caption strong,
.hermes-dashboard .message-attachment__body strong {
    color: inherit;
    font-size: 0.82rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.hermes-dashboard .message-attachment__caption small,
.hermes-dashboard .message-attachment__body small {
    color: var(--hermes-soft);
    font-size: 0.7rem;
    line-height: 1.26;
    overflow-wrap: anywhere;
}

.hermes-dashboard .message-attachment--file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.58rem;
    padding: 0.58rem 0.64rem;
}

.hermes-dashboard .message-attachment__file-icon {
    position: relative;
    width: 1.05rem;
    height: 1.28rem;
    border: 1.5px solid currentColor;
    border-radius: 0.18rem;
    opacity: 0.82;
}

.hermes-dashboard .message-attachment__file-icon::after {
    content: "";
    position: absolute;
    top: 0.16rem;
    right: 0.16rem;
    width: 0.28rem;
    height: 0.28rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.hermes-dashboard .message-attachment__body {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.hermes-dashboard .message-attachment__download {
    color: var(--hermes-accent-2);
    font-size: 0.7rem;
    font-weight: 700;
}

.hermes-dashboard .message-attachment--unavailable {
    color: var(--hermes-muted);
    cursor: default;
}

.hermes-dashboard .message-bubble--user .message-attachment {
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.11 * var(--hermes-line-a)));
    background: var(--hermes-panel-raised);
}

.hermes-dashboard .message-bubble--user .message-attachment:hover {
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.18 * var(--hermes-line-a)));
    background: var(--hermes-panel-hi);
}

.hermes-dashboard .message-bubble--user .message-attachment__caption small,
.hermes-dashboard .message-bubble--user .message-attachment__body small {
    color: var(--hermes-soft);
}

.hermes-dashboard .chat-loading {
    display: grid;
    align-content: center;
    gap: 0.8rem;
    min-height: 16rem;
    padding: 1rem;
}

.hermes-dashboard .chat-loading span {
    display: block;
    width: min(100%, 44rem);
    height: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgb(var(--hermes-ink-rgb) / calc(0.05 * var(--hermes-line-a))), rgb(var(--hermes-ink-rgb) / calc(0.14 * var(--hermes-line-a))), rgb(var(--hermes-ink-rgb) / calc(0.05 * var(--hermes-line-a))));
    animation: shimmer 1.4s ease-in-out infinite;
}

.hermes-dashboard .chat-loading span:nth-child(2) {
    width: min(72%, 34rem);
    animation-delay: 120ms;
}

.hermes-dashboard .chat-loading span:nth-child(3) {
    width: min(86%, 38rem);
    animation-delay: 240ms;
}

.hermes-dashboard .chat-loading p {
    font-size: 0.9rem;
}

.hermes-dashboard .chat-main > .chat-thread {
    grid-row: 1;
    grid-column: 1;
}

.hermes-dashboard .chat-main > .composer-shell {
    grid-row: 2;
    grid-column: 1;
}

.hermes-dashboard .chat-jump-button {
    z-index: 4;
    grid-row: 1;
    grid-column: 1;
    justify-self: end;
    align-self: end;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 1.15rem 0.9rem 0;
    padding: 0;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.16 * var(--hermes-line-a)));
    border-radius: 50%;
    background: var(--hermes-panel-raised);
    box-shadow: 0 6px 18px rgb(var(--hermes-shadow-rgb) / calc(0.42 * var(--hermes-shadow-a)));
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.hermes-dashboard .chat-jump-button:hover {
    transform: translateY(-1px);
    background: var(--hermes-panel-hi);
}

.hermes-dashboard .chat-jump-button__icon {
    width: 0.62rem;
    height: 0.62rem;
    border-right: 2px solid var(--hermes-text);
    border-bottom: 2px solid var(--hermes-text);
    transform: translateY(-2px) rotate(45deg);
}

.hermes-dashboard .session-files {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.hermes-dashboard .session-files__label {
    color: var(--hermes-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.hermes-dashboard .session-files__list {
    display: flex;
    gap: 0.36rem;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 0.14rem;
    scrollbar-width: thin;
}

.hermes-dashboard .session-files__item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.34rem;
    max-width: 15rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.14 * var(--hermes-line-a)));
    border-radius: 999px;
    background: var(--hermes-panel-soft);
    color: var(--hermes-text);
    font-size: 0.76rem;
    text-decoration: none;
}

.hermes-dashboard .session-files__item:hover {
    border-color: rgb(var(--hermes-accent-rgb) / 0.5);
    background: var(--hermes-panel-raised);
}

.hermes-dashboard .session-files__icon {
    flex: 0 0 auto;
    width: 0.62rem;
    height: 0.78rem;
    border: 1px solid var(--hermes-muted);
    border-radius: 2px;
}

.hermes-dashboard .session-files__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .composer-shell {
    display: grid;
    gap: 0.5rem;
    padding: 0.7rem 0.76rem 0.62rem;
    border-width: 1px 0 0;
    border-radius: 0;
    background: var(--hermes-bg-2);
    box-shadow: none;
}

.hermes-dashboard .composer-shell .field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hermes-dashboard .field-label {
    color: var(--hermes-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.hermes-dashboard .composer-shell__input,
.hermes-dashboard .field-card input,
.hermes-dashboard .field-card select {
    width: 100%;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.12 * var(--hermes-line-a)));
    border-radius: 12px;
    background: var(--hermes-panel-soft);
    color: var(--hermes-text);
    font: inherit;
    transition: opacity 180ms ease;
}

.hermes-dashboard .composer-shell__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.52rem;
    min-width: 0;
    padding: 0.34rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.14 * var(--hermes-line-a)));
    border-radius: 13px;
    background: var(--hermes-panel);
    transition: opacity 180ms ease;
}

.hermes-dashboard .composer-shell__bar:focus-within {
    border-color: rgb(var(--hermes-accent-rgb) / 0.5);
    background: var(--hermes-panel-soft);
    box-shadow: 0 0 0 3px rgb(var(--hermes-accent-rgb) / 0.1);
}

.hermes-dashboard .composer-shell__input {
    min-height: 4.6rem;
    max-height: min(18rem, 40vh);
    padding: 0.6rem 0.7rem;
    border: 0;
    border-radius: 11px;
    background: transparent;
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
}

.hermes-dashboard .composer-shell__input:focus {
    outline: none;
    background: transparent;
    box-shadow: none;
}

.hermes-dashboard .composer-shell__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    align-self: end;
    min-width: max-content;
}

.hermes-dashboard .composer-shell__icon-button {
    position: relative;
    width: 2.36rem;
    height: 2.36rem;
    flex: 0 0 2.36rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.13 * var(--hermes-line-a)));
    border-radius: 10px;
    background: var(--hermes-panel-strong);
    color: var(--hermes-soft);
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
}

.hermes-dashboard .composer-shell__icon-button:hover:not(:disabled) {
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.34 * var(--hermes-line-a)));
    background: var(--hermes-panel-raised);
    color: var(--hermes-text);
    transform: translateY(-1px);
}

.hermes-dashboard .composer-shell__icon-button:active:not(:disabled) {
    transform: translateY(0);
}

.hermes-dashboard .composer-shell__icon-button:disabled {
    opacity: 0.44;
    cursor: default;
}

.hermes-dashboard .composer-shell__voice-icon {
    position: relative;
    display: block;
    width: 1rem;
    height: 1.08rem;
    margin: 0 auto;
}

.hermes-dashboard .composer-shell__voice-icon::before {
    position: absolute;
    top: 0;
    left: 0.3rem;
    width: 0.4rem;
    height: 0.66rem;
    border: 1.5px solid currentColor;
    border-radius: 0.3rem;
    content: "";
}

.hermes-dashboard .composer-shell__voice-icon::after {
    position: absolute;
    bottom: 0;
    left: 0.15rem;
    width: 0.7rem;
    height: 0.52rem;
    border: 1.5px solid currentColor;
    border-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    content: "";
}

.hermes-dashboard .composer-shell__voice-button::before {
    position: absolute;
    bottom: 0.26rem;
    left: 50%;
    width: 0.42rem;
    height: 1.5px;
    margin-left: -0.21rem;
    background: currentColor;
    content: "";
}

.hermes-dashboard .composer-shell__voice-button--recording {
    color: var(--hermes-rec-ink);
    border-color: rgb(var(--hermes-danger-rgb) / 0.72);
    background: rgb(var(--hermes-rec-bg-rgb) / 0.34);
    animation: voice-recording-pulse 1.2s ease-in-out infinite;
}

.hermes-dashboard .composer-shell__voice-button--recording:hover:not(:disabled) {
    color: var(--hermes-rec-ink-hi);
    background: rgb(var(--hermes-rec-bg-rgb) / 0.42);
}

.hermes-dashboard .composer-shell__voice-status {
    margin: 0;
    color: var(--hermes-accent-2);
    font-size: 0.72rem;
    line-height: 1.42;
}

@keyframes voice-recording-pulse {
    50% {
        box-shadow: 0 0 0 4px rgb(var(--hermes-danger-rgb) / 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hermes-dashboard .composer-shell__voice-button--recording {
        animation: none;
    }
}

.hermes-dashboard .composer-shell__send-button {
    min-width: 8.4rem;
    min-height: 2.36rem;
    border-radius: 12px;
    white-space: nowrap;
}

.hermes-dashboard .composer-shell__attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    min-width: 0;
}

.hermes-dashboard .composer-shell__attachment {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.34rem;
    max-width: min(100%, 23rem);
    min-height: 1.9rem;
    padding: 0.28rem 0.34rem 0.28rem 0.54rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.11 * var(--hermes-line-a)));
    border-radius: 8px;
    background: var(--hermes-panel-strong);
    color: var(--hermes-text);
    font-size: 0.75rem;
}

.hermes-dashboard .composer-shell__attachment span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .composer-shell__attachment small {
    color: var(--hermes-soft);
    font-size: 0.66rem;
    white-space: nowrap;
}

.hermes-dashboard .composer-shell__attachment button {
    width: 1.28rem;
    height: 1.28rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--hermes-panel-raised);
    color: inherit;
    cursor: pointer;
    line-height: 1;
}

.hermes-dashboard .composer-shell__attachment button:disabled {
    opacity: 0.44;
    cursor: default;
}

.hermes-dashboard .composer-shell__file-error {
    color: var(--hermes-danger-ink);
    font-size: 0.72rem;
    line-height: 1.32;
}

.hermes-dashboard .field-card input {
    min-height: 2.8rem;
    padding: 0.75rem 0.9rem;
}

.hermes-dashboard .field-card select {
    min-height: 2.8rem;
    padding: 0.7rem 2.25rem 0.7rem 0.9rem;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--hermes-soft) 50%),
        linear-gradient(135deg, var(--hermes-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 1rem) 1.18rem,
        calc(100% - 0.7rem) 1.18rem;
    background-size: 0.32rem 0.32rem;
    background-repeat: no-repeat;
}

.hermes-dashboard .field-card select option {
    color: var(--hermes-text);
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .composer-shell__input::placeholder,
.hermes-dashboard .field-card input::placeholder {
    color: var(--hermes-soft);
}

@media (forced-colors: active) {
    .hermes-dashboard .field-card select {
        padding-right: 0.9rem;
        appearance: auto;
        background-image: none;
    }
}

.hermes-dashboard .composer-shell__input:focus,
.hermes-dashboard .field-card input:focus,
.hermes-dashboard .field-card select:focus {
    border-color: rgb(var(--hermes-accent-rgb) / 0.42);
    background-color: var(--hermes-panel-strong);
}

.hermes-dashboard .composer-shell__bar .composer-shell__input:focus {
    background: transparent;
}

.hermes-dashboard .panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.hermes-dashboard .panel__footer--actions {
    justify-content: flex-end;
}

.hermes-dashboard .composer-shell__tools {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    min-width: 0;
}

.hermes-dashboard .composer-shell__attach-button {
    position: relative;
    width: 2.08rem;
    height: 2.08rem;
    flex: 0 0 2.08rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.13 * var(--hermes-line-a)));
    border-radius: 10px;
    background: var(--hermes-panel-strong);
    color: var(--hermes-soft);
    cursor: pointer;
    transition: opacity 180ms ease;
}

.hermes-dashboard .composer-shell__attach-button:hover {
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.24 * var(--hermes-line-a)));
    background: var(--hermes-panel-raised);
    color: var(--hermes-text);
}

.hermes-dashboard .composer-shell__attach-button:focus-within {
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.34 * var(--hermes-line-a)));
    box-shadow: 0 0 0 3px rgb(var(--hermes-ink-rgb) / calc(0.1 * var(--hermes-line-a)));
    color: var(--hermes-text);
}

.hermes-dashboard .composer-shell__attach-icon,
.hermes-dashboard .composer-shell__attach-icon::after {
    position: absolute;
    display: block;
    border: 1.6px solid currentColor;
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

.hermes-dashboard .composer-shell__attach-icon {
    inset: 0.48rem 0.62rem 0.44rem 0.66rem;
    border-left-color: transparent;
    transform: rotate(-38deg);
}

.hermes-dashboard .composer-shell__attach-icon::after {
    inset: 0.2rem 0.2rem 0.22rem 0.18rem;
    border-right-color: transparent;
}

.hermes-dashboard .composer-shell__attach-button--disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: default;
}

.hermes-dashboard .panel__footer--split p {
    max-width: 32rem;
    font-size: 0.72rem;
    line-height: 1.32;
}

.hermes-dashboard .button--compact {
    min-height: 1.82rem;
    padding: 0.4rem 0.58rem;
    border-radius: 10px;
    font-size: 0.74rem;
}

.hermes-dashboard .field-grid,
.hermes-dashboard .channel-list,
.hermes-dashboard .session-list,
.hermes-dashboard .site-list,
.hermes-dashboard .skill-list {
    display: grid;
    gap: 0.85rem;
}

.hermes-dashboard .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hermes-dashboard .field-card,
.hermes-dashboard .channel-card,
.hermes-dashboard .site-card,
.hermes-dashboard .skill-card {
    display: grid;
    gap: 0.48rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--hermes-panel-soft);
    box-shadow: none;
}

.hermes-dashboard .channel-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.7rem 0.9rem;
}

.hermes-dashboard .channel-card--configuration {
    grid-template-columns: minmax(0, 1fr);
}

.hermes-dashboard .channel-card--configuration > * {
    grid-column: 1;
}

.hermes-dashboard .channel-card--configuration > .button-row {
    min-width: 0;
}

.hermes-dashboard .channel-config {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.25rem;
}

.hermes-dashboard .channel-config__field {
    display: grid;
    gap: 0.34rem;
    color: var(--hermes-soft);
    font-size: 0.7rem;
    font-weight: 720;
}

.hermes-dashboard .channel-config__field--wide {
    grid-column: 1 / -1;
}

.hermes-dashboard .channel-config__field input {
    width: 100%;
    min-height: 2.7rem;
    padding: 0.68rem 0.75rem;
    color: var(--hermes-text);
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.12 * var(--hermes-line-a)));
    border-radius: 10px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.72);
    font: inherit;
}

.hermes-dashboard .channel-config__field input:focus-visible {
    outline: 2px solid var(--hermes-accent);
    outline-offset: 1px;
    border-color: rgb(var(--hermes-accent-rgb) / 0.5);
}

.hermes-dashboard .channel-config__field input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.hermes-dashboard .channel-config__field small {
    color: var(--hermes-soft);
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1.45;
}

.hermes-dashboard .channel-config__switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.72rem 0.78rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.1 * var(--hermes-line-a)));
    border-radius: 11px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.36);
}

.hermes-dashboard .channel-config__switch-row strong,
.hermes-dashboard .channel-config__switch-row small {
    display: block;
}

.hermes-dashboard .channel-config__switch-row strong {
    color: var(--hermes-text);
    font-size: 0.76rem;
}

.hermes-dashboard .channel-config__switch-row small {
    margin-top: 0.16rem;
    color: var(--hermes-soft);
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1.35;
}

.hermes-dashboard .channel-card__header,
.hermes-dashboard .channel-card .code-card {
    grid-column: 1 / -1;
}

.hermes-dashboard .channel-card > .button-row {
    justify-content: flex-end;
    align-self: center;
    min-width: 14rem;
}

.hermes-dashboard .field-card--input {
    gap: 0.7rem;
    grid-column: 1 / -1;
}

.hermes-dashboard .profile-channel-card {
    margin-top: 0.85rem;
}

.hermes-dashboard .field-card strong,
.hermes-dashboard .field-card code {
    color: var(--hermes-text);
    font-size: 1rem;
}

.hermes-dashboard .field-card small,
.hermes-dashboard .code-card small,
.hermes-dashboard .channel-card__detail span {
    color: var(--hermes-soft);
    line-height: 1.55;
}

.hermes-dashboard .session-card {
    display: grid;
    gap: 0.32rem;
    width: 100%;
    padding: 0.62rem 0.64rem;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 10px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hermes-dashboard .session-list--compact {
    align-content: start;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 0.08rem;
    scrollbar-color: rgb(var(--hermes-ink-rgb) / calc(0.2 * var(--hermes-line-a))) rgb(var(--hermes-ink-rgb) / calc(0.03 * var(--hermes-line-a)));
}

.hermes-dashboard .session-list--compact .session-card {
    gap: 0.24rem;
    padding: 0.56rem 0.62rem;
    border-radius: 10px;
}

.hermes-dashboard .session-list--compact .session-card p {
    display: none;
}

.hermes-dashboard .session-list--compact .session-card strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hermes-dashboard .session-list--compact .session-card__topline,
.hermes-dashboard .session-list--compact .session-card__meta {
    gap: 0.34rem;
}

.hermes-dashboard .session-card:hover:not(:disabled) {
    transform: translateX(1px);
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.065 * var(--hermes-line-a)));
    background: var(--hermes-panel);
}

.hermes-dashboard .session-card:active:not(:disabled) {
    transform: translateX(1px) scale(0.99);
}

.hermes-dashboard .session-card--active {
    border-color: rgb(var(--hermes-accent-rgb) / 0.2);
    background: var(--hermes-panel-strong);
    box-shadow: inset 2px 0 0 var(--hermes-accent);
}

.hermes-dashboard .session-card strong,
.hermes-dashboard .channel-card h3 {
    color: var(--hermes-text);
    font-size: 0.82rem;
    font-weight: 720;
    line-height: 1.26;
    overflow-wrap: anywhere;
}

.hermes-dashboard .session-card p,
.hermes-dashboard .channel-card p {
    font-size: 0.74rem;
    line-height: 1.38;
}

.hermes-dashboard .session-card__topline,
.hermes-dashboard .channel-card__header,
.hermes-dashboard .code-card__row,
.hermes-dashboard .channel-card__detail,
.hermes-dashboard .session-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.hermes-dashboard .session-card__meta,
.hermes-dashboard .channel-card__detail {
    flex-wrap: wrap;
    color: var(--hermes-soft);
    font-size: 0.7rem;
}

.hermes-dashboard .channel-card__header {
    align-items: center;
}

.hermes-dashboard .skill-list,
.hermes-dashboard .site-list {
    align-content: start;
    gap: 0.34rem;
    padding: 0.28rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.16 * var(--hermes-line-a)));
    border-radius: 15px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .skill-card,
.hermes-dashboard .site-card {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.42fr) auto;
    align-items: center;
    gap: 0.68rem;
    padding: 0.62rem 0.68rem;
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.075 * var(--hermes-line-a)));
    border-radius: 12px;
    background: var(--hermes-panel-deep);
    box-shadow: none;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hermes-dashboard .skill-card:hover,
.hermes-dashboard .site-card:hover {
    transform: translateY(-1px);
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.25 * var(--hermes-line-a)));
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .skill-card__main,
.hermes-dashboard .site-card__main {
    min-width: 0;
}

.hermes-dashboard .skill-card__eyebrow,
.hermes-dashboard .skill-card__title-row,
.hermes-dashboard .site-card__eyebrow,
.hermes-dashboard .site-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.hermes-dashboard .skill-card__eyebrow,
.hermes-dashboard .site-card__eyebrow {
    margin-bottom: 0.16rem;
    color: rgb(var(--hermes-accent-rgb) / 0.82);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hermes-dashboard .skill-card__eyebrow span + span::before,
.hermes-dashboard .site-card__eyebrow span + span::before {
    content: "/";
    margin-right: 0.42rem;
    color: rgb(var(--hermes-ink-rgb) / 0.28);
}

.hermes-dashboard .skill-card__title-row,
.hermes-dashboard .site-card__title-row {
    align-items: flex-start;
}

.hermes-dashboard .skill-card h3,
.hermes-dashboard .site-card h3 {
    color: var(--hermes-text);
    min-width: 0;
    font-size: 0.93rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.hermes-dashboard .skill-card p,
.hermes-dashboard .site-card p {
    display: -webkit-box;
    margin-top: 0.18rem;
    overflow: hidden;
    color: rgb(var(--hermes-ink-rgb) / 0.62);
    font-size: 0.72rem;
    line-height: 1.34;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hermes-dashboard .skill-card__meta,
.hermes-dashboard .site-card__meta {
    display: grid;
    gap: 0.16rem;
    align-items: center;
    justify-items: start;
    min-width: 0;
    color: var(--hermes-soft);
    font-size: 0.75rem;
}

.hermes-dashboard .skill-card__meta code {
    max-width: 100%;
    overflow: hidden;
    color: var(--hermes-accent-2);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .skill-card__technical {
    min-width: 0;
}

.hermes-dashboard .skill-card__technical summary {
    color: var(--hermes-soft);
    cursor: pointer;
    font-size: 0.7rem;
}

.hermes-dashboard .skill-card__technical[open] summary {
    margin-bottom: 0.32rem;
    color: var(--hermes-text);
}

.hermes-dashboard .site-card__main a {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.22rem;
    overflow: hidden;
    color: var(--hermes-accent-2);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .skill-card__actions,
.hermes-dashboard .site-card__actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-self: center;
    min-width: 10.5rem;
}

.hermes-dashboard .skill-card__actions {
    flex-wrap: wrap;
}

.hermes-dashboard .skill-card__confirmation {
    display: grid;
    flex-basis: 100%;
    gap: 0.32rem;
    padding: 0.5rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.28);
    border-radius: 9px;
    background: rgb(var(--hermes-accent-rgb) / 0.08);
    color: var(--hermes-soft);
    font-size: 0.68rem;
    line-height: 1.35;
}

.hermes-dashboard .skill-card__confirmation strong {
    color: var(--hermes-text);
    font-size: 0.72rem;
}

.hermes-dashboard .skill-card__confirmation .button-row {
    gap: 0.28rem;
}

.hermes-dashboard .code-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.22 * var(--hermes-line-a)));
    border-radius: 15px;
    background: var(--hermes-panel-soft);
    box-shadow: none;
}

.hermes-dashboard .code-card,
.hermes-dashboard .code-card p,
.hermes-dashboard .code-card small,
.hermes-dashboard .code-card code,
.hermes-dashboard .code-card span {
    color: var(--hermes-text);
}

.hermes-dashboard .code-card__row code {
    color: var(--hermes-accent-2);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hermes-dashboard .code-card__row strong {
    color: var(--hermes-text);
    font-weight: 750;
}

.hermes-dashboard .code-card__actions {
    margin-top: 0.15rem;
}

.hermes-dashboard .code-card__actions .button {
    text-decoration: none;
}

.hermes-dashboard .workspace-topbar {
    position: sticky;
    top: 0.55rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.2rem;
    padding: 0.62rem 0.78rem 0.62rem 0.9rem;
    border: 1px solid var(--hermes-line);
    border-radius: 14px;
    background: rgb(var(--hermes-bg-2-rgb) / 0.9);
    box-shadow: 0 18px 38px rgb(var(--hermes-shadow-rgb) / calc(0.2 * var(--hermes-shadow-a)));
    backdrop-filter: blur(18px);
}

.hermes-dashboard .workspace-topbar__brand,
.hermes-dashboard .workspace-topbar__actions {
    display: flex;
    align-items: center;
    min-width: 0;
}

.hermes-dashboard .theme-toggle {
    display: grid;
    width: 2.26rem;
    height: 2.26rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    color: var(--hermes-dim);
}

.hermes-dashboard .theme-toggle:hover:not(:disabled) {
    color: var(--hermes-text);
}

.hermes-dashboard .theme-toggle__icon {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hermes-dashboard .workspace-topbar__brand {
    gap: 0.62rem;
}

.hermes-dashboard .workspace-topbar__brand > div {
    display: grid;
    gap: 0.04rem;
    min-width: 0;
}

.hermes-dashboard .workspace-topbar__brand .eyebrow {
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.58rem;
}

.hermes-dashboard .workspace-topbar__brand strong {
    overflow: hidden;
    color: var(--hermes-text);
    font-size: 0.92rem;
    font-weight: 760;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .brand-handmark {
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    padding: 0.32rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.32);
    border-radius: 10px;
    background: var(--hermes-panel-soft);
    fill: var(--hermes-text);
}

.hermes-dashboard .brand-handmark__spark {
    fill: var(--hermes-accent);
}

.hermes-dashboard .workspace-topbar__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.38rem;
}

.hermes-dashboard .workspace-topbar__actions .button {
    min-height: 2.26rem;
}

.hermes-dashboard .workspace-topbar__menu {
    position: relative;
}

.hermes-dashboard .workspace-topbar__menu-trigger {
    min-height: 2.26rem;
    padding: 0.58rem 0.7rem;
    color: var(--hermes-soft);
    border: 1px solid var(--hermes-line);
    border-radius: 9px;
    background: var(--hermes-panel-soft);
    cursor: pointer;
    font-size: 0.72rem;
}

.hermes-dashboard .workspace-topbar__menu-trigger::after {
    margin-left: 0.35rem;
    content: "⌄";
}

.hermes-dashboard .workspace-topbar__menu:has(.workspace-topbar__menu-popover:popover-open) .workspace-topbar__menu-trigger {
    color: var(--hermes-text);
    border-color: rgb(var(--hermes-accent-rgb) / 0.38);
}

.hermes-dashboard .workspace-topbar__menu-popover {
    position: fixed;
    top: 3.55rem;
    right: 0.75rem;
    inset-inline-start: auto;
    margin: 0;
    z-index: 2;
    gap: 0.3rem;
    min-width: 12rem;
    padding: 0.36rem;
    border: 1px solid var(--hermes-line);
    border-radius: 11px;
    background: var(--hermes-panel-strong);
    box-shadow: 0 16px 32px rgb(var(--hermes-shadow-rgb) / calc(0.34 * var(--hermes-shadow-a)));
}

.hermes-dashboard .workspace-topbar__menu-popover:popover-open {
    display: grid;
}

@supports (anchor-name: --hermes-topbar-actions) {
    .hermes-dashboard .workspace-topbar__menu-trigger {
        anchor-name: --hermes-topbar-actions;
    }

    .hermes-dashboard .workspace-topbar__menu-popover {
        top: anchor(bottom);
        right: auto;
        left: anchor(right);
        margin-top: 0.38rem;
        transform: translateX(-100%);
        position-anchor: --hermes-topbar-actions;
    }
}

.hermes-dashboard .workspace-topbar__menu-popover .button {
    justify-content: flex-start;
}

.hermes-dashboard .workspace-nav__switcher {
    display: grid;
    gap: 0.28rem;
    margin-top: auto;
    padding: 0.58rem 0.12rem 0.06rem;
    border-top: 1px solid var(--hermes-line);
}

.hermes-dashboard .workspace-nav__switcher > span {
    color: var(--hermes-soft);
    font-size: 0.6rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hermes-dashboard .workspace-nav__switcher button {
    overflow: hidden;
    padding: 0.26rem 0;
    color: var(--hermes-accent-2);
    font: inherit;
    font-size: 0.72rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hermes-dashboard .workspace-nav__switcher button:hover,
.hermes-dashboard .workspace-nav__switcher button:focus-visible {
    color: var(--hermes-text);
}

.hermes-dashboard .agent-progress {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.46rem;
    padding: 0.4rem 0.58rem;
    color: var(--hermes-accent-2);
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.2);
    border-radius: 999px;
    background: rgb(var(--hermes-accent-rgb) / 0.08);
    font-size: 0.72rem;
    line-height: 1.2;
}

.hermes-dashboard .agent-progress__pulse {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--hermes-accent);
    box-shadow: 0 0 0 0 rgb(var(--hermes-accent-rgb) / 0.4);
    animation: agent-pulse 1.45s ease-out infinite;
}

.hermes-dashboard .technical-details {
    display: grid;
    gap: 0.65rem;
    padding: 0.72rem 0.82rem;
    border: 1px solid var(--hermes-line);
    border-radius: 12px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .technical-details summary {
    color: var(--hermes-soft);
    font-size: 0.76rem;
    cursor: pointer;
}

.hermes-dashboard .technical-details[open] summary {
    color: var(--hermes-text);
}

.hermes-dashboard .technical-details__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.hermes-dashboard .technical-details__grid > div {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.hermes-dashboard .technical-details__grid span {
    color: var(--hermes-soft);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hermes-dashboard .technical-details__grid strong,
.hermes-dashboard .technical-details__grid code {
    overflow: hidden;
    color: var(--hermes-text);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .workspace-preparing {
    align-content: center;
    max-width: 42rem;
    margin: auto;
    border-style: solid;
}

.hermes-dashboard .workspace-preparing__steps {
    display: grid;
    gap: 0.48rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hermes-dashboard .workspace-preparing__step {
    display: grid;
    grid-template-columns: 1.65rem minmax(0, 1fr);
    align-items: center;
    gap: 0.62rem;
    min-height: 3.15rem;
    padding: 0.65rem 0.76rem;
    color: var(--hermes-soft);
    border: 1px solid var(--hermes-line);
    border-radius: 9px;
    background: rgb(var(--hermes-ink-rgb) / calc(0.02 * var(--hermes-line-a)));
    font-size: 0.82rem;
    font-weight: 700;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hermes-dashboard .workspace-preparing__step--active {
    color: var(--hermes-text);
    border-color: rgb(var(--hermes-accent-rgb) / 0.42);
    background: rgb(var(--hermes-accent-rgb) / 0.09);
}

.hermes-dashboard .workspace-preparing__step--complete {
    color: var(--hermes-muted);
}

.hermes-dashboard .workspace-preparing__marker {
    display: inline-grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    color: var(--hermes-soft);
    border: 1px solid var(--hermes-line);
    border-radius: 50%;
    font-family: "JetBrains Mono", "Cascadia Code", monospace;
    font-size: 0.58rem;
    font-weight: 760;
}

.hermes-dashboard .workspace-preparing__step--active .workspace-preparing__marker {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-accent-rgb) / 0.5);
}

.hermes-dashboard .workspace-preparing__step--complete .workspace-preparing__marker {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-accent-rgb) / 0.28);
}

.hermes-dashboard .workspace-preparing__spinner {
    width: 0.72rem;
    height: 0.72rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: workspace-preparing-spin 0.9s linear infinite;
}

@keyframes workspace-preparing-spin {
    to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
    .hermes-dashboard .workspace-preparing__spinner {
        animation: none;
        border-right-color: currentColor;
    }
}

.hermes-dashboard .workspace-preparing__reason {
    margin: 0.72rem 0 0;
    color: var(--hermes-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

/* Shown when the backend refuses chat: plan ended, credits gone, or runtime stopped. */
.hermes-dashboard .access-notice {
    align-content: center;
    justify-items: center;
    max-width: 34rem;
    margin: auto;
    padding: 1.5rem 1.3rem;
    gap: 0.62rem;
    border-style: solid;
    text-align: center;
}

.hermes-dashboard .access-notice__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.34);
    border-radius: 50%;
    background: rgb(var(--hermes-accent-rgb) / 0.1);
}

.hermes-dashboard .access-notice__icon::before {
    color: var(--hermes-accent-2);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    content: "!";
}

.hermes-dashboard .access-notice h3 {
    margin: 0;
    font-size: 1.05rem;
}

.hermes-dashboard .access-notice p {
    max-width: 30rem;
    margin: 0;
    color: var(--hermes-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.hermes-dashboard .access-notice__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.42rem;
}

.hermes-dashboard .composer-shell__access-warning {
    display: grid;
    gap: 0.12rem;
    padding: 0.5rem 0.68rem;
    margin: 0;
    color: var(--hermes-muted);
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.26);
    border-radius: 10px;
    background: rgb(var(--hermes-accent-rgb) / 0.08);
    font-size: 0.76rem;
    line-height: 1.45;
}

.hermes-dashboard .composer-shell__access-warning strong {
    color: var(--hermes-text);
}

.hermes-dashboard .composer-shell__access-warning--blocked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--hermes-danger-ink);
    border-color: rgb(var(--hermes-danger-rgb) / 0.34);
    background: var(--hermes-danger-bg);
}

.hermes-dashboard .composer-shell__access-warning--blocked strong {
    color: var(--hermes-danger-ink-hi, var(--hermes-text));
}

.hermes-dashboard .composer-shell__access-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hermes-dashboard .starter-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: 0.72rem;
}

.hermes-dashboard .starter-prompts button {
    padding: 0.44rem 0.56rem;
    color: var(--hermes-accent-2);
    border: 1px solid rgb(var(--hermes-accent-rgb) / 0.22);
    border-radius: 999px;
    background: rgb(var(--hermes-accent-rgb) / 0.06);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
}

.hermes-dashboard .starter-prompts button:hover,
.hermes-dashboard .starter-prompts button:focus-visible {
    color: var(--hermes-text);
    border-color: rgb(var(--hermes-accent-rgb) / 0.52);
    background: rgb(var(--hermes-accent-rgb) / 0.14);
}

@keyframes agent-pulse {
    70%,
    100% {
        box-shadow: 0 0 0 0.42rem rgb(var(--hermes-accent-rgb) / 0);
    }
}

@media (max-width: 1100px) {
    .hermes-dashboard .guest-preview-grid,
    .hermes-dashboard .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hermes-dashboard .dashboard-grid,
    .hermes-dashboard .hero-shell,
    .hermes-dashboard .workspace-console,
    .hermes-dashboard .chat-workspace {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .workspace-console {
        min-height: auto;
    }

    .hermes-dashboard .workspace-nav {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--hermes-line);
    }

    .hermes-dashboard .panel--chat {
        height: auto;
        min-height: 42rem;
    }

    .hermes-dashboard .chat-main {
        order: initial;
    }

    .hermes-dashboard .workspace-nav__items {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hermes-dashboard .workspace-nav__summary {
        margin-top: 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hermes-dashboard .channel-config {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .channel-config__field--wide {
        grid-column: 1;
    }

    .hermes-dashboard {
        padding: 0.78rem 0.55rem 1.5rem;
    }

    .hermes-dashboard .workspace-topbar {
        position: static;
        align-items: flex-start;
        min-height: 0;
        padding: 0.7rem;
    }

    .hermes-dashboard .workspace-topbar__actions {
        justify-content: flex-start;
    }

    .hermes-dashboard .workspace-topbar__actions .button {
        min-height: 2.1rem;
        padding-inline: 0.52rem;
        font-size: 0.68rem;
    }

    .hermes-dashboard .technical-details__grid {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .state-card,
    .hermes-dashboard .hero-shell,
    .hermes-dashboard .panel {
        padding: 0.82rem;
        border-radius: 16px;
    }

    .hermes-dashboard .workspace-console {
        padding: 0;
        border-radius: 16px;
    }

    .hermes-dashboard .workspace-nav {
        padding: 0.72rem;
        border-radius: 0;
    }

    .hermes-dashboard .hero-shell__side {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .brand-lockup {
        align-items: start;
    }

    .hermes-dashboard .brand-lockup__mark {
        width: 2.65rem;
        height: 2.65rem;
    }

    .hermes-dashboard .guest-preview-grid,
    .hermes-dashboard .metric-grid,
    .hermes-dashboard .field-grid,
    .hermes-dashboard .site-list,
    .hermes-dashboard .skill-list {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .workspace-nav__items {
        grid-template-columns: repeat(5, minmax(8.75rem, 1fr));
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .hermes-dashboard .workspace-nav__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hermes-dashboard .panel__header,
    .hermes-dashboard .panel__footer,
    .hermes-dashboard .inline-banner,
    .hermes-dashboard .session-card__topline,
    .hermes-dashboard .channel-card__header,
    .hermes-dashboard .channel-card__detail,
    .hermes-dashboard .site-card__title-row,
    .hermes-dashboard .session-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hermes-dashboard .skill-card__actions,
    .hermes-dashboard .site-card__actions,
    .hermes-dashboard .channel-card > .button-row {
        justify-content: flex-start;
    }

    .hermes-dashboard .skill-card,
    .hermes-dashboard .site-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .hermes-dashboard .skill-card__title-row,
    .hermes-dashboard .site-card__title-row {
        flex-wrap: wrap;
    }

    .hermes-dashboard .skill-card__actions,
    .hermes-dashboard .site-card__actions {
        min-width: 0;
    }

    .hermes-dashboard .channel-card {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .channel-card > .button-row {
        grid-column: 1;
        min-width: 0;
    }

    .hermes-dashboard .button-row--stack-sm {
        flex-direction: column;
    }

    .hermes-dashboard .button-row--stack-sm .button {
        width: 100%;
    }

    .hermes-dashboard .panel--chat {
        min-height: 0;
        height: clamp(32rem, calc(100dvh - 1.1rem), 46rem);
        padding: 0;
    }

    .hermes-dashboard .chat-main {
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .hermes-dashboard .chat-thread {
        padding: 0.72rem;
    }

    .hermes-dashboard .composer-shell__bar {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .composer-shell__actions {
        width: 100%;
        justify-content: space-between;
    }

    .hermes-dashboard .composer-shell__send-button {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hermes-dashboard .session-list--compact {
        min-height: 0;
        max-height: none;
    }

    .hermes-dashboard .message-bubble,
    .hermes-dashboard .message-bubble--user,
    .hermes-dashboard .message-thinking {
        max-width: 100%;
    }

    .hermes-dashboard .message-attachment--image img {
        max-height: 16rem;
    }

    .hermes-dashboard .state-card h1,
    .hermes-dashboard .hero-shell h1 {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
        line-height: 1.02;
    }

    .hermes-dashboard .skeleton-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .hermes-dashboard .brand-lockup {
        grid-template-columns: 1fr;
    }

    .hermes-dashboard .brand-lockup__mark {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 10px;
        font-size: 0.92rem;
    }

    .hermes-dashboard .status-rail {
        gap: 0.35rem;
    }

    .hermes-dashboard .status-pill {
        font-size: 0.66rem;
    }

    .hermes-dashboard .workspace-nav__summary {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hermes-dashboard *,
    .hermes-dashboard *::before,
    .hermes-dashboard *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Night workshop: graphite surfaces with a restrained smoky-plum accent for decisions only. */
.hermes-dashboard {
    --hermes-radius-xl: 14px; --hermes-radius-lg: 12px; --hermes-radius-md: 8px; --hermes-shadow: none;
    max-width: none; padding: clamp(.75rem, 1.25vw, 1.25rem); font-family: "Manrope", "Segoe UI", system-ui, sans-serif; background: var(--hermes-bg);
}
.hermes-dashboard::before { background: var(--hermes-bg); }
.hermes-dashboard::after { opacity: .025; background-image: linear-gradient(rgb(var(--hermes-ink-rgb) / calc(0.18 * var(--hermes-line-a))) 1px,transparent 1px),linear-gradient(90deg,rgb(var(--hermes-ink-rgb) / calc(0.18 * var(--hermes-line-a))) 1px,transparent 1px); background-size: 48px 48px; }
.hermes-dashboard code, .hermes-dashboard .eyebrow, .hermes-dashboard .workspace-nav__summary span, .hermes-dashboard .workspace-mark__label, .hermes-dashboard .metric-card__label, .hermes-dashboard .field-card__label { font-family: "JetBrains Mono", "Cascadia Code", monospace; }
.hermes-dashboard .workspace-console { grid-template-columns: 248px minmax(0,1fr); min-height: calc(100dvh - 6.6rem); border-radius: 14px; background: var(--hermes-panel); box-shadow: none; }
.hermes-dashboard .workspace-nav { top: 0; max-height: none; padding: .9rem .7rem; background: var(--hermes-bg-2); }
.hermes-dashboard .workspace-nav__new-chat { min-height: 2.5rem; border-radius: 8px; font-size: .8125rem; }.hermes-dashboard .workspace-nav__items { display:grid;grid-template-columns:1fr;gap:.18rem; }
.hermes-dashboard .workspace-nav__item { min-height: 2.5rem; padding: .55rem .65rem .55rem .8rem; border-radius: 7px; }.hermes-dashboard .workspace-nav__item:hover { transform: none; border-color: var(--hermes-line); background: rgb(var(--hermes-ink-rgb) / calc(0.045 * var(--hermes-line-a))); }
.hermes-dashboard .workspace-nav__item--active { border-color: rgb(var(--hermes-accent-rgb) / 0.34); background: rgb(var(--hermes-accent-rgb) / 0.1); box-shadow: inset 2px 0 0 var(--hermes-accent); }.hermes-dashboard .workspace-nav__item span { font-size: .875rem; }.hermes-dashboard .workspace-nav__item small { font-size: .6875rem; }
.hermes-dashboard .workspace-nav__space { margin-top:.3rem;padding-top:.35rem;border-top:1px solid var(--hermes-line); }
.hermes-dashboard .workspace-nav__section-label { margin:0;padding:.38rem .75rem;color:var(--hermes-soft);font-size:.6875rem;font-weight:550;letter-spacing:.06em;text-transform:uppercase; }
.hermes-dashboard .workspace-nav__space-items { display:grid;gap:.12rem;padding-bottom:.35rem; }
.hermes-dashboard .workspace-nav__space-items .workspace-nav__item { padding-left:1rem; }
.hermes-dashboard .workspace-nav__sessions { margin-top: .25rem; }.hermes-dashboard .workspace-nav__sessions-header strong { font-size:.75rem; }.hermes-dashboard .workspace-nav__sessions-empty { font-size:.75rem; }.hermes-dashboard .workspace-content { background:var(--hermes-panel); }
.hermes-dashboard .button { min-height:2.5rem;border-radius:8px;font-size:.875rem;transition:background 200ms ease,border-color 200ms ease,color 200ms ease,transform 200ms ease; }.hermes-dashboard .button--primary { color:var(--hermes-bg);border-color:var(--hermes-accent);background:var(--hermes-accent);box-shadow:none; }.hermes-dashboard .button--primary:hover:not(:disabled) { background:var(--hermes-accent-hi); }.hermes-dashboard .button--secondary,.hermes-dashboard .button--panel-link { color:var(--hermes-accent-2);border-color:rgb(var(--hermes-accent-rgb) / 0.42);background:transparent; }.hermes-dashboard .button--ghost,.hermes-dashboard .button--ghost-danger { background:transparent;border-color:var(--hermes-line); }
.hermes-dashboard .button:focus-visible,.hermes-dashboard .workspace-nav__item:focus-visible,.hermes-dashboard .session-card:focus-visible,.hermes-dashboard .channel-card button:focus-visible,.hermes-dashboard .field-card input:focus-visible,.hermes-dashboard .field-card select:focus-visible,.hermes-dashboard .composer-shell__icon-button:focus-visible,.hermes-dashboard .composer-shell__attachment button:focus-visible,.hermes-dashboard .message-attachment:focus-visible,.hermes-dashboard .workspace-mark a:focus-visible,.hermes-dashboard .composer-shell__input:focus-visible { box-shadow:0 0 0 2px var(--hermes-bg),0 0 0 4px var(--hermes-accent); }
.hermes-dashboard .work-surface { padding:clamp(1rem,2vw,1.75rem); }.hermes-dashboard .work-toolbar__state span:last-child { font-size:.6875rem; }.hermes-dashboard .work-toolbar,.hermes-dashboard .team-commandbar { border-radius:8px;background:var(--hermes-panel-soft); }.hermes-dashboard .work-composer,.hermes-dashboard .team-editor { border-color:var(--hermes-line);border-radius:10px;background:var(--hermes-panel-soft);box-shadow:none; }.hermes-dashboard .work-composer label,.hermes-dashboard .team-editor label,.hermes-dashboard .work-composer__actions > span,.hermes-dashboard .team-editor__note { font-size:.75rem; }.hermes-dashboard .work-composer input,.hermes-dashboard .work-composer select,.hermes-dashboard .work-composer textarea,.hermes-dashboard .team-editor input,.hermes-dashboard .team-editor select,.hermes-dashboard .team-editor textarea { background:var(--hermes-bg-2); }.hermes-dashboard .work-column,.hermes-dashboard .work-card,.hermes-dashboard .work-detail { border-color:var(--hermes-line);background:var(--hermes-panel-soft);box-shadow:none; }
.hermes-dashboard .panel--chat { height:calc(100dvh - 8rem);min-height:34rem; }.hermes-dashboard .chat-thread { padding:clamp(1rem,2vw,2rem) clamp(1rem,4vw,5rem);scrollbar-color:rgb(var(--hermes-accent-rgb) / 0.3) transparent; }.hermes-dashboard .message-bubble { border-radius:10px;background:var(--hermes-panel-strong); }.hermes-dashboard .message-bubble--assistant { padding-inline:0;border-color:transparent;background:transparent; }.hermes-dashboard .message-bubble--user { background:var(--hermes-bubble-user); }.hermes-dashboard .message-bubble p { font-size:.9375rem;line-height:1.65; }.hermes-dashboard .message-bubble__header,.hermes-dashboard .message-bubble__meta { font-size:.6875rem; }.hermes-dashboard .composer-shell { padding:.85rem clamp(1rem,2vw,1.5rem);background:var(--hermes-bg-2); }.hermes-dashboard .composer-shell__bar { padding:.45rem;border-color:rgb(var(--hermes-ink-rgb) / calc(0.18 * var(--hermes-line-a)));border-radius:10px;background:var(--hermes-panel-strong); }.hermes-dashboard .composer-shell__bar:focus-within { border-color:var(--hermes-accent);background:var(--hermes-panel-raised);box-shadow:0 0 0 2px rgb(var(--hermes-accent-rgb) / 0.14); }.hermes-dashboard .composer-shell__input { min-height:4.6rem;font-size:.9375rem; }.hermes-dashboard .composer-shell__icon-button { width:2.5rem;height:2.5rem;flex-basis:2.5rem;background:transparent; }.hermes-dashboard .composer-shell__send-button { min-height:2.5rem; }

@media (min-width: 761px) {
    .hermes-dashboard--chat {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .hermes-dashboard--chat > .workspace-console {
        flex: 1 1 auto;
        min-height: 0;
    }

    .hermes-dashboard--chat .workspace-content,
    .hermes-dashboard--chat .panel--chat {
        height: 100%;
        min-height: 0;
    }

    .hermes-dashboard--chat .chat-thread {
        overscroll-behavior-y: contain;
    }
}

@media (min-width: 761px) and (max-height: 800px) {
    .hermes-dashboard .workspace-nav--with-sessions .workspace-nav__item {
        min-height: 2.2rem;
        padding-block: 0.38rem;
    }

    .hermes-dashboard .workspace-nav--with-sessions .workspace-nav__space {
        margin-top: 0.12rem;
        padding-top: 0.18rem;
    }

    .hermes-dashboard .workspace-nav--with-sessions .workspace-nav__section-label {
        padding-block: 0.24rem;
    }

    .hermes-dashboard .workspace-nav--with-sessions .workspace-nav__space-items {
        gap: 0.05rem;
        padding-bottom: 0.12rem;
    }

    .hermes-dashboard .workspace-nav--with-sessions .workspace-nav__sessions {
        min-height: 8rem;
    }
}

/* Operational metadata may be compact; explanatory copy stays at the 14px workspace minimum. */
.hermes-dashboard small { font-size:.875rem;line-height:1.45; }
.hermes-dashboard .workspace-nav__item small,.hermes-dashboard .status-pill,.hermes-dashboard .session-card__meta,.hermes-dashboard .message-attachment__caption small,.hermes-dashboard .message-attachment__body small,.hermes-dashboard .message-attachment__download,.hermes-dashboard .workspace-nav__summary span { font-size:.6875rem;line-height:1.35; }

/* Passive surfaces stay graphite; plum only signals a decision, selection, or focus. */
.hermes-dashboard .workspace-topbar { background: rgb(var(--hermes-bg-2-rgb) / 0.94); box-shadow: none; }
.hermes-dashboard .brand-handmark { border-color: rgb(var(--hermes-accent-rgb) / 0.28); background: var(--hermes-panel-soft); fill: var(--hermes-text); }
.hermes-dashboard .workspace-topbar__menu-popover { background: var(--hermes-panel-strong); box-shadow: 0 16px 32px rgb(var(--hermes-shadow-rgb) / calc(0.22 * var(--hermes-shadow-a))); }
.hermes-dashboard .workspace-mark, .hermes-dashboard .workspace-nav__summary, .hermes-dashboard .code-card { border-color: var(--hermes-line); background: var(--hermes-panel-soft); }
.hermes-dashboard .empty-panel { border-color: var(--hermes-line); background: var(--hermes-panel-soft); }
.hermes-dashboard .workspace-preparing {
    flex: 1 1 auto !important;
    align-self: stretch;
    justify-items: center;
    width: auto;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 0;
    border-radius: 0;
    background: transparent;
}
.hermes-dashboard .workspace-preparing__content {
    width: min(100%, 27rem);
}
.hermes-dashboard .team-canvas {
    background-color: var(--hermes-bg-2);
    background-image: radial-gradient(rgb(var(--hermes-ink-rgb) / calc(0.1 * var(--hermes-line-a))) .75px, transparent .75px);
    scrollbar-color: rgb(var(--hermes-accent-rgb) / 0.3) transparent;
}
.hermes-dashboard .workspace-topbar__mobile-button,
.hermes-dashboard .workspace-topbar__mobile-title,
.hermes-dashboard .workspace-nav__mobile-header,
.hermes-dashboard .workspace-nav__mobile-footer,
.hermes-dashboard .workspace-nav__scrim,
.hermes-dashboard .workspace-nav__icon {
    display: none;
}

/* Declared after the .empty-panel override above, which would otherwise repaint it. */
.hermes-dashboard .access-notice {
    border-color: rgb(var(--hermes-accent-rgb) / 0.3);
    background: var(--hermes-panel-soft);
}

@media (max-width: 760px) {
    .hermes-dashboard {
        --hermes-mobile-header-height: 4rem;
        width: 100%;
        height: 100dvh;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        background: var(--hermes-m-bg);
    }

    .hermes-dashboard .workspace-topbar {
        position: relative;
        z-index: 30;
        top: auto;
        display: grid;
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        height: var(--hermes-mobile-header-height);
        min-height: var(--hermes-mobile-header-height);
        padding: 0 0.75rem;
        border: 0;
        border-radius: 0;
        background: var(--hermes-m-bg);
        box-shadow: none;
    }

    .hermes-dashboard .workspace-topbar__brand,
    .hermes-dashboard .workspace-topbar__actions {
        display: none;
    }

    .hermes-dashboard .workspace-topbar__mobile-title {
        display: block;
        min-width: 0;
        overflow: hidden;
        color: var(--hermes-text);
        font-size: 1rem;
        font-weight: 680;
        line-height: 1.2;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hermes-dashboard .workspace-topbar__mobile-button {
        position: relative;
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.15 * var(--hermes-line-a)));
        border-radius: 50%;
        color: var(--hermes-text);
        background: var(--hermes-m-raise);
        cursor: pointer;
        transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
    }

    .hermes-dashboard .workspace-topbar__mobile-button:active:not(:disabled) {
        transform: scale(0.96);
    }

    .hermes-dashboard .workspace-topbar__mobile-button:focus-visible {
        outline: 2px solid var(--hermes-accent);
        outline-offset: 2px;
    }

    .hermes-dashboard .workspace-topbar__mobile-button:disabled {
        opacity: 0.42;
        cursor: default;
    }

    .hermes-dashboard .workspace-topbar__mobile-menu-button > span,
    .hermes-dashboard .workspace-topbar__mobile-menu-button > span::before,
    .hermes-dashboard .workspace-topbar__mobile-menu-button > span::after {
        display: block;
        width: 1.12rem;
        height: 1.5px;
        border-radius: 999px;
        background: currentColor;
        content: "";
    }

    .hermes-dashboard .workspace-topbar__mobile-menu-button > span {
        position: relative;
    }

    .hermes-dashboard .workspace-topbar__mobile-menu-button > span::before,
    .hermes-dashboard .workspace-topbar__mobile-menu-button > span::after {
        position: absolute;
        left: 0;
    }

    .hermes-dashboard .workspace-topbar__mobile-menu-button > span::before {
        top: -0.34rem;
    }

    .hermes-dashboard .workspace-topbar__mobile-menu-button > span::after {
        top: 0.34rem;
    }

    .hermes-dashboard .workspace-topbar__mobile-new-chat > span {
        position: relative;
        display: block;
        width: 1.08rem;
        height: 1.08rem;
        border: 1.7px solid currentColor;
        border-radius: 0.2rem;
    }

    .hermes-dashboard .workspace-topbar__mobile-new-chat > span::before,
    .hermes-dashboard .workspace-topbar__mobile-new-chat > span::after {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.62rem;
        height: 1.5px;
        border-radius: 999px;
        background: currentColor;
        content: "";
        transform: translate(-50%, -50%);
    }

    .hermes-dashboard .workspace-topbar__mobile-new-chat > span::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .hermes-dashboard .workspace-console {
        display: block;
        width: 100%;
        height: calc(100dvh - var(--hermes-mobile-header-height));
        min-height: 0;
        margin: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: var(--hermes-m-bg);
    }

    .hermes-dashboard .workspace-nav {
        position: fixed;
        z-index: 50;
        inset: 0 auto 0 0;
        display: flex;
        flex-direction: column;
        gap: 0.28rem;
        width: min(86vw, 22.5rem);
        height: 100dvh;
        max-height: none;
        padding: max(0.75rem, env(safe-area-inset-top)) 0.65rem calc(0.7rem + env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        visibility: hidden;
        border: 0;
        border-right: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.12 * var(--hermes-line-a)));
        border-radius: 0;
        background: var(--hermes-m-rail);
        box-shadow: 1.2rem 0 3.5rem rgb(var(--hermes-shadow-rgb) / calc(0.38 * var(--hermes-shadow-a)));
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);
        transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 180ms ease, visibility 220ms;
    }

    .hermes-dashboard .workspace-nav--open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .hermes-dashboard .workspace-nav__mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 3rem;
        padding: 0 0.5rem;
    }

    .hermes-dashboard .workspace-nav__mobile-header strong {
        color: var(--hermes-text);
        font-size: 1.22rem;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .hermes-dashboard .workspace-nav__mobile-header button {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: var(--hermes-muted);
        background: transparent;
        cursor: pointer;
        font-size: 1.55rem;
        line-height: 1;
    }

    .hermes-dashboard .workspace-nav__new-chat {
        display: grid;
        grid-template-columns: 1.6rem minmax(0, 1fr);
        align-items: center;
        justify-content: start;
        gap: 0.82rem;
        width: 100%;
        min-height: 2.9rem;
        margin: 0;
        padding: 0.45rem 0.62rem;
        color: var(--hermes-text);
        border: 0;
        border-radius: 0.55rem;
        background: transparent;
        box-shadow: none;
        font-size: 0.95rem;
        font-weight: 620;
        text-align: left;
    }

    .hermes-dashboard .workspace-nav__new-chat:hover:not(:disabled) {
        background: var(--hermes-m-raise);
    }

    .hermes-dashboard .workspace-nav__icon {
        display: block;
        width: 1.38rem;
        height: 1.38rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.65;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .hermes-dashboard .workspace-nav__items,
    .hermes-dashboard .workspace-nav__space-items {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.08rem;
        width: 100%;
        padding: 0;
        overflow: visible;
    }

    .hermes-dashboard .workspace-nav__item,
    .hermes-dashboard .workspace-nav__items > .workspace-nav__item,
    .hermes-dashboard .workspace-nav__space-items .workspace-nav__item {
        display: grid;
        grid-template-columns: 1.6rem minmax(0, 1fr);
        align-items: center;
        gap: 0.82rem;
        width: 100% !important;
        min-width: 0;
        min-height: 2.9rem;
        padding: 0.45rem 0.62rem;
        color: var(--hermes-muted);
        border: 0;
        border-radius: 0.55rem;
        background: transparent;
        text-align: left;
        box-shadow: none;
    }

    .hermes-dashboard .workspace-nav__item:hover {
        color: var(--hermes-text);
        border: 0;
        background: var(--hermes-m-raise);
        transform: none;
    }

    .hermes-dashboard .workspace-nav__item--active {
        color: var(--hermes-text);
        border: 0;
        background: var(--hermes-m-active);
        box-shadow: inset 3px 0 0 var(--hermes-accent);
    }

    .hermes-dashboard .workspace-nav__item span {
        min-width: 0;
        overflow: hidden;
        font-size: 0.95rem;
        font-weight: 620;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hermes-dashboard .workspace-nav__item small {
        display: none !important;
    }

    .hermes-dashboard .workspace-nav__space {
        display: block;
        flex: 0 0 auto;
    }

    .hermes-dashboard .workspace-nav__section-label {
        margin: 0;
        padding: 0.62rem 0.62rem 0.32rem;
        color: var(--hermes-soft);
        font-size: 0.7rem;
        font-weight: 550;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .hermes-dashboard .workspace-nav__sessions {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        flex: 0 0 auto;
        gap: 0.12rem;
        min-height: 0;
        max-height: min(30dvh, 12rem);
        margin: 0.2rem 0 0;
        padding: 0;
        overflow: hidden;
        border: 0;
    }

    .hermes-dashboard .workspace-nav__sessions-header {
        display: block;
        padding: 0.62rem 0.62rem 0.32rem;
    }

    .hermes-dashboard .workspace-nav__sessions-header strong {
        color: var(--hermes-soft);
        font-size: 0.7rem;
        font-weight: 650;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .hermes-dashboard .workspace-nav__sessions .session-list {
        display: grid;
        grid-auto-flow: row;
        gap: 0.08rem;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 0.08rem 0.2rem 0;
        scroll-snap-type: none;
        scrollbar-width: thin;
    }

    .hermes-dashboard .workspace-nav__sessions .session-card {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        width: 100%;
        min-width: 0;
        min-height: 2.75rem;
        padding: 0.42rem 0.62rem 0.42rem 2.78rem;
        color: var(--hermes-muted);
        border: 0;
        border-radius: 0.55rem;
        background: transparent;
        box-shadow: none;
        text-align: left;
    }

    .hermes-dashboard .workspace-nav__sessions .session-card::before {
        position: absolute;
        left: 0.72rem;
        width: 1.14rem;
        height: 1.14rem;
        border: 1.5px solid currentColor;
        border-radius: 50%;
        content: "";
        opacity: 0.8;
    }

    .hermes-dashboard .workspace-nav__sessions .session-card:hover,
    .hermes-dashboard .workspace-nav__sessions .session-card--active {
        color: var(--hermes-text);
        border: 0;
        background: var(--hermes-m-raise);
        transform: none;
    }

    .hermes-dashboard .workspace-nav__sessions .session-card__topline {
        display: block;
        min-width: 0;
    }

    .hermes-dashboard .workspace-nav__sessions .session-card strong {
        display: block;
        min-width: 0;
        overflow: hidden;
        font-size: 0.9rem;
        font-weight: 540;
        text-overflow: ellipsis;
        white-space: nowrap;
        -webkit-line-clamp: unset;
    }

    .hermes-dashboard .workspace-nav__sessions .session-card > p,
    .hermes-dashboard .workspace-nav__sessions .session-card__meta {
        display: none;
    }

    .hermes-dashboard .workspace-nav__sessions-empty {
        padding: 0.35rem 0.62rem;
        font-size: 0.82rem;
    }

    .hermes-dashboard .workspace-nav__switcher {
        flex: 0 0 auto;
        max-height: min(30dvh, 12rem);
        margin: 0;
        padding: 0.45rem 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-top: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.1 * var(--hermes-line-a)));
    }

    .hermes-dashboard .workspace-nav__mobile-footer {
        display: grid;
        gap: 0.08rem;
        flex: 0 0 auto;
        padding: 0.55rem 0 0;
        border-top: 0;
    }

    .hermes-dashboard .workspace-nav__mobile-footer > button {
        min-height: 2.35rem;
        padding: 0.42rem 0.5rem;
        color: var(--hermes-muted);
        border: 0;
        border-radius: 0.45rem;
        background: transparent;
        font: inherit;
        font-size: 0.82rem;
        text-align: left;
        cursor: pointer;
    }

    .hermes-dashboard .workspace-nav__mobile-footer > button:hover:not(:disabled) {
        color: var(--hermes-text);
        background: var(--hermes-m-raise);
    }

    .hermes-dashboard .workspace-nav__scrim {
        position: fixed;
        z-index: 40;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        visibility: hidden;
        border: 0;
        background: var(--hermes-scrim);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, visibility 220ms;
    }

    .hermes-dashboard .workspace-nav__scrim--visible {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .hermes-dashboard .workspace-content {
        display: flex;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        background: var(--hermes-m-bg);
    }

    .hermes-dashboard .workspace-content > .panel {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow-y: auto;
    }

    .hermes-dashboard .panel--chat {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        overflow: hidden !important;
    }

    .hermes-dashboard .chat-workspace,
    .hermes-dashboard .chat-main {
        height: 100%;
        min-height: 0;
    }

    .hermes-dashboard .chat-thread {
        min-height: 0;
        gap: 1rem;
        padding: 1rem 1rem 1.25rem;
        overscroll-behavior: contain;
        background: var(--hermes-m-bg);
    }

    .hermes-dashboard .chat-thread > .empty-panel {
        border: 0;
        background: transparent;
    }

    .hermes-dashboard .message-bubble {
        min-width: 0;
        max-width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .hermes-dashboard .message-bubble--user {
        max-width: 86%;
        padding: 0.72rem 0.9rem;
        border: 0;
        border-radius: 1.2rem 1.2rem 0.38rem 1.2rem;
        background: var(--hermes-bubble-user);
    }

    .hermes-dashboard .message-bubble--assistant {
        max-width: 100%;
        padding-inline: 0;
        border: 0;
        background: transparent;
    }

    .hermes-dashboard .message-bubble--system,
    .hermes-dashboard .message-bubble--tool,
    .hermes-dashboard .message-bubble--error {
        padding: 0.7rem 0.8rem;
        border-radius: 0.7rem;
    }

    /* The mobile layer strips bubble chrome; a refusal still has to read as one. */
    .hermes-dashboard .message-bubble--error {
        border: 1px solid rgb(var(--hermes-danger-rgb) / 0.34);
        background: var(--hermes-danger-bg);
    }

    .hermes-dashboard .message-bubble__header {
        display: none;
    }

    .hermes-dashboard .message-bubble p {
        font-size: 1rem;
        line-height: 1.56;
    }

    .hermes-dashboard .composer-shell {
        display: flex;
        flex-direction: column;
        gap: 0.42rem;
        padding: 0.58rem 0.85rem calc(0.68rem + env(safe-area-inset-bottom));
        border: 0;
        background: var(--hermes-m-bg);
    }

    .hermes-dashboard .composer-shell .field-label {
        display: none;
    }

    .hermes-dashboard .composer-shell__bar {
        display: grid;
        grid-template-columns: 2.45rem minmax(0, 1fr) 2.45rem;
        align-items: center;
        gap: 0.1rem;
        order: 3;
        min-height: 3.35rem;
        padding: 0.32rem 0.38rem;
        border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.18 * var(--hermes-line-a)));
        border-radius: 1.8rem;
        background: var(--hermes-m-raise);
        box-shadow: none;
    }

    .hermes-dashboard .composer-shell__bar:focus-within {
        border-color: rgb(var(--hermes-accent-rgb) / 0.42);
        background: var(--hermes-m-raise);
        box-shadow: none;
    }

    .hermes-dashboard .composer-shell__actions {
        display: contents;
    }

    .hermes-dashboard .composer-shell__icon-button--attach {
        order: 1;
    }

    .hermes-dashboard .composer-shell__input {
        order: 2;
        min-height: 3.2rem;
        max-height: min(12rem, 34vh);
        padding: 0.54rem 0.32rem;
        border: 0;
        background: transparent;
        font-size: 1rem;
        line-height: 1.42;
        resize: none;
    }

    .hermes-dashboard .composer-shell__voice-button {
        order: 3;
    }

    .hermes-dashboard .composer-shell__send-button {
        order: 4;
    }

    .hermes-dashboard .composer-shell__icon-button,
    .hermes-dashboard .composer-shell__send-button {
        width: 2.35rem;
        height: 2.35rem;
        min-width: 2.35rem;
        min-height: 2.35rem;
        padding: 0;
        border-radius: 50%;
    }

    .hermes-dashboard .composer-shell__icon-button {
        border: 0;
        color: var(--hermes-muted);
        background: transparent;
    }

    .hermes-dashboard .composer-shell__icon-button:hover:not(:disabled) {
        color: var(--hermes-text);
        border: 0;
        background: var(--hermes-m-hover);
        transform: none;
    }

    .hermes-dashboard .composer-shell__attach-icon,
    .hermes-dashboard .composer-shell__attach-icon::after {
        inset: auto;
        border: 0;
        border-radius: 0;
        transform: none;
    }

    .hermes-dashboard .composer-shell__attach-icon {
        position: relative;
        display: block;
        width: 1.2rem;
        height: 1.2rem;
        margin: 0 auto;
    }

    .hermes-dashboard .composer-shell__attach-icon::before,
    .hermes-dashboard .composer-shell__attach-icon::after {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.05rem;
        height: 1.6px;
        background: currentColor;
        content: "";
        transform: translate(-50%, -50%);
    }

    .hermes-dashboard .composer-shell__attach-icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .hermes-dashboard .composer-shell__send-button {
        color: var(--hermes-inverse-ink);
        border: 0;
        background: var(--hermes-inverse-bg);
        box-shadow: none;
        font-size: 0;
    }

    .hermes-dashboard .composer-shell__send-button::before {
        content: "↑";
        font-size: 1.38rem;
        font-weight: 620;
        line-height: 1;
    }

    .hermes-dashboard .composer-shell__send-button:hover:not(:disabled) {
        background: var(--hermes-inverse-bg-hi);
        transform: none;
    }

    .hermes-dashboard .composer-shell__send-button:disabled {
        color: var(--hermes-disabled-ink);
        background: var(--hermes-disabled-bg);
    }

    .hermes-dashboard .access-notice {
        padding: 1.2rem 1rem;
    }

    .hermes-dashboard .access-notice__actions {
        width: 100%;
    }

    .hermes-dashboard .access-notice__actions .button {
        flex: 1 1 11rem;
        justify-content: center;
    }

    .hermes-dashboard .composer-shell__access-warning {
        order: 0;
    }

    .hermes-dashboard .composer-shell__attachments {
        order: 1;
    }

    .hermes-dashboard .composer-shell__voice-status,
    .hermes-dashboard .composer-shell__file-error {
        order: 2;
        padding-inline: 0.35rem;
    }
}

@media (max-width: 380px) {
    .hermes-dashboard .workspace-nav {
        width: min(91vw, 22rem);
    }

    .hermes-dashboard .workspace-topbar {
        padding-inline: 0.6rem;
    }

    .hermes-dashboard .chat-thread {
        padding-inline: 0.78rem;
    }

    .hermes-dashboard .composer-shell {
        padding-inline: 0.65rem;
    }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .hermes-dashboard .workspace-nav,
    .hermes-dashboard .workspace-nav__scrim {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
 * Композер чата: единая скруглённая поверхность ввода.
 * Финальный слой — переопределяет более ранние .composer-shell* правила.
 * ------------------------------------------------------------------------- */
.hermes-dashboard .composer-shell {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem clamp(1rem, 2vw, 1.5rem);
    border-width: 1px 0 0;
    border-style: solid;
    border-color: var(--hermes-line);
    border-radius: 0;
    background: var(--hermes-bg-2);
    box-shadow: none;
}

.hermes-dashboard .composer-shell__surface {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.55rem 0.6rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.14 * var(--hermes-line-a)));
    border-radius: 14px;
    background: var(--hermes-panel);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hermes-dashboard .composer-shell__surface:focus-within {
    border-color: rgb(var(--hermes-accent-rgb) / 0.5);
    box-shadow: 0 0 0 3px rgb(var(--hermes-accent-rgb) / 0.12);
}

.hermes-dashboard .composer-shell__surface > * {
    order: 0;
}

.hermes-dashboard .composer-shell__bar {
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr) 2.45rem;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hermes-dashboard .composer-shell__bar > * {
    order: 0;
}

.hermes-dashboard .composer-shell__bar:focus-within {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.hermes-dashboard .composer-shell__input {
    width: 100%;
    min-height: calc(1.5em + 1.1rem); /* одна видимая строка */
    max-height: calc(12em + 1.1rem);  /* восемь строк; девятая скроллится */
    padding: 0.55rem 0.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--hermes-text);
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
}

.hermes-dashboard .composer-shell__input::placeholder {
    color: var(--hermes-soft);
}

.hermes-dashboard .composer-shell__input:focus,
.hermes-dashboard .composer-shell__surface .composer-shell__input:focus {
    outline: none;
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

.hermes-dashboard .composer-shell__surface .composer-shell__input:focus-visible {
    outline: 0;
    box-shadow: none;
}

.hermes-dashboard .composer-shell__icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hermes-muted);
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.hermes-dashboard .composer-shell__icon-button:hover:not(:disabled) {
    background: var(--hermes-m-hover);
    color: var(--hermes-text);
    border: 0;
    transform: none;
}

.hermes-dashboard .composer-shell__icon-button:active:not(:disabled) {
    transform: scale(0.96);
}

.hermes-dashboard .composer-shell__icon-button:disabled {
    opacity: 0.44;
    cursor: default;
}

.hermes-dashboard .composer-shell__attach-icon,
.hermes-dashboard .composer-shell__attach-icon::before,
.hermes-dashboard .composer-shell__attach-icon::after {
    display: block;
    content: "";
    border: 0;
    border-radius: 0;
    pointer-events: none;
}

.hermes-dashboard .composer-shell__attach-icon {
    position: relative;
    inset: auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0 auto;
    transform: none;
}

.hermes-dashboard .composer-shell__attach-icon::before,
.hermes-dashboard .composer-shell__attach-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.05rem;
    height: 1.6px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.hermes-dashboard .composer-shell__attach-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.hermes-dashboard .composer-shell__voice-button--recording {
    color: var(--hermes-rec-ink);
    background: rgb(var(--hermes-rec-bg-rgb) / 0.34);
    animation: voice-recording-pulse 1.2s ease-in-out infinite;
}

.hermes-dashboard .composer-shell__voice-button--recording:hover:not(:disabled) {
    color: var(--hermes-rec-ink-hi);
    background: rgb(var(--hermes-rec-bg-rgb) / 0.42);
}

.hermes-dashboard .composer-shell__send-button {
    color: var(--hermes-inverse-ink);
    background: var(--hermes-inverse-bg);
    font-size: inherit;
}

.hermes-dashboard .composer-shell__send-button::before {
    content: none;
}

.hermes-dashboard .composer-shell__send-button:hover:not(:disabled) {
    background: var(--hermes-inverse-bg-hi);
    color: var(--hermes-inverse-ink);
}

.hermes-dashboard .composer-shell__send-button:disabled {
    color: var(--hermes-disabled-ink);
    background: var(--hermes-disabled-bg);
    opacity: 1;
}

.hermes-dashboard .composer-shell__send-icon,
.hermes-dashboard .composer-shell__stop-icon {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

.hermes-dashboard .composer-shell__stop-button {
    color: var(--hermes-danger-ink);
    background: rgb(var(--hermes-danger-rgb) / 0.16);
}

.hermes-dashboard .composer-shell__stop-button:hover:not(:disabled) {
    color: var(--hermes-danger-ink-hi);
    background: rgb(var(--hermes-danger-rgb) / 0.26);
}

.hermes-dashboard .composer-shell__voice-status {
    margin: 0;
    padding-inline: 0;
    order: 0;
    color: var(--hermes-accent-2);
    font-size: 0.72rem;
    line-height: 1.42;
}

.hermes-dashboard .composer-shell__file-error {
    padding-inline: 0;
    order: 0;
    color: var(--hermes-danger-ink);
    font-size: 0.72rem;
    line-height: 1.32;
}

.hermes-dashboard .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hermes-dashboard .composer-shell__voice-button--recording {
        animation: none;
    }
}

@media (max-width: 760px) {
    .hermes-dashboard .composer-shell {
        padding: 0.58rem 0.85rem calc(0.68rem + env(safe-area-inset-bottom));
        border: 0;
        background: var(--hermes-m-bg);
    }

    .hermes-dashboard .composer-shell__bar {
        min-height: 0;
    }
}
