/* =====================================================================================
   Studiora "Studio pro" design (Nov 2026)
   A calm, dark-first creative-tool look: graphite surfaces, one violet accent, tight type,
   monospace numbers, a big monitor in the editor. Loaded after styles.css and overrides it.
   To go back to the previous look: node design-backups/restore.cjs 2026-11-10-before-redesign
   ===================================================================================== */

/* ---------- tokens: studio dark (default) ---------- */
:root, :root[data-theme="dark"], :root[data-theme="auto"] {
  --bg: #0b0b0d; --chrome: #101013; --panel: #151519; --panel2: #1b1b20; --field: #0f0f12; --raise: #1f1f25;
  --hover: #23232a; --soft: #26262d; --line: #24242b; --line2: #32323b;
  --text: #ececf0; --text2: #c9c9d1; --muted: #9a9aa6;
  --brand: #6d4aff; --brand-h: #7d5cff; --link: #b4a2ff; --accent: #8b6dff; --accent2: #ff7a59;
  --ok: #4ade80; --err: #ff6b81; --warn: #fbbf24;
  --grad: linear-gradient(90deg, #6d4aff, #a26bff);
  --glow: none;
  --shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 12px 32px rgb(0 0 0 / .5);
  --r: 10px;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --c-video: #8b6dff; --c-pod: #8b6dff; --c-presenter: #8b6dff; --c-design: #8b6dff; --c-seo: #8b6dff; --c-channels: #8b6dff; --c-clips: #8b6dff; --c-footage: #8b6dff; --c-brand: #8b6dff;
  color-scheme: dark;
}
/* studio light: same layout, cool paper greys */
:root[data-theme="light"] {
  --bg: #f4f4f6; --chrome: #ececf0; --panel: #ffffff; --panel2: #f6f6f8; --field: #ffffff; --raise: #ffffff;
  --hover: #ebebef; --soft: #e9e9ee; --line: #e3e3e8; --line2: #d4d4dc;
  --text: #121216; --text2: #2b2b33; --muted: #5d5d6a;
  --brand: #5b3ce0; --brand-h: #4d30c9; --link: #4a2fc2; --accent: #5b3ce0; --accent2: #e8563a;
  --ok: #15803d; --err: #c81e3a; --warn: #b45309;
  --grad: linear-gradient(90deg, #5b3ce0, #8b5cf6);
  --shadow: 0 1px 2px rgb(16 16 24 / .06), 0 10px 28px rgb(16 16 24 / .08);
  --c-video: #5b3ce0; --c-pod: #5b3ce0; --c-presenter: #5b3ce0; --c-design: #5b3ce0; --c-seo: #5b3ce0; --c-channels: #5b3ce0; --c-clips: #5b3ce0; --c-footage: #5b3ce0; --c-brand: #5b3ce0;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f4f4f6; --chrome: #ececf0; --panel: #ffffff; --panel2: #f6f6f8; --field: #ffffff; --raise: #ffffff;
    --hover: #ebebef; --soft: #e9e9ee; --line: #e3e3e8; --line2: #d4d4dc;
    --text: #121216; --text2: #2b2b33; --muted: #5d5d6a;
    --brand: #5b3ce0; --brand-h: #4d30c9; --link: #4a2fc2; --accent: #5b3ce0; --accent2: #e8563a;
    --ok: #15803d; --err: #c81e3a; --warn: #b45309;
    --grad: linear-gradient(90deg, #5b3ce0, #8b5cf6);
    --shadow: 0 1px 2px rgb(16 16 24 / .06), 0 10px 28px rgb(16 16 24 / .08);
    --c-video: #5b3ce0; --c-pod: #5b3ce0; --c-presenter: #5b3ce0; --c-design: #5b3ce0; --c-seo: #5b3ce0; --c-channels: #5b3ce0; --c-clips: #5b3ce0; --c-footage: #5b3ce0; --c-brand: #5b3ce0;
    color-scheme: light;
  }
}

/* ---------- base ---------- */
body { background: var(--bg); font-family: var(--font); font-size: 14px; line-height: 1.5; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
body { background-attachment: initial; }
h1, h2, h3, .brand, .title-input, .cnum, .qring, .drawer-head b, .ebox b, .ch-title b, .dchan-name b, .genre b { font-family: var(--font-head); letter-spacing: -0.02em; }
h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 15px; font-weight: 600; margin: 28px 0 12px; color: var(--text); }
h3 { font-size: 14px; font-weight: 600; }
h4 { font-size: 13px; font-weight: 600; }
.sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.muted { font-size: 13px; } .small { font-size: 13px; }
.muted a, small a, .auth a, .link, .lnk { color: var(--link); }
::selection { background: color-mix(in srgb, var(--brand) 40%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* numbers and timecodes line up like in an editor */
.pdur, .cnum, .stat b, .dstats b, .qring, .qs, .qb, .tlen, .navbadge, .ch-counts, .q-score, .rq-row .muted, .vbadge { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ic { stroke-width: 1.7; }

/* ---------- app frame ---------- */
.side { width: 232px; background: var(--chrome); backdrop-filter: none; border-right: 1px solid var(--line); padding: 14px 10px 12px; }
.brand { font-size: 15px; font-weight: 600; gap: 9px; padding: 4px 10px 0; margin-bottom: 14px; height: 32px; }
.brand .logo { width: 24px; height: 24px; border-radius: 7px; }
.navh { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 10px 6px; }
nav a { position: relative; gap: 10px; padding: 6px 10px; margin-bottom: 1px; border-radius: 7px; font-size: 14px; color: var(--text2); min-height: 32px; }
nav a .ic { width: 18px; height: 18px; color: var(--muted) !important; }
nav a:hover { background: var(--hover); color: var(--text); }
nav a:hover .ic { transform: none; color: var(--text2) !important; }
nav a.on { background: var(--hover); color: var(--text); font-weight: 600; }
nav a.on .ic { color: var(--link) !important; stroke-width: 2; }
nav a.on::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.navbadge { background: var(--brand); height: 18px; min-width: 18px; font-size: 11px; }
.side-foot { border-top: 1px solid var(--line); padding-top: 10px; }
.theme-btn { font-size: 13px; padding: 7px 10px; gap: 10px; color: var(--text2); border-radius: 7px; }
.theme-btn .ic { width: 18px; height: 18px; color: var(--muted); }
.svc-status { font-size: 12px; padding: 6px 10px; }
main { max-width: 1480px; padding: 26px 32px 64px; }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: none; }
.card.dchan, .card.proj, .card.composer, .card.outcard { padding: 0; }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.card .card, .modal-box .card { background: var(--panel2); border-color: var(--line); box-shadow: none; }
.card.link:hover, .tool:hover, .dchan:hover { transform: none; box-shadow: none; border-color: var(--line2); background: var(--panel2); }
.card + .card { margin-top: 12px; }

/* ---------- buttons ---------- */
.btn { min-height: 32px; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; gap: 6px; background: var(--raise); border: 1px solid var(--line2); color: var(--text); box-shadow: none; }
.btn:hover { background: var(--hover); border-color: color-mix(in srgb, var(--text) 18%, var(--line2)); }
.btn.primary { background: var(--brand); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 0 0 1px rgb(255 255 255 / .06) inset, 0 1px 2px rgb(0 0 0 / .3); }
.btn.primary:hover { background: var(--brand-h); }
.btn.sm { min-height: 26px; padding: 3px 9px; font-size: 13px; border-radius: 6px; }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 30%, var(--line2)); background: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 10%, transparent); border-color: var(--err); }
.btn:active:not(:disabled) { transform: translateY(.5px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- fields ---------- */
label { font-size: 12px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }
input:not([type]), input[type=text], input[type=url], input[type=number], input[type=password], input[type=email], input[type=search], input[type=datetime-local], select, textarea {
  background: var(--field); border: 1px solid var(--line2); border-radius: 7px; padding: 8px 10px; font-size: 14px; color: var(--text); }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--text) 16%, var(--line2)); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: none; outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; }
textarea { line-height: 1.55; }
.chk { font-size: 13px; color: var(--text2); }
.chk input, input[type=range] { accent-color: var(--brand); }
input[type=color] { background: var(--field); border-color: var(--line2); border-radius: 7px; }

/* ---------- tabs, segments, chips, pills ---------- */
.tabs { gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { flex: 0 0 auto; padding: 9px 12px; font-size: 13px; font-weight: 500; color: var(--muted); border: 0; border-radius: 0; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.seg { border-color: var(--line2); border-radius: 8px; background: var(--field); padding: 2px; gap: 2px; }
.seg button { border-radius: 6px; padding: 5px 11px; font-size: 13px; color: var(--muted); }
.seg button + button { border-left: 0; }
.seg button.on { background: var(--raise); color: var(--text); box-shadow: 0 0 0 1px var(--line2); font-weight: 600; }
.chip { background: var(--raise); border: 1px solid var(--line2); padding: 5px 12px; font-size: 13px; font-weight: 500; }
.chip:hover { background: var(--hover); }
.chip.on { background: color-mix(in srgb, var(--brand) 22%, var(--raise)); border-color: var(--brand); color: var(--text); }
.pill, .mini, .ch-plat, .q-badge, .stat-chip { border-radius: 6px; font-weight: 500; }
.qb, .qs { border-radius: 5px; }

/* ---------- dialogs, drawers, menus, toasts ---------- */
.modal { background: rgb(4 4 6 / .72); backdrop-filter: blur(3px); }
.modal-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 24px 60px rgb(0 0 0 / .55); padding: 22px; }
.modal-x { border-radius: 6px; }
.drawer { background: var(--panel); border-left: 1px solid var(--line2); }
.drawer-head { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.drawer .tabs { margin: 0 12px; }
.drawer #tab { padding: 4px 16px 24px; }
.drawer-bg { background: rgb(0 0 0 / .45); }
.menu { background: var(--panel); border: 1px solid var(--line2); border-radius: 9px; padding: 4px; }
.menu a, .menu button { padding: 7px 9px; font-size: 13px; border-radius: 6px; }
#toast div { background: var(--raise); color: var(--text); border: 1px solid var(--line2); font-size: 13px; border-radius: 9px; box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
#toast .err { background: color-mix(in srgb, var(--err) 18%, var(--raise)); border-color: color-mix(in srgb, var(--err) 45%, var(--line2)); color: var(--text); }
.jtray { background: var(--panel); border-color: var(--line2); border-radius: 10px; }

/* ---------- progress ---------- */
.progress { height: 4px; background: var(--soft); }
.progress div { background: var(--brand); }
.progress div::after { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .25), transparent); }

/* ---------- editor: top bar, filmstrip, script + monitor ---------- */
.edbar { background: color-mix(in srgb, var(--chrome) 94%, transparent); backdrop-filter: blur(10px); margin: -26px -32px 0; padding: 10px 32px; box-shadow: 0 1px 0 var(--line); gap: 10px; }
.edbar .title-input { font-size: 16px; font-weight: 600; }
.title-input { color: var(--text); }
.strip { position: sticky; top: 53px; z-index: 25; display: flex; gap: 3px; align-items: stretch; margin: 0 -32px 18px; padding: 8px 32px 10px; background: var(--chrome); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.strip-item { position: relative; flex: 1 0 64px; max-width: 200px; height: 46px; border-radius: 5px; background: var(--soft) center/cover; border: 1px solid var(--line2); cursor: pointer; overflow: hidden; padding: 0; }
.strip-item:hover { border-color: var(--text2); }
.strip-item.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.strip-item span { white-space: nowrap; position: absolute; left: 3px; bottom: 3px; font: 600 11px/1 var(--mono); color: #fff; background: rgb(0 0 0 / .7); padding: 2px 4px; border-radius: 3px; }
.strip-item.empty::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgb(255 255 255 / .04) 6px 12px); }
.strip-total { flex: none; align-self: center; padding-left: 10px; font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.editor { grid-template-columns: minmax(0, 1fr) clamp(340px, 40%, 620px); gap: 20px; }
.scene .shotlbl { flex-wrap: wrap; }
.scene .shotlbl input { flex: 1 1 180px; min-width: 0; }
.scene .tools .kw { flex: 1 1 150px; width: auto !important; min-width: 0; }
.editor .panel { top: 128px; }
.scene { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 10px; gap: 12px; grid-template-columns: 150px minmax(0, 1fr); scroll-margin-top: 140px; transition: border-color .15s; }
.scene:hover { border-color: var(--line2); }
.scene.focus { border-color: var(--brand); }
.scene .vis { border-radius: 6px; }
.scene .num { font: 600 12px var(--mono); color: var(--muted); }
.scene textarea { background: transparent; border-color: transparent; padding: 6px 8px; margin-left: -8px; width: calc(100% + 8px); font-size: 14px; min-height: 48px; }
.scene textarea:hover { border-color: var(--line2); }
.scene textarea:focus { background: var(--field); }
.badge { font-size: 11px; border-radius: 4px; }
/* the monitor: black, edge to edge, like a program viewer */
.outcard { background: var(--chrome); padding: 0; overflow: hidden; }
.outcard .outhead { padding: 10px 12px; margin: 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.outcard video { border-radius: 0; max-height: 62vh; }
.outcard #renders, .outcard #job { padding: 0 12px; }
.outcard #renders .render { font-size: 13px; }
.outcard #renders:empty { display: none; }
.qbar { background: var(--panel); }
.qbar .btn { font-size: 13px; }

/* ---------- home & lists ---------- */
.composer { border-radius: 12px; box-shadow: none; background: var(--panel); }
.composer:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, var(--line2)); box-shadow: none; }
.composer textarea { font-size: 16px; }
.tool { border-radius: 9px; background: var(--panel); }
.tool-ic { border-radius: 8px; background: var(--raise); border-color: var(--line2); }
.tool-ic .ic { color: var(--link); }
.home-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.pthumb { border-radius: 8px; box-shadow: none; border: 1px solid var(--line); }
.pcard:hover .pthumb { transform: none; box-shadow: none; border-color: var(--line2); }
.pcard:hover .pmeta b { color: var(--link); }
.pmeta b { font-size: 14px; font-weight: 600; }
.pbadge { border-radius: 5px; font-size: 11px; }
.pbadge.sched { background: var(--brand); }
.dchan-cover { height: 64px; background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 55%, #000), color-mix(in srgb, var(--brand) 18%, var(--panel))) center/cover; }
.ch-logo { box-shadow: 0 0 0 2px var(--panel); }
.story .ring { background: var(--line2); }
.ebox { border-color: var(--line2); border-radius: 10px; }
.ebox-ic::before { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.ebox-ic .ic { color: var(--link); }
.tour-art span { background: var(--grad); }
.genre { background: var(--panel2); border-radius: 9px; }
.genre-ic, .seo-nav-ic { background: color-mix(in srgb, var(--brand) 18%, transparent); border-radius: 8px; }
.seo-nav button { border-radius: 9px; }
.seo-nav button.on, .genre.on, .avl.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: color-mix(in srgb, var(--brand) 8%, var(--panel)); }
.tbl th, .ctable th, .cp-bench th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tbl td, .ctable td { border-color: var(--line); }
.kwchip { border-radius: 6px; }
.how-num { background: var(--line2); }
.q-badge.q-pro, .q-badge.q-studio { background: var(--brand); }
.cbar i, .cdays i { background: var(--brand); }
.qring { border-width: 4px; font-size: 20px; }
.setup-row.ok .tick { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.warnbox { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--panel)); }

/* page entrance: quicker, subtler */
#app.page-in > * { animation-duration: .18s; }

/* ---------- responsive ---------- */
@media (max-width: 1260px) { .side { width: 210px; } }
@media (max-width: 1000px) and (min-width: 761px) { .side { width: 64px; } nav a.on::before { left: -10px; } .brand { padding: 4px 10px 0; } }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .editor .panel { top: auto; } .strip { top: 53px; } }
@media (max-width: 760px) {
  .side { width: 100%; padding: 6px 8px; background: var(--chrome); border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { flex: none; margin: 0 4px 0 0; padding: 0 4px; height: auto; } .brand .logo { flex: none; } .brand span { display: none; }
  .side::-webkit-scrollbar { height: 0; } .side { scrollbar-width: none; }
  nav a { min-height: 0; padding: 8px; } nav a.on::before { display: none; }
  .side-foot { border-top: 0; }
  main { padding: 16px 16px 60px; }
  .edbar { margin: -16px -16px 0; padding: 8px 16px; }
  .strip { margin: 0 -16px 14px; padding: 6px 16px 8px; top: 0; position: relative; }
  .strip-item { flex-basis: 54px; height: 38px; }
  .scene { grid-template-columns: 1fr; }
  .modal-box { border-radius: 14px 14px 0 0; }
}

/* ---------- quality checks: score changes and applied fixes ---------- */
.qb.edited { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); font-family: var(--font); font-weight: 500; }
.qdelta { font: 600 12px var(--mono); margin-left: 4px; }
.qdelta.upd { color: var(--ok); } .qdelta.down { color: var(--err); }
.qsince { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.qrw.done { border-style: dashed; background: transparent; }

/* a just-fixed row briefly lights up */
.qfi.flash { animation: qflash 1.6s ease-out; }
@keyframes qflash { 0%, 30% { background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: var(--ok); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .qfi.flash { animation: none; border-color: var(--ok); } }

/* ---------- intro & outro studio (channel page) ---------- */
.intro-card { margin-top: 16px; }
.ib-idea { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); margin-bottom: 14px; }
.ib-idea label { margin-top: 0; }
.ib-note { margin-top: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 8%, transparent); font-size: 13px; line-height: 1.55; }
.ib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.ib-grid > section { min-width: 0; }
.ib-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ib-style { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); cursor: pointer; font: inherit; }
.ib-style b { font-size: 13px; } .ib-style span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ib-style:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line2)); }
.ib-style.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: color-mix(in srgb, var(--brand) 8%, var(--panel2)); }
.ib-prev video { margin-top: 10px; width: 100%; border-radius: 8px; background: #000; }
.ib-clip { margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line2); border-radius: 8px; }
.ib-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); gap: 10px; }
@media (max-width: 600px) { .ib-styles { grid-template-columns: 1fr; } }

/* ---------- 📚 audiobook studio ---------- */
.ab-new .row > .grow { min-width: 200px; }
.ab-cover { display: grid; place-items: center; background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 40%, var(--panel2)), var(--panel2)); aspect-ratio: 1 / 1; }
.ab-cover span { font: 600 46px var(--font-head); color: var(--text); opacity: .8; }
.ab-cover img { width: 100%; height: 100%; object-fit: cover; }
.ab-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 16px; }
.ab-grid > aside { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; }
#abside .card + .card { margin-top: 12px; }
.ab-chlist { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.ab-ch { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 8px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--text); cursor: pointer; font: inherit; }
.ab-ch:hover { background: var(--hover); } .ab-ch.on { background: var(--hover); border-color: var(--line2); }
.ab-ch b { display: block; font-size: 13px; font-weight: 600; } .ab-ch small { display: block; font-size: 12px; color: var(--muted); }
.ab-n { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; font: 600 11px var(--mono); background: var(--soft); color: var(--muted); }
.ab-ch.on .ab-n { background: var(--brand); color: #fff; }
.ab-master { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ab-master audio, .ab-done audio { width: 100%; }
.ab-done { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.ab-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ab-line { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.ab-line.para { margin-bottom: 8px; }
.ab-line:hover { border-color: var(--line2); }
.ab-lhead { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ab-lhead select { width: auto; padding: 3px 6px; font-size: 12px; }
.ab-spk { border-left: 3px solid var(--c, var(--brand)) !important; font-weight: 600; }
.ab-num { display: inline-flex; align-items: center; gap: 2px; margin: 0; font-size: 12px; color: var(--muted); }
.ab-num input { width: 62px; padding: 3px 5px; font-size: 12px; font-family: var(--mono); }
.ab-txt { margin-top: 6px; min-height: 0; resize: none; overflow: hidden; background: transparent; border-color: transparent; padding: 4px 6px; margin-left: -6px; width: calc(100% + 6px); font-size: 14px; line-height: 1.55; }
.ab-txt:hover { border-color: var(--line2); } .ab-txt:focus { background: var(--field); }
.ab-note { margin-top: 4px; font-size: 12px; padding: 4px 8px; color: var(--muted); background: transparent; border-style: dashed; }
.ab-chars { display: flex; flex-direction: column; gap: 10px; }
.ab-char { padding: 8px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.ab-char select, .ab-char input { font-size: 13px; padding: 5px 8px; }
.ab-pron input { flex: 1; min-width: 0; font-size: 13px; padding: 5px 8px; } .ab-pron + .ab-pron { margin-top: 6px; }
.ab-coverimg { width: 54px; height: 54px; border-radius: 6px; object-fit: cover; }
.ab-empty { text-align: center; }
@media (max-width: 1200px) { .ab-grid { grid-template-columns: 220px minmax(0, 1fr); } #abside { grid-column: 1 / -1; position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; } #abside .card + .card { margin-top: 0; } }
@media (max-width: 800px) { .ab-grid { grid-template-columns: 1fr; } .ab-grid > aside { position: static; max-height: none; } }

/* =====================================================================================
   App shell v2: top bar for global tools + a shorter, grouped sidebar (Nov 2026)
   ===================================================================================== */
:root { --tb: 52px; }
.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell > main { width: 100%; }
.topbar { position: sticky; top: 0; z-index: 35; height: var(--tb); display: flex; align-items: center; gap: 8px; padding: 0 20px 0 24px;
  background: color-mix(in srgb, var(--chrome) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tb-brand { display: none; }
.tb-brand .logo { width: 26px; height: 26px; border-radius: 7px; display: block; }
.tb-gap { flex: 1; }
.tb-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--raise); color: var(--text2); font: 500 13px var(--font); cursor: pointer; white-space: nowrap; }
.tb-btn:hover { background: var(--hover); color: var(--text); }
.tb-chan { max-width: 260px; }
.tb-chan-name { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 600; }
.tb-chan-logo { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--soft); font: 600 11px var(--font); color: var(--text); }
.tb-chan-logo img { width: 100%; height: 100%; object-fit: cover; }
.tb-chan-logo .ic { width: 13px; height: 13px; color: var(--muted); }
.tb-car { width: 14px; height: 14px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
.tb-search { display: inline-flex; align-items: center; gap: 8px; height: 32px; flex: 0 1 360px; min-width: 0; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--field); color: var(--muted); font: 13px var(--font); cursor: pointer; text-align: left; }
.tb-search:hover { border-color: color-mix(in srgb, var(--text) 18%, var(--line2)); color: var(--text2); }
.tb-search .ic { width: 15px; height: 15px; }
.tb-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line2); background: var(--raise); color: var(--muted); white-space: nowrap; }
.tb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); flex: none; }
.tb-renders.busy { color: var(--text); border-color: color-mix(in srgb, var(--brand) 45%, var(--line2)); }
.tb-renders.busy .tb-dot { background: var(--brand); box-shadow: none; animation: pulse 1.6s ease-in-out infinite; }
.tb-cost { font-family: var(--mono); color: var(--text); }
.tb-cost small { font-family: var(--font); color: var(--muted); margin-left: 3px; }
.tb-cost.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line2)); }
.tb-create { height: 32px; min-height: 32px; }
.tb-create .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.tb-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: color-mix(in srgb, var(--brand) 22%, var(--raise)); color: var(--text); font: 600 12px var(--font); cursor: pointer; }
.tb-menu-wrap { position: relative; }
.tb-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; min-width: 240px; padding: 6px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 18px 44px rgb(0 0 0 / .42); }
.tb-pop a, .tb-pop button:not(.btn) { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; border-radius: 7px; background: none; color: var(--text); font: 13px var(--font); cursor: pointer; text-align: left; }
.tb-pop a:hover, .tb-pop button:not(.btn):hover, .tb-pop .on { background: var(--hover); }
.tb-pop .ic { width: 16px; height: 16px; color: var(--muted); }
.tb-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.tb-ghead { font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 9px 4px; }
.tb-create-menu, .tb-me-menu { left: auto; right: 0; }
.tb-create-menu { width: min(640px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 10px; }
.tb-create-menu[hidden] { display: none; }
.tb-citem { align-items: flex-start !important; }
.tb-citem b { display: block; font-size: 13px; font-weight: 600; }
.tb-citem small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 1px; }
.tb-cic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); }
.tb-cic .ic { color: var(--link) !important; }
.tb-me-menu { width: 260px; }
.tb-me-head { padding: 8px 9px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tb-me-head b { display: block; font-size: 14px; }
.tb-me-head small { color: var(--muted); font-size: 12px; }
.tb-me-menu .theme-btn { padding: 7px 9px; font-size: 13px; color: var(--text); gap: 9px; }
.tb-me-menu .svc-status { padding: 7px 9px; font-size: 12px; }
.side-foot { padding-top: 8px; }
.side-help { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; font-size: 13px; color: var(--muted); }
.side-help:hover { background: var(--hover); color: var(--text); }
.side-help .ic { width: 18px; height: 18px; }
/* sticky things now sit under the top bar */
.edbar { top: var(--tb); }
.strip { top: calc(var(--tb) + 53px); }
.editor .panel { top: calc(var(--tb) + 128px); }
.ab-grid > aside { top: calc(var(--tb) + 70px); max-height: calc(100vh - var(--tb) - 90px); }
/* sub-tabs of grouped places (Videos: my videos / renders; Design: thumbnails / banners) */
.pagetabs { margin: -6px 0 18px; }
.pagetabs a { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.pagetabs a.on { background: var(--raise); color: var(--text); box-shadow: 0 0 0 1px var(--line2); font-weight: 600; }
/* search / quick commands */
.modal-box.cmdk-box { width: min(640px, 100%); padding: 0; align-self: start; margin-top: 10vh; overflow: hidden; }
.cmdk-box .modal-x { display: none; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cmdk-in .ic { width: 18px; height: 18px; color: var(--muted); }
.cmdk-in input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 4px 0 !important; font-size: 16px; }
.cmdk-list { max-height: 56vh; overflow-y: auto; padding: 6px; }
.cmdk-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 14px; color: var(--text); }
.cmdk-list a.on, .cmdk-list a:hover { background: var(--hover); }
.cmdk-list small { color: var(--muted); font-size: 12px; }
.cmdk-k { flex: none; width: 74px; font: 500 11px var(--mono); color: var(--muted); }
/* phone: bottom tab bar, compact top bar */
.bottombar { display: none; }
body.authed-out .topbar, body.authed-out .bottombar { display: none !important; }
.tb-create-sheet { display: grid; grid-template-columns: 1fr; gap: 4px; }
.tb-create-sheet .tb-citem { display: flex; gap: 10px; padding: 9px; border-radius: 8px; color: var(--text); }
.tb-create-sheet .tb-citem:hover { background: var(--hover); }
.bb-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bb-more a { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 9px; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.bb-more .ic { width: 18px; height: 18px; color: var(--link); }
@media (max-width: 1000px) { .tb-cost { display: none !important; } .tb-search { flex-basis: 220px; } }
@media (max-width: 760px) {
  .side { display: none !important; }
  .topbar { padding: 0 10px; gap: 6px; }
  .tb-brand { display: block; }
  .tb-search { flex: 0 0 auto; padding: 0 9px; }
  .tb-search span, .tb-search kbd { display: none; }
  .tb-renders #tbRendersTxt, .tb-create { display: none; }
  .tb-chan { max-width: 52vw; }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 62px; padding-bottom: env(safe-area-inset-bottom); background: var(--chrome); border-top: 1px solid var(--line); }
  .bottombar a, .bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font: 500 11px var(--font); }
  .bottombar .ic { width: 21px; height: 21px; }
  .bottombar a.on { color: var(--text); }
  .bottombar a.on .ic { color: var(--link); }
  #bbCreate .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--brand); color: #fff; stroke-width: 2.4; }
  main { padding-bottom: 90px !important; }
  .jtray { bottom: 72px !important; }
}
@media (max-width: 760px) {
  .bottombar a span, .bottombar button span { display: inline !important; }
  .bottombar a { padding: 0 !important; margin: 0 !important; min-height: 0 !important; border-radius: 0 !important; background: none !important; }
  .bottombar a::before { display: none !important; }
  .bottombar a.on span { color: var(--text); font-weight: 600; }
}

/* ---------- 🗂 folders (Library and Videos) ---------- */
.folders { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.folder { display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.folder-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 4px 10px 10px 10px; background: var(--panel2) center/cover; border: 1px solid var(--line); box-shadow: inset 0 -60px 50px -30px rgb(0 0 0 / .55); transition: border-color .15s; }
.folder:hover .folder-cover { border-color: var(--line2); }
.folder:hover .folder-meta b { color: var(--link); }
.folder-tab { position: absolute; top: -7px; left: -1px; width: 42%; height: 9px; border-radius: 6px 10px 0 0; background: var(--panel2); border: 1px solid var(--line); border-bottom: 0; }
.folder-logo { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--raise); border: 2px solid var(--panel); font: 600 16px var(--font); color: var(--text); }
.folder-logo img { width: 100%; height: 100%; object-fit: cover; }
.folder-logo .ic { width: 20px; height: 20px; color: var(--link); }
.folder-logo.lg { position: static; width: 48px; height: 48px; flex: none; }
.folder-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.folder-meta b { font-size: 14px; font-weight: 600; }
.folder-meta span { font-size: 13px; color: var(--muted); }
.folder-footage .folder-cover { background: repeating-linear-gradient(135deg, var(--panel2) 0 14px, var(--panel) 14px 28px); }
.crumb { color: var(--muted); font-weight: 500; }
.crumb:hover { color: var(--text); }
.lib-tabs { margin: 14px 0 18px; flex-wrap: wrap; }
.lib-sets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.lib-set .lib-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.lib-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; background: var(--soft); }
.pthumb.sq { aspect-ratio: 1 / 1; }

/* ---------- Graphic studio ---------- */
.ghead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ghead h1 { margin-bottom: 4px; }
.gbrand { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; }
.gbrand label { margin: 0; font-weight: 600; }
.gbrand select { width: auto; min-width: 180px; }
.gmodes { display: inline-flex; gap: 2px; margin: 4px 0 16px; }
.gmodes a { display: inline-block; padding: 7px 14px; border-radius: 6px; font-size: 14px; color: var(--muted); text-decoration: none; }
.gmodes a.on { background: var(--raise); color: var(--text); box-shadow: 0 0 0 1px var(--line2); font-weight: 600; }
.gkinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.gkinds button { border: 1px solid var(--line2); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.gkinds button:hover { color: var(--text); }
.gkinds button.on { background: var(--raise); color: var(--text); border-color: var(--text); font-weight: 600; }
.gsec { margin: 22px 0 8px; font-size: 15px; }
.gcap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, #3333); }
.gcap textarea { width: 100%; margin-top: 8px; font-size: 13px; line-height: 1.45; }
.gcap .seg button { font-size: 12px; padding: 4px 10px; }

/* ---------- Photoshoot studio ---------- */
.ps-people { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 6px; }
.ps-person { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 104px; max-width: 120px; padding: 10px 8px; border: 1px solid var(--line2); border-radius: 12px; background: var(--raise); color: var(--text); font: inherit; cursor: pointer; }
.ps-person img, .ps-noface { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ps-noface { display: grid; place-items: center; background: var(--line2); font-weight: 700; font-size: 20px; }
.ps-person b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-person small { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-person.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.ps-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ps-refs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.ps-refs img:first-child:last-child { grid-column: 1 / -1; aspect-ratio: 4/5; }
.ps-noref { grid-column: 1 / -1; aspect-ratio: 4/5; display: grid; place-items: center; border: 1px dashed var(--line2); border-radius: 10px; color: var(--muted); }
.ps-outfits { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.ps-plan { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); }
.ps-shoots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ps-shootcard { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.ps-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: 4px; }
.ps-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 5px; }
.ps-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ps-img { position: relative; border-radius: 10px; overflow: hidden; background: var(--line2); }
.ps-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-fail { height: 100%; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--err); font-size: 13px; }
.ps-match { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.72); color: #fff; }
.ps-match.good::before { content: '● '; color: #4ade80; } .ps-match.ok::before { content: '● '; color: #facc15; } .ps-match.weak::before { content: '● '; color: #f87171; }
.ps-refedit { position: relative; } .ps-refedit img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.ps-refedit button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #000c; color: #fff; font-size: 11px; cursor: pointer; }
.ps-shots > .card, .ps-shoots > .card, .ps-grid > .card { margin: 0; }

/* ---------- Add / edit a person ---------- */
.modal-box:has(.pe) { width: min(820px, 100%); padding: 0; }
.modal-box:has(.pe) .modal-x { top: 16px; right: 16px; }
.pe-head { padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.pe-head h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.pe-head p { margin: 0; color: var(--muted); font-size: 14px; }
.pe-body { display: grid; grid-template-columns: 240px 1fr; gap: 26px; padding: 22px 26px; }
@media (max-width: 720px) { .pe-body { grid-template-columns: 1fr; } }
.pe-main { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; border: 1.5px dashed var(--line2); background: var(--panel2); cursor: pointer; transition: border-color .15s, background .15s; }
.pe-main:hover, .pe-main.over, .pe-main:focus-visible { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--panel2)); outline: none; }
.pe-main:has(img) { border-style: solid; border-color: var(--line); cursor: default; }
.pe-main img, .pe-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; color: var(--muted); }
.pe-empty .ic { width: 34px; height: 34px; color: var(--brand); margin-bottom: 4px; }
.pe-empty b { color: var(--text); font-size: 14px; }
.pe-empty span { font-size: 13px; }
.pe-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.pe-thumbs:empty { display: none; }
.pe-th { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--panel2); }
.pe-add { border: 1.5px dashed var(--line2); color: var(--muted); font-size: 22px; cursor: pointer; font-family: inherit; }
.pe-add:hover { border-color: var(--brand); color: var(--brand); }
.pe-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .62); color: #fff; font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pe-main:hover .pe-x, .pe-th:hover .pe-x, .pe-x:focus-visible { opacity: 1; }
@media (hover: none) { .pe-x { opacity: 1; } }
.pe-up { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .35); }
.pe-tips { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.pe-tips li::before { content: '✓'; color: var(--brand); font-weight: 700; margin-right: 6px; }
.pe-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .pe-row { grid-template-columns: 1fr; } }
.pe-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pe-field label { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.pe-field label span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.pe-field input, .pe-field select, .pe-field textarea { width: 100%; padding: 9px 11px; font-size: 14px; border-radius: 8px; }
.pe-look { position: relative; }
.pe-look textarea { resize: vertical; min-height: 124px; }
.pe-reading { position: absolute; inset: 1px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; background: color-mix(in srgb, var(--field) 88%, transparent); font-size: 13px; color: var(--text2); }
.pe-foot { display: flex; align-items: center; gap: 8px; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--panel2); border-radius: 0 0 12px 12px; }
.pe-foot .grow { flex: 1; }

/* ---------- Add a channel ---------- */
.nc { display: flex; flex-direction: column; gap: 10px; }
.nc-title { font-size: 15px; }
.nc-kind { display: grid; grid-template-columns: 1fr 1fr; }
.nc-kind button { text-align: center; }
.nc-f { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.nc-f label { margin: 0; font-size: 13px; font-weight: 600; }
.nc-f label span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.nc-f input, .nc-f textarea { width: 100%; }
.nc-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- channel hosts ---------- */
.host-rows { display: flex; flex-direction: column; gap: 8px; }
.host-row { display: grid; grid-template-columns: 26px minmax(110px, 180px) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.host-row select { width: 100%; }
.host-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); box-shadow: 0 0 0 1px var(--line2); font-size: 12px; font-weight: 700; }
@media (max-width: 640px) { .host-row { grid-template-columns: 26px 1fr auto auto; } .host-row .h-voice { grid-column: 2 / -1; grid-row: 2; } }
.scene .num select.spk { width: auto; margin-left: 8px; padding: 3px 8px; font-size: 13px; font-weight: 600; }

.pres-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pres-l { font-size: 13px; font-weight: 600; }

/* ---------- Channel insights (competitors) ---------- */
.ins-hero { padding: 20px; }
.ins-hero-t h3 { margin: 0 0 4px; font-size: 18px; }
.ins-hero-t p { margin: 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.ins-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (max-width: 900px) { .ins-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ins-steps { grid-template-columns: 1fr; } }
.ins-step { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; gap: 4px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); align-items: start; }
.ins-step > span { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--raise); box-shadow: 0 0 0 1px var(--line2); color: var(--muted); }
.ins-step b { display: block; font-size: 14px; } .ins-step small { color: var(--muted); font-size: 12px; }
.ins-step .btn { grid-column: 2; justify-self: start; margin-top: 6px; }
.ins-step.cur { border-color: var(--brand); } .ins-step.cur > span { background: var(--brand); color: #fff; box-shadow: none; }
.ins-step.done > span { background: color-mix(in srgb, #22c55e 18%, transparent); color: #22c55e; box-shadow: none; }
.ins-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.ins-sec-h h3 { margin: 0; font-size: 16px; }
.ins-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--text2); font-size: 12px; font-weight: 600; text-align: center; line-height: 18px; }
.ins-paste { display: flex; gap: 6px; flex: 1; max-width: 420px; } .ins-paste input { flex: 1; min-width: 0; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel2); }
.ins-chip > span { display: flex; flex-direction: column; line-height: 1.2; } .ins-chip b { font-size: 13px; } .ins-chip small { color: var(--muted); font-size: 12px; }
.ins-x { border: 0; background: none; color: var(--muted); cursor: pointer; width: 24px; height: 24px; border-radius: 50%; } .ins-x:hover { background: var(--hover); color: var(--text); }
.ins-tier { margin-top: 18px; }
.ins-tier-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.ins-tier-h h4 { margin: 0; font-size: 14px; } .ins-tier-h p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ins-ch { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); transition: border-color .15s; }
.ins-ch:hover { border-color: var(--line2); }
.ins-ch.added { border-style: dashed; }
.ins-ch-top { display: flex; align-items: center; gap: 10px; } .ins-ch-top .cp-av { width: 40px; height: 40px; }
.ins-ch-name { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ins-ch-name b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ins-ch-name span { color: var(--muted); font-size: 12px; }
.ins-added { font-size: 12px; color: #22c55e; font-weight: 600; white-space: nowrap; }
.ins-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ins-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text2); }
.ins-tag.fl { border-color: color-mix(in srgb, #a78bfa 55%, transparent); color: #a78bfa; } .ins-tag.oc { border-color: color-mix(in srgb, #38bdf8 55%, transparent); color: #38bdf8; }
:root[data-theme="light"] .ins-tag.fl { color: #6d28d9; } :root[data-theme="light"] .ins-tag.oc { color: #0369a1; }
.ins-tag.soft { background: var(--soft); border-color: transparent; }
.ins-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.ins-stats div { display: flex; flex-direction: column; } .ins-stats b { font-size: 14px; font-variant-numeric: tabular-nums; } .ins-stats span { font-size: 11px; color: var(--muted); }
.ins-desc { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ins-sum { font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.ins-pat { margin: 6px 0 0; padding-left: 18px; line-height: 1.65; font-size: 14px; }
.ins-cta { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 8%, transparent); flex-wrap: wrap; }
.ins-cta > div { flex: 1; min-width: 220px; } .ins-cta b { display: block; } .ins-cta small { color: var(--muted); font-size: 13px; }
.ins-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ins-idea { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ins-idea p { margin: 0; font-size: 13px; } .ins-idea-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; } .ins-idea-h b { font-size: 14px; line-height: 1.35; }
.ins-idea-f { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }
.ins-pri { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--soft); white-space: nowrap; } .ins-pri.high { background: color-mix(in srgb, #f97316 18%, transparent); color: #fb923c; }
.tune-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tune-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); cursor: pointer; margin: 0; font-weight: 400; }
.tune-row:has(input:checked) { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.tune-row input { margin-top: 3px; accent-color: var(--brand); } .tune-row b { font-size: 14px; } .tune-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.tune-ft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.tune-from { color: var(--muted); text-decoration: line-through; } .tune-to { font-weight: 600; }
.ins-step { display: flex; flex-direction: column; gap: 6px; }
.ins-step > span { flex: none; }
.ins-step .btn { margin-top: auto; align-self: flex-start; }

.seo-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.seo-bar > div { flex: 1; min-width: 240px; } .seo-bar input { margin-left: 6px; width: min(320px, 100%); } .seo-bar small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.titles .ttl { align-items: flex-start; } .titles .ttl span { display: flex; flex-direction: column; } .titles .ttl small { color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.lnk.tti { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }

.idea-kw { display: inline-block; margin: 4px 0; padding: 2px 8px; border-radius: 999px; background: var(--soft); font-size: 12px; color: var(--text2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vp-more { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--line2); background: var(--panel2); }
.vp-more > div { flex: 1; min-width: 0; } .vp-more b { display: block; font-size: 13px; } .vp-more small { color: var(--muted); font-size: 12px; }
@keyframes hostflash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 3px var(--brand); } }
.card.flash { animation: hostflash 1.6s ease 1; }
#hostscard { scroll-margin-top: 80px; }

/* Thumbnail styles (channel) */
.tstyles .ts-notes { padding: 10px 12px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line2); margin-bottom: 12px; }
.tstyles .ts-notes b { font-size: 13px; } .tstyles .ts-notes p { margin: 4px 0 8px; font-size: 13px; color: var(--text2); line-height: 1.5; }
.ts-refs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ts-refs img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; }
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ts-item { border: 1px solid var(--line2); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.ts-item.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ts-prev { aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; }
.ts-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; } .ts-meta b { font-size: 14px; } .ts-meta small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ts-meta .ts-why { color: var(--text2); }
.ts-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ts-edit { max-width: 860px; } .ts-edit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .ts-edit-grid { grid-template-columns: 1fr; } }
.ts-pick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; }
.ts-pick button { flex: 0 0 auto; width: 150px; padding: 5px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.ts-pick button.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ts-pick button .ts-prev { margin-bottom: 4px; } .ts-pick button span { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-pick .ts-each .ts-prev { font-size: 22px; }
#modal-body:has(.ts-edit) { width: min(900px, 94vw); max-width: 94vw; }
.ts-edit, .ts-edit label { text-align: left; } .ts-edit h3 { margin-top: 0; }

/* 🚀 Channel launch planner */
.lp-entry { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; border: 1px solid var(--brand); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, var(--panel)), var(--panel)); }
.lp-entry-ic { font-size: 26px; line-height: 1; } .lp-entry .btn { align-self: flex-start; margin-top: auto; }
.lp-form { max-width: 860px; } .lp-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; } .lp-row > div { min-width: 160px; } .lp-row .grow { flex: 1; }
.lp-go { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.lp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lp-item { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.lp-top { display: flex; gap: 18px; align-items: flex-start; margin: 14px 0; }
.lp-score { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--brand); display: grid; place-content: center; text-align: center; line-height: 1.1; }
.lp-score b { font-size: 30px; } .lp-score small { font-size: 11px; color: var(--muted); } .lp-score span { font-size: 11px; color: var(--muted); }
.lp-sum { flex: 1; min-width: 0; } .lp-sum > p:first-child { margin-top: 0; font-size: 14px; line-height: 1.55; }
.lp-facts { display: flex; flex-wrap: wrap; gap: 6px; } .lp-facts .pill { padding: 3px 9px; background: var(--panel2); border: 1px solid var(--line2); font-size: 12px; }
.lp-warn { color: #f5a524; }
.lp-sec { margin-bottom: 14px; } .lp-sec h3 { margin-top: 0; }
.lp-sec small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.lp-exs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.lp-av { width: 40px; height: 40px; border-radius: 50%; }
.lp-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; }
.lp-thumbs a { position: relative; flex: 0 0 auto; } .lp-thumbs img { width: 132px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; }
.lp-thumbs span { position: absolute; right: 4px; bottom: 4px; background: rgb(0 0 0 / .75); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 4px; }
.lp-pos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; } .lp-pos p { margin: 4px 0 0; }
.lp-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lp-name { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.lp-name.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); } .lp-name b { font-size: 15px; } .lp-name span { font-size: 13px; color: var(--text2); }
.lp-name em { font-style: normal; color: #2fbf71; } .lp-name small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.lp-copy { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line2); } .lp-copy p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.lp-copy .chips { margin-top: 8px; }
.lp-sw { display: flex; align-items: center; gap: 6px; } .lp-sw span { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line2); }
.lp-sw small { margin-left: 6px; text-transform: none; letter-spacing: 0; }
.lp-art { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; margin-top: 14px; }
.lp-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lp-logo { padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; } .lp-logo.on { border-color: var(--brand); }
.lp-logo img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; }
.lp-banners { display: grid; gap: 8px; margin: 8px 0 6px; } .lp-banners img { width: 100%; border-radius: 8px; display: block; }
.lp-ts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lp-tsi { display: flex; flex-direction: column; gap: 4px; } .lp-tsi b { font-size: 13px; } .lp-tsi small { text-transform: none; letter-spacing: 0; font-size: 12px; line-height: 1.4; }
.lp-vids { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 12px; } .lp-vids li p { margin: 3px 0; } .lp-hook { font-style: italic; color: var(--text2); font-size: 13px; }
.lp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; } .lp-grid2 p { margin: 4px 0 0; } .lp-wide { grid-column: 1 / -1; }
.lp-pat { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.lp-tier { margin-bottom: 12px; } .lp-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 6px; }
.lp-comp { display: flex; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line2); text-decoration: none; color: inherit; background: var(--panel2); }
.lp-comp img { width: 34px; height: 34px; border-radius: 50%; } .lp-comp span { display: flex; flex-direction: column; min-width: 0; } .lp-comp b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-comp small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.lp-hits img { width: 150px; }
.lp-chk { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .lp-chk label { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; cursor: pointer; }
.lp-chk input:checked + span { text-decoration: line-through; color: var(--muted); }
.lp-cta { position: sticky; bottom: 12px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--brand); box-shadow: 0 8px 30px rgb(0 0 0 / .35); }
.lp-cta > div { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 760px) { .lp-ex, .lp-art { grid-template-columns: 1fr; } .lp-top { flex-direction: column; } }
.lp-name small, .lp-copy small, .lp-facts small { text-transform: none; letter-spacing: 0; }
.lp-planned { margin-bottom: 18px; } .lp-planned:empty { display: none; } .lp-h { margin: 0 0 10px; }
.lp-running { border-color: var(--brand); }
.lp-bar { height: 6px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin: 6px 0 2px; } .lp-bar span { display: block; height: 100%; background: var(--brand); transition: width .6s; }

/* 🌙 Sound video & 🎵 music mix maker */
.kind-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.sv-idea { padding: 12px 14px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line2); } .sv-idea p { margin: 0 0 6px; line-height: 1.5; }
.sv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; margin-top: 12px; align-items: start; }
@media (max-width: 960px) { .sv-grid { grid-template-columns: 1fr; } }
.sv-main .card, .sv-side .card { margin-bottom: 14px; } .sv-main h3, .sv-side h3 { margin-top: 0; }
.sv-layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sv-layer { padding: 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); display: flex; flex-direction: column; gap: 4px; opacity: .75; }
.sv-layer.on { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); } .sv-layer label { margin: 0; } .sv-layer small { color: var(--muted); font-size: 12px; }
.sv-warn { padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, #f5a524 12%, transparent); border: 1px solid color-mix(in srgb, #f5a524 40%, transparent); font-size: 13px; margin: 0 0 10px; }
.sv-tracks { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 6px; } .sv-tracks li > * { vertical-align: middle; }
.sv-tracks li { display: list-item; } .sv-tracks li .grow { display: inline-flex; flex-direction: column; width: calc(100% - 130px); } .sv-tracks small { color: var(--muted); font-size: 12px; }
.sv-res { display: grid; gap: 6px; margin-top: 8px; max-height: 340px; overflow: auto; }
.sv-hit { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--panel2); } .sv-hit .grow { display: flex; flex-direction: column; min-width: 0; } .sv-hit small { color: var(--muted); font-size: 12px; }
.sv-vis { display: grid; gap: 6px; } .sv-vis button { text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: inherit; font: inherit; cursor: pointer; }
.sv-vis button.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.sv-pics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .sv-pic { position: relative; } .sv-pic img { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; }
.sv-prm { position: absolute; top: 2px; right: 2px; border: 0; border-radius: 50%; width: 20px; height: 20px; background: rgb(0 0 0 / .7); color: #fff; cursor: pointer; font-size: 11px; }
.sv-r { display: grid; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line2); } .sv-r video { width: 100%; border-radius: 8px; background: #000; }

.sv-bgnow { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .sv-bgnow img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.sv-bgnow span { display: flex; flex-direction: column; min-width: 0; } .sv-bgnow b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sv-bgnow small { color: var(--muted); font-size: 11px; }
.sv-vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; max-height: 260px; overflow: auto; }
.sv-vhit { padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--panel2); cursor: pointer; aspect-ratio: 16/9; overflow: hidden; } .sv-vhit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-vhit:hover { border-color: var(--brand); } .sv-vhit.busy { opacity: .5; pointer-events: none; }

.genre-emo { font-size: 20px; line-height: 1; }
/* ❓ 🗣 🎶 quiz / lesson / lyric makers */
.fm-list { display: grid; gap: 10px; margin: 10px 0; } .fm-item { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line2); }
.fm-n { min-width: 22px; color: var(--muted); align-self: center; } .fm-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.fm-opt { display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 6px; border-radius: 8px; border: 1px solid transparent; } .fm-opt input[type=text] { flex: 1; }
.fm-opt.ok { border-color: #16a34a; background: color-mix(in srgb, #16a34a 14%, transparent); }
@media (max-width: 700px) { .fm-opts { grid-template-columns: 1fr; } }
/* 🎨 channel art */
#modal-body:has(.art) { width: min(860px, 94vw); max-width: 94vw; } .art { text-align: left; } .art h3 { margin-top: 0; }
.art-cur { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .art-cur img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.art-styles { flex-wrap: wrap; }
.art-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.art-logo { padding: 6px; border-radius: 12px; border: 2px solid var(--line2); background: var(--panel2); cursor: pointer; color: inherit; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.art-logo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; } .art-logo span { font-size: 12px; } .art-logo.on { border-color: var(--brand); } .art-logo:hover { border-color: var(--brand); }
.art-banners { display: grid; gap: 8px; margin-top: 10px; } .art-banners img { width: 100%; border-radius: 8px; display: block; }
/* 📋 YouTube setup tab */
.yk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.yk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; } .yk-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .yk-grid { grid-template-columns: 1fr; } }
.yk-grid .card h3 { margin: 0; } .yk-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.yk-where { margin: 6px 0 0; } .yk-art { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; } .yk-art > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.yk-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; } .yk-ban { width: 100%; max-width: 360px; border-radius: 8px; }
.yk-pls { display: grid; gap: 8px; } .yk-pl { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; align-items: start; } .yk-pl textarea { min-height: 42px; }
@media (max-width: 700px) { .yk-pl { grid-template-columns: 1fr; } }
.yk-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.yk-set { display: grid; gap: 8px; } .yk-si { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 9px 11px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line2); cursor: pointer; }
.yk-si > input { margin-top: 3px; } .yk-si > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; } .yk-si small { color: var(--muted); font-size: 12px; }
.yk-si .yk-val { font-size: 13px; color: var(--text2); } .yk-si:has(input:checked) b { text-decoration: line-through; color: var(--muted); } .yk-si .yk-cp { align-self: flex-start; }
.yk-pre { white-space: pre-wrap; font: inherit; font-size: 13px; margin: 4px 0 0; padding: 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line2); }

/* one channel card everywhere */
.dchan-niche { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dacts { display: flex; gap: 6px; } .dacts .ic { width: 14px; height: 14px; }
.ch-grid.dchans { align-items: stretch; }
/* Create menu: five groups */
.tb-create-menu { width: min(860px, calc(100vw - 32px)); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 12px; }
.tb-chead { grid-column: 1 / -1; padding: 2px 9px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .tb-chead b { font-size: 14px; }
.tb-ghead { display: flex; flex-direction: column; gap: 1px; } .tb-ghead span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--muted); opacity: .85; }
@media (max-width: 760px) { .tb-create-menu { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tb-create-menu { grid-template-columns: 1fr; max-height: 75vh; overflow: auto; } }
/* Ideas board: compact cards with a type label */
.board .idea.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--panel)); }
.idea-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.idea-top-row b { flex: 1; display: block; font-size: 14px; line-height: 1.35; }
.idea-chk { width: 17px; height: 17px; cursor: pointer; accent-color: var(--brand); margin: 2px 0 0 4px; flex-shrink: 0; }
.idea-select-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: color-mix(in srgb, var(--brand) 15%, var(--panel)); border: 1px solid var(--brand); padding: 10px 16px; border-radius: 10px; margin-bottom: 14px; flex-wrap: wrap; position: sticky; top: 12px; z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,0.4); backdrop-filter: blur(10px); }
.idea-select-bar span { font-weight: 600; font-size: 14px; }
.board .idea b { display: block; font-size: 14px; line-height: 1.35; }
.idea-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 2px; }
.kbadge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--panel2); border: 1px solid var(--line2); color: var(--text2); white-space: nowrap; }
.kbadge .ic { width: 12px; height: 12px; }
.kbadge.k-sound { color: #a5b4fc; border-color: color-mix(in srgb, #818cf8 45%, transparent); } .kbadge.k-music { color: #f0abfc; border-color: color-mix(in srgb, #e879f9 45%, transparent); }
.kbadge.k-guided { color: #99f6e4; border-color: color-mix(in srgb, #2dd4bf 45%, transparent); } .kbadge.k-quiz { color: #fde68a; border-color: color-mix(in srgb, #facc15 45%, transparent); }
.kbadge.k-lesson { color: #93c5fd; border-color: color-mix(in srgb, #60a5fa 45%, transparent); } .kbadge.k-lyrics { color: #fda4af; border-color: color-mix(in srgb, #fb7185 45%, transparent); }
.board .idea .idea-kw { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0; } .idea-kw .ic { width: 12px; height: 12px; }
.board .idea .idea-angle { margin: 6px 0 0; font-size: 13px; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:root[data-theme="light"] .kbadge.k-sound { color: #4338ca; } :root[data-theme="light"] .kbadge.k-music { color: #a21caf; } :root[data-theme="light"] .kbadge.k-guided { color: #0f766e; }
:root[data-theme="light"] .kbadge.k-quiz { color: #a16207; } :root[data-theme="light"] .kbadge.k-lesson { color: #1d4ed8; } :root[data-theme="light"] .kbadge.k-lyrics { color: #be123c; }
/* Channel overview */
.ov-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; background-size: cover; background-position: right center; }
.ov-id { display: flex; gap: 14px; align-items: center; } .ov-id > div { display: flex; flex-direction: column; gap: 3px; }
.ov-logo { width: 64px; height: 64px; font-size: 26px; } .ov-name { font-size: 20px; font-family: var(--font-head); } .ov-tag { font-size: 13px; color: var(--text2); }
.ov-nums { display: flex; gap: 22px; } .ov-nums div { display: flex; flex-direction: column; align-items: flex-end; } .ov-nums b { font-size: 22px; font-family: var(--font-head); } .ov-nums span { font-size: 13px; color: var(--text2); }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; } .ov-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: 1fr; } .ov-nums { gap: 14px; } .ov-nums div { align-items: flex-start; } }
.ov-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; } .ov-h h3 { margin: 0; }
.ov-pct { font-weight: 700; color: var(--brand); } .ov-bar { height: 6px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-bottom: 10px; } .ov-bar span { display: block; height: 100%; background: var(--brand); }
.ov-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ov-steps a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; } .ov-steps a:hover { background: var(--panel2); }
.ov-chk { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-size: 11px; flex: 0 0 auto; }
.ov-steps li.ok .ov-chk { background: #16a34a; border-color: #16a34a; color: #fff; } .ov-steps li.ok a { color: var(--text2); }
.ov-go { margin-left: auto; font-size: 12px; color: var(--brand); } .ov-steps li.ok .ov-go { color: var(--muted); }
.ov-next { display: grid; gap: 8px; } .ov-idea { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.ov-idea:hover { border-color: var(--brand); } .ov-idea b { font-size: 14px; } .ov-idea .idea-meta { margin: 0; }
.ov-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; } .ov-vid { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.ov-vid b { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ov-vid .kbadge { align-self: flex-start; }
.ov-thumb { aspect-ratio: 16/9; border-radius: 8px; background: var(--panel2) center/cover; position: relative; } .ov-thumb span { position: absolute; right: 6px; bottom: 6px; background: rgb(0 0 0 / .75); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }

/* readable small text: nothing below 12px, hints a touch brighter */
:root, :root[data-theme="dark"], :root[data-theme="auto"] { --muted: #a3a3ae; }
.kbadge, .tb-ghead, .tb-ghead span, .ts-meta small, .lp-comp small, .art-logo span, .yk-si small, .dfoot .small, .sv-hit small, .sv-tracks small { font-size: 12px !important; }
small, .small, .muted.small { font-size: max(12.5px, 1em * 0.85); }
.lp-entry-go { margin-top: auto; font-weight: 600; color: var(--link); font-size: 14px; }

/* Videos list: type badge on each card, type filter */
.pmeta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .pmeta-row .kbadge { padding: 1px 6px; }
.vkinds { margin: 0 0 14px; flex-wrap: wrap; } .vkinds button .muted { font-size: 12px; margin-left: 2px; }
/* "jump to" bar on long pages */
.jump { position: sticky; top: var(--tb, 52px); z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px; margin: 8px 0 4px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump button { flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text2); font: 500 13px var(--font); cursor: pointer; white-space: nowrap; }
.jump button:hover { border-color: var(--brand); color: var(--text); }
.pstep-n { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px; background: var(--panel2); color: var(--brand); font-size: 12px; }
.edbar ~ .jump { top: calc(var(--tb, 52px) + 58px); }

/* ---------- 🚀 Grow: autopilot, numbers, comments, trends, Shorts, dubbing, last check ---------- */
.gw-warn { border-color: var(--warn); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.gw-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; margin: 6px 0 8px; }
.gw-days { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-day { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 4px 10px; font-size: 13px; }
.gw-day input { margin: 0; }
.gw-nums { margin-bottom: 4px; }
.gw-ul { margin: 4px 0 10px; padding-left: 18px; } .gw-ul li { margin: 3px 0; }
.gw-ideas { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.gw-idea { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
.gw-idea .btn { flex-shrink: 0; }
.gw-tablewrap { overflow-x: auto; }
.gw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gw-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gw-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gw-table .pos { color: var(--ok); } .gw-table .neg { color: var(--err); }
.gw-vt { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; display: block; }
.ap-list { display: flex; flex-direction: column; gap: 8px; }
.ap-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.ap-item.warn { border-color: var(--warn); } .ap-item.bad { border-color: var(--err); }
.ap-thumb { aspect-ratio: 16/9; border-radius: 7px; background: var(--field) center/cover; position: relative; }
.ap-thumb span { position: absolute; right: 4px; bottom: 4px; background: rgb(0 0 0 / .75); color: #fff; font-size: 11px; padding: 0 5px; border-radius: 4px; }
.ap-main b { display: block; margin-bottom: 4px; }
.ap-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ap-st.ok { color: var(--ok); } .ap-st.warn { color: var(--warn); } .ap-st.bad { color: var(--err); }
@media (max-width: 640px) { .ap-item { grid-template-columns: 90px 1fr; } .ap-acts { grid-column: 1 / -1; justify-content: flex-start; } }
.pcheck { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.pcheck ul { list-style: none; padding: 0; margin: 6px 0 0; } .pcheck li { margin: 4px 0; font-size: 13px; }
.cm-item { padding: 10px 0; border-bottom: 1px solid var(--line); } .cm-item:last-child { border-bottom: 0; }
.cm-q p { margin: 4px 0 6px; } .cm-item textarea { width: 100%; margin-bottom: 6px; }
.tr-list { display: flex; flex-direction: column; gap: 10px; }
.tr-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; } .tr-item .gw-vt { width: 110px; } .tr-item .gw-idea { margin-top: 6px; }
#shortsbox .card { margin-top: 14px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.sh-item { display: flex; flex-direction: column; gap: 4px; } .sh-item video { width: 100%; aspect-ratio: 9/16; background: #000; border-radius: 8px; object-fit: cover; }
.look-box { margin: 12px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.look-box summary { cursor: pointer; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px 14px; }
.look-grid label { display: flex; flex-direction: column; font-size: 13px; }
.rights-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; } .rights-list li { padding: 5px 0; border-bottom: 1px solid var(--line); }

/* ---------- 🗂 workspaces, 📚 Creative Library, studio home pages ---------- */
.ws-sec { margin: 18px 0 8px; } .ws-sec h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; } .ws-sec h3 .muted { font-weight: 400; }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ws-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ws-logo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: var(--panel2) center/cover; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--muted); }
.ws-logo.lg { width: 56px; height: 56px; font-size: 24px; }
.ws-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; } .ws-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-new { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.ws-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ws-item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; color: inherit; text-decoration: none; min-width: 0; }
.ws-item:hover { background: var(--hover); } .ws-item > span:last-child { display: flex; flex-direction: column; min-width: 0; } .ws-item b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-it-img { width: 64px; aspect-ratio: 16/9; flex-shrink: 0; border-radius: 6px; background: var(--panel2) center/cover; display: grid; place-items: center; color: var(--muted); }
.ws-share { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow: auto; }
.ws-badge { font-size: 11px; }
.bk-col { display: flex; flex-direction: column; align-items: center; gap: 2px; } .bk-col input { width: 44px; height: 32px; padding: 0; border: 0; background: none; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cr-kit { display: flex; flex-direction: column; gap: 10px; }
.cr-kit-top { border-radius: 10px; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.cr-kit-top img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.cr-sw { display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; } .cr-sw i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.cr-char { display: flex; gap: 12px; }
.cr-face { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; background: var(--panel2) center/cover; display: grid; place-items: center; color: var(--muted); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 6px; }
.cr-list { display: flex; flex-direction: column; gap: 8px; }
.cr-script p { margin: 4px 0 0; } .cr-tpl { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.cr-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.cr-m { display: flex; flex-direction: column; gap: 4px; } .cr-m .btn { align-self: flex-start; }
.cr-mi { aspect-ratio: 16/9; border-radius: 8px; background: var(--panel2) center/cover; position: relative; } .cr-mi i { position: absolute; right: 4px; bottom: 4px; background: rgb(0 0 0 / .7); color: #fff; font-size: 11px; font-style: normal; padding: 0 5px; border-radius: 4px; }
.hub-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.hub-tool { display: flex; gap: 12px; align-items: center; padding: 14px; } .hub-tool > span:last-child { display: flex; flex-direction: column; }
.hub-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--soft); display: grid; place-items: center; color: var(--brand); }
.ps-approved { margin: 6px 0 8px; } .ps-approved > div { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .ps-approved img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.cp-row { margin-bottom: 6px; } .cp-approved { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-ap { position: relative; } .cp-ap img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; display: block; } .cp-ap.gone img { opacity: .25; }
.cp-ap button { position: absolute; top: 2px; right: 2px; border: 0; border-radius: 50%; width: 22px; height: 22px; background: rgb(0 0 0 / .7); color: #fff; cursor: pointer; }
.vchars { display: flex; flex-wrap: wrap; gap: 4px 14px; } .vchar img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 4px; }
.remake-opts { display: flex; flex-direction: column; gap: 8px; } .remake-opts .btn { justify-content: flex-start; text-align: left; display: flex; gap: 8px; flex-wrap: wrap; }
.ab-vc { margin-top: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; } .ab-vc.warn { border-color: var(--warn); } .ab-vc.ok { border-color: var(--ok); }
.ab-flag { font-size: 12px; color: var(--warn); margin: 2px 0 4px; }
.ab-stores { display: flex; flex-direction: column; gap: 8px; } .ab-store { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ab-exp { margin-top: 10px; font-size: 13px; } .ab-exp ul { list-style: none; padding: 0; margin: 6px 0; } .ab-exp li { margin: 4px 0; }
.ms-list { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ms-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 6px; } .ms-row p { grid-column: 2 / -1; margin: 0; }
.le-wave { position: relative; background: var(--panel2); border-radius: 8px; overflow: hidden; margin: 8px 0; } .le-wave img { width: 100%; display: block; }
.le-cut { position: absolute; top: 0; bottom: 0; background: rgb(0 0 0 / .55); } .le-cut.l { left: 0; } .le-cut.r { right: 0; }
.idea-score { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 12px; } .idea-score b { font-size: 15px; min-width: 30px; text-align: center; padding: 2px 6px; border-radius: 6px; background: var(--panel2); }
.idea-score.strong b { background: color-mix(in srgb, var(--ok) 25%, transparent); } .idea-score.weak b { background: color-mix(in srgb, var(--err) 25%, transparent); } .idea-score span { color: var(--muted); }
.lab-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; } .lab-item { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.lab-total { font-size: 18px; font-weight: 700; min-width: 36px; text-align: center; } .lab-scores { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); margin: 4px 0; } .lab-scores > span { display: inline-flex; align-items: center; gap: 4px; }
.sbar { display: inline-block; width: 46px; height: 5px; background: var(--panel2); border-radius: 3px; overflow: hidden; } .sbar i { display: block; height: 100%; background: var(--brand); }
.ss-struct { margin: 8px 0 14px; } .ss-beats { display: flex; gap: 3px; margin: 6px 0; } .ss-beats > div { background: var(--panel2); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; min-width: 0; font-size: 12px; } .ss-beats small { color: var(--muted); font-size: 11px; }
.t-phoneres { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); }
.bcar { margin-top: 12px; } .bcar-row { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; } .bcar-row a { position: relative; flex-shrink: 0; } .bcar-row img { width: 120px; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; display: block; } .bcar-row small { position: absolute; left: 4px; top: 4px; background: rgb(0 0 0 / .7); color: #fff; border-radius: 4px; padding: 0 5px; }
.btpl-row { display: flex; gap: 10px; overflow-x: auto; margin-top: 8px; } .btpl { display: flex; flex-direction: column; gap: 4px; width: 150px; flex-shrink: 0; } .btpl img { width: 150px; height: 110px; object-fit: cover; border-radius: 6px; }
.bz-issue { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .bz-issue:last-child { border-bottom: 0; }
.bz-rw { padding: 10px 0; border-bottom: 1px solid var(--line); } .bz-rwl { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; align-items: start; margin-top: 6px; font-size: 13px; }
@media (max-width: 640px) { .bz-rwl { grid-template-columns: 1fr; } }
.sr-acc { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 6px; }
/* 📣 Social Studio */
.ss-set { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 760px) { .ss-set { grid-template-columns: 1fr; } }
.ss-cal { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.ss-wd { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; color: var(--muted); padding: 6px 0; text-align: center; border-bottom: 1px solid var(--line); }
.ss-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ss-day { min-height: 96px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; } .ss-day:nth-child(7n) { border-right: 0; }
.ss-day.empty { background: var(--panel2); } .ss-day.today .ss-dn { background: var(--brand); color: #fff; border-radius: 50%; }
.ss-dn { font-size: 11px; color: var(--muted); width: 20px; height: 20px; display: grid; place-items: center; }
.ss-chip { display: flex; gap: 4px; align-items: center; font-size: 11px; text-align: left; border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 6px; padding: 2px 5px; cursor: pointer; min-width: 0; }
.ss-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ss-chip .ic { width: 12px; height: 12px; flex-shrink: 0; }
.ss-chip.warn { border-color: var(--warn); } .ss-chip.ok { border-color: var(--ok); } .ss-chip.bad { border-color: var(--err); } .ss-chip.run { opacity: .7; }
@media (max-width: 640px) { .ss-day { min-height: 64px; } .ss-chip span { display: none; } }
@media print { .side, .topbar, .bottombar, #ssbody ~ *, .card:has(#ssplan) { display: none !important; } }
.cp-lora { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.ch-ext { color: inherit; text-decoration: none; } .ch-ext:hover { color: var(--link); text-decoration: underline; }
.vs-card { margin-bottom: 12px; }

/* ── Alignment pass (UI audit) ───────────────────────────── */
/* cards side by side in a grid all start on the same line (".card + .card" spacing is for stacked cards only) */
:is(.dchans, .hub-tools, .ov-grid, .ws-grid, .cr-grid, .svc-grid, .grid, .cgrid, .cgrid2, .ch-grid, .tools, .home-tools) > .card + .card,
:is(.dchans, .hub-tools, .ov-grid, .ws-grid, .cr-grid, .svc-grid, .grid, .cgrid, .cgrid2, .ch-grid, .tools, .home-tools) > * + .card { margin-top: 0; }
.home-cols > .home-side { margin-top: 0; }
@media (max-width: 900px) { .home-cols > .home-side { margin-top: 24px; } }
.hub-tool { align-items: flex-start; }
.hub-tool b { line-height: 1.3; }
/* channel cards: the name sits under the banner, never on top of banner text */
.dchan-head { align-items: flex-start; }
.dchan-name { padding-top: 28px; }
.dchan-cover::after { background: linear-gradient(180deg, transparent 45%, var(--panel)); }
/* format picker: equal tiles, labels on one line */
.aspect { width: 104px; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 10px 8px; line-height: 1.3; }
.aspect i { margin: 0 auto auto; }
.aspect.on { background: color-mix(in srgb, var(--brand) 10%, var(--panel)); border-color: var(--brand); }
/* switches line up with their row */
.row > .switch { margin-top: 0; align-self: center; }
/* phones: the editor's top bar wraps to several lines, so it scrolls away and the scene strip sticks alone */
@media (max-width: 760px) {
  .edbar { position: static; }
  .strip, .edbar ~ .strip { top: var(--tb); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .edbar ~ .jump { top: var(--tb); }
}
/* broken pictures never show the browser's broken-image icon */
img.img-broken { visibility: hidden; }
.ch-logo { position: relative; overflow: hidden; }
.ch-logo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tb-rd-ic { display: none; width: 16px; height: 16px; }
@media (max-width: 760px) { .tb-renders .tb-rd-ic { display: block; } .tb-renders { position: relative; } .tb-renders .tb-dot { position: absolute; top: 5px; right: 5px; } }
/* editor scene card: two labelled rows, then the actions */
.scene .shotlbl > span { flex: 0 0 96px; color: var(--text2); font-weight: 600; }
.scene .shotlbl.sc-kw { margin-top: 6px; }
.scene .shotlbl.sc-kw input { font-weight: 400; color: var(--text2); }
.scene .sc-dur { margin-left: auto; }
@media (max-width: 760px) { .scene .shotlbl > span { flex-basis: 100%; } }
/* new video: form on the left, live summary on the right */
.new-wrap { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 28px; align-items: start; }
.new-sum { position: sticky; top: calc(var(--tb) + 20px); margin-top: 96px; }
.new-sum h3 { margin: 0 0 10px; font-size: 15px; }
.sum-dl { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.sum-dl dt { color: var(--muted); }
.sum-dl dd { margin: 0; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 1180px) { .new-wrap { grid-template-columns: 1fr; } .new-sum { position: static; margin-top: 0; max-width: 720px; } }
.scene .shotlbl .fp { font-weight: 500; }
.scene .tools .sc-dur { flex: none; }
.cdir { margin: 12px 0 4px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel2); }
.cdir summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.cdir .sum-dl { margin: 10px 0; grid-template-columns: 84px 1fr; }
/* clickable cards carry the "link" class: they keep normal text weight and colour (only real text links are bold and coloured) */
.card.link, a.card.link { font-weight: inherit; color: inherit; }
