.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%;
    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 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-card,
.hermes-dashboard .panel,
.hermes-dashboard .preview-card,
.hermes-dashboard .field-card {
    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 {
    width: min(100%, 60rem);
}

.hermes-dashboard .state-card 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 {
    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-2);
    font-size: 0.75rem;
    font-weight: 650;
}

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

.hermes-dashboard .status-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    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 .field-card__label {
    color: var(--hermes-soft);
    font-size: 0.8125rem;
    font-weight: 600;
}

.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 .field-card input:focus-visible,
.hermes-dashboard .field-card select: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 .guest-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.hermes-dashboard .preview-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 {
    color: var(--hermes-text);
}

.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 .work-panel {
    align-content: start;
    min-height: 34rem;
}

.hermes-dashboard .work-surface {
    gap: 0.85rem;
    padding: clamp(1rem, 2vw, 1.75rem);
}

/* Команда выключена: одна строка и одно действие. */
.hermes-dashboard .work-off {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px dashed rgb(var(--hermes-accent-rgb) / 0.42);
    border-radius: 10px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .work-off p {
    color: var(--hermes-text);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.hermes-dashboard .work-off .work-off__note {
    color: var(--hermes-soft);
    font-size: 0.875rem;
}

.hermes-dashboard .work-board__empty {
    padding: 1.25rem 0.25rem;
    color: var(--hermes-soft);
    font-size: 0.9375rem;
}

.hermes-dashboard .work-icon-button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    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: 1.125rem;
    line-height: 1;
    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,
.hermes-dashboard .team-editor {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--hermes-line);
    border-radius: 10px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .team-editor {
    gap: 0.85rem;
    padding: 1rem;
    align-content: start;
}

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

.hermes-dashboard .team-editor h3 {
    margin: 0.12rem 0 0;
    color: var(--hermes-text);
    font-size: 1.0625rem;
    line-height: 1.25;
}

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

.hermes-dashboard .work-composer :is(input, select, textarea),
.hermes-dashboard .team-editor :is(input, select, textarea),
.hermes-dashboard .work-inline-form :is(select, 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: var(--hermes-bg-2);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
}

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

.hermes-dashboard .work-composer :is(input, select, textarea):focus-visible,
.hermes-dashboard .team-editor :is(input, select, textarea):focus-visible,
.hermes-dashboard .work-inline-form :is(select, 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__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.hermes-dashboard .work-composer__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
}

.hermes-dashboard .work-composer__assignee {
    flex: 1 1 14rem;
    min-width: 0;
}

.hermes-dashboard .work-composer__row > .button {
    min-height: 2.55rem;
}

.hermes-dashboard .work-composer__submit {
    margin-left: auto;
}

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

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

.hermes-dashboard .team-editor__switch-row {
    grid-column: 1 / -1;
    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 > span:first-child { color: var(--hermes-text); font-size: 0.875rem; font-weight: 650; }

.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.75rem; font-weight: 600; }
.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 .team-editor__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.08 * var(--hermes-line-a)));
}

.hermes-dashboard .team-editor__actions > .button-row {
    margin-left: auto;
}

/* Сообщения об ошибке и предупреждения внутри форм и панели задачи. */
.hermes-dashboard .work-note {
    padding: 0.5rem 0.7rem;
    color: var(--hermes-muted);
    border-left: 2px solid var(--hermes-dot-idle);
    border-radius: 6px;
    background: rgb(var(--hermes-ink-rgb) / calc(0.04 * var(--hermes-line-a)));
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.hermes-dashboard .work-note--warning {
    color: var(--hermes-warn-ink);
    border-left-color: var(--hermes-warn);
    background: rgb(var(--hermes-warn-rgb) / 0.1);
}

.hermes-dashboard .work-note--danger {
    color: var(--hermes-danger-ink);
    border-left-color: var(--hermes-danger);
    background: rgb(var(--hermes-danger-rgb) / 0.1);
}

/* Статус: плашка и точка. Цвет говорит о состоянии, текст не дублируется. */
.hermes-dashboard .work-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.45rem;
    color: var(--hermes-muted);
    border: 1px solid rgb(var(--hermes-ink-rgb) / calc(0.14 * var(--hermes-line-a)));
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.4;
    white-space: nowrap;
}

.hermes-dashboard .work-badge--running {
    color: var(--hermes-accent-2);
    border-color: rgb(var(--hermes-accent-rgb) / 0.45);
    background: rgb(var(--hermes-accent-rgb) / 0.12);
}

.hermes-dashboard .work-badge--waiting {
    color: var(--hermes-accent-2);
    border-style: dashed;
    border-color: rgb(var(--hermes-accent-rgb) / 0.5);
}

.hermes-dashboard .work-badge--done {
    color: var(--hermes-success-ink);
    border-color: rgb(var(--hermes-online-rgb) / 0.4);
    background: rgb(var(--hermes-online-rgb) / 0.1);
}

.hermes-dashboard .work-badge--attention {
    color: var(--hermes-warn-ink);
    border-color: rgb(var(--hermes-warn-rgb) / 0.45);
    background: rgb(var(--hermes-warn-rgb) / 0.1);
}

.hermes-dashboard .work-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--hermes-dot-idle);
}

.hermes-dashboard .work-dot--running,
.hermes-dashboard .work-dot--waiting { background: var(--hermes-accent); box-shadow: 0 0 0 3px rgb(var(--hermes-accent-rgb) / 0.16); }
.hermes-dashboard .work-dot--done { background: var(--hermes-online); }
.hermes-dashboard .work-dot--attention { background: var(--hermes-warn); }

/* Доска. */
.hermes-dashboard .work-board-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
    min-width: 0;
}

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

.hermes-dashboard .work-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(11rem, 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-column {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    min-height: 12rem;
    padding: 0.62rem;
    border: 1px solid var(--hermes-line);
    border-radius: 10px;
    background: var(--hermes-bg-2);
}

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

.hermes-dashboard .work-column > header h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--hermes-muted);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.hermes-dashboard .work-column > header h3::before {
    width: 0.5rem;
    height: 0.5rem;
    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.14); }
.hermes-dashboard .work-column--done > header h3::before { background: var(--hermes-online); }
.hermes-dashboard .work-column--attention > header h3::before { background: var(--hermes-warn); }

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

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

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

.hermes-dashboard .work-card {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.7rem;
    color: var(--hermes-text);
    border: 1px solid var(--hermes-line);
    border-radius: 9px;
    background: var(--hermes-panel-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.hermes-dashboard .work-card:hover {
    border-color: rgb(var(--hermes-accent-rgb) / 0.42);
}

.hermes-dashboard .work-card--selected {
    border-color: rgb(var(--hermes-accent-rgb) / 0.7);
    background: var(--hermes-panel-raised);
}

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

.hermes-dashboard .work-card__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

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

.hermes-dashboard .work-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.6rem;
    color: var(--hermes-dim);
    font-size: 0.8125rem;
}

/* Панель задачи: боковая колонка на широком экране, поверх страницы на узком. */
.hermes-dashboard .work-detail {
    position: sticky;
    top: 0.7rem;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 7.5rem);
    overflow: hidden;
    border: 1px solid var(--hermes-line);
    border-radius: 10px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .work-detail > header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.75rem;
    border-bottom: 1px solid var(--hermes-line);
}

.hermes-dashboard .work-detail__heading {
    display: grid;
    justify-items: start;
    gap: 0.35rem;
    min-width: 0;
}

.hermes-dashboard .work-detail h3 {
    margin: 0;
    color: var(--hermes-text);
    font-size: 1.0625rem;
    letter-spacing: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.hermes-dashboard .work-detail__assignee {
    color: var(--hermes-soft);
    font-size: 0.875rem;
}

.hermes-dashboard .work-detail__body {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: 0.9rem;
    min-height: 0;
    padding: 1rem;
    overflow: auto;
    scrollbar-color: rgb(var(--hermes-accent-rgb) / 0.28) transparent;
}

.hermes-dashboard .work-detail__dialog,
.hermes-dashboard .work-link {
    justify-self: start;
}

.hermes-dashboard .work-link {
    padding: 0;
    color: var(--hermes-accent-2);
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.hermes-dashboard .work-link:hover {
    text-decoration: underline;
}

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

.hermes-dashboard .work-detail__text {
    color: var(--hermes-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.hermes-dashboard .work-block {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.hermes-dashboard .work-block h4 {
    margin: 0;
    color: var(--hermes-soft);
    font-size: 0.8125rem;
    font-weight: 700;
}

.hermes-dashboard .work-block--result {
    padding: 0.75rem;
    border: 1px solid rgb(var(--hermes-online-rgb) / 0.28);
    border-radius: 9px;
}

.hermes-dashboard .work-block .message-markdown {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hermes-dashboard .work-artifacts,
.hermes-dashboard .work-subtasks,
.hermes-dashboard .work-events {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hermes-dashboard .work-artifacts { gap: 0.5rem; }
.hermes-dashboard .work-artifacts li { display: grid; gap: 0.1rem; min-width: 0; font-size: 0.9375rem; overflow-wrap: anywhere; }
.hermes-dashboard .work-artifacts a { color: var(--hermes-accent-2); text-decoration: underline; text-underline-offset: 2px; }
.hermes-dashboard .work-artifacts__note { color: var(--hermes-soft); font-size: 0.8125rem; }

.hermes-dashboard .work-subtasks { gap: 0.1rem; }

.hermes-dashboard .work-subtasks .work-subtasks {
    margin-left: 0.85rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--hermes-line);
}

.hermes-dashboard .work-subtask {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.05rem 0.55rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.4rem 0.5rem;
    color: var(--hermes-text);
    border: 0;
    border-radius: 7px;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.hermes-dashboard .work-subtask:hover {
    background: rgb(var(--hermes-accent-rgb) / 0.08);
}

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

.hermes-dashboard .work-subtask .work-dot {
    grid-row: 1 / span 2;
    margin-top: 0.45rem;
}

.hermes-dashboard .work-subtask__title {
    grid-column: 2;
    font-size: 0.9375rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hermes-dashboard .work-subtask__meta {
    grid-column: 2;
    color: var(--hermes-soft);
    font-size: 0.8125rem;
}

.hermes-dashboard .work-events { gap: 0.5rem; }

.hermes-dashboard .work-events li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--hermes-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hermes-dashboard .work-events time {
    flex: 0 0 auto;
    color: var(--hermes-soft);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.hermes-dashboard .work-detail__actions {
    display: grid;
    flex: 0 0 auto;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--hermes-line);
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .work-inline-form {
    display: grid;
    gap: 0.6rem;
}

.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-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hermes-dashboard .team-toolbar__count {
    color: var(--hermes-muted);
    font-size: 0.9375rem;
    font-weight: 650;
}

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

.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.8125rem;
    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: min(18rem, calc(100vw - 2rem));
    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.8125rem;
    line-height: 1.45;
}

.hermes-dashboard .team-canvas {
    min-height: 18rem;
    padding: 1.5rem 1rem 1.75rem;
    overflow: auto;
    border: 1px solid var(--hermes-line);
    border-radius: 10px;
    background-color: var(--hermes-bg-2);
    background-image: radial-gradient(rgb(var(--hermes-ink-rgb) / calc(0.1 * var(--hermes-line-a))) 0.75px, transparent 0.75px);
    background-size: 18px 18px;
    scrollbar-color: rgb(var(--hermes-accent-rgb) / 0.3) transparent;
}

.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-forest > .team-node {
    padding-top: 0;
}

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

.hermes-dashboard .team-archive {
    border: 1px solid var(--hermes-line);
    border-radius: 10px;
    background: var(--hermes-panel-soft);
}

.hermes-dashboard .team-archive summary {
    padding: 0.7rem 0.85rem;
    color: var(--hermes-muted);
    font-size: 0.9375rem;
    cursor: pointer;
}

.hermes-dashboard .team-archive summary:focus-visible { outline: 2px solid var(--hermes-accent); outline-offset: -2px; border-radius: 10px; }

.hermes-dashboard .team-archive ul {
    display: grid;
    margin: 0;
    padding: 0 0.85rem 0.4rem;
    list-style: none;
}

.hermes-dashboard .team-archive li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--hermes-line);
    color: var(--hermes-text);
    font-size: 0.9375rem;
}

.hermes-dashboard .team-archive__role {
    color: var(--hermes-soft);
    font-size: 0.875rem;
}

.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 .work-board-layout--detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .hermes-dashboard .work-detail {
        position: fixed;
        z-index: 30;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(30rem, 100%);
        max-height: none;
        border-width: 0 0 0 1px;
        border-radius: 0;
        background: var(--hermes-panel-strong);
        box-shadow: 0 0 60px rgb(var(--hermes-shadow-rgb) / calc(0.4 * var(--hermes-shadow-a)));
    }

    .hermes-dashboard .work-detail__actions {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: var(--hermes-panel-strong);
    }
}

/* Телефон: панель задачи и редактор роли занимают весь экран, схема команды становится списком. */
@media (max-width: 760px) {
    .hermes-dashboard .work-surface {
        grid-auto-rows: max-content;
    }

    .hermes-dashboard .work-detail {
        width: 100%;
        border-width: 0;
        box-shadow: none;
    }

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

    .hermes-dashboard .work-composer__assignee {
        flex-basis: 100%;
    }

    .hermes-dashboard .work-composer__row > .button {
        flex: 1 1 0;
        margin-left: 0;
    }

    .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: 0;
        padding: 0.85rem 0.7rem 1rem;
    }

    .hermes-dashboard .team-forest {
        display: block;
        width: auto;
        min-width: 0;
    }

    .hermes-dashboard .work-modal-backdrop {
        padding: 0;
        place-items: stretch;
    }

    .hermes-dashboard .work-modal {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .hermes-dashboard .work-modal .team-editor {
        min-height: 100%;
        border: 0;
        border-radius: 0;
    }

    .hermes-dashboard .team-editor__actions {
        position: sticky;
        bottom: 0;
        margin: 0 -1rem -1rem;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: var(--hermes-panel);
    }

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

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

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

.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 .field-label {
    color: var(--hermes-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.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;
}

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

.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 .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 .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 .button--compact {
    min-height: 1.82rem;
    padding: 0.4rem 0.58rem;
    border-radius: 10px;
    font-size: 0.74rem;
}

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

.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 .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 {
    color: var(--hermes-soft);
    line-height: 1.55;
}

.hermes-dashboard .code-card__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.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;
}

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

@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 {
        grid-template-columns: repeat(2, 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 .state-card,
    .hermes-dashboard .panel {
        padding: 0.82rem;
        border-radius: 16px;
    }

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

    .hermes-dashboard .inline-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    

    

    

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

}

@media (max-width: 440px) {

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

}

@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;
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}
.hermes-dashboard code { font-family: "JetBrains Mono", "Cascadia Code", monospace; }

.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 .field-card input:focus-visible,.hermes-dashboard .field-card select:focus-visible { box-shadow:0 0 0 2px var(--hermes-bg),0 0 0 4px var(--hermes-accent); }

/* 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 .status-pill { font-size:.6875rem;line-height:1.35; }

.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 .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Интеграции: карточка Google и подсказка про подключение из чата. */

