/* Trendi — glass in the original colours (charcoal + lime), with light and motion.
   Loaded after app.css. Dark translucent panels over drifting colour glows; lit edges, light sweeps, soft pulses. */
:root {
  --glass: rgba(22, 24, 28, 0.52);
  --glass-dense: rgba(18, 20, 23, 0.86);
  --glass-chip: rgba(255, 255, 255, 0.04);
  --glass-chip-line: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.09);
  --glass-blur: blur(26px) saturate(180%) brightness(1.06);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}
body { background: #0b0c0e; }

/* ---------- the backdrop: grid, drifting glows, slow light rays ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #0b0c0e; }
.bgfx::before { content: ''; position: absolute; inset: 0; background:
  repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px); }
.bgfx::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, transparent 50%, rgba(0, 0, 0, 0.55) 100%); }
.bgfx i { position: absolute; border-radius: 50%; display: block; }
.bgfx .o1 { left: -6%; top: -8%; width: 52vw; height: 46vh; background: radial-gradient(circle, rgba(198, 244, 50, 0.28), rgba(198, 244, 50, 0) 68%); filter: blur(40px); animation: drift1 22s ease-in-out infinite; }
.bgfx .o2 { right: -8%; top: 14%; width: 46vw; height: 40vh; background: radial-gradient(circle, rgba(92, 225, 230, 0.18), rgba(92, 225, 230, 0) 68%); filter: blur(46px); animation: drift2 26s ease-in-out infinite; }
.bgfx .o3 { left: 30%; top: 52%; width: 50vw; height: 40vh; background: radial-gradient(circle, rgba(140, 110, 255, 0.15), rgba(140, 110, 255, 0) 68%); filter: blur(50px); animation: drift3 30s ease-in-out infinite; }
.bgfx .o4 { left: 4%; bottom: -6%; width: 36vw; height: 30vh; background: radial-gradient(circle, rgba(198, 244, 50, 0.13), rgba(198, 244, 50, 0) 68%); filter: blur(44px); animation: drift2 24s ease-in-out infinite reverse; }
.bgfx .rays { left: -25%; top: -60%; width: 150%; height: 160%; border-radius: 0; filter: blur(30px); animation: rays 80s linear infinite;
  background: conic-gradient(from 0deg at 50% 50%, rgba(198, 244, 50, 0) 0deg, rgba(198, 244, 50, 0.06) 18deg, rgba(198, 244, 50, 0) 40deg, rgba(92, 225, 230, 0.05) 120deg, transparent 160deg, rgba(198, 244, 50, 0.05) 250deg, transparent 290deg); }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18%, 22%) scale(1.15); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-16%, 18%) scale(1.1); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12%, -20%) scale(1.18); } }
@keyframes rays { to { transform: rotate(360deg); } }

/* ---------- glass surfaces ---------- */
.card, .tvc, .pod, .rrow, .pill, .halo-ic, .halo-sel, .ktabs, .sbar, .fchip, .table-wrap, .ingest-status, .flash, .banner, .empty {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-line);
  box-shadow: var(--glass-shadow);
}
.table-wrap.flat { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.empty { border-style: dashed; border-color: rgba(255, 255, 255, 0.14); }
.pillbar.stuck .pill { background: rgba(14, 15, 17, 0.72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(198, 244, 50, 0.1); }
.pmenu, .mega, .dd-menu::before, .dd-sub::before {
  background: var(--glass-dense);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  border-color: rgba(255, 255, 255, 0.1);
}
.sbox, .seg, .chip, .chip-btn, .rgo, .mg-ico { background: var(--glass-chip); border-color: var(--glass-chip-line); }
.sbox { border: 1px solid var(--glass-chip-line); }
.seg { border-radius: 999px; padding: 4px; }
.seg-btn { border-radius: 999px; }
.ktabs { border-radius: 999px; padding: 5px; }
.ktab { border-radius: 999px; }
.tvc { border-radius: 22px; }
.pod { border-radius: 26px; }
.rrow { border-radius: 20px; }
.pod-num { color: rgba(255, 255, 255, 0.05); }
.rrow:hover { background: rgba(26, 28, 32, 0.62); border-color: rgba(198, 244, 50, 0.35); }
.tvc:hover { border-color: rgba(198, 244, 50, 0.45); }
.sbar.hs { border-color: var(--glass-line); }
.sbar.hs:focus-within { border-color: rgba(198, 244, 50, 0.6); }

/* lit edge: bright top-left, fading, a hint of lime bottom-right */
.card, .tvc, .pod, .rrow, .ktabs, .sbar { position: relative; }
.card::after, .tvc::after, .pod::after, .rrow::after, .pill::after, .ktabs::after, .sbar::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0) 60%, rgba(198, 244, 50, 0.26) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.pill { position: relative; }

/* light sweep across cards */
.tvc::before, .pod::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; pointer-events: none; z-index: 3; opacity: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.03) 60%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-30%) skewX(-12deg);
  animation: sheen 1.1s ease-out 1.6s, sheenloop 9s ease-in-out 3s infinite;
}
.tvc:nth-child(2n)::before, .pod:nth-child(2)::before { animation-delay: 1.9s, 4.6s; }
.tvc:nth-child(3n)::before, .pod:nth-child(3)::before { animation-delay: 2.2s, 6.1s; }
.tvc:nth-child(5n)::before { animation-delay: 2.5s, 7.4s; }
.tvc:hover::before, .pod:hover::before { animation: sheen 0.9s ease-out; }
@keyframes sheen { 0% { opacity: 0; transform: translateX(-30%) skewX(-12deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(330%) skewX(-12deg); } }
@keyframes sheenloop { 0%, 82% { opacity: 0; transform: translateX(-30%) skewX(-12deg); } 86% { opacity: 1; } 100% { opacity: 0; transform: translateX(330%) skewX(-12deg); } }

/* entrance: cards and rows float up in sequence */
.tvc, .pod, .rrow, .vcard { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.tvc:nth-child(2), .pod:nth-child(2), .rrow:nth-child(2), .vcard:nth-child(2) { animation-delay: 0.05s; }
.tvc:nth-child(3), .pod:nth-child(3), .rrow:nth-child(3), .vcard:nth-child(3) { animation-delay: 0.1s; }
.tvc:nth-child(4), .rrow:nth-child(4), .vcard:nth-child(4) { animation-delay: 0.15s; }
.tvc:nth-child(5), .rrow:nth-child(5), .vcard:nth-child(5) { animation-delay: 0.2s; }
.tvc:nth-child(6), .rrow:nth-child(6), .vcard:nth-child(6) { animation-delay: 0.25s; }
.tvc:nth-child(7), .rrow:nth-child(7), .vcard:nth-child(7) { animation-delay: 0.3s; }
.tvc:nth-child(8), .rrow:nth-child(8), .vcard:nth-child(8) { animation-delay: 0.35s; }
.tvc:nth-child(9), .rrow:nth-child(9), .vcard:nth-child(9) { animation-delay: 0.4s; }
.tvc:nth-child(10), .rrow:nth-child(10), .vcard:nth-child(10) { animation-delay: 0.45s; }
.tvc:nth-child(n+11), .rrow:nth-child(n+11), .vcard:nth-child(n+11) { animation-delay: 0.5s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; scale: 0.97; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* hover: a slight tilt toward you */
.tvc, .pod, .vcard { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.35s ease; }
.tvc:hover, a.pod:hover, .pod:hover, .vcard:hover { transform: perspective(900px) rotateX(3deg) translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(198, 244, 50, 0.22); }
.rrow { transition: transform 0.3s ease, border-color 0.25s ease, background 0.25s ease; }
.rrow:hover { transform: translateX(4px); }

/* soft lime pulse on the active tab and the search button */
.pl.on, .ktab.on, .sbar-go { animation: glowpulse 3.2s ease-in-out infinite; }
.sbar-go { animation-delay: 1.6s; }
@keyframes glowpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 244, 50, 0); } 50% { box-shadow: 0 0 22px 2px rgba(198, 244, 50, 0.35); } }

@media (prefers-reduced-motion: reduce) {
  .bgfx i, .tvc, .pod, .rrow, .vcard, .tvc::before, .pod::before, .pl.on, .ktab.on, .sbar-go { animation: none !important; }
  .tvc, .pod, .rrow, .vcard { transition: none !important; }
}

/* =================== Sidebar shell =================== */
.shell { display: flex; align-items: flex-start; min-height: var(--vh); }
.shell-main { flex: 1 1 auto; min-width: 0; }
.side {
  position: sticky; top: 16px; flex: none; width: 268px; height: calc(var(--vh) - 32px); margin: 16px 0 16px 16px;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border-radius: 28px; overflow: hidden auto; scrollbar-width: none;
  background: rgba(18, 20, 23, 0.7); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); z-index: 30;
}
.side::-webkit-scrollbar { display: none; }
.side::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 70%, rgba(198, 244, 50, 0.25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 2px 0 6px; }
.side-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; }
.side-logo:hover { color: var(--text); }
.side-logo svg { flex: none; color: var(--accent); }
.side-logo svg path { transform-origin: 13px 13px; animation: spin 6s linear infinite; }
.side-col { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.side-col:hover { border-color: var(--accent); color: var(--accent); }
.side-status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; overflow: hidden; }
.side-status b { display: block; font-size: 13px; }
.side-status small { display: block; font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.side-nav { position: relative; display: flex; flex-direction: column; gap: 2px; }
.side-hl { position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 14px; pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease; }
.side-lbl { display: block; padding: 14px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(236, 237, 238, 0.5); white-space: nowrap; }
.side-it { position: relative; z-index: 1; width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; color: rgba(236, 237, 238, 0.76); text-decoration: none; font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; }
.side-it svg { flex: none; }
.side-it:hover { color: var(--text); }
.side-it[aria-current='page'] { color: var(--accent); font-weight: 700; }
.side-it.grp-on { color: var(--text); font-weight: 700; }
/* For you: lime letters with a soft glow, so it reads as the special tab */
.side-it.glow, .side-it.glow:hover { color: var(--accent); font-weight: 700; }
.side-it.glow .sl { overflow: visible; text-shadow: 0 0 8px rgba(198, 244, 50, 0.7), 0 0 20px rgba(198, 244, 50, 0.4); }
.side-it.glow svg { filter: drop-shadow(0 0 6px rgba(198, 244, 50, 0.6)); }
.side-it .sl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-it.sub { min-height: 40px; padding-left: 40px; font-size: 13px; }
.side-n { flex: none !important; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.side-badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; }
.side-badge.zero { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.side-chev { flex: none !important; display: inline-flex; opacity: 0.7; transition: transform 0.25s ease; }
.side-grp.open .side-chev { transform: rotate(180deg); }
.side-sub { display: none; flex-direction: column; gap: 2px; }
.side-grp.open .side-sub { display: flex; }
.side-form { margin: 0; }
.side-scrim, .mobbar { display: none; }
.headsearch { padding-top: 22px; }

/* collapsed: icon rail */
.shell.collapsed .side { width: 84px; }
.shell.collapsed .side .sl, .shell.collapsed .side-lbl { display: none; }
.shell.collapsed .side-top { flex-direction: column; padding: 0; }
.shell.collapsed .side-col { transform: rotate(180deg); }
.shell.collapsed .side-status { justify-content: center; padding: 12px 0; }
.shell.collapsed .side-it { justify-content: center; padding: 0; }
.shell.collapsed .side-it.sub { padding: 0; }
.shell.collapsed .side-badge { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; font-size: 10px; padding: 0 4px; }
.shell.collapsed .side-nav { gap: 4px; }
.shell.collapsed .side-lbl + * { margin-top: 8px; }

/* phones: the sidebar becomes a drawer */
@media (max-width: 900px) {
  .side { position: fixed; left: 12px; top: 12px; bottom: 12px; height: auto; margin: 0; transform: translateX(-120%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .shell.collapsed .side { width: 268px; }
  .shell.collapsed .side .sl, .shell.collapsed .side-lbl { display: revert; }
  .shell.nav-open .side { transform: none; }
  .side-col { display: none; }
  .side-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .shell.nav-open .side-scrim { display: block; }
  .mobbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 0; }
  .mobbar .side-logo { font-size: 18px; }
  .headsearch { padding-top: 12px; }
}

/* =================== Add to brief =================== */
.bbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.bbtn:hover { border-color: var(--accent); color: var(--accent); }
.bbtn:active { transform: scale(0.96); }
.bbtn .bb-on { display: none; }
.bbtn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bbtn.on .bb-on { display: inline; }
.bbtn.on .bb-add { display: none; }
.bbtn.grow { flex: 1; min-height: 44px; border-radius: 12px; font-size: 14px; }
.tvc.inb, .vcard.inb { border-color: rgba(198, 244, 50, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(198, 244, 50, 0.25); }
.tvc-foot .icon-btn { width: 36px; min-height: 36px; border-radius: 999px; }

.btray { position: sticky; bottom: 18px; z-index: 20; display: flex; justify-content: center; padding: 0 16px; margin-top: -8px; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
.btray.empty { opacity: 0; transform: translateY(20px); }
.btray.empty .btray-in { pointer-events: none; }
.btray-in { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 10px 10px 14px; border-radius: 22px;
  background: rgba(18, 20, 23, 0.84); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid rgba(198, 244, 50, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6); }
.btray-thumbs { display: flex; padding-right: 10px; }
.btray-thumbs img { width: 34px; height: 44px; object-fit: cover; border-radius: 9px; margin-right: -10px; border: 2px solid #15171a; }
.btray-txt b { display: block; font-size: 15px; }
.btray-txt small { display: block; font-size: 12px; color: var(--muted); }

/* =================== Your brief (all videos) =================== */
.bst { align-self: flex-start; display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.st-saved { background: rgba(255, 255, 255, 0.08); color: rgba(236, 237, 238, 0.78); }
.st-gen { background: rgba(92, 225, 230, 0.16); color: #5ce1e6; }
.st-ready { background: var(--accent); color: var(--on-accent); }
.st-film { background: rgba(255, 179, 122, 0.16); color: #ffb37a; }
.st-edit { background: rgba(143, 181, 255, 0.16); color: #a9c8ff; }
.st-post { background: rgba(236, 237, 238, 0.9); color: #0b0c0e; }
.bprog { height: 10px; padding: 2px; border-radius: 99px !important; margin: 4px 0 22px; overflow: hidden; }
.bprog span { display: block; height: 100%; border-radius: 99px; background: var(--accent); box-shadow: 0 0 16px rgba(198, 244, 50, 0.5); transition: width 0.6s ease; }
.blayout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.blist { flex: 1 1 320px; max-width: 440px; min-width: 0; }
.bdetail { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bl-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); transition: border-color 0.2s ease, transform 0.25s ease; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.bl-row:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateX(3px); }
.bl-row.on { border-color: var(--accent); background: rgba(198, 244, 50, 0.07); }
.bl-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.bl-link:hover { color: var(--text); }
.bl-thumb { position: relative; flex: none; }
.bl-img { width: 58px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.bl-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-img svg { width: 22px; height: 22px; }
.bl-n { position: absolute; left: 5px; top: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: rgba(11, 12, 14, 0.72); font-size: 11px; font-weight: 700; }
.bl-title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-row form { margin: 0; }
.bl-x { flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bl-x:hover { color: var(--danger); border-color: rgba(255, 143, 143, 0.5); }
.gap4 { gap: 4px; }
.bnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 20px !important; }
.bnav form { margin: 0; }
.bnav-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.bnav-btn:hover { border-color: var(--accent); color: var(--accent); }
.bsel { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.bsel-media { flex: 0 0 240px; display: flex; flex-direction: column; gap: 8px; }
.bsel-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bsel-title { margin: 8px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.bplayer { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.bplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bcover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--raised); }
.bcover img { width: 100%; height: 100%; object-fit: cover; }
.bstats2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bstats3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.why-big { font-size: 16px; line-height: 1.6; margin-top: 8px !important; }
.shots-mini li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.sbx { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, 0.3); }
.bwait { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 40px 24px !important; }
.bwait-ico { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(198, 244, 50, 0.1); color: var(--accent); }
.bwait-ico svg { width: 24px; height: 24px; }
.gpanel { border-radius: 22px; }

/* beats */
.beatbar { display: flex; gap: 4px; height: 10px; margin-bottom: 14px; }
.beatbar span { border-radius: 99px; }
.beats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.beat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--glass-chip); border: 1px solid var(--glass-chip-line); }
.beat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.beat-t { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; color: #0b0c0e; font-weight: 500; white-space: nowrap; }
.beat p { font-size: 13.5px; color: var(--text2); }
.beat-txt { font-size: 12px !important; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
.beat-txt span { color: var(--muted); margin-right: 4px; }

/* =================== One brief (creator) =================== */
.bsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; border-radius: 20px !important; margin-bottom: 22px; }
.bstep { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.bstep:hover { border-color: rgba(255, 255, 255, 0.22); }
.bstep b { display: block; font-size: 14px; color: inherit; }
.bstep small { display: block; font-size: 11px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bstep-dot { flex: none; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.bstep.past { color: var(--text); }
.bstep.past .bstep-dot { background: var(--accent); color: var(--on-accent); }
.bstep.on { color: var(--text); border-color: var(--accent); background: rgba(198, 244, 50, 0.1); animation: glowpulse 3.2s ease-in-out infinite; }
.bstep.on .bstep-dot { background: var(--accent); color: var(--on-accent); }
@media (max-width: 760px) { .bsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.blayout2 { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.bleft { flex: 1 1 300px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bmain { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mine { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--glass-chip); border: 1px solid var(--glass-chip-line); font-size: 14px; }
.mine-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); }
.tune-row { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tune-row legend { float: left; width: 110px; padding: 0; font-size: 13px; color: var(--muted); }
.tchip { position: relative; cursor: pointer; }
.tchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tchip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); font-size: 13px; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.tchip:hover span { border-color: rgba(255, 255, 255, 0.3); }
.tchip input:checked + span { border-color: var(--accent); background: rgba(198, 244, 50, 0.12); color: var(--accent); font-weight: 600; }
.tchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row.end { justify-content: flex-end; }
.tune-go { border-color: var(--accent); background: rgba(198, 244, 50, 0.08); color: var(--accent); font-weight: 700; }
.tune-go:hover { background: rgba(198, 244, 50, 0.16); color: var(--accent); }
.ring { position: relative; width: 60px; height: 60px; flex: none; color: var(--accent); }
.ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text); }
.ring-fg { transition: stroke-dashoffset 0.4s ease; }
.shot { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: background 0.2s ease; }
.shot input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.shot:has(input:checked) { background: rgba(198, 244, 50, 0.08); }
.shot:has(input:checked) span { opacity: 0.55; text-decoration: line-through; text-decoration-color: rgba(198, 244, 50, 0.6); }
.plan-remind { align-self: end; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
.copyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--glass-chip); border: 1px solid var(--glass-chip-line); }
input[type='datetime-local'] { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { .bl-row, .bstep.on, .side-logo svg path { animation: none !important; } }
.toast { bottom: 108px; }

/* ---------- sidebar v2: floating, vertically centred, flush rows ---------- */
.shell { display: block; }
.side {
  position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
  height: auto; max-height: calc(var(--vh) - 32px); margin: 0; width: 256px; padding: 12px; gap: 8px;
}
.shell-main { margin-left: 288px; transition: margin-left 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shell.collapsed .side { width: 76px; }
.shell.collapsed .shell-main { margin-left: 108px; }
.side-it, .side-it.sub { min-height: 42px; height: 42px; border-radius: 12px; }
.side-it.sub { padding-left: 40px; }
.side-nav { gap: 2px; }
.side-sub { gap: 2px; }
.side-lbl { padding: 12px 12px 6px; }
.side-hl { left: 0; right: 0; height: 42px; border-radius: 12px; will-change: transform;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease; }
.side-hl::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px rgba(198, 244, 50, 0.7); opacity: 0; transition: opacity 0.25s ease; }
.side-hl.is-current::before { opacity: 1; }
.side-it { transition: color 0.2s ease; }
.side-status { padding: 10px 12px; }
.shell.collapsed .side-it, .shell.collapsed .side-it.sub { padding: 0; justify-content: center; }
.shell.collapsed .side-hl::before { top: 12px; bottom: 12px; }
@media (max-width: 900px) {
  .side { top: 12px; bottom: 12px; left: 12px; transform: translateX(-120%); max-height: none; width: 268px; }
  .shell.nav-open .side { transform: none; }
  .shell-main, .shell.collapsed .shell-main { margin-left: 0; }
}
/* sit a quarter of the way from centre toward the top (gap above = 3/4 of the centred gap, on any screen height) */
@media (min-width: 901px) { .side { top: 37.5%; transform: translateY(-37.5%); } }

/* ---------- AI search page ---------- */
.ai-page { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 7vh, 88px) 0 24px; overflow-x: clip; }
.ai-hero { text-align: center; margin-bottom: 26px; }
.ai-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12px; color: rgba(236, 237, 238, 0.8); background: var(--glass-chip); border: 1px solid var(--glass-chip-line); }
.ai-live i { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: glowpulse 2.4s ease-in-out infinite; }
.ai-hero h1 { margin: 18px 0 8px; font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.ai-hero h1 em { font-style: normal; color: var(--accent); }
.ai-hero p { margin: 0 auto; max-width: 620px; font-size: 17px; color: rgba(236, 237, 238, 0.7); }
.ai-box { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 10px; border-radius: 28px; background: var(--glass-dense); -webkit-backdrop-filter: blur(40px) saturate(160%); backdrop-filter: blur(40px) saturate(160%); border: 1px solid rgba(198, 244, 50, 0.25); box-shadow: var(--glass-shadow); animation: aiglow 4s ease-in-out infinite; }
.ai-box:focus-within { border-color: rgba(198, 244, 50, 0.7); }
@keyframes aiglow { 0%, 100% { box-shadow: var(--glass-shadow), 0 0 0 0 rgba(198, 244, 50, 0); } 50% { box-shadow: var(--glass-shadow), 0 0 40px rgba(198, 244, 50, 0.16); } }
.ai-in { display: flex; align-items: flex-start; gap: 12px; padding: 10px 10px 4px 14px; }
.ai-ico { flex: none; margin-top: 4px; color: var(--accent); display: flex; }
.ai-in textarea { flex: 1; min-width: 0; resize: none; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 19px; line-height: 1.45; }
.ai-in textarea::placeholder { color: rgba(236, 237, 238, 0.42); }
.ai-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px 2px 8px; }
.ai-segs { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass-chip); border: 1px solid var(--glass-chip-line); }
.ai-opt { position: relative; cursor: pointer; }
.ai-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ai-opt span { display: block; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgba(236, 237, 238, 0.74); transition: background 0.2s ease, color 0.2s ease; }
.ai-opt:hover span { color: var(--text); }
.ai-opt input:checked + span { background: var(--accent); color: var(--on-accent); }
.ai-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.venom { position: relative; flex: none; z-index: 4; }
.venom canvas { position: absolute; left: -170px; top: -170px; width: calc(100% + 340px); height: calc(100% + 340px); pointer-events: none; }
.venom .venom-body { filter: url(#venomgoo) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.venom .venom-hair { filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.45)); }
.venom-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.venom.on .venom-btn { background: transparent; }
.venom-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.ai-tries { max-width: 860px; margin: 16px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ai-try { padding: 9px 14px; border-radius: 999px; font-size: 13px; color: var(--text); background: var(--glass-chip); border: 1px solid var(--glass-chip-line); text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease; }
.ai-try:hover { color: var(--accent); border-color: rgba(198, 244, 50, 0.45); }
.ai-grid { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 56px; align-items: flex-start; }
.ai-panel { padding: 20px; border-radius: 26px; min-width: 0; }
.ai-ideas { flex: 999 1 560px; }
.ai-recent { flex: 1 1 320px; }
.ai-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.ai-ph h2 { margin: 0; font-size: 19px; font-weight: 700; }
.ai-ph span { font-size: 12px; color: rgba(236, 237, 238, 0.6); }
.ai-idea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.ai-idea { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.ai-idea:hover { color: var(--text); border-color: rgba(198, 244, 50, 0.4); transform: translateY(-2px); }
.ai-idea-cv { flex: none; width: 52px; height: 68px; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #2a2d33, #3b3f47); }
.ai-idea-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-idea-tx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ai-idea-tx b { font-size: 14px; }
.ai-idea-tx small { font-size: 12px; color: rgba(236, 237, 238, 0.64); }
.ai-tag { align-self: flex-start; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 700; background: var(--accent); color: var(--on-accent); }
.ai-tag.brk { background: rgba(255, 179, 122, 0.18); color: #ffb37a; }
.ai-rlist { display: flex; flex-direction: column; gap: 6px; }
.ai-r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--text); text-decoration: none; transition: border-color 0.2s ease; }
.ai-r:hover { color: var(--text); border-color: rgba(198, 244, 50, 0.35); }
.ai-r > svg:first-child { flex: none; color: rgba(236, 237, 238, 0.55); }
.ai-r span { flex: 1; }
.ai-r b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-r small { font-size: 11.5px; color: rgba(236, 237, 238, 0.55); }
.ai-r-go { flex: none; opacity: 0.6; }
@media (max-width: 640px) { .ai-row { justify-content: center; } .ai-in textarea { font-size: 17px; } .ai-grid { margin-top: 36px; } }
@media (prefers-reduced-motion: reduce) { .ai-box, .ai-live i { animation: none; } }

/* ---------- Content studio: schedule ---------- */
.sch { padding-top: 8px; }
.sch-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sch-eye { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(236, 237, 238, 0.64); }
.sch-top h1 { margin: 0 0 4px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.sch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sch-nav { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; background: var(--glass-chip); border: 1px solid var(--glass-chip-line); font-size: 13px; color: rgba(236, 237, 238, 0.8); }
.sch-navb { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); }
.sch-navb:hover { color: var(--accent); border-color: var(--accent); }
.sch-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.sch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sch-stat { padding: 16px 18px; border-radius: 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sch-stat > span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236, 237, 238, 0.6); }
.sch-stat b.mono { font-size: 26px; font-weight: 500; }
.sch-next { border-color: rgba(198, 244, 50, 0.45); }
.sch-next > span { color: var(--accent); }
.sch-next b { font-size: 18px; font-weight: 800; }
.sch-next small { font-size: 13px; color: rgba(236, 237, 238, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-main { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.sch-cal { flex: 999 1 900px; min-width: 0; padding: 16px; border-radius: 24px; }
.sch-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; font-size: 12px; color: rgba(236, 237, 238, 0.7); }
.sch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sch-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.sch-scroll { overflow-x: auto; }
.sch-grid { min-width: 860px; display: grid; grid-template-columns: 74px repeat(7, minmax(0, 1fr)); gap: 6px; }
.sch-dh { padding: 8px 6px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.sch-dh b { display: block; font-size: 13px; }
.sch-dh span { font-size: 12px; color: rgba(236, 237, 238, 0.6); }
.sch-dh.today { background: rgba(198, 244, 50, 0.12); border-color: rgba(198, 244, 50, 0.5); }
.sch-dh.today b { color: var(--accent); }
.sch-dh.past, .sch-cell.past { opacity: 0.55; }
.sch-rl { padding-top: 10px; font-size: 11px; color: rgba(236, 237, 238, 0.55); text-align: right; }
.sch-cell { min-height: 150px; padding: 4px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); }
.sch-cell.today { background: rgba(198, 244, 50, 0.04); }
.sch-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(22, 24, 28, 0.75); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
.sch-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dot); }
.sch-card:hover { color: var(--text); border-color: rgba(198, 244, 50, 0.4); transform: translateY(-1px); }
.sch-card b { font-size: 11.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sch-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; font-size: 10.5px; color: rgba(236, 237, 238, 0.7); }
.sch-meta .bst { font-size: 10px; padding: 2px 7px; }
.sch-cv { display: block; height: 70px; border-radius: 9px; overflow: hidden; background: linear-gradient(160deg, #2a2d33, #3b3f47); }
.sch-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sch-cv.sm { flex: none; width: 40px; height: 52px; border-radius: 9px; }
.sch-empty { margin: 12px 4px 0; }
.sch-side { flex: 1 1 300px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.sch-panel { padding: 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px; }
.sch-panel h2 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sch-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); font-size: 11px; font-weight: 800; }
.sch-list { display: flex; flex-direction: column; gap: 8px; }
.sch-un { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.sch-un-top, .sch-up { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.sch-un-top:hover, .sch-up:hover { color: var(--text); }
.sch-un-top span, .sch-up span.minw0 { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sch-un-top b, .sch-up b { font-size: 13px; display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-up small { font-size: 11px; color: rgba(236, 237, 238, 0.6); }
.sch-up { padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.sch-up:hover, .sch-un:hover { border-color: rgba(198, 244, 50, 0.3); }
.sch-un-set { display: flex; gap: 6px; }
.sch-un-set .inp { flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; font-size: 13px; color-scheme: dark; }
.sch-film { border-color: rgba(198, 244, 50, 0.35); }
.sch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-chips span { padding: 5px 10px; border-radius: 999px; font-size: 12px; background: var(--glass-chip); border: 1px solid var(--glass-chip-line); }

/* ---------- phones & touch screens: same look, a fraction of the GPU work ----------
   iOS Safari kills the tab ("A problem repeatedly occurred") when a page stacks a lot of
   backdrop blurs and infinite animations — e.g. 160 frosted cards each with a looping light sweep,
   plus big blurred animated glows behind them. Here the glass becomes solid translucent panels,
   the backdrop glows stop moving and drop their blur filter (they're soft radial gradients anyway),
   and long lists skip rendering cards that are off screen. */
@media (max-width: 900px), (hover: none) {
  :root { --glass: rgba(22, 24, 28, 0.9); --glass-dense: rgba(18, 20, 23, 0.96); }
  .bgfx .rays { display: none; }
  .bgfx i { filter: none !important; animation: none !important; opacity: 0.8; }
  .bgfx .o1, .bgfx .o4 { width: 90vw; height: 50vh; }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .side, .btray-in, .mobbar { background-color: rgba(16, 18, 21, 0.97) !important; }
  .tvc::before, .pod::before { display: none !important; animation: none !important; }
  .tvc, .pod, .rrow, .vcard, .bl-row { animation: none !important; }
  .pl.on, .ktab.on, .sbar-go, .bstep.on, .ai-box, .ai-live i, .side-logo svg path { animation: none !important; }
  .tvc, .vcard { content-visibility: auto; contain-intrinsic-size: auto 460px; }
  .rrow, .tbl tbody tr, .bl-row, .sch-card { content-visibility: auto; contain-intrinsic-size: auto 72px; }
}

/* ---------- phone layout pass ---------- */
.sch-agenda { display: none; }
@media (max-width: 700px) {
  /* schedule: agenda list instead of the 7-column grid */
  .sch-scroll { display: none; }
  .sch-agenda { display: flex; flex-direction: column; gap: 8px; }
  .sch-aday { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
  .sch-aday.today { border-color: rgba(198, 244, 50, 0.5); background: rgba(198, 244, 50, 0.06); }
  .sch-aday.past { opacity: 0.55; }
  .sch-aday-h { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
  .sch-aday-h b { font-size: 13px; }
  .sch-aday.today .sch-aday-h b { color: var(--accent); }
  .sch-aday-h span { font-size: 18px; color: rgba(236, 237, 238, 0.75); }
  .sch-aday-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .sch-aday-list .sch-card { flex-direction: row; align-items: center; gap: 10px; }
  .sch-aday-list .sch-cv { flex: none; width: 44px; height: 56px; }
  .sch-aday-list .sch-card b { flex: 1; min-width: 0; font-size: 13px; }
  .sch-aday-list .sch-meta { flex-direction: column; align-items: flex-end; }
  .sch-aday-none { padding: 14px 0; font-size: 13px; color: rgba(236, 237, 238, 0.45); }
  .sch-top h1 { font-size: 30px; }
  .sch-actions { width: 100%; }
  .sch-actions .btn.primary { flex: 1; justify-content: center; }
  .sch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-next { grid-column: 1 / -1; }
}
@media (max-width: 900px), (hover: none) {
  /* iOS zooms the page when you focus a field under 16px */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
  /* video cards: cover fits on screen with the details below it */
  .tvc .vthumb, .vcard .vthumb { aspect-ratio: 4 / 5; }
  /* comfortable tap targets for inline links */
  .sound-link { padding: 6px 0; }
  a.strong:not(.block):not(.clamp1) { display: inline-block; padding: 4px 0; }
  .strong-link { padding: 3px 0; }
  /* home sound rows: keep the stage pill whole */
  .prow { gap: 10px; }
  .prow .pill { flex: none; }
  /* brief tray: one compact row */
  .btray { bottom: calc(10px + env(safe-area-inset-bottom)); padding: 0 10px; }
  .btray-in { flex-wrap: nowrap; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 18px; width: 100%; max-width: 520px; }
  .btray-txt { flex: 1; min-width: 0; }
  .btray-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .btray-txt small { display: none; }
  .btray-thumbs img { width: 28px; height: 36px; }
  .btray-in .btn { flex: none; min-height: 40px; padding: 8px 14px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); }
}
@media (max-width: 700px) {
  .sbox-l { font-size: 11px; }
  .sch-aday-list .sch-meta { font-size: 12px; }
  .sch-aday-list .sch-meta .bst { font-size: 11px; }
}
@media (max-width: 900px) {
  /* drawer: scrolls on short screens instead of squashing its rows */
  .side { top: calc(12px + env(safe-area-inset-top)); bottom: calc(12px + env(safe-area-inset-bottom)); max-height: none; overflow-y: auto; overscroll-behavior: contain; }
  .side > *, .side-nav > * { flex-shrink: 0; }
  .mobbar { padding-top: calc(12px + env(safe-area-inset-top)); }
}
@media (max-width: 900px) {
  .side::before, .side::after { display: none; } /* the lit edge is absolutely placed and would scroll with the drawer's content */
  .side { border-color: rgba(198, 244, 50, 0.22); }
}
@media (max-width: 420px) {
  .seg { flex-wrap: wrap; }
  .seg-btn, .ktab { white-space: nowrap; }
}

/* ---------- AI home: top lists + in-place search flow ---------- */
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-hero h1 { transition: font-size .5s cubic-bezier(.2,.8,.2,1), margin .5s; }
.ai-hero p, .ai-live { transition: opacity .35s, max-height .5s, margin .5s; max-height: 120px; }
.ai-page { transition: padding .5s cubic-bezier(.2,.8,.2,1); }
.ai-page.busy { padding-top: clamp(10px, 3vh, 28px); }
.ai-page.busy .ai-hero { margin-bottom: 16px; }
.ai-page.busy .ai-hero h1 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.ai-page.busy .ai-hero p, .ai-page.busy .ai-live { opacity: 0; max-height: 0; margin: 0; overflow: hidden; display: block; }

.ai-tops { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.ai-top { padding: 16px 14px 10px; border-radius: 26px; min-width: 0; }
.ai-top-h { display: flex; align-items: center; gap: 10px; padding: 0 6px 8px; }
.ai-top-h h2 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.ai-top-all { margin-left: auto; font-size: 13px; color: rgba(236,237,238,.6); }
.ai-top-all:hover { color: var(--accent); }
.ai-pdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ai-pdot.tiktok { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.ai-pdot.instagram { background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5); }
.ai-top-row { display: grid; grid-template-columns: 20px 46px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 16px; color: inherit; text-decoration: none; transition: background .2s; }
a.ai-top-row:hover { background: rgba(255,255,255,.055); }
.ai-top-row + .ai-top-row { border-top: 1px solid rgba(255,255,255,.05); }
.ai-rank { font-size: 14px; font-weight: 700; color: rgba(236,237,238,.42); text-align: center; }
.ai-top-cv { width: 46px; height: 60px; border-radius: 11px; overflow: hidden; background: rgba(255,255,255,.06); display: block; }
.ai-top-cv img, .ai-sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-top-tx b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ai-top-tx small { display: block; margin-top: 3px; font-size: 12px; color: rgba(236,237,238,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; color: rgba(236,237,238,.75); white-space: nowrap; }
.ai-top-side em, .ai-x { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(198,244,50,.14); color: var(--accent); }
.ai-st.peak { background: rgba(255,184,77,.14); color: #ffb84d; }
.ai-st.sat { background: rgba(255,255,255,.08); color: rgba(236,237,238,.6); }
.ai-tries + .ai-tops { margin-top: 30px; }

/* lists leave: rows peel off one by one, then the panels fold away */
@keyframes aiRowOut { to { opacity: 0; transform: translateX(-18px) scale(.97); filter: blur(4px); } }
@keyframes aiPanelOut { to { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(6px); } }
.ai-leave .ai-top-row { animation: aiRowOut .34s cubic-bezier(.5,0,.75,0) both; animation-delay: calc(var(--i, 0) * 45ms); }
.ai-leave .ai-top:nth-child(2) .ai-top-row { animation-delay: calc(var(--i, 0) * 45ms + 25ms); }
.ai-leave .ai-top, .ai-leave .ai-panel { animation: aiPanelOut .4s cubic-bezier(.5,0,.75,0) .16s both; }
.ai-leave .ai-tries { animation: aiPanelOut .3s ease-in both; }
.ai-leave { pointer-events: none; }

/* live status panel */
@keyframes aiIn { from { opacity: 0; transform: translateY(18px) scale(.95); filter: blur(6px); } }
.ai-live-wrap { margin-top: 26px; animation: aiIn .5s cubic-bezier(.2,.8,.2,1) both; }
.ai-status { padding: 20px 22px; border-radius: 26px; }
.ai-status-top { display: flex; align-items: center; gap: 16px; }
.ai-status-top h2 { margin: 0 0 3px; font-size: 18px; font-weight: 750; overflow-wrap: anywhere; }
.ai-status-top p { font-size: 14px; }
.ai-prog { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); margin: 16px 0 14px; overflow: hidden; }
.ai-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(198,244,50,.5), var(--accent)); box-shadow: 0 0 14px rgba(198,244,50,.6); transition: width .6s ease; }
.ai-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.ai-steps li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(236,237,238,.42); transition: color .3s; }
.ai-steps li.on { color: #ecedee; }
.ai-steps li.done { color: rgba(236,237,238,.75); }
.ai-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1.5px solid rgba(255,255,255,.22); position: relative; transition: all .3s; }
.ai-steps li.on .ai-dot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198,244,50,.14); animation: aiPulse 1.1s ease-in-out infinite; }
.ai-steps li.done .ai-dot { border-color: var(--accent); background: var(--accent); }
.ai-steps li.done .ai-dot::after { content: ''; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px; border: solid #0b0c0d; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes aiPulse { 50% { box-shadow: 0 0 0 7px rgba(198,244,50,.04); } }

.ai-found { margin-top: 26px; }
.ai-found .ai-ph h2 { display: flex; align-items: baseline; gap: 8px; }
.ai-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ai-sc { display: flex; flex-direction: column; gap: 7px; color: inherit; text-decoration: none; animation: aiIn .5s cubic-bezier(.2,.8,.2,1) both; min-width: 0; }
.ai-sc-cv { position: relative; aspect-ratio: 9 / 13; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.ai-sc-img { position: absolute; inset: 0; display: block; }
.ai-sc-cv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); }
.ai-sc-v { position: absolute; left: 9px; bottom: 8px; z-index: 1; font-size: 12px; font-weight: 700; color: #fff; }
.ai-sc-p { position: absolute; left: 8px; top: 8px; z-index: 1; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; }
.ai-sc-cap { font-size: 13px; line-height: 1.3; font-weight: 550; }
.ai-sc-m { font-size: 11.5px; color: rgba(236,237,238,.55); margin-top: -3px; }
a.ai-sc:hover .ai-sc-cv { box-shadow: 0 0 0 1.5px var(--accent) inset; }
.ai-sk { aspect-ratio: 9 / 13; border-radius: 18px; background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%) 0 0 / 300% 100%; animation: aiShimmer 1.4s linear infinite; }
@keyframes aiShimmer { to { background-position: -150% 0; } }

/* results drop in */
.ai-results { margin-top: 22px; animation: aiIn .45s cubic-bezier(.2,.8,.2,1) both; }
.ai-res-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ai-res-h h2 { overflow-wrap: anywhere; }
.ai-results .vgrid > * { animation: aiIn .55s cubic-bezier(.2,.8,.2,1) both; }
.ai-results .vgrid > *:nth-child(2) { animation-delay: .05s; } .ai-results .vgrid > *:nth-child(3) { animation-delay: .1s; }
.ai-results .vgrid > *:nth-child(4) { animation-delay: .15s; } .ai-results .vgrid > *:nth-child(5) { animation-delay: .2s; }
.ai-results .vgrid > *:nth-child(6) { animation-delay: .25s; } .ai-results .vgrid > *:nth-child(7) { animation-delay: .3s; }
.ai-results .vgrid > *:nth-child(8) { animation-delay: .35s; } .ai-results .vgrid > *:nth-child(n+9) { animation-delay: .4s; }
.ai-results .working, .ai-results .understood { animation: aiIn .5s cubic-bezier(.2,.8,.2,1) both; }

@media (max-width: 900px) {
  .ai-tops { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .ai-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ai-top { padding: 14px 10px 8px; border-radius: 22px; }
  .ai-top-row { grid-template-columns: 16px 42px minmax(0,1fr) auto; gap: 10px; }
  .ai-top-cv { width: 42px; height: 56px; }
  .ai-sgrid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .ai-status { padding: 16px; }
  .ai-status-top .mini-radar { width: 40px; height: 40px; }
  .ai-steps { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-leave *, .ai-sc, .ai-live-wrap, .ai-results, .ai-results .vgrid > * { animation-duration: .01s !important; animation-delay: 0s !important; }
}
@media (max-width: 900px), (hover: none) {
  /* one-shot entrance only (the perf layer turns off card animations) */
  .ai-results .vgrid > .vcard { animation-name: aiIn !important; animation-duration: .5s !important; animation-fill-mode: both !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 640px) {
  .ai-tries { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .ai-tries::-webkit-scrollbar { display: none; }
  .ai-try { flex: none; white-space: nowrap; }
  .ai-sgrid > .ai-sc:nth-child(n+9) { display: none; }
}

/* ---------- phone feed: compact 2-up cards + pop-up player ---------- */
.tvc-ov { display: none; }
@media (max-width: 640px) {
  .tvgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tvc { border-radius: 18px; }
  .tvc.tappable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tvc.tappable:active { transform: scale(.98); }
  .tvc .vthumb { aspect-ratio: 9 / 14; }
  .tvc .vthumb .badge { font-size: 10.5px; padding: 3px 7px; top: 7px; }
  .tvc .vthumb .badge.tl { left: 7px; }
  .tvc .vthumb .badge.tr, .tvc .vthumb .pill.tr { right: 7px; }
  .tvc .play-hint, .tvc .sound-hint { display: none; }
  .tvc-ov { display: flex; align-items: center; justify-content: space-between; gap: 6px; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 9px 8px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); font-size: 12px; font-weight: 700; color: #fff; pointer-events: none; }
  .tvc-ov span::before { content: '▶ '; font-size: 9px; opacity: .85; }
  .tvc-ov em { font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 999px; background: rgba(255,154,61,.22); color: #ffb26b; }
  .tvc-ov em.vph { background: rgba(198,244,50,.18); color: var(--accent); }
  .tvc-body { padding: 9px 10px 11px; gap: 5px; }
  .tvc-body .chips, .tvc-body .what, .tvc-body .sound-link, .tvc-stats, .tvc-foot .row { display: none !important; }
  .tvc-body .cap { font-size: 13px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
  .tvc-foot .xsmall { font-size: 11px; }
}

.pl-ov { position: fixed; inset: 0; z-index: 70; background: rgba(4,5,6,.95); display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); animation: plFade .18s ease both; overscroll-behavior: contain; touch-action: none; }
@keyframes plFade { from { opacity: 0; } }
@keyframes plUp { from { opacity: 0; transform: translateY(36px) scale(.97); } }
.pl-sheet { position: relative; width: min(100%, 440px); max-height: 100%; display: flex; flex-direction: column; animation: plUp .26s cubic-bezier(.2,.8,.2,1) both; touch-action: pan-y; }
.pl-media { position: relative; flex: none; display: flex; justify-content: center; padding: 10px 12px 0; }
.pl-frame { position: relative; height: max(260px, min(calc(var(--dvh) - 318px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), calc(var(--dvh) * 0.66), calc((100vw - 24px) * 16 / 9))); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.6); }
.pl-frame .cover, .pl-frame > div:first-child { position: absolute; inset: 0; }
.pl-frame img { width: 100%; height: 100%; object-fit: cover; filter: blur(0); }
.pl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.pl-open { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #0b0c0d); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pl-stage { position: absolute; top: 12px; left: 12px; z-index: 0; pointer-events: none; }
.pl-info > * { flex-shrink: 0; }
.pl-x { position: absolute; top: calc(4px + env(safe-area-inset-top) * 0); right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(20,22,25,.9); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pl-media + .pl-info { margin-top: 0; }
.pl-info { padding: 6px 16px 12px; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; min-height: 0; }
.pl-grab { align-self: center; width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin-bottom: 2px; }
.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-cap { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pl-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.pl-stats span { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.pl-stats b { font-size: 15px; }
.pl-stats small { font-size: 10.5px; color: rgba(236,237,238,.5); text-transform: uppercase; letter-spacing: .06em; }
.pl-sound { font-size: 13px; }
.pl-act { display: flex; gap: 8px; align-items: center; }
.pl-act .grow { flex: 1; }
.pl-act .btn[disabled] { opacity: .35; }
.pl-count { margin: 0; text-align: center; }
@media (min-width: 901px) and (hover: hover) {
  .pl-sheet { flex-direction: row; width: min(92vw, 860px); align-items: center; gap: 8px; }
  .pl-frame { height: min(82vh, 760px); }
  .pl-info { width: 340px; }
  .pl-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pl-ov, .pl-sheet { animation: none; } }
.pl-on .btray { visibility: hidden; }
/* phone: the feed filters become swipeable one-line rows so videos start on the first screen */
@media (max-width: 640px) {
  .filters.card { padding: 10px; gap: 8px; border-radius: 20px; }
  .filters .seg, .filters .chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .filters .seg::-webkit-scrollbar, .filters .chips::-webkit-scrollbar { display: none; }
  .filters .seg-btn, .filters .chip-btn { flex: none; white-space: nowrap; }
  .filters .seg { padding: 3px; }
  .filters .seg-btn { padding: 7px 12px; font-size: 13px; }
  .filters .chip-btn { padding: 6px 12px; font-size: 13px; }
  .trend-head { margin-bottom: 12px; }
}
/* tile preview starting on a phone: a small spinner until the clip is actually playing */
.vthumb.starting::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; z-index: 3; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: var(--accent); animation: spin .8s linear infinite !important; pointer-events: none; }
/* native video file playback: tile (phones) + pop-up player */
.vthumb .preview-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .2s ease; background: #000; pointer-events: none; }
.vthumb .preview-v.on { opacity: 1; }
.pl-vbox { position: absolute; inset: 0; z-index: 1; }
.pl-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
/* phone: filters as even, full-width controls — two equal segmented bars + one swipeable niche row */
@media (max-width: 640px) {
  .filters.card { background: none; border: 0; box-shadow: none; padding: 0; gap: 10px; display: flex; flex-direction: column; align-items: stretch; margin-bottom: 18px; }
  .filters.card::before, .filters.card::after { display: none; }
  .filters .seg { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; overflow: visible; padding: 4px; border-radius: 999px; }
  .filters .seg-btn { justify-content: center; text-align: center; min-height: 40px; padding: 0 4px; font-size: 14px; border-radius: 999px; white-space: nowrap; }
  .filters .seg-btn.on { background: rgba(198, 244, 50, 0.16); color: var(--accent); font-weight: 650; box-shadow: inset 0 0 0 1px rgba(198, 244, 50, 0.35); }
  .filters .chips { gap: 8px; margin: 2px -16px 0; padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent); }
  .filters .chip-btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
  .filters .chip-btn:last-child { margin-right: 16px; }
}

/* ---------- brief page: grid so the title can sit beside the video on phones; tabs on phones ---------- */
.bsel { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: 'media head' 'media body'; grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 14px; align-items: start; }
.bsel-media { grid-area: media; flex: none; }
.bsel-head { grid-area: head; min-width: 0; }
.bsel-body { grid-area: body; flex: none; }
.btabs { display: none; }
@media (max-width: 760px) {
  .bsel { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'media' 'head' 'body'; }
  .bsel-media { max-width: 300px; }
}
@media (max-width: 640px) {
  /* header: compact, two equal buttons */
  .trend-head .h1 { font-size: 28px; }
  .bhead-act { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .bhead-act > *, .bhead-act form .btn { width: 100%; justify-content: center; }
  .bhead-act .btn { min-height: 44px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .bprog { margin: 2px 0 14px; height: 8px; }
  /* list → swipeable strip of tiles */
  .blayout { gap: 14px; }
  .blist { flex: 1 1 100%; max-width: none; }
  .blist h2 { margin-bottom: 8px !important; }
  .blist ul { flex-direction: row !important; overflow-x: auto; gap: 10px !important; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .blist ul::-webkit-scrollbar { display: none; }
  .bl-row { flex: none; width: 104px; flex-direction: column; align-items: stretch; padding: 6px; gap: 6px; border-radius: 16px; scroll-snap-align: start; transform: none !important; }
  .bl-link { flex-direction: column; align-items: stretch; gap: 6px; }
  .bl-img { width: 100%; height: 124px; }
  .bl-title { font-size: 11.5px; line-height: 1.25; }
  .bl-link .xsmall { display: none; }
  .bl-link .bst { align-self: flex-start; font-size: 10px; padding: 2px 7px; }
  .bl-row form { display: none; }
  /* nav: one tidy row */
  .bnav { padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
  .bnav > .row:first-child { gap: 6px; flex: none; }
  .bnav-btn { width: 38px; height: 38px; }
  .bnav .mono { font-size: 12px; white-space: nowrap; }
  .bnav > .row:last-child { flex-wrap: nowrap !important; gap: 6px; justify-content: flex-end; min-width: 0; }
  .bnav .btn.sm { min-height: 36px; padding: 0 10px; font-size: 12.5px; white-space: nowrap; }
  /* selected video: small player beside the title + stats */
  .bsel { grid-template-columns: 42% minmax(0, 1fr); grid-template-areas: 'media head' 'body body'; column-gap: 12px; row-gap: 14px; }
  .bsel-media { max-width: none; gap: 6px; }
  .bplayer.sm { border-radius: 16px; }
  .bstats2 { grid-template-columns: 1fr; gap: 6px; }
  .bstats2 .sbox { padding: 6px 10px; }
  .bstats2 .sbox-v { font-size: 15px; }
  .bsel-head .chips { gap: 6px; }
  .bsel-head .chip, .bsel-head .bst { font-size: 11.5px; padding: 3px 8px; }
  .bsel-title { font-size: 17px; line-height: 1.25; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
  /* brief parts as tabs */
  .btabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-chip); border: 1px solid var(--glass-chip-line); position: sticky; top: 8px; z-index: 5; }
  .btab { min-height: 38px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .btab.on { background: rgba(198, 244, 50, 0.16); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(198, 244, 50, 0.35); }
  .bsel-body .bsec:not(.on) { display: none; }
  .bsel-body .two { gap: 0; }
  .bsel-body .gpanel.pad { padding: 16px; }
  .why-big { font-size: 15px; line-height: 1.55; }
  .beats { gap: 8px; }
  .beat { padding: 12px; gap: 6px; }
  .beat p { font-size: 14px; line-height: 1.45; }
  .beatbar { margin-bottom: 10px; }
}
.bnav-regen { gap: 6px; }
@media (max-width: 640px) {
  .bnav-word { display: none; }
  .bnav-regen, .bnav-rm .btn { width: 36px; padding: 0 !important; justify-content: center; }
  /* stats move beside the video, under the title */
  .bsel { grid-template-areas: 'media head' 'media stats' 'body body'; grid-template-rows: auto 1fr auto; }
  .bsel-media { display: contents; }
  .bsel-media .bplayer { grid-area: media; }
  .bsel-media .bstats2 { grid-area: stats; align-self: end; }
}
.bnav-short { display: none; }
@media (max-width: 640px) {
  .bnav-short { display: inline; }
  .blist .bl-row { content-visibility: visible !important; contain-intrinsic-size: none !important; }
}

/* ---------- sliding selection pill (shared/slide.js) ---------- */
.slid { position: relative; isolation: isolate; }
.slide-pill { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; will-change: transform; transition: transform .42s cubic-bezier(.32, .9, .28, 1), width .42s cubic-bezier(.32, .9, .28, 1), height .42s cubic-bezier(.32, .9, .28, 1); }
.slid > :not(.slide-pill) { position: relative; z-index: 1; }
.slid .ktab.on, .slid .seg-btn.on, .slid .btab.on, .slid .ai-opt input:checked + span { background: transparent !important; background-image: none !important; box-shadow: none !important; animation: none !important; }
.slid .ktab, .slid .seg-btn, .slid .btab, .slid .ai-opt span { transition: color .25s ease; }
.slid .slide-to, .slid .ai-opt.slide-to span { color: var(--slide-on) !important; }
.slid:has(.slide-to) .on:not(.slide-to), .slid:has(.slide-to) .ai-opt:not(.slide-to) input:checked + span { color: var(--slide-off) !important; font-weight: inherit; }
@media (min-width: 901px) and (hover: hover) { .ktabs > .slide-pill { animation: glowpulse 3.2s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .slide-pill { transition: none; } }

/* ---------- schedule: tighter everywhere ---------- */
.sch-ai-short { display: none; }
.sch-top { margin-bottom: 14px; }
.sch-stats { margin-bottom: 14px; }
.sch-stat { padding: 13px 16px; }
.sch-cell { min-height: 108px; }
.sch-dh { padding: 6px; }
.sch-grid > .sch-cell .sch-cv { height: 54px; }
.sch-side { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sch-panel { padding: 16px; gap: 10px; }
.sch-panel.zero { gap: 6px; }
@media (max-width: 640px) {
  .sch { padding-top: 0; }
  .sch-top { align-items: center; gap: 10px; margin-bottom: 12px; }
  .sch-top h1 { font-size: 28px; margin: 0; }
  .sch-eye, .sch-desc { display: none; }
  .sch-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
  .sch-nav { justify-content: space-between; }
  .sch-actions .btn { min-height: 44px; justify-content: center; padding: 0 12px; white-space: nowrap; }
  .sch-actions .btn.sm { grid-column: 1 / -1; order: 3; min-height: 36px; }
  .sch-ai-long { display: none; }
  .sch-ai-short { display: inline; }
  /* stats: next post on top, three small numbers in one row */
  .sch-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .sch-stats .sch-next { grid-column: 1 / -1; padding: 12px 14px; }
  .sch-stats .sch-stat:not(.sch-next) { padding: 10px 12px; border-radius: 16px; }
  .sch-stat > span { font-size: 10px; }
  .sch-stat b.mono { font-size: 20px; }
  .sch-next b { font-size: 16px; }
  /* calendar card: no legend (each card says its status), slim empty days */
  .sch-cal { padding: 8px; border-radius: 20px; }
  .sch-legend { display: none; }
  .sch-agenda { gap: 6px; }
  .sch-aday { padding: 8px; border-radius: 14px; gap: 10px; }
  .sch-aday.empty { align-items: center; padding: 6px 10px; }
  .sch-aday.empty .sch-aday-h { flex-direction: row; gap: 6px; width: auto; min-width: 64px; padding: 0; align-items: baseline; }
  .sch-aday.empty .sch-aday-h span { font-size: 13px; }
  .sch-aday.empty .sch-aday-none { padding: 0; font-size: 12.5px; }
  .sch-aday.empty.past { opacity: 0.4; }
  .sch-aday-h { width: 40px; }
  .sch-aday-h span { font-size: 16px; }
  .sch-aday-list .sch-card { padding: 6px; }
  .sch-aday-list .sch-cv { width: 38px; height: 48px; }
  /* side panels */
  .sch-main { gap: 12px; }
  .sch-side { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sch-panel { padding: 14px; border-radius: 18px; }
  .sch-panel h2 { font-size: 16px; }
  .sch-panel.zero { display: none; }
  .sch-panel .btn.block { min-height: 42px; }
  .sch-side .sch-panel { content-visibility: visible !important; }
}
.sch-up span.sch-up-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.sch-up-meta .bst { font-size: 10px; padding: 2px 7px; }
@media (max-width: 640px) { .sch-aday.empty .sch-aday-none { text-align: left; } }

/* ---------- schedule drag and drop ---------- */
.sch-noselect, .sch-noselect * { -webkit-user-select: none !important; user-select: none !important; }
[data-drag-id] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (hover: hover) { .sch [data-drag-id] { cursor: grab; } }
.sch-tray { padding: 14px 16px; border-radius: 22px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: border-color .2s, background .2s; }
.sch-tray-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sch-tray-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(198,244,50,.12); color: var(--accent); flex: none; }
.sch-tray-h h2 { margin: 0; font-size: 16px; font-weight: 750; }
.sch-tray-tip { font-size: 13px; color: rgba(236,237,238,.6); }
.t-touch { display: none; }
@media (hover: none) { .t-touch { display: inline; } .t-mouse { display: none; } }
.sch-tray-drop { display: none; margin-left: auto; font-size: 13px; font-weight: 600; color: rgba(236,237,238,.8); }
.sch-tray-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sch-tray-list::-webkit-scrollbar { display: none; }
.sch-chip { flex: none; display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 6px 10px 6px 6px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.sch-chip:hover { color: var(--text); border-color: rgba(198,244,50,.45); }
.sch-chip .minw0 { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sch-chip b { font-size: 12.5px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-chip .bst { font-size: 10px; padding: 2px 7px; }
.sch-chip.more { padding: 0 14px; font-size: 13px; color: rgba(236,237,238,.7); }
.sch-grip { flex: none; color: rgba(236,237,238,.35); margin-left: 2px; }
/* first chip gives a little nudge so it reads as movable */
@keyframes schNudge { 0%, 100% { transform: none; } 30% { transform: translateY(-4px) rotate(-1.5deg); } 60% { transform: translateY(1px); } }
.sch-tray-list .sch-chip:first-child { animation: schNudge .9s ease-in-out 1.2s 2 both; }

/* the thing being dragged */
.sch-ghost { position: fixed !important; z-index: 90; pointer-events: none; margin: 0 !important; opacity: .96; box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 0 1.5px var(--accent) !important; border-radius: 14px; transition: none !important; animation: none !important; will-change: transform; }
.sch-ghost-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #0b0c0d); font-size: 12px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.sch-lifted { opacity: .3; }

/* drop targets light up while dragging */
.sch-drop-lbl { display: none; }
.sch.dragging .sch-cell:not(.no-drop) { outline: 1.5px dashed rgba(198,244,50,.35); outline-offset: -3px; transition: background .15s, outline-color .15s; }
.sch.dragging .sch-cell:not(.no-drop) .sch-drop-lbl { display: block; font-size: 10.5px; color: rgba(198,244,50,.6); text-align: center; padding: 2px 0; }
.sch.dragging .sch-cell.over { background: rgba(198,244,50,.14) !important; outline: 2px solid var(--accent); }
.sch.dragging .sch-cell.over .sch-drop-lbl { color: var(--accent); font-weight: 700; }
.sch.dragging .sch-cell.no-drop { opacity: .3; }
.sch.dragging .sch-tray { border-color: rgba(198,244,50,.4); border-style: dashed; }
.sch.dragging .sch-tray .sch-tray-drop { display: inline; }
.sch.dragging .sch-tray.over { background: rgba(198,244,50,.1); border-color: var(--accent); }
.sch-cell.busy, .sch-slot.busy, .sch-tray.busy { animation: schBusy .8s ease-in-out infinite alternate; }
@keyframes schBusy { to { background: rgba(198,244,50,.22); } }

/* phones: each day opens Morning / Afternoon / Evening slots while dragging */
.sch-slots { display: none; }
.sch.dragging .sch-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
.sch-slot { min-height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 600; color: rgba(198,244,50,.75); border: 1.5px dashed rgba(198,244,50,.35); background: rgba(198,244,50,.04); transition: background .15s, color .15s, border-color .15s; }
.sch-slot.over { background: rgba(198,244,50,.2); border: 1.5px solid var(--accent); color: var(--accent); }
.sch-slot.no-drop { opacity: .25; border-style: solid; border-color: rgba(255,255,255,.08); color: rgba(236,237,238,.4); }
.sch.dragging .sch-aday.empty .sch-aday-none { display: none; }
.sch.dragging .sch-aday.empty { align-items: flex-start; padding: 8px 10px; }
@media (max-width: 640px) {
  .sch-tray { padding: 12px; border-radius: 18px; margin-bottom: 12px; }
  .sch-tray-h { gap: 8px; }
  .sch-tray-tip { flex-basis: 100%; font-size: 12.5px; margin-top: -4px; padding-left: 38px; }
  .sch.dragging .sch-tray-tip { display: none; }
  .sch-tray-drop { flex-basis: 100%; margin: 0; padding-left: 38px; }
  .sch-tray-list { margin: 0 -12px; padding: 0 12px 2px; }
  .sch-chip { max-width: 210px; }
}
@media (max-width: 640px) { .sch-side .sch-panel:first-child { display: none; } /* the drag tray replaces "Needs a time" on phones */ }
/* dropped card: hidden while its ghost flies in, then a little pop + glow */
.sch-landing { opacity: 0 !important; }
@keyframes schLand { 0% { transform: scale(.94); box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(198,244,50,.5); } 60% { transform: scale(1.02); } 100% { transform: none; box-shadow: 0 0 0 0 transparent; } }
.sch-landed { animation: schLand .6s cubic-bezier(.2,.8,.2,1) both !important; }
.sch-ghost.flying { transition: transform .3s cubic-bezier(.2,.85,.25,1), width .3s cubic-bezier(.2,.85,.25,1), height .3s cubic-bezier(.2,.85,.25,1), opacity .3s !important; }
/* landing v2: squash and settle + lime glow that fades, ripple rings and sparks */
@keyframes schLand2 {
  0% { transform: scale(1.04, .94); box-shadow: 0 0 0 2px var(--accent), 0 0 30px rgba(198,244,50,.55); }
  35% { transform: scale(.97, 1.04); }
  60% { transform: scale(1.015, .99); box-shadow: 0 0 0 2px rgba(198,244,50,.8), 0 0 18px rgba(198,244,50,.35); }
  100% { transform: none; box-shadow: 0 0 0 0 transparent; }
}
.sch-landed { animation: schLand2 .75s cubic-bezier(.2,.8,.2,1) both !important; overflow: visible !important; z-index: 3; }
.sch-burst { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.sch-burst .sb-ring { width: auto; height: auto; position: absolute; inset: -2px; border-radius: 14px; border: 2px solid var(--accent); animation: schRing .7s cubic-bezier(.2,.7,.3,1) forwards; }
.sch-burst .sb-ring.r2 { animation-delay: .12s; opacity: 0; border-width: 1.5px; }
@keyframes schRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.6); } }
.sch-burst b { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(198,244,50,.9); transform: rotate(var(--a)) translateY(0) scale(.4); opacity: 0; animation: schSpark .65s cubic-bezier(.15,.8,.3,1) .05s forwards; }
.sch-burst b:nth-child(odd) { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #fff; }
@keyframes schSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * (var(--d) + 40px))) scale(1); } }
.sch-cell, .sch-aday-list { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .sch-landed { animation-duration: .01s !important; } }

/* sidebar platform group: name is a link to the platform page, arrow toggles the list */
.side-grp-h { position: relative; display: flex; align-items: center; }
.side-grp-h .side-it { padding-right: 44px; }
.side-chev-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: rgba(236,237,238,.7); display: grid; place-items: center; cursor: pointer; }
.side-chev-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.side-chev-btn .side-chev { opacity: 1; }
.shell.collapsed .side-grp-h .side-it { padding-right: 12px; }

/* ---------- platform page (/tiktok, /instagram) ---------- */
.pf { display: flex; flex-direction: column; gap: 22px; padding-bottom: 12px; }
.pf-hero { display: flex; align-items: center; gap: 18px; }
.pf-badge { flex: none; width: 64px; height: 64px; border-radius: 20px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.pf-badge.tiktok { background: #0b0c0e; border: 1px solid rgba(255,255,255,.12); }
.pf-badge.tiktok::before, .pf-badge.tiktok::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; }
.pf-badge.tiktok::before { background: #25f4ee; transform: translate(-3px, -2px); opacity: .9; }
.pf-badge.tiktok::after { background: #fe2c55; transform: translate(3px, 2px); mix-blend-mode: screen; opacity: .9; }
.pf-badge.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.pf-badge.instagram::after { content: ''; position: absolute; inset: 18px; border: 3px solid #fff; border-radius: 9px; }
.pf-lede { max-width: 640px; margin-top: 4px !important; }
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pf-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.pf-stat:hover { color: var(--text); border-color: rgba(198,244,50,.4); transform: translateY(-2px); }
.pf-stat span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(236,237,238,.6); }
.pf-stat b { font-size: 26px; font-weight: 500; }
.pf-tabs { align-self: flex-start; }
.pf-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pf-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pf-sec-h h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.pf-more { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--accent); background: rgba(198,244,50,.08); border: 1px solid rgba(198,244,50,.3); text-decoration: none; transition: background .2s, gap .2s; white-space: nowrap; }
.pf-more:hover { color: var(--accent); background: rgba(198,244,50,.15); gap: 9px; }
.pf-vrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pf-vrow > .tvc:nth-child(n+6) { display: none; }
@media (min-width: 1500px) { .pf-vrow { grid-template-columns: repeat(5, minmax(0, 1fr)); } .pf-vrow > .tvc:nth-child(n+6) { display: flex; } }
.pf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
.pf-sounds { padding: 6px; border-radius: 22px; display: flex; flex-direction: column; }
.pf-sound { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 16px; transition: background .2s; }
.pf-sound:hover { background: rgba(255,255,255,.04); }
.pf-sound + .pf-sound { border-top: 1px solid rgba(255,255,255,.05); }
.pf-sound .sp-play { width: 44px; height: 44px; }
.pf-sound-tx { display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; }
.pf-sound-tx:hover { color: var(--accent); }
.pf-sound-tx b { font-size: 14px; }
.pf-sound-tx small { font-size: 12px; color: rgba(236,237,238,.55); }
.pf-sound-st { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
.pf-sound-st .pill { font-size: 10.5px; padding: 2px 8px; }
.pf-rank { font-size: 13px; font-weight: 700; color: rgba(236,237,238,.42); text-align: center; }
.pf-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-tag { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--text); text-decoration: none; min-width: 0; transition: border-color .2s, transform .2s; }
.pf-tag:hover { color: var(--text); border-color: rgba(198,244,50,.4); transform: translateY(-2px); }
.pf-tag-top { display: flex; align-items: center; justify-content: space-between; }
.pf-tag-top .pf-rank { text-align: left; }
.pf-tag-top .pill { font-size: 10.5px; padding: 2px 8px; }
.pf-tag-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.pf-tag-num .mono { font-size: 16px; color: var(--accent); }
.pf-tag-num small, .pf-tag-meta { font-size: 11.5px; color: rgba(236,237,238,.55); }
.pf-tag .thumbs { margin: 2px 0; }
@media (max-width: 1180px) { .pf-split { grid-template-columns: minmax(0, 1fr); } .pf-vrow { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pf-vrow > .tvc:nth-child(n+5) { display: none; } .pf-tags { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pf-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* phones: compact hero, 2x2 stats, sideways swipe rows for videos and hashtags */
@media (max-width: 640px) {
  .pf { gap: 18px; }
  .pf-hero { gap: 14px; }
  .pf-badge { width: 52px; height: 52px; border-radius: 16px; }
  .pf-badge.tiktok::before, .pf-badge.tiktok::after { inset: 13px; }
  .pf-badge.instagram::after { inset: 14px; border-width: 2.5px; border-radius: 8px; }
  .pf-hero .h1 { font-size: 30px; }
  .pf-lede { display: none; }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-stat { padding: 10px 12px; border-radius: 16px; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .pf-stat b { font-size: 20px; }
  .pf-tabs { align-self: stretch; }
  .pf-sec-h h2 { font-size: 18px; }
  .pf-sec-h p { font-size: 12px; }
  .pf-more { padding: 7px 11px; font-size: 12.5px; }
  .pf-vrow { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pf-vrow::-webkit-scrollbar { display: none; }
  .pf-vrow > .tvc, .pf-vrow > .tvc:nth-child(n+5), .pf-vrow > .tvc:nth-child(n+6) { display: flex; flex: none; width: 44vw; max-width: 200px; scroll-snap-align: start; }
  .pf-split { gap: 18px; }
  .pf-sound { grid-template-columns: 18px 40px minmax(0, 1fr) auto; gap: 10px; padding: 7px 8px; }
  .pf-sound .sp-play { width: 40px; height: 40px; }
  .pf-tags { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pf-tags::-webkit-scrollbar { display: none; }
  .pf-tag { flex: none; width: 62vw; max-width: 240px; scroll-snap-align: start; padding: 12px; }
}
@media (max-width: 640px) {
  .tvc { contain-intrinsic-size: auto 330px; } /* compact phone cards are shorter than the desktop guess */
  .pf-vrow { align-items: flex-start; }
  .pf-vrow > .tvc { content-visibility: visible; }
}
/* desktop: exactly one row of video cards, as many as fit at a readable width */
@media (min-width: 641px) {
  .pf-vrow { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)) !important; grid-template-rows: auto; grid-auto-rows: 0; row-gap: 0; overflow: hidden; padding: 4px 3px 6px; margin: -4px -3px -6px; }
  .pf-vrow > .tvc, .pf-vrow > .tvc:nth-child(n+5), .pf-vrow > .tvc:nth-child(n+6) { display: flex !important; }
}

/* ---------- speed: desktop scrolling ----------
   Repeated items (video cards, rows, chips) no longer each run a live background blur — dozens of
   them re-blurring on every scroll frame was the main cost. They get a slightly denser fill instead,
   which looks the same over the dark background. Big panels, the sidebar and the bars keep the glass.
   The endless shine sweep now runs once (and on hover) instead of looping on every card, and cards
   far off-screen skip rendering until you scroll near them. */
.tvc, .pod, .rrow, .pill, .fchip, .bl-row, .sch-card, .pf-tag, .pf-stat {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.tvc, .pod, .rrow, .bl-row, .pf-tag, .pf-stat { background: rgba(21, 23, 27, 0.86); }
.tvc::before, .pod::before { animation: sheen 1.1s ease-out 1.6s 1 !important; }
.tvc:nth-child(n+9)::before { animation: none !important; }
.tvc:hover::before, .pod:hover::before { animation: sheen 0.9s ease-out !important; }
.tvgrid > .tvc:nth-child(n+13), .vgrid > .vcard:nth-child(n+13) { content-visibility: auto; contain-intrinsic-size: auto 520px; }
.tvc:nth-child(n+13) { animation-delay: 0s !important; }
/* the big background glow layers: promote once, no repaint while scrolling */
.bgfx i { will-change: transform; }

/* ---------- creators list: account chips ---------- */
.cr-accts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cr-acct { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 6px; border-radius: 999px; font-size: 12px; background: var(--glass-chip); border: 1px solid var(--glass-chip-line); }
.cr-acct i { width: 8px; height: 8px; border-radius: 50%; }
.cr-acct.tiktok i { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.cr-acct.instagram i { background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5); }
.cr-acct b { font-size: 11px; color: var(--accent); font-weight: 600; }

/* ---------- creator account page ---------- */
.ca { display: flex; flex-direction: column; gap: 18px; }
.ca-back { align-self: flex-start; font-size: 13px; color: rgba(236,237,238,.6); text-decoration: none; }
.ca-back:hover { color: var(--accent); }
.ca-hero { display: flex; align-items: center; gap: 16px; }
.ca-av { flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #2a2d33, #3b3f47); color: var(--text); font-weight: 800; }
.ca-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ca-av.md { width: 48px; height: 48px; font-size: 16px; }
.ca-av.lg { width: 72px; height: 72px; font-size: 24px; box-shadow: 0 0 0 2px rgba(198,244,50,.5), 0 10px 30px rgba(0,0,0,.4); }
.ca-niches { margin-top: 8px; }
.ca-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ca-social { padding: 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ca-social.err { border-color: rgba(255,143,143,.4); }
.ca-social-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ca-social-h .minw0 { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ca-social-h b { font-size: 15px; }
.ca-social-h small { font-size: 12.5px; color: rgba(236,237,238,.55); }
.ca-av-wrap { position: relative; flex: none; }
.ca-av-wrap .ca-pbadge { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border: 2px solid #15171a; }
.ca-pbadge { flex: none; display: inline-block; width: 30px; height: 30px; border-radius: 9px; }
.ca-pbadge.tiktok { background: #0b0c0e; box-shadow: inset 4px 3px 0 -1px #25f4ee, inset -4px -3px 0 -1px #fe2c55; border: 1px solid rgba(255,255,255,.14); }
.ca-pbadge.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ca-verified { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; background: #20d5ec; color: #0b0c0e; font-size: 10px; font-weight: 900; vertical-align: 1px; }
.ca-handle { font-size: 13px; color: rgba(236,237,238,.6); text-decoration: none; }
.ca-handle:hover { color: var(--accent); }
.ca-fol { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.ca-fol b { font-size: 18px; }
.ca-fol small { font-size: 11px; color: rgba(236,237,238,.55); }
.ca-status { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 8px; line-height: 1.4; }
.ca-status.ok { color: rgba(236,237,238,.65); }
.ca-status.ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.ca-status.error { color: #ff9b9b; }
.ca-status.checking { color: var(--accent); }
.ca-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(198,244,50,.25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.ca-social-act { display: flex; gap: 6px; flex-wrap: wrap; }
.ca-social-act form { margin: 0; }
.ca-connect { display: flex; gap: 8px; flex-wrap: wrap; }
.ca-at { flex: 1 1 180px; position: relative; display: flex; }
.ca-at span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(236,237,238,.5); font-weight: 600; pointer-events: none; }
.ca-at .inp { width: 100%; padding-left: 28px; min-height: 42px; }
.ca-help { margin: -6px 0 0; }
.ca-tabs { align-self: flex-start; }
.ca-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ca-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); }
.ca-stat > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(236,237,238,.6); }
.ca-stat b { font-size: 26px; font-weight: 500; }
.ca-stat small { font-size: 12px; color: rgba(236,237,238,.55); }
.ca-stat small.up, .ca-x.up, .mono.up { color: var(--accent); }
.ca-stat small.down, .mono.down { color: #ff9b9b; }
.ca-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34px; opacity: .55; }
.ca-spark polyline { stroke: var(--accent); }
.ca-sec { display: flex; flex-direction: column; gap: 12px; }
.ca-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ca-sec-h h2 { margin: 0; font-size: 19px; font-weight: 800; }
.ca-sec-h small { font-size: 12.5px; color: rgba(236,237,238,.55); }
.ca-pats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ca-pat { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); }
.ca-pat > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(236,237,238,.6); }
.ca-pat b { font-size: 20px; font-weight: 800; }
.ca-pat small { font-size: 12px; color: rgba(236,237,238,.6); }
.ca-order { padding: 3px; }
.ca-order .seg-btn { min-height: 34px; padding: 0 14px; font-size: 13px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ca-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ca-post { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); cursor: pointer; transition: border-color .2s, transform .2s; }
.ca-post:hover { border-color: rgba(198,244,50,.4); transform: translateY(-2px); }
.ca-post .vthumb { aspect-ratio: 9 / 14; }
.ca-x { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.62); color: #fff; }
.ca-x.up { background: var(--accent); color: #0b0c0d; }
.ca-x.down { background: rgba(255,120,120,.85); color: #1a0b0b; }
.ca-views { position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.ca-post .play-hint, .ca-post .sound-hint { display: none; }
.ca-post-b { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 4px; }
.ca-post-b p { margin: 0; font-size: 13px; line-height: 1.3; }
.ca-post-m { font-size: 11.5px; color: rgba(236,237,238,.55); }
@media (max-width: 900px) { .ca-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ca { gap: 14px; }
  .ca-hero { gap: 12px; }
  .ca-av.lg { width: 56px; height: 56px; font-size: 19px; }
  .ca-hero .h1 { font-size: 28px; }
  .ca-socials { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ca-social { padding: 14px; border-radius: 18px; }
  .ca-connect .btn { flex: 1; min-height: 42px; }
  .ca-at { flex-basis: 100%; }
  .ca-tabs { align-self: stretch; }
  .ca-stats { gap: 8px; }
  .ca-stat { padding: 10px 12px; border-radius: 16px; }
  .ca-stat b { font-size: 20px; }
  .ca-pats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ca-pat { padding: 10px 12px; border-radius: 16px; }
  .ca-pat b { font-size: 16px; }
  .ca-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.ca-stat:has(.ca-spark) { padding-bottom: 30px; }
.ca-spark { height: 24px; bottom: 4px; }

/* ---------- creators directory ---------- */
.crs { display: flex; flex-direction: column; gap: 18px; }
.crs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.crs-lede { margin-top: 4px !important; }
.crc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.crc { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; min-width: 0; }
.crc:hover { color: var(--text); border-color: rgba(198,244,50,.45); transform: translateY(-2px); }
.crc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crc-top .minw0 { display: flex; flex-direction: column; gap: 2px; }
.crc-top b { font-size: 17px; font-weight: 800; }
.crc-top small { font-size: 12.5px; color: rgba(236,237,238,.55); }
.crc-av { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #2a2d33, #3b3f47); font-weight: 800; font-size: 17px; box-shadow: 0 0 0 2px rgba(198,244,50,.35); }
.crc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crc-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-acct em { font-style: normal; font-size: 11px; color: var(--accent); }
.crc-none { font-size: 13px; font-weight: 650; color: var(--accent); padding: 8px 12px; border-radius: 12px; border: 1.5px dashed rgba(198,244,50,.35); background: rgba(198,244,50,.04); }
.crc-foot { display: flex; align-items: center; gap: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; color: rgba(236,237,238,.55); }
.crc-foot b { color: var(--text); font-size: 14px; margin-right: 2px; }
.crc-go { margin-left: auto; font-size: 22px; line-height: 1; color: rgba(236,237,238,.4); transition: transform .2s, color .2s; }
.crc:hover .crc-go { color: var(--accent); transform: translateX(3px); }
.crc-add { padding: 18px; border-radius: 22px; max-width: 620px; display: flex; flex-direction: column; gap: 12px; }
.crc-add-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* details panel on a creator's profile */
.ca-details { border-radius: 20px; padding: 0; }
.ca-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.ca-details > summary::-webkit-details-marker { display: none; }
.ca-details > summary > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ca-details > summary b { font-size: 15px; }
.ca-details > summary small { font-size: 12.5px; color: rgba(236,237,238,.55); }
.ca-chev { font-size: 22px; color: rgba(236,237,238,.45); transition: transform .25s; }
.ca-details[open] .ca-chev { transform: rotate(90deg); }
.ca-details-b { padding: 0 18px 18px; }
@media (max-width: 640px) {
  .crs-head .btn { width: 100%; justify-content: center; min-height: 44px; }
  .crc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .crc { padding: 14px; border-radius: 18px; }
  .crc-add { padding: 14px; border-radius: 18px; }
}

/* ---------- creator analysis: Brand / For you / Post review ---------- */
.ca-oneliner { margin: 6px 0 0; font-size: 15px; color: rgba(236,237,238,.72); line-height: 1.35; max-width: 60ch; }
.ca-sects { align-self: flex-start; }
.ca-sects .ktab { position: relative; }
.ca-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ciPulse 1.2s ease-in-out infinite; }
.ci-wrap { display: flex; flex-direction: column; gap: 16px; animation: ciIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes ciIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ciPulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.ci { display: flex; flex-direction: column; gap: 16px; }
.ci h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .01em; }

.ci-gate { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 22px; flex-wrap: wrap; }
.ci-gate > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.ci-gate b { font-size: 17px; }
.ci-gate p { margin: 0; font-size: 13.5px; color: rgba(236,237,238,.65); line-height: 1.45; max-width: 70ch; }
.ci-gate-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #0b0c0d; background: var(--accent); box-shadow: 0 0 24px rgba(198,244,50,.35); }
.ci-gate.running { border-color: rgba(198,244,50,.35); }
.ci-orb { flex: none; position: relative; width: 46px; height: 46px; }
.ci-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin 1.1s linear infinite; }
.ci-orb i:nth-child(2) { inset: 7px; border-top-color: rgba(198,244,50,.6); animation-duration: .8s; animation-direction: reverse; }
.ci-orb i:nth-child(3) { inset: 15px; background: var(--accent); border: 0; animation: ciPulse 1.2s ease-in-out infinite; }

.ci-hero { padding: 22px 24px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(120% 140% at 0% 0%, rgba(198,244,50,.10), transparent 55%), rgba(21,23,27,.86); }
.ci-one { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; font-weight: 850; letter-spacing: -.01em; max-width: 30ch; }
.ci-sum { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(236,237,238,.78); max-width: 85ch; }
.ci-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.ci-meta small { font-size: 12.5px; color: rgba(236,237,238,.5); }

.ci-traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ci-trait { padding: 14px 16px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 6px; }
.ci-trait span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.ci-trait p { margin: 0; font-size: 14px; line-height: 1.45; }

.ci-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ci-pillar { padding: 14px 16px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 8px; }
.ci-pillar.strong { border-color: rgba(198,244,50,.35); }
.ci-pillar-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ci-pillar-h b { font-size: 15px; }
.ci-pillar-h span { font-size: 18px; font-weight: 800; }
.ci-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.ci-bar i { display: block; height: 100%; border-radius: 99px; background: rgba(236,237,238,.45); animation: ciGrow .8s cubic-bezier(.2,.8,.2,1); transform-origin: left; }
.ci-pillar.strong .ci-bar i { background: var(--accent); box-shadow: 0 0 12px rgba(198,244,50,.45); }
.ci-pillar.weak .ci-bar i { background: rgba(255,120,120,.75); }
@keyframes ciGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ci-pillar p { margin: 0; font-size: 13px; color: rgba(236,237,238,.7); line-height: 1.4; }
.ci-perf { font-size: 12px; font-weight: 700; color: rgba(236,237,238,.55); }
.ci-perf.strong { color: var(--accent); }
.ci-perf.weak { color: #ff8a8a; }

.ci-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ci-box { padding: 16px 18px; border-radius: 20px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ci-box.good h3 { color: var(--accent); }
.ci-box.bad h3 { color: #ff9a9a; }
.ci-best { border-color: rgba(198,244,50,.5) !important; color: var(--accent) !important; }
.ci-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; }
.ci-find { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ci-find:last-child { border-bottom: 0; padding-bottom: 0; }
.ci-find b { font-size: 14.5px; }
.ci-find p { margin: 0; font-size: 13.5px; line-height: 1.45; color: rgba(236,237,238,.75); }
.ci-fix { display: flex; gap: 8px; align-items: baseline; color: var(--text) !important; }
.ci-fix span, .ci-angle span { flex: none; font-size: 10.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 6px; background: rgba(198,244,50,.14); color: var(--accent); }
.ci-ev { display: flex; gap: 6px; margin-top: 2px; }
.ci-evt { position: relative; width: 44px; height: 60px; border-radius: 9px; overflow: hidden; background: #1b1d22; flex: none; }
.ci-evt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-evt em { position: absolute; left: 3px; bottom: 3px; font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 4px; border-radius: 5px; background: rgba(0,0,0,.7); color: #fff; }

.ci-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.ci-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); }
.ci-step > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ci-step b { font-size: 14.5px; line-height: 1.35; }
.ci-step small { font-size: 12.5px; color: rgba(236,237,238,.6); line-height: 1.4; }
.ci-n { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 850; font-size: 13px; background: var(--accent); color: #0b0c0d; }
.ci-avoid h3 { color: rgba(236,237,238,.7); }

/* What Trendi sees in your videos: the lanes from watching the posts */
.ci-sees { gap: 14px; }
.ci-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ci-lane { padding: 16px; border-radius: 20px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ci-lane.strong { border-color: rgba(198,244,50,.4); background: radial-gradient(120% 100% at 0% 0%, rgba(198,244,50,.08), transparent 60%), rgba(21,23,27,.86); }
.ci-lane-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ci-lane-h b { font-size: 16px; line-height: 1.25; }
.ci-lane-tag { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(236,237,238,.7); white-space: nowrap; }
.ci-lane-tag.strong { background: rgba(198,244,50,.16); color: var(--accent); }
.ci-lane-tag.weak { background: rgba(255,120,120,.14); color: #ff9a9a; }
.ci-lane-n { font-size: 12.5px; color: rgba(236,237,238,.6); }
.ci-lane p { margin: 0; font-size: 13.5px; line-height: 1.45; color: rgba(236,237,238,.78); }
.ci-lane-ex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 4px; }
.ci-lane-cov { position: relative; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: #1b1d22; border: 0; padding: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.ci-lane-cov:hover, .ci-lane-cov:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(198,244,50,.55); outline: none; }
.ci-lane-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-lane-cov em { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.7); color: #fff; }
.ci-sees-note { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 12px 16px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.1); font-size: 12.5px; color: rgba(236,237,238,.6); line-height: 1.45; }
.ci-sees-note p { margin: 0; flex: 1 1 320px; }
.ci-sees-note > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.ci-sees-note b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(236,237,238,.75); }
.ci-sees-note .ci-list { font-size: 12.5px; gap: 3px; }
@media (max-width: 640px) { .ci-lanes { grid-template-columns: minmax(0, 1fr); } .ci-lane { padding: 14px; border-radius: 18px; } }

/* For you */
.ci-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ci-pick { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); cursor: pointer; transition: border-color .2s, transform .2s; animation: ciIn .4s cubic-bezier(.2,.8,.2,1) both; }
.ci-pick:nth-child(2) { animation-delay: .04s; } .ci-pick:nth-child(3) { animation-delay: .08s; } .ci-pick:nth-child(4) { animation-delay: .12s; } .ci-pick:nth-child(5) { animation-delay: .16s; } .ci-pick:nth-child(n+6) { animation-delay: .2s; }
.ci-pick:hover { border-color: rgba(198,244,50,.45); transform: translateY(-2px); }
.ci-pick .vthumb { aspect-ratio: 9 / 13; }
.ci-pick .play-hint, .ci-pick .sound-hint { display: none; }
.ci-fit { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 850; background: var(--accent); color: #0b0c0d; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.ci-pick-b { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ci-pick-b .bbtn { margin-top: auto; }
.ci-why { margin: 0; font-size: 13.5px; font-weight: 650; line-height: 1.35; }
.ci-angle { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(236,237,238,.75); display: flex; flex-direction: column; gap: 4px; }
.ci-angle span { align-self: flex-start; }
.chip.pf.tiktok { color: #6fe6f2; }
.chip.pf.instagram { color: #ff9ad0; }

/* Post review */
.ci-tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ci-tal { padding: 14px 16px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 2px; }
.ci-tal b { font-size: 26px; font-weight: 850; }
.ci-tal span { font-size: 13.5px; font-weight: 750; }
.ci-tal small { font-size: 11.5px; color: rgba(236,237,238,.5); }
.ci-tal.hit b { color: var(--accent); }
.ci-tal.miss b { color: #ff8a8a; }
.ci-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; }
.ci-rev { display: flex; gap: 14px; padding: 12px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); border-left: 3px solid rgba(236,237,238,.2); min-width: 0; }
.ci-rev.hit { border-left-color: var(--accent); }
.ci-rev.miss { border-left-color: #ff8a8a; }
.ci-rev-t { position: relative; flex: none; width: 84px; height: 120px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #1b1d22; cursor: pointer; }
.ci-rev-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-rev-pl { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .2s; }
.ci-rev-t:hover .ci-rev-pl { opacity: 1; }
.ci-rev-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ci-rev-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ci-rev-h .mono { font-weight: 800; font-size: 13px; }
.ci-rev-h small { font-size: 12px; }
.ci-vd { font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.08); color: rgba(236,237,238,.8); }
.ci-vd.hit { background: var(--accent); color: #0b0c0d; }
.ci-vd.miss { background: rgba(255,120,120,.85); color: #1a0b0b; }
.ci-vd.early { background: rgba(111,230,242,.15); color: #6fe6f2; }
.ci-rev-cap { margin: 0; font-size: 12.5px; color: rgba(236,237,238,.5); }
.ci-rev-why { margin: 0; font-size: 13.5px; line-height: 1.45; }
.ci-rev .ci-fix { margin: 0; font-size: 13px; line-height: 1.4; }

@media (min-width: 1500px) { .ci-picks { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ci-two { grid-template-columns: minmax(0, 1fr); } .ci-reviews { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ca-sects { align-self: stretch; display: flex; overflow-x: auto; scrollbar-width: none; }
  .ca-sects::-webkit-scrollbar { display: none; }
  .ca-sects .ktab { flex: 1 0 auto; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
  .ca-oneliner { font-size: 13.5px; }
  .ci-gate { padding: 16px; border-radius: 18px; gap: 12px; }
  .ci-gate form, .ci-gate form .btn { width: 100%; }
  .ci-hero { padding: 16px; border-radius: 20px; }
  .ci-one { font-size: 22px; }
  .ci-sum { font-size: 14px; }
  .ci-traits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ci-trait { padding: 11px 12px; border-radius: 16px; }
  .ci-trait p { font-size: 13px; }
  .ci-pillars { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ci-box { padding: 14px; border-radius: 18px; }
  .ci-plan { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ci-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ci-pick { border-radius: 16px; }
  .ci-pick-b { padding: 9px; gap: 6px; }
  .ci-why { font-size: 12.5px; }
  .ci-angle { font-size: 12px; }
  .ci-pick .chips .chip:nth-child(3) { display: none; }
  .ci-tally { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ci-tal { padding: 10px 8px; border-radius: 14px; align-items: center; text-align: center; }
  .ci-tal b { font-size: 20px; }
  .ci-tal span { font-size: 11.5px; }
  .ci-tal small { display: none; }
  .ci-rev { gap: 10px; padding: 10px; }
  .ci-rev-t { width: 64px; height: 92px; border-radius: 10px; }
}
/* tab and segment options that are <button>s: drop the browser's button chrome */
button.ktab, button.seg-btn { appearance: none; -webkit-appearance: none; background: transparent; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 400px) { .ca-sects .ktab { font-size: 13px; padding-left: 10px; padding-right: 10px; } }

/* ---------- audit fixes (Nov 2026) ---------- */
/* cards open the player on click on desktop too */
.tvc.tappable, .vcard.tappable { cursor: pointer; }
.tvc.tappable .vthumb, .vcard.tappable .vthumb { cursor: pointer; }

/* brief tray: a compact pill pinned bottom-right on desktop; never floats mid-page or covers the phone menu */
.btray { position: fixed; left: auto; right: 22px; bottom: 22px; margin: 0; padding: 0; z-index: 40; justify-content: flex-end; }
@media (min-width: 641px) {
  .btray-in { gap: 10px; padding: 7px 7px 7px 12px; border-radius: 999px; }
  .btray-txt small { display: none; }
  .btray-txt b { font-size: 14px; white-space: nowrap; }
  .btray-thumbs img { width: 26px; height: 34px; border-radius: 7px; }
  .btray-in .btn { min-height: 38px; padding: 7px 14px; border-radius: 999px; }
}
@media (max-width: 640px) {
  .btray { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); justify-content: center; }
  .shell:has(.btray:not(.empty)) #main { padding-bottom: 76px; }
}
.shell.nav-open .btray { opacity: 0 !important; pointer-events: none !important; }
.shell.nav-open .btray .btray-in { pointer-events: none !important; }

/* AI search / search results: 2-up compact cards on phones, like the feed */
@media (max-width: 640px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vgrid .vcard { border-radius: 18px; }
  .vgrid .vcard .vthumb { aspect-ratio: 9 / 14; }
  .vgrid .vcard .vthumb .badge { font-size: 10.5px; padding: 3px 7px; }
  .vgrid .vcard .play-hint, .vgrid .vcard .sound-hint { display: none; }
  .vgrid .vbody { padding: 9px 10px 11px; gap: 6px; }
  .vgrid .vbody .chips, .vgrid .vbody .what, .vgrid .vbody .sound-link, .vgrid .vbody > .muted.small, .vgrid .vbody .meta, .vgrid .vbody:has(.why) .cap { display: none !important; }
  .vgrid .vbody .cap { margin: 0; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
  .vgrid .vbody .why { margin: 0; font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .vgrid .vactions { padding-top: 2px; gap: 6px; }
  .vgrid .vactions .icon-btn { display: none; }
  .vgrid .vactions .bbtn { min-height: 36px; font-size: 12.5px; }
}

/* profile: brand-new posts */
.ca-x.new { background: rgba(255,255,255,.16); color: #fff; }

/* schedule "Up next": time and status sit apart */
.sch-up span.sch-up-meta { display: flex; }

/* settings: the save button sits in a solid bar instead of floating over cards */
.sticky-save { padding: 10px 12px; margin-top: 16px; border-radius: 18px; justify-content: flex-end; background: rgba(14,16,19,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--glass-line); box-shadow: 0 -10px 30px rgba(0,0,0,.45); }

/* narrow cards (collapsed sidebar, 5 per row): stat labels and numbers fit */
.tvc { container-type: inline-size; }
@container (max-width: 300px) {
  .tvc-stats { gap: 4px; }
  .tvc-stats .sbox { padding: 7px 7px; }
  .tvc-stats .sbox-l { font-size: 9px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tvc-stats .sbox-v { font-size: 13px; }
}

/* phone tap targets */
.ai-top-all { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; margin-right: -10px; border-radius: 12px; }
.tip a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 4px; }

/* brief: everything prepared */
.b-alldone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 750; font-size: 14px; color: var(--accent); background: rgba(198,244,50,.1); border: 1px solid rgba(198,244,50,.35); }

/* ---------- For you page ---------- */
.fy { display: flex; flex-direction: column; gap: 22px; }
.fy-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 26px; border: 1px solid rgba(198,244,50,.28); background: radial-gradient(110% 160% at 0% 0%, rgba(198,244,50,.13), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(111,230,242,.07), transparent 60%), rgba(21,23,27,.86); }
.fy-hero > .minw0 { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.fy-lede { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(236,237,238,.75); max-width: 80ch; }
.fy-lede b { color: var(--text); font-weight: 750; }
.fy-hero-act { display: flex; gap: 8px; align-items: center; }
.fy-avs { display: flex; flex: none; }
.fy-av { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 850; font-size: 20px; background: linear-gradient(135deg, #2a2d33, #3b3f47); box-shadow: 0 0 0 3px #15171b, 0 0 0 5px rgba(198,244,50,.45); }
.fy-av + .fy-av { margin-left: -16px; }
.fy-av.instagram { box-shadow: 0 0 0 3px #15171b, 0 0 0 5px rgba(255,120,200,.55); }
.fy-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fy-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fy-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); min-width: 0; }
.fy-stat > span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(236,237,238,.55); }
.fy-stat b { font-size: 28px; font-weight: 850; line-height: 1.15; }
.fy-stat:first-child b { color: var(--accent); }
.fy-stat b.fy-fmt { font-size: 17px; line-height: 1.35; padding-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-stat small { font-size: 12px; color: rgba(236,237,238,.5); }

.fy-band { display: flex; flex-direction: column; gap: 12px; }
.fy-band-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fy-band-h h2 { margin: 0; font-size: 22px; font-weight: 850; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.fy-band-h p { margin: 4px 0 0; font-size: 13.5px; color: rgba(236,237,238,.58); }
.fy-n { font-size: 13px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: rgba(198,244,50,.14); color: var(--accent); }

.ci-fit.st { background: #6fe6f2; }
.ci-pick.stretch { border-color: rgba(111,230,242,.22); }
.ci-pick.stretch:hover { border-color: rgba(111,230,242,.55); }
.ci-link span { background: rgba(111,230,242,.14) !important; color: #6fe6f2 !important; }
.ci-link { color: var(--text) !important; font-weight: 600; }

.fy-moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 12px; }
.fy-move { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; padding: 14px; border-radius: 22px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); }
.fy-move-l { display: flex; gap: 12px; align-items: flex-start; }
.fy-move-l > div { display: flex; flex-direction: column; gap: 5px; }
.fy-move-l b { font-size: 15px; line-height: 1.35; }
.fy-move-l small { font-size: 12.5px; color: rgba(236,237,238,.6); line-height: 1.4; }
.fy-move-r { display: flex; gap: 12px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); min-width: 0; }
.fy-move-cv { position: relative; flex: none; width: 74px; height: 106px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #1b1d22; cursor: pointer; }
.fy-move-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fy-move-cv span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .2s; }
.fy-move-cv:hover span { opacity: 1; }
.fy-move-tx { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.fy-move-k { font-size: 10.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 6px; background: rgba(198,244,50,.14); color: var(--accent); }
.fy-move-tx p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.fy-move-tx small { font-size: 12px; }
.fy-move-tx .bbtn { margin-top: 2px; }

.fy-lane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }

@media (max-width: 1100px) { .fy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fy-lane { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .fy { gap: 16px; }
  .fy-hero { padding: 16px; border-radius: 20px; gap: 12px; }
  .fy-av { width: 46px; height: 46px; font-size: 16px; }
  .fy-hero .h1 { font-size: 26px; }
  .fy-lede { font-size: 13.5px; }
  .fy-hero-act { width: 100%; }
  .fy-hero-act > *, .fy-hero-act form, .fy-hero-act .btn { flex: 1; width: 100%; justify-content: center; }
  .fy-stats { gap: 8px; }
  .fy-stat { padding: 10px 12px; border-radius: 16px; }
  .fy-stat b { font-size: 22px; }
  .fy-stat b.fy-fmt { font-size: 14px; padding-top: 3px; }
  .fy-band-h h2 { font-size: 19px; }
  .fy-band-h p { font-size: 12.5px; }
  .fy-moves { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fy-move { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 18px; }
  .fy-move-cv { width: 64px; height: 92px; }
}
/* For you, found for the creator's lanes (src/find.js): lane groups, card lines, how the picks were found */
.fyf-groups { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.fyf-group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fyf-group-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.fyf-group-h h3 { font-size: 20px; font-weight: 850; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fyf-perf { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(236,237,238,.7); }
.fyf-perf.strong { background: rgba(198,244,50,.14); color: var(--accent); }
.fyf-perf.weak { background: rgba(255,179,122,.12); color: #ffb37a; }
.fyf-lane { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fyf-like { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); color: var(--text); text-decoration: none; min-width: 0; }
a.fyf-like:hover { border-color: rgba(198,244,50,.45); }
.fyf-like-cv { flex: none; width: 34px; height: 48px; border-radius: 8px; overflow: hidden; background: #1b1d22; }
.fyf-like-cv .thumb, .fyf-like-cv .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fyf-like .minw0 { display: flex; flex-direction: column; gap: 1px; }
.fyf-k { font-size: 10.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.fyf-like small { font-size: 11.5px; }
.fyf-found { margin: 0; font-size: 11.5px; line-height: 1.35; color: rgba(236,237,238,.45); overflow-wrap: anywhere; }
.fyf-stale { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; background: rgba(255,196,107,.08); border: 1px solid rgba(255,196,107,.22); color: #ffc46b; }
.fyf-failed { background: rgba(255,122,122,.08) !important; border-color: rgba(255,122,122,.32) !important; color: #ffc9c9 !important; }
.fyf-note { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); color: rgba(236,237,238,.75); }
.fyf-qs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.fyf-q { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 18px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); min-width: 0; }
.fyf-q-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fyf-q-h b { font-size: 14.5px; overflow-wrap: anywhere; }
.fyf-q-lane { font-size: 12px; overflow-wrap: anywhere; }
.fyf-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 2px 0 0; }
.fyf-nums > div { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.04); min-width: 0; }
.fyf-nums dt { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: rgba(236,237,238,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fyf-nums dd { margin: 0; font-size: 16px; font-weight: 850; }
.fyf-nums > div:last-child dd { color: var(--accent); }
.fyf-zero .btn { flex: none; }
.fyf-funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fyf-step { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(21,23,27,.86); border: 1px solid var(--glass-line); min-width: 0; }
.fyf-step > span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: rgba(236,237,238,.55); overflow-wrap: anywhere; }
.fyf-step b { font-size: 26px; font-weight: 850; line-height: 1.15; }
.fyf-step small { font-size: 11.5px; line-height: 1.3; color: rgba(236,237,238,.5); overflow-wrap: anywhere; }
.fyf-step:last-child b { color: var(--accent); }
.fyf-drops { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(236,237,238,.6); }
.fyf-drops > span:first-child { font-weight: 750; margin-right: 2px; }
.fyf-drops .chip { white-space: normal; }
.fyf-judged { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(236,237,238,.72); overflow-wrap: anywhere; }
.ci-fit.nr { background: #2b2e35; color: rgba(236,237,238,.92); box-shadow: 0 2px 12px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.16); }
.ci-pick.near { border-style: dashed; }
.ci-pick.near:hover { border-color: rgba(236,237,238,.42); }
.fyf-off span { background: rgba(255,179,122,.12) !important; color: #ffb37a !important; }
@media (max-width: 980px) { .fyf-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1900px) { .fyf-groups .ci-picks { grid-template-columns: repeat(6, minmax(0, 1fr)); } .fyf-qs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .fyf-group-h h3 { font-size: 17px; }
  .fyf-qs { grid-template-columns: minmax(0, 1fr); }
  .fyf-nums dt { white-space: normal; overflow-wrap: anywhere; font-size: 9.5px; }
  .fyf-zero { flex-wrap: wrap; }
  .fyf-zero .btn, .fyf-zero form { width: 100%; justify-content: center; }
  .fyf-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fyf-step b { font-size: 22px; }
}
.fy-lane > :only-child { grid-column: 1 / -1; }
.fy-lane > :only-child .pf-tags { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.warn-line { color: #ffc46b; } .ok-line { color: var(--accent); }

/* ================================================================================================================
   Accounts and agency: sign-up, log-in, agency setup, the creator switcher, the agency pages.
   ================================================================================================================ */
.t2 { color: var(--text2); }
.warn { color: var(--warm); }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.danger:hover { color: var(--danger); border-color: rgba(255, 143, 143, 0.5); }
.limit-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(198, 244, 50, 0.4); color: var(--text2); }
.limit-note b { color: var(--text); }
.acc-tabs { width: auto; align-self: flex-start; flex-wrap: wrap; max-width: 100%; }

/* ---- account screens (no sidebar) ---- */
/* the backdrop: a loop of glass phones that wake up, scroll their feeds and switch off (a still of the phones
   switched on for phones, reduced motion and data saver), dimmed so the cards stay readable, darkest where the
   cards sit */
.acct-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #06070a url(/media/trendi-signup-feeds.jpg) center / cover no-repeat; }
.acct-bg.still { background-image: url(/media/trendi-signup-feeds-on.jpg); }
.acct-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-bg::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(70% 60% at 50% 42%, rgba(6, 7, 10, 0.7), rgba(6, 7, 10, 0.28) 100%),
  linear-gradient(180deg, rgba(6, 7, 10, 0.5), rgba(6, 7, 10, 0.32) 45%, rgba(6, 7, 10, 0.55)); }
body:has(.acct-bg) .bgfx { display: none; }
.acct .card, .login-wrap .card { background: rgba(13, 15, 18, 0.74); }
@media (prefers-reduced-motion: reduce) {
  .acct-bg { background-image: url(/media/trendi-signup-feeds-on.jpg); }
  .acct-bg video { display: none; }
}
@media (max-width: 720px) {
  .acct-bg, .acct-bg.still { background-image: url(/media/trendi-signup-feeds-sm.jpg); background-position: 16% 50%; }
  .acct-bg video { display: none; }
}
.acct { position: relative; min-height: var(--vh); }
/* the sign-up choice: logo stays at the top, the rest sits in the middle of a tall screen */
/* A box in the exact middle of a tall screen reads as sitting low, so the spare height is split 1 part above
   to 2 parts below (the eye's middle is above the real one). */
.acct-wrap.mid { min-height: var(--vh); }
.acct-wrap.mid > .acct-top { order: -2; }
.acct-wrap.mid::before { content: ''; order: -1; flex: 1 1 0; }
.acct-wrap.mid::after { content: ''; flex: 2 1 0; }
.acct-flash { position: sticky; top: 0; z-index: 6; }
.acct-wrap { max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 56px; display: flex; flex-direction: column; gap: 22px; }
.acct-wrap.narrow { max-width: 860px; }
.acct-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.acct-steps { width: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.acct-steps::-webkit-scrollbar { display: none; }
.acct-steps .ktab { white-space: nowrap; flex: none; }
.ktab.off { opacity: 0.45; cursor: default; }
.ktab.off:hover { background: transparent; color: var(--muted); }
.acct-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: stretch; }
.acct-split { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.acct-split > :first-child { flex: 2 1 480px; min-width: 0; }
.acct-split > :last-child { flex: 1 1 300px; min-width: 0; }
.acct-card { padding: 22px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px; }
.acct-card.tight { gap: 8px; }
.acct-card.hot { border-color: rgba(198, 244, 50, 0.5); }
.acct-card.hot2 { border-color: rgba(198, 244, 50, 0.28); }
.acct-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-card-h h2 { margin: 0; font-size: 22px; font-weight: 800; }
.acct-card .bst, .acct-box .bst { align-self: flex-start; }
.ck { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); text-align: left; }
.ck > .fy-n { flex: none; }
.ck.off { color: var(--muted); }
.ck.off > .fy-n { background: transparent; color: var(--muted); }
.acct-note { padding: 14px 18px; border-radius: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: var(--text2); }
.acct-note b { color: var(--text); }
.acct-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.acct-sp { justify-content: space-between; }
.acct-center, .login-wrap { min-height: var(--vh); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 24px 16px; }
.acct-center::before, .login-wrap::before { content: ''; flex: 1 1 0; }
.acct-center::after, .login-wrap::after { content: ''; flex: 2 1 0; }
.acct-box { width: 100%; max-width: 420px; }
.acct-box.wide { max-width: 560px; }
.xl-note { padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255, 179, 122, 0.45); color: var(--text2); }
.xl-note b { color: var(--warm); }
.acct-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.inp-ro { display: flex; align-items: center; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-q, .tm-q { font-weight: 650; color: var(--text); }
.acct-fs { border: 0; padding: 0; margin: 0; }
.acct-fs legend { padding: 0; margin-bottom: 8px; }
.ag-row.ws-row { width: 100%; max-width: 100%; overflow: hidden; padding: 14px; gap: 12px; border-radius: 18px; color: var(--text); text-decoration: none; font: inherit; text-align: left; cursor: pointer; }
.ws-row:hover { color: var(--text); }
.ws-t { flex: 1; gap: 2px; }
.ws-t b { font-size: 16px; }
.ws-new { text-decoration: none; }
.ws-new:hover { color: var(--accent-hover); }

/* plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; align-items: stretch; }
.ag-row.plan-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px; border-radius: 24px; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.ag-row.plan-card:hover { transform: translateY(-2px); }
.plan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-h > b { font-size: 22px; font-weight: 800; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price > b { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan-line { color: var(--text2); }

/* roster rows (setup) and the add-a-creator form */
.rost-add { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.9fr 1.2fr auto; gap: 10px; align-items: end; }
.rost-add .sel { width: 100%; }
.rost-add-go { white-space: nowrap; }
.rost-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.rost-who { flex: 1 1 150px; display: flex; flex-direction: column; }
.rost-who small, .tm-who small { font-size: 12px; color: var(--muted); }
.rost-accts { flex: 2 1 240px; display: flex; flex-wrap: wrap; gap: 6px; }
.rost-accts em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; }
.rost-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rost-acts form, .tm-acts form, .enter { margin: 0; }
.tm-meter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 980px) { .rost-add { grid-template-columns: 1fr 1fr; } .rost-add-go { grid-column: 1 / -1; } }
@media (max-width: 520px) { .rost-add { grid-template-columns: 1fr; } }

/* team */
.tm-row { border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.tm-row.open { border-color: rgba(198, 244, 50, 0.3); }
.tm-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; }
.tm-main .bst { align-self: center; }
.tm-who { flex: 1 1 170px; display: flex; flex-direction: column; }
.tm-you { font-weight: 400; }
.tm-sees { flex: none; }
.tm-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tm-edit { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.tm-role { max-width: 220px; }
.tm-invite { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tm-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr); gap: 12px; }
.tm-fields .sel { width: 100%; }
@media (max-width: 520px) { .tm-fields { grid-template-columns: 1fr; } }

/* brand reads (setup step 5) */
.rd-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rd-b { flex: 1; gap: 6px; }
.rd-b .btn { align-self: flex-start; }
.rd-bar { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rd-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.6s ease; }

/* ---- creator switcher in the sidebar ---- */
.side-sw-wrap { position: relative; }
.side-sw { width: 100%; font: inherit; color: var(--text); text-align: left; cursor: pointer; border-color: rgba(198, 244, 50, 0.45); background: rgba(198, 244, 50, 0.07); }
.side-sw:hover { border-color: var(--accent); }
.side-sw-avs { display: flex; flex: none; }
.side-sw-avs .ca-av { box-shadow: 0 0 0 2px #15171b; }
.side-sw-avs .ca-av + .ca-av { margin-left: -9px; }
.side-sw-t { flex: 1; }
.side-sw-chev { flex: none; display: inline-flex; color: var(--accent); }
.side-sw-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); min-width: 230px; max-height: min(60vh, 420px); overflow-y: auto; padding: 6px; border-radius: 16px; background: #17191d; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; gap: 2px; }
.side-sw-menu form { margin: 0; }
.side-sw-it { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.side-sw-it > .minw0 { flex: 1; }
.side-sw-it:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.side-sw-it.on { color: var(--accent); font-weight: 700; }
.side-sw-none { padding: 8px 10px; }
.shell.collapsed .side-sw { justify-content: center; padding-left: 6px; padding-right: 6px; }
.shell.collapsed .side-sw-avs .ca-av + .ca-av { display: none; }

/* ---- "Add to which creators?" ---- */
.addto-scrim { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(6, 7, 8, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.addto { width: 100%; max-width: 460px; max-height: min(86vh, 640px); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 24px; background: #15171b; border-color: rgba(198, 244, 50, 0.35); outline: none; }
.addto-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.addto-h .eyebrow { color: var(--accent); margin-bottom: 4px; }
.addto-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.addto-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.addto-row:hover { background: rgba(255, 255, 255, 0.05); }
.addto-row.on { border-color: rgba(198, 244, 50, 0.35); background: rgba(198, 244, 50, 0.05); }
.addto-row input, .mt-fit input { flex: none; width: 20px; height: 20px; accent-color: #c6f432; }
.addto-row .bst { align-self: center; flex: none; }
.addto-name { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.addto-name small { font-size: 12px; color: var(--muted); }
.addto-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* ---- agency pages ---- */
.ag { display: flex; flex-direction: column; gap: 22px; }
.ag-grow { flex: 1; }
.ag-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ag-att-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ag-att { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; border-color: rgba(255, 179, 122, 0.35); }
.ag-att b { display: block; }
.ag-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); align-items: start; }
.ag-grid > * { max-width: 620px; }
.ag-grid .enter { min-width: 0; display: flex; }
/* A roster card is a box with a see-through button laid over it. Nothing inside can widen it: every row may shrink,
   and anything that still doesn't fit is cut at the card's edge instead of pushing the page sideways. */
.ag-card { position: relative; width: 100%; max-width: 100%; text-align: left; font: inherit; cursor: pointer; overflow: hidden; }
.ag-card > span { min-width: 0; max-width: 100%; }
.ag-card-go { position: absolute; inset: 0; margin: 0; } /* out of the flow: it must not take a row or a column of the box it covers */
.ag-card-go button { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ag-card-go button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ag-card .bst { align-self: center; flex: none; }
.ag-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ag-mini > span { padding: 9px 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; }
.ag-mini small, .ag-pick small { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236, 237, 238, 0.6); }
.ag-mini b { font-size: 18px; font-weight: 500; }
.ag-pick { display: flex; align-items: center; gap: 12px; padding: 8px; min-height: 78px; border-radius: 16px; background: rgba(198, 244, 50, 0.05); border: 1px solid rgba(198, 244, 50, 0.18); }
.ag-pick.none { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.07); padding: 12px; }
.ag-pick small { font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.ag-pick.none small { color: rgba(236, 237, 238, 0.6); }
.ag-pick b { display: block; font-size: 14px; }
.ag-pick .xsmall { display: block; }
.ag-pick-cv { flex: none; width: 46px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--raised); }
.ag-pick-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-fit { flex: none; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--accent); color: #0b0c0d; }
.ag-two { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.ag-trends { flex: 2 1 560px; min-width: 0; }
.ag-week { flex: 1 1 340px; min-width: 0; padding: 18px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px; }
.ag-week .fy-band-h h2 { font-size: 19px; }
.ag-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ag-assign { margin-right: 6px; flex: none; }
.ro-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ro-own { padding: 12px 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ro-login { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ro-login-edit { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ro-login-edit .inp { width: auto; flex: 1 1 180px; }
.ro-own form { margin: 0; }

/* briefs board */
.kb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.kb-chip { gap: 8px; padding-left: 6px; }
.kb { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; align-items: start; }
.kb-col { padding: 12px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color 0.15s ease; }
.kb-col.over { border-color: var(--accent); }
.kb-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 0; }
.kb-h h2 { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; min-width: 0; }
.kb-hint, .kb-none { padding: 0 6px; }
.ag-row.kb-card { flex-direction: column; align-items: stretch; gap: 8px; }
.kb-card[draggable='true'] { cursor: grab; }
.kb-link { align-items: flex-start; }
.kb-b { flex: 1; }
.kb-who .bst { margin-left: auto; align-self: center; }
.kb-next { align-self: flex-end; }

/* schedule across creators */
.sb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sb-scroll { position: relative; overflow-x: auto; } /* positioned, so the screen-reader-only labels inside scroll with it */
.sb-grid { grid-template-columns: 178px repeat(7, minmax(0, 1fr)); min-width: 980px; }
.sb-grid .enter { min-width: 0; display: flex; }
.sb-who { width: 100%; max-width: 100%; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 2px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; border-radius: 12px; }
.sb-who:hover b { color: var(--accent); }
.sb-who b { font-size: 14px; }
.sb-cell { min-height: 86px; }
.sb-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 7px 9px; border-radius: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); color: var(--text); text-decoration: none; min-width: 0; }
.sb-item:hover { border-color: rgba(198, 244, 50, 0.45); color: var(--text); }
.sb-item b { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-when { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.sb-when i { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.sb-when i.st-saved { background: rgba(236, 237, 238, 0.55); }
.sb-when i.st-film { background: rgb(255, 179, 122); }
.sb-when i.st-post { background: rgb(236, 237, 238); }
.sb-note { margin: 12px 4px 0; }

/* one trend against the roster */
.mt { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.mt-side { flex: 1 1 300px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mt-pick { cursor: default; }
.mt-why { font-size: 13.5px; color: var(--text2); }
.mt-main { flex: 2 1 560px; min-width: 0; }
.ag-row.mt-fit { padding: 12px 14px; gap: 14px; cursor: pointer; }
.mt-fit b { font-size: 15px; }
.mt-fit .bst { align-self: center; }
.mt-load { flex: none; text-align: right; display: flex; flex-direction: column; }
.mt-load b { font-size: 18px; font-weight: 500; }
.mt-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 22px; border-color: rgba(198, 244, 50, 0.4); }
.mt-go b, .mt-go .small { display: block; }
.mt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.ag-row.mt-row { color: var(--text); text-decoration: none; gap: 12px; }
.mt-row:hover { color: var(--text); }
@media (max-width: 640px) {
  .acct-wrap { padding-top: 16px; gap: 16px; }
  .acct-card { padding: 16px; border-radius: 20px; }
  .acct-foot > * { width: 100%; }
  .acct-foot .btn.lg, .acct-foot form, .acct-foot form .btn { width: 100%; justify-content: center; }
  .plan-price > b { font-size: 34px; }
  .mt-side { max-width: none; }
  .tm-acts { margin-left: 0; }
}
.btn.block { display: flex; } /* the .block helper is display:block, which un-centres a link styled as a button */
.side > .side-top, .side > .side-status, .side > .side-sw-wrap { flex: none; }
.side-sw-ws { text-decoration: none; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0 0 12px 12px; }

/* rows and tiles for the agency screens (the brief page's .bl-row turns into a swipe strip on phones; these don't) */
.ag-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 18px; background: rgba(21, 23, 27, 0.86); border: 1px solid var(--glass-line); transition: border-color 0.2s ease, transform 0.2s ease; }
.ag-row:hover { border-color: rgba(255, 255, 255, 0.22); }
.ag-row.on { border-color: var(--accent); background: rgba(198, 244, 50, 0.07); }
.ag-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.ag-link:hover { color: var(--text); }
.ag-thumb { flex: none; width: 58px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--raised); display: block; }
.ag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-row .bst { align-self: flex-start; }
.plan-card .bst, .ws-row .bst { align-self: center; }
/* an agency's menu is longer: tighten it on shorter screens so Log out stays in view */
@media (min-width: 901px) and (max-height: 960px) {
  .side-it, .side-it.sub { min-height: 38px; height: 38px; }
  .side-hl { height: 38px; }
  .side-lbl { padding: 8px 12px 2px; }
  .side > .side-status { padding-top: 7px; padding-bottom: 7px; }
}
.addto-h b { display: block; }
.addto-h > .minw0 { flex: 1; }

/* Collapsed menu (the icon rail): every icon sits on one centre line with the same gap between them.
   Before, TikTok and Instagram kept room for their hidden arrow (so they sat left of the others), and each hidden
   section title left a bigger gap under it. */
.shell.collapsed .side-grp-h .side-it { padding: 0; }
.shell.collapsed .side-lbl + * { margin-top: 0; }
.shell.collapsed .side-grp.open .side-sub { gap: 4px; margin-top: 4px; }

/* ================= big rosters: the roster as a list, tiles or groups; the dashboard that doesn't list everyone ================= */
/* A see-through button laid over a box (a tile, a group header). The box does the layout, the button takes the click. */
.hit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.rb { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rb-bar { padding: 12px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.rb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.rb-row2 { justify-content: space-between; }
.rb-search { flex: 1 1 200px; min-width: 0; }
.rb-search .inp { min-height: 44px; border-radius: 12px; }
.rb-sel { flex: 0 1 auto; min-width: 0; max-width: 210px; display: flex; }
.rb-sel .sel { max-width: 100%; min-height: 44px; border-radius: 12px; padding-right: 30px; color-scheme: dark; }
.rb-status, .rb-view { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.rb-status::-webkit-scrollbar, .rb-view::-webkit-scrollbar { display: none; }
.rb .seg-btn { flex: none; gap: 6px; border: 0; background: transparent; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.rb .seg-btn.on { background: #23262b; color: var(--text); font-weight: 600; }
.rb .seg-btn .mono { font-size: 12px; opacity: 0.8; }
.rb-chips { gap: 8px; }
.rb-chip { border-color: rgba(198, 244, 50, 0.45); background: rgba(198, 244, 50, 0.08); gap: 8px; }
.rb-none { padding: 22px; border-radius: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rb-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px; }
.rb-foot b { color: var(--text); }
.rb-showmore { justify-content: center; min-height: 48px; gap: 8px; }
.rl-pages { display: flex; align-items: center; gap: 6px; }
.rl-pages .btn { min-width: 40px; justify-content: center; }
.rl-pages .rl-cur { background: var(--accent); color: #0b0c0d; border-color: var(--accent); }

/* the list: one line per creator */
.rl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rl-head, .rl-row { display: grid; grid-template-columns: minmax(150px, 1.25fr) 168px 72px 60px 70px 44px minmax(140px, 1.35fr) 44px 72px 88px; gap: 10px; align-items: center; }
.rl-head { padding: 0 12px 2px; white-space: nowrap; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236, 237, 238, 0.62); }
.rl-head .rl-c2, .rl-head .rl-c3, .rl-head .rl-c4, .rl-head .rl-c5, .rl-row .rl-c2, .rl-row .rl-c3, .rl-row .rl-c4, .rl-row .rl-c5 { text-align: right; }
.rl-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rl-row { min-height: 58px; padding: 8px 12px; border-radius: 14px; background: rgba(21, 23, 27, 0.86); border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.2s ease; }
.rl-row:hover { border-color: rgba(198, 244, 50, 0.45); }
.rl-row.is-warn { border-color: rgba(255, 179, 122, 0.3); }
.rl-row > span { min-width: 0; }
.rl-who { display: flex; align-items: center; gap: 10px; }
.rl-who .ca-av { flex: none; }
.rl-who b, .rl-who .small { display: block; }
.rl-sub { display: none !important; }
.rl-c1 .bst { max-width: 100%; display: inline-block; vertical-align: middle; }
.rl-c6 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.rl-c6 > .clamp1 { flex: 1; }
.rl-fit { flex: none; font-size: 12px; font-weight: 700; color: var(--accent); }
.rl-c9 { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.rl-c9 .crc-go { margin-left: 4px; font-size: 18px; }
.rl-row:hover .crc-go { color: var(--accent); }
.rl-pin, .rl-more { position: relative; z-index: 2; flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: rgba(236, 237, 238, 0.5); cursor: pointer; }
.rl-pin:hover, .rl-more:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.rl-pin.on { color: var(--accent); }
.rl-own { margin: 0 0 4px 12px; }
/* The list drops the columns that matter least as it gets narrower, and at phone width keeps the name, what's
   going on, and the views number. It goes by its own width, not the screen's: the menu can be open, folded or gone,
   and a list inside a group is a little narrower. */
.rl { container: rl / inline-size; }
@container rl (max-width: 1019px) {
  .rl-head, .rl-row { grid-template-columns: minmax(150px, 1fr) 168px 58px 70px 44px minmax(140px, 1.5fr) 88px; }
  .rl-c2, .rl-c7, .rl-c8 { display: none !important; }
}
@container rl (max-width: 801px) {
  .rl-head, .rl-row { grid-template-columns: minmax(150px, 1fr) 168px 58px 70px 44px 88px; }
  .rl-c6 { display: none !important; }
}
@container rl (max-width: 651px) {
  .rl-head, .rl-row { grid-template-columns: minmax(150px, 1fr) 168px 70px 88px; }
  .rl-c3, .rl-c5 { display: none !important; }
}
@container rl (max-width: 540px) {
  .rl-head { display: none; }
  .rl-row { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 62px; padding: 8px 6px 8px 12px; border-radius: 16px; }
  .rl-c1 { display: none !important; }
  .rl-niche { display: none !important; }
  .rl-sub { display: block !important; }
  .rl-c4 { font-size: 13px; font-weight: 700; }
  .rl-more { display: none; }
  .rl-pin { width: 40px; height: 44px; }
}
/* browsers from before 2023 don't know the lines above: they go by the screen's width instead */
@supports not (container-type: inline-size) {
  @media (max-width: 1420px) {
    .rl-head, .rl-row { grid-template-columns: minmax(150px, 1fr) 168px 58px 70px 44px minmax(140px, 1.5fr) 88px; }
    .rl-c2, .rl-c7, .rl-c8 { display: none !important; }
  }
  @media (max-width: 1220px) {
    .rl-head, .rl-row { grid-template-columns: minmax(150px, 1fr) 168px 58px 70px 44px 88px; }
    .rl-c6 { display: none !important; }
  }
  @media (max-width: 1060px) {
    .rl-head, .rl-row { grid-template-columns: minmax(150px, 1fr) 168px 70px 88px; }
    .rl-c3, .rl-c5 { display: none !important; }
  }
  @media (max-width: 760px) {
    .rl-head { display: none; }
    .rl-row { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 62px; padding: 8px 6px 8px 12px; border-radius: 16px; }
    .rl-c1 { display: none !important; }
    .rl-niche { display: none !important; }
    .rl-sub { display: block !important; }
    .rl-c4 { font-size: 13px; font-weight: 700; }
    .rl-more { display: none; }
    .rl-pin { width: 40px; height: 44px; }
  }
}

/* tiles: everyone on one screen */
.rt-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.rt-wrap > .rb-main { flex: 999 1 420px; }
.rt-side { flex: 1 1 330px; max-width: 390px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.rt-tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 72px; min-width: 0; padding: 9px 10px; border-radius: 14px; background: rgba(21, 23, 27, 0.86); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.rt-tile:hover { border-color: rgba(255, 255, 255, 0.25); }
.rt-tile.is-warn { background: rgba(255, 179, 122, 0.08); border-color: rgba(255, 179, 122, 0.55); }
.rt-tile.is-new { border-style: dashed; border-color: rgba(255, 255, 255, 0.3); }
.rt-tile.on { border: 2px solid var(--accent); padding: 8px 9px; }
.rt-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rt-top .ca-av { flex: none; }
.rt-top b { font-size: 13px; }
.rt-line { font-size: 12px; color: rgba(236, 237, 238, 0.72); min-width: 0; }
.rt-tile.is-warn .rt-line { color: var(--warm); }
.rt-acts { align-items: center; }
.rt-acts .enter { flex: 1; display: flex; }
.rt-acts .enter .btn { flex: 1; justify-content: center; }
.rt-acts .rl-pin { background: rgba(255, 255, 255, 0.06); width: 44px; height: 44px; }
.rt-sheet { overflow-y: auto; }

/* groups you can fold */
.rg { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07); }
.rg-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 10px; border-radius: 14px; min-width: 0; }
.rg-head:hover { background: rgba(255, 255, 255, 0.04); }
.rg-name { flex: 1 1 180px; }
.rg-name b { display: block; font-size: 16px; font-weight: 800; }
.rg-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.rg-stat { font-size: 12.5px; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--text2); white-space: nowrap; }
.rg-stat b { color: var(--text); margin-left: 2px; }
.rg-tog { flex: none; font-size: 13px; font-weight: 700; color: var(--accent); }
.rg-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rg-more { align-self: flex-start; }
@media (max-width: 640px) { .rg-stat { display: none; } .rg { padding: 6px; border-radius: 18px; } }

/* a note above a roster that has sample creators on it */
.ro-sample { padding: 12px 14px; border-radius: 16px; border-style: dashed; border-color: rgba(198, 244, 50, 0.4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* the dashboard for a big roster */
.bd-glance { padding: 16px 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px; }
.bd-bar { display: flex; gap: 4px; height: 34px; min-width: 0; }
.bd-bar span { flex: 1 1 0; min-width: max-content; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.bd-bar .ok { background: #c6f432; color: #0b0c0d; }
.bd-bar .warn { background: #b8632a; color: #fff; }
.bd-bar .new { background: #3a3e45; color: #fff; }
.bd-need { flex: 3 1 460px; min-width: 0; }
.bd-moves { flex: 2 1 300px; }
.bd-mgr { flex: none; }
.bd-mover { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.bd-mover:hover { background: rgba(255, 255, 255, 0.08); }
.bd-mover .ca-av { flex: none; }
.bd-mover b { flex: 1; }
.bd-mover .mono { flex: none; font-weight: 700; }
.bd-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.bd-pin { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; }
.bd-pin:hover { border-color: rgba(198, 244, 50, 0.45); }
.bd-pin b, .bd-pin .small { display: block; }
.bd-pick { align-items: center; color: var(--text2); }
.bd-pick-cv { flex: none; width: 22px; height: 28px; border-radius: 6px; overflow: hidden; background: var(--raised); }
.bd-pick-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .bd-mgr { display: none; }
  .bd-bar span { padding: 0 8px; }
  /* the filters sit two to a line under the search box */
  .rb-row:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-search { grid-column: 1 / -1; }
  .rb-sel { max-width: none; }
  .rb-sel .sel { width: 100%; }
  .rb-bar { padding: 10px; border-radius: 18px; }
}

/* the creator menu with search (big rosters) */
.side-sw-q { position: sticky; top: -6px; z-index: 1; padding: 6px 2px; background: #17191d; } /* stays put while the list scrolls */
.side-sw-q .inp { min-height: 42px; border-radius: 12px; border-color: rgba(198, 244, 50, 0.45); }
.side-sw-list { display: flex; flex-direction: column; gap: 2px; }
.side-sw-h { padding: 8px 10px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(236, 237, 238, 0.55); }

/* ================= the briefs board for a big roster: a creator picker, filters, capped columns, creators down the side ================= */
.bb { min-width: 0; }
.bb-bar { position: relative; z-index: 5; overflow: visible; padding: 12px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; } /* above the board: the picker opens out of it */
.bb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.bb-pick-wrap { position: relative; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.bb-pick { max-width: 100%; min-height: 44px; overflow: hidden; gap: 10px; font-weight: 700; border-color: rgba(198, 244, 50, 0.55); background: rgba(198, 244, 50, 0.08); }
.bb-pick .ca-av { flex: none; }
.bb-pick svg { flex: none; }
.bb-pick .mono { font-weight: 500; }
.bb .seg-btn { flex: none; border: 0; background: transparent; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.bb .seg-btn.on { background: #23262b; color: var(--text); font-weight: 600; }
.bb-mode { flex: none; }
.bb-quick { gap: 8px; }
.bb-kb { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bb-col { border-radius: 20px; }
.bb-col.bare { padding: 0; border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.bb-col.bare::before, .bb-col.bare::after { display: none !important; }
.bb .rb-search { flex: 1 1 140px; }
.bb-more { align-self: stretch; justify-content: center; }
@media (max-width: 1180px) { .bb-kb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the picker: under its button on a computer, a sheet on a phone */
.bp { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); width: min(400px, calc(100vw - 32px)); max-height: min(56vh, 560px); display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: #17191d; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.bp.bp-sheet { position: static; width: 100%; max-width: 460px; max-height: min(86vh, 680px); }
.bp-q .inp { min-height: 44px; border-radius: 12px; border-color: rgba(198, 244, 50, 0.45); }
.bp-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.bp-h { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(236, 237, 238, 0.55); }
.bp-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 10px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; min-width: 0; }
.bp-row:hover { background: rgba(255, 255, 255, 0.06); }
.bp-row.on { background: rgba(198, 244, 50, 0.08); border-color: rgba(198, 244, 50, 0.4); }
.bp-row input { flex: none; width: 20px; height: 20px; accent-color: #c6f432; }
.bp-row .ca-av { flex: none; }
.bp-who { flex: 1; }
.bp-who b, .bp-who .small, .bp-who .xsmall { display: block; }
.bp-n { flex: none; font-size: 13px; font-weight: 700; }
.bp-none { padding: 10px; }
.bp-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* by creator: the list down the side, their board beside it */
.bb-split { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.bb-rail { flex: 0 0 280px; min-width: 0; position: sticky; top: 16px; max-height: calc(var(--dvh) - 32px); padding: 10px; border-radius: 20px; display: flex; flex-direction: column; gap: 4px; }
.bb-rail-all { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.bb-rail-all:hover { border-color: rgba(255, 255, 255, 0.25); }
.bb-rail-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.bb-one { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bb-cur { padding: 12px 14px; border-radius: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bb-cur b { display: block; font-size: 17px; font-weight: 800; }
.bb-cur .enter { margin: 0; }
.bb-split .bb-kb { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1500px) { .bb-split .bb-kb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .bb-rail { flex-basis: 230px; } .bb-split .bb-kb { grid-template-columns: minmax(0, 1fr); } .bb-split { gap: 12px; } }

/* a phone: one stage at a time */
.bb-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.bb-tabs button { min-height: 52px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 12px; background: transparent; color: rgba(236, 237, 238, 0.8); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bb-tabs button.on { background: var(--accent); color: #0b0c0d; }
.bb-tabs .mono { font-size: 12px; font-weight: 500; }
@media (max-width: 900px) {
  .bb-pick-wrap { flex: 1 1 100%; }
  .bb-pick { width: 100%; justify-content: space-between; min-height: 50px; }
  .bb-row:first-child .rb-sel { flex: 1 1 40%; max-width: none; }
  .bb-row:first-child .rb-sel .sel { width: 100%; }
  .bb-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
  .bb-quick::-webkit-scrollbar { display: none; }
  .bb-quick > * { flex: none; }
  .bb-ql { display: none; }
  .bb-mode { flex: 1 1 100%; }
  .bb-mode .seg-btn { flex: 1; justify-content: center; }
  .bb-split { display: block; }
}

/* ================= the Studio: an agency's week, creator by creator (web/src/pages/weeks) ================= */
.stu { --stu-blue: #5ce1e6; }
.stu-hero-act { flex-wrap: wrap; justify-content: flex-end; }
.stu .fy-hero .bst { align-self: center; }
.stu-wk { display: flex; align-items: center; gap: 6px; }
.stu-wk-l { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 4px; white-space: nowrap; }
.stu-wk-l b { font-size: 13px; font-weight: 500; }
.stu-wk-l a { color: var(--accent); }
.stu-num { display: block; font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stu-num.xl { font-size: clamp(52px, 4.6vw, 76px); line-height: 0.95; letter-spacing: -0.03em; }
.stu-num.md { font-size: 34px; }
.stu-tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; white-space: nowrap; }
.stu-fit { color: var(--accent); font-size: 12.5px; font-weight: 500; }
.stu-grow { flex: 1 1 240px; min-width: 0; }
form.stu-grow { display: flex; }

/* a 9:16 video frame: dashed = lined up, solid lime = made, solid blue = back from the creator */
.stu-fr { position: relative; display: block; box-sizing: border-box; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #262a30, #191b1f); }
.stu-fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stu-fr.lined { border: 2px dashed rgba(198, 244, 50, 0.7); }
.stu-fr.made { border: 2px solid var(--accent); }
.stu-fr.back { border: 2px solid var(--stu-blue); }
.stu-fr.gap { border: 2px dashed rgba(255, 255, 255, 0.14); background: transparent; }
.stu-fr.more { display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, 0.25); background: transparent; font-size: 15px; }
.stu-avs { display: flex; align-items: center; min-height: 26px; }
.stu-avs .ca-av { box-shadow: 0 0 0 2px #15171b; }
.stu-avs .ca-av + .ca-av { margin-left: -6px; }
.stu-avs-more { margin-left: 8px; }
.stu-meter { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.stu-meter i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.5s ease; }

/* ---- the bento: the job to start with gets the big box ---- */
.stu-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.stu-big { grid-column: span 6; grid-row: span 2; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 26px; border-color: rgba(198, 244, 50, 0.6); background: rgba(198, 244, 50, 0.06); color: var(--text); text-decoration: none; min-width: 0; }
a.stu-big:hover { border-color: var(--accent); color: var(--text); }
.stu-big-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stu-big-h { margin: 0; font-size: clamp(20px, 1.7vw, 28px); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
.stu-big-p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: rgba(236, 237, 238, 0.82); max-width: 70ch; }
.stu-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.stu-thumbs.eight { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.stu-thumb { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: center; }
.stu-thumb .stu-fr { border-radius: 10px; }
.stu-thumbs.few { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.stu-thumbs.few .stu-thumb { flex-direction: row; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(11, 12, 13, 0.36); text-align: left; }
.stu-thumbs.few .stu-fr { flex: none; width: 58px; }
.stu-thumb-t { display: flex; flex-direction: column; gap: 3px; }
.stu-thumb-t b { font-size: 15px; }
.stu-big-who { margin-top: auto; }
.stu-big-act { display: flex; gap: 8px; flex-wrap: wrap; }
.stu-big-act > a { flex: 1 1 240px; }
.stu-cta { justify-content: center; min-height: 50px; font-size: 16px; width: 100%; }
.stu-cta2 { min-height: 50px; justify-content: center; }
.stu-small { grid-column: span 3; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 22px; color: var(--text); text-decoration: none; min-width: 0; }
a.stu-small:hover, a.stu-tile:hover, a.stu-row:hover, a.stu-need:hover, a.stu-side:hover { border-color: rgba(255, 255, 255, 0.28); color: var(--text); }
.stu-small-n { font-size: 14px; font-weight: 700; color: rgba(236, 237, 238, 0.72); }
.stu-small-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stu-small-num span { font-size: 15px; font-weight: 700; }
.stu-small-line { flex: 1; color: rgba(236, 237, 238, 0.82); }
.stu-small > .btn { justify-content: center; }
.stu-small.zero .stu-num { color: rgba(236, 237, 238, 0.42); }
.stu-bento.make .stu-big { grid-column: span 8; }
.stu-bento.make .stu-small { grid-column: span 4; }
.stu-bento.flat { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stu-bento.flat .stu-small { grid-column: auto; }
.stu-bar { grid-column: 1 / -1; padding: 16px 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.stu-bar-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stu-bar-h b { font-size: 16px; }
.stu-bar-row { display: flex; flex-wrap: wrap; gap: 4px; min-height: 34px; }
.stu-bar-row.empty { border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.stu-seg { flex: 1 1 0; min-width: max-content; display: flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.stu-seg.posted { background: rgba(198, 244, 50, 0.4); color: #fff; }
.stu-seg.scheduled { background: var(--accent); color: var(--on-accent); }
.stu-seg.needday { background: var(--stu-blue); color: #0b0c0d; }
.stu-seg.with { background: #3a3e45; color: #fff; }
.stu-seg.writing { border: 1px dashed rgba(255, 255, 255, 0.3); color: var(--text2); }

/* ---- every creator's week, as tiles or rows ---- */
.stu-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
.stu-tile { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 22px; color: var(--text); text-decoration: none; min-width: 0; }
.stu-tile.k-you, .stu-tile.k-nudge, .stu-row.k-you, .stu-row.k-nudge { border-color: rgba(255, 179, 122, 0.35); }
.stu-tile-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stu-tile-top b { flex: 1; font-size: 14.5px; }
.stu-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8b9197; }
.k-you .stu-dot, .k-nudge .stu-dot { background: var(--warm); }
.k-done .stu-dot { background: var(--accent); }
.stu-tile-num { display: flex; align-items: baseline; gap: 6px; }
.stu-tile-num b { font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stu-tile-num .mono.muted { font-size: 16px; }
.stu-tile-line { color: rgba(236, 237, 238, 0.72); }
.k-you .stu-tile-line, .k-nudge .stu-tile-line, .k-you .stu-row-line, .k-nudge .stu-row-line { color: var(--warm); }
.stu-rows { display: flex; flex-direction: column; gap: 8px; }
.stu-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) 110px 90px minmax(160px, 1.6fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 18px; color: var(--text); text-decoration: none; }
.stu-row-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stu-row-who b, .stu-row-who span span { display: block; }
.stu-row-box { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.stu-row-box small { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236, 237, 238, 0.6); }
.stu-row-box b { font-size: 17px; font-weight: 500; }
.stu-row-line { display: flex; align-items: center; gap: 8px; min-width: 0; color: rgba(236, 237, 238, 0.72); }
.stu-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 2px 0; }
.stu-pager b { color: var(--text); }

/* ---- Make briefs: who needs a week ---- */
.stu-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.stu-need { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; color: var(--text); text-decoration: none; min-width: 0; }
.stu-need-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stu-need-top b { display: block; font-size: 15px; }
.stu-need-top span.small { display: block; }
.stu-need-frames { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.stu-need-frames .stu-fr { border-radius: 8px; }
.stu-need-go { justify-content: center; margin-top: auto; }
.stu-end { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, 0.25); }
.stu-end > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.stu-end b { font-size: 22px; letter-spacing: -0.01em; }
.stu-end .btn { min-height: 48px; }

/* ---- one creator's week ---- */
.stu-week { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 12px; align-items: start; }
.stu-main { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 26px; border-color: rgba(198, 244, 50, 0.6); background: rgba(198, 244, 50, 0.05); min-width: 0; }
.stu-main.made { border-color: var(--glass-line); background: var(--glass); }
.stu-main-h { margin: 0; font-size: 20px; font-weight: 800; }
.stu-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stu-slot { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stu-slot-x { position: absolute; top: 6px; right: 6px; z-index: 2; margin: 0; }
.stu-slot-x button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(11, 12, 13, 0.84); color: var(--text); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.stu-slot-x button:hover { border-color: var(--warm); color: var(--warm); }
.stu-slot-x button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stu-slot-pic { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: transparent; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.stu-slot-pic .stu-fr { border-radius: 14px; }
.stu-slot-pic:focus-visible, .stu-alt-pic:focus-visible, .stu-play:focus-visible, .stu-textbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stu-heat { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(11, 12, 13, 0.84); border: 1px solid currentColor; font-size: 11px; font-weight: 700; color: #8b9197; white-space: nowrap; }
.stu-heat.static { position: static; background: transparent; }
.stu-heat.new, .stu-heat-t.new { color: var(--accent); }
.stu-heat.rising, .stu-heat-t.rising { color: var(--stu-blue); }
.stu-heat.peaking, .stu-heat-t.peaking { color: var(--warm); }
.stu-heat-t { color: #8b9197; }
.stu-slot-n { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(11, 12, 13, 0.84); font-size: 12px; }
.stu-slot-fit { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 8px; background: rgba(11, 12, 13, 0.84); color: var(--accent); font-size: 12.5px; }
.stu-slot-t { font-size: 13.5px; line-height: 1.25; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stu-slot-why { min-height: 46px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stu-slot-b { margin-top: auto; }
.stu-slot > .btn { justify-content: center; }
.stu-slot.target .stu-fr { border: 2px solid var(--stu-blue); }
.stu-state { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 6px; border-radius: 8px; background: rgba(11, 12, 13, 0.88); font-size: 12px; font-weight: 700; text-align: center; color: var(--accent); }
.stu-state.writing { color: var(--stu-blue); }
.stu-state.outline { color: var(--warm); }
.stu-state.unwritten { color: rgba(236, 237, 238, 0.72); }
.stu-state.filming { color: var(--warm); }
.stu-state.edited { color: #a9c8ff; }
.stu-state.posted { color: #fff; }
.stu-fr.s-writing { border-color: var(--stu-blue); }
.stu-fr.s-writing img { opacity: 0.8; }
.stu-fr.s-unwritten { border: 2px dashed rgba(255, 255, 255, 0.35); }
.stu-fr.s-unwritten img { opacity: 0.5; }
.stu-swapbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(92, 225, 230, 0.08); border: 1px solid rgba(92, 225, 230, 0.5); }
.stu-main-act { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.stu-main-act:empty { display: none; }
.stu-none { margin: 0; padding: 22px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.2); color: var(--muted); }
.stu-peek { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.stu-peek b { font-size: 15px; }
.stu-peek a { font-weight: 700; }
.stu-peek-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stu-peek-g span { display: block; }
.stu-peek-g .xsmall { margin-bottom: 3px; }
.stu-peek-g .small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stu-sidecol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stu-side { display: flex; flex-direction: column; gap: 9px; padding: 16px; border-radius: 22px; min-width: 0; color: var(--text); text-decoration: none; }
.stu-side-h { font-size: 14px; font-weight: 700; color: rgba(236, 237, 238, 0.72); }
.stu-side-h.accent { color: var(--accent); }
.stu-side-big { font-size: 15.5px; line-height: 1.35; }
.stu-side-name { display: block; font-size: 16px; }
.stu-side .bst { align-self: center; }
.stu-nextup { border-color: rgba(198, 244, 50, 0.6); background: rgba(198, 244, 50, 0.06); }
.stu-nextup .btn { justify-content: center; min-height: 46px; }
.stu-linkbox.todo { border-color: rgba(255, 179, 122, 0.45); }
.stu-q { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--text); text-decoration: none; min-width: 0; }
.stu-q:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.stu-q-m { flex: 1; }
.stu-q-m b, .stu-q-m span { display: block; }
.stu-q-m b { font-size: 13.5px; }
.stu-textbtn { display: inline-flex; align-items: center; min-height: 28px; padding: 0; border: 0; background: transparent; color: var(--text2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stu-textbtn:hover { color: var(--text); }
.stu-textbtn[disabled] { opacity: 0.5; cursor: progress; }
.stu-touch { display: none; }
@media (pointer: coarse) { .stu-touch { display: inline-flex; } }

/* the 10 sounds and 10 hashtags that go out with the briefs */
.stu-kits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stu-kit { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; border-color: rgba(92, 225, 230, 0.5); background: rgba(92, 225, 230, 0.05); min-width: 0; }
.stu-kit-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stu-kit-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.stu-kit-t h2 { margin: 0; font-size: 18px; font-weight: 800; }
.stu-kit-cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stu-kit-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stu-kit-p { font-size: 13.5px; font-weight: 700; }
.stu-krow { display: flex; align-items: center; gap: 8px; min-height: 50px; box-sizing: border-box; padding: 6px 8px; border-radius: 12px; background: rgba(21, 23, 27, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.stu-krow.tag { padding: 6px 10px; }
.stu-krow-m { flex: 1; }
.stu-krow-m b, span.stu-krow-m span { display: block; }
.stu-krow-m b, b.stu-krow-m { font-size: 13.5px; }
.stu-krow-pos { flex: none; font-size: 12px; color: var(--stu-blue); }
.stu-play { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: var(--text); text-decoration: none; cursor: pointer; }
.stu-play:hover { border-color: #fff; color: var(--text); }
.stu-play.on { background: var(--stu-blue); border-color: var(--stu-blue); color: #0b0c0d; }
.stu-play.none { border-style: dashed; color: var(--muted); cursor: default; }

/* more videos that fit */
.stu-more { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; }
.stu-alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.stu-alts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stu-alt { display: flex; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); min-width: 0; }
.stu-alt.on { border-color: var(--stu-blue); }
.stu-alt-pic { flex: none; width: 50px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.stu-alt-pic .stu-fr { border-radius: 8px; }
.stu-alt-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.stu-alt-m b { font-size: 13.5px; }
.stu-alt-b { margin-top: auto; }
.stu-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ---- opened over the page: one video, or the sounds and hashtags ---- */
.stu-sheet-bg { position: fixed; inset: 0; z-index: 55; display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px 24px; overflow-y: auto; background: rgba(6, 7, 8, 0.74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.stu-sheet { --stu-blue: #5ce1e6; width: min(1080px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 26px; background: #15171b; border: 1px solid rgba(198, 244, 50, 0.35); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); outline: none; }
.stu-sheet.kit { width: min(1240px, 100%); border-color: rgba(92, 225, 230, 0.45); }
.stu-sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stu-sheet-foot { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 -20px -20px; padding: 12px 20px 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0 0 26px 26px; background: #15171b; }
.stu-sheet-foot > span { flex: 1 1 420px; }
.stu-look { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.stu-look-l { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stu-watch { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; }
.stu-watch .stu-fr { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.stu-watch iframe, .stu-watch video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stu-watch video { object-fit: cover; }
.stu-watch-out { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; background: rgba(11, 12, 13, 0.84); }
.stu-look-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stu-look-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stu-look-h { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.stu-fitbox { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(198, 244, 50, 0.06); border: 1px solid rgba(198, 244, 50, 0.3); }
.stu-fitbox-n { flex: none; }
.stu-fitbox-n b { display: block; font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.stu-fitbox-n span { display: block; }
.stu-traits { flex: 1 1 260px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.stu-traits li { display: flex; gap: 8px; font-size: 13px; color: rgba(236, 237, 238, 0.9); }
.stu-traits li.no { color: var(--warm); }
.stu-traits b { flex: none; width: 14px; text-align: center; }
.stu-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stu-note { padding: 14px; border-radius: 16px; }
.stu-note h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: rgba(236, 237, 238, 0.72); }
.stu-note p { margin: 0; font-size: 14.5px; }
.stu-note p + p { margin-top: 6px; }
.stu-look-r > .row > .btn { min-height: 48px; }
.stu-look-keep { flex: 1 1 200px; justify-content: center; font-size: 15.5px; }
.stu-look-alts { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.stu-look-alts > .row > b { font-size: 15px; }
.stu-kit-h { margin: 0; font-size: 20px; font-weight: 800; }
.stu-kit-how { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.stu-kit-how-l { font-weight: 700; }
.stu-kit-how-n { flex: 1 1 280px; }
.stu-kit-how .seg-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.stu-kit-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stu-chart { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.stu-chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 4px; }
.stu-chart-h b { font-size: 15.5px; }
.stu-chart-n { color: var(--stu-blue); font-weight: 700; white-space: nowrap; }
.stu-chart-n.short { color: var(--warm); }
.stu-crow { display: grid; grid-template-columns: 24px 30px minmax(0, 1fr) auto 40px 104px; gap: 10px; align-items: center; min-height: 46px; box-sizing: border-box; padding: 6px 8px; border-radius: 12px; background: rgba(21, 23, 27, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.stu-crow.tags { grid-template-columns: 24px minmax(0, 1fr) auto 40px 104px; }
.stu-crow.on { background: rgba(198, 244, 50, 0.07); border-color: rgba(198, 244, 50, 0.45); }
.stu-crow.low { opacity: 0.62; }
.stu-crow-pos { font-size: 13px; text-align: right; color: rgba(236, 237, 238, 0.72); }
.stu-crow-m b, .stu-crow-m span { display: block; }
.stu-crow-m b { font-size: 13.5px; }
.stu-crow-fit { font-size: 12.5px; font-weight: 500; text-align: right; color: rgba(236, 237, 238, 0.55); }
.stu-crow-fit.good { color: var(--accent); }
.stu-crow-b, .stu-chart-more { justify-content: center; }
.stu-chart-none { padding: 14px 4px; }
.stu-kit-done { min-height: 46px; min-width: 140px; justify-content: center; }

/* ---- Send links ---- */
.stu-lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.stu-lcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; min-width: 0; }
.stu-lcard.s-send, .stu-lcard.s-nudge { border-color: rgba(255, 179, 122, 0.35); }
.stu-lcard.s-unfinished { border-style: dashed; }
.stu-lcard-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stu-lcard-top b, .stu-lcard-top span.small { display: block; }
.stu-lcard-top .bst { align-self: center; flex: none; }
.stu-lcard-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stu-lcard-nums > span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.stu-lcard-nums b { font-size: 20px; font-weight: 500; }
.stu-lcard-nums small { font-size: 11.5px; color: rgba(236, 237, 238, 0.6); }

/* ---- narrower screens ---- */
@media (max-width: 1320px) {
  .stu-bento .stu-big, .stu-bento.make .stu-big { grid-column: 1 / -1; grid-row: auto; }
  .stu-bento .stu-small, .stu-bento.make .stu-small { grid-column: span 6; }
  .stu-bento.flat .stu-small { grid-column: auto; }
  .stu-week { grid-template-columns: minmax(0, 1fr); }
  .stu-sidecol { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .stu-kits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .stu-kits, .stu-kit-cols, .stu-two, .stu-now { grid-template-columns: minmax(0, 1fr); }
  .stu-peek-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stu-look { grid-template-columns: minmax(0, 1fr); }
  .stu-look-l { width: 100%; max-width: 280px; margin: 0 auto; }
  .stu-alts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stu-row { grid-template-columns: minmax(0, 1fr) auto; }
  .stu-row-box, .stu-row-go { display: none; }
  .stu-row-line { grid-column: 1 / -1; }
  .stu-thumbs.eight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stu-bento .stu-small, .stu-bento.make .stu-small { grid-column: 1 / -1; }
  .stu-big, .stu-main { padding: 16px; border-radius: 22px; }
  .stu-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stu-thumbs .stu-thumb:nth-child(n + 5), .stu-thumbs.eight .stu-thumb:nth-child(n + 9) { display: none; }
  /* a week's videos: swipe through them, two and a bit on screen */
  .stu-slots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .stu-slots::-webkit-scrollbar { display: none; }
  .stu-slot { flex: 0 0 42%; scroll-snap-align: start; }
  .stu-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stu-needs, .stu-lcards { grid-template-columns: minmax(0, 1fr); }
  .stu-kit-cols2 { grid-template-columns: minmax(0, 1fr); }
  .stu-alts, .stu-alts.four { grid-template-columns: minmax(0, 1fr); }
  .stu-traits { grid-template-columns: minmax(0, 1fr); }
  .stu-sheet-bg { padding: 0; }
  .stu-sheet, .stu-sheet.kit { width: 100%; min-height: 100%; border-radius: 0; border-left: 0; border-right: 0; padding: 14px; }
  .stu-sheet-foot { margin: 0 -14px -14px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; }
  .stu-sheet-foot > span { display: none; }
  .stu-kit-done { flex: 1; }
  .stu-crow, .stu-crow.tags { grid-template-columns: 20px 30px minmax(0, 1fr) 34px 92px; gap: 8px; }
  .stu-crow.tags { grid-template-columns: 20px minmax(0, 1fr) 34px 92px; }
  .stu-crow .stu-heat { display: none; }
  .stu-crow-m b.clamp1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
  .stu-look-h { font-size: 22px; }
  .stu-hero-act { justify-content: flex-start; }
  .stu-end b { font-size: 19px; }
}

/* ================= Trends: TikTok and Instagram on one page (web/src/pages/trends/TrendsPage.jsx) ================= */
.tr-page { min-width: 0; }
.tr-head { margin: 6px 0 22px; }
.tr-word { margin: 6px 0 0; font-family: 'Bagel Fat One', 'Archivo', system-ui, sans-serif; font-weight: 400; font-size: 112px; line-height: 0.95; letter-spacing: 0.01em; color: #c6f432; text-shadow: 0 6px 0 #7f9c16, 0 0 34px rgba(198, 244, 50, 0.35); overflow-wrap: anywhere; }
/* the bar: every control on one line where it fits, wrapping cleanly where it doesn't */
.tr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; padding: 8px; margin-bottom: 22px; border-radius: 22px; background: var(--glass-chip, rgba(255, 255, 255, 0.04)); border: 1px solid var(--glass-chip-line, rgba(255, 255, 255, 0.08)); min-width: 0; }
.tr-tabs { display: flex; gap: 2px; flex-wrap: wrap; min-width: 0; }
.tr-tab { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 6px 8px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tr-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tr-tab.on { background: var(--accent); color: var(--on-accent); }
.tr-tab.on:hover { color: var(--on-accent); background: var(--accent-hover); }
.tr-n { font-size: 11.5px; opacity: 0.75; }
.tr-div { margin: 0 2px; width: 1px; align-self: stretch; min-height: 24px; background: rgba(255, 255, 255, 0.1); }
.tr-seg { padding: 3px; flex-wrap: nowrap; }
.tr-seg .seg-btn { min-height: 32px; padding: 5px 9px; font-size: 13px; white-space: nowrap; }
.tr-filters { display: contents; }
.tr-fbtn { display: none; }
.tr-sel select { min-height: 36px; max-width: 150px; padding: 6px 26px 6px 11px; border-radius: 999px; border: 1px solid var(--glass-chip-line, var(--line2)); background: var(--card2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ba1a6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; color: var(--text); font: inherit; font-size: 13px; appearance: none; -webkit-appearance: none; cursor: pointer; field-sizing: content; }
.tr-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--glass-chip-line, var(--line2)); color: var(--text); text-decoration: none; font-size: 13px; white-space: nowrap; }
.tr-chip:hover { color: var(--text); border-color: var(--muted); }
.tr-chip.on { border-color: var(--accent); color: var(--accent); background: rgba(198, 244, 50, 0.08); }
.tr-search { position: relative; flex: 1 1 76px; min-width: 76px; max-width: 280px; margin-left: auto; }
.tr-search input { width: 100%; min-height: 36px; padding: 6px 28px 6px 12px; border-radius: 999px; border: 1px solid var(--glass-chip-line, var(--line2)); background: var(--card2); color: var(--text); font: inherit; font-size: 13px; }
.tr-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tr-search input::-webkit-search-cancel-button { display: none; }
.tr-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); text-decoration: none; font-size: 16px; }
.tr-clear:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
/* platform badges */
.pbadges { display: inline-flex; gap: 4px; flex: none; }
.pbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 17px; padding: 0 4px; border-radius: 5px; font: 700 10px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.02em; }
.pbadge.tt { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.pbadge.ig { background: #ecedee; color: #0e0f11; border: 1px solid #ecedee; }
.pbadge-link { display: inline-flex; border-radius: 6px; text-decoration: none; }
.pbadge-link:hover .pbadge { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Everything: three columns side by side */
.tr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; align-items: start; }
.tr-col { min-width: 0; }
.tr-col-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.tr-col-h h2 { margin: 0; font-size: 17px; font-weight: 800; }
.tr-col-span { margin-left: auto; }
/* videos */
.tr-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tr-vgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tr-tile { min-width: 0; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(20, 22, 25, 0.7); border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color 0.2s ease; }
.tr-tile:hover { border-color: rgba(198, 244, 50, 0.45); }
.tr-tile.inb { border-color: var(--accent); }
.tr-tile .vthumb { aspect-ratio: 9 / 13; }
.tr-tl { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; }
.tr-age { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; line-height: 1.2; background: rgba(14, 15, 17, 0.85); color: var(--text); }
.vthumb.playing .tr-age { opacity: 0; }
.tr-views, .tr-above { position: absolute; bottom: 8px; z-index: 2; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; line-height: 1.2; }
.tr-views { left: 8px; background: rgba(14, 15, 17, 0.85); color: var(--text); }
.tr-above { right: 8px; background: #c6f432; color: #0e0f11; font-weight: 700; border-radius: 999px; }
.vthumb.playing .tr-views, .vthumb.playing .tr-above { opacity: 0; }
.tr-tile-b { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px 10px; min-width: 0; }
.tr-tile-t { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.6em; }
.tr-tile-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.tr-tile-m > .clamp1 { flex: 1; }
.tr-tile-acts { display: flex; gap: 2px; flex: none; }
.tr-tile-acts form { margin: 0; display: flex; }
.tr-ic { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.tr-ic:hover, .tr-ic[aria-pressed='true'] { color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.bbtn.tr-bb { width: 100%; min-height: 32px; padding: 5px 10px; font-size: 12px; }
/* sounds and hashtags, compact (Everything) */
.tr-lines { display: flex; flex-direction: column; padding: 4px; border-radius: 20px; background: rgba(20, 22, 25, 0.55); border: 1px solid rgba(255, 255, 255, 0.07); }
.tr-line { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; color: var(--text); text-decoration: none; }
.tr-line + .tr-line { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.tr-line:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.tr-line .sp-play { width: 40px; height: 40px; border-radius: 10px; }
.tr-rank { font-size: 12px; color: var(--muted); text-align: right; }
.tr-hash { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(198, 244, 50, 0.1); color: var(--accent); font: 800 19px/1 'Archivo', system-ui, sans-serif; }
.tr-line-tx { display: flex; flex-direction: column; gap: 3px; }
.tr-line-name { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
a.tr-line-name:hover, a.tr-line:hover .tr-line-name { color: var(--accent); }
.tr-line-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tr-line-meta small { font-size: 12px; color: rgba(236, 237, 238, 0.55); min-width: 0; }
.tr-line .pill { font-size: 11px; }
/* the next batch */
.tr-more-row { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 0; color: var(--muted); font-size: 13px; }
.tr-loading { display: inline-flex; align-items: center; gap: 8px; }
.tr-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: trspin 0.8s linear infinite; }
@keyframes trspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tr-spin { animation: none; } }
/* phones: the kind tabs, the platform switch and a Filters button; the rest opens under it */
@media (max-width: 640px) {
  .tr-head { margin: 2px 0 16px; }
  .tr-word { font-size: 58px; text-shadow: 0 4px 0 #7f9c16, 0 0 22px rgba(198, 244, 50, 0.35); }
  .tr-bar { padding: 6px; gap: 6px; border-radius: 20px; }
  .tr-tabs { width: 100%; flex-wrap: nowrap; }
  .tr-tab { flex: 1 1 0; justify-content: center; padding: 6px 4px; font-size: 13px; min-width: 0; }
  .tr-tab-all, .tr-div { display: none; }
  .tr-plat { flex: 1 1 auto; min-width: 0; }
  .tr-plat .seg-btn { flex: 1; justify-content: center; padding: 5px 6px; }
  .tr-fbtn { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--glass-chip-line, var(--line2)); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  .tr-fbtn.on { border-color: var(--accent); color: var(--accent); }
  .tr-filters { display: none; }
  .tr-filters.open { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; padding: 4px 2px 2px; }
  .tr-sel { flex: 1 1 30%; min-width: 0; }
  .tr-sel select { width: 100%; max-width: none; }
  .tr-search { flex: 1 1 100%; max-width: none; margin-left: 0; }
  .tr-vgrid, .tr-vgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tr-tile-b { padding: 8px; }
}
