:root {
    --studio-surface: rgba(255, 255, 255, .86);
    --studio-line: rgba(50, 43, 36, .11);
    --studio-shadow: 0 20px 60px rgba(35, 29, 20, .08);
    --studio-soft-purple: #f0edff;
    --studio-soft-green: #e8f6ef;
    --studio-soft-red: #fcecec;
    --studio-soft-gold: #fff4d5;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--purple) 28%, transparent);
    outline-offset: 3px;
}

.details-root {
    position: relative;
}

.activity-overlay[hidden] {
    display: none;
}

.activity-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(22, 20, 29, .58);
    backdrop-filter: blur(8px);
}

.activity-overlay-card {
    width: min(100%, 520px);
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    color: #211d27;
    background: rgba(255,255,255,.95);
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.activity-overlay-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(91,63,214,.18);
    border-radius: 50%;
    animation: phoenix-spin 1.8s linear infinite;
}

.activity-overlay-mark::before {
    content: "P";
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--purple);
    font: 600 22px "Newsreader", serif;
    animation: phoenix-counter-spin 1.8s linear infinite;
}

.activity-overlay-card .eyebrow {
    margin-bottom: 5px;
}

.activity-overlay-card h2 {
    margin: 0 0 6px;
    font: 600 27px/1.08 "Newsreader", serif;
}

.activity-overlay-card p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

body.activity-running {
    overflow: hidden;
}

.detail-hero {
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 82% 5%, color-mix(in srgb, var(--brand) 34%, transparent), transparent 36%),
        radial-gradient(circle at 8% 95%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 32%),
        linear-gradient(145deg, #17161d, #292532 62%, #1c1a22);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 32px 32px;
}

.detail-hero > * {
    position: relative;
    z-index: 1;
}

.detail-title h1 {
    letter-spacing: -.025em;
    text-wrap: balance;
}

.pipeline {
    grid-template-columns: repeat(9, minmax(92px, 1fr));
}

.pipeline .failed {
    color: #ffd8d8;
}

.pipeline .failed i {
    color: white;
    border-color: #d85d68;
    background: #b84444;
}

.upload-type-choice {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.upload-type-choice legend {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

.upload-type-choice label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--studio-line);
    border-radius: 12px;
    background: rgba(250, 249, 246, .72);
    cursor: pointer;
}

.upload-type-choice label:has(input:checked) {
    border-color: color-mix(in srgb, var(--purple) 45%, white);
    background: var(--studio-soft-purple);
    box-shadow: inset 3px 0 var(--purple);
}

.upload-type-choice input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--purple);
}

.upload-type-choice span {
    display: grid;
    gap: 3px;
}

.upload-type-choice strong {
    font-size: 13px;
}

.upload-type-choice small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.boundary-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
    padding: 18px 22px;
    border: 1px solid var(--studio-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 34px rgba(35, 29, 20, .05);
}

.boundary-summary .eyebrow {
    margin-bottom: 5px;
}

.boundary-summary strong {
    display: block;
    font: 600 22px "Newsreader", serif;
}

.boundary-summary strong span {
    margin: 0 7px;
    color: var(--purple);
}

.boundary-summary small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.processing-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(180px, .34fr);
    gap: 28px;
    align-items: center;
    min-height: 260px;
    padding: 34px;
    border: 1px solid color-mix(in srgb, var(--purple) 20%, var(--studio-line));
    border-radius: 18px;
    background:
        radial-gradient(circle at 5% 20%, rgba(91, 63, 214, .12), transparent 32%),
        linear-gradient(140deg, rgba(255,255,255,.94), rgba(245,242,255,.78));
    box-shadow: var(--studio-shadow);
}

.processing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 48%, transparent 61%);
    transform: translateX(-100%);
    animation: phoenix-sheen 3.2s ease-in-out infinite;
}

.processing-orbit {
    position: relative;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(91,63,214,.18);
    border-radius: 50%;
    animation: phoenix-spin 3s linear infinite;
}

.processing-orbit::before {
    content: "P";
    position: absolute;
    inset: 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--purple);
    font: 600 26px "Newsreader", serif;
    animation: phoenix-counter-spin 3s linear infinite;
}

.processing-orbit i {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.processing-orbit i:nth-child(1) { top: -4px; left: 34px; }
.processing-orbit i:nth-child(2) { right: 2px; bottom: 9px; background: var(--green); }
.processing-orbit i:nth-child(3) { left: 1px; bottom: 11px; background: #9d87ed; }

.processing-copy h2 {
    margin: 0 0 8px;
    font: 600 clamp(27px, 3vw, 38px)/1.06 "Newsreader", serif;
}

.processing-copy > p:not(.eyebrow) {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.processing-copy > small {
    color: var(--muted);
    font-size: 11px;
}

.processing-progress {
    overflow: hidden;
    height: 5px;
    margin: 24px 0 10px;
    border-radius: 99px;
    background: rgba(91,63,214,.12);
}

.processing-progress span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), #a38ced);
    animation: phoenix-progress 1.8s ease-in-out infinite;
}

.processing-card dl {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(91,63,214,.11);
    border-radius: 12px;
    background: rgba(255,255,255,.62);
}

.processing-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--studio-line);
    font-size: 11px;
}

.processing-card dl div:last-child { border-bottom: 0; }
.processing-card dt { color: var(--muted); }
.processing-card dd { margin: 0; font-weight: 700; text-align: right; }

.failure-card {
    gap: 28px;
}

.failure-guidance {
    font-size: 12px;
}

.failure-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: flex-start;
}

.failure-actions form {
    display: grid;
    gap: 4px;
}

.button-light {
    color: #281f25;
    background: white;
    box-shadow: none;
}

@keyframes phoenix-spin { to { transform: rotate(360deg); } }
@keyframes phoenix-counter-spin { to { transform: rotate(-360deg); } }
@keyframes phoenix-sheen { 60%, 100% { transform: translateX(100%); } }
@keyframes phoenix-progress { 0% { transform: translateX(-105%); } 55%, 100% { transform: translateX(265%); } }

@media (prefers-reduced-motion: reduce) {
    .processing-card::after,
    .processing-orbit,
    .processing-orbit::before,
    .processing-progress span,
    .activity-overlay-mark,
    .activity-overlay-mark::before { animation: none; }
    .processing-progress span { width: 62%; }
}

.panel,
.review-section,
.side-card,
.boundary-card,
.form-card {
    background: var(--studio-surface);
    border-color: var(--studio-line);
    box-shadow: var(--studio-shadow);
    backdrop-filter: blur(18px);
}

.topbar {
    border-bottom-color: var(--studio-line);
    background: rgba(247, 245, 240, .82);
}

.stats {
    border-color: var(--studio-line);
    background: var(--studio-line);
    box-shadow: 0 12px 40px rgba(35, 29, 20, .055);
}

.stats article {
    background: rgba(255,255,255,.78);
}

.sermon-row {
    background: rgba(255,255,255,.3);
}

.sermon-row:hover {
    background: rgba(255,255,255,.82);
}

.form-card {
    border-radius: 20px;
}

.workspace-grid {
    gap: 28px;
}

.workspace-main {
    gap: 26px;
}

.revision-history {
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid var(--studio-line);
    border-radius: 16px;
    background: var(--studio-surface);
    box-shadow: var(--studio-shadow);
}

.revision-history-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--studio-line);
}

.revision-history-heading h2 {
    margin: 0;
    font: 600 25px "Newsreader", serif;
}

.revision-history-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.revision-history ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.revision-history li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 26px;
    border-bottom: 1px solid var(--studio-line);
}

.revision-history li:last-child { border-bottom: 0; }
.revision-history li.active { background: rgba(91, 63, 214, .045); }
.revision-history li > div { display: flex; align-items: center; gap: 10px; }
.revision-history li small { color: var(--purple); font-weight: 700; }
.revision-history .state-published { background: #e8f5ee; color: var(--green); }
.revision-actions form { margin: 0; }

@media (max-width: 700px) {
    .revision-history-heading,
    .revision-history li {
        align-items: flex-start;
        flex-direction: column;
    }

    .revision-actions { width: 100%; flex-wrap: wrap; }
}

.section-heading {
    gap: 24px;
    padding: 24px 28px;
}

.section-heading > div:first-child {
    min-width: 0;
}

.section-kicker {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.delivery-gate-note {
    margin: -4px 0 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.section-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.button-compact {
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 12px;
}

.button-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin-left: 7px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    font-size: 10px;
}

.async-flash[hidden] {
    display: none;
}

.async-flash {
    position: fixed;
    z-index: 100;
    top: 92px;
    right: max(18px, calc((100vw - 1320px) / 2));
    max-width: min(420px, calc(100vw - 36px));
    margin: 0;
    border: 1px solid currentColor;
    box-shadow: 0 18px 50px rgba(20, 18, 16, .16);
    animation: phoenix-message-in .2s ease-out;
}

@keyframes phoenix-message-in {
    from { opacity: 0; transform: translateY(-8px); }
}

.is-loading {
    opacity: .68;
    position: relative;
    transition: opacity .15s ease;
}

.is-loading button {
    cursor: wait;
}

.action-feedback {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.action-feedback:empty {
    display: none;
}

.action-feedback[data-state="success"] { color: var(--green); }
.action-feedback[data-state="error"] { color: var(--red); }

.operator-action-error {
    width: min(100%, 620px);
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid #e2b6b6;
    border-radius: 10px;
    background: #fff4f4;
    color: #702b2b;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.operator-action-error p { margin: 0; font-weight: 700; }
.operator-action-error details { margin-top: 9px; }
.operator-action-error summary { cursor: pointer; font-weight: 700; }
.operator-action-error dl { display: grid; gap: 5px; margin: 10px 0 0; }
.operator-action-error dl div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
.side-card .operator-action-error dl div { grid-template-columns: 1fr; gap: 2px; }
.operator-action-error dt { color: #865252; }
.operator-action-error dd { margin: 0; font-family: monospace; overflow-wrap: anywhere; }
.operator-action-error-slot:empty { display: none; }
.operator-action-readiness { margin: 14px 0; padding-left: 20px; color: #6f3535; }
.operator-action-readiness li + li { margin-top: 7px; }
.operator-action-availability { color: #6f3535; }

@media (max-width: 520px) {
    .operator-action-error dl div { grid-template-columns: 1fr; gap: 2px; }
}

.review-list {
    display: grid;
}

.artifact {
    background: rgba(255, 255, 255, .45);
    transition: background .18s ease, opacity .18s ease;
}

.artifact[open] {
    background: rgba(255, 255, 255, .88);
}

.artifact summary {
    gap: 18px;
    min-height: 76px;
}

.artifact summary strong {
    font-size: 15px;
    line-height: 1.35;
}

.artifact summary::before {
    content: "+";
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 15px;
}

.artifact[open] summary::before {
    content: "−";
    color: var(--purple);
    background: var(--studio-soft-purple);
    border-color: transparent;
}

.artifact summary > span:first-of-type {
    margin-right: auto;
}

.artifact[data-review-status="approved"],
.artifact[data-review-status="edited"] {
    background: rgba(239, 248, 243, .38);
}

.artifact[data-review-status="approved"] .artifact-form,
.artifact[data-review-status="edited"] .artifact-form,
.clip-card[data-review-status="approved"] form,
.render-card[data-review-status="approved"] form {
    display: none;
}

.button.button-compact.approve[disabled] {
    display: none;
}

.artifact[data-review-status="rejected"] {
    box-shadow: inset 3px 0 var(--red);
}

.artifact-form {
    padding: 26px 30px 30px;
    background: rgba(249, 248, 245, .82);
}

.artifact-approved-content {
    padding: 22px 30px 26px;
    border-top: 1px solid var(--line);
    background: rgba(239, 248, 243, .24);
}

.artifact-approved-body {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
}

.artifact-approved-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.review-state.status-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.status-pill.state-pending {
    color: #76580c;
    background: var(--studio-soft-gold);
    border-color: #f3df9f;
}

.status-pill.state-approved,
.status-pill.state-edited {
    color: #216a48;
    background: var(--studio-soft-green);
    border-color: #c9e8d8;
}

.status-pill.state-rejected {
    color: #9b3838;
    background: var(--studio-soft-red);
    border-color: #f0cece;
}

.review-actions {
    flex-wrap: wrap;
}

.evidence-reference {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-left: 6px;
    color: var(--muted);
    white-space: nowrap;
}

.evidence-timestamp {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    width: max-content;
    color: var(--purple);
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--purple) 45%, transparent);
    text-underline-offset: 3px;
}

.evidence-timestamp:hover {
    color: #3d26b6;
    text-decoration-color: currentColor;
}

.evidence-timestamp span {
    color: var(--muted);
    font-size: .82em;
    font-weight: 500;
    text-decoration: none;
}

.scripture-translation {
    margin: 12px 0 5px !important;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scripture-quotation {
    margin: 0 !important;
    padding: 0;
    border: 0;
    color: var(--ink);
    font: 500 20px/1.5 "Newsreader", serif;
}

.sermon-understanding-review {
    margin: 0 30px 24px;
    border-left: 3px solid var(--gold);
}

.scripture-context-note,
.scripture-warning {
    margin: 12px 0 !important;
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    color: #73580a;
    background: var(--studio-soft-gold);
    font-size: 12px;
    line-height: 1.45;
}

.scripture-context-note {
    color: var(--muted);
    background: rgba(240, 237, 255, .6);
    border-left-color: var(--purple);
}

.clip-card {
    display: block;
    padding: 0;
    background: rgba(255,255,255,.42);
    transition: background .18s ease;
}

.clip-card > summary,
.render-card > summary {
    list-style: none;
    cursor: pointer;
}

.clip-card > summary::-webkit-details-marker,
.render-card > summary::-webkit-details-marker {
    display: none;
}

.clip-card > summary {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) max-content 20px;
    gap: 20px;
    align-items: center;
    padding: 28px;
}

.clip-card > summary::after,
.render-card > summary::after {
    content: "+";
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 14px;
    line-height: 1;
}

.clip-card[open] > summary::after,
.render-card[open] > summary::after {
    content: "−";
    border-color: transparent;
    color: var(--purple);
    background: var(--studio-soft-purple);
}

.clip-card-summary,
.render-card-summary {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.clip-card-summary > strong {
    font: 600 23px/1.08 "Newsreader", serif;
}

.clip-card-body {
    padding: 0 28px 28px 110px;
}

.clip-card-body > p {
    margin-top: 0;
}

.clip-card-body form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.clip-card-body label {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

.clip-card-body input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d9d5cc;
    border-radius: 9px;
    outline: none;
    color: var(--ink);
    background: #fcfbf8;
}

.clip-card-body input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px #eeebff;
}

.clip-card-body form .review-actions {
    grid-column: 1 / -1;
}

.clip-card:hover {
    background: rgba(255,255,255,.78);
}

.clip-card[data-review-status="approved"] {
    background: rgba(239, 248, 243, .38);
}

.clip-card[data-review-status="rejected"] {
    box-shadow: inset 3px 0 var(--red);
}

.clip-approved-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.clip-score {
    border: 1px solid rgba(91, 63, 214, .1);
}

.clip-preview {
    width: min(100%, 620px);
    border-radius: 12px;
    background: #121116;
}

.render-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 28px;
}

.render-card {
    display: block;
    padding: 0;
    border: 1px solid var(--studio-line);
    border-radius: 15px;
    background: rgba(255,255,255,.7);
}

.render-card > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content 20px;
    gap: 14px;
    align-items: center;
    padding: 20px;
}

.render-card-summary > strong {
    font: 600 20px/1.1 "Newsreader", serif;
}

.render-card-summary > small {
    color: var(--muted);
    font-size: 12px;
}

.render-card-body {
    display: grid;
    grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 0 20px 20px;
    border-top: 1px solid var(--studio-line);
}

.render-card[data-review-status="approved"] {
    background: rgba(239, 248, 243, .58);
}

.render-card[data-review-status="rejected"] {
    border-color: #edcccc;
}

.render-approved-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.render-card video {
    width: 100%;
    max-width: 180px;
    justify-self: center;
}

.render-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.render-title h3 {
    margin: 0;
}

.side-card.sticky {
    top: 96px;
}

.nav-logout {
    margin: 0;
}

.nav-logout button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.nav-logout button:hover {
    color: var(--ink);
}

.auth-shell {
    min-height: calc(100vh - 260px);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(390px, .72fr);
    align-items: center;
    gap: clamp(48px, 9vw, 120px);
    padding: 46px 0;
}

.auth-shell.single {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
}

.auth-intro h1,
.auth-card h1 {
    margin: 14px 0;
    font: 600 clamp(48px, 6vw, 74px)/.98 "Newsreader", serif;
    letter-spacing: -.035em;
}

.auth-intro > p:last-child {
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
}

.auth-mark {
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(145deg, var(--purple), #38249c);
    box-shadow: 0 18px 35px rgba(91, 63, 214, .24);
    font: 600 30px "Newsreader", serif;
}

.auth-card {
    display: grid;
    gap: 20px;
    padding: 36px;
    border: 1px solid var(--studio-line);
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--studio-shadow);
    backdrop-filter: blur(18px);
}

.auth-card label:not(.check-row) {
    display: grid;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d9d5cc;
    border-radius: 10px;
    background: rgba(252,251,248,.9);
}

.auth-card .check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .detail-hero {
        margin: -35px -14px 30px;
        padding: 38px 28px 24px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-actions {
        justify-content: flex-start;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .processing-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .processing-card dl {
        grid-column: 1 / -1;
    }

    .failure-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .render-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .topbar {
        min-height: 72px;
        height: auto;
        gap: 12px;
    }

    .activity-overlay-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .activity-overlay-mark {
        justify-self: center;
    }

    .topbar .wordmark {
        gap: 8px;
    }

    .topbar .wordmark em,
    .topbar nav > a:not(.button) {
        display: none;
    }

    .topbar .studio-navigation > .church-directory-nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .topbar nav {
        gap: 9px;
    }

    .topbar nav .button {
        padding: 10px 12px;
    }

    .nav-logout button {
        padding: 8px 0;
        font-size: 12px;
    }

    .detail-hero {
        margin-right: -10px;
        margin-left: -10px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .pipeline {
        scrollbar-width: none;
    }

    .pipeline::-webkit-scrollbar {
        display: none;
    }

    .section-heading {
        display: grid;
        padding: 21px;
    }

    .section-actions {
        width: 100%;
        align-items: stretch;
        display: grid;
    }

    .section-actions form,
    .section-actions button {
        width: 100%;
    }

    .artifact summary,
    .artifact-form,
    .clip-card,
    .render-grid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .artifact summary {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) max-content;
    }

    .clip-card {
        padding: 0;
    }

    .clip-card > summary {
        grid-template-columns: 50px minmax(0, 1fr) max-content 20px;
        gap: 12px;
        padding: 20px;
    }

    .clip-score {
        width: 48px;
        height: 48px;
    }

    .clip-card-body {
        padding: 0 20px 20px;
    }

    .render-card > summary {
        padding: 18px 20px;
    }

    .render-card-body {
        grid-template-columns: 1fr;
        padding: 0 20px 20px;
    }

    .render-card video {
        max-width: 100%;
    }

    .review-actions .button {
        flex: 1;
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-card {
        padding: 26px 22px;
    }

    .auth-intro h1,
    .auth-card h1 {
        font-size: 46px;
    }

    .boundary-summary,
    .failure-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .processing-card {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }

    .processing-orbit {
        width: 66px;
        height: 66px;
    }

    .processing-orbit::before {
        inset: 12px;
    }

    .processing-orbit i:nth-child(1) { left: 28px; }

    .processing-card dl {
        grid-column: 1;
    }

    .failure-actions,
    .failure-actions form,
    .failure-actions button {
        width: 100%;
    }
}
