#app {
    min-height: 100vh;
}

.button {
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font-weight: 650;
    white-space: nowrap;
}

.button--primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.button--primary:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.button--ghost {
    border-color: var(--border);
    background: #fff;
}

.button--ghost:hover {
    background: var(--surface-muted);
}

.button--danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.button--danger:hover {
    background: #8f1d14;
}

.button--ghost-light {
    border-color: #52606a;
    background: transparent;
    color: #f5f7f8;
}

.button--small {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.85rem;
}

.button--block {
    width: 100%;
}

.icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
    color: #34414b;
    font-size: 1.2rem;
}

.icon-button:hover {
    background: var(--surface-muted);
}

.icon-button--danger {
    color: var(--danger);
}

.icon-button--speech {
    color: var(--accent-dark);
    font-size: 0.95rem;
}

.icon-button--light {
    border-color: #52606a;
    background: transparent;
    color: #fff;
}

.app-header {
    display: flex;
    min-height: 58px;
    padding: 9px max(20px, calc((100% - 1280px) / 2));
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--header);
    color: #fff;
}

.brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    font-weight: 760;
}

.brand__mark {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #58c9ba;
    border-radius: 5px;
    color: #75dfd0;
    font-size: 0.78rem;
}

.brand__mark--large {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    font-size: 1rem;
}

.brand__name {
    white-space: nowrap;
}

.header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.user-chip {
    max-width: 180px;
    overflow: hidden;
    color: #d6dde1;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.step-nav {
    display: grid;
    grid-template-columns: repeat(8, minmax(150px, 1fr));
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.step-tab {
    display: flex;
    min-height: 58px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-right: 1px solid #e8ecef;
    border-bottom: 3px solid transparent;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.step-tab > span:last-child {
    line-height: 1.35;
    white-space: normal;
}

.step-tab.is-active {
    border-bottom-color: var(--accent);
    color: var(--ink);
    font-weight: 700;
}

.step-tab__number {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: #e8ecef;
    font-size: 0.8rem;
}

.step-tab.is-active .step-tab__number {
    background: var(--accent);
    color: #fff;
}

.page-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 52px;
}

.page-heading {
    display: flex;
    min-height: 54px;
    margin-bottom: 22px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.page-heading h1 {
    margin-bottom: 0;
    font-size: 1.65rem;
    line-height: 1.2;
}

.page-heading--actions-only {
    min-height: 36px;
    align-items: flex-start;
    justify-content: flex-end;
}

.eyebrow {
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: uppercase;
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.heading-actions select {
    min-width: 150px;
}

.primary-list,
.secondary-list {
    display: grid;
    gap: 14px;
}

.primary-card,
.secondary-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.primary-card {
    padding: 19px;
}

.primary-card__meta {
    display: flex;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 0.8rem;
}

.primary-card__content,
.copy-text {
    margin-bottom: 16px;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.primary-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.secondary-list {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.secondary-item {
    padding: 16px;
    background: #fbfcfc;
}

.secondary-item__header {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.secondary-item__identity,
.secondary-item__actions {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.secondary-item__actions {
    flex: 0 0 auto;
}

.method-badge {
    display: inline-flex;
    min-height: 25px;
    padding: 3px 8px;
    align-items: center;
    border-radius: 4px;
    background: #e5edf0;
    color: #3d5059;
    font-size: 0.76rem;
    font-weight: 700;
}

.method-badge--single {
    background: #e2f1ec;
    color: #28594c;
}

.method-badge--multi {
    background: #edf0f6;
    color: #465572;
}

.status {
    font-size: 0.78rem;
    font-weight: 700;
}

.status--completed {
    color: var(--success);
}

.status--failed {
    color: var(--danger);
}

.status--running {
    color: var(--warning);
}

.shot-list {
    display: grid;
    margin: 0 0 14px;
    padding-left: 24px;
    gap: 10px;
}

.shot-list li {
    padding-left: 4px;
    line-height: 1.6;
}

.inline-actions {
    display: flex;
    margin: -4px 0 12px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.video-edit-progress {
    display: inline-flex;
    min-width: min(260px, 100%);
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
}

.video-edit-progress__bar {
    width: 140px;
    height: 8px;
}

.video-edit-progress__label {
    white-space: nowrap;
}

.video-assembly-status,
.video-assembly-progress {
    color: var(--muted);
    font-size: 0.8rem;
}

.video-assembly-progress {
    color: var(--warning);
}

.workflow-groups,
.workflow-card-list {
    display: grid;
    gap: 16px;
}

.workflow-group {
    display: grid;
    gap: 12px;
}

.workflow-group + .workflow-group {
    margin-top: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.workflow-group__header {
    display: flex;
    min-width: 0;
    padding: 14px 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.workflow-group__header strong {
    flex: 0 0 auto;
    color: var(--ink);
}

.workflow-group__header span {
    min-width: 0;
    flex: 1 1 auto;
    color: var(--ink);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.workflow-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.workflow-card__header {
    display: flex;
    min-height: 78px;
    padding: 15px 16px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e5e9ec;
}

.workflow-card__header > div:first-child {
    min-width: 0;
}

.workflow-card__summary {
    min-width: 0;
}

.workflow-card__header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.workflow-card__meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.workflow-card__controls,
.workflow-card__batch,
.workflow-shot__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.workflow-card__controls {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.workflow-card__batch {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.workflow-shot-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow-shot {
    display: grid;
    min-width: 0;
    padding: 14px 16px;
    gap: 8px;
}

.workflow-shot + .workflow-shot {
    border-top: 1px solid #edf0f2;
}

.workflow-shot__copy {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.workflow-shot__number {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: #e8ecef;
    color: #4b5963;
    font-size: 0.78rem;
    font-weight: 750;
}

.workflow-shot__actions {
    min-height: 32px;
}

.workflow-shot__actions--stacked {
    align-items: flex-start;
    flex-direction: column;
}

.workflow-video-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.workflow-shot__actions .matched-video-control {
    margin: 0;
}

.workflow-subtitle-button {
    min-width: 126px;
}

.button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.button.is-loading::before {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    animation: button-spin 0.8s linear infinite;
}

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

.workflow-status {
    display: inline-flex;
    min-height: 25px;
    padding: 3px 8px;
    align-items: center;
    border-radius: 4px;
    background: #eef0f2;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.workflow-status--ready {
    background: #e2f1ec;
    color: #28594c;
}

.workflow-status--working {
    background: #fff1d6;
    color: #7a5200;
}

.workflow-status--warning {
    background: #fff1d6;
    color: #7a5200;
}

.workflow-audio {
    width: min(320px, 100%);
    height: 34px;
}

.subtitle-preview {
    display: grid;
    gap: 14px;
}

.subtitle-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.86rem;
}

.subtitle-preview__time {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.subtitle-preview__audio {
    width: 100%;
    height: 38px;
}

.subtitle-timeline {
    display: grid;
    max-height: min(52vh, 460px);
    padding-right: 4px;
    gap: 12px;
    overflow: auto;
}

.subtitle-timeline__row {
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
}

.subtitle-timeline__row.is-active {
    border-color: #8acfc5;
    background: #f2fbf9;
}

.subtitle-timeline__sentence {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subtitle-timeline__track {
    position: relative;
    min-height: 34px;
    border-radius: 4px;
    background: #edf1f3;
}

.subtitle-timeline__word {
    position: absolute;
    top: 4px;
    min-width: 8px;
    height: 26px;
    overflow: hidden;
    padding: 2px 3px;
    border: 1px solid #b7c5ca;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font-size: 0.78rem;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subtitle-timeline__word:hover {
    border-color: var(--accent);
}

.subtitle-timeline__word.is-active {
    border-color: var(--accent-dark);
    background: var(--accent);
    color: #fff;
}

.shot-speech-button,
.shot-match-button {
    margin-top: 7px;
}

.speech-audio-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    vertical-align: middle;
}

.speech-audio-duration {
    color: var(--muted);
}

.matched-video-control {
    display: inline-flex;
    margin: 7px 0 0 8px;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    flex-wrap: wrap;
    vertical-align: middle;
}

.matched-video-score {
    color: var(--muted);
}

.matched-video-preview {
    display: grid;
    gap: 12px;
}

.matched-video-player {
    display: block;
    width: 100%;
    max-height: min(62vh, 620px);
    aspect-ratio: 16 / 9;
    background: #172127;
    object-fit: contain;
}

.matched-video-preview__meta {
    display: flex;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.82rem;
}

.matched-video-preview__description {
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.page-intro {
    margin: -8px 0 22px;
    color: var(--muted);
}

.shot-filter-bar {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.shot-filter {
    display: grid;
    width: min(260px, 100%);
    gap: 6px;
}

.shot-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.shot-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.shot-card__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #172127;
    object-fit: contain;
}

.shot-card__video--missing {
    display: grid;
    color: #d6dde1;
    place-items: center;
}

.shot-card__body {
    padding: 15px;
}

.shot-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.shot-card__header strong {
    display: block;
    overflow-wrap: anywhere;
}

.shot-card__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.shot-card__meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.shot-card__description {
    margin: 15px 0 0;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tag-row {
    display: flex;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    display: inline-flex;
    min-height: 25px;
    padding: 3px 8px;
    align-items: center;
    border: 1px solid #b8d5d0;
    border-radius: 4px;
    background: #f0f8f6;
    color: #17665c;
    font-size: 0.76rem;
    font-weight: 700;
}

.keyword-row,
.score-row {
    display: flex;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.keyword-chip,
.score-chip {
    display: inline-flex;
    min-height: 25px;
    padding: 3px 8px;
    align-items: center;
    border-radius: 4px;
    background: #e7f3f1;
    color: #27544f;
    font-size: 0.76rem;
}

.score-chip {
    background: #eef0f3;
    color: #4a5560;
}

.usage-line {
    display: block;
    margin-top: 12px;
    color: var(--muted);
}

.speech-form {
    display: grid;
    max-width: 860px;
    margin-bottom: 34px;
    padding: 20px;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.speech-form__actions {
    display: flex;
    justify-content: flex-end;
}

.section-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.speech-record-list {
    display: grid;
    gap: 14px;
}

.speech-record {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.speech-record__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.speech-record__text {
    margin: 14px 0;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.speech-record__audio {
    display: block;
    width: min(560px, 100%);
}

.empty-state,
.developing-state {
    display: grid;
    min-height: 220px;
    place-items: center;
    align-content: center;
    border: 1px dashed #b9c3ca;
    border-radius: 6px;
    color: var(--muted);
    text-align: center;
}

.developing-state__number {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    background: #e6ecef;
    color: #43515b;
    font-weight: 800;
}

.developing-state h1 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1.5rem;
}

.developing-state p {
    margin: 0;
}

.loading-line {
    padding: 32px 0;
    color: var(--muted);
}

.error-text,
.form-error {
    color: var(--danger);
}

.form-error {
    min-height: 20px;
    font-size: 0.86rem;
    line-height: 1.4;
}

.field {
    display: grid;
    gap: 7px;
}

.field__label {
    color: #34414b;
    font-size: 0.86rem;
    font-weight: 700;
}

.field small {
    color: var(--muted);
}

input:not([type="checkbox"], [type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #bcc6cd;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
}

textarea {
    resize: vertical;
    line-height: 1.55;
}

.form-stack,
.prompt-fields {
    display: grid;
    gap: 16px;
}

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

.form-grid--three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.speech-shot-picker {
    display: grid;
    max-height: min(460px, 55vh);
    overflow-y: auto;
    gap: 8px;
}

.speech-shot-group {
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fbfcfc;
}

.speech-shot-group__title,
.speech-shot-option {
    display: flex;
    min-width: 0;
    padding: 9px 11px;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.speech-shot-group__title {
    align-items: center;
    background: #f1f5f4;
}

.speech-shot-group__title strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.speech-shot-group__children {
    display: grid;
    padding: 4px 8px 8px 28px;
    gap: 3px;
}

.speech-shot-option:hover,
.speech-shot-group__title:hover {
    background: #eef6f4;
}

.speech-shot-option > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.speech-shot-option__text {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.speech-job-results {
    display: grid;
    gap: 8px;
}

.speech-job-result {
    display: grid;
    padding: 8px 10px;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.speech-job-result audio {
    width: 100%;
    height: 34px;
}

.checkbox-row {
    display: flex;
    min-height: 40px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

.checkbox-row label,
.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 420px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #eef1f3;
}

.segmented label {
    position: relative;
}

.segmented input {
    position: absolute;
    opacity: 0;
}

.segmented span {
    display: grid;
    min-height: 34px;
    place-items: center;
    border-radius: 3px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.segmented input:checked + span {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 2px rgb(31 41 51 / 16%);
}

.modal {
    width: min(560px, calc(100% - 28px));
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: hidden;
    border: 1px solid #aeb8bf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 60px rgb(15 23 28 / 26%);
}

.modal--wide {
    width: min(820px, calc(100% - 28px));
}

.modal::backdrop {
    background: rgb(14 22 27 / 58%);
}

.modal__form {
    display: flex;
    max-height: calc(100vh - 42px);
    flex-direction: column;
}

.modal__header,
.modal__footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-color: var(--border);
}

.modal__header {
    min-height: 58px;
    padding: 10px 16px 10px 20px;
    border-bottom: 1px solid var(--border);
}

.modal__header h2 {
    margin: 0;
    font-size: 1.08rem;
}

.modal__body {
    display: grid;
    padding: 20px;
    overflow-y: auto;
    gap: 16px;
}

.modal__footer {
    min-height: 58px;
    padding: 10px 20px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

.modal-copy-preview {
    max-height: 100px;
    margin: 0;
    padding: 10px 12px;
    overflow-y: auto;
    border-left: 3px solid var(--accent);
    background: #f2f7f6;
    line-height: 1.55;
}

.job-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.job-progress progress {
    width: 100%;
    height: 14px;
    accent-color: var(--accent);
}

.admin-tabs {
    display: flex;
    padding: 0 max(20px, calc((100% - 1180px) / 2));
    gap: 4px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.admin-tab {
    min-height: 46px;
    padding: 8px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
}

.admin-tab.is-active {
    border-bottom-color: var(--accent);
    color: var(--ink);
    font-weight: 750;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #e6eaed;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f5f7f8;
    color: #52606a;
    font-size: 0.78rem;
    white-space: nowrap;
}

.data-table td {
    max-width: 260px;
    color: #45525c;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fafbfb;
}

.cell-strong {
    color: var(--ink) !important;
    font-weight: 700;
}

.table-actions {
    display: flex;
    min-width: 126px;
    gap: 6px;
}

#toast-root {
    position: fixed;
    z-index: 100;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: min(360px, calc(100% - 36px));
    gap: 8px;
}

.toast {
    padding: 11px 13px;
    border: 1px solid #aeb8bf;
    border-left: 4px solid var(--focus);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(31 41 51 / 18%);
    overflow-wrap: anywhere;
}

.toast--success {
    border-left-color: var(--success);
}

.toast--error {
    border-left-color: var(--danger);
}

.login-page {
    display: grid;
    min-height: 100vh;
    padding: 36px 20px;
    place-items: center;
    align-content: center;
    gap: 28px;
    background: #202a30;
}

.login-brand {
    color: #fff;
    text-align: center;
}

.login-brand h1 {
    margin-bottom: 6px;
    font-size: 2rem;
}

.login-brand p {
    margin: 0;
    color: #bac5cb;
}

.login-panel {
    width: min(400px, 100%);
    padding: 26px;
    border: 1px solid #48565f;
    border-radius: 6px;
    background: #fff;
}

.login-panel h2 {
    margin-bottom: 22px;
    font-size: 1.2rem;
}

.login-form {
    display: grid;
    gap: 17px;
}

@media (max-width: 720px) {
    .shot-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .shot-filter-bar > .button {
        align-self: flex-start;
    }

    .workflow-card__header,
    .workflow-group__header {
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-card__controls,
    .workflow-card__batch {
        justify-content: flex-start;
    }

    .workflow-group__header span {
        white-space: normal;
    }

    .app-header {
        padding: 9px 12px;
    }

    .brand__name,
    .user-chip {
        display: none;
    }

    .header-actions .button {
        padding-inline: 9px;
        font-size: 0.82rem;
    }

    .step-nav {
        grid-template-columns: repeat(8, 136px);
    }

    .step-tab {
        min-height: 64px;
        padding: 8px;
        font-size: 0.82rem;
    }

    .page-content {
        width: min(100% - 24px, 1180px);
        padding-top: 22px;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-card {
        padding: 14px;
    }

    .primary-card__actions .button {
        flex: 1 1 auto;
    }

    .secondary-item__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .secondary-item__actions {
        width: 100%;
    }

    .form-grid--two {
        grid-template-columns: 1fr;
    }

    .form-grid--three {
        grid-template-columns: 1fr;
    }

    .speech-form {
        padding: 14px;
    }

    .modal__body {
        padding: 16px;
    }

    .admin-tabs {
        padding: 0 12px;
        overflow-x: auto;
    }
}
