:root {
    --ink: #171512;
    --muted: #6d655b;
    --soft: #f7f3ed;
    --paper: #ffffff;
    --line: #e8ded2;
    --gold: #b2742a;
    --gold-soft: #f0d7aa;
    --green: #1b7f53;
    --red: #a93232;
    --blue: #315f93;
    --shadow: 0 24px 80px rgba(33, 25, 16, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f6f1ea;
    letter-spacing: 0;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}
h1,
h2,
h3,
.button,
.site-nav nav,
.auth-topbar nav,
.live-topbar nav,
.panel-card h2,
.panel-heading h1 {
    font-family: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand-lockup img {
    display: block;
    width: clamp(96px, 7vw, 118px);
    height: auto;
}

.site-nav,
.auth-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 86px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 216, 204, 0.9);
    box-shadow: 0 10px 34px rgba(37, 28, 18, 0.06);
    backdrop-filter: blur(18px);
}

.site-nav nav,
.auth-topbar nav,
.live-topbar nav {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-nav nav a,
.auth-topbar nav a {
    padding: 10px 13px;
    border-radius: 999px;
}

.site-nav nav a:hover,
.auth-topbar nav a:hover {
    background: #f5efe7;
    color: var(--ink);
}

.menu-state,
.menu-toggle {
    display: none;
}

.menu-toggle {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle span + span {
    margin-top: 0;
}

.nav-login {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 18px rgba(33, 25, 16, .06);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
    gap: clamp(26px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 86px);
    padding: clamp(50px, 7vw, 104px) clamp(18px, 5vw, 72px) clamp(42px, 5vw, 70px);
    background:
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 42%, rgba(247,243,237,.74) 66%, rgba(247,243,237,.88) 100%),
        url("/assets/hero-bg.png") center / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.small-label {
    margin: 0;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
}

.hero h1 {
    margin: 15px 0 22px;
    max-width: 880px;
    font-size: clamp(34px, 4.35vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

.lead {
    margin: 0;
    max-width: 660px;
    color: #4d473f;
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 850;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-dark {
    color: #fff;
    background: var(--ink);
    box-shadow: 0 16px 36px rgba(23, 21, 18, 0.24);
}

.button-light {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(209, 183, 148, .6);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), #111);
}

.hero-card h2 {
    margin: 20px 0 14px;
    font-size: clamp(24px, 2.35vw, 34px);
    line-height: 1.12;
}

.hero-card p,
.content-section p,
.conversion-section p,
.panel-card p,
.status-card p,
.auth-card p,
.live-stage p,
.side-panel p {
    color: var(--muted);
    line-height: 1.65;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #6a4219;
    background: #fff1d9;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.broadcast-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.broadcast-date span {
    color: var(--muted);
    font-weight: 750;
}

.broadcast-date strong {
    text-align: right;
    font-size: 18px;
}
.hero-video {
    position: relative;
    overflow: hidden;
    align-self: center;
    border: 1px solid rgba(209, 183, 148, .64);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

.hero-video::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), #171512);
}

.hero-video-frame {
    aspect-ratio: 16 / 9;
    background: #070707;
}

.hero-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-video-copy,
.hero-video-empty {
    padding: clamp(18px, 2.5vw, 26px);
}

.hero-video-copy span,
.hero-video-empty span {
    display: inline-flex;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-video-copy h2,
.hero-video-empty h2 {
    margin: 9px 0 8px;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.16;
}

.hero-video-copy p,
.hero-video-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.hero-video-empty {
    display: grid;
    min-height: 320px;
    place-items: center;
}

.lesson-date-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: clamp(28px, 4vw, 48px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 76px);
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(33, 25, 16, .08);
}

.lesson-date-band h2 {
    max-width: 820px;
    margin: 7px 0 0;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.14;
}

.lesson-date-band p:not(.eyebrow) {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.content-section,
.conversion-section {
    padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.section-heading {
    display: grid;
    grid-template-columns: .44fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 30px;
}

.section-heading h2,
.cta-band h2,
.panel-heading h1,
.live-stage h1,
.status-card h1,
.auth-card h1 {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

.auth-card h1,
.status-card h1 {
    font-size: clamp(30px, 4vw, 42px);
}

.panel-heading h1 {
    font-size: clamp(28px, 3.2vw, 40px);
}

.cta-band h2 {
    font-size: clamp(24px, 2.7vw, 34px);
}

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

.feature-grid article,
.side-panel,
.panel-card,
.auth-card,
.status-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 12px 34px rgba(33, 25, 16, 0.06);
}

.feature-grid article {
    min-height: 270px;
    padding: 26px;
}

.feature-grid span {
    color: var(--gold);
    font-weight: 900;
}

.feature-grid h3 {
    margin: 50px 0 10px;
    font-size: 23px;
    line-height: 1.1;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: clamp(22px, 3vw, 34px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 76px);
    padding: clamp(20px, 2.8vw, 32px);
    border: 1px solid rgba(232, 222, 210, .16);
    border-radius: 8px;
    color: #fff;
    background: #171512;
    box-shadow: 0 18px 46px rgba(23, 21, 18, .14);
}

.cta-band .eyebrow {
    color: var(--gold-soft);
    font-size: 11px;
}

.cta-band h2 {
    max-width: 720px;
    margin-top: 6px;
}

.cta-band p:not(.eyebrow) {
    max-width: 620px;
    margin: 8px 0 0;
    color: #d8cfc5;
    line-height: 1.45;
}

.cta-band .button-dark {
    flex: 0 0 auto;
    min-width: 150px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.auth-shell,
.shell-muted {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(178, 116, 42, .12), transparent 42%),
        var(--soft);
}

.auth-page,
.status-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 86px);
    padding: clamp(28px, 5vw, 56px) 24px;
}

.status-page.wide {
    align-items: start;
}

.auth-card,
.status-card {
    width: min(100%, 520px);
    padding: clamp(24px, 4vw, 38px);
}

.diagnostic-card {
    width: min(100%, 980px);
}

.error-detail {
    padding: 12px 14px;
    border: 1px solid #f0c2c2;
    border-radius: 8px;
    color: #842029;
    background: #fff3f3;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.auth-card.compact {
    width: min(100%, 440px);
}

.auth-card h1,
.status-card h1 {
    margin-top: 12px;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

label {
    display: grid;
    gap: 8px;
    color: #3e3933;
    font-size: 14px;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    outline: 0;
}

input {
    height: 48px;
    padding: 0 14px;
}

textarea {
    resize: vertical;
    padding: 13px 14px;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(178, 116, 42, .14);
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--muted);
}

.auth-switch a {
    color: var(--ink);
    font-weight: 900;
}

.flash-stack {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.flash {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 750;
    line-height: 1.45;
}

.flash.success {
    color: #0f5132;
    background: #dff4e8;
}

.flash.error {
    color: #842029;
    background: #f8d7da;
}

.status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.status-meta span {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    font-weight: 800;
}

.live-shell {
    min-height: 100vh;
    background: #100f0d;
    color: #f8f1e8;
}

.live-page {
    min-height: 100vh;
    padding: 18px;
}

.live-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 12px 24px;
}

.live-topbar .brand-lockup img {
    filter: brightness(0) invert(1);
}

.live-topbar nav a,
.panel-exit {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
}

.live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.live-stage,
.live-sidebar {
    min-width: 0;
}

.live-stage {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.live-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold-soft);
    font-weight: 900;
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e94f37;
    box-shadow: 0 0 0 7px rgba(233, 79, 55, .14);
}

.live-stage h1 {
    max-width: 980px;
    margin-top: 18px;
}

.live-stage p {
    max-width: 760px;
    color: #cfc4b6;
}

.video-frame,
.empty-video {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #050505;
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.empty-video {
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
}

.empty-video span {
    display: block;
    margin-top: 8px;
    color: #b5aa9c;
}

.recordings-page {
    color: #f8f1e8;
}

.recordings-hero {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.recordings-hero h1 {
    max-width: 760px;
    margin: 12px 0 12px;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.05;
}

.recordings-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: #cfc4b6;
    line-height: 1.6;
}

.recordings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.recording-card,
.recordings-empty {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.recording-frame {
    aspect-ratio: 16 / 9;
    background: #050505;
}

.recording-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.recording-copy {
    padding: 18px;
}

.recording-copy span {
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.recording-copy h2 {
    margin: 9px 0 8px;
    font-size: 22px;
    line-height: 1.15;
}

.recording-copy p {
    margin: 0;
    color: #cfc4b6;
    line-height: 1.55;
}

.recordings-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 24px;
    text-align: center;
}

.recordings-empty strong,
.recordings-empty span {
    display: block;
}

.recordings-empty span {
    margin-top: 8px;
    color: #cfc4b6;
}

.live-sidebar {
    display: grid;
    gap: 14px;
}

.side-panel {
    padding: 22px;
    color: var(--ink);
}

.side-panel strong {
    display: block;
    margin-top: 10px;
    font-size: 24px;
}

.side-panel.accent {
    color: #fff;
    background: #26221d;
    border-color: rgba(255,255,255,.12);
}

.side-panel.accent p {
    color: #d8cfc5;
}

.comments-panel {
    display: grid;
    gap: 14px;
}

.comment-form {
    display: grid;
    gap: 10px;
}

.comment-form label {
    color: var(--ink);
}

.comment-form textarea {
    min-height: 96px;
    max-height: 150px;
}

.comment-form .button {
    min-height: 42px;
}

.comment-form > span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.comment-list {
    display: grid;
    gap: 10px;
    max-height: 390px;
    overflow-y: auto;
    padding-right: 3px;
}

.comment-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbf7f1;
}

.comment-item div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.comment-item strong {
    display: inline;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
}

.comment-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-align: right;
}

.comment-item p,
.empty-comments {
    margin: 8px 0 0;
    color: #403a33;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.panel-shell {
    background: #f3efe8;
}

.panel-page {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.panel-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100vh;
    padding: 24px;
    color: #fff;
    background: #171512;
}

.panel-sidebar .brand-lockup img {
    width: 190px;
    filter: brightness(0) invert(1);
}

.panel-stat {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
}

.panel-stat span {
    display: block;
    color: #d7cbbd;
}

.panel-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 48px;
}

.panel-exit {
    margin-top: auto;
    text-align: center;
}

.panel-content {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: clamp(18px, 3vw, 34px);
}

.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.cache-form {
    flex: 0 0 auto;
}

.cache-form button {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(33, 25, 16, .06);
}
.panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(178, 116, 42, .34);
    border-radius: 8px;
    color: #6a4219;
    background: #fff7eb;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(33, 25, 16, .05);
}

.panel-card {
    padding: 22px;
}

.control-card {
    border-color: rgba(178, 116, 42, .36);
}

.inline-control-form {
    display: flex;
}

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

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

.switch-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.switch-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.switch-copy strong {
    font-size: 16px;
}

.switch-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.switch-track {
    position: relative;
    flex: 0 0 54px;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #d9d2c9;
    transition: background .18s ease;
}

.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,.22);
    transition: transform .18s ease;
}

.switch-button.is-on .switch-track {
    background: var(--green);
}

.switch-button.is-on .switch-thumb {
    transform: translateX(24px);
}

.panel-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.panel-card h2 {
    margin: 0;
    font-size: 24px;
}

.panel-card p {
    max-width: 620px;
    margin: 4px 0 0;
}

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

.broadcast-form .full {
    grid-column: 1 / -1;
}
.homepage-settings-card {
    border-color: rgba(178, 116, 42, .28);
}

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

.homepage-settings-form .full {
    grid-column: 1 / -1;
}

.homepage-settings-form .button {
    justify-self: start;
}

.checkline {
    display: flex;
    grid-column: span 2;
    align-items: center;
    gap: 10px;
}

.checkline input {
    width: 18px;
    height: 18px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

td strong,
td span {
    display: block;
}

td span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.pill {
    display: inline-flex;
    margin: 0;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--blue);
    background: #e7f0fb;
    font-size: 12px;
    font-weight: 900;
}

.pill.good {
    color: var(--green);
    background: #e1f5ec;
}

.pill.warn {
    color: #916113;
    background: #fff3cd;
}

.pill.bad {
    color: var(--red);
    background: #f8d7da;
}

.pill.muted {
    color: #6c757d;
    background: #edf0f2;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.row-actions form {
    display: inline-flex;
}

.row-actions button {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}

.row-actions button.danger {
    color: var(--red);
}

.empty-row {
    color: var(--muted);
}

@media (max-width: 1020px) {
    .hero,
    .live-grid,
    .section-heading,
    .panel-page {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

    .panel-sidebar {
        position: static;
        height: auto;
    }

    .panel-exit {
        margin-top: 0;
    }

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

@media (max-width: 720px) {
    .site-nav,
    .auth-topbar {
        align-items: center;
        flex-direction: row;
        min-height: 72px;
        padding: 14px 18px;
    }

    .site-nav .brand-lockup img,
    .auth-topbar .brand-lockup img {
        width: 128px;
    }

    .site-nav .brand-lockup,
    .auth-topbar .brand-lockup {
        max-width: calc(100% - 58px);
    }

    .live-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 14px;
        display: none;
        z-index: 30;
        width: min(260px, calc(100vw - 28px));
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 20px 50px rgba(33, 25, 16, .16);
    }

    .auth-topbar nav {
        gap: 6px;
        margin-left: auto;
        font-size: 13px;
    }

    .auth-topbar nav a {
        min-height: 38px;
        padding: 9px 10px;
    }

    .auth-topbar nav a:first-child {
        display: none;
    }

    .site-nav nav a {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: flex-start;
        padding: 11px 12px;
    }

    .menu-toggle {
        display: flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .menu-state:checked ~ nav {
        display: grid;
        gap: 4px;
    }

    .menu-state:checked + .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-state:checked + .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-state:checked + .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        gap: 28px;
        padding: 32px 20px 34px;
        background:
            linear-gradient(180deg, #fff 0%, #fbf8f3 54%, #f3ece3 100%);
    }

    .hero h1 {
        font-size: clamp(33px, 9.8vw, 46px);
        line-height: 1.03;
    }

    .lead {
        font-size: 16px;
        line-height: 1.58;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 30px;
    }

    .hero-card,
    .hero-video {
        width: 100%;
    }

    .hero-card {
        padding: 22px;
    }

    .hero-video-empty {
        min-height: 260px;
    }

    .recordings-hero {
        padding: 22px;
    }

    .recordings-hero h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .recording-copy {
        padding: 16px;
    }

    .feature-grid,
    .broadcast-form,
    .homepage-settings-form,
    .switch-grid,
    .recordings-grid {
        grid-template-columns: 1fr;
    }

    .cta-band,
    .lesson-date-band,
    .panel-card-head,
    .panel-heading,
    .broadcast-date {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-actions,
    .panel-view-link,
    .cache-form,
    .cache-form button,
    .inline-control-form,
    .inline-control-form .button,
    .switch-control,
    .switch-button {
        width: 100%;
    }

    .cta-band .button,
    .lesson-date-band .button {
        width: 100%;
    }

    .auth-page,
    .status-page {
        min-height: calc(100vh - 72px);
        place-items: start center;
        padding: 22px 20px 34px;
    }

    .live-page {
        padding: 12px;
    }

    .live-topbar nav {
        flex-wrap: wrap;
    }

    .checkline {
        grid-column: auto;
    }

    .panel-content {
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .site-nav .brand-lockup img,
    .auth-topbar .brand-lockup img {
        width: 122px;
    }

    .live-topbar .brand-lockup img,
    .panel-sidebar .brand-lockup img {
        width: 118px;
    }

    .auth-topbar {
        gap: 12px;
        padding-inline: 14px;
    }

    .auth-topbar nav {
        gap: 4px;
    }

    .auth-topbar nav a {
        padding-inline: 8px;
        font-size: 12px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-video-copy,
    .hero-video-empty {
        padding: 18px;
    }

    .panel-card,
    .auth-card,
    .status-card {
        padding: 18px;
    }
}


.hero-video-frame {
    aspect-ratio: 16 / 9;
    background: #070707;
}

.hero-video.is-vertical {
    justify-self: center;
    width: min(100%, 420px);
}

.hero-video.is-vertical .hero-video-frame {
    aspect-ratio: 9 / 16;
}

.homepage-settings-form .button {
    justify-self: start;
}

.compact-settings-form {
    align-items: end;
}

.compact-settings-form .button {
    align-self: end;
}

.broadcast-live-option {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid rgba(178, 116, 42, .24);
    border-radius: 8px;
    background: #fff8ed;
}

.broadcast-live-option span {
    display: grid;
    gap: 3px;
}

.broadcast-live-option small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}