/* Influential app, glass edition: a floating icon rail, poster-first pages, dark tokens (glass.css). */

/* shell */
body.g-root { min-height: 100dvh; }
.app { display: block; min-height: 100dvh; }
.sidebar { position: fixed; left: 16px; top: 16px; bottom: 16px; width: 64px; padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 30;
  background: var(--g-panel); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); border: 1px solid var(--g-edge); border-radius: 26px; box-shadow: var(--g-shadow); overflow: visible; }
.sidebar .ws-switch { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: #fff; color: #0b0b0c; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sidebar .ws-switch .brand-mark { background: none; color: #0b0b0c; font: 800 18px var(--g-font); width: auto; height: auto; }
.sidebar .ws-switch-name, .sidebar .ws-switch .ti { display: none; }
.sidebar .nav { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.sidebar .nav a, .sidebar .nav-me { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--g-text-2); position: relative; background: none; box-shadow: none; }
.sidebar .nav a span:not(.ts-av), .sidebar .nav-me-email, .sidebar .nav-me .ti-dots { display: none; }
.sidebar .nav a .ti { font-size: 20px; color: inherit; }
.sidebar .nav a:hover { background: var(--g-hover); color: #fff; }
.sidebar .nav a.on { background: #fff; color: #0b0b0c; box-shadow: none; }
.sidebar .nav a.on .ti { color: #0b0b0c; }
.sidebar .nav .count { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; background: #fff; color: #0b0b0c; margin: 0; border: 2px solid #19191c; }
.sidebar .ts-head { width: 26px; height: 1px; background: var(--g-edge); padding: 0; margin: 4px 0; font-size: 0; }
.sidebar .ts-head button { display: none; }
.sidebar .ts-nav { gap: 8px; overflow-y: auto; overflow-x: visible; scrollbar-width: none; }
.sidebar .ts-nav a { width: 44px; height: 44px; }
.sidebar .ts-nav .ts-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 14px var(--g-font); color: #fff; background: center / cover no-repeat; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.sidebar .ts-nav a.on { background: none; }
.sidebar .ts-nav a.on .ts-av { box-shadow: 0 0 0 2px #fff; }
.sidebar .ts-nav .add { width: 38px; height: 38px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.22); color: var(--g-text-3); background: none; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.sidebar .ts-nav .add:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.sidebar .nav-bottom { margin-top: auto; }
.sidebar .nav-me .avatar { width: 34px; height: 34px; font-size: 12px; background: rgba(255,255,255,.12); color: #fff; }
.sidebar [data-tip]:hover::after { bottom: auto; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); }
.main { margin-left: 96px; min-height: 100dvh; }
.topbar { display: none; }
.page { max-width: 1240px; padding: 28px 28px 80px 20px; }
.page-head { align-items: center; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { color: var(--g-text-2); font-size: 13.5px; margin-top: 4px; }
.banner { margin: 12px 20px 0 0; border-radius: 14px; }
@media (max-width: 760px) {
  .sidebar { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; height: 60px; flex-direction: row; padding: 0 10px; }
  .sidebar .nav, .sidebar .ts-nav { flex-direction: row; } .sidebar .ts-head, .sidebar .ts-nav, .sidebar .nav-bottom { display: none; }
  .main { margin-left: 0; padding-bottom: 80px; } .page { padding: 20px 16px 90px; }
}

/* sections */
.sec { margin-top: 30px; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-size: 17px; font-weight: 650; }
.sec-head .sp { flex: 1; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.posters.row { grid-auto-flow: column; grid-auto-columns: 176px; grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; }
.g-poster .st { position: absolute; left: 10px; top: 10px; }
.g-poster .tl { position: absolute; left: 10px; bottom: 10px; }
.g-poster.new { border-style: dashed; border-color: rgba(255,255,255,.18); background: transparent; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--g-text-2); }
.g-poster.new i { font-size: 28px; }
.g-poster.new:hover { background: rgba(255,255,255,.04); color: #fff; }
.g-poster .busy { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; }
.needs { display: flex; gap: 8px; flex-wrap: wrap; }
.stats-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.stat-g { padding: 16px 18px; border-radius: 22px; background: var(--g-panel-2); border: 1px solid var(--g-edge); display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-decoration: none; color: inherit; }
.stat-g:hover { border-color: var(--g-edge-2); }
.stat-g .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.stat-g .who .av { width: 30px; height: 30px; border-radius: 50%; background: #333 center / cover; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.stat-g .big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: flex-end; justify-content: space-between; }
.stat-g .big svg { margin-bottom: 6px; }
.stat-g .lbl { color: var(--g-text-2); font-size: 12.5px; }
.tabs-g { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }

/* content board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(214px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.col { background: transparent; border: 0; min-height: 260px; display: flex; flex-direction: column; border-radius: 22px; }
.col.drop { background: rgba(255,255,255,.04); outline: 1.5px dashed rgba(255,255,255,.25); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; font-weight: 600; font-size: 13px; color: var(--g-text-2); }
.col-head .ti { font-size: 16px; }
.col-head .n { color: var(--g-text-3); font-weight: 500; }
.col-head .g-btn { margin-left: auto; }
.col-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kcard { cursor: grab; }
.kcard .g-poster { aspect-ratio: 16 / 11; border-radius: 16px; }
.kcard.dragging { opacity: .45; }
.kcard-title { font-weight: 500; margin-top: 7px; line-height: 1.3; font-size: 13px; }
.kcard-meta { display: flex; gap: 6px; align-items: center; color: var(--g-text-3); font-size: 11.5px; margin-top: 3px; }
.topic-pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: rgba(255,255,255,.08); color: var(--g-text); }
.topic-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #fff); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { height: 30px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--g-edge); background: var(--g-panel-2); font: 500 12.5px var(--g-font); cursor: pointer; color: var(--g-text-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: #fff; }
.chip.on { background: #fff; color: #0b0b0c; border-color: #fff; }

/* video page */
.vp { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.vp-player { position: sticky; top: 24px; }
.vp-player .frame { aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #111 center / cover no-repeat; border: 1px solid var(--g-edge); position: relative; box-shadow: var(--g-shadow); }
.vp-player video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.vp-player .frame .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--g-text-2); }
.vp-player .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.stepper { display: flex; gap: 6px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--g-panel-2); border: 1px solid var(--g-edge); color: var(--g-text-3); cursor: pointer; font: 500 12.5px var(--g-font); }
.step i { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: rgba(255,255,255,.06); }
.step.done { color: var(--g-text-2); } .step.done i { background: rgba(74,222,128,.16); color: var(--g-ok); }
.step.on { background: #fff; color: #0b0b0c; border-color: #fff; } .step.on i { background: #0b0b0c; color: #fff; }
.step-line { width: 10px; height: 1px; background: var(--g-edge-2); }
.vp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gcard { padding: 16px 18px; border-radius: 22px; background: var(--g-panel-2); border: 1px solid var(--g-edge); display: flex; flex-direction: column; gap: 10px; }
.gcard h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; } .gcard h3 .ti { font-size: 18px; color: var(--g-text-2); }
.script { width: 100%; min-height: 240px; font: 14px/1.65 var(--g-font); padding: 14px 16px; border-radius: 18px; resize: vertical; }
details.gfold { border-radius: 22px; background: var(--g-panel-2); border: 1px solid var(--g-edge); padding: 4px 18px; }
details.gfold summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.gfold summary::-webkit-details-marker { display: none; }
details.gfold[open] summary { border-bottom: 1px solid var(--g-edge); margin-bottom: 12px; }
.job { display: flex; flex-direction: column; gap: 6px; }
.job-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.job-bar i { display: block; height: 100%; background: #fff; transition: width .4s; }
.mono-sm { font-family: var(--g-mono); font-size: 11.5px; color: var(--g-text-3); white-space: pre-wrap; word-break: break-word; max-height: 120px; overflow: auto; }

/* library */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.lib-card { cursor: pointer; }
.lib-card .g-poster { aspect-ratio: 9 / 14; }
.lib-card .tag { position: absolute; top: 10px; right: 10px; }

/* channels / analytics */
.chan-card { display: flex; gap: 14px; align-items: center; }
.chan-avatar { width: 52px; height: 52px; border-radius: 50%; background: #222 center/cover; flex: none; border: 1px solid var(--g-edge); }
.vid-thumb { width: 104px; aspect-ratio: 16 / 9; border-radius: 10px; background: #222 center/cover; flex: none; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.bars span { flex: 1; background: #fff; border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.hbar { display: grid; grid-template-columns: 120px 1fr 60px; align-items: center; gap: 10px; font-size: 13px; margin: 6px 0; }
.hbar i { display: block; height: 8px; border-radius: 4px; background: #fff; }
.rows { background: var(--g-panel-2); border: 1px solid var(--g-edge); border-radius: 22px; box-shadow: none; }
.rows > li { border-top-color: var(--g-edge); }

/* thinking model */
.traits { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.trait { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: var(--g-panel-2); border: 1px solid var(--g-edge); }
.trait .k { color: var(--g-text-3); font-size: 11.5px; } .trait .v { font-weight: 600; }
.trait .sw { width: 22px; height: 22px; border-radius: 8px; }
.ring { width: 54px; height: 54px; }
.doc { line-height: 1.65; } .doc h3 { margin: 18px 0 6px; font-size: 15px; } .doc ul { padding-left: 18px; } .doc p { color: #d4d4d8; }

/* sign-in */
.gate { background: var(--g-bg); }
.gate-card { background: var(--g-panel-solid); border: 1px solid var(--g-edge); border-radius: 26px; box-shadow: var(--g-shadow); }
.gate-hint { background: rgba(255,255,255,.08); color: #fff; }
.g-root select.chip, .g-root input.chip { width: auto; height: 30px; border-radius: 999px; padding: 0 28px 0 12px; background-color: var(--g-panel-2); border: 1px solid var(--g-edge); font: 500 12.5px var(--g-font); color: var(--g-text-2); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.g-root input.chip { padding: 0 12px; background-image: none; }

/* ---------- series setup ---------- */
.series-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.scard { color: inherit; text-decoration: none; cursor: pointer; display: block; }
.scard .g-poster { position: relative; }
.scard:hover .g-poster { border-color: var(--g-edge-2); transform: translateY(-2px); }
.scard .g-poster { transition: transform .18s, border-color .18s; }
.scard .dests { position: absolute; right: 10px; top: 10px; display: flex; gap: 4px; }
.scard .snum { position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; color: var(--g-text-2); }
.scard .snum b { font-size: 22px; color: #fff; font-weight: 700; letter-spacing: -.02em; margin-right: 2px; }
.up { color: var(--g-ok); font-weight: 600; }
.dav { width: 24px; height: 24px; border-radius: 50%; background: #222 center / cover; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.4); position: relative; flex: none; }
.dav[style*="background-image"] i { position: absolute; right: -4px; bottom: -4px; font-size: 10px; background: #0b0b0c; border-radius: 50%; padding: 1px; }
.dests.inline { display: inline-flex; gap: 4px; margin-right: 8px; }
.sthumb { width: 40px; height: 54px; border-radius: 10px; background: #1a1a1c center / cover; flex: none; border: 1px solid var(--g-edge); }
.rows > li .sthumb { margin-right: 4px; }
.pc .mk { position: relative; z-index: 2; height: 26px; margin: 6px 0 2px; font-size: 12px; }
.sugg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--g-panel-2); border: 1px solid var(--g-edge-2); }
.sugg .row-sub { color: var(--g-text-2); font-size: 12.5px; margin-top: 2px; }
.sugg .row-main { flex: 1; min-width: 0; }
.sugg select.chip { padding-right: 24px; }

/* tiles + bars */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.tile { padding: 14px 16px; border-radius: 20px; background: var(--g-panel-2); border: 1px solid var(--g-edge); }
.tile.wide { grid-column: span 2; display: flex; flex-direction: column; }
.tile .k { color: var(--g-text-3); font-size: 12px; font-weight: 500; }
.tile .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .v.up { color: var(--g-ok); }
.bars14 { flex: 1; min-height: 44px; display: flex; align-items: flex-end; gap: 4px; margin-top: 8px; }
.bars14 span { flex: 1; background: rgba(255,255,255,.7); border-radius: 4px 4px 2px 2px; min-height: 3px; }
.bars14 span:hover { background: #fff; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.trow { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding: 6px 4px; border-radius: 12px; }
.trow:hover { background: var(--g-hover); }
.trow .n { width: 16px; color: var(--g-text-3); font-weight: 600; text-align: right; }
.trow .sthumb { width: 30px; height: 40px; border-radius: 8px; }
.trow .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* destinations picker + publications */
.dest-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dp { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--g-panel-2); border: 1px solid var(--g-edge); cursor: pointer; font-size: 13px; }
.dp input { display: none; }
.dp:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.12); }
.dp.off { opacity: .45; cursor: default; }
.pub { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--g-edge); }
.pub .dav { width: 32px; height: 32px; }
.pub .row-main { flex: 1; min-width: 0; }
.pst { font-size: 12px; font-weight: 500; margin-left: 6px; display: inline-flex; align-items: center; gap: 3px; }
.pnums { display: flex; align-items: center; gap: 10px; color: var(--g-text-2); font-size: 12.5px; margin: 3px 0; font-variant-numeric: tabular-nums; }
.pnums span { display: inline-flex; align-items: center; gap: 3px; }
.pnums svg { margin-left: auto; }
.g-btn.spin i { animation: gspin .8s linear infinite; }
@keyframes gspin { to { transform: rotate(360deg); } }
.chip input[type=radio] { accent-color: #fff; margin: 0 2px 0 0; }
