:root {
    color-scheme: dark;

    --background: #070b13;
    --background-soft: #0a101b;

    --surface: #0d1421;
    --surface-soft: #111a2a;
    --surface-elevated: #172237;
    --surface-hover: #1b2940;

    --border: rgba(148, 163, 184, 0.14);
    --border-medium: rgba(148, 163, 184, 0.22);
    --border-strong: rgba(125, 211, 252, 0.34);

    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #7f8da3;

    --primary: #7dd3fc;
    --primary-strong: #38bdf8;
    --primary-soft: rgba(56, 189, 248, 0.1);

    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.1);

    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.1);

    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, 0.1);

    --purple: #c084fc;
    --purple-soft: rgba(192, 132, 252, 0.1);

    --radius-large: 22px;
    --radius-medium: 14px;
    --radius-small: 9px;

    --shadow:
        0 24px 80px rgba(0, 0, 0, 0.34);

    --shadow-soft:
        0 12px 35px rgba(0, 0, 0, 0.22);

    --content-width: 1500px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {
    min-height: 100vh;

    margin: 0;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(56, 189, 248, 0.09),
            transparent 28rem
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(192, 132, 252, 0.05),
            transparent 35rem
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;
}


button,
input,
textarea,
select,
a {
    font: inherit;
}


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


.hidden {
    display: none !important;
}


/* ==========================================================
   LOADING
   ========================================================== */


.loading-screen {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;

    color: var(--text-soft);
}


.loading-spinner {
    width: 42px;
    height: 42px;

    border: 3px solid rgba(125, 211, 252, 0.18);
    border-top-color: var(--primary);

    border-radius: 50%;

    animation: rotate 0.8s linear infinite;
}


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


.application {
    min-height: 100vh;
}


/* ==========================================================
   TOP BAR
   ========================================================== */


.topbar {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    min-height: 112px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    border-bottom: 1px solid var(--border);
}


.brand {
    display: flex;
    align-items: center;

    gap: 18px;
}


.brand-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border: 1px solid var(--border-strong);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, 0.17),
            rgba(15, 23, 42, 0.5)
        );

    font-size: 28px;

    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.08);
}


.brand h1,
.section-heading h2,
.section-heading h3,
.hero-copy h3 {
    margin: 0;
}


.brand h1 {
    font-size: clamp(25px, 3vw, 36px);
    letter-spacing: -0.035em;
}


.eyebrow {
    margin: 0 0 5px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.topbar-status {
    flex: 0 0 auto;

    text-align: right;
}


.topbar-status p {
    margin: 7px 0 0;

    color: var(--text-muted);

    font-size: 13px;
}


.status-pill {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 7px 11px;

    border: 1px solid rgba(74, 222, 128, 0.28);
    border-radius: 100px;

    background: rgba(74, 222, 128, 0.08);

    color: var(--success);

    font-size: 12px;
    font-weight: 800;
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 12px rgba(74, 222, 128, 0.8);
}


/* ==========================================================
   NAVIGATION
   ========================================================== */


.navigation {
    position: sticky;
    top: 0;

    z-index: 10;

    width: 100%;

    display: flex;
    justify-content: center;

    gap: 8px;

    padding: 11px 20px;

    overflow-x: auto;

    border-bottom: 1px solid var(--border);

    background: rgba(7, 11, 19, 0.87);

    backdrop-filter: blur(18px);
}


.navigation a {
    flex: 0 0 auto;

    padding: 8px 13px;

    border: 1px solid transparent;
    border-radius: 9px;

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 700;

    transition:
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}


.navigation a:hover,
.navigation a:focus-visible {
    border-color: var(--border);
    background: var(--surface-elevated);
    color: var(--text);

    outline: none;
}


/* ==========================================================
   MAIN LAYOUT
   ========================================================== */


.dashboard {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin: 0 auto;

    padding: 34px 0 60px;
}


.hero-card,
.panel,
.metric-card {
    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(17, 26, 42, 0.96),
            rgba(12, 19, 32, 0.96)
        );

    box-shadow: var(--shadow);
}


.panel {
    margin-top: 18px;

    padding: clamp(22px, 3vw, 32px);

    border-radius: var(--radius-large);
}


.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}


.section-heading h2 {
    font-size: 25px;
    letter-spacing: -0.025em;
}


.section-heading h3 {
    font-size: 20px;
    letter-spacing: -0.02em;
}


.count-badge,
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 100px;

    background: rgba(148, 163, 184, 0.06);

    color: var(--text-soft);

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}


.rank-badge {
    min-width: 44px;

    color: var(--primary);
}


.empty-state {
    margin: 22px 0 0;

    color: var(--text-muted);
}


.metric-label {
    margin: 0;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ==========================================================
   HERO
   ========================================================== */


.hero-card {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        280px;

    gap: 40px;

    padding: clamp(24px, 4vw, 45px);

    border-radius: var(--radius-large);
}


.hero-copy h3 {
    max-width: 920px;

    margin-top: 27px;

    font-size: clamp(28px, 4vw, 49px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}


.hero-hook {
    max-width: 950px;

    margin: 22px 0 0;

    color: var(--text-soft);

    font-size: clamp(17px, 2vw, 22px);
}


.hero-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 28px;
}


.hero-meta span {
    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 100px;

    background: rgba(148, 163, 184, 0.06);

    color: var(--text-soft);

    font-size: 12px;
    font-weight: 700;
}


.viral-score-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;

    border-left: 1px solid var(--border);
}


.score-ring {
    width: 170px;
    height: 170px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        conic-gradient(
            var(--success) var(--score-angle, 0deg),
            rgba(148, 163, 184, 0.12) 0
        );

    box-shadow:
        0 0 60px rgba(74, 222, 128, 0.12);
}


.score-ring-inner {
    width: 139px;
    height: 139px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--surface);
}


.score-ring strong {
    color: var(--success);

    font-size: 39px;
    letter-spacing: -0.06em;
}


.score-ring span {
    color: var(--text-muted);

    font-size: 12px;
}


/* ==========================================================
   PROGRESS
   ========================================================== */


.progress-track {
    width: min(100%, 190px);
    height: 6px;

    overflow: hidden;

    border-radius: 100px;

    background: rgba(148, 163, 184, 0.12);
}


.progress-value {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--success)
        );

    transition: width 600ms ease;
}


/* ==========================================================
   METRICS
   ========================================================== */


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

    gap: 16px;

    margin-top: 18px;
}


.metric-card {
    min-width: 0;
    min-height: 155px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 8px;

    padding: 23px;

    border-radius: var(--radius-medium);
}


.metric-card strong {
    overflow-wrap: anywhere;

    color: var(--text);

    font-size: clamp(20px, 2.5vw, 31px);
    letter-spacing: -0.035em;
}


.metric-card span {
    color: var(--text-muted);

    font-size: 13px;
}


/* ==========================================================
   TWO COLUMN GRID
   ========================================================== */


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

    gap: 18px;

    margin-top: 18px;
}


.two-column-grid .panel {
    min-width: 0;

    margin-top: 0;
}


/* ==========================================================
   HOOKS
   ========================================================== */


.hook-card {
    margin-top: 14px;
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: rgba(148, 163, 184, 0.04);
}


.hook-card-primary {
    border-color: rgba(125, 211, 252, 0.34);

    background: rgba(56, 189, 248, 0.07);
}


.hook-card p {
    margin: 0;

    color: var(--text-soft);
}


.hook-label {
    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
}


/* ==========================================================
   READINESS
   ========================================================== */


.readiness-list {
    margin-top: 14px;
}


.readiness-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}


.readiness-item:last-child {
    border-bottom: 0;
}


.readiness-item span {
    color: var(--text-soft);
}


.readiness-item strong {
    flex: 0 0 auto;

    font-size: 11px;
    letter-spacing: 0.08em;
}


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


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


.status-neutral {
    color: var(--text-muted) !important;
}


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


/* ==========================================================
   RANKING
   ========================================================== */


.ranking-list {
    display: grid;

    gap: 10px;

    margin-top: 20px;
}


.ranking-item {
    display: grid;
    grid-template-columns:
        50px
        minmax(0, 1fr)
        minmax(110px, 200px)
        70px;

    align-items: center;

    gap: 16px;

    padding: 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: rgba(148, 163, 184, 0.035);
}


.ranking-item:first-child {
    border-color: var(--border-strong);

    background: rgba(56, 189, 248, 0.065);
}


.ranking-number {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--surface-elevated);

    color: var(--primary);

    font-weight: 900;
}


.ranking-title {
    min-width: 0;
}


.ranking-title strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.ranking-title span {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color: var(--text-muted);

    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ranking-bar {
    height: 7px;

    overflow: hidden;

    border-radius: 100px;

    background: rgba(148, 163, 184, 0.12);
}


.ranking-bar-value {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--success)
        );
}


.ranking-score {
    color: var(--success);

    font-size: 17px;
    font-weight: 900;
    text-align: right;
}


/* ==========================================================
   SCRIPT STUDIO
   ========================================================== */


.script-studio-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-top: 22px;
}


.script-block {
    position: relative;

    min-width: 0;
    min-height: 165px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(23, 34, 55, 0.74),
            rgba(10, 16, 27, 0.82)
        );

    transition:
        border-color 160ms ease,
        transform 160ms ease,
        background 160ms ease;
}


.script-block:hover {
    transform: translateY(-2px);

    border-color: var(--border-strong);

    background:
        linear-gradient(
            145deg,
            rgba(26, 42, 67, 0.82),
            rgba(10, 16, 27, 0.9)
        );
}


.script-block::before {
    position: absolute;
    top: 0;
    left: 20px;

    width: 56px;
    height: 3px;

    border-radius: 0 0 4px 4px;

    content: "";

    background: var(--primary);
}


.script-block-cta {
    grid-column: 1 / -1;

    border-color: rgba(74, 222, 128, 0.27);

    background:
        linear-gradient(
            145deg,
            rgba(74, 222, 128, 0.08),
            rgba(10, 16, 27, 0.88)
        );
}


.script-block-cta::before {
    background: var(--success);
}


.script-block-label {
    display: block;

    margin-bottom: 15px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}


.script-block-cta .script-block-label {
    color: var(--success);
}


.script-block p {
    margin: 0;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}


.voiceover-summary {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 18px;
}


.voiceover-summary > div {
    min-width: 0;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: rgba(148, 163, 184, 0.035);
}


.voiceover-summary strong {
    display: block;

    margin-top: 7px;

    color: var(--text);

    font-size: 18px;
    overflow-wrap: anywhere;
}


/* ==========================================================
   STORYBOARD
   ========================================================== */


.storyboard-list {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(245px, 1fr));

    gap: 14px;

    margin-top: 20px;
}


.scene-card {
    position: relative;

    overflow: hidden;

    min-height: 295px;

    display: flex;
    flex-direction: column;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            160deg,
            rgba(23, 34, 55, 0.92),
            rgba(11, 17, 28, 0.96)
        );

    transition:
        border-color 160ms ease,
        transform 160ms ease;
}


.scene-card:hover {
    transform: translateY(-2px);

    border-color: var(--border-strong);
}


.scene-card::before {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    content: "";

    background:
        linear-gradient(
            90deg,
            var(--primary),
            transparent
        );
}


.scene-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.scene-number {
    color: var(--primary);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}


.scene-time {
    color: var(--text-muted);

    font-size: 12px;
}


.scene-card h3 {
    margin: 23px 0 10px;

    font-size: 20px;
}


.scene-card p {
    margin: 0;

    color: var(--text-soft);
}


.scene-caption {
    margin-top: auto !important;
    padding-top: 20px;

    color: var(--text) !important;

    font-size: 13px;
    font-weight: 800;
}


.scene-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 16px;
}


.scene-tags span {
    padding: 5px 8px;

    border: 1px solid var(--border);
    border-radius: 7px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 700;
}


/* ==========================================================
   ASSET PLANNER
   ========================================================== */


.asset-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 12px;

    margin-top: 20px;
}


.asset-card {
    position: relative;

    min-width: 0;
    min-height: 145px;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(148, 163, 184, 0.045),
            rgba(13, 20, 33, 0.8)
        );

    transition:
        transform 160ms ease,
        border-color 160ms ease;
}


.asset-card:hover {
    transform: translateY(-2px);

    border-color: var(--border-strong);
}


.asset-card::after {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    content: "";

    background: var(--warning);

    box-shadow:
        0 0 12px rgba(251, 191, 36, 0.4);
}


.asset-card strong,
.asset-card span {
    display: block;
}


.asset-card strong {
    max-width: calc(100% - 26px);

    color: var(--text);

    overflow-wrap: anywhere;
}


.asset-card span {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 12px;
    overflow-wrap: anywhere;
}


/* ==========================================================
   PUBLISHING STUDIO
   ========================================================== */


.publishing-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(290px, 0.55fr);

    gap: 18px;

    margin-top: 22px;
}


.publishing-main-card,
.thumbnail-card,
.analytics-detail-card {
    min-width: 0;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(23, 34, 55, 0.74),
            rgba(10, 16, 27, 0.84)
        );
}


.publishing-field {
    padding: 17px 0;

    border-bottom: 1px solid var(--border);
}


.publishing-field:first-child {
    padding-top: 0;
}


.publishing-field:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.publishing-field strong,
.publishing-field p {
    display: block;

    margin: 8px 0 0;

    color: var(--text-soft);

    overflow-wrap: anywhere;
}


.publishing-field strong {
    color: var(--text);

    font-size: 18px;
}


.hashtag-list {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 10px;
}


.hashtag-list span {
    padding: 6px 10px;

    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 100px;

    background: rgba(56, 189, 248, 0.08);

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}


.thumbnail-card {
    display: flex;
    flex-direction: column;
}


.thumbnail-preview {
    position: relative;

    min-height: 250px;

    display: flex;
    align-items: flex-end;

    margin-top: 15px;
    padding: 20px;

    overflow: hidden;

    border: 1px solid var(--border-strong);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            180deg,
            rgba(7, 11, 19, 0.1),
            rgba(7, 11, 19, 0.94)
        ),
        radial-gradient(
            circle at 50% 20%,
            rgba(56, 189, 248, 0.35),
            transparent 65%
        ),
        linear-gradient(
            145deg,
            #1b2a46,
            #080d17
        );

    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.06);
}


.thumbnail-preview::before {
    position: absolute;
    inset: 0;

    content: "";

    opacity: 0.18;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );

    background-size: 28px 28px;
}


.thumbnail-preview strong {
    position: relative;

    z-index: 1;

    color: var(--text);

    font-size: clamp(20px, 3vw, 32px);
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-shadow:
        0 4px 18px rgba(0, 0, 0, 0.7);

    overflow-wrap: anywhere;
}


.detail-list {
    margin: 18px 0 0;
}


.detail-list > div {
    padding: 13px 0;

    border-bottom: 1px solid var(--border);
}


.detail-list > div:last-child {
    border-bottom: 0;
}


.detail-list dt {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.detail-list dd {
    margin: 6px 0 0;

    color: var(--text-soft);

    overflow-wrap: anywhere;
}


.publishing-checklist {
    margin-top: 22px;
    padding-top: 24px;

    border-top: 1px solid var(--border);
}


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

    column-gap: 28px;

    margin-top: 14px;
}


.checklist-grid .readiness-item {
    min-width: 0;
}


.checklist-grid .readiness-item span {
    overflow-wrap: anywhere;
}


/* ==========================================================
   ANALYTICS STUDIO
   ========================================================== */


.analytics-metric-grid {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: 10px;

    margin-top: 22px;
}


.analytics-metric-card {
    min-width: 0;
    min-height: 125px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 7px;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(23, 34, 55, 0.76),
            rgba(10, 16, 27, 0.88)
        );
}


.analytics-metric-card span {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.analytics-metric-card strong {
    color: var(--text);

    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}


.analytics-detail-grid {
    margin-top: 18px;
}


.analytics-detail-card {
    min-height: 100%;
}


.growth-signals-list {
    margin-top: 15px;
}


.growth-signal {
    padding: 13px 0;

    border-bottom: 1px solid var(--border);
}


.growth-signal:last-child {
    border-bottom: 0;
}


.growth-signal .readiness-item {
    padding: 0 0 9px;

    border-bottom: 0;
}


.growth-signal .progress-track {
    width: 100%;
    max-width: none;
}


/* ==========================================================
   PIPELINE
   ========================================================== */


.pipeline-list {
    position: relative;

    margin: 15px 0 0;
    padding: 0;

    list-style: none;
}


.pipeline-list li {
    position: relative;

    padding: 12px 0 12px 34px;

    color: var(--text-soft);
}


.pipeline-list li::before {
    position: absolute;
    top: 16px;
    left: 4px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    content: "";

    background: var(--success);

    box-shadow:
        0 0 14px rgba(74, 222, 128, 0.5);
}


.pipeline-list li:not(:last-child)::after {
    position: absolute;
    top: 31px;
    bottom: -8px;
    left: 9px;

    width: 2px;

    content: "";

    background: rgba(74, 222, 128, 0.2);
}


/* ==========================================================
   ERRORS
   ========================================================== */


.error-panel {
    margin-top: 20px;
    padding: 25px;

    border: 1px solid rgba(251, 113, 133, 0.35);
    border-radius: var(--radius-large);

    background: rgba(251, 113, 133, 0.08);
}


.error-panel h2 {
    margin-top: 0;

    color: var(--danger);
}


.error-panel p {
    margin-bottom: 0;

    color: var(--text-soft);

    overflow-wrap: anywhere;
}


/* ==========================================================
   FOOTER
   ========================================================== */


.footer {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin: 0 auto;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 25px 0 38px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 12px;
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */


:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}


/* ==========================================================
   RESPONSIVE — LARGE TABLET
   ========================================================== */


@media (max-width: 1250px) {

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

}


/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */


@media (max-width: 1050px) {

    .hero-card {
        grid-template-columns: 1fr;
    }


    .viral-score-panel {
        padding-top: 30px;

        border-top: 1px solid var(--border);
        border-left: 0;
    }


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


    .ranking-item {
        grid-template-columns:
            46px
            minmax(0, 1fr)
            65px;
    }


    .ranking-bar {
        display: none;
    }


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


    .thumbnail-card {
        display: grid;
        grid-template-columns:
            minmax(250px, 0.8fr)
            minmax(0, 1.2fr);

        gap: 22px;
    }


    .thumbnail-card > .metric-label {
        grid-column: 1 / -1;
    }


    .thumbnail-preview {
        min-height: 230px;
        margin-top: 0;
    }


    .detail-list {
        margin-top: 0;
    }


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

}


/* ==========================================================
   RESPONSIVE — MOBILE LANDSCAPE
   ========================================================== */


@media (max-width: 760px) {

    .topbar {
        align-items: flex-start;

        padding: 25px 0;
    }


    .topbar-status {
        min-width: 100px;
    }


    .navigation {
        justify-content: flex-start;
    }


    .dashboard {
        width: min(
            calc(100% - 22px),
            var(--content-width)
        );

        padding-top: 18px;
    }


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


    .hero-card,
    .panel {
        border-radius: 16px;
    }


    .script-studio-grid {
        grid-template-columns: 1fr;
    }


    .script-block-cta {
        grid-column: auto;
    }


    .voiceover-summary {
        grid-template-columns: 1fr;
    }


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


    .thumbnail-card {
        display: flex;
    }


    .thumbnail-card > .metric-label {
        grid-column: auto;
    }


    .thumbnail-preview {
        margin-top: 15px;
    }


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


    .footer {
        width: calc(100% - 22px);

        flex-direction: column;
    }

}


/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */


@media (max-width: 520px) {

    .topbar {
        width: calc(100% - 22px);
    }


    .brand {
        min-width: 0;

        gap: 10px;
    }


    .brand > div:last-child {
        min-width: 0;
    }


    .brand-icon {
        width: 43px;
        height: 43px;

        font-size: 21px;
    }


    .brand .eyebrow {
        display: none;
    }


    .brand h1 {
        overflow: hidden;

        font-size: 22px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .topbar-status p {
        max-width: 125px;

        overflow: hidden;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .status-pill {
        padding: 6px 9px;
    }


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


    .hero-card,
    .panel,
    .metric-card {
        padding: 19px;
    }


    .hero-copy h3 {
        margin-top: 20px;

        font-size: 29px;
    }


    .ranking-item {
        grid-template-columns:
            40px
            minmax(0, 1fr);
    }


    .ranking-title strong,
    .ranking-title span {
        white-space: normal;
    }


    .ranking-score {
        grid-column: 2;

        text-align: left;
    }


    .storyboard-list,
    .asset-grid {
        grid-template-columns: 1fr;
    }


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


    .analytics-metric-card {
        min-height: 105px;
    }


    .section-heading {
        align-items: flex-start;
    }


    .count-badge,
    .rank-badge {
        max-width: 125px;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .readiness-item {
        align-items: flex-start;
    }

}
