:root {
    --ink: #162132;
    --muted: #687386;
    --line: #dfe5ec;
    --canvas: #f3f6f9;
    --panel: #ffffff;
    --navy: #0b182a;
    --navy-soft: #15263b;
    --primary: #2457d6;
    --primary-dark: #1945b6;
    --aqua: #23b6aa;
    --shadow: 0 18px 50px rgba(23, 35, 54, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.admin-body {
    background: var(--canvas);
    margin: 0;
    min-height: 100vh;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--navy);
    color: #dbe5f1;
    display: flex;
    flex: 0 0 264px;
    flex-direction: column;
    min-height: 100vh;
    padding: 28px 20px 22px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.sidebar-brand,
.login-brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 8px 24px;
}

.sidebar-brand strong,
.sidebar-brand small {
    display: block;
}

.sidebar-brand strong {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.sidebar-brand small {
    color: #8292a8;
    font-size: 0.71rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(145deg, #3d73f1, #1bb5aa);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(35, 182, 170, 0.2);
    color: #fff;
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 1.12rem;
    font-weight: 800;
    height: 40px;
    justify-content: center;
}

.sidebar-nav {
    flex: 1;
    padding-top: 22px;
}

.nav-section-label {
    color: #6f8097;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 18px 12px 8px;
    text-transform: uppercase;
}

.sidebar-link {
    align-items: center;
    border-radius: 11px;
    color: #aebccd;
    display: flex;
    font-size: 0.92rem;
    font-weight: 600;
    gap: 12px;
    margin-bottom: 5px;
    padding: 11px 12px;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
    background: var(--navy-soft);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-link.active {
    background: linear-gradient(100deg, rgba(44, 100, 225, 0.34), rgba(35, 182, 170, 0.12));
    color: #fff;
}

.nav-symbol {
    color: #6f8db7;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.sidebar-footer {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8292a8;
    display: flex;
    font-size: 0.75rem;
    gap: 8px;
    padding: 20px 8px 0;
}

.status-dot {
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
    height: 7px;
    width: 7px;
}

.admin-main {
    min-width: 0;
    width: 100%;
}

.admin-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    display: flex;
    height: 78px;
    justify-content: space-between;
    padding: 0 36px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-context span,
.topbar-context strong {
    display: block;
}

.topbar-context span {
    color: var(--muted);
    font-size: 0.69rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topbar-context strong {
    font-size: 1rem;
}

.topbar-account,
.account-link {
    align-items: center;
    display: flex;
}

.topbar-account {
    gap: 18px;
}

.account-link {
    gap: 10px;
    text-decoration: none;
}

.account-avatar,
.profile-monogram {
    align-items: center;
    background: #e5ecff;
    border: 1px solid #d4dffc;
    color: var(--primary);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.account-avatar {
    border-radius: 11px;
    height: 38px;
    width: 38px;
}

.account-copy strong,
.account-copy small {
    display: block;
}

.account-copy strong {
    font-size: 0.85rem;
}

.account-copy small {
    color: var(--muted);
    font-size: 0.71rem;
}

.mobile-menu-button,
.sidebar-backdrop {
    display: none;
}

.admin-content {
    margin: 0 auto;
    max-width: 1460px;
    padding: 38px 40px 60px;
}

.page-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.compact-heading {
    margin-bottom: 24px;
}

.page-heading h1 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    letter-spacing: -0.035em;
    margin: 3px 0 7px;
}

.page-heading p:not(.eyebrow) {
    color: var(--muted);
    margin: 0;
    max-width: 660px;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.snapshot-date {
    background: #e8edf4;
    border-radius: 999px;
    color: #566274;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 14px;
}

.metric-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(23, 35, 54, 0.04);
    min-height: 164px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.metric-card::after {
    background: var(--metric-color, var(--primary));
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
}

.metric-topline {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.metric-index {
    color: #99a5b4;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.metric-pulse {
    background: color-mix(in srgb, var(--metric-color, var(--primary)) 20%, white);
    border-radius: 50%;
    height: 32px;
    position: relative;
    width: 32px;
}

.metric-pulse::after {
    background: var(--metric-color, var(--primary));
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 12px;
    position: absolute;
    top: 12px;
    width: 8px;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    letter-spacing: -0.04em;
    margin-top: 15px;
}

.metric-card p {
    color: var(--muted);
    font-size: 0.86rem;
    margin: 1px 0 0;
}

.metric-blue { --metric-color: #315fdc; }
.metric-indigo { --metric-color: #7357d9; }
.metric-cyan { --metric-color: #159eb3; }
.metric-amber { --metric-color: #d79a19; }
.metric-orange { --metric-color: #df6d2e; }
.metric-green { --metric-color: #27a06d; }
.metric-rose { --metric-color: #d34f72; }

.foundation-panel {
    align-items: center;
    background: linear-gradient(120deg, #0d1b2e, #18314e);
    border-radius: 18px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    overflow: hidden;
    padding: 30px 32px;
    position: relative;
}

.foundation-panel::after {
    background: rgba(35, 182, 170, 0.16);
    border-radius: 50%;
    content: "";
    height: 230px;
    position: absolute;
    right: -70px;
    top: -100px;
    width: 230px;
}

.foundation-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.foundation-panel p:not(.eyebrow) {
    color: #aebed0;
    margin: 0;
    max-width: 630px;
}

.foundation-panel .eyebrow {
    color: #56d7cb;
}

.foundation-status {
    display: grid;
    flex: 0 0 270px;
    gap: 9px;
    margin-left: 30px;
    position: relative;
    z-index: 1;
}

.foundation-status span {
    align-items: center;
    color: #d5e0ec;
    display: flex;
    font-size: 0.78rem;
    gap: 8px;
}

.foundation-status i {
    background: #4fd1c5;
    border-radius: 50%;
    height: 6px;
    width: 6px;
}

.settings-grid {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

.settings-card,
.account-summary,
.security-guidance {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.settings-card-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.settings-card-header h2,
.account-summary h2,
.security-guidance h2 {
    font-size: 1.22rem;
    margin-bottom: 5px;
}

.settings-card-header p,
.account-summary > p:not(.eyebrow),
.security-guidance li {
    color: var(--muted);
    font-size: 0.88rem;
}

.form-label {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-control {
    border-color: #d6dde7;
    border-radius: 10px;
    min-height: 46px;
}

.form-control:focus {
    border-color: #7397ee;
    box-shadow: 0 0 0 0.2rem rgba(36, 87, 214, 0.12);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 10px;
    font-weight: 700;
    padding-left: 20px;
    padding-right: 20px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.account-summary,
.security-guidance {
    position: sticky;
    top: 102px;
}

.profile-monogram {
    border-radius: 18px;
    font-size: 1.8rem;
    height: 72px;
    margin-bottom: 24px;
    width: 72px;
}

.role-badge {
    background: #e9f0ff;
    border-radius: 999px;
    color: var(--primary);
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 7px 11px;
    text-transform: uppercase;
}

.security-guidance ul {
    margin: 20px 0 0;
    padding-left: 20px;
}

.security-guidance li {
    margin-bottom: 10px;
}

.login-body {
    background: #eff3f7;
    margin: 0;
    min-height: 100vh;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
}

.login-intro {
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(48px, 8vw, 120px);
    position: relative;
}

.login-intro::before,
.login-intro::after {
    border: 1px solid rgba(69, 208, 197, 0.16);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.login-intro::before {
    height: 560px;
    right: -310px;
    top: -210px;
    width: 560px;
}

.login-intro::after {
    bottom: -170px;
    height: 390px;
    left: -170px;
    width: 390px;
}

.login-brand {
    font-size: 0.85rem;
    font-weight: 800;
    left: clamp(48px, 8vw, 120px);
    letter-spacing: 0.04em;
    position: absolute;
    top: 44px;
}

.login-intro > .eyebrow {
    color: #56d7cb;
    position: relative;
    z-index: 1;
}

.login-intro h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    letter-spacing: -0.055em;
    line-height: 1.02;
    margin: 10px 0 24px;
    max-width: 820px;
    position: relative;
    z-index: 1;
}

.login-lead {
    color: #aebed0;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.7;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.login-security-note {
    align-items: center;
    bottom: 42px;
    color: #8fa2b8;
    display: flex;
    font-size: 0.76rem;
    gap: 10px;
    left: clamp(48px, 8vw, 120px);
    position: absolute;
}

.login-security-note span {
    color: #4fd1c5;
}

.login-panel {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.login-card {
    max-width: 440px;
    width: 100%;
}

.login-card h2 {
    font-size: 2rem;
    letter-spacing: -0.04em;
    margin: 4px 0 7px;
}

.login-card > .text-secondary {
    margin-bottom: 28px;
}

.login-card .form-control-lg {
    font-size: 1rem;
}

.error-body {
    align-items: center;
    background: var(--canvas);
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

.error-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 590px;
    padding: 46px;
    position: relative;
    width: 100%;
}

.error-code {
    color: #dce4ee;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
}

.error-card h1 {
    font-size: 1.75rem;
    letter-spacing: -0.035em;
}

.error-card > p:not(.eyebrow) {
    color: var(--muted);
}

.error-link {
    color: var(--primary);
    display: inline-block;
    font-weight: 800;
    margin-top: 12px;
    text-decoration: none;
}

.alert {
    border-radius: 11px;
    font-size: 0.88rem;
}

@media (max-width: 1199.98px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .login-intro h1 {
        font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        bottom: 0;
        left: 0;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform 180ms ease;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        background: rgba(4, 12, 23, 0.48);
        border: 0;
        bottom: 0;
        left: 0;
        opacity: 0;
        position: fixed;
        right: 0;
        top: 0;
        transition: opacity 180ms ease, visibility 180ms ease;
        visibility: hidden;
        z-index: 1030;
    }

    .sidebar-open .sidebar-backdrop {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .sidebar-open {
        overflow: hidden;
    }

    .mobile-menu-button {
        background: transparent;
        border: 0;
        display: grid;
        gap: 4px;
        padding: 8px;
    }

    .mobile-menu-button span {
        background: var(--ink);
        border-radius: 2px;
        display: block;
        height: 2px;
        width: 21px;
    }

    .admin-topbar {
        padding: 0 22px;
    }

    .topbar-context {
        margin-right: auto;
        padding-left: 15px;
    }

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

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .account-summary,
    .security-guidance {
        position: static;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-intro {
        min-height: 430px;
        padding: 120px 48px 70px;
    }

    .login-brand,
    .login-security-note {
        left: 48px;
    }

    .login-panel {
        min-height: 620px;
    }
}

@media (max-width: 575.98px) {
    .admin-topbar {
        height: 68px;
        padding: 0 14px;
    }

    .account-copy {
        display: none;
    }

    .topbar-account {
        gap: 5px;
    }

    .topbar-account .btn {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .admin-content {
        padding: 28px 16px 44px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 142px;
    }

    .foundation-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

    .foundation-status {
        flex-basis: auto;
        margin: 22px 0 0;
    }

    .settings-card,
    .account-summary,
    .security-guidance {
        padding: 22px;
    }

    .login-intro {
        min-height: 500px;
        padding: 120px 24px 82px;
    }

    .login-brand,
    .login-security-note {
        left: 24px;
    }

    .login-brand {
        top: 30px;
    }

    .login-security-note {
        bottom: 30px;
    }

    .login-panel {
        min-height: 580px;
        padding: 44px 22px;
    }

    .error-card {
        padding: 32px 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Content management */
.content-heading {
    align-items: center;
}

.filter-card,
.data-card,
.editor-card,
.detail-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(23, 35, 54, 0.045);
}

.filter-card {
    margin-bottom: 20px;
    padding: 20px;
}

.filter-grid,
.form-grid {
    display: grid;
    gap: 18px;
}

.filter-grid {
    align-items: end;
    grid-template-columns: minmax(210px, 1.5fr) repeat(4, minmax(145px, 0.8fr)) auto;
}

.filter-grid-compact {
    grid-template-columns: minmax(230px, 1.5fr) minmax(170px, 0.7fr) auto;
}

.filter-actions,
.heading-actions,
.table-actions,
.badge-row,
.stream-row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-select {
    border-color: #d6dde7;
    border-radius: 10px;
    min-height: 46px;
}

.form-select:focus {
    border-color: #7397ee;
    box-shadow: 0 0 0 0.2rem rgba(36, 87, 214, 0.12);
}

.data-card {
    overflow: visible;
}

.data-card-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 22px 24px;
}

.data-card-header h2,
.detail-card h2 {
    font-size: 1.08rem;
    margin: 0 0 3px;
}

.data-card-header p,
.privacy-note {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 0;
}

.privacy-note {
    max-width: 400px;
}

.admin-table {
    font-size: 0.82rem;
    min-width: 940px;
}

.channel-table {
    min-width: 1320px;
}

.admin-table > :not(caption) > * > * {
    border-bottom-color: #e9edf2;
    padding: 14px 16px;
}

.admin-table thead th {
    background: #f8fafc;
    color: #748094;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.entity-cell {
    align-items: center;
    display: flex;
    gap: 11px;
    min-width: 190px;
}

.entity-cell strong,
.entity-cell small,
.table-primary-copy,
.table-secondary-copy {
    display: block;
}

.entity-cell small,
.table-secondary-copy {
    color: var(--muted);
    font-size: 0.72rem;
    margin-top: 2px;
}

.entity-thumb,
.entity-placeholder {
    border-radius: 11px;
    flex: 0 0 44px;
    height: 44px;
    object-fit: cover;
    width: 44px;
}

.entity-thumb-wide {
    width: 62px;
}

.entity-placeholder {
    align-items: center;
    background: #e8eefc;
    color: var(--primary);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.safe-code {
    color: #3d4b5f;
    font-size: 0.74rem;
}

.status-badge {
    background: #edf1f6;
    border-radius: 999px;
    color: #566274;
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 6px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-active,
.status-approved {
    background: #e5f7ef;
    color: #13714c;
}

.status-inactive,
.status-suspended,
.status-rejected {
    background: #fdeced;
    color: #a33b45;
}

.status-draft,
.status-pending {
    background: #fff4d8;
    color: #8a6110;
}

.status-featured {
    background: #e9edff;
    color: #4d48b8;
}

.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    padding: 22px;
}

.page-link-custom {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #516074;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    height: 35px;
    justify-content: center;
    text-decoration: none;
    width: 35px;
}

.page-link-custom.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.empty-state {
    padding: 70px 24px;
    text-align: center;
}

.empty-state > span {
    color: #dce4ee;
    display: block;
    font-size: 3rem;
    font-weight: 900;
}

.empty-state h3 {
    font-size: 1.16rem;
    margin: 5px 0;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 18px;
}

.action-menu {
    position: relative;
}

.action-menu summary {
    list-style: none;
}

.action-menu summary::-webkit-details-marker {
    display: none;
}

.action-menu-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow);
    min-width: 175px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
}

.action-menu-panel button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #344054;
    font-size: 0.78rem;
    padding: 8px 9px;
    text-align: left;
    width: 100%;
}

.action-menu-panel button:hover,
.action-menu-panel button:focus-visible {
    background: #f0f4f9;
}

.action-menu-panel .danger-action {
    color: #b13a45;
}

.editor-card {
    overflow: hidden;
}

.form-section {
    border-bottom: 1px solid var(--line);
    padding: 28px;
}

.form-section-heading {
    align-items: flex-start;
    display: grid;
    gap: 13px;
    grid-template-columns: 38px 1fr;
    margin-bottom: 24px;
}

.form-section-heading > span {
    align-items: center;
    background: #e8eefc;
    border-radius: 10px;
    color: var(--primary);
    display: flex;
    font-size: 0.7rem;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    letter-spacing: 0.08em;
}

.form-section-heading h2 {
    font-size: 1.12rem;
    margin: 0 0 4px;
}

.form-section-heading p,
.form-help {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 0;
}

.stream-heading {
    grid-template-columns: 38px 1fr auto;
}

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

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

.full-column {
    grid-column: 1 / -1;
}

.switch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.switch-row {
    align-items: center;
    display: flex;
    min-height: 35px;
}

.current-image {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.72rem;
    gap: 9px;
    margin-top: 10px;
}

.current-image img {
    border: 1px solid var(--line);
    border-radius: 9px;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.current-image-wide img {
    width: 84px;
}

.form-actions-bar {
    align-items: center;
    background: #f8fafc;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 28px;
}

.sensitive-notice {
    background: #fff8e8;
    border: 1px solid #f1dfb4;
    border-radius: 11px;
    color: #72551a;
    font-size: 0.8rem;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.stream-list {
    display: grid;
    gap: 16px;
}

.stream-row {
    background: #f9fbfd;
    border: 1px solid #dce4ed;
    border-radius: 14px;
    padding: 20px;
}

.stream-row-header {
    align-items: center;
    border-bottom: 1px solid #e3e9f0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.stream-row-header strong,
.stream-row-header small {
    display: block;
}

.stream-row-header small {
    color: var(--muted);
    font-size: 0.72rem;
    margin-top: 2px;
}

.compact-grid {
    gap: 14px;
}

.sensitive-input {
    background: #fffdf8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.79rem;
}

.primary-choice {
    align-items: center;
    display: flex;
    gap: 8px;
    padding-top: 25px;
}

.primary-choice label {
    font-size: 0.8rem;
    font-weight: 700;
}

.advanced-stream-fields {
    border-top: 1px solid #e3e9f0;
    margin-top: 18px;
    padding-top: 16px;
}

.advanced-stream-fields summary {
    color: var(--primary);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
}

.advanced-stream-fields > p {
    color: var(--muted);
    font-size: 0.76rem;
    margin: 8px 0 15px;
}

.clear-sensitive-check {
    color: #a33b45;
    font-size: 0.8rem;
}

.detail-grid {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
}

.detail-card {
    padding: 25px;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
}

.channel-identity {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 22px;
}

.channel-identity > img,
.channel-identity > span {
    align-items: center;
    background: #e8eefc;
    border-radius: 15px;
    color: var(--primary);
    display: flex;
    flex: 0 0 68px;
    font-size: 1.5rem;
    font-weight: 900;
    height: 68px;
    justify-content: center;
    object-fit: cover;
    width: 68px;
}

.channel-identity strong,
.channel-identity small {
    display: block;
    margin-top: 7px;
}

.channel-identity small {
    color: var(--muted);
    font-size: 0.78rem;
}

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

.detail-list > div {
    border-bottom: 1px solid #edf0f4;
    padding: 13px 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-list dd {
    font-size: 0.86rem;
    margin: 3px 0 0;
}

.detail-description {
    margin-top: 24px;
}

.detail-description h2 {
    font-size: 1rem;
}

.detail-description p,
.rejection-note p {
    color: #526174;
    font-size: 0.86rem;
    line-height: 1.7;
}

.rejection-note {
    background: #fff1f1;
    border-radius: 10px;
    margin-top: 18px;
    padding: 14px;
}

.rejection-note p {
    margin: 5px 0 0;
}

.stream-summary-list,
.public-link-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.stream-summary {
    background: #f7f9fc;
    border: 1px solid #e3e8ef;
    border-radius: 11px;
    padding: 13px;
}

.stream-summary > div:first-child {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.stream-summary strong,
.stream-summary small {
    display: block;
}

.stream-summary small {
    color: var(--muted);
    font-size: 0.7rem;
    margin-top: 4px;
}

.stream-summary .badge-row {
    margin-top: 9px;
}

.public-link-list a {
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    color: var(--primary);
    display: flex;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 8px 0;
    text-decoration: none;
}

@media (max-width: 1199.98px) {
    .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-actions {
        align-self: end;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .filter-grid,
    .filter-grid-compact,
    .two-columns,
    .three-columns,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .data-card-header,
    .stream-row-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .form-section,
    .detail-card {
        padding: 21px;
    }

    .stream-heading {
        grid-template-columns: 38px 1fr;
    }

    .stream-heading > .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .form-actions-bar {
        justify-content: stretch;
    }

    .form-actions-bar .btn {
        flex: 1;
    }
}

/* App release distribution workspace. */
.app-release-page { margin:0 auto; max-width:1420px; }
.app-release-heading { align-items:flex-end; display:flex; gap:24px; justify-content:space-between; margin-bottom:26px; }
.app-release-heading > div { max-width:760px; }
.app-release-heading > div > span { color:var(--primary); display:block; font-size:.7rem; font-weight:800; letter-spacing:.11em; margin-bottom:8px; text-transform:uppercase; }
.app-release-heading h1 { font-size:clamp(2rem,3vw,2.7rem); letter-spacing:-.055em; margin:0 0 7px; }
.app-release-heading p { color:var(--muted); font-size:.88rem; line-height:1.65; margin:0; }
.app-release-stats { display:grid; gap:15px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:22px; }
.app-release-stats article { background:var(--panel); border:1px solid var(--line); border-radius:16px; box-shadow:0 10px 30px rgba(23,35,54,.05); min-width:0; padding:20px; }
.app-release-stats span, .app-release-stats small { color:var(--muted); display:block; }
.app-release-stats span { font-size:.7rem; font-weight:750; text-transform:uppercase; }
.app-release-stats strong { display:block; font-size:1.9rem; letter-spacing:-.045em; margin:8px 0 4px; }
.app-release-stats small { font-size:.68rem; }
.app-release-table-card, .app-release-form-card { background:var(--panel); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }
.app-release-table-title { align-items:center; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; padding:21px 24px; }
.app-release-table-title h2 { font-size:1.05rem; margin:0 0 3px; }
.app-release-table-title p { color:var(--muted); font-size:.72rem; margin:0; }
.app-release-table-title > a { color:var(--primary); font-size:.72rem; font-weight:750; text-decoration:none; }
.app-release-table { margin:0; min-width:850px; }
.app-release-table thead th { background:#f7f9fc; border-bottom:1px solid var(--line); color:#64748b; font-size:.65rem; letter-spacing:.06em; padding:13px 16px; text-transform:uppercase; }
.app-release-table td { border-color:#edf0f4; font-size:.78rem; padding:15px 16px; }
.app-release-product { align-items:center; display:flex; gap:11px; min-width:210px; }
.app-release-product img, .app-release-product > span { align-items:center; background:#e9f1ff; border-radius:11px; color:var(--primary); display:flex; flex:0 0 48px; font-size:.8rem; font-weight:900; height:48px; justify-content:center; object-fit:cover; width:48px; }
.app-release-product strong, .app-release-product small { display:block; }
.app-release-product small { color:var(--muted); font-size:.67rem; margin-top:3px; }
.app-release-status { border-radius:99px; display:inline-flex; font-size:.6rem; font-weight:850; padding:6px 9px; text-transform:uppercase; }
.app-release-status-active { background:#e7f8ef; color:#19734c; }
.app-release-status-draft { background:#fff5d9; color:#876314; }
.app-release-status-inactive { background:#eef1f5; color:#5e6b7c; }
.app-release-actions { align-items:center; display:flex; gap:6px; justify-content:flex-end; white-space:nowrap; }
.app-release-actions form { margin:0; }
.app-release-empty { padding:70px 24px; text-align:center; }
.app-release-empty > span { align-items:center; background:#e9f1ff; border-radius:50%; color:var(--primary); display:flex; font-size:1.4rem; height:56px; justify-content:center; margin:0 auto 15px; width:56px; }
.app-release-empty h3 { font-size:1.1rem; margin:0 0 7px; }
.app-release-empty p { color:var(--muted); font-size:.78rem; margin:0 auto 18px; max-width:520px; }
.app-release-form { display:grid; gap:18px; }
.app-release-form-card { padding:25px; }
.app-release-card-heading { align-items:flex-start; border-bottom:1px solid var(--line); display:flex; gap:13px; margin-bottom:22px; padding-bottom:18px; }
.app-release-card-heading > span { align-items:center; background:#eaf1ff; border-radius:10px; color:var(--primary); display:flex; flex:0 0 40px; font-size:.68rem; font-weight:850; height:40px; justify-content:center; }
.app-release-card-heading h2 { font-size:1rem; margin:1px 0 3px; }
.app-release-card-heading p { color:var(--muted); font-size:.72rem; margin:0; }
.app-release-form-grid { display:grid; gap:20px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.app-release-form-grid > label { display:flex; flex-direction:column; gap:7px; min-width:0; }
.app-release-form-grid label > span, .app-release-form-grid legend, .app-release-current-poster > span { color:#344154; font-size:.73rem; font-weight:750; }
.app-release-form-grid input:not([type="radio"]):not([type="checkbox"]), .app-release-form-grid select, .app-release-form-grid textarea { background:#fff; border:1px solid #d7dee8; border-radius:10px; color:var(--ink); font:inherit; font-size:.82rem; min-height:46px; padding:10px 12px; width:100%; }
.app-release-form-grid input[type="file"] { padding:8px 10px; }
.app-release-form-grid textarea { resize:vertical; }
.app-release-form-grid small { color:var(--muted); font-size:.65rem; line-height:1.45; }
.app-release-span-2 { grid-column:1/-1; }
.app-release-current-poster { display:flex; flex-direction:column; gap:7px; }
.app-release-current-poster img { aspect-ratio:16/9; border:1px solid var(--line); border-radius:11px; max-height:160px; object-fit:cover; width:285px; }
.app-release-form-grid fieldset { border:0; margin:0; padding:0; }
.app-release-delivery-options { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:8px; }
.app-release-delivery-options > label { align-items:flex-start; border:1px solid var(--line); border-radius:12px; cursor:pointer; display:flex; gap:10px; padding:14px; }
.app-release-delivery-options input { margin-top:4px; }
.app-release-delivery-options strong, .app-release-delivery-options small, .app-release-check strong, .app-release-check small { display:block; }
.app-release-delivery-options strong, .app-release-check strong { font-size:.76rem; }
.app-release-delivery-options small, .app-release-check small { margin-top:3px; }
.app-release-current-file { background:#effaf4; border:1px solid #ccebd9; border-radius:11px; color:#24694d; display:flex; flex-direction:column; font-size:.72rem; gap:3px; padding:12px 14px; }
.app-release-check { align-items:flex-start; border:1px solid var(--line); border-radius:12px; display:flex!important; flex-direction:row!important; gap:10px; padding:14px; }
.app-release-check input { margin-top:4px; }
.app-release-submit { display:flex; gap:9px; justify-content:flex-end; padding:4px 0 20px; }

@media (max-width:1100px) {
    .app-release-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:767.98px) {
    .app-release-heading { align-items:flex-start; flex-direction:column; }
    .app-release-heading > .btn { width:100%; }
    .app-release-stats, .app-release-form-grid, .app-release-delivery-options { grid-template-columns:1fr; }
    .app-release-span-2 { grid-column:1; }
    .app-release-form-card { padding:18px; }
    .app-release-submit .btn { flex:1; }
}

/* Phase 05 administration and owner portal modules. */
.admin-sidebar{overflow-y:auto;overscroll-behavior:contain}.sidebar-nav{padding-bottom:1rem}.sidebar-account{margin:auto 1rem 1rem;padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:14px;color:#fff}.sidebar-account strong,.sidebar-account small{display:block}.sidebar-account small{margin:.25rem 0 .75rem;color:#94a3b8;overflow-wrap:anywhere}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:1rem;margin-bottom:1.25rem}.stat-card{padding:1.1rem;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}.stat-card span{display:block;color:#64748b;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}.stat-card strong{display:block;margin-top:.35rem;font-size:1.75rem;color:#0f172a}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.clean-list{list-style:none;margin:0;padding:0}.clean-list li{padding:.75rem 0;border-bottom:1px solid #e2e8f0}.clean-list li:last-child{border-bottom:0}.clean-list strong,.clean-list small{display:block}.clean-list small{color:#64748b}.detail-list{display:grid;grid-template-columns:minmax(120px,.5fr) 1fr;gap:.7rem 1rem}.detail-list dt{color:#64748b}.detail-list dd{margin:0;overflow-wrap:anywhere}.permission-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin:1rem 0 1.25rem}.permission-groups fieldset,.permission-check{padding:1rem;border:1px solid #e2e8f0;border-radius:12px}.permission-check{display:flex;gap:.65rem;align-items:flex-start}.permission-check span,.permission-check small{display:block}.permission-check small{color:#64748b}.audit-json{max-height:320px;padding:1rem;overflow:auto;border-radius:12px;background:#0f172a;color:#e2e8f0;font-size:.8rem}.owner-filter-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.d-inline{display:inline!important}@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}}

/* Phase 06 branding and independently scrolling sidebar menu. */
.admin-sidebar{height:100vh;max-height:100vh;overflow:hidden}.sidebar-brand,.sidebar-footer,.sidebar-account{flex-shrink:0}.sidebar-nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:1rem;scrollbar-gutter:stable}.sidebar-nav::-webkit-scrollbar{width:7px}.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:99px}.sidebar-account{margin:1rem 1rem 0}.sidebar-logo-image{width:44px;height:44px;flex:0 0 44px;object-fit:contain;border-radius:10px;background:rgba(255,255,255,.08);padding:4px}.login-logo-image{width:52px;max-height:52px;object-fit:contain}.setting-logo-preview{display:block;max-width:180px;max-height:62px;object-fit:contain;margin:0 0 .65rem;padding:.35rem;border:1px solid #dfe5ec;border-radius:8px;background:#fff}
.owner-activation-guide ol{padding-left:1.25rem;margin:0}.owner-activation-guide li{margin:.45rem 0;color:#94a3b8}.owner-activation-guide li.ready{color:#15803d;font-weight:700}.owner-activation-guide li.ready::marker{content:'✓  '}

/* Owner verification, approval and activation control. */
.owner-access-card {
    background: linear-gradient(135deg, #ffffff, #f8faff);
    border: 1px solid #dce4ef;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(23, 35, 54, 0.07);
    margin-bottom: 22px;
    overflow: hidden;
    padding: 26px;
}

.owner-access-card.is-ready {
    background: linear-gradient(135deg, #ffffff, #f0fdf7);
    border-color: #bbecd3;
}

.owner-access-summary {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.owner-access-summary h2 {
    font-size: 1.45rem;
    letter-spacing: -0.025em;
    margin: 0 0 6px;
}

.owner-access-summary p:not(.eyebrow) {
    color: var(--muted);
    margin: 0;
    max-width: 720px;
}

.owner-quick-activate {
    box-shadow: 0 9px 22px rgba(25, 135, 84, 0.18);
    font-weight: 800;
    min-height: 46px;
    white-space: nowrap;
}

.owner-ready-badge {
    background: #dcfce7;
    border: 1px solid #a7e8c0;
    border-radius: 999px;
    color: #116638;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 9px 14px;
    white-space: nowrap;
}

.owner-access-steps {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-access-step {
    align-items: center;
    background: #fff;
    border: 1px solid #e1e7f0;
    border-radius: 15px;
    display: grid;
    gap: 11px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 116px;
    padding: 16px;
}

.owner-access-step.is-complete {
    background: #f5fcf8;
    border-color: #bde8d1;
}

.owner-step-number {
    align-items: center;
    background: #e9efff;
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 0.78rem;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.is-complete .owner-step-number {
    background: #d8f7e6;
    color: #157347;
}

.owner-step-copy strong,
.owner-step-copy small {
    display: block;
}

.owner-step-copy strong {
    font-size: 0.88rem;
}

.owner-step-copy small,
.owner-step-waiting {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
    margin-top: 3px;
}

.owner-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    grid-column: 1 / -1;
}

.owner-step-check {
    align-items: center;
    background: #198754;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    justify-self: end;
    width: 26px;
}

.owner-step-waiting,
.owner-access-step > form {
    grid-column: 1 / -1;
}

.owner-detail-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.58fr);
}

@media (max-width: 1050px) {
    .owner-access-steps {
        grid-template-columns: 1fr;
    }

    .owner-access-step {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .owner-access-card {
        border-radius: 16px;
        padding: 19px;
    }

    .owner-access-summary {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .owner-quick-activate,
    .owner-access-summary form {
        width: 100%;
    }

    .owner-heading .heading-actions,
    .owner-heading .heading-actions .btn {
        width: 100%;
    }

    .owner-heading .heading-actions .btn {
        flex: 1;
    }
}

/* Channel approval, preserved-source editing and direct-device preview. */
.channel-visible-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
    min-width: 330px;
}

.channel-visible-actions form {
    margin: 0;
}

.stream-source-editor {
    background: #f8faff;
    border: 1px solid #dce5f1;
    border-radius: 13px;
    padding: 15px;
}

.stream-source-label-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stream-source-label-row .form-label {
    margin: 0;
}

.stored-source-badge {
    background: #e5f7ef;
    border: 1px solid #bce8d2;
    border-radius: 999px;
    color: #13714c;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 5px 9px;
    text-transform: uppercase;
}

.stream-source-actions {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.stream-source-actions .btn {
    white-space: nowrap;
}

.stream-source-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preserved-source-note {
    background: #fff8e7;
    border: 1px solid #f0dfae;
    border-radius: 9px;
    color: #72551a;
    font-size: 0.73rem;
    line-height: 1.5;
    margin-top: 9px;
    padding: 9px 11px;
}

.channel-preview-shell {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.channel-player-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 19px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.channel-player-frame {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 40%, rgba(54, 92, 181, 0.2), transparent 35%),
        #070b14;
    min-height: 280px;
    overflow: hidden;
    position: relative;
}

.channel-preview-video {
    background: #05070d;
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.channel-player-overlay {
    align-items: center;
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.18), rgba(5, 8, 16, 0.82));
    bottom: 0;
    color: #dbe5f2;
    display: flex;
    flex-direction: column;
    gap: 11px;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
}

.channel-player-overlay[hidden] {
    display: none;
}

.channel-preview-start {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    font-weight: 850;
    min-height: 50px;
    padding-inline: 22px;
}

.channel-preview-start span {
    margin-right: 6px;
}

.channel-player-overlay small {
    color: #b7c4d5;
    max-width: 440px;
}

.channel-preview-status {
    background: #f8fafc;
    border-top: 1px solid var(--line);
    color: #526174;
    font-size: 0.8rem;
    min-height: 50px;
    padding: 15px 18px;
}

.channel-preview-status[data-state="connected"] {
    background: #effaf4;
    color: #13714c;
}

.channel-preview-status[data-state="error"] {
    background: #fff1f1;
    color: #a33b45;
}

.channel-preview-status[data-state="warning"] {
    background: #fff8e8;
    color: #7a5714;
}

.channel-preview-sidebar {
    display: grid;
    gap: 18px;
}

.channel-preview-info,
.channel-preview-policy {
    padding: 21px;
}

.channel-preview-identity {
    align-items: center;
    display: flex;
    gap: 13px;
    margin-bottom: 18px;
}

.channel-preview-identity img,
.channel-preview-identity > span {
    align-items: center;
    background: #e8eefc;
    border-radius: 13px;
    color: var(--primary);
    display: flex;
    flex: 0 0 54px;
    font-size: 1.25rem;
    font-weight: 900;
    height: 54px;
    justify-content: center;
    object-fit: cover;
    width: 54px;
}

.channel-preview-identity h2 {
    font-size: 1.05rem;
    margin: 0 0 3px;
}

.channel-preview-identity small {
    color: var(--muted);
}

.channel-preview-meta {
    margin: 0;
}

.channel-preview-meta > div {
    align-items: baseline;
    border-bottom: 1px solid #edf0f4;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 10px 0;
}

.channel-preview-meta > div:last-child {
    border-bottom: 0;
}

.channel-preview-meta dt {
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.channel-preview-meta dd {
    font-size: 0.79rem;
    margin: 0;
    text-align: right;
}

.channel-preview-policy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.preview-warning {
    background: #fff8e8;
    border: 1px solid #f0dfae;
    border-radius: 10px;
    color: #72551a;
    font-size: 0.73rem;
    line-height: 1.5;
    margin-top: 14px;
    padding: 11px;
}

.channel-preview-unavailable {
    align-items: center;
    color: #dbe5f2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.channel-preview-unavailable > span {
    align-items: center;
    border: 1px solid #526174;
    border-radius: 50%;
    display: inline-flex;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    margin-bottom: 12px;
    width: 46px;
}

.channel-preview-unavailable h2 {
    font-size: 1.2rem;
}

.channel-preview-unavailable p {
    color: #9cacbf;
}

@media (max-width: 1050px) {
    .channel-preview-shell {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767.98px) {
    .channel-visible-actions {
        justify-content: flex-start;
        min-width: 280px;
    }

    .stream-source-actions,
    .channel-preview-sidebar {
        grid-template-columns: 1fr;
    }

    .stream-source-actions .btn,
    .stream-source-buttons,
    .channel-preview-heading .heading-actions,
    .channel-preview-heading .heading-actions .btn {
        width: 100%;
    }

    .channel-player-frame {
        min-height: 210px;
    }
}
