/* Live streaming workspace ------------------------------------------------- */
.live-page-heading {
    align-items: flex-end;
}

/* The desktop workspace keeps both columns. This navigation belongs only to
   the single-pane mobile workspace, not to the global page header. */
.live-mobile-navigation {
    display: none;
}

.live-relay-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid #f1cc78;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf0, #fff7df);
    color: #61450e;
}

.live-relay-banner p {
    margin: .2rem 0 0;
    color: #7b5c1f;
}

.live-relay-banner__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #efd28f;
    font-size: 1.6rem;
}

/* Collapsed sections ------------------------------------------------------ */
/* Общая строка-свёртка: коммерция Tilda и справка о транспорте показывают
   статус пилюлей, не занимая пульт своим содержимым. */
.live-collapse-summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    cursor: pointer;
    list-style: none;
}

.live-collapse-summary::-webkit-details-marker {
    display: none;
}

.live-collapse-chevron {
    flex: 0 0 auto;
    width: .5rem;
    height: .5rem;
    margin-left: .15rem;
    border-right: 2px solid #5f6d68;
    border-bottom: 2px solid #5f6d68;
    transform: rotate(-45deg);
}

details[open] > .live-collapse-summary .live-collapse-chevron {
    transform: rotate(45deg);
}

.live-collapse-titles {
    display: grid;
    gap: .1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.live-collapse-titles strong {
    color: #17211e;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.live-collapse-titles small {
    color: #5f6d68;
}

.live-commerce__body {
    margin-top: 1.1rem;
}

.live-transport {
    margin: 1rem 0 0;
    padding: .75rem .9rem;
    border: 1px solid #e0e8e6;
    border-radius: 11px;
}

.live-transport .live-relay-block {
    margin: .75rem 0 0;
}

/* Split create button and generic action menus --------------------------- */
.live-create-split {
    position: relative;
    display: inline-flex;
}

.live-create-split__main {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.live-create-split__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    padding: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left-color: rgba(255, 255, 255, .35);
}

.live-create-split__chevron {
    width: .5rem;
    height: .5rem;
    margin-top: -.2rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.live-action-menu {
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    z-index: 1200;
    display: grid;
    min-width: 15rem;
    padding: .35rem;
    border: 1px solid #cdd8d2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(23, 33, 30, .14);
}

.live-action-menu__item {
    display: block;
    width: 100%;
    padding: .55rem .7rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #22302c;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.live-action-menu__item:hover:not(:disabled),
.live-action-menu__item:focus-visible {
    background: #edf5ef;
    color: #0f6b4f;
}

.live-action-menu__item:disabled {
    opacity: .5;
    cursor: default;
}

.live-action-menu__item.is-danger {
    color: #c83232;
}

.live-action-menu__item.is-danger:hover:not(:disabled),
.live-action-menu__item.is-danger:focus-visible {
    background: #fdf0ef;
    color: #b42318;
}

/* Импорт с YouTube открывается из меню создания как модальный диалог. */
.live-upcoming-dialog {
    position: fixed;
    z-index: 2000;
    width: min(calc(100% - 2rem), 72rem);
    max-height: calc(100vh - 2rem);
    box-sizing: border-box;
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #cdd8d2;
    border-radius: 12px;
    background: #fff;
}

.live-upcoming-dialog::backdrop {
    background: rgba(24, 33, 31, .45);
}

.live-upcoming-dialog .live-upcoming-import {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.live-upcoming-import__heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.live-upcoming-import__input {
    max-width: 420px;
}

.live-upcoming-import__list {
    display: grid;
    gap: .65rem;
}

.live-upcoming-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .8rem;
    padding: .8rem;
    border: 1px solid #dce5e2;
    border-radius: 12px;
    background: #fbfefd;
}

.live-upcoming-card > div:first-child {
    display: grid;
    gap: .12rem;
    min-width: 0;
}

.live-upcoming-card > div:first-child span {
    color: #667a75;
    font-size: .82rem;
}

.live-upcoming-card__anchors {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}

.live-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    min-width: 0;
}

.live-workspace__details {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.live-event-list {
    min-width: 0;
}

.live-section-heading,
.live-targets-heading,
.field-heading-row,
.live-access-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.live-section-heading {
    margin-bottom: .75rem;
}

.live-section-heading h2,
.live-targets-heading h3,
.live-access-card h3 {
    margin: 0;
}

.live-section-heading .eyebrow,
.live-targets-heading .eyebrow,
.live-access-card .eyebrow,
.live-composer .eyebrow {
    margin-bottom: .15rem;
}

.live-event-list__stack {
    display: grid;
    gap: .65rem;
}

.live-event-card {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: .55rem;
    padding: .95rem;
    border: 1px solid #dce4e2;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-align: left;
    box-shadow: 0 4px 14px rgba(20, 55, 48, .04);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.live-event-card:hover,
.live-event-card:focus-visible {
    border-color: #7db6aa;
    box-shadow: 0 8px 22px rgba(20, 92, 77, .1);
    transform: translateY(-1px);
}

.live-event-card.is-selected {
    border-color: #19806b;
    box-shadow: 0 0 0 2px rgba(25, 128, 107, .12);
    background: #fbfffe;
}

.live-event-card__head,
.live-event-card__meta,
.live-event-card__progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.live-event-card__head time,
.live-event-card__meta,
.live-event-card__progress {
    color: #637570;
    font-size: .78rem;
}

.live-event-card > strong {
    overflow: hidden;
    font-size: .98rem;
    line-height: 1.3;
    text-overflow: ellipsis;
}

.live-event-card__meta {
    justify-content: flex-start;
    min-width: 0;
}

.live-event-card__bar {
    position: relative;
    width: 74px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6ecea;
}

.live-event-card__bar i {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: #2a9b83;
}

/* The cover thumbnail occupies a second column beside the title and meta
   rows; the head and the progress bar keep the full card width. Cards
   without a cover keep the original single-column grid. */
.live-event-card.has-cover {
    grid-template-columns: minmax(0, 1fr) auto;
}

.live-event-card.has-cover .live-event-card__head,
.live-event-card.has-cover .live-event-card__progress {
    grid-column: 1 / -1;
}

.live-event-card__thumb {
    grid-area: 2 / 2 / span 2 / 3;
    align-self: center;
    width: 86px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #dce4e2;
    border-radius: 8px;
    background: #eef3f1;
}

.live-event-list__empty,
.live-details-empty {
    min-height: 280px;
}

.live-event-list__empty > span,
.live-details-empty > span {
    display: block;
    margin-bottom: .75rem;
    color: #79a89e;
    font-size: 2.5rem;
}

.live-composer {
    container-name: live-composer;
    container-type: inline-size;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

/* The composer owns its form primitives. It deliberately does not reuse the
   global .form-grid or .segmented helpers: both are shared navigation/settings
   utilities whose later edits previously rearranged this modal. */
.live-composer label {
    margin-bottom: .75rem;
    color: #22302c;
    font-size: .95rem;
    font-weight: 650;
}

.live-composer label:not(:has(input[type="checkbox"], input[type="radio"])) {
    display: grid;
    gap: .35rem;
}

.live-field {
    display: grid;
    gap: .35rem;
    align-content: start;
    min-width: 0;
}

.live-field__label {
    color: #22302c;
    font-size: .95rem;
    font-weight: 650;
}

.live-composer :where(input[type="checkbox"], input[type="radio"]) {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    margin: 0;
    align-self: center;
    accent-color: #13795b;
}

.live-composer :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100%;
    min-height: 2.4rem;
    box-sizing: border-box;
    border: 1px solid #cfd8d2;
    border-radius: 6px;
    padding: .5rem .65rem;
    background: #fff;
    color: #17211e;
}

.live-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: .85rem .75rem;
    min-width: 0;
    margin-bottom: .75rem;
}

.live-form-grid > label {
    margin-bottom: 0;
}

.live-form-grid__full {
    grid-column: 1 / -1;
}

.live-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-composer__heading {
    margin-bottom: 1rem;
}

.live-composer__heading > div {
    min-width: 0;
}

.live-composer__heading > .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.live-composer__heading h2 {
    margin: 0;
}

.live-composer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, .75fr);
    gap: 1.35rem;
    min-width: 0;
}

.live-composer__main,
.live-composer__targets {
    display: grid;
    gap: 1.15rem;
    align-content: start;
    min-width: 0;
}

.live-composer__description {
    min-height: 130px;
    resize: vertical;
}

.live-form-fieldset {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #dfe7e5;
    border-radius: 14px;
}

.live-form-fieldset > legend {
    float: none;
    width: auto;
    margin: 0 0 .75rem;
    padding: 0 .25rem;
    font-size: 1rem;
    font-weight: 700;
}

.live-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .25rem;
    border-radius: 12px;
    background: #eff4f2;
}

.live-choice__item {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    margin: 0;
    padding: .75rem;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

.live-choice__item.is-selected {
    border-color: #cbded9;
    background: #fff;
    box-shadow: 0 2px 7px rgba(22, 69, 59, .07);
}

.live-choice__item span,
.switch-row span,
.live-target-choice header label > span:last-child {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.live-choice__item small,
.switch-row small,
.live-target-choice small {
    color: #667a75;
    font-weight: 400;
    line-height: 1.35;
}

.switch-stack {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
}

.switch-row {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    padding: .7rem .75rem;
    border: 1px solid #e0e8e6;
    border-radius: 10px;
    background: #fff;
}

.switch-row.is-disabled {
    opacity: .58;
}

.live-grace-field {
    display: block;
    max-width: 280px;
    margin-top: .8rem;
}

.live-inline-alert {
    margin: .75rem 0 0;
}

.lock-note {
    margin: 0 0 .75rem;
    padding: .65rem .75rem;
    border-radius: 9px;
    background: #f5f7f6;
    color: #576a65;
    font-size: .86rem;
}

.live-composer__targets {
    /* Прилипает к верху скролл-контейнера диалога, не к вьюпорту страницы. */
    position: sticky;
    top: 0;
    align-self: start;
    padding: 1rem;
    border-radius: 14px;
    background: #f4f8f7;
}

.live-target-choice {
    display: grid;
    gap: .7rem;
    padding: .85rem;
    border: 1px solid #d9e4e1;
    border-radius: 12px;
    background: #fff;
}

.live-target-choice.is-selected {
    border-color: #7cb6aa;
    box-shadow: 0 0 0 2px rgba(34, 136, 114, .08);
}

.live-target-choice.is-unavailable {
    border-style: dashed;
    background: transparent;
}

.live-target-choice header label {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    margin: 0;
}

.platform-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9px;
    background: #edf2f1;
    color: #253b36;
    font-size: .72rem;
    font-weight: 800;
}

.platform-mark--youtube {
    background: #fff0f0;
    color: #d62828;
}

.platform-mark--vk {
    background: #eef5ff;
    color: #1674d1;
}

.platform-mark--rutube {
    background: #f1f0ff;
    color: #5a3fd1;
}

.live-target-choice__identity {
    margin: 0 0 0 3.45rem;
    color: #566c67;
    font-size: .84rem;
}

.live-target-choice__select {
    display: grid;
    gap: .35rem;
    margin: 0 0 0 3.45rem;
}

.live-change-date {
    justify-self: start;
    min-height: auto;
    padding: .15rem 0;
}

.live-duplicate-date {
    display: grid;
    gap: 1rem;
    width: min(100%, 38rem);
    margin: 1rem auto 0;
    padding: 1.25rem;
    border: 1px solid #cfe0da;
    border-radius: 14px;
    background: #f7fbf9;
}

.live-duplicate-date h3,
.live-duplicate-date p,
.live-duplicate-date label {
    margin-top: 0;
    margin-bottom: 0;
}

.live-duplicate-date__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

/* Отправка живёт в правой колонке «Площадки и итог»: кнопка на всю ширину,
   причина блокировки — строкой прямо под ней. */
.live-composer__actions {
    display: grid;
    gap: .55rem;
    margin-top: .25rem;
    padding-top: 1rem;
    border-top: 1px solid #dbe6e2;
}

.live-composer__summary {
    padding-top: 1rem;
    border-top: 1px solid #dbe6e2;
}

.live-composer__summary .eyebrow {
    margin-bottom: .4rem;
}

.live-composer__summary ul {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding-left: 1.1rem;
    color: #33413d;
    font-size: .92rem;
}

.live-composer__section {
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dfe7e5;
    border-radius: 14px;
}

.live-composer__section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.live-operation-feedback {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    margin: 0 0 1rem;
    padding: .8rem .9rem;
    border: 1px solid #b9dacf;
    border-radius: 12px;
    background: #f0faf6;
    color: #184f40;
    box-shadow: 0 3px 14px rgba(20, 91, 72, .08);
}

.live-operation-feedback--composer {
    position: sticky;
    z-index: 5;
    top: 0;
}

.live-operation-feedback--page {
    position: fixed;
    z-index: 1990;
    top: 5.25rem;
    left: 50%;
    width: min(calc(100% - 2rem), 38rem);
    transform: translateX(-50%);
}

.live-operation-feedback > span:last-child {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.live-operation-feedback small {
    color: #55736b;
    line-height: 1.35;
}

.live-operation-feedback__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #afd5ca;
    border-top-color: #13795b;
    border-radius: 50%;
    animation: live-operation-spin .8s linear infinite;
}

@keyframes live-operation-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .live-operation-feedback__spinner {
        animation: none;
        border-color: #13795b;
        border-right-color: transparent;
    }
}

.live-cover-field {
    min-width: 0;
}

.live-cover-field__input {
    margin: .55rem 0 .75rem;
}

.live-cover-cropper__viewport {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 760px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #ccd9d6;
    border-radius: 14px;
    background: #16201e;
}

.live-cover-cropper__viewport canvas,
.live-cover-cropper__viewport img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-cover-cropper__viewport canvas {
    cursor: grab;
    touch-action: none;
}

.live-cover-cropper__viewport canvas.is-dragging {
    cursor: grabbing;
}

.live-cover-cropper__placeholder {
    display: grid;
    place-items: center;
    gap: .25rem;
    padding: 1rem;
    color: #d8e1df;
    text-align: center;
}

.live-cover-cropper__placeholder > span {
    font-size: 2.25rem;
}

.live-cover-cropper__placeholder small {
    color: #9dafaa;
}

.live-cover-cropper__tools {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: .75rem;
    width: min(100%, 760px);
    margin-top: .65rem;
}

.field-help,
.field-error {
    display: block;
    margin: .3rem 0 0;
    font-size: .82rem;
}

.field-help {
    color: #647872;
}

.field-error,
.validation-message {
    color: #a52d2d;
}

.live-control {
    min-width: 0;
}

/* Заголовок с пилюлей статуса: строку переиспользуют панели настроек. */
.live-control__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.live-control__title-row h2 {
    margin: 0;
}

/* Командная панель --------------------------------------------------------- */
/* The summary has variable height (title, automation, readiness and linked
   systems). Keep it in normal flow: pinning the entire panel hides platform
   cards and preview controls as they scroll underneath it. Only the compact
   mobile action row is fixed, with its own workspace bottom clearance. */
.live-command {
    position: relative;
}

/* Коммерция и занятие Skillspace как строки командной панели: без
   собственной панельной рамки. */
.live-command .live-commerce,
.live-command .live-skillspace {
    margin-top: .9rem;
    padding: .9rem 0 0;
    border: 0;
    border-top: 1px solid #e7ece8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.live-command__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.live-command__identity {
    min-width: 0;
}

.live-command__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.live-command__title-row h2 {
    margin: 0;
}

.live-command__status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: .55rem;
}

.live-command__action-column {
    display: grid;
    justify-items: end;
    gap: .55rem;
    flex: 0 0 auto;
    min-width: 0;
}

.live-command__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
    margin: 0;
    color: #667a75;
    text-align: right;
}

.live-command__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex: 0 0 auto;
}

.live-command__timer {
    display: grid;
    gap: .05rem;
    margin-right: .35rem;
    text-align: right;
}

.live-command__timer-label {
    color: #557164;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.live-command__timer-label.is-live {
    color: #a8342a;
}

.live-command__timer-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #17211e;
    line-height: 1.1;
}

.live-command__more {
    position: relative;
}

.live-command__more-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    padding: 0;
}

/* Чеклист готовности: четыре слота — сигнал, preflight, площадки, выходы. */
.live-command__checklist {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .6rem;
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid #e7ece8;
}

.live-command__announcement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .75rem;
    margin-top: .7rem;
    font-size: .85rem;
}

.live-command__announcement-label {
    flex: 0 0 auto;
    color: #687b74;
}

.live-command__announcement-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    max-width: 100%;
    min-width: 0;
}

.live-command__announcement-url {
    min-width: 0;
}

/* The inline anchor owns only its text, never the empty flex/grid space. */
.live-command__announcement-url a {
    display: inline;
    color: #167661;
    text-decoration-color: #b5cec5;
    text-underline-offset: .18em;
}

.live-command__announcement-url a:hover {
    text-decoration-color: currentColor;
}

/* Fixed dimensions keep all three feedback states from moving the row. */
.live-command__copy {
    display: inline-flex;
    flex: 0 0 8.5rem;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 8.5rem;
    min-height: 2rem;
    padding: .3rem .5rem;
    font-size: .8rem;
    white-space: nowrap;
}

.live-command__copy svg {
    flex: 0 0 auto;
}

.live-command__copy.is-copied {
    border-color: #cfe1d7;
    background: #edf5ef;
    color: #0f6b4f;
}

.live-readiness {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    padding: .5rem .7rem;
    border: 1px solid #e0e8e6;
    border-radius: 10px;
    background: #f8faf9;
}

.live-readiness--ok {
    border-color: #dfeae3;
    background: #f4f9f6;
}

.live-readiness--warning {
    border-color: #efe3c8;
    background: #fdf9ec;
}

.live-readiness--danger {
    border-color: #f0d0cc;
    background: #fdf1ef;
}

.live-readiness__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #13795b;
    color: #fff;
}

.live-readiness__dot {
    flex: 0 0 auto;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: #879691;
}

.live-readiness--warning .live-readiness__dot {
    background: #d69a1f;
}

.live-readiness--danger .live-readiness__dot {
    background: #c34747;
}

.live-readiness__text {
    display: grid;
    gap: .05rem;
    min-width: 0;
}

.live-readiness__text strong {
    font-size: .88rem;
    color: #17211e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-readiness__text small {
    color: #5f6d68;
    line-height: 1.25;
}

.live-control__description {
    margin-top: 1rem;
    padding: .75rem .9rem;
    border: 1px solid #e0e8e6;
    border-radius: 11px;
    background: #fbfcfb;
}

.live-control__description summary {
    cursor: pointer;
    font-weight: 700;
}

.live-control__description p {
    margin: .8rem 0 0;
    white-space: pre-wrap;
}

.live-relay-block {
    margin: 0 0 1rem;
}

.live-hard-stop-control {
    grid-template-columns: minmax(220px, 340px) auto minmax(220px, 1fr);
    gap: .65rem;
    margin: 0 0 1rem;
    padding: .85rem;
    border: 1px solid #e0e8e6;
    border-radius: 11px;
    background: #fbfdfc;
}

.live-hard-stop-control label {
    display: grid;
    gap: .3rem;
    font-weight: 700;
}

.live-hard-stop-control small {
    align-self: center;
    color: #667a75;
}

.live-hard-stop-control .field-validation-error {
    grid-column: 1 / -1;
}

/* Пульт: превью слева, телеметрия и доступы (OBS, Hub-ссылка) — колонкой
   справа, чтобы всё для настройки OBS было в одном месте рядом с картинкой. */
.live-control__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.live-control__grid .live-preview {
    min-width: 0;
}

.live-control__side {
    display: grid;
    gap: .8rem;
    min-width: 0;
}

/* Без превью пульт складывается: подсказка сверху, карточки доступа рядом,
   а широкие предупреждения и hard-stop занимают всю ширину. Число колонок
   явное (не auto-fit): растянутые на всю ширину предупреждения занимают все
   треки, auto-fit их не схлопывает — и справа оставалась пустая колонка. */
.live-control__grid--stacked {
    grid-template-columns: minmax(0, 1fr);
}

.live-control__grid--stacked .live-control__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-control__grid--stacked .live-control__side > .alert,
.live-control__grid--stacked .live-control__side > .live-hard-stop-control,
.live-control__grid--stacked .live-control__side > .live-transport {
    grid-column: 1 / -1;
}

.live-control__side .live-hard-stop-control {
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
}

.live-control__side .live-relay-block {
    margin: 0;
}

.live-control__side .live-transport {
    margin: 0;
}

.live-control__side .live-preflight-alert {
    margin: 0;
}

.live-signal-card {
    padding: .8rem .9rem;
    border: 1px solid #e0e8e6;
    border-radius: 11px;
    background: #f8faf9;
}

.live-signal-card .eyebrow {
    margin-bottom: .5rem;
}

.live-signal-card .live-preview__signal {
    margin: 0;
}

.live-access-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dfe7e5;
    border-radius: 13px;
    background: #fbfdfc;
}

/* Карточка Hub-ссылки под превью. */
.live-preview__link {
    margin-top: .9rem;
}

.copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    margin-top: .8rem;
}

.copy-field code {
    display: block;
    min-width: 0;
    padding: .58rem .65rem;
    overflow: hidden;
    border: 1px solid #dce6e3;
    border-radius: 8px;
    background: #fff;
    color: #23423a;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-field--stacked {
    display: grid;
    grid-template-columns: 1fr;
    gap: .3rem;
}

.copy-field--stacked > span:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .5rem;
}

.secret-value {
    -webkit-text-security: disc;
}

.secret-value.is-visible {
    -webkit-text-security: none;
}

.live-copy-status {
    margin: .6rem 0 0;
    color: #167b64;
    font-size: .84rem;
}

.live-obs-profile {
    margin-top: 1rem;
    padding: .75rem .9rem;
    border: 1px solid #e0e8e6;
    border-radius: 11px;
}

.live-obs-profile summary {
    cursor: pointer;
    font-weight: 700;
}

.live-obs-profile dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: .8rem 0;
}

.live-obs-profile dl > div {
    padding: .6rem;
    border-radius: 8px;
    background: #f4f7f6;
}

.live-obs-profile dt {
    color: #647772;
    font-size: .78rem;
}

.live-obs-profile dd,
.live-obs-profile p {
    margin: 0;
}

.live-control__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e9e7;
}

.live-danger-zone {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e4a9a9;
    border-radius: 12px;
    background: #fff7f7;
}

.live-danger-zone h3 {
    margin-top: 0;
    color: #8d2929;
}

.live-danger-zone label {
    display: block;
    max-width: 420px;
}

.live-platforms {
    min-width: 0;
}

.live-platform-auth-warning {
    margin-bottom: .75rem;
}

.live-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    min-width: 0;
}

.live-platform-card {
    display: grid;
    align-content: start;
    min-width: 0;
    padding: .9rem;
    border: 1px solid #dfe7e5;
    border-top: 3px solid #96aaa5;
    border-radius: 12px;
    background: #fff;
}

.live-platform-card--success {
    border-top-color: #239675;
}

.live-platform-card--warning {
    border-top-color: #d29a2c;
}

.live-platform-card--danger {
    border-top-color: #c54b4b;
}

.live-platform-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
}

.live-platform-card__head h3,
.live-platform-card__head p {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-platform-card__head p {
    color: #687a76;
    font-size: .78rem;
}

.live-platform-card__facts {
    display: grid;
    gap: .35rem;
    margin: .85rem 0;
}

.live-platform-card__facts > div {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #edf1f0;
}

.live-platform-card__facts dt {
    color: #687a76;
    font-weight: 400;
}

.live-platform-card__facts dd {
    margin: 0;
    text-align: right;
}

.live-platform-card__error,
.live-platform-card__diagnostic {
    margin: 0 0 .75rem;
    padding: .55rem .6rem;
    border-radius: 8px;
    font-size: .8rem;
}

.live-platform-card__error {
    background: #fff0f0;
    color: #8d2929;
}

.live-platform-card__diagnostic {
    background: #f5f7f6;
    color: #526762;
}

.live-platform-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: auto;
}

.live-platform-card__more {
    position: relative;
    margin-left: auto;
}

.live-platform-card__more-toggle {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    padding: 0;
}

.live-platform-card__confirmation {
    flex: 1 0 100%;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .65rem;
    border: 1px solid #ead6a7;
    border-radius: 10px;
    background: #fff9ec;
    color: #674f1c;
}

.live-platform-card__confirmation p {
    flex: 1 0 100%;
    margin: 0 0 .15rem;
    font-size: .8rem;
}

@media (max-width: 1180px) {
    .live-composer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-composer__targets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-composer__targets > .live-targets-heading,
    .live-composer__targets > .muted,
    .live-composer__targets > .lock-note {
        grid-column: 1 / -1;
    }

    .live-target-choice__identity,
    .live-target-choice__select {
        margin-left: 0;
    }

    .live-platform-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .live-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Hiding the inactive pane also removes its controls from keyboard
       navigation, including the detail pane's fixed mobile action bar. */
    .live-page[data-live-mobile-view="list"] .live-workspace__details,
    .live-page[data-live-mobile-view="details"] .live-event-list,
    .live-page[data-live-mobile-view="details"] .live-page-heading {
        display: none;
    }

    .live-page[data-live-mobile-view="details"] .live-mobile-navigation {
        display: grid;
        gap: .25rem;
        min-width: 0;
    }

    .live-mobile-navigation__back {
        justify-self: start;
        min-width: 0;
        min-height: 2.75rem;
        padding: .45rem 0;
        border: 0;
        background: transparent;
        color: #0f6b4f;
        font: inherit;
        font-weight: 700;
        line-height: 1.35;
        text-align: left;
        cursor: pointer;
    }

    .live-mobile-navigation__back:hover {
        text-decoration: underline;
        text-underline-offset: .15em;
    }

    .live-mobile-navigation__back:focus-visible {
        outline: 2px solid #19806b;
        outline-offset: 3px;
        border-radius: 4px;
    }

    .live-mobile-navigation h1 {
        margin: 0;
        min-width: 0;
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .live-event-list__stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-event-list__empty {
        min-height: 0;
    }

    .live-control__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-composer__targets {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-composer__targets > * {
        grid-column: auto;
    }

    .live-upcoming-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .live-upcoming-card__anchors {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .live-relay-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .live-relay-banner > .status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .live-event-list__stack,
    .live-choice,
    .live-state-strip,
    .live-obs-profile dl,
    .live-hard-stop-control {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-control__header,
    .field-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-field,
    .copy-field--stacked > span:last-child {
        grid-template-columns: minmax(0, 1fr);
    }

    .copy-field code {
        white-space: normal;
    }

    .live-cover-cropper__tools {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .live-cover-cropper__tools .btn {
        grid-column: 1 / -1;
    }

    .live-composer__actions,
    .live-control__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .live-composer__actions .btn,
    .live-control__actions .btn,
    .live-danger-zone .btn,
    .live-tilda-confirmation .btn {
        width: 100%;
    }

    .live-tilda-confirmation__summary > div {
        grid-template-columns: 1fr;
        gap: .2rem;
    }
}

/* Composer modal ----------------------------------------------------------- */
.live-composer-dialog,
.live-completed-dialog {
    position: fixed;
    z-index: 2000;
    width: min(calc(100% - 2rem), 86rem);
    max-height: calc(100vh - 2rem);
    box-sizing: border-box;
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #cdd8d2;
    border-radius: 12px;
    background: #fff;
}

@container live-composer (max-width: 72rem) {
    .live-composer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-composer__targets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-composer__targets > .live-targets-heading,
    .live-composer__targets > .muted,
    .live-composer__targets > .lock-note {
        grid-column: 1 / -1;
    }

    .live-target-choice__identity,
    .live-target-choice__select {
        margin-left: 0;
    }
}

@container live-composer (max-width: 48rem) {
    .live-form-grid--two,
    .live-choice,
    .live-composer__targets {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-composer__targets > * {
        grid-column: auto;
    }
}

.live-composer-dialog::backdrop,
.live-completed-dialog::backdrop {
    background: rgba(24, 33, 31, .45);
}

.live-composer-dialog .live-composer {
    margin-bottom: 0;
    padding: 1.35rem;
    border: 0;
    border-radius: 0;
    /* The panel clipped focus rings on its outermost fields. */
    overflow: visible;
}

.live-composer__error {
    margin-bottom: 1rem;
}

.live-composer__hint {
    flex: 1 1 100%;
    margin: 0 0 .35rem;
    color: #6c5a2e;
    font-size: .84rem;
}

/* Completed-stream template modal ----------------------------------------- */
.live-completed-dialog {
    width: min(calc(100% - 2rem), 72rem);
}

.live-completed-dialog .live-completed-duplicate {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1.35rem;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.live-completed-duplicate__heading,
.live-completed-duplicate__heading h2,
.live-completed-duplicate__heading p {
    margin-top: 0;
    margin-bottom: 0;
}

.live-completed-duplicate__search {
    padding: .9rem;
    border: 1px solid #d7e4df;
    border-radius: 12px;
    background: #f7fbf9;
}

.live-completed-duplicate__search .live-field {
    margin: 0;
}

.live-completed-duplicate__search-status {
    margin: -.25rem 0 0;
    color: #456259;
    font-size: .85rem;
}

.live-completed-duplicate__error {
    margin: 0;
}

.live-completed-duplicate__empty-search {
    min-height: 9rem;
}

.live-completed-duplicate__empty-search p {
    margin: 0;
}

.live-completed-duplicate__list {
    margin: 0;
}

.live-completed-duplicate__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding-top: .25rem;
}

.field-required {
    margin-left: .15rem;
    color: #c54b4b;
}

/* Input preview ------------------------------------------------------------ */
.live-preview {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .9rem;
    border: 1px solid #dfe7e5;
    border-radius: 12px;
    background: #fbfcfb;
}

.live-preview__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.live-preview__heading h3 {
    margin: 0;
    font-size: 1rem;
}

.live-preview__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.live-preview__frame iframe,
.live-preview__frame video,
.live-preview__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.live-preview__player-status {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    max-width: calc(100% - 2rem);
    margin: 0;
    padding: .55rem .75rem;
    border-radius: 8px;
    background: rgba(20, 29, 27, .82);
    color: #fff;
    font-size: .84rem;
    text-align: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.live-preview__player-status[data-tone="warning"] {
    background: rgba(125, 76, 13, .9);
}

.live-signal-card__freshness {
    display: block;
    margin-top: .55rem;
    color: #687a76;
    font-size: .72rem;
}

.live-preview__signal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: .5rem;
    margin: 0;
}

.live-preview__signal > div {
    min-width: 0;
}

.live-preview__signal dt {
    color: #687a76;
    font-size: .74rem;
    font-weight: 400;
}

.live-preview__signal dd {
    margin: 0;
    font-size: .84rem;
    font-weight: 600;
}

/* List filters ------------------------------------------------------------- */
.live-event-list__filters {
    display: grid;
    gap: .5rem;
    margin-bottom: .75rem;
}

.live-event-list__scopes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .25rem;
}

.live-scope {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 0;
    padding: .4rem .3rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #4c5c58;
    font-size: .78rem;
    cursor: pointer;
}

.live-scope:hover:not(:disabled),
.live-scope:focus-visible {
    background: #eef2f1;
}

.live-scope.is-selected {
    border-color: #c3d2ce;
    background: #fff;
    color: #1f2b28;
    font-weight: 600;
}

.live-scope:disabled {
    opacity: .45;
    cursor: default;
}

.live-scope__count {
    color: #7b8b87;
    font-variant-numeric: tabular-nums;
}

/* Ярлыки фильтров подобраны короткими и не переносятся на вторую строку. */
.live-scope {
    white-space: nowrap;
}

/* «Требуют внимания» из метрик БД: красный бейдж на фильтре вместо
   отдельной плитки метрик над страницей. */
.live-scope__attention {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 .28rem;
    border-radius: 999px;
    background: #ffe3e3;
    color: #b42318;
    font-size: .68rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.live-event-list__no-matches {
    display: grid;
    gap: .5rem;
    justify-items: center;
}

/* Blocked action reasons --------------------------------------------------- */
.live-blocked-reasons {
    display: grid;
    gap: .3rem;
    margin: .6rem 0 0;
    padding-left: 1.1rem;
    color: #6c5a2e;
    font-size: .82rem;
}

/* Workspace columns -------------------------------------------------------- */
@media (min-width: 901px) {
    /* Keeps the event list beside a long detail panel instead of scrolling
       it off the top of the workspace. */
    .live-event-list {
        position: sticky;
        top: var(--app-sticky-top);
        max-height: var(--app-sticky-max-h);
        overflow-y: auto;
    }
}

@media (max-width: 900px) {
    .live-event-list__scopes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .live-composer-dialog,
    .live-completed-dialog {
        width: 100%;
        max-height: 92vh;
        margin: auto 0 0;
        border-radius: 14px 14px 0 0;
    }

    .live-composer-dialog .live-composer {
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    }

    .live-completed-dialog .live-completed-duplicate {
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    }

    .live-completed-duplicate__search {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-completed-duplicate__search .btn {
        width: 100%;
    }
}

/* Tilda catalog confirmation ----------------------------------------------- */
.live-tilda-confirmation {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #a8d8c5;
    border-radius: 12px;
    background: #f3fbf7;
}

.live-tilda-confirmation h3,
.live-tilda-confirmation p,
.live-tilda-confirmation dl {
    margin: 0;
}

.live-tilda-confirmation__summary {
    display: grid;
    gap: .45rem;
}

.live-tilda-confirmation__summary > div {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
    gap: .7rem;
    padding: .5rem .65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .75);
}

.live-tilda-confirmation__summary dt {
    color: #557068;
    font-size: .8rem;
    font-weight: 700;
}

.live-tilda-confirmation__summary dd {
    min-width: 0;
}

/* Mixed <a>/<button> action rows sat on different baselines. */
.live-access-card .button-row.compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.live-access-card .button-row.compact > * {
    display: inline-flex;
    align-items: center;
}

/* Skillspace ------------------------------------------------------------- */
/* Свёрнутая строка командной панели; провайдер не читается при рендере
   страницы и не блокирует local-first UI. Раскладка живёт на теле секции:
   display:grid на самом details ломает скрытие содержимого в Chrome. */
.live-skillspace__body {
    display: grid;
    gap: 1rem;
    margin-top: 1.1rem;
}

.live-skillspace__selection {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.live-skillspace__course-picker {
    grid-column: 1 / -1;
}

.live-skillspace__parameters {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(10rem, .55fr) minmax(9rem, .45fr);
    align-items: start;
    gap: 1rem;
}

.live-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
}

.live-copy-row input {
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .84rem;
}

.live-skillspace__confirmation {
    display: grid;
    gap: .2rem;
    padding: .75rem .85rem;
    border: 1px solid #cfe0da;
    border-radius: 10px;
    background: #f5fbf8;
}

.live-skillspace__confirmation span {
    color: #5d716c;
    font-size: .86rem;
}

.live-skillspace__ai-suggestion {
    color: #167661;
    font-weight: 650;
}

.live-skillspace__result {
    margin: 0;
}

/* Мобильный пульт ---------------------------------------------------------- */
/* Оператор управляет с телефона прямо с площадки: панель действий уезжает
   вниз под большой палец, чеклист складывается плиткой 2×2, меню действий
   раскрываются вверх, чтобы не уходить за край экрана. */
@media (max-width: 640px) {
    /* Native keyboard focus scrolling must account for the fixed mobile action bar. */
    html:has(.live-page[data-live-mobile-view="details"]) {
        scroll-padding-bottom: calc(5.6rem + env(safe-area-inset-bottom));
    }

    .live-command__row {
        flex-direction: column;
        align-items: stretch;
    }

    .live-command__action-column {
        justify-items: stretch;
    }

    .live-command__meta {
        justify-content: flex-start;
        text-align: left;
    }

    .live-command__actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        flex-wrap: nowrap;
        padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
        border-top: 1px solid #e2e9e7;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -8px 24px rgba(23, 33, 30, .08);
    }

    .live-command__actions .btn {
        flex: 1 1 auto;
        min-height: 2.9rem;
        padding-right: .55rem;
        padding-left: .55rem;
        font-size: .92rem;
        white-space: nowrap;
    }

    .live-command__actions .live-command__more {
        flex: 0 0 auto;
    }

    .live-command__actions .live-command__more-toggle {
        flex: 0 0 auto;
        width: 2.9rem;
    }

    .live-command__timer {
        flex: 0 0 auto;
        margin-right: .15rem;
        text-align: left;
    }

    .live-command__actions .live-action-menu {
        top: auto;
        bottom: calc(100% + .4rem);
    }

    .live-command__checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Only the detail pane has a bottom action bar. The list must not retain
       empty action-bar clearance when returning from event management. */
    .live-page[data-live-mobile-view="details"] .live-workspace {
        padding-bottom: 5.6rem;
    }

    .live-control__grid--stacked .live-control__side {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-create-split {
        width: 100%;
    }

    .live-create-split__main {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* The shared page-action rule makes buttons full-width on phones. The
       menu toggle is the compact half of a split button, not a second CTA. */
    .live-create-split .live-create-split__toggle {
        flex: 0 0 2.9rem;
        width: 2.9rem;
    }

    .live-skillspace__heading {
        display: grid;
    }

    .live-skillspace__selection,
    .live-skillspace__parameters,
    .live-copy-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Control-plane failures are separate from the last observed signal and queued commands. */
.live-relay-diagnostics { min-width: 0; }
.live-relay-diagnostics p { margin: .5rem 0; }
.live-relay-diagnostics dl { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: .75rem 0; }
.live-relay-diagnostics dl > div { min-width: 0; }
.live-relay-diagnostics dt { font-size: .85rem; }
.live-relay-diagnostics dd { margin: .2rem 0 0; font-weight: 600; }
.live-relay-diagnostics details { margin-top: .5rem; }
.live-relay-diagnostics summary { cursor: pointer; }
.live-relay-diagnostics code { white-space: normal; }
.live-relay-diagnostics__queue { margin: 0 0 1rem; }
.live-control :is(button, a, input, select, textarea, summary):focus-visible {
    outline: 2px solid #0f765d;
    outline-offset: 3px;
}
