:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --green: #2563eb;
    --green-dark: #1d4ed8;
    --blue: #0f172a;
    --ink: #070b15;
    --soft-green: #eff6ff;
    --soft-blue: #eef2ff;
    --danger: #b42318;
    --radius: 8px;
    --shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.055);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #fbfcff 0, var(--bg) 280px),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 20px;
    font-weight: 700;
    gap: 10px;
}

.brand-logo {
    display: block;
    height: 20px !important;
    max-width: 70px;
    object-fit: contain;
    width: auto !important;
}

.brand-mark {
    align-items: center;
    background: var(--ink);
    border-radius: 7px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.topnav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
}

.topnav a {
    color: #475569;
    border-radius: 999px;
    padding: 8px 11px;
    transition: background 0.15s ease, color 0.15s ease;
}

.topnav a:hover {
    background: var(--soft-green);
    color: var(--green-dark);
    text-decoration: none;
}

.mobile-tabbar {
    display: none !important;
}

.page {
    margin: 0 auto;
    max-width: 1220px;
    padding: 32px;
}

.page-heading,
.panel-header {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.panel-header.compact {
    gap: 10px;
}

.page-heading {
    margin-bottom: 22px;
}

h1,
h2 {
    line-height: 1.2;
    margin: 0;
}

h1 {
    font-size: 34px;
    letter-spacing: 0;
}

h2 {
    font-size: 18px;
}

p {
    color: var(--muted);
}

.panel,
.auth-panel,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel,
.auth-panel {
    padding: 22px;
}

.auth-panel {
    margin: 60px auto;
    max-width: 440px;
}

.auth-logo {
    display: block;
    height: auto;
    margin: 0 auto 20px;
    max-width: 145px;
    width: 50%;
}

.is-guest .topbar {
    display: none;
}

.is-guest .page {
    max-width: 1160px;
    min-height: 100vh;
    padding: 28px;
}

.login-shell {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 420px);
    min-height: calc(100vh - 56px);
}

.login-intro {
    display: grid;
    gap: 20px;
    max-width: 650px;
}

.login-logo {
    display: block;
    height: auto;
    max-width: 170px;
    width: 38%;
}

.product-kicker {
    align-items: center;
    color: var(--green-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-kicker::before {
    background: var(--green);
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 8px;
    width: 8px;
}

.login-intro h1 {
    color: var(--ink);
    font-size: 52px;
    letter-spacing: 0;
    line-height: 1.02;
    max-width: 640px;
}

.login-intro p {
    color: #475569;
    font-size: 18px;
    margin: 0;
    max-width: 560px;
}

.login-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 8px;
}

.login-points span {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 11px;
}

.login-card {
    border-color: var(--line);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    padding: 32px;
}

.login-card-heading {
    margin-bottom: 22px;
}

.login-card-heading h2 {
    color: var(--ink);
    font-size: 28px;
}

.login-card-heading p {
    margin: 8px 0 0;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-form input {
    background: var(--surface-soft);
    border-color: var(--line);
    font-size: 16px;
    min-height: 50px;
    padding: 13px 12px;
}

.auth-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.login-button {
    margin-top: 4px;
    min-height: 48px;
    width: 100%;
}

.stats-grid,
.channel-grid,
.detail-grid,
.text-grid,
.export-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-hero {
    align-items: flex-end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 18px 0 8px;
}

.dashboard-hero h1 {
    color: var(--ink);
    font-size: 42px;
    line-height: 1.06;
    max-width: 720px;
}

.dashboard-hero p {
    font-size: 17px;
    margin: 12px 0 0;
    max-width: 680px;
}

.module-hero {
    align-items: flex-end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 18px 0 8px;
}

.module-hero h1 {
    color: var(--ink);
    font-size: 42px;
    line-height: 1.06;
    max-width: 720px;
}

.module-hero p {
    font-size: 17px;
    margin: 12px 0 0;
    max-width: 650px;
}

.instagram-workspace {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    margin-bottom: 22px;
}

.instagram-create-form {
    display: grid;
    gap: 18px;
}

.module-side-panel {
    align-self: start;
}

.ai-analysis-box {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
    padding: 16px;
}

.ai-analysis-box h2 {
    margin-bottom: 6px;
}

.ai-analysis-box p {
    margin: 0;
}

.ai-analysis-box p + p {
    margin-top: 8px;
}

.pending-image-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pending-image-grid img {
    aspect-ratio: 1;
    border-radius: 7px;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.clean-steps {
    color: var(--muted);
    margin: 16px 0 0;
    padding-left: 20px;
}

.clean-steps li + li {
    margin-top: 10px;
}

.target-group-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.target-group-card.is-muted {
    opacity: 0.68;
}

.check-row {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 10px;
    padding: 12px;
}

.check-row input {
    width: auto;
}

.check-row span {
    color: var(--text);
    font-weight: 650;
}

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

.channel-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.channel-card.instagram {
    background:
        linear-gradient(135deg, rgba(255, 122, 0, 0.15), rgba(225, 48, 108, 0.13) 46%, rgba(88, 81, 219, 0.12)),
        #ffffff;
    border-color: rgba(225, 48, 108, 0.24);
}

.channel-card.linkedin {
    background:
        linear-gradient(135deg, rgba(10, 102, 194, 0.15), rgba(0, 119, 181, 0.09)),
        #ffffff;
    border-color: rgba(10, 102, 194, 0.24);
}

.channel-card::after {
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
}

.channel-card.instagram::after {
    background: linear-gradient(90deg, #ff7a00, #e1306c, #5851db);
}

.channel-card.linkedin::after {
    background: #0a66c2;
}

.channel-card:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.channel-card span {
    color: #c13584;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.channel-card.linkedin span {
    color: #0a66c2;
}

.channel-card h2 {
    color: var(--ink);
    font-size: 24px;
    margin-bottom: 10px;
    max-width: 420px;
}

.channel-card p {
    margin: 0;
    max-width: 470px;
}

.channel-card strong {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 24px;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.channel-card.instagram strong {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(225, 48, 108, 0.2);
    color: #c13584;
}

.channel-card.linkedin strong {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(10, 102, 194, 0.2);
    color: #0a66c2;
}

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

.detail-grid,
.export-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

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

.stat-card {
    color: var(--text);
    padding: 18px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.stat-card:hover {
    border-color: #bfdbfe;
    text-decoration: none;
    transform: translateY(-1px);
}

.admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.admin-sections {
    display: grid;
    gap: 30px;
}

.admin-section {
    display: grid;
    gap: 14px;
}

.admin-section-header {
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
}

.admin-section-header h2 {
    font-size: 20px;
}

.admin-section-header p {
    margin: 5px 0 0;
    max-width: 680px;
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    display: grid;
    gap: 8px;
    min-height: 124px;
    padding: 18px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.admin-card:hover {
    border-color: #bfdbfe;
    transform: translateY(-1px);
    text-decoration: none;
}

.admin-card span {
    color: var(--muted);
}

.media-studio-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr) minmax(280px, 0.75fr);
    margin-bottom: 22px;
}

.media-start-panel {
    margin-bottom: 22px;
}

.creator-template-panel {
    margin-bottom: 22px;
}

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

.creator-template-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    display: grid;
    gap: 8px;
    padding: 16px;
}

.creator-template-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.creator-template-card strong {
    font-size: 17px;
}

.creator-template-card p {
    margin: 0;
}

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

.creator-choice-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    display: grid;
    gap: 8px;
    min-height: 170px;
    padding: 16px;
}

.creator-choice-card:hover {
    border-color: #b8d4c3;
    text-decoration: none;
}

.creator-choice-card span {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.creator-choice-card strong {
    color: var(--ink);
    font-size: 18px;
}

.creator-choice-card p,
.creator-choice-card small {
    margin: 0;
}

.media-studio-card {
    align-content: start;
    display: grid;
    gap: 12px;
}

.media-studio-card.primary {
    min-height: 520px;
}

.media-studio-card h2 {
    margin-bottom: 0;
}

.media-studio-card p {
    margin: 0;
}

.media-studio-preview,
.media-studio-video {
    background: #101513;
    border-radius: var(--radius);
    display: block;
    max-height: 420px;
    object-fit: contain;
    width: 100%;
}

.media-studio-thumbs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.media-studio-thumbs a {
    aspect-ratio: 1 / 1;
    background: #eef2ff;
    border-radius: 7px;
    display: block;
    overflow: hidden;
    position: relative;
}

.media-studio-thumbs img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.media-studio-thumbs span {
    align-items: center;
    background: rgba(23, 33, 27, 0.78);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    left: 7px;
    position: absolute;
    top: 7px;
    width: 24px;
}

.carousel-workbench-card.primary {
    grid-column: span 2;
}

.carousel-workbench-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.carousel-workbench-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.carousel-workbench-item {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: grab;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.carousel-workbench-item:hover {
    border-color: #b8d4c3;
}

.carousel-workbench-item.is-dragging {
    box-shadow: 0 18px 36px rgba(23, 33, 27, 0.18);
    cursor: grabbing;
    opacity: 0.72;
    transform: scale(0.98);
}

.carousel-workbench-media {
    background: #101513;
    border-radius: 7px;
    color: #fff;
    display: block;
    overflow: hidden;
    position: relative;
}

.carousel-workbench-media:hover {
    text-decoration: none;
}

.carousel-workbench-media img {
    aspect-ratio: 4 / 5;
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.carousel-workbench-media span,
.carousel-workbench-media em {
    position: absolute;
    z-index: 1;
}

.carousel-workbench-media span {
    align-items: center;
    background: rgba(23, 33, 27, 0.78);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    left: 8px;
    top: 8px;
    width: 26px;
}

.carousel-workbench-media em {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    bottom: 8px;
    color: var(--green-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    left: 8px;
    padding: 5px 8px;
}

.carousel-workbench-content {
    display: grid;
    gap: 8px;
}

.carousel-workbench-content small {
    color: var(--muted);
    font-size: 12px;
}

.carousel-workbench-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.carousel-workbench-actions form {
    margin: 0;
}

.carousel-sort-status {
    color: var(--muted);
    font-size: 13px;
    min-height: 20px;
}

.carousel-sort-status[data-state="saved"] {
    color: var(--green-dark);
}

.carousel-sort-status[data-state="error"] {
    color: var(--danger);
}

.empty-state.compact {
    align-items: center;
    background: var(--surface-soft);
    border: 1px dashed #cbd8d0;
    border-radius: var(--radius);
    color: var(--muted);
    display: flex;
    min-height: 120px;
    padding: 18px;
}

.render-status-panel {
    margin-bottom: 22px;
}

.render-job-list {
    display: grid;
    gap: 10px;
}

.render-job-row {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
}

.render-job-row small,
.render-job-row p {
    color: var(--muted);
    display: block;
    margin: 2px 0 0;
}

.autosave-status {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 14px;
    min-height: 38px;
    padding: 8px 14px;
    width: fit-content;
}

.autosave-status[data-state="saved"] {
    background: #dbeafe;
    color: #1d4ed8;
}

.autosave-status[data-state="error"] {
    background: #fff0ec;
    color: #b42318;
}

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

.assistant-guide,
.workflow-choice {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

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

.assistant-guide-card,
.workflow-card {
    color: var(--text);
    display: grid;
    gap: 8px;
}

.workflow-card.instagram {
    background:
        linear-gradient(135deg, rgba(255, 122, 0, 0.13), rgba(225, 48, 108, 0.11) 48%, rgba(88, 81, 219, 0.1)),
        #ffffff;
    border-color: rgba(225, 48, 108, 0.22);
}

.workflow-card.linkedin {
    background:
        linear-gradient(135deg, rgba(10, 102, 194, 0.14), rgba(0, 119, 181, 0.08)),
        #ffffff;
    border-color: rgba(10, 102, 194, 0.22);
}

.assistant-guide-card span,
.workflow-card span {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.workflow-card.instagram span {
    color: #c13584;
}

.workflow-card.linkedin span {
    color: #0a66c2;
}

.assistant-guide-card h2,
.workflow-card h2 {
    font-size: 18px;
    margin: 0;
}

.assistant-guide-card p,
.workflow-card p {
    margin: 0;
}

.workflow-card:hover {
    text-decoration: none;
}

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

.media-type-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    display: grid;
    gap: 7px;
    padding: 15px;
    position: relative;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.media-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.media-type-card span {
    color: #c13584;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.media-type-card strong {
    color: var(--ink);
    font-size: 17px;
}

.media-type-card small {
    color: var(--muted);
    line-height: 1.45;
}

.media-type-card.is-selected {
    background:
        linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(225, 48, 108, 0.1) 48%, rgba(88, 81, 219, 0.08)),
        #ffffff;
    border-color: rgba(225, 48, 108, 0.35);
    box-shadow: 0 12px 30px rgba(35, 28, 54, 0.08);
}

.media-type-card:hover {
    transform: translateY(-1px);
}

.assistant-card {
    display: grid;
    gap: 12px;
}

.assistant-card p {
    margin: 0;
}

.suggestion-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

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

.suggestion-card {
    display: grid;
    gap: 12px;
}

.suggestion-card .panel-header {
    align-items: center;
}

.copy-box {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    line-height: 1.55;
    min-height: 132px;
    padding: 14px;
    resize: vertical;
    width: 100%;
}

.stat-card span {
    color: var(--muted);
    display: block;
}

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

.quick-filters,
.filters,
.button-row,
.actions,
.form-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.inline-template-save {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    gap: 8px;
    margin-left: auto;
}

.inline-template-save input {
    min-width: 210px;
}

.quick-filters {
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.dashboard-latest .quick-filters {
    margin-bottom: 0;
}

.quick-filters a {
    background: var(--soft-green);
    border-radius: 999px;
    color: var(--green-dark);
    padding: 8px 12px;
}

.wrap {
    flex-wrap: wrap;
}

.button {
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    padding: 10px 14px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.dashboard-hero .button {
    min-height: 44px;
}

.button:hover {
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-1px);
    text-decoration: none;
}

.button.secondary {
    background: var(--soft-green);
    border-color: #bfdbfe;
    color: var(--green-dark);
}

.button.ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.button.small {
    font-size: 14px;
    padding: 7px 10px;
}

.actions form {
    margin: 0;
}

.link-button {
    background: transparent;
    border: 0;
    color: var(--green-dark);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: none;
}

.link-button:hover {
    text-decoration: underline;
}

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

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

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

label {
    color: var(--text);
    display: grid;
    font-weight: 600;
    gap: 7px;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    font: inherit;
    padding: 10px 11px;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

input[type="file"] {
    background: var(--surface-soft);
}

textarea {
    resize: vertical;
}

.eyebrow {
    color: var(--green-dark);
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.create-post-form {
    display: grid;
    gap: 16px;
}

.form-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 18px;
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 18px;
}

.settings-divider {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-top: 8px;
    padding: 18px;
}

.settings-divider h2 {
    font-size: 18px;
    font-weight: 650;
    margin-bottom: 6px;
}

.settings-divider p {
    margin: 0;
}

.settings-form {
    align-items: start;
}

.settings-form > label {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.settings-form > label.full {
    background: #fff;
}

.settings-form input[type="color"] {
    min-height: 46px;
    padding: 5px;
}

.settings-form small {
    color: var(--muted);
    font-weight: 500;
}

.settings-ai-status {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.02)),
        var(--surface);
    align-items: center;
}

.section-intro {
    display: flex;
    gap: 12px;
}

.section-intro > span {
    align-items: center;
    background: var(--soft-green);
    border-radius: 999px;
    color: var(--green-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.section-intro h2 {
    font-size: 17px;
    font-weight: 650;
    margin-bottom: 5px;
}

.section-intro p {
    font-size: 14px;
    margin: 0;
}

.compact-form {
    gap: 14px;
}

.field {
    font-weight: 400;
}

.field-label {
    color: #34463a;
    font-size: 13px;
    font-weight: 500;
}

.compact-form input,
.compact-form select,
.compact-form textarea,
.upload-tile input {
    background: var(--surface-soft);
    border-color: #d8e3dd;
}

.compact-form textarea {
    min-height: 92px;
}

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

.upload-tile {
    background: var(--surface-soft);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    display: grid;
    font-weight: 400;
    gap: 9px;
    padding: 16px;
}

.upload-tile small {
    line-height: 1.35;
}

.create-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.filters select {
    min-width: 190px;
    width: auto;
}

.post-filters input[type="search"] {
    flex: 1 1 280px;
}

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

.post-list {
    display: grid;
    gap: 12px;
}

.post-card {
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 18px;
    grid-template-columns: 132px minmax(0, 1fr);
    padding: 12px;
}

.post-thumb {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: #eef2ff;
    border-radius: 7px;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.post-thumb:hover {
    text-decoration: none;
}

.post-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.post-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.post-title-row {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.post-title-row h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.post-title-row p,
.post-meta-line,
.post-signals {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.post-meta-line,
.post-signals,
.post-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-meta-line span {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
}

.post-footer {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.post-signals span {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 4px 8px;
}

.post-signals span.done {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.post-signals span.pending {
    background: #e9f3ff;
    border-color: #bfdcff;
    color: #175cd3;
}

.post-actions {
    justify-content: flex-end;
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

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

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 9px;
}

.status-idea {
    background: #eef2ff;
    color: #3538cd;
}

.status-draft {
    background: #fff7e6;
    color: #946200;
}

.status-review {
    background: #e9f3ff;
    color: #175cd3;
}

.status-approved {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-published {
    background: #eef2ff;
    color: #3730a3;
}

.status-archived {
    background: #eff1f3;
    color: #475467;
}

.flash {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    color: #1d4ed8;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.flash.error {
    background: #fff0ed;
    border-color: #ffb4a8;
    color: var(--danger);
}

.meta-list {
    display: grid;
    gap: 10px;
    grid-template-columns: 160px minmax(0, 1fr);
}

.meta-list dt {
    color: var(--muted);
    font-weight: 700;
}

.meta-list dd {
    margin: 0;
}

.meta-list.compact {
    grid-template-columns: 90px minmax(0, 1fr);
    margin-top: 16px;
}

.preview-image {
    border-radius: var(--radius);
    display: block;
    height: auto;
    max-height: 620px;
    max-width: 100%;
    object-fit: contain;
}

.image-edit-panel {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
    margin-bottom: 18px;
}

.image-edit-preview {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.image-edit-preview .preview-image {
    max-height: 280px;
}

.logo-preview {
    background: #17211b;
    padding: 18px;
}

.video-preview {
    background: #101513;
    border-radius: var(--radius);
    display: block;
    max-height: 520px;
    max-width: 100%;
    width: 100%;
}

.video-preview-panel {
    align-self: start;
}

.video-preview-stage {
    background: #101513;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.video-preview-stage .video-preview {
    border-radius: 0;
}

.video-preview-overlays {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.video-preview-headline,
.video-preview-layer,
.video-preview-caption,
.video-preview-logo {
    opacity: 0;
    transition: opacity 140ms ease;
}

.video-preview-headline.is-visible,
.video-preview-layer.is-visible,
.video-preview-caption.is-visible,
.video-preview-logo.is-visible {
    opacity: 1;
}

.video-preview-headline {
    align-items: center;
    background: rgba(0, 0, 0, 0.42);
    bottom: 0;
    color: #fff;
    display: flex;
    font-size: clamp(18px, 3vw, 34px);
    font-weight: 800;
    left: 0;
    line-height: 1.08;
    min-height: 20%;
    padding: 18px 24px;
    position: absolute;
    right: 0;
    text-wrap: balance;
}

.video-preview-layer {
    border-radius: 8px;
    color: var(--preview-layer-color, #fff);
    font-size: clamp(18px, var(--preview-layer-size, 32px), 44px);
    font-weight: 700;
    line-height: 1.08;
    max-width: 86%;
    padding: 14px 18px;
    position: absolute;
    text-align: center;
    text-wrap: balance;
}

.video-preview-layer.is-bold {
    font-weight: 900;
}

.video-preview-layer.bg-dark {
    background: rgba(0, 0, 0, 0.52);
}

.video-preview-layer.bg-light {
    background: rgba(255, 255, 255, 0.78);
    color: #0d1713;
}

.video-preview-layer.bg-brand {
    background: rgba(37, 99, 235, 0.88);
    color: #fff;
}

.video-preview-layer.bg-none {
    background: transparent;
    padding-inline: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.video-preview-layer.position-top-left {
    left: 6%;
    text-align: left;
    top: 6%;
}

.video-preview-layer.position-top-center {
    left: 50%;
    top: 6%;
    transform: translateX(-50%);
}

.video-preview-layer.position-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.video-preview-layer.position-bottom-left {
    bottom: 10%;
    left: 6%;
    text-align: left;
}

.video-preview-layer.position-bottom-center {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.video-preview-caption {
    bottom: 7%;
    color: #fff;
    font-size: clamp(16px, 2.4vw, 28px);
    font-weight: 800;
    left: 50%;
    line-height: 1.12;
    max-width: 84%;
    padding: 10px 14px;
    position: absolute;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    transform: translateX(-50%);
}

.video-preview-caption.style-boxed {
    background: rgba(0, 0, 0, 0.62);
    border-radius: 8px;
    text-shadow: none;
}

.video-preview-caption.style-yellow_highlight {
    background: rgba(255, 222, 87, 0.9);
    border-radius: 8px;
    color: #121512;
    text-shadow: none;
}

.video-preview-logo {
    bottom: 6%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.38));
    max-width: 18%;
    min-width: 84px;
    position: absolute;
    right: 6%;
    width: 140px;
}

.video-clip-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.video-time-readout {
    color: var(--muted);
    margin-right: auto;
}

.table-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    display: block;
    height: 56px;
    object-fit: cover;
    width: 90px;
}

.thumb-placeholder {
    align-items: center;
    background: #eef2ff;
    border-radius: 6px;
    color: var(--muted);
    display: inline-flex;
    height: 56px;
    justify-content: center;
    width: 90px;
}

.mini-badges,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.inline-form,
.user-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form input {
    min-width: 180px;
    width: auto;
}

.mini-badges .badge {
    font-size: 12px;
    padding: 4px 7px;
}

.check-list,
.idea-list {
    margin: 14px 0 0;
    padding-left: 20px;
}

.check-list li {
    color: var(--muted);
    margin-bottom: 6px;
}

.check-list li.done {
    color: var(--green-dark);
    font-weight: 700;
}

.readiness-panel {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: 150px minmax(0, 1fr);
    margin-bottom: 22px;
}

.post-flow-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.28fr) minmax(150px, 0.28fr);
    margin-bottom: 22px;
}

.instagram-flow-grid {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(145px, 0.24fr));
}

.flow-card {
    display: grid;
    gap: 10px;
}

.flow-card-main {
    align-content: start;
}

.flow-card.compact {
    align-content: center;
}

.flow-card.compact strong {
    color: var(--ink);
    display: block;
    font-size: 30px;
    line-height: 1;
}

.flow-card.compact p {
    margin: 0;
}

.flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.readiness-mini {
    background: #f7fbf8;
}

.instagram-detail-grid .media-panel {
    order: -1;
}

.media-panel .panel-header {
    margin-bottom: 14px;
}

.post-meta-panel {
    align-content: start;
}

.post-meta-panel .meta-list {
    margin-bottom: 18px;
}

.caption-actions {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.readiness-score {
    align-items: center;
    background: var(--soft-green);
    border-radius: var(--radius);
    color: var(--green-dark);
    display: grid;
    justify-items: center;
    min-height: 120px;
    padding: 18px;
    text-align: center;
}

.readiness-score strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.readiness-score span {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
}

.readiness-content {
    min-width: 0;
}

.readiness-list {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.readiness-list.compact {
    grid-template-columns: 1fr;
}

.readiness-list li {
    align-items: flex-start;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 10px;
    padding: 10px;
}

.readiness-list li > span {
    align-items: center;
    background: #fff7e6;
    border-radius: 999px;
    color: #946200;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.readiness-list li.done > span {
    background: #dbeafe;
    color: #1d4ed8;
}

.readiness-list strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.readiness-list small {
    display: block;
    margin-top: 3px;
}

.platform-drafts-panel {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.linkedin-assistant-panel {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.linkedin-assistant-panel h2 {
    margin-bottom: 6px;
}

.linkedin-assistant-panel p {
    margin: 0;
}

.platform-drafts-panel h2 {
    margin-bottom: 6px;
}

.platform-drafts-panel p {
    margin: 0;
}

.template-preview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.editor-control-section {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 14px;
    padding: 16px;
}

.editor-control-section h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.editor-control-section p {
    margin: 0;
}

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

.checkbox-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.checkbox-row input[type="checkbox"] {
    height: 18px;
    width: 18px;
}

.help-text {
    color: var(--muted);
    font-size: 14px;
}

.compact-controls {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr) minmax(220px, 0.5fr);
}

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

.text-layer-list {
    display: grid;
    gap: 12px;
}

.overlay-object-list {
    display: grid;
    gap: 12px;
}

.overlay-object-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 10px;
    padding: 12px;
}

.overlay-object-controls {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(120px, 1fr) repeat(7, minmax(78px, 0.5fr));
}

.overlay-object-controls input[type="range"] {
    accent-color: var(--green);
}

.text-layer-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    padding: 14px;
}

.text-layer-card-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.video-timeline {
    background: #101513;
    border-radius: var(--radius);
    color: #fff;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.video-timeline-ruler {
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    opacity: 0.78;
}

.video-timeline-track {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    height: 34px;
    overflow: hidden;
    position: relative;
}

.video-timeline-segment {
    align-items: center;
    background: #2563eb;
    border-radius: 999px;
    bottom: 5px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-width: 42px;
    overflow: hidden;
    padding: 0 10px;
    position: absolute;
    top: 5px;
    white-space: nowrap;
}

.video-text-layer-list {
    display: grid;
    gap: 12px;
}

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

.video-clips-panel {
    margin-bottom: 22px;
}

.video-music-panel {
    margin-bottom: 22px;
}

.video-captions-panel {
    margin-bottom: 22px;
}

.caption-editor-form {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
}

.caption-editor-form textarea {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    min-height: 150px;
}

.inline-upload-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 16px;
}

.clip-timeline {
    display: grid;
    gap: 10px;
}

.clip-card {
    align-items: start;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    padding: 10px;
}

.clip-card video {
    aspect-ratio: 16 / 9;
    background: #101513;
    border-radius: 7px;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.clip-card small {
    color: var(--muted);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clip-meta {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.clip-settings {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(140px, 1fr) repeat(2, minmax(82px, 96px)) repeat(3, minmax(96px, 126px)) auto auto;
    max-width: none;
}

.clip-trim-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clip-trim-tools span {
    color: var(--muted);
    font-size: 12px;
}

.video-flow-summary {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 14px;
}

.video-flow-summary strong {
    color: var(--ink);
}

.video-next-step {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    padding: 16px;
}

.video-next-step h2 {
    font-size: 20px;
    margin: 0;
}

.video-next-step .clean-steps {
    margin-top: 4px;
}

.video-main-actions {
    justify-content: flex-start;
}

.advanced-render {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.advanced-render summary {
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
}

.advanced-render .button {
    margin-top: 8px;
}

.clip-settings label {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    gap: 4px;
}

.clip-settings input[type="range"] {
    accent-color: var(--green);
    width: 100%;
}

.clip-settings input[type="number"],
.clip-settings select {
    padding: 8px 9px;
}

.clip-settings span {
    color: var(--muted);
    font-size: 12px;
    min-width: 42px;
}

.clip-split-form {
    align-items: end;
    display: flex;
    gap: 8px;
}

.clip-split-form label {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    gap: 4px;
    max-width: 96px;
}

.clip-split-form input {
    padding: 8px 9px;
}

.text-button {
    background: transparent;
    border: 0;
    color: var(--green-dark);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    padding: 0;
}

.text-button:hover {
    text-decoration: underline;
}

.music-current {
    display: grid;
    gap: 14px;
}

.music-current audio {
    display: block;
    margin-top: 8px;
    max-width: 520px;
    width: 100%;
}

.music-settings {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    max-width: 560px;
}

.music-settings label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    gap: 5px;
}

.music-settings input[type="range"] {
    accent-color: var(--green);
}

.music-settings span {
    color: var(--muted);
    font-size: 13px;
    min-width: 44px;
}

.cover-upload-form {
    align-items: end;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 16px;
    padding-top: 16px;
}

.danger-button {
    background: #fff5f3;
    border-color: rgba(180, 35, 24, 0.28);
    color: #b42318;
}

.danger-button:hover {
    background: #ffe7e2;
    border-color: rgba(180, 35, 24, 0.42);
    color: #8f1d14;
}

.clip-actions {
    display: flex;
    gap: 6px;
}

.icon-button {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.icon-button.danger {
    color: #b42318;
}

.template-preview {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 8px;
    padding: 10px;
    text-align: left;
}

.template-card {
    background: linear-gradient(135deg, #b8c8bb, #32463c);
    border-radius: 6px;
    display: block;
    height: 78px;
    overflow: hidden;
    position: relative;
}

.template-card .template-logo {
    bottom: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    right: 8px;
}

.template-card.headline .template-title,
.template-card.tips .template-title {
    background: rgba(0, 0, 0, 0.55);
    bottom: 10px;
    height: 24px;
    left: 10px;
    position: absolute;
    right: 10px;
}

.template-card.brandbar::after {
    background: var(--green);
    bottom: 0;
    content: "";
    height: 22px;
    left: 0;
    position: absolute;
    right: 0;
}

.template-card.before_after::before {
    background: rgba(255, 255, 255, 0.8);
    bottom: 0;
    content: "";
    left: 50%;
    position: absolute;
    top: 0;
    width: 2px;
}

.media-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    margin-top: 16px;
}

.carousel-summary {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 16px;
}

.carousel-summary.is-primary {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.carousel-summary-head {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.carousel-summary h3 {
    font-size: 16px;
    font-weight: 650;
    margin: 0 0 4px;
}

.carousel-summary-head p {
    margin: 0;
}

.carousel-slide-panel {
    margin-bottom: 22px;
}

.carousel-preview {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.carousel-preview-main {
    align-items: center;
    background: #101513;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    overflow: hidden;
}

.carousel-preview-main img {
    aspect-ratio: 16 / 10;
    display: block;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    width: 100%;
}

.carousel-nav {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.16);
}

.carousel-preview-meta {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.carousel-preview-meta strong {
    color: var(--text);
}

.carousel-preview-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.carousel-preview-thumbs button {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    flex: 0 0 76px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.carousel-preview-thumbs button.active {
    border-color: var(--green);
}

.carousel-preview-thumbs img {
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    width: 100%;
}

.carousel-preview-thumbs span {
    align-items: center;
    background: rgba(23, 33, 27, 0.78);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    left: 6px;
    position: absolute;
    top: 6px;
    width: 22px;
}

.carousel-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    margin-top: 12px;
}

.carousel-item {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.carousel-grid a {
    aspect-ratio: 1 / 1;
    background: #eef2ff;
    border-radius: 7px;
    display: block;
    overflow: hidden;
    position: relative;
}

.carousel-grid img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.carousel-grid span {
    align-items: center;
    background: rgba(23, 33, 27, 0.78);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    left: 7px;
    position: absolute;
    top: 7px;
    width: 24px;
}

.carousel-grid em {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    bottom: 7px;
    color: var(--green-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    left: 7px;
    padding: 4px 8px;
    position: absolute;
}

.carousel-delete {
    background: transparent;
    border: 0;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.carousel-delete:hover {
    text-decoration: underline;
}

.carousel-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 7px;
}

.carousel-mini-action {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--green-dark);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 7px;
}

.carousel-mini-action:hover {
    border-color: #b8d4c3;
}

.carousel-editor-nav {
    margin-bottom: 18px;
}

.carousel-editor-nav .panel-header {
    margin-bottom: 14px;
}

.carousel-editor-nav .panel-header p {
    margin: 6px 0 0;
}

.carousel-editor-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.carousel-editor-thumb {
    background: var(--surface-soft);
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 8px;
}

.carousel-editor-thumb:hover {
    border-color: #bfdbfe;
    text-decoration: none;
}

.carousel-editor-thumb.active {
    background: #eef8f2;
    border-color: var(--green);
}

.carousel-editor-thumb img {
    aspect-ratio: 4 / 5;
    background: #101513;
    border-radius: 6px;
    display: block;
    object-fit: contain;
    width: 100%;
}

.carousel-editor-thumb span {
    font-size: 13px;
    font-weight: 800;
}

.carousel-editor-thumb em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.text-editor-panel {
    margin-bottom: 22px;
}

.text-editor-panel .panel-header {
    margin-bottom: 16px;
}

.text-editor-panel .panel-header p {
    margin: 6px 0 0;
}

.text-edit-form textarea {
    min-height: 90px;
}

.text-edit-form .link-button {
    justify-self: start;
}

.media-item {
    color: var(--text);
    display: grid;
    gap: 8px;
    min-width: 0;
}

.media-item img,
.media-item video {
    aspect-ratio: 1 / 1;
    background: #101513;
    border-radius: var(--radius);
    object-fit: cover;
    width: 100%;
}

.media-item span {
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.calendar-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.calendar-day {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 150px;
    padding: 10px;
}

.calendar-day.drag-over {
    border-color: var(--green);
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.calendar-post {
    background: #eff6ff;
    border-left: 4px solid var(--green);
    border-radius: 6px;
    color: var(--text);
    display: block;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px;
}

.calendar-post.selected {
    background: #dbeafe;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
}

.calendar-post span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

small {
    color: var(--muted);
    font-weight: 400;
}

pre {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    min-height: 120px;
    overflow-x: auto;
    padding: 14px;
    white-space: pre-wrap;
}

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

.export-subheader {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
}

.export-file-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.export-file-group {
    color: var(--text);
    display: grid;
    gap: 2px;
    margin-top: 6px;
}

.export-file-row {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 13px 14px;
    text-decoration: none;
}

.export-file-row:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.export-file-row span {
    display: grid;
    gap: 2px;
}

.export-file-row em {
    color: var(--green);
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.export-file-row.is-missing {
    background: #fff8ed;
    border-color: #f6d59b;
}

.export-file-row.is-missing em {
    color: #9a5b00;
}

.export-planner-form {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
}

.caption-version-list {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
}

.caption-version-list h3 {
    font-size: 18px;
    margin: 0;
}

.caption-version-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.caption-version-card summary {
    cursor: pointer;
}

.caption-version-card summary span {
    display: inline-grid;
    gap: 2px;
}

.caption-version-card pre {
    margin: 12px 0;
    max-height: 220px;
    min-height: 0;
    overflow: auto;
}

.status-form {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.crop-editor-form {
    align-items: start;
    grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr);
}

.crop-editor-form > input[type="hidden"] {
    display: none;
}

.crop-editor-form > .autosave-status {
    grid-column: 1 / -1;
}

.crop-editor-form > .full:not(.crop-preview-block):not(.autosave-status),
.crop-editor-form > label:not(.crop-zoom-control),
.crop-editor-form > section,
.crop-editor-form > .form-actions {
    grid-column: 2;
}

.crop-preview-block {
    align-self: start;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    grid-column: 1;
    grid-row: 2 / span 30;
    padding: 16px;
    position: sticky;
    top: 86px;
    z-index: 2;
}

.crop-preview-block h2 {
    margin-bottom: 0;
}

.crop-preview-block p {
    margin: 0;
}

.crop-zoom-control {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    gap: 6px;
}

.crop-zoom-control input[type="range"] {
    accent-color: var(--green);
}

.crop-stage {
    background: #101513;
    border-radius: var(--radius);
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

.crop-preview-block .crop-stage {
    justify-self: stretch;
    width: 100%;
}

.crop-stage img {
    display: block;
    height: auto;
    max-height: 70vh;
    max-width: 100%;
    user-select: none;
}

.crop-preview-block .crop-stage img {
    max-height: calc(100vh - 270px);
    width: 100%;
}

.crop-mask {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.crop-box {
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
    cursor: move;
    left: 0;
    min-height: 56px;
    min-width: 56px;
    position: absolute;
    top: 0;
}

.crop-box::before,
.crop-box::after,
.crop-box span::before,
.crop-box span::after {
    background: rgba(255, 255, 255, 0.9);
    content: "";
    position: absolute;
}

.crop-box::before,
.crop-box::after {
    height: 1px;
    left: 0;
    right: 0;
}

.crop-box::before {
    top: 33.333%;
}

.crop-box::after {
    top: 66.666%;
}

.crop-box span::before,
.crop-box span::after {
    bottom: 0;
    top: 0;
    width: 1px;
}

.crop-box span::before {
    left: 33.333%;
}

.crop-box span::after {
    left: 66.666%;
}

.safe-zone-overlay {
    border: 2px dashed rgba(255, 255, 255, 0.75);
    bottom: 7%;
    display: none;
    left: 7%;
    pointer-events: none;
    position: absolute;
    right: 7%;
    top: 7%;
    z-index: 2;
}

.crop-live-overlays {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

.crop-live-objects {
    inset: 0;
    pointer-events: auto;
    position: absolute;
}

.crop-live-object {
    --object-color: #fff;
    --object-size: 48px;
    border-color: var(--object-color);
    color: var(--object-color);
    cursor: grab;
    height: var(--object-size);
    left: 50%;
    opacity: var(--object-opacity, 0.88);
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--object-size);
}

.crop-live-object:active {
    cursor: grabbing;
}

.crop-live-object.is-locked {
    cursor: not-allowed;
    outline: 2px dashed rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

.crop-live-object.type-circle {
    border: max(3px, calc(var(--object-size) * 0.06)) solid var(--object-color);
    border-radius: 999px;
}

.crop-live-object.type-box {
    border: max(3px, calc(var(--object-size) * 0.06)) solid var(--object-color);
    border-radius: 6px;
}

.crop-live-object.type-marker {
    background: var(--object-color);
    border-radius: 999px;
    height: max(8px, calc(var(--object-size) * 0.18));
}

.crop-live-object.type-arrow::before,
.crop-live-object.type-arrow::after {
    background: var(--object-color);
    content: "";
    display: block;
    height: max(4px, calc(var(--object-size) * 0.07));
    position: absolute;
    right: 0;
    top: 50%;
    transform-origin: right center;
    width: 100%;
}

.crop-live-object.type-arrow::before {
    transform: translateY(-50%) rotate(-28deg);
}

.crop-live-object.type-arrow::after {
    transform: translateY(-50%) rotate(28deg);
    width: 42%;
}

.crop-live-text {
    border-radius: 7px;
    color: var(--crop-live-text-color, #fff);
    display: none;
    font-size: clamp(12px, var(--crop-live-text-size, 24px), 34px);
    font-weight: 700;
    line-height: 1.08;
    max-width: 84%;
    padding: 10px 12px;
    position: absolute;
    text-align: center;
    text-wrap: balance;
}

.crop-live-text.is-visible {
    display: block;
}

.crop-live-text.is-bold {
    font-weight: 900;
}

.crop-live-text.bg-dark {
    background: rgba(0, 0, 0, 0.52);
}

.crop-live-text.bg-light {
    background: rgba(255, 255, 255, 0.78);
    color: #0d1713;
}

.crop-live-text.bg-brand {
    background: rgba(37, 99, 235, 0.88);
    color: #fff;
}

.crop-live-text.bg-none {
    background: transparent;
    padding-inline: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.crop-live-text.position-top-left {
    left: 6%;
    text-align: left;
    top: 6%;
}

.crop-live-text.position-top-center {
    left: 50%;
    top: 6%;
    transform: translateX(-50%);
}

.crop-live-text.position-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.crop-live-text.position-bottom-left {
    bottom: 8%;
    left: 6%;
    text-align: left;
}

.crop-live-text.position-bottom-center {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.crop-live-logo {
    display: none;
    filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.42));
    height: auto;
    max-height: 42px;
    max-width: 78px;
    object-fit: contain;
    min-width: 42px;
    position: absolute;
    width: min(14%, 78px);
}

.crop-live-logo.is-visible {
    display: block;
}

.crop-live-logo.logo-bottom_right {
    bottom: 6%;
    right: 6%;
}

.crop-live-logo.logo-bottom_left {
    bottom: 6%;
    left: 6%;
}

.crop-live-logo.logo-top_right {
    right: 6%;
    top: 6%;
}

.crop-live-logo.logo-top_left {
    left: 6%;
    top: 6%;
}

.crop-box[data-safe-zone="feed"] .safe-zone-overlay {
    display: block;
}

.crop-box[data-safe-zone="story"] .safe-zone-overlay,
.crop-box[data-safe-zone="reel"] .safe-zone-overlay {
    bottom: 18%;
    display: block;
    top: 12%;
}

.crop-box[data-safe-zone="profile_grid"] .safe-zone-overlay {
    aspect-ratio: 1 / 1;
    bottom: auto;
    display: block;
    height: min(72%, 72vw);
    left: 14%;
    right: 14%;
    top: 14%;
}

@media (max-width: 860px) {
    body {
        padding-bottom: 78px;
    }

    body.is-guest {
        padding-bottom: 0;
    }

    .is-guest .page {
        padding: 20px;
    }

    .login-shell {
        gap: 24px;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-intro {
        gap: 12px;
        max-width: none;
    }

    .login-logo {
        max-width: 150px;
        width: 52%;
    }

    .login-intro h1 {
        font-size: 36px;
    }

    .login-intro p {
        font-size: 16px;
    }

    .topbar,
    .page-heading,
    .dashboard-hero,
    .module-hero,
    .linkedin-assistant-panel,
    .platform-drafts-panel,
    .carousel-summary-head,
    .panel-header,
    .status-form {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        gap: 12px;
        min-height: 60px;
        padding: 12px 16px;
        position: static;
    }

    .brand {
        font-size: 18px;
    }

    .brand-logo {
        height: 18px !important;
        max-width: 64px;
    }

    .topnav {
        display: none;
    }

    .page {
        padding: 16px;
        width: 100%;
    }

    h1 {
        font-size: 25px;
    }

    .dashboard-hero h1 {
        font-size: 32px;
    }

    .module-hero h1 {
        font-size: 32px;
    }

    .panel,
    .auth-panel {
        padding: 16px;
    }

    .actions,
    .platform-drafts-panel form,
    .platform-drafts-panel button,
    .quick-filters,
    .filters,
    .button-row,
    .post-title-row,
    .post-footer,
    .create-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .filters input,
    .filters select,
    .filters .button {
        width: 100%;
    }

    .stats-grid,
    .channel-grid,
    .instagram-workspace,
    .ai-analysis-box,
    .media-type-grid,
    .carousel-workbench-grid,
    .carousel-editor-strip,
    .post-flow-grid,
    .creator-choice-grid,
    .creator-template-grid,
    .media-studio-grid,
    .admin-grid,
    .assistant-guide,
    .assistant-ideas,
    .suggestion-grid,
    .workflow-choice,
    .post-card,
    .readiness-panel,
    .form-section,
    .upload-grid,
    .adjustment-grid,
    .compact-controls,
    .text-tool-grid,
    .text-layer-controls,
    .overlay-object-controls,
    .video-text-grid,
    .inline-upload-form,
    .detail-grid,
    .text-grid,
    .export-grid,
    .image-edit-panel,
    .form-grid,
    .crop-editor-form {
        grid-template-columns: 1fr;
    }

    .carousel-workbench-card.primary {
        grid-column: auto;
    }

    .meta-list {
        grid-template-columns: 1fr;
    }

    .button,
    .status-form label,
    .actions a,
    .actions form,
    .actions button,
    .post-actions,
    .post-actions a,
    .post-actions form,
    .post-actions button,
    .inline-form input,
    .inline-form button,
    .button-row a,
    .button-row form,
    .button-row button,
    .form-actions a,
    .create-actions a,
    .create-actions button,
    .form-actions button {
        width: 100%;
    }

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

    .carousel-workbench-actions a,
    .carousel-workbench-actions form,
    .carousel-workbench-actions button {
        width: 100%;
    }

    .channel-card {
        min-height: auto;
    }

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

    .mobile-tabbar {
        align-items: center;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        bottom: 0;
        box-shadow: 0 -8px 24px rgba(23, 33, 27, 0.08);
        display: grid !important;
        gap: 4px;
        grid-template-columns: repeat(5, 1fr);
        left: 0;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        z-index: 20;
    }

    .mobile-tabbar a {
        border-radius: 8px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        padding: 9px 4px;
        text-align: center;
        text-decoration: none;
    }

    .mobile-tabbar a.primary {
        background: var(--green);
        color: #fff;
    }

    .preview-image,
    .video-preview {
        max-height: 58vh;
    }

    .video-preview-headline {
        font-size: 18px;
        padding: 12px 14px;
    }

    .video-preview-layer {
        font-size: clamp(16px, var(--preview-layer-size, 24px), 30px);
        padding: 10px 12px;
    }

    .video-preview-caption {
        font-size: 16px;
        max-width: 90%;
    }

    .video-preview-logo {
        min-width: 58px;
        width: 92px;
    }

    .video-clip-tools {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .video-time-readout {
        margin-right: 0;
    }

    .crop-stage {
        width: 100%;
    }

    .crop-stage img {
        width: 100%;
    }

    .crop-editor-form > .full:not(.crop-preview-block):not(.autosave-status),
    .crop-editor-form > label:not(.crop-zoom-control),
    .crop-editor-form > section,
    .crop-editor-form > .form-actions {
        grid-column: 1;
    }

    .crop-preview-block {
        grid-column: 1;
        grid-row: auto;
        order: -1;
        position: static;
        top: auto;
    }

    .crop-preview-block .crop-stage img {
        max-height: 58vh;
    }

    .template-preview-grid,
    .calendar-grid {
        grid-template-columns: 1fr;
    }

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

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

    .clip-settings .text-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .clip-settings span {
        display: none;
    }

    .clip-split-form {
        flex-wrap: wrap;
    }

    .music-settings {
        grid-template-columns: minmax(0, 1fr) auto;
    }

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

    .music-settings .button {
        grid-column: 1 / -1;
        justify-self: start;
    }

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

    .cover-upload-form .button {
        justify-self: start;
    }

    .clip-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .clip-card video {
        width: 84px;
    }

    .calendar-day {
        min-height: 110px;
    }

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

    .readiness-list {
        grid-template-columns: 1fr;
    }
}
