/*
 * Каркас рабочего пространства Гермеса: боковая панель, шапка телефона, чат, композер,
 * окно настроек и общие элементы разделов. Подключается после hermes-home.css.
 * Все цвета — только из токенов app.css, иначе светлая тема их не увидит.
 */

.hermes-dashboard {
    --hermes-sidebar-width: 16.25rem;
    --hermes-column: 48rem;
    --hermes-mobile-header-height: 3.25rem;
    --hermes-hover: rgb(var(--hermes-ink-rgb) / calc(0.06 * var(--hermes-line-a)));
    --hermes-active: rgb(var(--hermes-ink-rgb) / calc(0.095 * var(--hermes-line-a)));
    min-height: 100dvh;
    background: var(--hermes-panel);
}

.hermes-dashboard::before {
    background: var(--hermes-panel);
}

/* ---------- кнопки-иконки, сегменты, мелкие общие элементы ---------- */

.hermes-dashboard .button--compact {
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 650;
}

.hermes-dashboard .button:hover:not(:disabled) {
    transform: none;
}

.hermes-dashboard .icon-button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    color: var(--hermes-dim);
    background: transparent;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.hermes-dashboard .icon-button:hover:not(:disabled) {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

.hermes-dashboard .icon-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.hermes-dashboard .icon-button svg,
.hermes-dashboard .workspace-topbar__button svg,
.hermes-dashboard .settings-icon-button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hermes-dashboard .icon-button__spin {
    animation: hermes-spin 0.9s linear infinite;
}

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

.hermes-dashboard .segmented {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.125rem;
    padding: 0.1875rem;
    border-radius: 0.625rem;
    background: var(--hermes-bg-2);
}

.hermes-dashboard .segmented__option {
    min-height: 1.875rem;
    padding: 0.25rem 0.875rem;
    border: 0;
    border-radius: 0.4375rem;
    color: var(--hermes-dim);
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.hermes-dashboard .segmented__option:hover {
    color: var(--hermes-text);
}

.hermes-dashboard .segmented__option--active {
    color: var(--hermes-text);
    background: var(--hermes-panel-raised);
    box-shadow: 0 1px 2px rgb(var(--hermes-shadow-rgb) / calc(0.18 * var(--hermes-shadow-a)));
}

.hermes-dashboard :is(.icon-button, .segmented__option, .workspace-nav__item, .session-link, .account-button, .account-menu__item, .settings-navigation__item, .workspace-topbar__button, .settings-icon-button, .chat-older, .starter-prompts button, .message-thinking > summary, .composer-shell__icon-button, .message-attachment):focus-visible {
    outline: 2px solid var(--hermes-accent);
    outline-offset: 2px;
}

/* ---------- каркас ---------- */

.hermes-dashboard .workspace-console {
    display: grid;
    grid-template-columns: var(--hermes-sidebar-width) minmax(0, 1fr);
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.hermes-dashboard .workspace-main {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--hermes-panel);
}

.hermes-dashboard .workspace-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hermes-dashboard .workspace-content > .panel:not(.panel--chat) {
    width: 100%;
    padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

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

/* ---------- боковая панель ---------- */

.hermes-dashboard .workspace-nav {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 0.625rem 0.5rem 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--hermes-bg);
    border-right: 1px solid var(--hermes-line);
    scrollbar-width: thin;
    scrollbar-color: var(--hermes-line) transparent;
}

.hermes-dashboard .workspace-nav__top {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.5rem;
    padding: 0 0.5rem 0 0.625rem;
    margin-bottom: 0.5rem;
}

.hermes-dashboard .workspace-nav__mark {
    flex: 0 0 auto;
    width: 1.375rem;
    height: 1.375rem;
    fill: var(--hermes-text);
}

.hermes-dashboard .workspace-nav__mark-spark {
    fill: var(--hermes-accent-2);
}

.hermes-dashboard .workspace-nav__workspace {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--hermes-text);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .workspace-nav__close {
    display: none;
}

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

.hermes-dashboard .workspace-nav__item,
.hermes-dashboard .session-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.375rem 0.625rem;
    border: 0;
    border-radius: 0.5rem;
    color: var(--hermes-muted);
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

.hermes-dashboard .workspace-nav__item:hover:not(:disabled),
.hermes-dashboard .session-link:hover {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

.hermes-dashboard .workspace-nav__item--active,
.hermes-dashboard .session-link--active {
    color: var(--hermes-text);
    background: var(--hermes-active);
}

.hermes-dashboard .workspace-nav__item:disabled {
    opacity: 0.5;
    cursor: default;
}

.hermes-dashboard .workspace-nav__item--new {
    color: var(--hermes-text);
    font-weight: 650;
}

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

.hermes-dashboard .workspace-nav__icon {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hermes-dashboard .workspace-nav__sessions {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    /* На низком экране список не схлопывается в ноль: прокручивается вся панель. */
    min-height: min(12rem, 40dvh);
    margin: 1rem 0 0.5rem;
}

.hermes-dashboard .workspace-nav__sessions-header {
    padding: 0 0.625rem 0.375rem;
}

.hermes-dashboard .workspace-nav__sessions-header h2 {
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

.hermes-dashboard .workspace-nav__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.25rem 0.375rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    color: var(--hermes-soft);
    background: var(--hermes-hover);
}

.hermes-dashboard .workspace-nav__search svg,
.hermes-dashboard .settings-search svg,
.hermes-dashboard .files-search svg {
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.hermes-dashboard .workspace-nav__search input,
.hermes-dashboard .settings-search input,
.hermes-dashboard .files-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 2rem;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--hermes-text);
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
}

.hermes-dashboard .workspace-nav__search:focus-within,
.hermes-dashboard .settings-search:focus-within,
.hermes-dashboard .files-search:focus-within {
    box-shadow: 0 0 0 2px rgb(var(--hermes-accent-rgb) / 0.45);
}

.hermes-dashboard .workspace-nav__sessions-empty {
    margin: 0;
    padding: 0.25rem 0.625rem;
    color: var(--hermes-soft);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.hermes-dashboard .session-list {
    display: grid;
    align-content: start;
    gap: 0.0625rem;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--hermes-line) transparent;
}

.hermes-dashboard .session-link {
    display: block;
    min-height: 2.125rem;
    padding-block: 0.4375rem;
    overflow: hidden;
    font-weight: 450;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .workspace-nav__account {
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding: 0.5rem 0;
    margin-top: auto;
    border-top: 1px solid var(--hermes-line);
    background: var(--hermes-bg);
}

.hermes-dashboard .account-button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 0;
    border-radius: 0.625rem;
    color: var(--hermes-text);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    anchor-name: --hermes-account;
}

.hermes-dashboard .account-button:hover {
    background: var(--hermes-hover);
}

.hermes-dashboard .account-button__avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: var(--hermes-accent-ink);
    background: var(--hermes-accent);
    font-size: 0.8125rem;
    font-weight: 700;
}

.hermes-dashboard .account-button__text {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

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

.hermes-dashboard .account-button__text strong {
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.3;
}

.hermes-dashboard .account-button__text small {
    color: var(--hermes-soft);
    font-size: 0.75rem;
    line-height: 1.3;
}

.hermes-dashboard .account-button__chevron {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--hermes-soft);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg);
}

/* Меню аккаунта — нативный popover: верхний слой, Escape и клик мимо закрывают его сами. */
.hermes-dashboard .account-menu {
    position: fixed;
    inset: auto auto 4.25rem 0.5rem;
    width: calc(var(--hermes-sidebar-width) - 1rem);
    max-height: min(26rem, 70dvh);
    margin: 0;
    padding: 0.375rem;
    overflow-y: auto;
    border: 1px solid var(--hermes-line);
    border-radius: 0.75rem;
    color: var(--hermes-text);
    background: var(--hermes-panel-strong);
    box-shadow: 0 12px 32px rgb(var(--hermes-shadow-rgb) / calc(0.32 * var(--hermes-shadow-a)));
}

@supports (position-anchor: --hermes-account) {
    .hermes-dashboard .account-menu {
        position-anchor: --hermes-account;
        inset: auto auto anchor(top) anchor(left);
        width: anchor-size(width);
        margin-bottom: 0.375rem;
    }
}

.hermes-dashboard .account-menu__label {
    margin: 0;
    padding: 0.375rem 0.625rem 0.25rem;
    color: var(--hermes-soft);
    font-size: 0.75rem;
    font-weight: 600;
}

.hermes-dashboard .account-menu hr {
    height: 1px;
    margin: 0.375rem 0.25rem;
    border: 0;
    background: var(--hermes-line);
}

.hermes-dashboard .account-menu__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.375rem 0.625rem;
    border: 0;
    border-radius: 0.5rem;
    color: var(--hermes-text);
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.hermes-dashboard .account-menu__item:hover:not(:disabled) {
    background: var(--hermes-hover);
}

.hermes-dashboard .account-menu__item:disabled {
    opacity: 0.5;
    cursor: default;
}

.hermes-dashboard .account-menu__item span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .account-menu__item svg {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hermes-dashboard .account-menu__item--danger {
    color: var(--hermes-danger-ink);
}

.hermes-dashboard .account-menu__check {
    color: var(--hermes-accent-2);
}

.hermes-dashboard .workspace-nav__scrim {
    display: none;
}

/* ---------- шапка телефона и полосы уведомлений ---------- */

.hermes-dashboard .workspace-topbar {
    display: none;
}

.hermes-dashboard .workspace-notice {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem clamp(1rem, 3vw, 2.5rem);
    color: var(--hermes-text);
    font-size: 0.8125rem;
    line-height: 1.45;
    background: rgb(var(--hermes-warn-rgb) / 0.12);
    border-bottom: 1px solid rgb(var(--hermes-warn-rgb) / 0.25);
}

.hermes-dashboard .support-access {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.625rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--hermes-line);
    background: var(--hermes-bg-2);
}

.hermes-dashboard .support-access__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.625rem;
    min-width: 0;
    font-size: 0.8125rem;
}

.hermes-dashboard .support-access__summary > span:last-child {
    color: var(--hermes-soft);
}

.hermes-dashboard .support-access__switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hermes-dashboard .support-access__switch select,
.hermes-dashboard .settings-row select,
.hermes-dashboard .settings-row input,
.hermes-dashboard .channel-config input {
    min-height: 2.375rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.14 * var(--hermes-line-a)));
    border-radius: 0.625rem;
    color: var(--hermes-text);
    background: var(--hermes-bg-2);
    font: inherit;
    font-size: 0.875rem;
}

.hermes-dashboard .settings-row select:focus-visible,
.hermes-dashboard .settings-row input:focus-visible,
.hermes-dashboard .channel-config input:focus-visible,
.hermes-dashboard .support-access__switch select:focus-visible {
    outline: 2px solid rgb(var(--hermes-accent-rgb) / 0.6);
    outline-offset: 1px;
}

.hermes-dashboard .workspace-toast {
    position: absolute;
    z-index: 20;
    top: 0.75rem;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    max-width: min(34rem, calc(100% - 2rem));
    padding: 0.5rem 0.5rem 0.5rem 0.875rem;
    border: 1px solid var(--hermes-line);
    border-radius: 0.75rem;
    color: var(--hermes-text);
    background: var(--hermes-panel-strong);
    box-shadow: 0 10px 28px rgb(var(--hermes-shadow-rgb) / calc(0.3 * var(--hermes-shadow-a)));
    font-size: 0.8125rem;
    line-height: 1.45;
    transform: translateX(-50%);
    animation: hermes-toast-in 180ms ease-out;
}

.hermes-dashboard .workspace-toast--success {
    border-color: rgb(var(--hermes-success-rgb) / 0.4);
}

.hermes-dashboard .workspace-toast--danger {
    border-color: rgb(var(--hermes-danger-rgb) / 0.45);
}

.hermes-dashboard .workspace-toast--warning {
    border-color: rgb(var(--hermes-warn-rgb) / 0.45);
}

.hermes-dashboard .workspace-toast button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    color: var(--hermes-soft);
    background: transparent;
    cursor: pointer;
}

.hermes-dashboard .workspace-toast button:hover {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

.hermes-dashboard .workspace-toast svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@keyframes hermes-toast-in {
    from { opacity: 0; transform: translate(-50%, -0.375rem); }
}

/* ---------- заголовки разделов ---------- */

.hermes-dashboard .panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.hermes-dashboard .panel__header h2 {
    margin-right: auto;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

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

.hermes-dashboard .settings-muted {
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ---------- чат ---------- */

.hermes-dashboard .panel--chat {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hermes-dashboard .chat-banner {
    width: min(100% - 2rem, var(--hermes-column));
    margin: 0.75rem auto 0;
    font-size: 0.8125rem;
}

.hermes-dashboard .chat-state {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.625rem;
    width: min(100% - 2rem, 28rem);
    min-height: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
}

.hermes-dashboard .chat-state h3 {
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hermes-dashboard .chat-state p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
}

.hermes-dashboard .chat-state .button-row {
    justify-content: center;
    margin-top: 0.375rem;
}

.hermes-dashboard .access-notice__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.25rem;
    border-radius: 50%;
    background: rgb(var(--hermes-warn-rgb) / 0.14);
}

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

.hermes-dashboard .workspace-preparing__steps {
    display: grid;
    gap: 0.375rem;
    width: min(100%, 22rem);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.hermes-dashboard .workspace-preparing__step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    color: var(--hermes-soft);
    font-size: 0.875rem;
    font-weight: 600;
}

.hermes-dashboard .workspace-preparing__step--active {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

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

.hermes-dashboard .workspace-preparing__marker {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--hermes-line);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
}

.hermes-dashboard .workspace-preparing__step--complete .workspace-preparing__marker {
    color: var(--hermes-success-ink);
    border-color: rgb(var(--hermes-success-rgb) / 0.4);
}

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

.hermes-dashboard .workspace-preparing__reason {
    max-width: 22rem;
    margin-top: 0.5rem !important;
    color: var(--hermes-soft);
}

.hermes-dashboard .chat-main {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    flex: 1 1 auto;
    min-height: 0;
}

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

.hermes-dashboard .chat-thread {
    grid-row: 1;
    grid-column: 1;
    min-height: 0;
    padding: 1.75rem 1rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--hermes-line) transparent;
}

.hermes-dashboard .chat-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: min(100%, var(--hermes-column));
    margin: 0 auto;
}

/* Пустой новый диалог: приветствие, композер и подсказки — одной группой по центру. */
.hermes-dashboard .chat-main--intro {
    grid-template-rows: auto auto;
    align-content: center;
    padding-bottom: 10vh;
}

.hermes-dashboard .chat-main--intro .chat-thread {
    overflow: visible;
    padding-bottom: 1.25rem;
}

.hermes-dashboard .chat-intro {
    margin: 0;
    color: var(--hermes-text);
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

.hermes-dashboard .chat-empty {
    margin: 2rem 0 0;
    color: var(--hermes-soft);
    font-size: 0.875rem;
    text-align: center;
}

.hermes-dashboard .chat-older {
    align-self: center;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--hermes-line);
    border-radius: 999px;
    color: var(--hermes-dim);
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
}

.hermes-dashboard .chat-older:hover:not(:disabled) {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

.hermes-dashboard .chat-loading {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 0;
}

.hermes-dashboard .chat-loading span {
    display: block;
    width: 100%;
    height: 0.875rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hermes-hover), var(--hermes-active), var(--hermes-hover));
    animation: shimmer 1.4s ease-in-out infinite;
}

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

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

.hermes-dashboard .chat-loading p {
    color: var(--hermes-soft);
    font-size: 0.8125rem;
}

/* Сообщения */
.hermes-dashboard .message-bubble {
    position: relative;
    display: grid;
    gap: 0.625rem;
    min-width: 0;
    color: var(--hermes-text);
}

.hermes-dashboard .message-bubble > p {
    margin: 0;
    color: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.hermes-dashboard .message-bubble--user {
    align-self: flex-end;
    max-width: min(85%, 36rem);
    padding: 0.625rem 1rem;
    border-radius: 1.25rem;
    background: var(--hermes-bubble-user);
}

.hermes-dashboard .message-bubble--assistant {
    align-self: stretch;
}

.hermes-dashboard .message-bubble--error {
    align-self: flex-start;
    max-width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgb(var(--hermes-danger-rgb) / 0.32);
    border-radius: 0.75rem;
    color: var(--hermes-danger-ink);
    background: rgb(var(--hermes-danger-rgb) / 0.08);
}

.hermes-dashboard .message-bubble--error .message-markdown {
    color: inherit;
    font-size: 0.875rem;
}

.hermes-dashboard .message-time {
    position: absolute;
    bottom: -1.375rem;
    left: 0;
    color: var(--hermes-soft);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.hermes-dashboard .message-bubble--user .message-time {
    right: 0.25rem;
    left: auto;
}

@media (hover: hover) {
    .hermes-dashboard .message-bubble:hover .message-time {
        opacity: 1;
    }
}

.hermes-dashboard .message-bubble:focus-within .message-time {
    opacity: 1;
}

/* Markdown в ответе: внутри .panel заголовки иначе раздувает общий стиль страницы. */
.hermes-dashboard .message-markdown :is(h1, h2, h3, h4, h5, h6) {
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-wrap: pretty;
}

.hermes-dashboard .message-markdown h1 { font-size: 1.25rem; }
.hermes-dashboard .message-markdown h2 { font-size: 1.125rem; }
.hermes-dashboard .message-markdown h3 { font-size: 1rem; }
.hermes-dashboard .message-markdown :is(h4, h5, h6) { font-size: 0.9375rem; }

.hermes-dashboard .message-markdown p {
    color: inherit;
    line-height: 1.65;
}

/* Ход работы */
.hermes-dashboard .message-thinking {
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: -1.125rem;
    color: var(--hermes-soft);
}

.hermes-dashboard .message-thinking > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    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__count::before {
    margin-right: 0.375rem;
    content: "·";
}

.hermes-dashboard .message-thinking__caret {
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.1rem) rotate(45deg);
    transition: transform 160ms ease;
}

.hermes-dashboard .message-thinking[open] .message-thinking__caret {
    transform: translateY(0.1rem) rotate(-135deg);
}

.hermes-dashboard .message-thinking__body {
    display: grid;
    gap: 0.75rem;
    margin: 0.5rem 0 1.25rem;
    padding: 0.125rem 0 0.125rem 0.875rem;
    border-left: 2px solid var(--hermes-line);
}

.hermes-dashboard .message-thinking__step {
    display: grid;
    gap: 0.125rem;
}

.hermes-dashboard .message-thinking__step .message-markdown {
    font-size: 0.875rem;
}

.hermes-dashboard .message-thinking__time {
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
}

/* Вложения */
.hermes-dashboard .message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.hermes-dashboard .message-attachment {
    min-width: 0;
    border: 1px solid var(--hermes-line);
    border-radius: 0.75rem;
    color: inherit;
    background: var(--hermes-panel-soft);
    text-decoration: none;
    overflow: hidden;
    transition: background 160ms ease, border-color 160ms ease;
}

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

.hermes-dashboard .message-attachment--file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(100%, 20rem);
    padding: 0.625rem 0.75rem;
}

.hermes-dashboard .message-attachment__file-icon {
    position: relative;
    flex: 0 0 auto;
    width: 2rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    background: rgb(var(--hermes-accent-rgb) / 0.18);
}

.hermes-dashboard .message-attachment__file-icon::after {
    position: absolute;
    inset: 0.55rem 0.6rem;
    border: 1.5px solid var(--hermes-accent-2);
    border-radius: 0.125rem;
    content: "";
}

.hermes-dashboard .message-attachment__body {
    display: grid;
    flex: 1 1 auto;
    gap: 0.0625rem;
    min-width: 0;
}

.hermes-dashboard .message-attachment__body strong {
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .message-attachment__body small {
    color: var(--hermes-soft);
    font-size: 0.75rem;
    line-height: 1.3;
}

.hermes-dashboard .message-attachment__download {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: var(--hermes-dim);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

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

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

.hermes-dashboard .message-attachment__caption {
    padding: 0.5rem 0.75rem;
    color: var(--hermes-muted);
    font-size: 0.8125rem;
}

.hermes-dashboard .message-bubble--user .message-attachment {
    background: var(--hermes-panel-raised);
}

.hermes-dashboard .agent-progress {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.625rem;
    color: var(--hermes-dim);
    font-size: 0.875rem;
}

.hermes-dashboard .agent-progress__pulse {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--hermes-text);
    animation: hermes-breathe 1.4s ease-in-out infinite;
}

@keyframes hermes-breathe {
    50% { opacity: 0.35; transform: scale(0.8); }
}

.hermes-dashboard .chat-jump-button {
    z-index: 4;
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    justify-self: center;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.75rem;
    padding: 0;
    border: 1px solid var(--hermes-line);
    border-radius: 50%;
    color: var(--hermes-text);
    background: var(--hermes-panel-strong);
    box-shadow: 0 4px 14px rgb(var(--hermes-shadow-rgb) / calc(0.3 * var(--hermes-shadow-a)));
    cursor: pointer;
}

.hermes-dashboard .chat-jump-button:hover {
    background: var(--hermes-panel-raised);
}

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

.hermes-dashboard .chat-drop-indicator {
    position: absolute;
    inset: 0.75rem;
    z-index: 6;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.375rem;
    padding: 1.5rem;
    border: 1.5px dashed rgb(var(--hermes-accent-rgb) / 0.6);
    border-radius: 1rem;
    color: var(--hermes-text);
    background: rgb(var(--hermes-panel-rgb) / 0.94);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.hermes-dashboard .chat-main--drop-active .chat-drop-indicator {
    opacity: 1;
}

.hermes-dashboard .chat-drop-indicator strong {
    font-size: 1.125rem;
}

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

.hermes-dashboard .chat-drop-indicator__icon {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.25rem;
    border-radius: 0.75rem;
    background: rgb(var(--hermes-accent-rgb) / 0.18);
}

.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.6rem 1.05rem 0.55rem;
    border-left: 2px solid currentColor;
}

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

/* Композер */
.hermes-dashboard .composer-shell {
    grid-row: 2;
    display: grid;
    gap: 0.5rem;
    width: min(100% - 2rem, var(--hermes-column));
    margin: 0 auto;
    padding: 0 0 1rem;
}

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

.hermes-dashboard .composer-shell__surface {
    display: grid;
    gap: 0.375rem;
    padding: 0.375rem;
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.12 * var(--hermes-line-a)));
    border-radius: 1.5rem;
    background: var(--hermes-panel-strong);
    box-shadow: 0 2px 10px rgb(var(--hermes-shadow-rgb) / calc(0.12 * var(--hermes-shadow-a)));
    transition: border-color 160ms ease;
}

.hermes-dashboard .composer-shell__surface:focus-within {
    border-color: rgb(var(--hermes-ink-rgb) / calc(0.24 * var(--hermes-line-a)));
}

.hermes-dashboard .composer-shell__bar {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 0;
}

.hermes-dashboard .composer-shell__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.5rem;
    max-height: min(16rem, 40vh);
    padding: 0.5625rem 0.25rem;
    border: 0;
    outline: 0;
    color: var(--hermes-text);
    background: transparent;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
}

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

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

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

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

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

.hermes-dashboard .composer-shell__send-button,
.hermes-dashboard .composer-shell__stop-button {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0.125rem;
    color: var(--hermes-inverse-ink);
    background: var(--hermes-inverse-bg);
}

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

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

.hermes-dashboard .composer-shell__voice-icon {
    position: relative;
    display: block;
    width: 1rem;
    height: 1.1rem;
}

.hermes-dashboard .composer-shell__voice-icon::before {
    position: absolute;
    top: 0;
    left: 0.3rem;
    width: 0.4rem;
    height: 0.66rem;
    border: 1.6px 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.6px solid currentColor;
    border-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    content: "";
}

.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__voice-status,
.hermes-dashboard .composer-shell__file-error {
    margin: 0;
    padding-inline: 1rem;
    font-size: 0.75rem;
    line-height: 1.45;
}

.hermes-dashboard .composer-shell__voice-status {
    color: var(--hermes-accent-2);
}

.hermes-dashboard .composer-shell__file-error {
    color: var(--hermes-danger-ink);
}

.hermes-dashboard .composer-shell__attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.25rem 0.25rem 0;
}

.hermes-dashboard .composer-shell__attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: min(100%, 18rem);
    min-height: 2rem;
    padding: 0.25rem 0.25rem 0.25rem 0.625rem;
    border-radius: 0.625rem;
    color: var(--hermes-text);
    background: var(--hermes-panel-raised);
    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.6875rem;
    white-space: nowrap;
}

.hermes-dashboard .composer-shell__attachment button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.hermes-dashboard .composer-shell__attachment button:hover:not(:disabled) {
    background: var(--hermes-hover);
}

.hermes-dashboard .composer-notice {
    display: block;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    color: var(--hermes-text);
    background: rgb(var(--hermes-warn-rgb) / 0.1);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.hermes-dashboard .composer-notice--blocked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgb(var(--hermes-danger-rgb) / 0.1);
}

.hermes-dashboard .composer-notice > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    list-style: none;
    cursor: pointer;
}

.hermes-dashboard .composer-notice > summary::-webkit-details-marker {
    display: none;
}

.hermes-dashboard .composer-notice__more {
    flex: 0 0 auto;
    color: var(--hermes-dim);
    font-size: 0.75rem;
}

.hermes-dashboard .composer-notice[open] .composer-notice__more {
    display: none;
}

.hermes-dashboard .composer-notice p {
    margin: 0.375rem 0 0.125rem;
    color: var(--hermes-muted);
    font-size: 0.8125rem;
}

.hermes-dashboard .starter-prompts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hermes-dashboard .starter-prompts button {
    padding: 0.4375rem 0.875rem;
    border: 1px solid var(--hermes-line);
    border-radius: 999px;
    color: var(--hermes-muted);
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

.hermes-dashboard .starter-prompts button:hover {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

/* ---------- окно настроек ---------- */

.hermes-dashboard .settings-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: var(--hermes-scrim);
    animation: hermes-fade-in 140ms ease-out;
}

@keyframes hermes-fade-in {
    from { opacity: 0; }
}

.hermes-dashboard .settings-dialog {
    display: flex;
    flex-direction: column;
    width: min(54rem, 100%);
    height: min(40rem, 100%);
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--hermes-line);
    border-radius: 1rem;
    background: var(--hermes-panel);
    box-shadow: 0 24px 64px rgb(var(--hermes-shadow-rgb) / calc(0.4 * var(--hermes-shadow-a)));
    outline: 0;
}

.hermes-dashboard .settings-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0.5rem 0.75rem 0.5rem 1.25rem;
    border-bottom: 1px solid var(--hermes-line);
}

.hermes-dashboard .settings-header h1 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .settings-header__section,
.hermes-dashboard .settings-header__back {
    display: none !important;
}

.hermes-dashboard .settings-icon-button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    color: var(--hermes-dim);
    background: transparent;
    cursor: pointer;
}

.hermes-dashboard .settings-icon-button:hover {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

.hermes-dashboard .settings-layout {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
}

.hermes-dashboard .settings-navigation {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-height: 0;
    padding: 0.75rem 0.5rem;
    overflow-y: auto;
    border-right: 1px solid var(--hermes-line);
    background: var(--hermes-bg);
}

.hermes-dashboard .settings-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.125rem 0.5rem;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    color: var(--hermes-soft);
    background: var(--hermes-hover);
}

.hermes-dashboard .settings-navigation__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.375rem 0.625rem;
    border: 0;
    border-radius: 0.5rem;
    color: var(--hermes-muted);
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
}

.hermes-dashboard .settings-navigation__item:hover {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

.hermes-dashboard .settings-navigation__item--active {
    color: var(--hermes-text);
    background: var(--hermes-active);
}

.hermes-dashboard .settings-navigation__item span {
    flex: 1 1 auto;
}

.hermes-dashboard .settings-navigation__item svg {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hermes-dashboard .settings-navigation__chevron {
    display: none;
}

.hermes-dashboard .settings-results {
    display: grid;
    gap: 0.125rem;
}

.hermes-dashboard .settings-results > a,
.hermes-dashboard .settings-results > button {
    display: grid;
    gap: 0.125rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-radius: 0.5rem;
    color: var(--hermes-text);
    background: transparent;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.hermes-dashboard .settings-results > a:hover,
.hermes-dashboard .settings-results > button:hover:not(:disabled) {
    background: var(--hermes-hover);
}

.hermes-dashboard .settings-results strong {
    font-size: 0.8125rem;
    font-weight: 600;
}

.hermes-dashboard .settings-results small,
.hermes-dashboard .settings-results__empty,
.hermes-dashboard .settings-results p {
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.75rem;
    line-height: 1.4;
}

.hermes-dashboard .settings-results__empty {
    padding: 0.5rem 0.625rem;
}

.hermes-dashboard .settings-content {
    min-width: 0;
    min-height: 0;
    padding: 1.25rem 1.75rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hermes-dashboard .settings-content__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hermes-dashboard .settings-content .panel {
    gap: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hermes-dashboard .settings-content .inline-banner {
    margin: 0 0 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
}

.hermes-dashboard .settings-group-title {
    margin: 1rem 0 0.125rem;
    color: var(--hermes-dim);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.3;
}

.hermes-dashboard .settings-form > .settings-group-title:first-child,
.hermes-dashboard .settings-form > .panel__toolbar + .settings-group-title {
    margin-top: 0.25rem;
}

/* Профиль */
.hermes-dashboard .settings-row {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    align-items: start;
    gap: 0.5rem 1.25rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--hermes-line);
}

.hermes-dashboard .settings-row:first-of-type {
    padding-top: 0;
}

.hermes-dashboard .settings-row__label {
    padding-top: 0.5rem;
    color: var(--hermes-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.hermes-dashboard .settings-row__control {
    display: grid;
    gap: 0.375rem;
    min-width: 0;
}

.hermes-dashboard .settings-row__control > input,
.hermes-dashboard .settings-row__control > select {
    width: min(100%, 24rem);
}

.hermes-dashboard .settings-row__control > .segmented {
    justify-self: start;
}

.hermes-dashboard .settings-row__control small {
    color: var(--hermes-soft);
    font-size: 0.75rem;
    line-height: 1.45;
}

.hermes-dashboard .settings-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

/* Подключения */
.hermes-dashboard .connection-list,
.hermes-dashboard .skill-list,
.hermes-dashboard .settings-links {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--hermes-line);
    border-radius: 0.75rem;
}

.hermes-dashboard .connection,
.hermes-dashboard .skill-row,
.hermes-dashboard .settings-links > a {
    min-width: 0;
}

.hermes-dashboard .connection + .connection,
.hermes-dashboard .skill-row + .skill-row,
.hermes-dashboard .settings-links > a + a {
    border-top: 1px solid var(--hermes-line);
}

.hermes-dashboard .connection__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.625rem 0.875rem;
}

.hermes-dashboard summary.connection__row {
    list-style: none;
    cursor: pointer;
}

.hermes-dashboard summary.connection__row::-webkit-details-marker {
    display: none;
}

.hermes-dashboard summary.connection__row:hover {
    background: var(--hermes-hover);
}

.hermes-dashboard .connection__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    color: var(--hermes-text);
    background: var(--hermes-panel-raised);
    font-size: 0.8125rem;
    font-weight: 700;
}

.hermes-dashboard .connection__icon--telegram {
    color: #fff;
    background: #2aabee;
}

.hermes-dashboard .connection__text {
    display: grid;
    flex: 1 1 auto;
    gap: 0.0625rem;
    min-width: 0;
}

.hermes-dashboard .connection__text strong {
    font-size: 0.875rem;
    font-weight: 650;
}

.hermes-dashboard .connection__text small {
    overflow: hidden;
    color: var(--hermes-soft);
    font-size: 0.75rem;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.hermes-dashboard .connection__chevron {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--hermes-soft);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.hermes-dashboard .connection--config[open] .connection__chevron {
    transform: rotate(180deg);
}

.hermes-dashboard .connection > :not(.connection__row) {
    margin: 0 0.875rem 0.875rem;
}

.hermes-dashboard .connection__hint {
    color: var(--hermes-soft);
    font-size: 0.75rem;
}

.hermes-dashboard a.connection__hint {
    display: block;
    color: var(--hermes-accent-2);
}

.hermes-dashboard .connection .code-card {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--hermes-line);
    border-radius: 0.625rem;
    font-size: 0.8125rem;
}

.hermes-dashboard .connection .code-card .button {
    justify-self: start;
}

/* Команда привязки: одна строка для отправки боту и кнопка копирования рядом. */
.hermes-dashboard .link-command__hint {
    margin: 0;
    color: var(--hermes-muted);
}

.hermes-dashboard .link-command {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    border: 1px solid var(--hermes-line);
    border-radius: 0.5rem;
    background: var(--hermes-panel-strong);
}

.hermes-dashboard .link-command code {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    user-select: all;
}

.hermes-dashboard .connection .channel-config {
    margin-top: 0;
}

/* Возможности */
.hermes-dashboard .skill-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0.875rem;
}

.hermes-dashboard .skill-row--disabled .skill-row__main {
    opacity: 0.6;
}

.hermes-dashboard .skill-row__main {
    display: grid;
    gap: 0.125rem;
    min-width: 0;
}

.hermes-dashboard .skill-row__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.hermes-dashboard .skill-row__title strong {
    font-size: 0.875rem;
    font-weight: 650;
}

.hermes-dashboard .skill-row__title .status-pill {
    min-height: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 0.375rem;
}

.hermes-dashboard .skill-row__main p {
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.hermes-dashboard .skill-row__warning {
    color: var(--hermes-warn-ink) !important;
}

.hermes-dashboard .skill-row__actions {
    display: flex;
    gap: 0.25rem;
}

.hermes-dashboard .skill-row__confirmation {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    background: rgb(var(--hermes-danger-rgb) / 0.08);
    font-size: 0.8125rem;
}

/* Пространство */
.hermes-dashboard .plan-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.125rem;
    border-radius: 0.75rem;
    background: var(--hermes-bg-2);
}

.hermes-dashboard .plan-summary div {
    display: grid;
    gap: 0.125rem;
    min-width: 0;
}

.hermes-dashboard .plan-summary dt {
    color: var(--hermes-soft);
    font-size: 0.75rem;
}

.hermes-dashboard .plan-summary dd {
    margin: 0;
    overflow: hidden;
    color: var(--hermes-text);
    font-size: 0.9375rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .settings-links > a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.875rem;
    color: var(--hermes-text);
    text-decoration: none;
}

.hermes-dashboard .settings-links > a:hover {
    background: var(--hermes-hover);
}

.hermes-dashboard .settings-links > a > span {
    display: grid;
    flex: 1 1 auto;
    gap: 0.0625rem;
    min-width: 0;
}

.hermes-dashboard .settings-links strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.hermes-dashboard .settings-links small {
    color: var(--hermes-soft);
    font-size: 0.75rem;
    line-height: 1.4;
}

.hermes-dashboard .settings-links svg {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--hermes-soft);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hermes-dashboard .settings-links + .settings-muted {
    margin-top: 0.625rem;
}

/* Интеграции */
.hermes-dashboard .connection__icon--google {
    color: #fff;
    background: #4285f4;
}

.hermes-dashboard .integration-services {
    display: grid;
    margin: 0 0.875rem 0.75rem;
    padding: 0;
    list-style: none;
}

.hermes-dashboard .integration-service {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
}

.hermes-dashboard .integration-service + .integration-service {
    border-top: 1px solid var(--hermes-line);
}

.hermes-dashboard .integration-service__mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    color: var(--hermes-soft);
    background: var(--hermes-hover);
    font-size: 0.75rem;
    font-weight: 700;
}

.hermes-dashboard .integration-service--granted .integration-service__mark {
    color: var(--hermes-success-ink);
    background: var(--hermes-success-bg);
}

.hermes-dashboard .integration-service__text {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.hermes-dashboard .integration-service__text strong {
    font-weight: 600;
}

.hermes-dashboard .integration-service__text small,
.hermes-dashboard .integration-service__state {
    color: var(--hermes-soft);
    font-size: 0.75rem;
}

.hermes-dashboard .integration-service--granted .integration-service__state {
    color: var(--hermes-success-ink);
}

.hermes-dashboard .integration-hint {
    margin: 0 0.875rem 0.75rem;
    color: var(--hermes-soft);
    font-size: 0.75rem;
}

.hermes-dashboard .integration-card > .button-row,
.hermes-dashboard .integration-card > small {
    margin: 0 0.875rem 0.875rem;
}

.hermes-dashboard .integrations-panel > .settings-muted:last-child {
    margin-top: 0.25rem;
}

/* Задачи: пустые колонки не спорят с заполненными */
.hermes-dashboard .work-column:has(.work-column__empty) > header {
    opacity: 0.6;
}

/* ---------- разделы: файлы, публикации, терминал ---------- */

.hermes-dashboard .files-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.hermes-dashboard .files-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(100%, 20rem);
    margin-left: auto;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    color: var(--hermes-soft);
    background: var(--hermes-bg-2);
}

.hermes-dashboard .files-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    color: var(--hermes-soft);
    font-size: 0.875rem;
}

.hermes-dashboard .files-breadcrumbs button {
    padding: 0.125rem 0.375rem;
    border: 0;
    border-radius: 0.375rem;
    color: var(--hermes-muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.hermes-dashboard .files-breadcrumbs button:hover {
    color: var(--hermes-text);
    background: var(--hermes-hover);
}

.hermes-dashboard .files-breadcrumbs button:last-child {
    color: var(--hermes-text);
    font-weight: 600;
}

.hermes-dashboard .files-name svg {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: var(--hermes-soft);
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.hermes-dashboard .files-download {
    width: 2rem;
    height: 2rem;
}

.hermes-dashboard .site-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--hermes-line);
    border-radius: 0.75rem;
}

.hermes-dashboard .site-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.875rem 1rem;
}

.hermes-dashboard .site-row + .site-row {
    border-top: 1px solid var(--hermes-line);
}

.hermes-dashboard .site-row--disabled .site-row__main {
    opacity: 0.6;
}

.hermes-dashboard .site-row__main {
    display: grid;
    flex: 1 1 20rem;
    gap: 0.1875rem;
    min-width: 0;
}

.hermes-dashboard .site-row__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.hermes-dashboard .site-row__title strong {
    font-size: 0.9375rem;
    font-weight: 650;
}

.hermes-dashboard .site-row__main p {
    margin: 0;
    color: var(--hermes-muted);
    font-size: 0.8125rem;
}

.hermes-dashboard .site-row__main small {
    overflow: hidden;
    color: var(--hermes-soft);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hermes-dashboard .site-row__main small a {
    color: var(--hermes-accent-2);
}

.hermes-dashboard .site-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.hermes-dashboard .terminal-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
}

.hermes-dashboard .terminal-panel .terminal-surface {
    flex: 1 1 auto;
    min-height: 22rem;
}

.hermes-dashboard .terminal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--hermes-soft);
    font-size: 0.8125rem;
}

.hermes-dashboard .terminal-status::before {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--hermes-dot-idle);
    content: "";
}

.hermes-dashboard .terminal-status--online::before {
    background: var(--hermes-online);
}

.hermes-dashboard .terminal-help {
    color: var(--hermes-soft);
    font-size: 0.8125rem;
}

.hermes-dashboard .terminal-help summary {
    width: max-content;
    cursor: pointer;
}

.hermes-dashboard .terminal-help p {
    max-width: 48rem;
    margin: 0.375rem 0 0;
    color: var(--hermes-soft);
    font-size: 0.8125rem;
}

/* ---------- телефон ---------- */

@media (max-width: 760px) {
    .hermes-dashboard {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .hermes-dashboard .workspace-console {
        display: block;
    }

    .hermes-dashboard .workspace-main {
        height: 100dvh;
    }

    .hermes-dashboard .workspace-topbar {
        display: grid;
        flex: 0 0 auto;
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
        align-items: center;
        gap: 0.25rem;
        height: calc(var(--hermes-mobile-header-height) + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 0.375rem 0;
        background: var(--hermes-panel);
    }

    .hermes-dashboard .workspace-topbar__button {
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 0;
        border-radius: 0.625rem;
        color: var(--hermes-text);
        background: transparent;
        cursor: pointer;
    }

    .hermes-dashboard .workspace-topbar__button svg {
        width: 1.35rem;
        height: 1.35rem;
    }

    .hermes-dashboard .workspace-topbar__button:active:not(:disabled) {
        background: var(--hermes-hover);
    }

    .hermes-dashboard .workspace-topbar__button:disabled {
        opacity: 0.4;
    }

    .hermes-dashboard .workspace-topbar__title {
        min-width: 0;
        overflow: hidden;
        color: var(--hermes-text);
        font-size: 1rem;
        font-weight: 650;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hermes-dashboard .workspace-nav {
        position: fixed;
        z-index: 50;
        inset: 0 auto 0 0;
        width: min(85vw, 20rem);
        height: 100dvh;
        padding: calc(0.5rem + env(safe-area-inset-top)) 0.5rem 0;
        visibility: hidden;
        border-right: 0;
        box-shadow: 1rem 0 3rem rgb(var(--hermes-shadow-rgb) / calc(0.35 * var(--hermes-shadow-a)));
        transform: translateX(-100%);
        transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), visibility 220ms;
    }

    .hermes-dashboard .workspace-nav--open {
        visibility: visible;
        transform: translateX(0);
    }

    .hermes-dashboard .workspace-nav__close {
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 0;
        border-radius: 0.5rem;
        color: var(--hermes-dim);
        background: transparent;
        cursor: pointer;
    }

    .hermes-dashboard .workspace-nav__close svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .hermes-dashboard .workspace-nav__item,
    .hermes-dashboard .session-link {
        min-height: 2.75rem;
        font-size: 0.9375rem;
    }

    .hermes-dashboard .workspace-nav__search input {
        height: 2.5rem;
        font-size: 1rem;
    }

    .hermes-dashboard .account-menu {
        inset: auto auto calc(4.5rem + env(safe-area-inset-bottom)) 0.5rem;
        width: calc(min(85vw, 20rem) - 1rem);
    }

    .hermes-dashboard .account-menu__item {
        min-height: 2.75rem;
        font-size: 0.9375rem;
    }

    .hermes-dashboard .workspace-nav__account {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }

    .hermes-dashboard .workspace-nav__scrim {
        position: fixed;
        z-index: 45;
        inset: 0;
        display: block;
        padding: 0;
        border: 0;
        background: var(--hermes-scrim);
        opacity: 0;
        pointer-events: none;
        transition: opacity 200ms ease;
    }

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

    .hermes-dashboard .workspace-content > .panel:not(.panel--chat) {
        padding: 0.75rem 1rem 2rem;
    }

    .hermes-dashboard .workspace-content > .panel > .panel__header h2 {
        display: none;
    }

    .hermes-dashboard .workspace-notice,
    .hermes-dashboard .support-access {
        padding-inline: 1rem;
    }

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

    .hermes-dashboard .chat-column {
        gap: 1.5rem;
    }

    .hermes-dashboard .chat-main--intro {
        grid-template-rows: minmax(0, 1fr) auto;
        align-content: stretch;
        padding-bottom: 0;
    }

    .hermes-dashboard .chat-main--intro .chat-thread {
        display: grid;
        align-items: center;
        overflow: hidden;
    }

    .hermes-dashboard .message-bubble--user {
        max-width: 88%;
    }

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

    .hermes-dashboard .composer-shell {
        width: calc(100% - 1rem);
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }

    .hermes-dashboard .composer-shell__input {
        font-size: 1rem;
    }

    .hermes-dashboard .starter-prompts {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0 -0.5rem;
        padding: 0 0.5rem 0.25rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hermes-dashboard .starter-prompts button {
        flex: 0 0 auto;
    }

    /* Задачи на телефоне — колонки списком сверху вниз, пустые не показываем. */
    .hermes-dashboard .work-board {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .hermes-dashboard .work-column {
        min-height: 0;
    }

    .hermes-dashboard .work-column:has(.work-column__empty) {
        display: none;
    }

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

    /* Настройки: полноэкранный лист — список разделов, затем раздел с «Назад». */
    .hermes-dashboard .settings-backdrop {
        padding: 0;
    }

    .hermes-dashboard .settings-dialog {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .hermes-dashboard .settings-header {
        min-height: calc(3.25rem + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 0.375rem 0 1rem;
    }

    .hermes-dashboard .settings-dialog--detail .settings-header {
        padding-left: 0.375rem;
    }

    .hermes-dashboard .settings-dialog--detail .settings-header__back,
    .hermes-dashboard .settings-dialog--detail .settings-header__section {
        display: grid !important;
    }

    .hermes-dashboard .settings-dialog--detail .settings-header__section {
        display: inline !important;
    }

    .hermes-dashboard .settings-dialog--detail .settings-header__root {
        display: none;
    }

    .hermes-dashboard .settings-layout {
        display: block;
        overflow: hidden;
    }

    .hermes-dashboard .settings-navigation {
        height: 100%;
        padding: 0.75rem;
        border-right: 0;
        background: var(--hermes-panel);
    }

    .hermes-dashboard .settings-navigation__item {
        min-height: 3rem;
        font-size: 1rem;
    }

    .hermes-dashboard .settings-navigation__item--active:not(:hover) {
        background: transparent;
    }

    .hermes-dashboard .settings-navigation__chevron {
        display: block;
        stroke: var(--hermes-soft) !important;
    }

    .hermes-dashboard .settings-search input {
        height: 2.5rem;
        font-size: 1rem;
    }

    .hermes-dashboard .settings-content {
        display: none;
        height: 100%;
        padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom));
    }

    .hermes-dashboard .settings-dialog--detail .settings-navigation {
        display: none;
    }

    .hermes-dashboard .settings-dialog--detail .settings-content {
        display: block;
    }

    .hermes-dashboard .settings-content__title {
        display: none;
    }

    .hermes-dashboard .settings-row {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }

    .hermes-dashboard .settings-row__label {
        padding-top: 0;
    }

    .hermes-dashboard .settings-row__control > input,
    .hermes-dashboard .settings-row__control > select {
        width: 100%;
        font-size: 1rem;
    }

    .hermes-dashboard .settings-form__actions .button {
        width: 100%;
    }

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

    .hermes-dashboard .files-search {
        width: 100%;
        margin-left: 0;
    }

    .hermes-dashboard .files-search input {
        height: 2.5rem;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hermes-dashboard .workspace-nav,
    .hermes-dashboard .workspace-nav__scrim,
    .hermes-dashboard .workspace-toast,
    .hermes-dashboard .settings-backdrop {
        transition: none;
        animation: none;
    }

    .hermes-dashboard .agent-progress__pulse,
    .hermes-dashboard .icon-button__spin,
    .hermes-dashboard .composer-shell__voice-button--recording,
    .hermes-dashboard .workspace-preparing__spinner {
        animation: none;
    }
}
