:root {
  --ink: #11100e;
  --paper: #f4f0e8;
  --cream: #ebe5da;
  --line: rgba(17, 16, 14, .16);
  --muted: #6f6a61;
  --acid: #d9ff43;
  --orange: #ff5f31;
  --blue: #5e7cff;
  --green: #1f9b62;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.modal-open { overflow: hidden; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .045; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.hidden { display: none !important; }

.topbar { height: 82px; padding: 0 4.2vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(244, 240, 232, .94); backdrop-filter: blur(14px); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.facebook-shortcut { min-height: 37px; border: 1px solid rgba(24,119,242,.25); background: rgba(24,119,242,.06); color: #125fc3; border-radius: 99px; padding: 8px 13px; display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 11px; font-weight: 800; }
.facebook-shortcut:hover { background: rgba(24,119,242,.12); }
.tiktok-shortcut { border-color: rgba(238,29,82,.25); color: #b80f3a; background: rgba(37,244,238,.05); }
.tiktok-shortcut:hover { background: rgba(238,29,82,.08); }
.topbar-status { border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.topbar-status, .topbar-status span:last-child { min-width: 0; }
.service-dot { width: 8px; height: 8px; border-radius: 50%; background: #b6b1a8; }
.service-dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(31,155,98,.12); }
.service-dot.warn { background: #e3942b; }

main { max-width: 1540px; margin: 0 auto; }
.hero { min-height: 665px; display: grid; grid-template-columns: 1.02fr .98fr; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 88px 6vw 72px 4.2vw; display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .kicker { font-size: 11px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 36px; height: 2px; background: var(--orange); vertical-align: middle; margin-right: 10px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 6.6vw, 112px); font-weight: 400; letter-spacing: -.065em; line-height: .86; margin: 28px 0 30px; }
h1 em { color: var(--orange); font-weight: 400; }
.hero-copy > p:not(.demo-note) { max-width: 650px; font-size: 18px; line-height: 1.58; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.button { border: 1px solid var(--ink); padding: 13px 18px; border-radius: 99px; text-decoration: none; color: var(--ink); background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 18px; cursor: pointer; font-weight: 700; transition: transform .16s, background .16s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--orange); border-color: var(--orange); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button.large { padding: 16px 22px; border-radius: 12px; }
.demo-note { font-size: 11px !important; color: var(--muted) !important; margin-top: 18px; }
.demo-note span { background: var(--acid); color: var(--ink); font-weight: 900; padding: 3px 6px; margin-right: 5px; }

.hero-board { background: var(--ink); color: var(--paper); padding: 60px 4vw; display: flex; flex-direction: column; justify-content: center; }
.board-label { color: #8e8a82; font-size: 10px; letter-spacing: .18em; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.16); }
.hero-board ol { list-style: none; padding: 0; margin: 0; }
.hero-board li { display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.13); padding: 21px 0; }
.hero-board li > span { font-family: Georgia, serif; color: var(--acid); font-size: 21px; }
.hero-board li strong, .hero-board li small { display: block; }
.hero-board li strong { font-size: 18px; }
.hero-board li small { color: #97938b; margin-top: 5px; }
.hero-board li b { color: #6d6962; font-size: 22px; }
.board-output { margin-top: 32px; padding: 20px; border-radius: 15px; background: var(--acid); color: var(--ink); display: flex; align-items: center; gap: 15px; transform: rotate(-1deg); box-shadow: 10px 10px 0 var(--orange); }
.play-symbol { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--acid); border-radius: 50%; padding-left: 2px; }
.board-output small, .board-output strong { display: block; }
.board-output small { font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.board-output strong { font-size: 18px; }
.board-ready { margin-left: auto; font-size: 9px; border: 1px solid var(--ink); padding: 5px 7px; }

.workspace, .results { padding: 82px 4.2vw; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.section-title > div { display: flex; align-items: center; gap: 14px; }
.section-title h2 { font-family: Georgia, serif; font-weight: 400; font-size: 42px; margin: 0; letter-spacing: -.04em; }
.section-title .index { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: white; font-size: 11px; font-weight: 800; }
.section-title p { max-width: 430px; color: var(--muted); margin: 0; line-height: 1.5; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .75fr); gap: 18px; }
.studio-grid, .panel, .create-panel, .projects-panel { min-width: 0; }
.panel { background: #faf7f1; border: 1px solid var(--line); border-radius: var(--radius); padding: 27px; box-shadow: 0 10px 30px rgba(31,27,21,.04); }
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 26px; }
.panel-head h3 { font-family: Georgia, serif; font-size: 29px; font-weight: 400; letter-spacing: -.035em; margin: 7px 0 0; }
.step-chip { border-radius: 99px; background: var(--cream); padding: 8px 10px; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.round-button { width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.wide { grid-column: 1 / -1; }
.field span, .platforms legend { display: block; font-size: 11px; font-weight: 800; margin: 0 0 8px; }
.field input, .field select { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 13px 14px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(94,124,255,.12); }
.platforms { border: 0; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.platforms legend { grid-column: 1 / -1; }
.platforms input { position: absolute; opacity: 0; pointer-events: none; }
.platforms label > span { border: 1px solid var(--line); border-radius: 10px; padding: 11px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 700; }
.platforms label > span b { width: 27px; height: 27px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-size: 8px; }
.platforms label > span small { color: var(--muted); font-size: 9px; }
.platforms input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.platforms input:checked + span b { background: var(--acid); color: var(--ink); }
.platforms input:checked + span small { color: #bdb7ad; }
.drop-zone { min-height: 154px; border: 1px dashed #999289; border-radius: 13px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; padding: 20px; cursor: pointer; transition: .18s; }
.drop-zone:hover, .drop-zone.dragging { background: rgba(217,255,67,.22); border-color: var(--ink); transform: translateY(-2px); }
.drop-zone.selected { border-style: solid; background: rgba(31,155,98,.08); }
.drop-glyph { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: white; display: grid; place-items: center; font-size: 28px; }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone > div:nth-child(3) span { color: var(--muted); margin-top: 5px; font-size: 12px; }
.format-list { font-size: 9px; color: var(--muted); letter-spacing: .08em; }
.submit-row { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 20px; }
.submit-row p { margin: 0; color: var(--muted); font-size: 10px; text-align: right; line-height: 1.5; }
.progress-box { margin-top: 17px; }
.progress-box > div:first-child { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 7px; }
.progress-track { height: 6px; background: var(--cream); overflow: hidden; border-radius: 99px; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s; }
.error-message { color: #a92712; background: #ffe5dc; border: 1px solid #ffc6b4; padding: 11px 13px; border-radius: 9px; font-size: 12px; }

.projects-panel { max-height: 690px; display: flex; flex-direction: column; }
.project-list { overflow: auto; margin: 0 -10px; padding: 0 10px; }
.empty-projects { border: 1px dashed var(--line); padding: 40px 20px; text-align: center; color: var(--muted); border-radius: 12px; font-size: 12px; }
.project-row { width: 100%; border: 0; border-top: 1px solid var(--line); padding: 16px 2px; background: transparent; text-align: left; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; cursor: pointer; }
.project-row:hover .project-icon, .project-row.active .project-icon { background: var(--acid); }
.project-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.project-row strong, .project-row small { display: block; }
.project-row strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.project-row small { color: var(--muted); margin-top: 5px; font-size: 10px; }
.status { border-radius: 99px; padding: 6px 8px; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; background: var(--cream); }
.status.completed { background: rgba(31,155,98,.12); color: #157246; }
.status.failed { background: #ffe0d6; color: #a32c12; }
.status.busy { background: rgba(94,124,255,.12); color: #3e58c9; }

.results { border-top: 1px solid var(--line); }
.result-shell { background: var(--ink); color: var(--paper); border-radius: 22px; overflow: hidden; }
.result-head { padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.13); }
.result-head h2 { font-family: Georgia, serif; font-size: 35px; font-weight: 400; margin: 5px 0 9px; }
.result-head p { margin: 0; color: #aaa59b; }
.result-head .kicker { color: var(--acid); }
.demo-badge { display: inline-block; margin-left: 7px; border: 1px solid var(--acid); color: var(--acid); padding: 3px 5px; font-size: 8px; vertical-align: middle; }
.result-progress { min-width: 260px; }
.result-progress div:first-child { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 8px; }
.result-progress .progress-track { background: #35332f; }
.result-progress .progress-track span { background: var(--acid); }
.result-error { background: #4a1f17; color: #ffd9cd; padding: 14px; border-radius: 10px; max-width: 430px; }
.result-error p { color: inherit; font-size: 12px; margin: 0 0 10px; }
.result-error button { background: var(--paper); color: var(--ink); border: 0; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-weight: 700; }
.result-body { display: grid; grid-template-columns: 360px 1fr; }
.media-column { padding: 28px; border-right: 1px solid rgba(255,255,255,.13); }
.media-column video { display: block; width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 12px; background: #000; aspect-ratio: var(--preview-ratio, 16/9); object-fit: contain; }
.source-label { margin-bottom: 10px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.media-meta { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.media-meta div { border: 1px solid rgba(255,255,255,.12); padding: 10px; border-radius: 9px; }
.media-meta small, .media-meta strong { display: block; }
.media-meta small { color: #858078; font-size: 8px; letter-spacing: .12em; }
.media-meta strong { margin-top: 4px; font-size: 12px; }
.summary { margin-top: 20px; color: #aaa59b; font-size: 12px; line-height: 1.55; }
.content-column { min-width: 0; }
.tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.13); padding: 0 28px; }
.tabs button { padding: 18px 3px; margin-right: 25px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #858078; cursor: pointer; font-weight: 800; font-size: 11px; }
.tabs button.active { color: var(--paper); border-color: var(--acid); }
.tab-content { padding: 26px; max-height: 720px; overflow: auto; }
.clip-card { background: #201f1c; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px; margin-bottom: 13px; }
.clip-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.clip-index { color: var(--acid); font-size: 9px; letter-spacing: .14em; font-weight: 900; }
.score { border-radius: 99px; background: var(--acid); color: var(--ink); padding: 5px 8px; font-size: 9px; font-weight: 900; }
.clip-card h3 { margin: 10px 0 6px; font-family: Georgia, serif; font-weight: 400; font-size: 23px; }
.clip-time { color: #8d887f; font-size: 10px; }
.hook { font-size: 15px; line-height: 1.45; color: white; border-left: 3px solid var(--orange); padding-left: 12px; }
.clip-description { color: #a8a39a; font-size: 12px; line-height: 1.5; }
.clip-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.clip-meta div { background: #292824; padding: 10px; border-radius: 8px; }
.clip-meta small, .clip-meta span { display: block; }
.clip-meta small { color: #79756e; font-size: 8px; letter-spacing: .11em; }
.clip-meta span { margin-top: 5px; font-size: 11px; }
.tags { display: flex; gap: 5px; margin-top: 12px; flex-wrap: wrap; }
.tags span { border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: 4px 7px; color: #a8a39a; font-size: 8px; text-transform: uppercase; }
.export-area { margin-top: 17px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.export-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.subtitle-toggle { display: flex; gap: 7px; align-items: center; font-size: 10px; color: #a8a39a; }
.format-buttons { display: flex; gap: 6px; }
.format-buttons button { background: transparent; border: 1px solid rgba(255,255,255,.22); color: var(--paper); padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 9px; }
.format-buttons button:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.exports-list { margin-top: 9px; }
.export-item { background: #2a2925; padding: 8px 10px; border-radius: 7px; margin-top: 5px; display: flex; align-items: center; gap: 9px; font-size: 9px; }
.export-item .mini-track { height: 3px; background: #45433e; flex: 1; }
.export-item .mini-track span { display: block; height: 100%; background: var(--acid); }
.export-item a { color: var(--acid); font-weight: 800; }
.export-file { min-width: 0; }
.export-file span, .export-file strong { display: block; }
.export-file strong { max-width: 180px; margin-top: 3px; color: #8f8b83; font-size: 8px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-actions { display: flex; align-items: center; gap: 5px; }
.export-actions a, .export-actions button { border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: transparent; color: var(--paper); padding: 6px 8px; text-decoration: none; cursor: pointer; font-size: 8px; font-weight: 800; white-space: nowrap; }
.export-actions a:hover, .export-actions button:hover { border-color: var(--acid); color: var(--acid); }
.export-actions .publish-action { border-color: rgba(255,95,49,.55); color: #ff9a7d; }
.facebook-format-note { color: #8f8b83; font-size: 8px; white-space: nowrap; }
.idea-card { border: 1px solid rgba(255,255,255,.13); border-radius: 14px; padding: 20px; margin-bottom: 13px; }
.idea-card h3 { font-family: Georgia, serif; font-size: 23px; font-weight: 400; margin: 6px 0; }
.idea-purpose { color: #9e9990; font-size: 12px; }
.idea-hook { background: var(--acid); color: var(--ink); padding: 12px; border-radius: 8px; margin: 14px 0; font-weight: 700; }
.idea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.idea-grid h4 { font-size: 9px; letter-spacing: .14em; color: #77736c; }
.idea-grid li { color: #c7c1b7; margin-bottom: 7px; font-size: 11px; line-height: 1.45; }
.shot { display: grid; grid-template-columns: 24px 1fr; gap: 8px; margin-bottom: 9px; }
.shot > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); font-size: 8px; }
.shot strong, .shot small { display: block; }
.shot strong { font-size: 11px; }
.shot small { color: #817c74; font-size: 9px; margin-top: 3px; }
.idea-footer { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin-top: 12px; display: flex; justify-content: space-between; color: #9e9990; font-size: 10px; }

.facebook-section { padding: 82px 4.2vw; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(24,119,242,.045), transparent 52%); }
.tiktok-section { background: linear-gradient(180deg, rgba(37,244,238,.055), transparent 52%); }
.tiktok-index { background: #111 !important; color: #25f4ee !important; }
.tiktok-brand-mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #111; color: #25f4ee; box-shadow: 3px 2px 0 #fe2c55; font: 800 27px/1 Arial, sans-serif; }
.tiktok-check { border-color: #111; color: #111; padding: 10px 14px; font-size: 10px; }
.tiktok-check:hover { background: #111; color: #25f4ee; }
.tiktok-disconnect { border-color: var(--line); color: var(--muted); padding: 10px 14px; font-size: 10px; }
.tiktok-upload-state { align-self: center; color: #147044; font-size: 8px; font-weight: 900; letter-spacing: .04em; }
.tiktok-help-card .comments-empty { min-height: 250px; }
.facebook-index { background: #1877f2 !important; }
.facebook-shell { display: grid; grid-template-columns: minmax(310px, .82fr) minmax(0, 1.38fr); gap: 18px; align-items: start; }
.facebook-loading { grid-column: 1 / -1; padding: 60px 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.facebook-connection-card, .facebook-comments-card { min-width: 0; border: 1px solid var(--line); background: #fbf9f5; border-radius: var(--radius); box-shadow: 0 14px 35px rgba(31,27,21,.055); }
.facebook-connection-card { position: sticky; top: 100px; padding: 26px; }
.facebook-card-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; align-items: center; }
.facebook-brand-mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #1877f2; color: white; font: 700 32px/1 Arial, sans-serif; padding-top: 7px; }
.facebook-card-head h3 { margin: 5px 0 4px; font-family: Georgia, serif; font-size: 22px; font-weight: 400; letter-spacing: -.025em; }
.facebook-card-head > div:nth-child(2) > span:last-child { display: block; color: var(--muted); font-size: 10px; }
.connection-pill { border-radius: 99px; padding: 7px 9px; display: flex; align-items: center; gap: 6px; background: var(--cream); color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.connection-pill i { width: 6px; height: 6px; border-radius: 50%; background: #a7a198; }
.connection-pill.connected { background: rgba(31,155,98,.12); color: #147044; }
.connection-pill.connected i { background: var(--green); }
.connection-pill.pending { background: #fff0d9; color: #9a5b08; }
.connection-pill.pending i { background: #df8d20; }
.connection-pill.disconnected { background: #f2e6e2; color: #8c4535; }
.facebook-guardrails { display: grid; gap: 1px; margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.facebook-guardrails div { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; background: var(--paper); padding: 12px; }
.facebook-guardrails b { color: #125fc3; font-size: 8px; letter-spacing: .1em; }
.facebook-guardrails span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.facebook-connection-actions { display: flex; align-items: center; gap: 12px; }
.facebook-check { border-color: #1877f2; color: #125fc3; padding: 10px 14px; font-size: 10px; }
.facebook-check:hover { background: #1877f2; color: white; }
.privacy-note, .facebook-config-note { color: var(--muted); font-size: 9px; line-height: 1.4; }
.facebook-last-action { margin-top: 18px; border-left: 3px solid var(--green); background: rgba(31,155,98,.07); border-radius: 0 9px 9px 0; padding: 10px 12px; }
.facebook-last-action.public { border-color: var(--orange); background: rgba(255,95,49,.07); }
.facebook-last-action span, .facebook-last-action strong, .facebook-last-action small { display: block; }
.facebook-last-action span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.facebook-last-action.public span { color: #c34420; }
.facebook-last-action strong { margin-top: 4px; font-size: 11px; }
.facebook-last-action small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.facebook-comments-card { padding: 26px; }
.comments-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.comments-heading h3 { margin: 6px 0; font-family: Georgia, serif; font-size: 29px; font-weight: 400; letter-spacing: -.03em; }
.comments-heading p { max-width: 580px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.comments-empty { min-height: 160px; border: 1px dashed var(--line); border-radius: 13px; padding: 28px; display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--muted); text-align: left; }
.comments-empty > span { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-family: Georgia, serif; }
.comments-empty p { margin: 0; max-width: 390px; font-size: 11px; line-height: 1.55; }
.comments-empty button { margin-top: 10px; border: 0; border-bottom: 1px solid #1877f2; padding: 0 0 3px; background: transparent; color: #125fc3; cursor: pointer; font-size: 10px; font-weight: 800; }
.comments-empty.loading > span { animation: spin 1s linear infinite; }
.comments-empty.error { border-color: rgba(169,39,18,.3); background: rgba(169,39,18,.04); }
.comments-list { display: grid; gap: 12px; max-height: 850px; overflow: auto; padding-right: 4px; }
.comment-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--paper); }
.comment-meta { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #1877f2; color: white; font-size: 10px; font-weight: 900; }
.comment-meta strong, .comment-meta div > span { display: block; }
.comment-meta strong { font-size: 11px; }
.comment-meta div > span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.reply-sent { border-radius: 99px; padding: 5px 7px; background: rgba(31,155,98,.12); color: #147044; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.comment-message { margin: 13px 0 15px 46px; font-size: 13px; line-height: 1.55; }
.reply-composer { margin-left: 46px; border-top: 1px solid var(--line); padding-top: 13px; }
.reply-composer.is-sent { opacity: .55; }
.reply-mode { display: inline-flex; gap: 3px; border-radius: 8px; padding: 3px; background: var(--cream); }
.reply-mode button { border: 0; border-radius: 6px; padding: 7px 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; font-weight: 800; }
.reply-mode button.active { background: white; color: #125fc3; box-shadow: 0 2px 9px rgba(31,27,21,.08); }
.reply-composer label { display: block; margin-top: 11px; }
.reply-composer label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; }
.reply-composer textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: #fffdfa; padding: 11px 12px; outline: none; color: var(--ink); font-size: 11px; line-height: 1.5; }
.reply-composer textarea:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,.1); }
.reply-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.reply-footer small { color: var(--muted); font-size: 8px; }
.reply-footer button { border: 0; border-radius: 8px; background: var(--ink); color: white; padding: 8px 10px; cursor: pointer; font-size: 8px; font-weight: 800; }
.reply-footer button:hover { background: #1877f2; }
.reply-footer button:disabled { opacity: .4; cursor: not-allowed; }
.reply-unavailable { margin: 10px 0 0 46px; border: 1px dashed var(--line); border-radius: 8px; padding: 10px; color: var(--muted); font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(11,10,9,.68); backdrop-filter: blur(8px); animation: fade-in .16s ease-out; }
.facebook-modal { width: min(680px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 100px rgba(0,0,0,.4); animation: modal-in .2s ease-out; }
.modal-head { padding: 22px 24px; display: flex; align-items: start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 7px 0 0; font-family: Georgia, serif; font-size: 30px; font-weight: 400; letter-spacing: -.035em; }
.modal-head > button { width: 35px; height: 35px; flex: 0 0 35px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 21px; line-height: 1; }
.modal-mode { display: inline-block; border-radius: 99px; padding: 6px 8px; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.modal-mode.draft { background: rgba(31,155,98,.12); color: #147044; }
.modal-mode.public { background: rgba(255,95,49,.14); color: #b43d1b; }
.modal-mode.reply { background: rgba(24,119,242,.1); color: #125fc3; }
.modal-body { padding: 22px 24px; }
.selected-export { border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: #faf7f1; }
.video-file-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--acid); font-size: 12px; }
.selected-export span, .selected-export strong, .selected-export small { display: block; }
.selected-export span { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.selected-export strong { margin-top: 4px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-export small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.selected-export > b { border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; font-size: 8px; }
.post-copy { display: block; margin-top: 18px; }
.post-copy > span, .typed-confirmation > span { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 800; }
.post-copy textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 11px; background: #fffdfa; padding: 13px; outline: none; color: var(--ink); font-size: 12px; line-height: 1.55; }
.post-copy textarea:focus, .typed-confirmation input:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,.1); }
.post-copy > small { display: block; margin-top: 5px; color: var(--muted); text-align: right; font-size: 8px; }
.draft-guarantee { margin-top: 16px; border: 1px solid rgba(31,155,98,.24); border-radius: 11px; background: rgba(31,155,98,.075); padding: 13px; display: flex; align-items: center; gap: 11px; }
.draft-guarantee > span { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; }
.draft-guarantee strong, .draft-guarantee small { display: block; }
.draft-guarantee strong { color: #147044; font-size: 11px; }
.draft-guarantee small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.public-warning { margin-top: 16px; border: 1px solid rgba(255,95,49,.32); border-radius: 11px; background: rgba(255,95,49,.08); padding: 13px; }
.public-warning strong, .public-warning span { display: block; }
.public-warning strong { color: #b43d1b; font-size: 11px; }
.public-warning span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.typed-confirmation { display: block; margin-top: 16px; }
.typed-confirmation input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; padding: 12px 13px; outline: none; }
.typed-confirmation b { color: #b43d1b; letter-spacing: .04em; }
.modal-error { border: 1px solid #ffc6b4; border-radius: 9px; background: #ffe5dc; color: #a92712; padding: 11px 13px; font-size: 10px; }
.modal-footer { border-top: 1px solid var(--line); padding: 16px 24px; display: flex; justify-content: flex-end; gap: 9px; }
.modal-footer .button { font-size: 10px; }
.button.danger { border-color: #bd3513; background: #bd3513; color: white; }
.button.danger:hover { border-color: #8e250c; background: #8e250c; }
.confirmation-context, .confirmation-reply { border-radius: 11px; padding: 15px; }
.confirmation-context { border: 1px solid var(--line); background: #faf7f1; }
.confirmation-reply { margin-top: 12px; border: 1px solid rgba(24,119,242,.22); background: rgba(24,119,242,.06); }
.confirmation-context > span, .confirmation-reply > span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.confirmation-context p, .confirmation-reply p { margin: 8px 0 0; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.confirmation-context small { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }
.reply-warning { margin-top: 14px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.reply-warning b { color: var(--ink); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes spin { to { transform: rotate(360deg); } }

footer { max-width: 1540px; margin: 0 auto; min-height: 95px; border-top: 1px solid var(--line); padding: 0 4.2vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: var(--paper); padding: 13px 16px; border-radius: 10px; z-index: 30; box-shadow: 0 10px 35px rgba(0,0,0,.22); max-width: 360px; font-size: 12px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 590px; }
  .hero-board { min-height: 550px; }
  .studio-grid { grid-template-columns: 1fr; }
  .projects-panel { max-height: none; }
  .result-body { grid-template-columns: 300px 1fr; }
  .facebook-shell { grid-template-columns: 1fr; }
  .facebook-connection-card { position: static; }
}

@media (max-width: 760px) {
  .topbar { height: 68px; padding: 0 18px; }
  .brand small { display: none; }
  .topbar-actions { gap: 6px; }
  .facebook-shortcut { width: 36px; min-height: 36px; padding: 0; justify-content: center; }
  .facebook-shortcut > span:last-child { display: none; }
  .topbar-status { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 10px; }
  .topbar-status span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .hero-copy { padding: 64px 20px; min-height: 520px; }
  h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-copy > p:not(.demo-note) { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-board { padding: 50px 20px; min-height: 520px; }
  .workspace, .results, .facebook-section { padding: 58px 16px; }
  .section-title { display: block; }
  .section-title p { margin-top: 13px; }
  .panel { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .platforms { grid-template-columns: 1fr; }
  .drop-zone { grid-template-columns: 46px 1fr; }
  .format-list { grid-column: 1 / -1; }
  .submit-row { display: block; }
  .submit-row .button { width: 100%; }
  .submit-row p { text-align: left; margin-top: 12px; }
  .result-head { grid-template-columns: 1fr; padding: 22px; }
  .result-progress { min-width: 0; }
  .result-body { grid-template-columns: 1fr; }
  .media-column { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); padding: 20px; }
  .tabs { overflow-x: auto; padding: 0 20px; }
  .tab-content { padding: 18px; max-height: none; }
  .clip-meta, .idea-grid { grid-template-columns: 1fr; }
  .export-line { display: block; }
  .format-buttons { margin-top: 10px; }
  .format-buttons button { flex: 1; }
  .export-complete { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .export-complete .mini-track { display: none; }
  .export-actions { grid-column: 1 / -1; }
  .export-actions a, .export-actions button { flex: 1; text-align: center; }
  .facebook-connection-card, .facebook-comments-card { padding: 18px; }
  .facebook-card-head { grid-template-columns: 42px minmax(0, 1fr); }
  .facebook-brand-mark { width: 42px; height: 42px; font-size: 27px; }
  .tiktok-brand-mark { width: 42px; height: 42px; font-size: 24px; }
  .connection-pill { grid-column: 1 / -1; width: max-content; }
  .facebook-guardrails div { grid-template-columns: 64px 1fr; }
  .facebook-connection-actions { align-items: flex-start; flex-direction: column; }
  .comments-heading h3 { font-size: 25px; }
  .comment-card { padding: 14px; }
  .comment-message, .reply-composer, .reply-unavailable { margin-left: 0; }
  .comment-message { margin-top: 13px; }
  .reply-footer { align-items: stretch; flex-direction: column; }
  .reply-footer button { width: 100%; padding: 10px; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .facebook-modal { width: 100%; max-height: calc(100vh - 20px); border-radius: 18px 18px 8px 8px; }
  .modal-head, .modal-body { padding: 18px; }
  .modal-head h2 { font-size: 25px; }
  .modal-footer { padding: 14px 18px; flex-direction: column-reverse; }
  .modal-footer .button { width: 100%; }
  footer { padding: 24px 18px; display: block; }
  footer p { margin: 10px 0; }
}
