:root {
  --bg: #0a0a0e;
  --surface: #111116;
  --surface-2: #17171e;
  --surface-3: #202029;
  --line: #2b2b36;
  --line-soft: #202029;
  --text: #f5f4f8;
  --muted: #a5a3b0;
  --muted-2: #777582;
  --primary: #8c72ff;
  --primary-strong: #7658f7;
  --primary-soft: #241e42;
  --mint: #5ce1b9;
  --coral: #ff7d78;
  --sky: #65baff;
  --amber: #ffc866;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 20px 60px rgb(0 0 0 / 0.24);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-y: scroll; scrollbar-gutter: stable; scrollbar-color: #514b68 #0d0d12; background: var(--bg); }
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: #0d0d12; }
html::-webkit-scrollbar-thumb { border: 3px solid #0d0d12; border-radius: 999px; background: #514b68; }
body { margin: 0; overflow-x: clip; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px;
}
::selection { color: white; background: var(--primary-strong); }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .75rem 1rem; border-radius: 10px; color: white; background: var(--primary-strong); }
.skip-link:focus { top: 1rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 20px; border-right: 1px solid var(--line-soft); background: #0d0d12; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; display: block; flex: 0 0 auto; border-radius: 13px; box-shadow: 0 7px 24px rgb(140 114 255 / .28); }
.brand-lockup { width: auto; height: 40px; display: block; flex: 0 0 auto; filter: drop-shadow(0 7px 18px rgb(118 87 255 / .18)); }
.brand strong { display: block; font-size: 18px; letter-spacing: .11em; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.nav-stack { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.nav-label { margin: 22px 12px 8px; color: #5f5d6a; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; text-align: left; font-weight: 650; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav-item span { width: 20px; color: #676572; text-align: center; font-size: 17px; }
.nav-item:hover { color: var(--text); background: #17171e; }
.nav-item.active { color: white; background: var(--primary-soft); }
.nav-item.active span { color: #b8a9ff; }
.sidebar-footer { margin-top: auto; display: grid; gap: 10px; }
.workspace-chip { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: #111117; }
.workspace-chip small, .workspace-chip strong { display: block; }
.workspace-chip small { color: var(--muted-2); font-size: 10px; }
.workspace-chip strong { margin-top: 2px; font-size: 12px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; display: inline-block; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 4px rgb(92 225 185 / .1); }
.status-dot.muted { background: var(--muted-2); box-shadow: none; }
.button-reset { appearance: none; }
.app-main { min-width: 0; }
.main-content { width: min(1540px, 100%); margin: 0 auto; padding: 42px 44px 72px; }
.mobile-header, .mobile-bottom-nav, .mobile-scroll-hint { display: none; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-header h1 { margin: 3px 0 7px; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.compact-header h1 { font-size: 34px; }
.page-lead { max-width: 680px; margin: 0; color: var(--muted); }
.eyebrow, .kicker { margin: 0; color: #9e8dff; font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.header-actions form { margin: 0; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid transparent; border-radius: 11px; color: white; background: transparent; font-weight: 750; line-height: 1.2; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--primary-strong); box-shadow: 0 8px 26px rgb(118 88 247 / .22); }
.button.primary:hover { background: #866aff; }
.button.secondary { border-color: var(--line); background: var(--surface-2); }
.button.secondary:hover, .button.ghost:hover { border-color: #4a4857; background: var(--surface-3); }
.button.ghost { border-color: transparent; color: #c5c2ce; }
.button.danger { background: #7d363a; }
.button.small { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.button.wide { width: 100%; }

.panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgb(255 255 255 / .02); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 23px 18px; }
.panel-heading h2, .panel > h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.02em; }
.panel-heading > a { color: #b2a4ff; font-size: 13px; font-weight: 700; }
.count-badge { min-width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; }
.messages { display: grid; gap: 8px; margin-bottom: 20px; }
.message { padding: 12px 15px; border: 1px solid #305b51; border-radius: 11px; color: #bdffe9; background: #15352e; }
.message.error { border-color: #66393d; color: #ffd2d0; background: #361d20; }
.message.warning { border-color: #634f2e; color: #ffe7b5; background: #332816; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.stat-card { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 21px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); }
.stat-card .stat-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; }
.stat-card .stat-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon.lilac { color: #c1b6ff; background: #282141; }.stat-icon.mint { color: var(--mint); background: #16372f; }.stat-icon.coral { color: var(--coral); background: #3b2022; }.stat-icon.sky { color: var(--sky); background: #173047; }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font-size: 25px; line-height: 1.1; }
.stat-card div > span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr 1.25fr .9fr; gap: 14px; }
.span-two { grid-column: span 2; }.span-three { grid-column: span 3; }
.timeline-list, .task-list, .content-list, .account-list, .member-list, .asset-list { border-top: 1px solid var(--line-soft); }
.timeline-item { min-height: 72px; display: grid; grid-template-columns: 42px 10px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 10px 22px; border-bottom: 1px solid var(--line-soft); }
.timeline-item:last-child { border-bottom: 0; }.timeline-item:hover { background: #15151b; }
.timeline-item time { text-align: center; }.timeline-item time strong, .timeline-item time span { display: block; }.timeline-item time strong { font-size: 18px; }.timeline-item time span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; }
.event-marker { width: 7px; height: 7px; border-radius: 50%; }.event-marker.shoot, .legend-dot.shoot { background: var(--primary); }.event-marker.publish, .legend-dot.publish { background: var(--mint); }
.timeline-copy strong, .timeline-copy small { display: block; }.timeline-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.timeline-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.task-list { padding: 9px; }.task-card { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px; border-radius: 12px; }.task-card:hover { background: var(--surface-2); }.task-card strong, .task-card small { display: block; }.task-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }.task-card b { color: var(--muted-2); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #e6e0ff; background: #302653; font-weight: 850; }.avatar.large { width: 44px; height: 44px; }
.system-strip { display: flex; align-items: center; gap: 13px; padding: 16px 20px; }.system-strip div { flex: 1; }.system-strip strong, .system-strip small { display: block; }.system-strip small { color: var(--muted); }
.pill { width: fit-content; display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; color: #c8c5cf; background: #292831; font-size: 10px; font-weight: 800; white-space: nowrap; }
.pill.approved, .pill.published, .pill.completed { color: #aaf5dc; background: #17352e; }.pill.publishing { color: #cfc5ff; background: #292147; }.pill.failed, .pill.canceled { color: #ffc5c2; background: #3b2225; }.pill.scheduled, .pill.planned { color: #bfe2ff; background: #1c3143; }.pill.awaiting_manual, .pill.missed { color: #ffe2a7; background: #3b2e18; }.pill.mock { color: #d7ccff; background: #302750; }.pill.manual { color: #ffe2a7; background: #3b2e18; }.pill.api { color: #aaf5dc; background: #17352e; }.pill.neutral { border-color: var(--line); background: transparent; }

.calendar-panel { overflow: hidden; }.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }.month-switcher { display: flex; align-items: center; gap: 14px; }.month-switcher h2 { min-width: 170px; margin: 0; text-align: center; font-size: 19px; text-transform: capitalize; }.month-switcher a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }.filter-row, .inline-filter { display: flex; align-items: center; gap: 9px; }.filter-row label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }.filter-row select, .inline-filter select { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); padding: 7px 30px 7px 10px; }
.calendar-scroll { overflow-x: auto; }.calendar-grid { min-width: 900px; display: grid; grid-template-columns: repeat(7, 1fr); }.weekday-row { color: var(--muted-2); background: #0e0e13; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.weekday-row div { padding: 10px 13px; border-right: 1px solid var(--line-soft); }.week-row { border-top: 1px solid var(--line-soft); }.calendar-day { min-height: 132px; padding: 10px; border-right: 1px solid var(--line-soft); background: var(--surface); }.calendar-day.outside { color: #51505a; background: #0e0e13; }.calendar-day.today .day-number { color: white; background: var(--primary-strong); }.day-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }.day-events { display: grid; gap: 5px; margin-top: 5px; }.calendar-event { display: block; overflow: hidden; padding: 6px 7px; border-left: 2px solid var(--primary); border-radius: 6px; color: #dfd9ff; background: #221d36; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }.calendar-event.publish { border-color: var(--mint); color: #c7f9e8; background: #172c27; }.calendar-event small { display: block; margin-bottom: 2px; color: inherit; opacity: .62; font-size: 8px; }.calendar-legend { display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }.legend-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }.shoot-card { display: grid; grid-template-columns: 90px 1fr; min-height: 210px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); transition: transform .18s ease, border-color .18s ease; }.shoot-card:hover { transform: translateY(-2px); border-color: #3e3b4b; }.shoot-date { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #d8cfff; background: #211c36; }.shoot-date strong { font-size: 36px; line-height: 1; }.shoot-date span { margin-top: 8px; color: #9c92bd; font-size: 10px; text-transform: uppercase; }.shoot-info { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }.shoot-info h2 { margin: 15px 0 5px; font-size: 19px; }.shoot-info p { margin: 0; color: var(--muted); font-size: 12px; }.creator-stack { display: flex; align-items: center; margin-top: auto; }.creator-stack span { width: 29px; height: 29px; display: grid; place-items: center; margin-right: -6px; border: 2px solid var(--surface); border-radius: 50%; color: #ddd5ff; background: #342957; font-size: 10px; font-weight: 800; }.creator-stack small { margin-left: 13px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr); gap: 14px; }.detail-list { margin: 16px 0 0; }.detail-list div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }.detail-list dt { color: var(--muted-2); font-size: 11px; }.detail-list dd { margin: 0; font-size: 12px; }.panel > .detail-list, .panel > .eyebrow, .panel > h2 { margin-left: 22px; margin-right: 22px; }.content-row { min-height: 70px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto 15px; align-items: center; gap: 12px; padding: 10px 22px; border-bottom: 1px solid var(--line-soft); }.content-row:hover { background: #15151b; }.row-main strong, .row-main small { display: block; }.row-main small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.kanban-shell { position: relative; isolation: isolate; }
.kanban-shell::before, .kanban-shell::after { content: ""; position: absolute; z-index: 8; top: 70px; bottom: 0; width: 34px; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.kanban-shell::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.kanban-shell::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.kanban-shell.can-scroll-left::before, .kanban-shell.can-scroll-right::after { opacity: 1; }
.kanban-navigation { position: sticky; z-index: 12; top: 10px; display: grid; grid-template-columns: auto minmax(220px, 1fr); align-items: center; gap: 16px; margin-bottom: 10px; padding: 8px; border: 1px solid #302d3d; border-radius: 14px; background: rgb(14 14 20 / .94); box-shadow: 0 12px 36px rgb(0 0 0 / .26); backdrop-filter: blur(16px); }
.kanban-navigation-copy { display: flex; align-items: center; gap: 9px; margin: 0; color: #c9c5d1; font-size: 12px; font-weight: 750; white-space: nowrap; }
.kanban-navigation-copy::before { content: "↔"; color: #aa9cff; font-size: 16px; }
.kanban-navigation-copy strong { padding: 4px 8px; border: 1px solid #3f385d; border-radius: 999px; color: #d9d2ff; background: #211c35; font-size: 10px; }
.kanban-navigation-controls { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.kanban-step-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #454056; border-radius: 11px; color: #e8e3ff; background: #211d2f; font-size: 20px; line-height: 1; }
.kanban-step-button:hover:not(:disabled) { border-color: #7968d6; background: #30274e; }
.kanban-step-button:disabled { cursor: default; opacity: .35; }
.kanban-scrollbar { min-width: 0; height: 44px; overflow-x: auto; overflow-y: hidden; border: 1px solid #302d3d; border-radius: 10px; overscroll-behavior-inline: contain; scrollbar-color: #9b86ff #24212e; scrollbar-width: auto; }
.kanban-scrollbar:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.kanban-scrollbar-track { height: 1px; }
.kanban-scrollbar::-webkit-scrollbar { height: 12px; }
.kanban-scrollbar::-webkit-scrollbar-track { border-radius: 999px; background: #24212e; }
.kanban-scrollbar::-webkit-scrollbar-thumb { border: 2px solid #24212e; border-radius: 999px; background: #9b86ff; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 285px; gap: 12px; overflow-x: auto; padding-bottom: 3px; outline: none; scrollbar-width: none; scroll-snap-type: x proximity; }.kanban:focus-visible { border-radius: 16px; outline: 2px solid var(--primary); outline-offset: 3px; }.kanban::-webkit-scrollbar { display: none; }.kanban-column { min-height: 560px; border: 1px solid var(--line-soft); border-radius: 16px; background: #0f0f14; scroll-snap-align: start; }.kanban-column > header { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 9px; padding: 15px; }.kanban-column > header h2 { margin: 0; font-size: 12px; }.kanban-column > header > span:last-child { color: var(--muted-2); font-size: 11px; }.status-dot.ideas { background: #a78cff; }.status-dot.draft { background: #75737f; }.status-dot.ready_to_shoot { background: var(--sky); }.status-dot.footage_ready { background: #7d95ff; }.status-dot.editing { background: var(--amber); }.status-dot.published { background: var(--mint); }.kanban-items { display: grid; gap: 9px; padding: 0 8px 8px; }.kanban-card { display: block; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }.kanban-card:hover { border-color: #454252; background: #16161d; }.idea-kanban-card { border-color: #342d50; background: #151321; }.idea-kanban-card:hover { border-color: #574a84; background: #1c1830; }.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 9px; }.creator-name { display: inline-flex; align-items: center; gap: 6px; color: #c9c5d1; font-size: 10px; font-weight: 700; }.creator-name i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #e3dcff; background: #332a53; font-style: normal; }.kanban-card h3 { margin: 13px 0 6px; font-size: 14px; line-height: 1.35; }.kanban-card p { margin: 0; color: var(--muted); font-size: 11px; }.kanban-card footer { display: flex; justify-content: space-between; gap: 7px; margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 9px; }.column-empty { padding: 30px 10px; color: #56545f; text-align: center; font-size: 11px; }

.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }.library-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); }.video-placeholder { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #bdb0ff; background: radial-gradient(circle at 50% 20%, #302653, #15141c 65%); }.video-placeholder > span { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .14); border-radius: 50%; background: rgb(10 10 14 / .45); }.video-placeholder small { color: #817e8c; }.library-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 17px; }.library-copy h2 { margin: 9px 0 0; font-size: 15px; }.library-actions { display: flex; gap: 6px; }

.breadcrumb, .meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 11px; }.breadcrumb a { color: #b3a5ff; }.detail-header h1 { margin-top: 10px; }.content-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }.detail-main, .detail-sidebar, .settings-stack { display: grid; gap: 14px; }.sticky-panel { position: sticky; top: 16px; padding: 22px; }.sticky-panel > .eyebrow, .sticky-panel > h2, .sticky-panel > .detail-list { margin-left: 0; margin-right: 0; }.script-panel { padding-bottom: 10px; }.creator-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }.creator-chip i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #e1d9ff; background: #322851; font-style: normal; }.script-block { margin: 0 22px; padding: 17px 0; border-top: 1px solid var(--line-soft); }.script-block > span { display: block; margin-bottom: 9px; color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .15em; }.script-block p { margin: 0; }.script-block.hook { padding: 17px; border: 1px solid #3b315d; border-radius: 12px; background: #1c182d; }.script-block.hook > span { color: #a797ff; }.script-block.cta { color: #bff6e5; }.prose { color: #e5e3e9; line-height: 1.75; white-space: normal; }.muted-prose { color: var(--muted); }
.script-disclosure { padding-top: 7px; padding-bottom: 7px; }
.script-disclosure > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; cursor: pointer; }
.script-disclosure > summary::-webkit-details-marker { display: none; }
.script-disclosure > summary > span { color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.script-disclosure > summary small { display: inline-flex; align-items: center; gap: 8px; color: #a99bdc; font-size: 10px; font-weight: 750; }
.script-disclosure > summary i { font-size: 16px; font-style: normal; transition: transform .16s ease; }
.script-disclosure .when-open { display: none; }
.script-disclosure[open] .when-closed { display: none; }
.script-disclosure[open] .when-open { display: inline; }
.script-disclosure[open] > summary i { transform: rotate(180deg); }
.script-disclosure-content { padding: 8px 0 12px; }
.asset-row { min-height: 72px; display: flex; align-items: center; gap: 11px; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); }.file-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--sky); background: #192e42; }.file-icon.final { color: #c8bdff; background: #2a2346; }.asset-copy { min-width: 0; flex: 1; }.asset-copy strong, .asset-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.asset-copy strong { font-size: 12px; }.asset-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }.asset-review-actions { display: flex; gap: 5px; }.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-2); }.icon-button.success:hover { color: var(--mint); border-color: #326c5d; }.icon-button.danger:hover { color: var(--coral); border-color: #754148; }.review-popover, .table-popover { position: relative; }.review-popover summary, .table-popover summary { list-style: none; }.review-popover summary::-webkit-details-marker, .table-popover summary::-webkit-details-marker { display: none; }.review-popover form, .table-popover form { position: absolute; z-index: 10; right: 0; top: 43px; width: 280px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); box-shadow: var(--shadow); }.review-popover label, .table-popover label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }.review-popover textarea, .table-popover input { width: 100%; margin-bottom: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: white; background: #111117; }.upload-zone { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px; padding: 16px; border: 1px dashed #3b3947; border-radius: 13px; background: #0e0e13; }.upload-zone strong, .upload-zone small { display: block; }.upload-zone small { margin-top: 4px; color: var(--muted); font-size: 10px; }.upload-controls { display: flex; align-items: center; gap: 7px; }.upload-controls select, .upload-controls input { max-width: 220px; color: var(--muted); font-size: 11px; }
.comments { display: grid; gap: 15px; padding: 0 22px 20px; }.comment { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 11px; }.comment header { display: flex; align-items: center; gap: 8px; }.comment header time { color: var(--muted-2); font-size: 10px; }.comment p { margin: 6px 0 2px; color: #d6d4da; }.comment small { color: var(--muted-2); }.timecode { padding: 2px 5px; border-radius: 5px; color: #b9adff; background: #282142; font-size: 9px; }.comment-form { display: flex; align-items: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line-soft); }.comment-fields { display: grid; grid-template-columns: 150px 90px minmax(240px,1fr); gap: 7px; flex: 1; }.comment-fields select, .comment-fields input, .comment-fields textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: white; background: var(--surface-2); }.comment-fields textarea { height: 42px; resize: vertical; }.detail-sidebar .panel { padding: 22px; }.detail-sidebar .panel > .eyebrow, .detail-sidebar .panel > h2 { margin-left: 0; margin-right: 0; }.compact-form { margin-top: 18px; }.locked-note { display: flex; gap: 11px; margin-top: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #0f0f14; }.locked-note p { margin: 0; font-size: 11px; }.mini-publications { display: grid; gap: 8px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line-soft); }.mini-publications > div { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; }.mini-publications strong, .mini-publications small { display: block; font-size: 10px; }.mini-publications small { color: var(--muted); }.platform-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: white; background: #302750; font-size: 11px; font-weight: 900; }.platform-mark.youtube { background: #7d292d; }.platform-mark.instagram { background: #6e356a; }.platform-mark.tiktok { background: #223c42; }.platform-mark.vk { background: #244c77; }.platform-mark.telegram { background: #255870; }

.filter-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }.filter-tabs a { min-height: 36px; display: flex; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }.filter-tabs a.active { color: white; border-color: #5f4bd1; background: #282144; }.table-panel { overflow: hidden; }.responsive-table { overflow-x: auto; }table { width: 100%; min-width: 900px; border-collapse: collapse; }th { padding: 12px 16px; color: var(--muted-2); background: #0f0f14; font-size: 9px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }td { padding: 14px 16px; border-top: 1px solid var(--line-soft); vertical-align: middle; }td > small, td > strong, .table-title { display: block; }.table-title { font-weight: 750; }.table-title:hover { color: #b5a7ff; }td > small { margin-top: 4px; color: var(--muted); font-size: 10px; }.platform-inline { display: flex; align-items: center; gap: 8px; }.platform-inline .platform-mark { width: 27px; height: 27px; }.error-text { color: #ffaaa5; }.success-text { color: var(--mint); font-size: 11px; }

.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }.capability-card { position: relative; min-height: 136px; padding: 18px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 15px; background: var(--surface); }.capability-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.capability-card p { margin: 17px 0 0; color: var(--muted); font-size: 11px; }.integration-status { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--amber); }.integration-status.own_accounts { background: var(--mint); }.integration-status.manual { background: var(--coral); }.settings-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) 350px; gap: 14px; align-items: start; }.account-row { min-height: 74px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto minmax(120px,.7fr); align-items: center; gap: 11px; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); }.account-row strong, .account-row small { display: block; }.account-row small { color: var(--muted); font-size: 10px; }.slot-list { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }.slot-list span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 9px; }.settings-stack .panel, .settings-grid > aside.panel { padding: 22px; }.settings-stack .panel > .eyebrow, .settings-stack .panel > h2, .settings-grid > aside.panel > .eyebrow, .settings-grid > aside.panel > h2 { margin-left: 0; margin-right: 0; }.member-row { min-height: 78px; display: grid; grid-template-columns: 44px minmax(170px,1fr) minmax(200px,1.5fr) auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }.member-row strong, .member-row small { display: block; }.member-row small { color: var(--muted); font-size: 10px; }.role-list { display: flex; flex-wrap: wrap; gap: 4px; }.subsection { padding: 22px; border-top: 1px solid var(--line-soft); }.creator-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }.creator-cards article { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line-soft); border-radius: 11px; background: #0f0f14; }.creator-cards article .pill { grid-column: 2; }.creator-cards strong, .creator-cards small { display: block; }.creator-cards small { color: var(--muted); font-size: 9px; }
.activity-list article { min-height: 66px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); }.activity-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #c4b8ff; background: #292245; }.activity-list strong, .activity-list small, .activity-list time { display: block; }.activity-list small, .activity-list time { color: var(--muted); font-size: 10px; }.activity-list article > span:last-child { text-align: right; }
.diagnostics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-bottom: 14px; }.diagnostic-card { display: flex; align-items: center; gap: 12px; min-height: 110px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 15px; background: var(--surface); }.diagnostic-card > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--mint); background: #17352e; font-weight: 900; }.diagnostic-card.warning > span { color: var(--amber); background: #3b2e18; }.diagnostic-card strong, .diagnostic-card small { display: block; }.diagnostic-card small { margin-top: 5px; color: var(--muted); font-size: 10px; word-break: break-all; }.docs-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; }.docs-callout .eyebrow, .docs-callout h2 { margin-left: 0; }.docs-callout p { margin: 5px 0 0; color: var(--muted); }.docs-callout code { color: #c9bdff; }

.form-panel { max-width: 920px; padding: 25px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }.form-grid .full { grid-column: 1/-1; }.form-stack { display: grid; gap: 15px; }.field { display: grid; gap: 7px; }.field > label { color: #cac7d1; font-size: 11px; font-weight: 700; }.form-control, .field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #0d0d12; }.field textarea { min-height: 92px; resize: vertical; }.field input[type="checkbox"] { width: 18px; min-height: 18px; }.field ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; list-style: none; }.field li label { display: flex; align-items: center; gap: 6px; color: var(--muted); }.field small { color: var(--muted-2); }.field-error, .form-errors { margin: 0; color: #ffaaa5; font-size: 11px; }.form-actions { display: flex; justify-content: flex-end; padding-top: 8px; }
.form-actions { align-items: center; gap: 14px; }.draft-save-status { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; color: var(--muted-2); font-size: 11px; }.draft-save-status i { width: 7px; height: 7px; border-radius: 50%; background: #777482; box-shadow: 0 0 0 3px rgb(119 116 130 / 10%); }.draft-save-status.saving i { background: var(--amber); animation: draft-pulse 1s ease-in-out infinite; }.draft-save-status.saved, .draft-save-status.restored { color: #b9d8c9; }.draft-save-status.saved i, .draft-save-status.restored i { background: var(--mint); }.draft-save-status.error { color: #ffaaa5; }.draft-save-status.error i { background: var(--coral); }@keyframes draft-pulse { 50% { opacity: .35; } }
.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 24px; color: var(--muted); text-align: center; }.empty-state.small { min-height: 100px; }.empty-state > span { color: #8c7ddd; font-size: 23px; }.empty-state h2, .empty-state p { margin: 0; }.empty-state p { max-width: 420px; font-size: 12px; }.empty-state.wide { grid-column: 1/-1; }.muted-text { color: var(--muted); }.wide { width: 100%; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(400px,.85fr); background: #0a0a0e; }.auth-visual { position: relative; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line-soft); background: radial-gradient(circle at 55% 35%, #2b2050 0, #111019 43%, #0a0a0e 75%); }.auth-visual::before { content: ""; position: absolute; width: 380px; height: 560px; border: 1px solid rgb(163 142 255 / .16); border-radius: 42% 42% 47% 47%; transform: rotate(18deg); }.auth-orbit { position: absolute; border: 1px solid rgb(140 114 255 / .14); border-radius: 50%; }.orbit-one { width: 720px; height: 720px; }.orbit-two { width: 1020px; height: 1020px; }.auth-preview { position: relative; z-index: 2; width: min(580px, 78%); }.auth-preview h1 { margin: 19px 0 40px; font-size: clamp(48px, 6vw, 88px); line-height: .95; letter-spacing: -.065em; }.mini-pipeline { display: flex; align-items: center; gap: 7px; }.mini-pipeline span { padding: 7px 9px; border: 1px solid #373440; border-radius: 8px; color: var(--muted-2); font-size: 9px; font-weight: 750; }.mini-pipeline span.done { color: #9cebd2; border-color: #2b594d; }.mini-pipeline span.active { color: #d6ceff; border-color: #5a49bb; background: #282144; }.mini-pipeline i { width: 18px; height: 1px; background: #393641; }.auth-panel { display: grid; place-items: center; padding: 40px; }.auth-card { width: min(410px, 100%); }.auth-copy { margin: 68px 0 28px; }.auth-copy h2 { margin: 8px 0 5px; font-size: 34px; letter-spacing: -.04em; }.auth-copy > p:last-child { margin: 0; color: var(--muted); }.auth-note { margin-top: 24px; color: var(--muted-2); font-size: 10px; text-align: center; }

@media (max-width: 1180px) {
  .stats-grid, .diagnostics-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1.4fr .8fr; }.dashboard-grid .span-two { grid-column: span 1; }.dashboard-grid .span-three { grid-column: 1/-1; }
  .card-grid, .library-grid { grid-template-columns: repeat(2,1fr); }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .content-detail-layout, .settings-grid { grid-template-columns: minmax(0,1fr) 300px; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }.sidebar { display: none; }.mobile-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 65px; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); background: rgb(13 13 18 / .94); backdrop-filter: blur(14px); }.brand.compact { gap: 8px; }.brand.compact .brand-lockup { height: 36px; }.mobile-menu { position: relative; }.mobile-menu summary { min-height: 42px; display: grid; place-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; list-style: none; }.mobile-menu summary::-webkit-details-marker { display: none; }.mobile-menu nav { position: absolute; right: 0; top: 48px; width: 220px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); box-shadow: var(--shadow); }.mobile-menu nav a { min-height: 42px; display: flex; align-items: center; padding: 8px 10px; border-radius: 8px; }.mobile-menu nav a:hover { background: #292833; }
  .main-content { padding: 28px 20px 60px; }.page-header { flex-direction: column; }.header-actions { justify-content: flex-start; }
  .dashboard-grid, .detail-grid, .content-detail-layout, .settings-grid { grid-template-columns: 1fr; }.dashboard-grid .span-two, .dashboard-grid .span-three, .span-two, .span-three { grid-column: 1; }.detail-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }.sticky-panel { position: static; }
  .comment-form, .upload-zone { align-items: stretch; flex-direction: column; }.comment-fields { grid-template-columns: 1fr 1fr; }.comment-fields textarea { grid-column: 1/-1; }.upload-controls { flex-wrap: wrap; }
  .member-row { grid-template-columns: 44px minmax(0,1fr) auto; }.member-row .role-list { grid-column: 2/-1; }.creator-cards { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-panel { min-height: 100vh; }.auth-copy { margin-top: 55px; }
}

@media (max-width: 640px) {
  .main-content { padding: 22px 14px 52px; }.page-header { margin-bottom: 22px; }.page-header h1 { font-size: 30px; }.header-actions { width: 100%; }.header-actions .button { flex: 1; }
  .stats-grid, .diagnostics-grid, .card-grid, .library-grid, .capability-grid { grid-template-columns: 1fr; }.stat-card { min-height: 92px; }.dashboard-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 36px 7px minmax(0,1fr); }.timeline-item .pill { grid-column: 3; }.system-strip { align-items: flex-start; flex-wrap: wrap; }.system-strip .button { width: 100%; }
  .calendar-toolbar { align-items: stretch; flex-direction: column; }.filter-row { flex-wrap: wrap; }
  .shoot-card { grid-template-columns: 70px 1fr; min-height: 180px; }.shoot-info { padding: 17px; }.shoot-date strong { font-size: 29px; }
  .detail-sidebar { grid-template-columns: 1fr; }.asset-row { align-items: flex-start; flex-wrap: wrap; }.asset-copy { min-width: 180px; }.asset-row > .button { margin-left: 49px; }.review-popover form { position: fixed; inset: auto 14px 14px; width: auto; }.comment-fields { grid-template-columns: 1fr; }.comment-fields textarea { grid-column: 1; }.comment-form { padding: 13px; }
  .form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: 1; }.form-panel { padding: 18px; }
  .account-row { grid-template-columns: 38px 1fr auto; }.account-row .slot-list { grid-column: 2/-1; justify-content: flex-start; }.member-row { grid-template-columns: 44px 1fr; }.member-row > .pill { grid-column: 2; }.member-row .role-list { grid-column: 2; }
  .docs-callout { align-items: stretch; flex-direction: column; }.activity-list article { grid-template-columns: 31px 1fr; }.activity-list article > span:last-child { grid-column: 2; text-align: left; }
  .auth-panel { padding: 25px 18px; }
}

/* Focused tablet teleprompter */
.teleprompter-body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #030304;
}

.teleprompter-app {
  --teleprompter-font-size: 56px;
  --teleprompter-viewport-height: 100vh;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  height: var(--teleprompter-viewport-height);
  display: grid;
  grid-template-rows: auto 2px minmax(0, 1fr) auto;
  overflow: hidden;
  isolation: isolate;
  color: #f8f7fb;
  background:
    radial-gradient(circle at 50% 35%, rgb(70 58 120 / .11), transparent 42%),
    #030304;
}

.teleprompter-app.is-pseudo-fullscreen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: var(--teleprompter-viewport-height);
}

.teleprompter-topbar {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) minmax(210px, 1fr);
  align-items: center;
  gap: 18px;
  padding: max(9px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: rgb(5 5 7 / .95);
}

.teleprompter-exit,
.teleprompter-top-actions button,
.teleprompter-controls button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #302f37;
  border-radius: 13px;
  color: #eeedf2;
  background: #111116;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.teleprompter-exit {
  width: fit-content;
  font-size: 12px;
  font-weight: 750;
}

.teleprompter-exit > span:first-child {
  font-size: 21px;
  line-height: 1;
}

.teleprompter-title {
  min-width: 0;
  text-align: center;
}

.teleprompter-title small,
.teleprompter-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teleprompter-title small {
  margin-bottom: 2px;
  color: #88858f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.teleprompter-title strong {
  font-size: 14px;
}

.teleprompter-top-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.teleprompter-top-actions button {
  flex: 0 0 auto;
  font-size: 11px;
}

.teleprompter-top-actions button:hover,
.teleprompter-exit:hover,
.teleprompter-controls button:hover {
  border-color: #60528f;
  background: #1b1826;
}

.teleprompter-wake {
  min-width: 0;
  overflow: hidden;
  color: #77747f;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teleprompter-wake.is-active {
  color: #8ce4c8;
}

.teleprompter-progress {
  position: relative;
  z-index: 5;
  overflow: hidden;
  background: #15141a;
}

.teleprompter-progress i {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #7659ff, #b59fff);
  box-shadow: 0 0 14px rgb(118 89 255 / .55);
  transition: width .12s linear;
}

.teleprompter-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #302b45 transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.teleprompter-stage:focus-visible {
  outline: 2px solid #9f8aff;
  outline-offset: -3px;
}

.teleprompter-focus-guide {
  position: sticky;
  z-index: 3;
  top: 38%;
  height: 0;
  pointer-events: none;
}

.teleprompter-focus-guide::before,
.teleprompter-focus-guide::after {
  content: "";
  position: absolute;
  top: -10px;
  width: clamp(18px, 6vw, 86px);
  height: 20px;
  opacity: .72;
}

.teleprompter-focus-guide::before {
  left: 0;
  background: linear-gradient(90deg, #8369ff, transparent);
}

.teleprompter-focus-guide::after {
  right: 0;
  background: linear-gradient(-90deg, #8369ff, transparent);
}

.teleprompter-focus-guide i {
  width: min(26ch, calc(100vw - 170px));
  height: 1px;
  display: block;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgb(169 149 255 / .3), transparent);
}

.teleprompter-script {
  width: min(23ch, calc(100vw - 150px));
  margin: 0 auto;
  font-size: var(--teleprompter-font-size);
  line-height: 1.46;
  letter-spacing: -.025em;
  transform-origin: center top;
  overflow-wrap: anywhere;
}

.teleprompter-app.is-mirrored .teleprompter-script {
  transform: scaleX(-1);
}

.teleprompter-spacer {
  height: 36dvh;
}

.teleprompter-spacer.end {
  height: 48dvh;
}

.teleprompter-section {
  margin: 0 0 1.5em;
}

.teleprompter-section > span {
  display: block;
  margin-bottom: 1.05em;
  color: #806be9;
  font-size: .18em;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.teleprompter-section p {
  margin: 0;
}

.teleprompter-section.hook p {
  color: #fff;
  font-weight: 760;
}

.teleprompter-section.body p {
  color: #f2f0f5;
}

.teleprompter-section.cta {
  padding-left: .48em;
  border-left: .08em solid #8066ff;
}

.teleprompter-section.cta p {
  color: #cfc5ff;
}

.teleprompter-finish {
  display: grid;
  justify-items: center;
  gap: .25em;
  padding: 1em 0;
  color: #85818c;
  text-align: center;
}

.teleprompter-finish span {
  width: 1.4em;
  height: 1.4em;
  display: grid;
  place-items: center;
  border: 1px solid #3a3741;
  border-radius: 50%;
  font-size: .38em;
}

.teleprompter-finish strong {
  font-size: .22em;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teleprompter-countdown {
  position: fixed;
  z-index: 20;
  inset: 0;
  place-items: center;
  color: white;
  background: rgb(0 0 0 / .7);
  font-size: clamp(110px, 24vw, 260px);
  font-weight: 850;
  line-height: 1;
  text-shadow: 0 0 70px rgb(123 91 255 / .62);
  pointer-events: none;
}

.teleprompter-countdown:not([hidden]) {
  display: grid;
}

.teleprompter-controls {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px 22px;
  padding: 11px max(16px, env(safe-area-inset-right)) max(11px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid rgb(255 255 255 / .09);
  background: rgb(7 7 9 / .97);
  box-shadow: 0 -18px 55px rgb(0 0 0 / .38);
}

.teleprompter-control-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.teleprompter-control-group.motion-controls {
  justify-content: flex-end;
}

.teleprompter-control-group button {
  min-width: 66px;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
  padding: 5px 10px;
}

.teleprompter-control-group button > span {
  font-size: 18px;
}

.teleprompter-control-group button small {
  font-size: 11px;
}

.teleprompter-control-group label {
  width: min(230px, 100%);
  min-width: 120px;
  display: grid;
  gap: 7px;
  color: #aaa7b0;
  font-size: 11px;
  font-weight: 750;
}

.teleprompter-control-group label > span {
  display: flex;
  justify-content: space-between;
}

.teleprompter-control-group output {
  color: #d9d1ff;
  font-variant-numeric: tabular-nums;
}

.teleprompter-control-group input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: #8a6dff;
  cursor: pointer;
}

.teleprompter-play {
  width: 110px;
  min-height: 64px !important;
  flex-direction: column;
  gap: 2px !important;
  border-color: #6552b8 !important;
  color: white !important;
  background: linear-gradient(145deg, #7458ec, #4e3aaa) !important;
  box-shadow: 0 8px 30px rgb(91 67 190 / .3);
}

.teleprompter-play > span {
  font-size: 20px;
  line-height: 1;
}

.teleprompter-play strong {
  font-size: 11px;
}

.teleprompter-play[aria-pressed="true"] {
  border-color: #886b65 !important;
  background: linear-gradient(145deg, #6f5146, #4d352e) !important;
}

.teleprompter-control-group button[aria-pressed="true"] {
  border-color: #6651bd;
  color: #d9d0ff;
  background: #292044;
}

.teleprompter-touch-hint {
  grid-column: 1 / -1;
  margin: -5px 0 0;
  color: #706d76;
  font-size: 8px;
  text-align: center;
}

.teleprompter-status {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: calc(124px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: 999px;
  color: #a9a5b0;
  background: rgb(11 11 15 / .82);
  font-size: 9px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.teleprompter-app.is-playing .teleprompter-status {
  color: #a6ead5;
  border-color: rgb(91 218 179 / .22);
}

@media (max-width: 820px) {
  .teleprompter-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .teleprompter-exit > span:last-child,
  .teleprompter-top-actions button > span:last-child,
  .teleprompter-wake {
    display: none;
  }

  .teleprompter-exit,
  .teleprompter-top-actions button {
    width: 48px;
    padding: 8px;
  }

  .teleprompter-script {
    width: min(21ch, calc(100vw - 72px));
  }

  .teleprompter-focus-guide i {
    width: calc(100vw - 64px);
  }

  .teleprompter-controls {
    gap: 8px;
    padding-right: max(9px, env(safe-area-inset-right));
    padding-left: max(9px, env(safe-area-inset-left));
  }

  .teleprompter-control-group {
    gap: 6px;
  }

  .teleprompter-control-group label {
    min-width: 80px;
  }

  .teleprompter-control-group button {
    min-width: 52px;
  }
}

@media (max-width: 540px) {
  .teleprompter-app {
    --teleprompter-font-size: 44px;
  }

  .teleprompter-topbar {
    min-height: 58px;
  }

  .teleprompter-title strong {
    font-size: 12px;
  }

  .teleprompter-controls {
    grid-template-columns: 1fr auto 1fr;
  }

  .teleprompter-control-group {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .teleprompter-control-group.motion-controls {
    flex-direction: column;
  }

  .teleprompter-control-group button {
    width: 100%;
    min-height: 56px;
    flex-direction: row;
  }

  .teleprompter-control-group label > span {
    display: none;
  }

  .teleprompter-play {
    width: 96px;
    min-height: 64px !important;
  }

  .teleprompter-script {
    width: calc(100vw - 40px);
    line-height: 1.42;
  }

  .teleprompter-touch-hint {
    display: none;
  }

  .teleprompter-status {
    bottom: calc(148px + env(safe-area-inset-bottom));
  }
}

@media (orientation: landscape) and (max-height: 700px) {
  .teleprompter-topbar {
    min-height: 54px;
    padding-top: max(5px, env(safe-area-inset-top));
    padding-bottom: 5px;
  }

  .teleprompter-controls {
    gap: 8px 16px;
    padding-top: 7px;
    padding-bottom: max(7px, env(safe-area-inset-bottom));
  }

  .teleprompter-play {
    min-height: 52px !important;
  }

  .teleprompter-touch-hint {
    display: none;
  }

  .teleprompter-status {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .teleprompter-spacer {
    height: 32dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teleprompter-progress i {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Editable account and schedule controls */
.platform-guide { margin-bottom: 22px; overflow: hidden; }
.platform-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 23px 18px; }
.platform-guide-heading h2, .section-heading-inline h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.02em; }
.platform-guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.platform-guide-grid article { min-width: 0; padding: 20px 22px; border-right: 1px solid var(--line-soft); }
.platform-guide-grid article:last-child { border-right: 0; }
.platform-guide-grid article > span { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid #42376c; border-radius: 9px; color: #b9adff; background: #211b38; font-size: 9px; font-weight: 850; }
.platform-guide-grid strong { display: block; font-size: 13px; }
.platform-guide-grid p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.platform-safety-note { display: flex; align-items: flex-start; gap: 13px; margin: 0 14px 14px; padding: 16px 18px; border: 1px solid #31594f; border-radius: 13px; background: #122a25; }
.platform-safety-note > svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--mint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.platform-safety-note strong { display: block; color: #caffef; font-size: 12px; }
.platform-safety-note p { margin: 5px 0 0; color: #a7d4c7; font-size: 11px; }
.platform-readiness { margin-bottom: 14px; }
.section-heading-inline { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 12px; padding: 0 2px; }
.section-heading-inline small { max-width: 420px; color: var(--muted-2); font-size: 10px; text-align: right; }
.settings-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.account-help { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding: 18px 20px; }
.account-help-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #c8bdff; background: #292245; font-size: 18px; }
.account-help strong { display: block; }
.account-help p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.account-help code { color: #cfc5ff; }
.account-row { grid-template-columns: 38px minmax(0,1fr) auto auto; }
.account-primary strong, .account-primary small, .account-primary a { display: block; }
.account-primary a { width: fit-content; margin-top: 4px; color: #b4a6ff; font-size: 10px; }
.account-statuses { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.account-details { grid-column: 2/-1; display: flex; flex-wrap: wrap; gap: 7px 16px; padding-top: 7px; color: var(--muted); font-size: 10px; }
.account-details span:last-child { flex: 1 1 320px; }
.slot-list { grid-column: 2/-1; }
.slot-chip { display: inline-flex !important; align-items: center; gap: 5px; }
.slot-chip a { color: #c2b7ff; }
.slot-chip form { display: inline-flex; margin: 0; }
.slot-chip button { width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; color: #ffaaa5; background: transparent; }
.member-row { grid-template-columns: 44px minmax(170px,1fr) minmax(200px,1.5fr) auto auto; }
.creator-cards article { grid-template-columns: 44px minmax(0,1fr) auto; }
.creator-cards article .pill { grid-column: 2; }
.creator-cards article .button { grid-column: 3; grid-row: 1/3; }
.queue-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.queue-actions form { margin: 0; }
.mini-publications > div { grid-template-columns: 30px minmax(0,1fr) auto 25px; }
.edit-glyph { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #b9adff; background: #282142; font-size: 11px; }

@media (max-width: 900px) {
  .platform-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-guide-grid article:nth-child(2) { border-right: 0; }
  .platform-guide-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .member-row { grid-template-columns: 44px minmax(0,1fr) auto; }
  .member-row .role-list { grid-column: 2/-1; }
  .member-row > .button { grid-column: 3; grid-row: 1; }
}

@media (max-width: 640px) {
  .platform-guide-heading, .section-heading-inline { align-items: flex-start; flex-direction: column; }
  .section-heading-inline small { text-align: left; }
  .platform-guide-grid { grid-template-columns: 1fr; }
  .platform-guide-grid article, .platform-guide-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .platform-guide-grid article:last-child { border-bottom: 0; }
  .platform-safety-note { margin-right: 10px; margin-left: 10px; }
  .account-help { flex-direction: column; }
  .account-row { grid-template-columns: 38px minmax(0,1fr) auto; }
  .account-row > .button { grid-column: 2/-1; justify-self: start; }
  .account-statuses { grid-column: 2/-1; justify-content: flex-start; }
  .account-details, .account-row .slot-list { grid-column: 2/-1; width: 100%; }
  .member-row { grid-template-columns: 44px minmax(0,1fr); }
  .member-row > .button { grid-column: 2; grid-row: auto; width: fit-content; }
  .creator-cards article { grid-template-columns: 44px minmax(0,1fr); }
  .creator-cards article .button { grid-column: 2; grid-row: auto; width: fit-content; }
}

/* Mobile application shell and touch-first layouts */
@media (max-width: 900px) {
  .mobile-header {
    padding-top: max(11px, env(safe-area-inset-top));
  }

  .mobile-menu summary {
    min-width: 64px;
    min-height: 44px;
  }

  .mobile-menu nav {
    width: min(320px, calc(100vw - 28px));
    max-height: calc(100dvh - 82px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-menu nav a,
  .mobile-menu nav button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    text-align: left;
  }

  .mobile-menu nav a:hover,
  .mobile-menu nav button:hover {
    background: #292833;
  }

  .mobile-menu nav form {
    margin: 4px 0 0;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .mobile-menu nav button {
    color: #ffaaa5;
  }

  .main-content {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(68px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 5px max(5px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(5px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgb(13 13 18 / .96);
    box-shadow: 0 -14px 40px rgb(0 0 0 / .24);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 11px;
    color: var(--muted-2);
  }

  .mobile-bottom-nav a span {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-bottom-nav a small {
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav a.active {
    color: #b9adff;
    background: rgb(140 114 255 / .11);
  }

  .mobile-scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: var(--muted-2);
    font-size: 10px;
  }

  .kanban-navigation {
    top: calc(73px + env(safe-area-inset-top));
  }

  .calendar-scroll,
  .filter-tabs {
    scrollbar-width: thin;
    scrollbar-color: #4a455e transparent;
  }

  .calendar-scroll,
  .kanban {
    overscroll-behavior-inline: contain;
  }

  .calendar-scroll {
    scroll-snap-type: x proximity;
  }

  .calendar-grid {
    min-width: 770px;
  }

  .calendar-day {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .page-header > .button,
  .page-header > form,
  .page-header > form .button,
  .header-actions > a,
  .header-actions > form,
  .header-actions > form .button {
    width: 100%;
  }

  .header-actions > a,
  .header-actions > form {
    flex: 1 1 100%;
  }

  .inline-filter,
  .inline-filter select,
  .filter-row,
  .filter-row label,
  .filter-row select,
  .filter-row .button {
    width: 100%;
  }

  .filter-row label {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-panel {
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .month-switcher {
    justify-content: space-between;
  }

  .month-switcher h2 {
    min-width: 0;
  }

  .calendar-panel .mobile-scroll-hint {
    padding: 0 14px;
  }

  .kanban-navigation {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
  }

  .kanban-navigation-copy {
    justify-content: space-between;
    white-space: normal;
  }

  .kanban-navigation-copy span {
    font-size: 12px;
  }

  .kanban-shell::before,
  .kanban-shell::after {
    top: 114px;
    width: 28px;
  }

  .kanban {
    grid-auto-columns: min(82vw, 300px);
    margin-right: -14px;
    padding-right: 14px;
  }

  .kanban-column {
    min-height: 480px;
  }

  .responsive-table {
    overflow: visible;
  }

  .responsive-table table,
  .responsive-table tbody {
    min-width: 0;
    display: block;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .responsive-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .responsive-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: var(--surface-2);
  }

  .responsive-table td {
    min-height: 44px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--line-soft);
    overflow-wrap: anywhere;
  }

  .responsive-table td:first-child {
    border-top: 0;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .responsive-table td[colspan] {
    display: block;
  }

  .responsive-table td[colspan]::before {
    display: none;
  }

  .queue-actions,
  .queue-actions .button,
  .queue-actions form,
  .queue-actions details {
    width: 100%;
  }

  .queue-actions .button {
    min-height: 44px;
  }

  .table-popover form {
    position: fixed;
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 14px;
    top: auto;
    width: auto;
  }

  .upload-controls,
  .upload-controls select,
  .upload-controls input,
  .upload-controls .button {
    width: 100%;
    max-width: none;
  }

  .asset-row > .button {
    width: calc(100% - 49px);
  }

  .asset-review-actions {
    margin-left: 49px;
  }

  .icon-button,
  .slot-chip a,
  .slot-chip button {
    min-width: 44px;
    min-height: 44px;
  }

  .slot-chip {
    min-height: 44px;
    padding-left: 8px !important;
  }

  .slot-chip button {
    border-radius: 8px;
  }

  .auth-panel {
    min-height: 100dvh;
    padding-top: max(25px, env(safe-area-inset-top));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(25px, env(safe-area-inset-bottom));
    padding-left: max(18px, env(safe-area-inset-left));
  }
}

@media (max-width: 380px) {
  .stats-grid,
  .diagnostics-grid {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav a small {
    font-size: 8px;
  }
}

/* Idea bank and shoot planning */
.filter-form { display: flex; align-items: center; gap: 9px; }
.filter-form label { color: var(--muted); font-size: 11px; }
.filter-form select { min-height: 42px; padding: 8px 34px 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-2); }
.idea-capture { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 2fr); align-items: end; gap: 24px; margin-bottom: 14px; padding: 22px; }
.idea-capture-copy h2 { margin: 3px 0 5px; font-size: 20px; }
.idea-capture-copy > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.idea-capture-form { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(260px, 1.7fr) minmax(190px, .8fr) auto; align-items: end; gap: 12px; }
.idea-capture-form .button { margin-bottom: 1px; }
.idea-attachment-field input { max-width: 100%; padding: 8px; color: var(--muted); font-size: 10px; }
.idea-attachment-field > small { font-size: 9px; }
.ideas-board { display: grid; gap: 10px; padding-bottom: 12px; }
.idea-status-section { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 15px; background: #0f0f14; }
.idea-status-section > header { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.idea-status-section > header h2 { margin: 0; font-size: 12px; }
.idea-status-section > header .count-badge { width: 25px; min-width: 25px; height: 25px; margin-left: auto; border-radius: 8px; font-size: 10px; }
.idea-status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #9e8dff; box-shadow: 0 0 0 4px rgb(158 141 255 / .1); }
.status-in_progress .idea-status-dot { background: var(--amber); box-shadow: 0 0 0 4px rgb(255 200 102 / .1); }
.status-scripted .idea-status-dot { background: var(--mint); box-shadow: 0 0 0 4px rgb(92 225 185 / .1); }
.status-filmed .idea-status-dot { background: var(--sky); box-shadow: 0 0 0 4px rgb(99 193 255 / .1); }
.status-parked .idea-status-dot { background: var(--muted-2); box-shadow: none; }
.idea-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: start; gap: 7px; padding: 7px; }
.idea-card { min-width: 0; padding: 11px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface); }
.idea-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.idea-card .creator-chip { gap: 5px; font-size: 10px; }
.idea-card .creator-chip i { width: 22px; height: 22px; font-size: 9px; }
.idea-card time, .idea-byline { color: var(--muted-2); font-size: 9px; }
.idea-card .idea-text { margin: 8px 0 6px; overflow-wrap: anywhere; color: #e5e3e9; font-size: 12px; line-height: 1.42; }
.idea-byline { display: block; }
.idea-attachments { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.idea-attachment-preview, .idea-attachment-file { min-width: 0; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #0d0d12; }
.idea-attachment-preview { position: relative; width: 68px; height: 48px; }
.idea-attachment-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.idea-attachment-preview.is-media-unavailable::before,
.scenario-reference.is-media-unavailable::before,
.idea-attachment-list article.is-media-unavailable::before { content: "Фото"; display: grid; place-items: center; color: #9f92d4; background: #191624; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.idea-attachment-preview.is-media-unavailable::before { position: absolute; inset: 0; }
.scenario-reference.is-media-unavailable::before { width: 48px; height: 48px; border-radius: 8px; }
.idea-attachment-list article.is-media-unavailable::before { width: 44px; height: 44px; grid-column: 1; grid-row: 1; border-radius: 8px; }
.idea-attachment-preview small { position: absolute; right: 3px; bottom: 3px; left: 3px; overflow: hidden; padding: 2px 4px; border-radius: 4px; color: white; background: rgb(0 0 0 / .68); font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.idea-attachment-file { max-width: 128px; height: 35px; gap: 5px; padding: 5px 7px; color: #c4b8ff; }
.idea-attachment-file small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-more { color: var(--muted-2); font-size: 8px; }
.idea-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.idea-actions form { display: inline-flex; margin: 0; }
.idea-actions .button.small { min-height: 30px; padding: 5px 8px; border-radius: 8px; font-size: 10px; }
.idea-empty { grid-column: 1 / -1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted-2); }
.idea-empty p { margin: 0; font-size: 10px; }
.idea-form-attachments { max-width: 920px; margin-top: 14px; }
.idea-attachment-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 7px; padding: 0 14px 14px; }
.idea-attachment-list article { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 10px; background: #0d0d12; }
.idea-attachment-list img, .idea-file-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; object-fit: cover; color: #c4b8ff; background: #292245; }
.idea-attachment-list strong, .idea-attachment-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-attachment-list strong { font-size: 10px; }
.idea-attachment-list small { color: var(--muted-2); font-size: 8px; }
.idea-attachment-list form { display: inline-flex; margin: 0; }
.danger-text { color: #ffaaa5 !important; }
.delete-confirm { position: relative; }
.delete-confirm > summary { list-style: none; }
.delete-confirm > summary::-webkit-details-marker { display: none; }
.delete-confirm > form { z-index: 20; display: grid; gap: 9px; padding: 12px; border: 1px solid #66393d; border-radius: 11px; color: #ffd2d0; background: #2a171a; box-shadow: var(--shadow); }
.delete-confirm > form span, .delete-confirm > form strong, .delete-confirm > form small { display: block; }
.delete-confirm > form span, .delete-confirm > form strong { font-size: 11px; }
.delete-confirm > form small { color: #c99b9e; font-size: 9px; }
.delete-confirm.compact[open] { flex: 1 1 100%; }
.delete-confirm.compact > form { margin-top: 6px; }
.header-delete > form { position: absolute; right: 0; top: calc(100% + 7px); width: 290px; }

.media-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: clamp(14px, 3vw, 36px); border: 0; color: var(--text); background: transparent; overflow: hidden; }
.media-viewer[open] { display: grid; place-items: center; }
.media-viewer::backdrop { background: rgb(2 2 5 / .88); backdrop-filter: blur(8px); }
.media-viewer-shell { width: min(1160px, 100%); height: min(860px, 100%); min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid #393744; border-radius: 18px; background: #0d0d12; box-shadow: 0 28px 90px rgb(0 0 0 / .55); }
.media-viewer-shell > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 9px 8px 18px; border-bottom: 1px solid var(--line-soft); }
.media-viewer-shell > header strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-viewer-close { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: white; background: var(--surface-3); font-size: 25px; line-height: 1; }
.media-viewer-close:hover { color: var(--coral); border-color: #754148; }
.media-viewer-stage { --media-inset: 16px; --media-double-inset: 32px; min-width: 0; min-height: 0; position: relative; display: grid; place-items: center; padding: var(--media-inset); overflow: hidden; overscroll-behavior: contain; background: #08080c; }
.media-viewer-stage img { width: auto; height: auto; max-width: 100%; max-height: 72dvh; display: block; border-radius: 8px; object-fit: contain; }
.media-viewer-stage video { position: absolute; inset: var(--media-inset); width: calc(100% - var(--media-double-inset)); height: calc(100% - var(--media-double-inset)); max-width: none; max-height: none; display: block; border-radius: 8px; object-fit: contain; object-position: center; background: black; }
.media-viewer-hint { margin: 0; padding: 8px 16px 10px; color: var(--muted-2); font-size: 9px; text-align: center; }
.media-viewer-error { max-width: 420px; margin: 12px; padding: 12px 14px; border: 1px solid #66393d; border-radius: 10px; color: #ffd2d0; background: #2a171a; text-align: center; }
body:has(.media-viewer[open]) { overflow: hidden; }
.shoot-content-list .content-row { grid-template-columns: 38px minmax(0, 1fr) auto auto auto; }
.teleprompter-row-button { color: #dcd4ff; border-color: #4f447a; background: #282142; }
.shoot-content-list .row-main { min-width: 0; }
.shoot-content-list .row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shoot-assignment { margin: 18px; padding: 19px; border: 1px solid #38304f; border-radius: 14px; background: #15131f; }
.shoot-assignment h3 { margin: 3px 0 5px; font-size: 17px; }
.shoot-assignment > div > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.assignment-form { display: grid; gap: 13px; margin-top: 16px; }
.assignment-form #id_content_items { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; min-height: 0; padding: 0; border: 0; background: transparent; }
.assignment-form #id_content_items > div { min-width: 0; }
.assignment-form #id_content_items label { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; color: #d6d2df; background: #0d0d12; font-size: 11px; }
.assignment-form #id_content_items input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--primary-strong); }
.assignment-form .button { justify-self: end; }
.source-idea { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 0 22px 14px; padding: 12px 14px; border: 1px solid #3b315d; border-radius: 12px; background: #19162a; }
.source-idea > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #c8bcff; background: #2a2346; }
.source-idea p, .source-idea strong { display: block; }
.source-idea p { margin: 0; color: var(--muted); font-size: 11px; }
.source-idea strong { margin-bottom: 2px; color: #e2ddff; }
.source-idea a { color: #b8a9ff; font-size: 11px; font-weight: 750; }
.scenario-references { margin: 0 22px 16px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: #0d0d12; }
.scenario-references > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.scenario-references > header strong { color: #d8d4e2; font-size: 10px; letter-spacing: .1em; }
.scenario-references > header small { color: var(--muted-2); font-size: 9px; }
.scenario-reference-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px; }
.scenario-reference { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 9px; overflow: hidden; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); transition: border-color .18s ease, background .18s ease; }
.scenario-reference:hover { border-color: #534975; background: #211c35; }
.scenario-reference > img, .scenario-reference-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; object-fit: cover; color: #d3c9ff; background: #292245; font-size: 18px; }
.scenario-reference.video .scenario-reference-icon { color: white; background: linear-gradient(145deg, #44358a, #241e42); }
.scenario-reference-copy, .scenario-reference-copy strong, .scenario-reference-copy small { min-width: 0; display: block; }
.scenario-reference-copy strong { overflow: hidden; color: #e8e5ef; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.scenario-reference-copy small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }

@media (max-width: 1180px) {
  .idea-capture { grid-template-columns: 1fr; }
  .idea-capture-form { grid-template-columns: 160px minmax(0, 1fr) auto; }
  .idea-capture-form .idea-text-field { grid-column: 2 / 4; }
  .idea-capture-form .idea-attachment-field { grid-column: 1 / 3; }
  .idea-capture-form .button { grid-column: 3; }
}

@media (max-width: 900px) {
  .idea-card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  .filter-form, .filter-form select { width: 100%; }
  .filter-form { align-items: stretch; flex-direction: column; }
  .idea-capture { padding: 17px; }
  .idea-capture-form { grid-template-columns: 1fr; }
  .idea-capture-form .idea-text-field, .idea-capture-form .idea-attachment-field, .idea-capture-form .button { grid-column: auto; }
  .idea-capture-form .button { width: 100%; }
  .idea-card-grid { grid-template-columns: 1fr; }
  .idea-actions .button.small { min-height: 44px; padding: 8px 11px; font-size: 11px; }
  .idea-attachment-list { grid-template-columns: 1fr; padding: 0 10px 10px; }
  .idea-attachment-list article { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .idea-attachment-list article > .button { grid-column: 2; width: fit-content; }
  .idea-attachment-list article > form { grid-column: 3; grid-row: 1 / 3; }
  .header-delete > form { position: fixed; z-index: 60; inset: auto 14px calc(82px + env(safe-area-inset-bottom)) 14px; width: auto; }
  .media-viewer { padding: 0; }
  .media-viewer-shell { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .media-viewer-shell > header { padding-top: max(8px, env(safe-area-inset-top)); padding-right: max(9px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .media-viewer-stage { --media-inset: 8px; --media-double-inset: 16px; }
  .media-viewer-hint { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .shoot-content-list .content-row { grid-template-columns: 36px minmax(0, 1fr) auto auto; padding: 11px 13px; }
  .shoot-content-list .pill { grid-column: 2; }
  .shoot-content-list .teleprompter-row-button { grid-column: 3; grid-row: 1 / 3; }
  .shoot-content-list form { grid-column: 4; grid-row: 1 / 3; }
  .shoot-assignment { margin: 12px; padding: 15px; }
  .assignment-form #id_content_items { grid-template-columns: 1fr; }
  .assignment-form .button { width: 100%; }
  .source-idea { grid-template-columns: 29px minmax(0, 1fr); }
  .source-idea a { grid-column: 2; }
  .scenario-references { margin: 0 14px 14px; padding: 10px; }
  .scenario-reference-list { grid-template-columns: 1fr; }
}

/* Mobile-first source uploader */
.upload-zone {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.4fr);
  align-items: end;
}
.upload-zone-copy { align-self: center; }
.upload-zone-copy small { max-width: 520px; line-height: 1.45; }
.upload-controls {
  display: grid;
  grid-template-columns: minmax(125px, .45fr) minmax(220px, 1fr) auto;
  align-items: end;
}
.upload-controls label { min-width: 0; display: grid; gap: 5px; }
.upload-controls label > span { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.upload-controls select,
.upload-controls input[type="file"] {
  width: 100%;
  max-width: none;
  min-height: 44px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-2);
}
.upload-controls input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 9px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: #39314f;
  font-weight: 700;
}
.upload-zone.is-enhanced [data-upload-submit] { display: none; }
.upload-zone.is-enhanced.has-upload-error [data-upload-submit] { display: inline-flex; }
.upload-status {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.5fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid #3d3559;
  border-radius: 11px;
  background: #181524;
}
.upload-status[hidden] { display: none; }
.upload-status-copy { min-width: 0; }
.upload-status-copy strong,
.upload-status-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-status progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: var(--primary);
  background: #2b2836;
  accent-color: var(--primary);
}
.upload-status progress::-webkit-progress-bar { border-radius: 999px; background: #2b2836; }
.upload-status progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #7658f7, #9f8cff); }
.upload-status progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #7658f7, #9f8cff); }
.upload-zone.has-upload-error .upload-status { border-color: #66393d; background: #2a171a; }
.upload-zone.has-upload-success .upload-status { border-color: #305b51; background: #15352e; }
.asset-upload-locked { margin: 16px; }

@media (max-width: 900px) {
  .upload-zone { grid-template-columns: 1fr; align-items: stretch; }
  .upload-controls { grid-template-columns: minmax(120px, .45fr) minmax(220px, 1fr); }
  .upload-controls [data-upload-submit] { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .upload-zone { gap: 16px; margin: 12px; padding: 14px; }
  .upload-controls { grid-template-columns: 1fr; }
  .upload-controls [data-upload-submit] { grid-column: auto; }
  .upload-status { grid-template-columns: minmax(0, 1fr) auto; }
  .upload-status progress { grid-column: 1 / -1; grid-row: 2; height: 11px; }
  .upload-status [data-upload-cancel] { grid-column: 2; grid-row: 1; min-height: 44px; }
  .upload-status-copy small { white-space: normal; overflow-wrap: anywhere; }
}
