:root {
  --bg: #faf4ea;
  --bg-2: #f3ebdc;
  --card: #ffffff;
  --card-2: #f7f1e6;
  --line: #e7ddcb;
  --text: #1a1714;
  --muted: #8c8377;
  --accent: #111111;
  --accent-2: #2b2bff;
  --gold: #b07d18;
  --danger: #d23b4e;
  --warn: #c77d12;
  --ok: #1f9d57;
  --radius: 14px;
  --shadow: 0 6px 28px rgba(40, 30, 10, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
.container { max-width: 1320px; margin: 0 auto; padding: 22px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
button { font-family: inherit; cursor: pointer; }

/* Top bar — editorial */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px; border-bottom: 1px solid var(--line);
  background: var(--bg); position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .brand-logo { font-family: "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.5px; color: #15161a; }
.brand small { color: var(--muted); font-weight: 700; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; padding-left: 11px; margin-left: 3px; border-left: 1.5px solid var(--line); }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
/* Identity chip: avatar + name read as one unit */
.who-id { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); padding: 3px 13px 3px 3px; border-radius: 99px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.who-streak { font-size: 12.5px; font-weight: 800; color: var(--gold); background: rgba(176, 125, 24, .1); border: 1px solid rgba(176, 125, 24, .25); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
/* Nav dropdowns (Briefs menu + profile menu) */
.tab-dropdown, .profile-wrap { position: relative; }
.dd-caret { font-size: 9px; opacity: .55; margin-left: 1px; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.16); padding: 6px; min-width: 212px; display: flex; flex-direction: column; gap: 2px; }
.nav-menu.profile-menu { right: 0; left: auto; }
.nav-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--accent); cursor: pointer; white-space: nowrap; }
.nav-menu-item:hover { background: var(--card-2); }
/* Favorites: ♡ on tiles, folder picker popover */
.tile-fav { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer; background: rgba(0,0,0,.5); color: #fff; font-size: 15px; line-height: 30px; padding: 0; transition: transform .12s, background .12s; }
.tile-fav:hover { background: var(--accent-2); transform: scale(1.1); }
.tile-fav-del { position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 800; line-height: 26px; padding: 0; }
.tile-fav-del:hover { background: var(--danger); }
.fav-picker { position: absolute; z-index: 200; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,.2); padding: 8px; min-width: 224px; display: flex; flex-direction: column; gap: 4px; }
.fav-pick-title { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 2px 4px 4px; }
.fav-pick-folder { text-align: left; background: transparent; border: 0; border-radius: 9px; padding: 9px 10px; font-size: 13.5px; font-weight: 700; color: var(--accent); cursor: pointer; }
.fav-pick-folder:hover { background: var(--card-2); }
.fav-pick-new { display: flex; gap: 6px; margin-top: 4px; }
.fav-pick-new input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.fav-pick-new button { background: var(--accent-2); color: #fff; border: 0; border-radius: 9px; width: 36px; font-size: 18px; font-weight: 800; cursor: pointer; }
.fav-folder-chip { display: inline-flex; align-items: center; }
.fav-folder-del { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; margin-left: -4px; padding: 4px 6px; }
.fav-folder-del:hover { color: var(--danger); }
/* My favorites page — folder cards + shared badges */
#favFolders { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fav-fld { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px; font-size: 13.5px; font-weight: 800; color: var(--accent); cursor: pointer; transition: all .12s; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.fav-fld:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.fav-fld.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.fav-fld-ico { font-size: 16px; }
.fav-fld-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-fld-n { font-size: 11px; font-weight: 800; background: var(--card-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.fav-fld.on .fav-fld-n { background: rgba(255,255,255,.22); color: #fff; }
.fav-fld-share { font-size: 14px; opacity: .5; padding: 0 1px; border-radius: 6px; cursor: pointer; transition: all .12s; }
.fav-fld-share.on { opacity: 1; }
.fav-fld-share:hover, .fav-fld-x:hover { opacity: 1; transform: scale(1.18); }
.fav-fld-x { font-size: 12px; opacity: .4; font-weight: 900; cursor: pointer; }
.fav-fld-by { font-size: 11.5px; font-weight: 700; opacity: .75; }
.fav-fld.on .fav-fld-by { color: rgba(255,255,255,.85); }
.fav-owner { position: absolute; bottom: 8px; right: 8px; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; padding: 2px 7px; backdrop-filter: blur(4px); z-index: 2; }
#whoName { font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; }
/* Disconnect — subtle by default, turns red on hover */
.logout-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: transparent; border-color: transparent; }
.logout-btn:hover { color: var(--danger); border-color: var(--danger); background: #fbe3e6; }
.logout-btn .logout-ico { font-size: 15px; line-height: 1; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } .cols-4 { grid-template-columns: repeat(2, 1fr); } }

/* Stat cards */
.stat { position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.stat .value { font-size: 32px; font-weight: 900; margin-top: 6px; }
.stat.money .value { color: var(--gold); }
.stat .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat .glow { display: none; }
.stat.clickable { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.stat.clickable:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.stat.clickable.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.stat.money.clickable.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }

/* Level bar */
.level-wrap { margin-top: 14px; }
.bar { height: 9px; background: var(--card-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s ease; }

/* Badges */
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge { background: var(--card-2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; display: flex; align-items: center; gap: 6px; }

/* ---- Level / tier / XP hero ---- */
.lvl-hero {
  display: flex; align-items: center; gap: 18px;
  margin: 14px 0; padding: 20px 22px;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, var(--card-2));
  position: relative; overflow: hidden;
}
.lvl-hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--tier-grad, linear-gradient(135deg, rgba(43,43,255,.10), transparent 60%));
  pointer-events: none;
}
.lvl-hero > * { position: relative; z-index: 1; }
.lvl-badge {
  flex: none; width: 78px; height: 78px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; background: var(--tier-color, #2b2bff);
  box-shadow: 0 6px 18px rgba(0,0,0,.18); border: 3px solid rgba(255,255,255,.55);
}
.lvl-num { font-size: 30px; font-weight: 900; line-height: 1; }
.lvl-num-cap { font-size: 9px; font-weight: 800; letter-spacing: 2px; opacity: .85; margin-top: 2px; }
.lvl-main { flex: 1; min-width: 0; }
.lvl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lvl-tier {
  font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--tier-color, #2b2bff);
  display: inline-flex; align-items: center; gap: 6px;
}
.lvl-xp { font-weight: 900; font-size: 18px; color: var(--accent); }
.lvl-wrap { margin: 4px 0; }
.lvl-bar { height: 11px; background: var(--card-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.lvl-bar > span { display: block; height: 100%; border-radius: 99px; transition: width .6s ease; background: var(--tier-color, #2b2bff); }
.lvl-next { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.lvl-next b { color: var(--accent); }
.lvl-mult-row { margin-top: 8px; }
.lvl-mult { font-size: 12px; color: var(--muted); }
.lvl-mult.on {
  display: inline-block; font-weight: 800; color: #1f9d57;
  background: rgba(31,157,87,.12); border: 1px solid rgba(31,157,87,.3);
  padding: 3px 10px; border-radius: 99px;
}
/* tier palettes */
.lvl-hero.t-rookie    { --tier-color:#1f9d57; --tier-grad: linear-gradient(135deg, rgba(31,157,87,.12), transparent 60%); }
.lvl-hero.t-producer  { --tier-color:#2b2bff; --tier-grad: linear-gradient(135deg, rgba(43,43,255,.12), transparent 60%); }
.lvl-hero.t-performer { --tier-color:#9b4dff; --tier-grad: linear-gradient(135deg, rgba(155,77,255,.14), transparent 60%); }
.lvl-hero.t-scaler    { --tier-color:#e0852b; --tier-grad: linear-gradient(135deg, rgba(224,133,43,.14), transparent 60%); }
.lvl-hero.t-elite     { --tier-color:#b07d18; --tier-grad: linear-gradient(135deg, rgba(176,125,24,.18), transparent 55%); }

/* ---- Badge grid ---- */
.bg-summary { font-weight: 800; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.bg-group { margin-bottom: 16px; }
.bg-group-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 10px; }
.bg-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.bg-badge {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center;
  background: var(--card-2); transition: transform .12s ease;
}
.bg-badge.got { background: #fff; border-color: rgba(43,43,255,.35); box-shadow: 0 2px 10px rgba(43,43,255,.08); }
.bg-badge.locked { opacity: .55; filter: grayscale(.5); }
.bg-badge:hover { transform: translateY(-2px); }
.bg-ico { font-size: 26px; line-height: 1; }
.bg-label { font-weight: 800; font-size: 12.5px; margin-top: 6px; }
.bg-hint { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* Section title */
.section-title { font-size: 15px; font-weight: 800; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; }
.section-title .muted { text-transform: none; letter-spacing: 0; }

/* ===== MOSAIC (Bradery-style, full-bleed premium) ===== */
.full {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.mosaic {
  display: grid;
  gap: 6px;
  grid-auto-flow: dense;
  padding: 0 6px;
}
/* empty state is a full-width banner: leave the fixed-height tile grid so the
   card sizes to its content (and never clips it) on every screen width. */
.mosaic.is-empty { display: block; }
/* concepts — editorial: one hero + wide tiles */
.mosaic.featured { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(230px, 27vh, 360px); }
.mosaic.featured .tile { grid-column: span 2; }
.mosaic.featured .tile.hero { grid-row: span 2; }
/* games — clean uniform catalog */
.mosaic.uniform { grid-template-columns: repeat(5, 1fr); grid-auto-rows: clamp(250px, 31vh, 380px); }
@media (max-width: 1200px) { .mosaic.uniform { grid-template-columns: repeat(4, 1fr); } }
/* games — Bradery-style varied catalog (different tile sizes per game) */
.mosaic.varied { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 19vh, 230px); }
.mosaic.varied .tile.big  { grid-column: span 2; grid-row: span 2; }
.mosaic.varied .tile.wide { grid-column: span 2; }
.mosaic.varied .tile.tall { grid-row: span 2; }
.mosaic.varied .tile.big .tile-name { font-size: 28px; }
@media (max-width: 1200px) { .mosaic.varied { grid-template-columns: repeat(3, 1fr); } }

/* "See all games" toggle — spans the full mosaic row */
.games-toggle {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 10px 0; padding: 16px;
  background: var(--card); border: 1px dashed var(--line); border-radius: 14px;
  font-weight: 800; font-size: 14px; color: var(--accent); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.games-toggle:hover { background: var(--card-2); border-color: var(--accent-2); }
.games-toggle-n {
  font-weight: 700; font-size: 12px; color: var(--muted);
  background: var(--card-2); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 99px;
}
@media (max-width: 900px) {
  .mosaic.featured { grid-template-columns: repeat(2, 1fr); }
  .mosaic.uniform { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .mosaic.featured .tile, .mosaic.featured .tile.hero { grid-column: span 2; grid-row: span 1; }
  .mosaic.uniform { grid-template-columns: repeat(2, 1fr); }
  .mosaic.varied { grid-template-columns: repeat(2, 1fr); }
  .mosaic.varied .tile.big { grid-column: span 2; grid-row: span 2; }
  .mosaic.varied .tile.wide { grid-column: span 2; }
  .mosaic.varied .tile.tall { grid-row: span 1; }
}

/* 9:16 portrait cards grid */
.mosaic.cards { grid-template-columns: repeat(5, 1fr); grid-auto-rows: auto; gap: 14px; }
.mosaic.cards .tile { aspect-ratio: 9 / 16; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.mosaic.cards .tile-name { display: none; }
@media (max-width: 1200px) { .mosaic.cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .mosaic.cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .mosaic.cards { grid-template-columns: repeat(2, 1fr); } }

/* Big payout price (top-left) — grows when you enter the card */
.tile-price { position: absolute; top: 12px; left: 14px; z-index: 3; color: #fff; font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: -.5px; text-shadow: 0 2px 12px rgba(0,0,0,.6); transform-origin: left top; transition: transform .2s cubic-bezier(.2,1.2,.3,1); }
.tile:hover .tile-price { transform: scale(1.28); }
.tile-price .tile-price-cap { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: .9; margin-top: 3px; }
/* Premium ribbon (top-right) */
.tile-premium { position: absolute; top: 13px; right: 13px; z-index: 3; background: linear-gradient(90deg,#f7c948,#b07d18); color: #1a1206; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; padding: 5px 11px; border-radius: 99px; box-shadow: 0 3px 12px rgba(176,125,24,.5); }
.mosaic.cards .tile-tag { font-size: 12.5px; padding: 6px 13px; top: 14px; right: 14px; }

/* Card foot: logo bottom-left next to the name, + a persistent upload button */
.tile-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 14px 15px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.80) 70%); }
.tile-foot-id { display: flex; align-items: center; gap: 10px; }
.tile-foot-logo { height: 44px; width: 44px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.14); padding: 4px; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.tile-foot-name { color: #fff; font-weight: 900; font-size: 18px; line-height: 1.08; letter-spacing: .3px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tile-upload { width: 100%; background: #fff; color: #111; border: none; padding: 11px; border-radius: 11px; font-weight: 900; font-size: 14px; letter-spacing: .3px; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.tile-upload:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }

/* ---- Game detail full-screen view ---- */
.game-view { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.gv-hero { position: relative; min-height: 280px; display: flex; align-items: center; padding: 26px; color: #fff; overflow: hidden; }
.gv-hero-bg { position: absolute; inset: 0; z-index: 0; }
.gv-hero-bg img, .gv-hero-bg video { width: 100%; height: 100%; object-fit: cover; }
/* blurred, zoomed cover fills the wide banner with the game's art (no empty/gray strip) */
.gv-hero-blur img, .gv-hero-blur video { filter: blur(11px) brightness(.95) saturate(1.25); transform: scale(1.1); }
.gv-hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.32) 44%, rgba(0,0,0,.1) 100%); }
.gv-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; width: 100%; max-width: 1100px; margin: 0 auto; }
/* crisp portrait poster of the game cover */
.gv-poster { position: relative; width: 134px; height: 228px; flex: none; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 14px 36px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); }
.gv-poster img, .gv-poster video { width: 100%; height: 100%; object-fit: cover; }
.gv-poster-logo { position: absolute; left: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: rgba(0,0,0,.55); padding: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.gv-logo { height: 76px; width: 76px; object-fit: contain; border-radius: 16px; background: rgba(255,255,255,.14); padding: 8px; flex: none; }
@media (max-width: 640px) {
  .gv-poster { width: 96px; height: 164px; }
  .gv-hero { min-height: 220px; }
}
.gv-title { font-size: 34px; font-weight: 900; letter-spacing: -.5px; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.gv-price { font-size: 17px; font-weight: 800; margin-top: 4px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.gv-price .prem { background: linear-gradient(90deg,#f7c948,#b07d18); color: #1a1206; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; padding: 4px 10px; border-radius: 99px; margin-left: 10px; }
.gv-back { background: rgba(255,255,255,.92); color: #111; border: none; padding: 9px 16px; border-radius: 99px; font-weight: 800; cursor: pointer; }
.gv-body { max-width: 1100px; margin: 0 auto; padding: 24px 26px 60px; }
.gv-sec-title { font-weight: 900; font-size: 18px; margin: 26px 0 12px; }
.gv-brief { border-left: 4px solid var(--accent-2); }
.gv-brief.sel { outline: 2px solid var(--accent-2); }
/* Free-batch explainer card */
.free-batch { border-left: 4px solid var(--gold); }
.free-batch .fb-intro { margin: 0 0 14px; font-weight: 600; }
.fb-tiers { display: grid; gap: 10px; }
.fb-tier { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; }
.fb-tier .fb-amt { font-weight: 900; font-size: 20px; color: var(--gold); flex: none; min-width: 70px; }
.fb-tier .fb-cond { font-weight: 600; }
.fb-bp-title { font-weight: 800; margin: 18px 0 8px; }
.fb-bp { margin: 0; padding-left: 20px; line-height: 1.7; }
.fb-bp li { font-size: 14px; }
.gv-drop { border: 2px dashed var(--line); border-radius: 16px; padding: 34px; text-align: center; cursor: pointer; transition: .15s; background: var(--card); }
.gv-drop.hover { border-color: var(--accent-2); background: rgba(108,92,255,.06); }
.gc-tip { margin-top: 10px; font-size: 12.5px; color: var(--muted); background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; line-height: 1.5; }
.gc-tip b { color: var(--accent); }
.gv-filelist { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.gv-filerow { display: flex; align-items: center; gap: 10px; background: var(--card-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.gv-filerow .pct { margin-left: auto; font-weight: 800; font-size: 12px; color: var(--accent-2); }
.gv-filerow.done .pct { color: var(--gold); }
.gv-filerow.err { background: rgba(220,60,60,.12); }

/* ---- Benchmark KPI cards ---- */
.kpi { text-align: center; padding: 22px; }
.kpi .v { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.kpi .l { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
.mosaic.cards .tile.bench .tile-foot-name { font-size: 16px; }
/* Benchmark tiles: captions/tags appear only on hover for a clean gallery. */
.tile.bench .tile-foot, .tile.bench .tile-tag { opacity: 0; transition: opacity .2s ease; }
.tile.bench:hover .tile-foot, .tile.bench:hover .tile-tag { opacity: 1; }

/* Tabs — inline in the topbar, single line, underline indicator */
.tabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin: 0; }
.tab-btn { background: transparent; border: none; border-bottom: 3px solid transparent; border-radius: 0; padding: 6px 14px; font-weight: 800; font-size: 13.5px; letter-spacing: .4px; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tile {
  position: relative; overflow: hidden; border-radius: 6px; cursor: pointer;
  background: #e6ddcc;
}
/* Locked game tiles (creator not granted access to this game). */
.tile.locked { cursor: not-allowed; }
.tile.locked .tile-media, .tile.locked .tile-fallback { filter: grayscale(.95) brightness(.42); }
.tile.locked .tile-foot-name { opacity: .8; }
.tile-lock { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.tile-lock-ico { font-size: 40px; filter: drop-shadow(0 3px 10px rgba(0,0,0,.7)); }
.tile-lock-txt { color: #fff; font-weight: 900; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(0,0,0,.55); padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.tile-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.tile:hover .tile-media { transform: scale(1.06); }
.tile-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; }
.tile-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 50%, rgba(0,0,0,.62) 100%); transition: background .3s; }
.tile:hover .tile-overlay { background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.7) 100%); }
.tile-badge { position: absolute; top: 14px; left: 16px; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.tile-tag { position: absolute; top: 13px; right: 14px; background: rgba(255,255,255,.95); color: #111; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; padding: 4px 9px; border-radius: 99px; }
.tile-badge.gold { background: linear-gradient(135deg, #ffd864, #f5a623); color: #3a2600; padding: 5px 11px; border-radius: 99px; text-shadow: none; box-shadow: 0 3px 12px rgba(245,166,35,.45); }
/* "Recently synced" — top-right so it never collides with the top-left 🔥 gold badge. */
.tile-badge.new { left: auto; right: 16px; background: linear-gradient(135deg, #7c9cff, #4f6bff); color: #fff; padding: 5px 10px; border-radius: 99px; text-shadow: none; box-shadow: 0 3px 12px rgba(79,107,255,.45); }

/* Private briefs tab */
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--accent-2); color: #fff; font-size: 10.5px; font-weight: 900; }
.private-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: clamp(340px, 42vh, 480px); padding: 56px 32px; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(130% 120% at 50% -10%, #fff 0%, var(--card-2) 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.private-empty::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 46% at 50% 0%, rgba(43, 43, 255, .08), transparent 72%); }
.private-empty .pe-badge { position: relative; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 26px;
  display: grid; place-items: center; font-size: 40px; color: #fff;
  background: linear-gradient(140deg, var(--accent-2), #6b78ff); box-shadow: 0 14px 34px rgba(43, 43, 255, .32); }
.private-empty .pe-title { position: relative; font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.private-empty .pe-sub { position: relative; color: var(--muted); font-size: 14.5px; max-width: 520px; margin: 0 auto; line-height: 1.6; }
.private-empty .pe-perks { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.private-empty .pe-perk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 9px 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.private-empty .pe-perk.gold { color: var(--gold); border-color: rgba(176, 125, 24, .32); background: rgba(176, 125, 24, .07); }
.tile-name { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .6px; text-shadow: 0 2px 14px rgba(0,0,0,.6); padding: 0 16px; }
.tile.hero .tile-name { font-size: 32px; }
.tile-sub { display: block; font-size: 12px; font-weight: 600; opacity: .9; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }
.tile-cta { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); background: #fff; color: #111; border: none; padding: 9px 20px; border-radius: 99px; font-weight: 800; font-size: 13px; letter-spacing: .3px; transition: bottom .3s cubic-bezier(.2,1.2,.3,1); white-space: nowrap; }
.tile:hover .tile-cta { bottom: 54px; }
.tile.hero:hover .tile-cta { bottom: 70px; }
.mosaic-label { text-align: center; margin: 8px 0 26px; }
.mosaic-label .k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); }
.mosaic-label .s { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Game cards (legacy, still used elsewhere) */
.game-card { cursor: pointer; transition: transform .15s ease, border-color .15s; position: relative; overflow: hidden; }
.game-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.game-card .emoji { font-size: 30px; }
.game-card .name { font-weight: 800; font-size: 17px; margin: 8px 0 4px; }
.game-card .brief { color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 56px; }
.game-card .payout { margin-top: 12px; font-weight: 800; color: var(--gold); font-size: 15px; }
.game-card .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }

/* Pills / tags */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.pill.pending { background: #fbf0db; color: var(--warn); border-color: #f0dcb4; }
.pill.in_testing { background: #ececff; color: #4b4bd8; border-color: #d6d6fb; }
.pill.not_performing { background: #fbe3e6; color: var(--danger); border-color: #f3c4cb; }
.pill.passed_testing { background: #e3f6ea; color: var(--ok); border-color: #bfe9cf; }
.pill.passed_3k { background: #dff3ec; color: #0f8a6a; border-color: #b6e4d4; }
.pill.top_spender { background: #fcefc9; color: #97720a; border-color: #f0dca0; }
.pill.open { background: #e3f6ea; color: var(--ok); border-color: #bfe9cf; }
.pill.closed { background: #efe9df; color: var(--muted); border-color: var(--line); }
.pill.warn { background: #fbf0db; color: var(--warn); border-color: #f0dcb4; }
/* legacy fallbacks */
.pill.in_review { background: #ececff; color: #4b4bd8; border-color: #d6d6fb; }
.pill.approved { background: #e3f6ea; color: var(--ok); border-color: #bfe9cf; }
.pill.changes_requested { background: #fbf1da; color: var(--gold); border-color: #eedcb3; }
.pill.rejected { background: #fbe3e6; color: var(--danger); border-color: #f3c4cb; }
.access-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-weight: 600; cursor: pointer; }
.access-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.access-row input:disabled + span { opacity: .45; }
.login-prev { width: 200px; height: 130px; border-radius: 14px; overflow: hidden; background: #1c1814 center/cover; border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: #8a8276; font-size: 12px; }
.login-prev video, .login-prev img { width: 100%; height: 100%; object-fit: cover; }
.tag { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 12px; color: var(--muted); }

/* Buttons */
.btn { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: .15s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border: none; color: #fff; }
.btn.primary:hover { filter: brightness(1.15); }
.btn.go { background: var(--ok); border: none; color: #fff; }
.btn.del { color: #c0392b; border-color: rgba(192,57,43,.35); }
.btn.del:hover { background: rgba(192,57,43,.1); border-color: #c0392b; }
/* Game picker (assign games — with logos) */
.gpick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.gpick-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; min-width: 0; }
.gpick-row:hover { background: var(--card-2); }
.gpick-row.on { background: rgba(43, 43, 255, .08); }
.gpick-row input { width: 16px; height: 16px; flex: none; accent-color: var(--accent-2); margin: 0; }
.st-gfilters { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.st-gfilters .gf-pill { padding: 4px 11px; font-size: 12px; }
.gpick-logo { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; flex: none; }
.gpick-emoji { width: 26px; text-align: center; flex: none; font-size: 18px; }
.gpick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .gpick-grid { grid-template-columns: 1fr; } }
/* Admin Users (Organizations + Voodoo) */
.usr-org { margin-bottom: 22px; }
.usr-org-head { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 6px 0 10px; flex-wrap: wrap; }
.usr-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1f9d57; vertical-align: middle; }
.usr-name { display: flex; align-items: center; gap: 10px; }
.usr-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.usr-ava.letter { display: flex; align-items: center; justify-content: center; background: var(--accent-2); color: #fff; font-size: 12px; font-weight: 800; }
.usr-games { cursor: pointer; }
.usr-games:hover { opacity: .82; }
.usr-count { opacity: .55; font-weight: 700; }
.ac-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.ac-row input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; }
.ac-row .ac-x { flex: none; }
.st-sel { margin: 4px 0 10px; }
.st-sel-x { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 900; padding: 0 0 0 3px; line-height: 1; }
.st-sel-x:hover { color: var(--danger, #d23b3b); }
.vm-pr { border-left: 1px solid var(--line); }
.vm-table th, .vm-table td { padding: 11px 10px; vertical-align: middle; }
/* Vendors Management top-right filters (game / status / skill). */
.vm-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vm-filter { width: 150px; height: 36px; box-sizing: border-box; font-size: 12.5px; font-weight: 700; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--accent); cursor: pointer; }
.vm-filter:hover { border-color: var(--accent-2); }
/* Vendors header: filters + search on one aligned row, same height + pill style. */
#tab-vendors .bench-head-right { gap: 8px; align-items: center; }
#tab-vendors .ai-search { height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 0 12px; margin: 0; max-width: none; }
#tab-vendors .ai-search:focus-within { border-color: var(--accent-2); }
#tab-vendors .ai-search input { border: none; background: transparent; outline: none; font-size: 12.5px; width: 150px; color: var(--accent); font-family: inherit; }
#tab-vendors .ai-search .ai-mag { color: var(--muted); flex: none; opacity: .7; }
/* Last-7-days spend tag on the Budget Management game cell. */
.bud-7d { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--card-2); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.vm-table th.vm-pr, .vm-table td.vm-pr { padding-left: 14px; }
.vm-pin { width: 100%; min-width: 0; box-sizing: border-box; padding: 7px 6px; text-align: center; }
.usr-table { table-layout: fixed; width: 100%; }
.usr-table td, .usr-table th { vertical-align: middle; }
.usr-table .usr-name { min-width: 0; }
.usr-table .usr-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usr-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usr-cc { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--card-2); border-radius: 999px; padding: 2px 9px; }
.usr-status { border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; font-size: 12px; font-weight: 800; cursor: pointer; background: var(--card); max-width: 100%; }
.usr-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.usr-skill { font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(99,102,241,.12); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
/* Editable org-skill dropdown in Vendors Management (collapsed summary → multi-check). */
.vm-skilldd summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 5px 26px 5px 10px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--card); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.vm-skilldd summary::-webkit-details-marker { display: none; }
.vm-skilldd summary::after { content: "▾"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 10px; }
.vm-skilldd summary:hover { border-color: var(--muted); }
.vm-skilldd summary.has { color: var(--accent); }
.vm-skilldd[open] summary::after { content: "▴"; }
.vm-skilldd-menu { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.vm-skill-opt { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 3px 5px; border-radius: 6px; cursor: pointer; }
.vm-skill-opt:hover { background: var(--card-2); }
.vm-skill-opt input { accent-color: var(--accent-2); margin: 0; width: auto; flex: none; }
/* Analytics dashboard */
.ana-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 14px 16px; }
.ana-card-h { font-size: 13px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ana-card-sub { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ana-chart { width: 100%; height: 120px; display: block; }
.ana-empty { color: var(--muted); font-size: 12.5px; padding: 24px 0; text-align: center; }
.ana-hbars { display: flex; flex-direction: column; gap: 8px; }
.ana-hbar { display: flex; align-items: center; gap: 10px; }
.ana-hbar-l { width: 120px; flex: none; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ana-hbar-track { flex: 1; height: 18px; background: var(--card-2); border-radius: 6px; overflow: hidden; }
.ana-hbar-fill { height: 100%; border-radius: 6px; min-width: 2px; }
.ana-hbar-v { width: 124px; text-align: right; font-size: 12.5px; font-weight: 800; flex: none; }
.ana-hbar-pct { color: var(--muted); font-weight: 700; font-size: 11px; margin-left: 3px; }
/* Analytics — multi-select filters, interactive charts, deltas */
.ana-filters { flex-wrap: wrap; align-items: center; }
.ana-filters .rcv-spacer { flex: 1 1 auto; }
.ana-chips { display: inline-flex; flex-wrap: wrap; gap: 7px; }
.ana-catchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .12s; }
.ana-catchip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cc, #888); opacity: .3; }
.ana-catchip.on { color: var(--text); border-color: var(--cc, #888); background: color-mix(in srgb, var(--cc, #888) 12%, var(--card)); }
.ana-catchip.on .ana-catchip-dot { opacity: 1; }
.ana-delta { font-size: 13px; font-weight: 800; margin-left: 9px; white-space: nowrap; vertical-align: middle; }
.ana-delta.up { color: #1ea672; }
.ana-delta.down { color: #e0483d; }
.ana-bigchart { position: relative; }
.ana-ymax { position: absolute; top: -2px; right: 0; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.ana-linewrap { position: relative; height: 190px; margin-top: 18px; }
.ana-linesvg { width: 100%; height: 100%; display: block; overflow: visible; }
.ana-cols-overlay { position: absolute; inset: 0; display: flex; gap: 0; }
.ana-col-line { flex: 1 1 0; height: 100%; min-width: 0; border-radius: 4px; }
.ana-col-line:hover { background: rgba(99, 102, 241, .08); }
.ana-plot { display: flex; align-items: flex-end; gap: 2px; height: 190px; padding-top: 18px; }
.ana-plot-tall { height: 230px; }
.ana-col { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; border-radius: 4px 4px 0 0; }
.ana-col:hover { background: rgba(99, 102, 241, .07); }
.ana-bar { width: 60%; max-width: 46px; margin: 0 auto; border-radius: 4px 4px 0 0; min-height: 1px; }
.ana-bargroup { display: flex; align-items: flex-end; justify-content: center; gap: 1.5px; height: 100%; width: 100%; }
.ana-gcol { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.ana-gbar { width: 100%; max-width: 13px; border-radius: 2px 2px 0 0; min-height: 1px; }
.ana-gbar-lbl { font-size: 8.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.ana-xaxis { display: flex; gap: 2px; margin-top: 7px; }
.ana-xt { flex: 1 1 0; min-width: 0; font-size: 10px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.ana-tip { position: absolute; z-index: 30; pointer-events: none; background: #1f2330; color: #fff; border-radius: 9px; padding: 8px 10px; font-size: 11.5px; font-weight: 600; line-height: 1.55; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); min-width: 96px; }
.ana-tip.hide { display: none; }
.ana-tip b { font-weight: 800; }
.ana-tip-big { font-size: 14px; font-weight: 800; margin-top: 2px; }
.ana-tip-row { display: flex; align-items: center; gap: 6px; }
.ana-tip-row b { margin-left: auto; padding-left: 10px; }
.ana-tip-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ana-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.ana-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ana-leg-dot { width: 11px; height: 11px; border-radius: 3px; }
.ana-catpill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: var(--cc, #888); white-space: nowrap; }
.ana-num { text-align: right; white-space: nowrap; }
.ana-sortable { cursor: pointer; user-select: none; }
.ana-sortable:hover { color: var(--accent); }
.ana-sort-ind { font-size: 9px; opacity: .8; }
.ana-gamesel { min-width: 220px; max-width: 320px; }
.ana-gran { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.ana-gran-btn { border: none; background: var(--card); color: var(--muted); font-size: 11.5px; font-weight: 800; padding: 3px 12px; cursor: pointer; line-height: 1.7; }
.ana-gran-btn.on { background: var(--accent); color: #fff; }
.ana-gran-btn:not(.on):hover { color: var(--text); }
.ana-gtitle { font-size: 19px; font-weight: 900; margin: 2px 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ana-gtitle .gt-glogo { width: 38px; height: 38px; border-radius: 10px; }
.ana-grow { cursor: pointer; }
.ana-grow:hover { background: rgba(99, 102, 241, .07); }
.usr-status.st-active { color: #1f8a4e; border-color: rgba(31,138,78,.4); background: rgba(31,157,87,.09); }
.usr-status.st-pause { color: #b97400; border-color: rgba(185,116,0,.4); background: rgba(245,166,35,.12); }
.usr-status.st-trial { color: var(--accent-2); border-color: rgba(43,43,255,.35); background: rgba(43,43,255,.08); }
.usr-status.st-drop { color: #c0392b; border-color: rgba(192,57,43,.4); background: rgba(192,57,43,.09); }
.btn.blue { background: var(--accent-2); color: #fff; border: none; }
.btn.blue:hover { filter: brightness(1.08); }
.btn.dark { background: #15161a; color: #fff; border: none; }
.btn.dark:hover { filter: brightness(1.5); }
/* Support tickets */
.sup-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sup-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.sup-card:hover { border-color: var(--accent-2); box-shadow: 0 3px 12px rgba(40,30,10,.07); }
.sup-card-main { min-width: 0; flex: 1; }
.sup-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sup-cat { font-size: 12px; font-weight: 700; color: var(--muted); }
.sup-subj { font-size: 15px; font-weight: 800; margin: 6px 0 3px; }
.sup-last { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 560px; }
.sup-card-meta { font-size: 11.5px; white-space: nowrap; }
.sup-st { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.sup-st.open { background: rgba(43,43,255,.12); color: var(--accent-2); }
.sup-st.prog { background: rgba(245,166,35,.16); color: #9a6800; }
.sup-st.done { background: rgba(31,138,78,.14); color: #1f8a4e; }
.sup-thread { display: flex; flex-direction: column; gap: 10px; max-height: min(54vh, 520px); overflow-y: auto; padding: 4px 2px; }
.ext-type { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ext-type.ai { background: rgba(43,43,255,.12); color: var(--accent-2); }
.ext-type.ext { background: rgba(0,0,0,.07); color: var(--accent); }
.btn.vgp { background: var(--accent-2); border: none; color: #fff; }
.btn.vgp:hover { filter: brightness(1.08); }
.btn.warn { background: #fbf1da; border-color: var(--gold); color: var(--gold); }
.btn.danger { background: #fbe3e6; border-color: var(--danger); color: var(--danger); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Inputs */
input, select, textarea {
  font-family: inherit; background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 11px 13px; border-radius: 10px; font-size: 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.field { margin-bottom: 14px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(26,23,20,.45); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; z-index: 100; overflow-y: auto; padding: 40px 16px; }
.modal-bg.open { display: flex; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(40,30,10,.25); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal header h3 { margin: 0; font-size: 18px; }
.modal .body { padding: 20px; }
.x { background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }

/* ---- Lightbox (benchmark + creatives) ---- */
.modal-bg.lb { background: rgba(8,6,12,.82); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 24px; }
.lb .lb-stage { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 22px; max-width: min(1000px, 96vw); width: 100%; }
.lb .lb-main { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 1 410px; max-width: min(410px, 92vw); width: 100%; }
.lb .lb-brief { flex: 0 1 510px; width: 510px; max-width: 92vw; background: var(--card); color: var(--accent); border-radius: 18px; padding: 22px 24px; max-height: 84vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); text-align: left; }
.lb-brief-h { font-weight: 900; font-size: 17px; }
.lb-brief-sub { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.lb-brief-l { display: block; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 12px 0 5px; }
.lb-brief-game { display: flex; align-items: center; gap: 9px; }
.lb-brief-game select { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-weight: 700; background: var(--card); color: var(--accent); cursor: pointer; }
.lb-brief-game-logo img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: block; }
/* Custom game picker with per-option logos. */
.lb-gamedd { position: relative; }
.lb-gamedd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; font-weight: 700; color: var(--accent); }
.lb-gamedd > summary::-webkit-details-marker { display: none; }
.lb-gamedd > summary::after { content: "▾"; margin-left: auto; color: var(--muted); font-weight: 400; }
.lb-gamedd-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 4px; }
.lb-gamedd-opt { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: none; background: none; padding: 7px 9px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--accent); }
.lb-gamedd-opt:hover { background: var(--card-2); }
.lb-gamedd-logo { width: 24px; height: 24px; border-radius: 6px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 15px; background: var(--bg); }
.lb-gamedd-logo img { width: 100%; height: 100%; object-fit: cover; }
.cs-tag-ava-i { background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.lb-brief textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: inherit; resize: vertical; }
.lb-brief-assign { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; max-height: 200px; overflow-y: auto; }
.lb-assign-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; padding: 5px 7px; border-radius: 9px; min-width: 0; }
.lb-assign-item:hover { background: var(--card-2); }
.lb-assign-item input { width: 16px; height: 16px; flex: none; margin: 0; }
.lb-assign-item .cs-tag-ava { width: 24px; height: 24px; }
.lb-assign-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-assign-role { margin-left: auto; font-size: 12px; opacity: .8; flex: none; }
/* Build-a-brief: "what to adapt" checklist + mockups + actions */
.lb-brief-targets { display: flex; flex-direction: column; gap: 8px; }
.lb-target { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; cursor: pointer; }
.lb-target input { width: 17px; height: 17px; flex: none; }
.lb-brief-mocks { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-brief-mocks:empty { display: none; }
.lb-mock { position: relative; width: 100px; height: 100px; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); cursor: pointer; }
.lb-mock img, .lb-mock video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-mock-prog { flex-basis: 100%; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 2px; }
.cs-mock-prog-bar { height: 100%; background: var(--accent-2); border-radius: 999px; transition: width .25s ease; }
.cs-mock-uplabel { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--accent-2); margin: 4px 0 2px; }
.lb-mock-load { display: flex; align-items: center; justify-content: center; background: var(--card-2); cursor: default; }
.cs-mock-spin { width: 24px; height: 24px; border: 3px solid var(--line); border-top-color: var(--accent-2); border-radius: 50%; animation: cs-spin .8s linear infinite; }
@keyframes cs-spin { to { transform: rotate(360deg); } }
.cm-dur { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; flex-wrap: wrap; }
.cm-dur-btn { padding: 4px 12px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cm-dur-btn.on { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.lb-mock-x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }
.lb-mock-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 14px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.lb-mock-add:hover { border-color: var(--accent-2); }
.lb-mock-add input { display: none; }
.lb-brief-actions { display: flex; gap: 8px; margin-top: 14px; }
.lb-brief-actions .btn { flex: 1; }
/* My concepts (creator-built briefs grouped by status) */
.mc-group-h { font-weight: 900; font-size: 14px; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.mc-count { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--card-2); border-radius: 99px; padding: 1px 9px; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.mc-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.mc-vid { width: 86px; flex: none; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: #000; }
.mc-vid video, .mc-vid > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mc-game { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.mc-game img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.mc-row { font-size: 12.5px; line-height: 1.45; }
.mc-row b { font-weight: 800; }
.mc-tag { display: inline-block; font-size: 11px; font-weight: 700; background: var(--card-2); border-radius: 99px; padding: 1px 8px; margin: 1px 0; }
.mc-mocks { display: flex; flex-wrap: wrap; gap: 5px; }
.mc-mocks img, .mc-mocks video { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; background: #000; }
.mc-card { cursor: pointer; transition: border-color .12s; }
.mc-card:hover { border-color: var(--accent-2); }
/* Card meta: stats row, assignees, date, move arrows */
.mc-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 1px; }
.mc-stat { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.mc-stat-prod { color: var(--accent); font-weight: 800; }
.mc-price { color: #8a6d00; font-weight: 900; background: rgba(245, 200, 66, .2); border-radius: 999px; padding: 0 8px; }
.cm2-price { font-weight: 900; font-size: 15px; color: #8a6d00; }
.cm2-done-lock { font-weight: 900; font-size: 14px; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.cm2-lock-hint { font-size: 11px; font-weight: 700; color: var(--muted); }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.mc-asg { display: flex; align-items: center; }
.mc-asg-av { width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; margin-right: -6px; border: 2px solid var(--card); }
.mc-asg-more { font-size: 10.5px; font-weight: 800; color: var(--muted); margin-left: 10px; }
.mc-asg-none { font-size: 11.5px; color: var(--muted); }
.mc-date { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
/* My concepts — Kanban view */
.mc-kanban { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; align-items: stretch; overflow-x: auto; padding-bottom: 8px; }
.mc-col { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 140px; display: flex; flex-direction: column; transition: background .12s, border-color .12s; }
.mc-col.drop-hot { border-color: var(--accent); background: rgba(43,43,255,.07); }
.mc-col.drop-hot .mc-col-empty { color: var(--accent); border-color: var(--accent); }
.mc-col-h { font-weight: 900; font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.mc-col-body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 120px; }
.mc-col-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 16px 8px; border: 1.5px dashed var(--line); border-radius: 10px; flex: 1 1 auto; display: grid; place-items: center; }
.mc-col .mc-card { flex-direction: column; cursor: grab; }
.mc-col .mc-card:active { cursor: grabbing; }
.mc-col .mc-vid { width: 100%; aspect-ratio: 9/16; }
/* Concept detail modal */
.cm-modal { max-width: 760px; width: 94vw; }
.cm-top { display: flex; gap: 16px; }
.cm-ref { width: 150px; flex: none; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #000; }
.cm-ref video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cm-status { margin-top: auto; padding-top: 8px; }
.cm-target { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font-weight: 700; font-size: 14px; flex-wrap: wrap; }
.cm-target input { width: 84px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 800; }
.cm-drop { border: 2px dashed var(--line); border-radius: 14px; padding: 24px; text-align: center; cursor: pointer; transition: all .12s; }
.cm-drop:hover, .cm-drop.over { border-color: var(--accent-2); background: var(--card-2); }
.cm-msg { font-size: 12.5px; margin-top: 8px; min-height: 16px; }
.cm-err { color: #c0392b; font-weight: 700; }
.cm-ok { color: #1ea672; font-weight: 700; }
.cm-prod-h { font-weight: 800; font-size: 13px; margin: 16px 0 8px; }
.cm-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, 104px); gap: 12px; margin-top: 14px; }
.cm-prod { display: flex; flex-direction: column; gap: 5px; }
.cm-prod-vid { position: relative; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: #000; }
.cm-prod-vid video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.cm-prod-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; display: grid; place-items: center; }
.cm-prod-x:hover { background: rgba(220,40,40,.92); }
.cm-prod-cap { display: flex; flex-direction: column; line-height: 1.25; }
.cm-prod-name { font-size: 11.5px; font-weight: 800; }
.cm-prod-when { font-size: 10px; color: var(--muted); }
/* Upload progress (WIP / Final video uploads) */
.cm-uploads { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.cm-uploads:empty { display: none; }
.cm-upload { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; }
.cm-upload.err { border-color: var(--danger); background: rgba(229,72,77,.06); }
.cm-upload-spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: cmspin .7s linear infinite; flex: none; }
.cm-upload-x { font-size: 15px; flex: none; }
@keyframes cmspin { to { transform: rotate(360deg); } }
.cm-upload-info { flex: 1; min-width: 0; }
.cm-upload-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-upload-pct { color: var(--muted); font-weight: 800; }
.cm-upload-bar { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.cm-upload-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width .15s; }
.cm-upload.err .cm-upload-fill { background: var(--danger); }
.cm-upload-errtext { font-size: 11px; color: var(--danger); margin-top: 3px; }
@media (max-width: 820px) { .mc-kanban { grid-template-columns: 1fr; } .cm-top { flex-direction: column; } .cm-ref { width: 120px; } }
/* Concept modal — 2-column ClickUp-style (media+details left, comments right) */
#conceptModal .modal { max-width: 1240px; width: 97vw; }
/* Concept modal v2 — big ClickUp-style task view */
.cm2 { display: flex; flex-direction: column; }
.cm2-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cm2-title { font-size: 20px; font-weight: 900; flex: 1; min-width: 0; }
.cm2-title-in { width: 100%; font-size: 19px; font-weight: 900; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.cm2-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cm2-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 0 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cm2-mrow { display: flex; align-items: center; gap: 8px; }
.cm2-lbl { flex: none; font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.cm2-game { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.cm2-game img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.cm2-sel { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-weight: 700; max-width: 320px; }
.cm2-asg-wrap { min-width: 0; }
.cm2-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; align-items: start; }
.cm2-left { min-width: 0; max-height: 72vh; overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 18px; }
.cm2-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; max-height: 72vh; overflow-y: auto; border-left: 1px solid var(--line); padding-left: 18px; padding-right: 6px; }
.cm2-side > .cm2-sec { flex-shrink: 0; }
.cm2-sec-h { font-size: 16px; font-weight: 900; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.cm2-text { font-size: 14px; line-height: 1.55; white-space: normal; }
/* Formatted brief fields: paragraphs, hanging bullets, clickable links. */
.cm2-p { margin: 0 0 7px; }
.cm2-li { position: relative; margin: 0 0 4px; padding-left: 1.25em; }
.cm2-li::before { content: "•"; position: absolute; left: .25em; color: var(--muted); }
.cm2-text .cm2-p:last-child, .cm2-text .cm2-li:last-child, .cs-cm-txt .cm2-p:last-child, .cs-cm-txt .cm2-li:last-child { margin-bottom: 0; }
.cm2-link { color: var(--accent-2); text-decoration: underline; word-break: break-word; }
.cm2-ta { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; resize: vertical; }
.cm2-add { margin-left: auto; font-size: 12px; font-weight: 800; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 3px 9px; cursor: pointer; }
.cm2-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; border: 1px dashed transparent; border-radius: 12px; }
.cm2-refs.over { border-color: var(--accent-2); background: var(--card-2); }
.cm2-ref { position: relative; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: #000; }
.cm2-ref video, .cm2-ref img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.cm2-ref-full { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 6px; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 11px; }
.cm2-ref-x { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 10px; }
.cm2-ref-tag { position: absolute; bottom: 4px; left: 4px; font-size: 8.5px; font-weight: 800; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 1px 6px; }
.cm2-ref-num { position: absolute; bottom: 4px; left: 4px; font-size: 9.5px; font-weight: 800; background: rgba(0,0,0,.62); color: #fff; border-radius: 999px; padding: 2px 8px; }
img.mc-asg-av { object-fit: cover; }
.cm2-grow { display: flex; flex-direction: column; }
.cm-drop.sm { padding: 14px; border-radius: 12px; }
.mc-vid-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--card-2), var(--card)); font-size: 30px; }
.mc-vid-ph img { width: 62%; height: 62%; object-fit: cover; border-radius: 12px; }
.cm2-status { font-weight: 800; cursor: pointer; }
@media (max-width: 860px) { .cm2-body { grid-template-columns: 1fr; } .cm2-side { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; max-height: none; } .cm2-left { max-height: none; overflow: visible; } }
.cm-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.cm-left { min-width: 0; max-height: 76vh; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 10px; }
.cm-side { min-width: 0; display: flex; flex-direction: column; max-height: 76vh; border-left: 1px solid var(--line); padding-left: 16px; }
/* Carousel */
.cm-car-big { position: relative; aspect-ratio: 9/16; max-height: 46vh; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; }
.cm-car-big video, .cm-car-big img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cm-car-tag { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 3px 9px; }
.cm-car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; cursor: pointer; z-index: 2; }
.cm-car-nav.prev { left: 6px; } .cm-car-nav.next { right: 6px; }
.cm-car-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; }
.cm-th { position: relative; flex: none; width: 46px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #000; cursor: pointer; padding: 0; }
.cm-th.on { border-color: var(--accent); }
.cm-th video, .cm-th img { width: 100%; height: 100%; object-fit: cover; }
.cm-th-tag { position: absolute; bottom: 0; left: 0; right: 0; font-size: 7px; font-weight: 800; background: rgba(0,0,0,.6); color: #fff; text-align: center; }
.cm-game { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.cm-game img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
/* Assignees */
.cm-asg-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-asg-lbl { font-size: 12px; font-weight: 800; color: var(--muted); }
.cm-asg { display: inline-flex; align-items: center; gap: 5px; background: var(--card-2); border-radius: 999px; padding: 2px 6px 2px 2px; font-size: 12px; font-weight: 700; }
.cm-asg button { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 10px; }
.cm-asg-av { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.cm-asg-add { width: 24px; height: 24px; border-radius: 50%; border: 1px dashed var(--line); background: var(--card); cursor: pointer; font-weight: 800; color: var(--muted); }
.cm-asg-pick { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; max-height: 200px; overflow-y: auto; }
.cm-asg-opt { display: flex; align-items: center; gap: 8px; border: none; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; text-align: left; }
.cm-asg-opt:hover { background: var(--card-2); }
.cm-asg-opt.on { color: var(--accent); font-weight: 800; }
/* Deliverables box + actions + edit */
.cm-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card-2); }
.cm-box-h { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 6px; }
.cm-deliv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 13.5px; }
.cm-deliv input { width: 70px; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-weight: 800; }
.cm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-edit select, .cm-edit textarea { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; }
/* Comments */
.cm-cmts-h { font-weight: 900; font-size: 14px; margin-bottom: 8px; }
.cm-cmts-list { display: flex; flex-direction: column; gap: 12px; padding-right: 4px; min-height: 60px; }
.cmc-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.cmc-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.cmc-ava.letter { display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; }
.cmc-time { color: var(--muted); font-size: 11px; margin-left: auto; }
.cmc-body { font-size: 13.5px; line-height: 1.45; margin: 4px 0 0 31px; }
.cm-cmts-att { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-cmts-box { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.cm-cmts-box textarea { flex: 1; resize: none; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; }
/* Concept modal header actions (next to the ×) */
.cm-head-right { display: flex; align-items: center; gap: 10px; }
.cm-head-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* Comments: chat-style grouping + reactions + emoji picker */
.cmc.grouped { margin-top: -8px; }
.cmc.grouped .cmc-body { margin-top: 0; }
.cmc-rx { margin-left: 31px; margin-top: 2px; }
.cmc-foot { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cmc-act { border: none; background: transparent; cursor: pointer; font-size: 12px; opacity: 0; transition: opacity .12s; padding: 0 3px; }
.cmc:hover .cmc-act { opacity: .6; }
.cmc-act:hover { opacity: 1; }
.cmc-edit { margin: 4px 0 0 31px; display: flex; flex-direction: column; gap: 6px; }
.cmc-edit .ct-edit-ta { min-height: 48px; }
.cmc-emoji-wrap { position: relative; display: inline-flex; }
.cmc-emoji-wrap .rx-bar { width: 244px; }
@media (max-width: 820px) { .cm-layout { grid-template-columns: 1fr; } .cm-side { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 12px; max-height: none; } .cm-left { max-height: none; overflow: visible; } }
.mc-fb { background: var(--card-2); border-radius: 10px; padding: 8px 10px; margin-top: 2px; }
.mc-fb-h { font-size: 11px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.mc-fb-item { font-size: 12.5px; line-height: 1.45; }
.mc-actions { margin-top: auto; padding-top: 6px; }
.lb .lb-media { width: 100%; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); aspect-ratio: 9/16; max-height: 78vh; }
.lb .lb-media video, .lb .lb-media img { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.lb .lb-caption { text-align: center; color: #fff; }
.lb .lb-cap-main { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lb .lb-cap-title { font-weight: 800; font-size: 16px; }
.lb .lb-cap-game { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.16); padding: 3px 10px; border-radius: 99px; }
.lb .lb-count { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); }
.lb .lb-tags { margin-top: 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); }
.lb .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s; z-index: 2; }
.lb .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb .lb-nav:active { transform: translateY(-50%) scale(.92); }
.lb .lb-prev { left: max(20px, 4vw); }
.lb .lb-next { right: max(20px, 4vw); }
.lb .lb-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; z-index: 2; }
.lb .lb-close:hover { background: rgba(255,255,255,.28); }
@media (max-width: 560px) {
  .lb .lb-nav { width: 46px; height: 46px; font-size: 26px; }
  .lb .lb-prev { left: 8px; }
  .lb .lb-next { right: 8px; }
}

/* Dropzone */
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 30px; text-align: center; color: var(--muted); transition: .15s; cursor: pointer; }
.drop.hover { border-color: var(--accent); background: var(--card-2); color: var(--text); }

/* Submission list */
.sub-item { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
.sub-item video, .sub-item .thumb { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: #000; flex: none; }
.sub-item .meta { flex: 1; min-width: 0; }
.sub-item .meta .t { font-weight: 700; }
.sub-item .meta .s { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* Conversation */
.chat { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg .who2 { font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.msg.vendor { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.admin { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }

/* Leaderboard */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 28px; font-weight: 800; color: var(--muted); }
.lb-row.me { background: var(--card-2); border-radius: 10px; padding-left: 8px; }
.lb-name { flex: 1; font-weight: 700; }
.lb-earn { font-weight: 800; color: var(--gold); }

/* Toast */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,1.4,.4,1); z-index: 200; font-weight: 600; }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.ok { background: var(--ok); border-color: var(--ok); }
#toast.err { background: var(--danger); border-color: var(--danger); }

/* Login gate */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate .card { max-width: 420px; width: 100%; text-align: center; }
.gate .big { font-size: 26px; font-weight: 900; margin: 6px 0; }
.hide { display: none !important; }
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* Admin table */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tr:hover td { background: var(--card-2); }
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filterbar select, .filterbar input { width: auto; min-width: 150px; }

/* small cover preview in admin */
.cover-prev { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }

/* ---- Landing page -------------------------------------------------------- */
.gate.landing { place-items: center; }
.landing-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; max-width: 1080px; width: 100%; }
.landing-hero .brand { margin-bottom: 22px; }
.landing-title { font-size: 46px; line-height: 1.05; font-weight: 900; letter-spacing: -1.2px; margin: 0; }
.landing-title .grad { background: linear-gradient(90deg, var(--accent-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-sub { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 18px 0 26px; max-width: 520px; }
.landing-feats { display: flex; flex-direction: column; gap: 14px; }
.feat { display: flex; align-items: center; gap: 14px; }
.feat .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 21px; flex: none; box-shadow: var(--shadow); }
.feat strong { display: block; font-size: 15px; }
.feat span { color: var(--muted); font-size: 13px; }
.landing-login { max-width: none; width: 100%; text-align: center; }
@media (max-width: 860px) {
  .landing-inner { grid-template-columns: 1fr; gap: 30px; }
  .landing-title { font-size: 34px; }
}

/* ---- Centered sign-in (Sunday-style) ------------------------------------- */
.login-page { min-height: 100vh; background: #191919; display: grid; place-items: center; padding: 24px; position: relative; }
.login-card { background: #fff; border-radius: 18px; padding: 48px 44px 40px; width: 100%; max-width: 460px; box-shadow: 0 24px 70px rgba(0,0,0,.5); text-align: center; }
.login-logo { font-family: 'Arial Rounded MT Bold', 'Varela Round', 'Quicksand', 'Trebuchet MS', system-ui, sans-serif; font-size: 36px; font-weight: 800; letter-spacing: -.5px; color: #15161a; margin-bottom: 26px; }
.login-welcome { font-size: 30px; font-weight: 800; color: #1a1a1a; margin: 0 0 12px; letter-spacing: -.5px; }
.login-sub { font-size: 15px; line-height: 1.5; color: #6a6a72; margin: 0 0 28px; }
.lf { text-align: left; margin-bottom: 16px; }
.lf label { display: block; font-size: 13px; font-weight: 600; color: #4a4a52; margin-bottom: 6px; }
.lf input { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1.5px solid #d6d6e4; border-radius: 10px; font-size: 15px; color: #15161a; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lf input::placeholder { color: #aaa; }
.lf input:focus { outline: none; border-color: #5b5bf0; box-shadow: 0 0 0 3px rgba(91,91,240,.16); }
.login-signin { width: 100%; margin-top: 10px; padding: 15px; border-radius: 10px; font-size: 16px; font-weight: 800; color: #fff; border: none; background: #2b2bff; }
.login-signin:hover { filter: brightness(1.07); }
.login-landing { display: block; margin-top: 14px; padding: 13px; border-radius: 10px; font-size: 14.5px; font-weight: 800; color: #2b2bff; background: #f0f0ff; border: 1px solid #d9d9ff; transition: background .15s, transform .15s; }
.login-landing:hover { background: #e6e6ff; transform: translateY(-1px); }
.login-corner { position: absolute; left: 28px; bottom: 24px; max-width: 320px; }
.login-corner-title { color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -.2px; }
.login-corner-txt { color: #8a8a8a; font-size: 12px; line-height: 1.5; margin-top: 4px; }
@media (max-width: 640px) {
  .login-card { padding: 36px 26px 30px; }
  .login-corner { position: static; margin: 22px auto 0; text-align: center; }
}

/* ---- "Creatives to beat" gallery (game view) ----------------------------- */
.gv-creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gv-creative { position: relative; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.gv-creative:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.gv-creative video, .gv-creative img { width: 100%; height: 100%; object-fit: cover; }
.gv-creative-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.gv-more-wrap { display: flex; justify-content: center; margin: 14px 0 4px; }
.gv-creative-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 9px; color: #fff; font-size: 12px; font-weight: 800; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); }

/* ============ GALLERY OVERHAUL ============ */
/* KPI chips — per-status counts, clickable filters */
.kpi-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.kpi-chip { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 86px; transition: .15s; box-shadow: var(--shadow); }
.kpi-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.kpi-chip.on { border-color: var(--accent); background: var(--accent); }
.kpi-chip.on .kpi-n, .kpi-chip.on .kpi-l { color: #fff; }
.kpi-n { font-size: 24px; font-weight: 900; line-height: 1; }
.kpi-l { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.kpi-chip.k-passed_testing .kpi-n, .kpi-chip.k-passed_3k .kpi-n, .kpi-chip.k-top_spender .kpi-n { color: var(--ok); }
.kpi-chip.k-not_performing .kpi-n { color: var(--danger); }
.kpi-chip.on .kpi-n { color: #fff; }

.gallery-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.gt-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.gt-filters select { padding: 9px 12px; font-size: 13px; }
.gt-source { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.src-tag { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 800; cursor: pointer; color: var(--text); transition: all .12s; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.src-tag:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.src-tag.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.src-tag.voodoo.on { background: #8a6d00; border-color: #8a6d00; }
.gt-view { display: flex; gap: 4px; margin-left: auto; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.vt { background: transparent; border: none; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; }
.vt.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* bigger grid cards */
.sub-gallery.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.sub-gallery.list { display: flex; flex-direction: column; gap: 12px; }

.sub-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; box-shadow: var(--shadow); }
.sub-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(40,30,10,.16); border-color: var(--accent); }
.sc-media { position: relative; aspect-ratio: 9/16; background: #000; overflow: hidden; }
.sc-media video, .sc-media img { width: 100%; height: 100%; object-fit: cover; }
.sc-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.3)); pointer-events: none; opacity: .9; }
.sc-pill { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12.5px; padding: 5px 12px; }
.sc-ai { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(17,17,17,.82); color: #fff; border-radius: 99px; padding: 5px 10px; font-size: 11.5px; font-weight: 800; }
.sc-body { padding: 14px 16px; }
.sc-title { font-weight: 800; font-size: 15.5px; }
.sc-name { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--accent-2); margin-top: 3px; word-break: break-all; }
.sc-brief { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.sc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; gap: 8px; }
.sc-date { color: var(--muted); font-size: 13px; font-weight: 700; }
.sc-money { font-weight: 900; font-size: 15px; }
.sc-money.earned { color: var(--ok); }
.sc-money.pot { color: var(--muted); }
.sc-money.fx { color: #8a6d00; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sc-tag { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sc-chat { font-size: 12.5px; color: var(--accent-2); font-weight: 700; margin-top: 10px; }
.sc-by { display: inline-block; vertical-align: middle; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-left: 4px; }

/* list variant — bigger preview, info filled, tags visible */
.sub-gallery.list .sub-card { display: flex; align-items: stretch; }
.sub-gallery.list .sc-media { width: 120px; aspect-ratio: 9/16; flex: none; }
.sub-gallery.list .sc-play { font-size: 26px; }
.sub-gallery.list .sc-pill { display: inline-flex; }
.sub-gallery.list .sc-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.sub-gallery.list .sc-row { margin-top: 8px; }
/* Compact, info-rich gallery list rows */
.sub-list { display: flex; flex-direction: column; gap: 8px; }
.sub-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px 8px 8px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.sub-row:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(40,30,10,.08); }
.sub-row.is-paid { border-color: #bfe9cf; background: linear-gradient(90deg, #eefaf1, var(--card) 45%); }
.sr-media { position: relative; width: 52px; height: 70px; flex: none; border-radius: 8px; overflow: hidden; background: #000; }
.sr-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 15px; opacity: .85; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
.sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sr-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sr-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; }
.sr-logo.emoji { display: grid; place-items: center; background: var(--card-2); font-size: 16px; }
.sr-titles { min-width: 0; }
.sr-game { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sr-name { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-date { font-family: inherit; }
.sr-src { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.sr-src.free { background: rgba(43,43,255,.1); color: var(--accent); }
.sr-src.voodoo { background: rgba(245,200,66,.22); color: #8a6d00; }
.sr-gates { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-gate { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.sr-gate.on { color: #1c7a44; background: #e3f6ea; border-color: #bfe9cf; }
.sr-right { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 92px; }
.sr-money { font-weight: 900; font-size: 15px; color: var(--muted); white-space: nowrap; }
.sr-money.paid { color: var(--ok); }
.sr-m-sub { font-size: 11px; font-weight: 700; color: var(--muted); }
.sr-money.paid .sr-m-sub { color: var(--ok); }
.sr-msgs { font-size: 11px; color: var(--muted); }
/* Same-concept videos grouped into one visual batch */
.sr-group { border: 1px solid var(--line); border-left: 4px solid var(--accent-2); border-radius: 14px; padding: 8px; background: var(--card-2); display: flex; flex-direction: column; gap: 8px; }
.sr-group.voodoo { border-left-color: #f0c020; background: linear-gradient(90deg, rgba(245,200,66,.09), var(--card-2) 42%); }
.sr-group-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; padding: 2px 6px; }
.sr-group-meta { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sr-group .sub-row { background: var(--card); }
@media (max-width: 640px) { .sr-gates { display: none; } .sr-right { min-width: 70px; } }

/* ============ DETAIL SPLIT MODAL ============ */
#detailModal.modal-bg { align-items: center; padding: 24px; }
#detailModal .modal { max-width: 1180px; width: 96vw; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
#detailModal .modal header { flex: 0 0 auto; }
#detailModal .modal .body { padding: 0; flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* align-items:flex-start so the black video panel hugs the clip (no bars) for any aspect ratio */
.detail-split { display: flex; align-items: flex-start; min-height: 0; }
/* the panel shrinks to the video's natural size; video capped by viewport so it can't overflow */
.detail-video { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #000; max-width: 56vw; }
.detail-video video { max-width: 56vw; max-height: calc(100vh - 130px); width: auto; height: auto; object-fit: contain; display: block; }
.dv-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.55); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; font-size: 24px; cursor: pointer; display: grid; place-items: center; transition: .15s; z-index: 2; }
.dv-nav:hover:not([disabled]) { background: rgba(0,0,0,.85); }
.dv-nav[disabled] { opacity: .3; cursor: default; }
.dv-nav.prev { left: 12px; }
.dv-nav.next { right: 12px; }
.dv-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.detail-side { flex: 1 1 auto; min-width: 0; padding: 24px 26px; overflow-y: auto; max-height: calc(100vh - 130px); }
.ds-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ds-pill { font-size: 15px; padding: 7px 16px; }
.ds-date { color: var(--muted); font-size: 15px; font-weight: 700; }
.ds-ai { margin: 14px 0 6px; }
.ds-brief { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-top: 14px; }
.ds-sec { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 22px 0 10px; }
.ds-opt { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8; }
.ds-expl-edit { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ds-expl-edit textarea { width: 100%; resize: vertical; }
.ds-note { background: rgba(43,43,255,.06); border-left: 3px solid var(--accent-2); padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.ds-danger { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Received gallery: 9:16 portrait cards */
.rcv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; padding: 4px 0; }
.rcv-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.rcv-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(40,30,10,.16); }
.rcv-card.to-review { box-shadow: inset 0 0 0 2px var(--warn); }
.rcv-card.to-review:hover { box-shadow: inset 0 0 0 2px var(--warn), 0 10px 24px rgba(40,30,10,.16); }
.rcv-vid { position: relative; aspect-ratio: 9 / 16; background: #000; }
.rcv-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Lazily-painted still-frame thumbnails (see admin.js poster generator). */
.rcv-thumb { width: 100%; height: 100%; background: #000 center / cover no-repeat; }
.rcv-vid .rcv-thumb { position: absolute; inset: 0; }
.rcv-thumb.thumb { border-radius: 6px; }
.rcv-thumb:not(.loaded) { animation: thumbpulse 1.1s ease-in-out infinite; }
@keyframes thumbpulse { 0%, 100% { background-color: #0b0b0b; } 50% { background-color: #1d1d1d; } }
.rcv-status { position: absolute; top: 8px; left: 8px; font-size: 11px; }
.rcv-chat { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.rcv-prio { position: absolute; bottom: 8px; right: 8px; font-size: 15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.rcv-vgp { position: absolute; bottom: 8px; left: 8px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.rcv-vgp.todo { background: #fff1e3; color: var(--warn); border: 1px solid #f3d6b0; }
.rcv-vgp.done { background: #e3f6ea; color: var(--ok); border: 1px solid #bfe9cf; }
.rcv-meta { padding: 9px 10px 10px; }
.rcv-game { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.rcv-game span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* game logo chip — image rounds, emoji falls back to a coloured square */
.game-logo { border-radius: 6px; object-fit: cover; flex: 0 0 auto; display: inline-grid; place-items: center; vertical-align: middle; }
.game-logo.emoji { border-radius: 6px; font-size: 13px; }
.game-cell { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.game-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-cell .rcv-vgp { position: static; }
#rTitle { display: flex; align-items: center; gap: 8px; }
/* VGP upload toggle in the review modal */
.vgp-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--card); }
.vgp-toggle.todo { background: #fff1e3; border-color: #f3d6b0; color: var(--warn); }
.vgp-toggle.done { background: #e3f6ea; border-color: #bfe9cf; color: var(--ok); }
.stat.vgp-clickable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.stat.vgp-clickable:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(40,30,10,.12); }
.stat.vgp-clickable.active { border-color: var(--warn); box-shadow: inset 0 0 0 2px var(--warn); }
.rcv-vendor { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.rcv-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 11px; }
.rcv-pay { font-weight: 800; color: var(--ok); }

/* Review modal: 3-pane layout — video left, controls middle, chat right */
#reviewModal.modal-bg { align-items: center; padding: 24px; }
#reviewModal .modal { max-width: 1320px; width: 97vw; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
#reviewModal .modal header { flex: 0 0 auto; }
#reviewModal .modal .body { padding: 0; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.rv-split { display: flex; align-items: stretch; min-height: 0; height: 100%; }
.rv-video { flex: 0 0 auto; background: #000; display: flex; align-items: center; justify-content: center; max-width: 40vw; }
.rv-video video { max-width: 40vw; max-height: calc(100vh - 130px); width: auto; height: auto; object-fit: contain; display: block; }
.rv-controls { flex: 1 1 auto; min-width: 0; padding: 16px 20px 20px; overflow-y: auto; max-height: calc(100vh - 130px); }
.rv-controls .field { margin-bottom: 14px; }
.rv-vmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rv-brief { background: rgba(108,92,255,.1); border: 1px solid rgba(108,92,255,.35); border-radius: 10px; padding: 9px 12px; margin-top: 10px; font-size: 13.5px; }
.rv-cnote { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-top: 8px; font-size: 13.5px; }
/* status buttons: tidy 2-col grid, label left-aligned with a numbered key */
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.status-grid .st-btn { display: flex; align-items: center; gap: 8px; justify-content: flex-start; text-align: left; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-payrow { display: flex; gap: 8px; align-items: center; }
.rv-payrow input { flex: 1 1 auto; min-width: 0; }
.rv-payrow .btn { flex: 0 0 auto; }
/* chat pinned to the right: header + scrolling log + input docked at the bottom */
.rv-chat { flex: 0 0 350px; width: 350px; display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 130px); border-left: 1px solid var(--line); background: var(--card-2); }
.rv-chat-head { flex: 0 0 auto; padding: 14px 18px; font-weight: 800; font-size: 15px; border-bottom: 1px solid var(--line); }
.rv-chat .chat { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 18px; }
.rv-chat .chat-input { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 12px 14px; background: var(--card); }
@media (max-width: 1100px) {
  #reviewModal .modal .body { overflow-y: auto; }
  .rv-split { flex-direction: column; align-items: stretch; }
  .rv-video, .rv-video video { max-width: 100%; max-height: 46vh; }
  .rv-controls { max-height: none; overflow: visible; }
  .rv-chat { flex: 1 1 auto; width: auto; max-height: 60vh; border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .status-grid { grid-template-columns: 1fr; } }

/* payout gates (renamed from .gate to avoid the login-gate .gate{min-height:100vh}) */
.pgates { display: flex; flex-direction: column; gap: 8px; }
.pgate { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pgate.on { background: #e3f6ea; border-color: #bfe9cf; }
.pgate.off { opacity: .6; }
.pgate-ico { font-size: 20px; width: 26px; text-align: center; }
.pgate-label { font-weight: 800; font-size: 14px; }
.pgate-amt { margin-left: auto; font-weight: 900; font-size: 16px; }
.pgate.on .pgate-amt { color: var(--ok); }
.pgate.off .pgate-amt { color: var(--muted); }
.pgate-fail { color: var(--danger); font-size: 12.5px; font-weight: 700; padding: 2px 2px; }
.pgate-total { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.pgate-total strong { font-size: 24px; color: var(--ok); }
/* Fixed-price (Voodoo brief) payout panel */
.fx-badge { font-size: 12px; font-weight: 900; color: #8a6d00; background: rgba(245,200,66,.18); border: 1px solid rgba(245,200,66,.5); border-radius: 999px; padding: 5px 11px; align-self: flex-start; }
.fx-line { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fx-note { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* comments: attachments + inline edit */
.msg-text { white-space: pre-wrap; }
.msg-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.msg-att { max-width: 160px; max-height: 200px; border-radius: 10px; cursor: pointer; display: block; }
.msg-edit { background: none; border: none; color: inherit; opacity: .7; font-size: 11px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0 0; }
.msg-edit-ta { width: 100%; resize: vertical; }
.msg-edit-row { display: flex; gap: 8px; margin-top: 6px; }
.chat-att { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.catt { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.catt-x { cursor: pointer; color: var(--muted); font-weight: 900; }
.catt-x:hover { color: var(--danger); }
.chat-input.drag { outline: 2px dashed var(--accent-2); outline-offset: 3px; border-radius: 10px; }
.chat-input .iconbtn { padding: 10px 12px; }
.chat-hint { color: var(--muted); font-size: 11.5px; margin-top: 6px; text-align: center; }
.btn.ghost { background: transparent; }

/* ============ NOTIFICATION CENTER ============ */
.notif-wrap { position: relative; }
.notif-bell { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 17px; cursor: pointer; display: grid; place-items: center; line-height: 1; transition: .15s; }
.notif-bell:hover { background: #fff; border-color: var(--accent); transform: translateY(-1px); }
.notif-badge { position: absolute; top: -3px; right: -3px; background: var(--danger); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.notif-panel { position: absolute; top: 38px; right: 0; width: 380px; max-height: 480px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 44px rgba(40,30,10,.2); z-index: 200; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 800; position: sticky; top: 0; background: var(--card); z-index: 1; }
.notif-item { position: relative; display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.notif-item:hover { background: var(--card-2); }
.notif-item.unread { background: rgba(43,43,255,.05); }
.notif-item.is-money { background: linear-gradient(90deg, rgba(31,157,87,.10), rgba(31,157,87,0)); }
.notif-item.is-money:hover { background: linear-gradient(90deg, rgba(31,157,87,.16), rgba(31,157,87,.02)); }
/* thumbnail */
.ni-thumb { position: relative; width: 54px; height: 70px; border-radius: 9px; overflow: hidden; flex: none; background: var(--card-2); border: 1px solid var(--line); }
.ni-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ni-thumb-ico { position: absolute; bottom: 3px; right: 3px; font-size: 12px; background: rgba(0,0,0,.55); border-radius: 6px; padding: 1px 4px; line-height: 1.2; }
.ni-thumb.fallback { display: grid; place-items: center; font-size: 24px; }
/* body */
.ni-body { flex: 1; min-width: 0; }
.ni-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.ni-name { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--accent-2); word-break: break-all; }
.ni-pill { font-size: 10.5px; padding: 2px 8px; }
.ni-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); }
.ni-tag.comment { background: #ececff; color: #4b4bd8; border-color: #d6d6fb; }
.ni-tag.note { background: #fbf1da; color: var(--gold); border-color: #eedcb3; }
.ni-text { font-size: 13px; line-height: 1.4; color: var(--text); }
.ni-money { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--ok); background: #e3f6ea; border: 1px solid #bfe9cf; border-radius: 9px; padding: 5px 10px; margin: 2px 0; }
.ni-time { color: var(--muted); font-size: 11px; margin-top: 4px; }
.ni-dot { position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex: none; }
.notif-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13px; }
/* Filters above the account history */
.notif-filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.notif-filters select { flex: 1; min-width: 120px; padding: 7px 10px; font-size: 12.5px; border-radius: 9px; }
/* Scrollable full history inside the My Account tab */
.notif-history { max-height: 460px; overflow-y: auto; margin: 0 -8px; border: 1px solid var(--line); border-radius: 12px; }
.notif-history .notif-item { padding: 12px 14px; }
.notif-history .notif-item:last-child { border-bottom: none; }

/* ============ ACCOUNT PROFILE / AVATAR ============ */
.account-profile { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 16px 22px; flex-wrap: wrap; }
.ap-id { display: flex; align-items: center; gap: 14px; }
.ap-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; cursor: pointer; border: 2px solid var(--line); flex: none; position: relative; transition: .15s; }
.ap-avatar:hover { border-color: var(--accent); }
.ap-avatar.initial { background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.ap-info { display: flex; flex-direction: column; gap: 2px; }
.ap-name { font-size: 20px; font-weight: 800; line-height: 1.1; }
.ap-company { font-size: 13px; font-weight: 700; color: var(--accent-2); margin-top: 1px; }
.ap-sub { color: var(--muted); font-size: 13px; }
.ap-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.ap-change { margin-top: 5px; background: transparent; border: none; color: var(--accent-2); font-weight: 700; font-size: 12.5px; padding: 0; cursor: pointer; align-self: flex-start; }
.ap-change:hover { text-decoration: underline; }
/* Right-side metrics — two distinct blocks */
.ap-blocks { display: flex; gap: 14px; flex-wrap: wrap; }
.ap-block { background: var(--card-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 14px; }
.ap-block-month { background: rgba(108,92,255,.06); border-color: rgba(108,92,255,.22); }
.ap-block-title { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 10px; padding-left: 6px; }
.ap-block-row { display: flex; align-items: stretch; }
.ap-metric { min-width: 100px; text-align: center; padding: 0 18px; display: flex; flex-direction: column; justify-content: center; }
.ap-block-row .ap-metric + .ap-metric { border-left: 1px solid var(--line); }
.ap-block-month .ap-block-row .ap-metric + .ap-metric { border-left-color: rgba(108,92,255,.2); }
.apm-val { font-size: 27px; font-weight: 900; line-height: 1; letter-spacing: -.7px; }
.apm-val.gold { color: var(--gold); }
.apm-lab { color: var(--muted); font-size: 11.5px; font-weight: 700; margin-top: 7px; white-space: nowrap; }
.apm-split { color: var(--muted); font-size: 10.5px; font-weight: 700; margin-top: 4px; white-space: nowrap; opacity: .85; }
.ap-edit { font-size: 12px; color: var(--accent-2); font-weight: 700; cursor: pointer; margin-top: 6px; display: inline-block; }

/* ============ AI HOOK CHECKBOX ============ */
.ai-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--text); margin: 14px 0; cursor: pointer; }
.ai-check input { width: 17px; height: 17px; accent-color: var(--accent-2); }

/* ============ ADMIN TEAM ALERTS (pending cap) ============ */
#alertBar { padding: 0 22px; margin-top: 14px; }
#alertBar:empty { display: none; }
.alert-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff7e6; border: 1px solid #f0c870; border-left: 4px solid #e0922f; border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(224,146,47,.08); }
.alert-ico { font-size: 18px; flex: none; }
.alert-txt { flex: 1; min-width: 200px; font-size: 14px; font-weight: 600; color: #7a5410; }
.alert-row.msg { background: #ececff; border-color: #c9c9fb; border-left-color: var(--accent-2); box-shadow: 0 2px 8px rgba(43,43,255,.08); }
.alert-row.msg .alert-txt { color: #3a3ab8; }

/* ============ CREATOR PENDING CAP ============ */
.gv-cap { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff7e6; color: #b67616; border: 1px solid #f0c870; vertical-align: middle; }
.gv-cap.full { background: #fbe3e6; color: var(--danger); border-color: var(--danger); }
.gv-cap-note { margin: 12px 0 18px; padding: 16px 18px; background: #fbe3e6; border: 1px solid var(--danger); border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--danger); line-height: 1.5; }

/* ============ CHAT ASSISTANT WIDGET ============ */
.chatw { position: fixed; left: 24px; bottom: 24px; z-index: 400; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.chatw-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, #2b2bff, #1f1fd6); color: #fff; box-shadow: 0 10px 28px rgba(43,43,255,.42); display: grid; place-items: center; transition: transform .15s, box-shadow .15s; }
.chatw-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(43,43,255,.5); }
.chatw-fab-ico { font-size: 26px; line-height: 1; }
.chatw-fab-badge { position: absolute; top: -3px; right: -3px; background: var(--danger); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--bg); }
@keyframes chatw-bump {
  0%,100% { transform: translateY(0) rotate(0); }
  15% { transform: translateY(-10px) rotate(-7deg); }
  30% { transform: translateY(0) rotate(7deg); }
  45% { transform: translateY(-6px) rotate(-5deg); }
  60% { transform: translateY(0) rotate(4deg); }
  75% { transform: translateY(-3px) rotate(-2deg); }
}
.chatw-fab.bump { animation: chatw-bump 1s ease 2; }
/* panel */
.chatw-panel { width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(40,30,10,.28); display: flex; flex-direction: column; overflow: hidden; animation: chatw-in .18s ease; }
@keyframes chatw-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chatw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, #2b2bff, #1f1fd6); color: #fff; }
.chatw-head-l { display: flex; align-items: center; gap: 11px; }
.chatw-ava { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: #000; padding: 4px; flex: none; }
.chatw-title { font-weight: 800; font-size: 15px; }
.chatw-status { font-size: 11.5px; opacity: .92; display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.chatw-online { width: 8px; height: 8px; border-radius: 50%; background: #57e08b; box-shadow: 0 0 0 3px rgba(87,224,139,.3); }
.chatw-x { background: rgba(255,255,255,.18); border: none; color: #fff; width: 30px; height: 30px; border-radius: 9px; font-size: 20px; cursor: pointer; line-height: 1; }
.chatw-x:hover { background: rgba(255,255,255,.3); }
/* messages */
.chatw-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.cw-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.cw-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.cw-bot-ava { font-size: 19px; flex: none; line-height: 1; margin-bottom: 2px; }
.cw-bot-ava.img { width: 30px; height: 30px; border-radius: 9px; object-fit: contain; background: #000; padding: 3px; }
.cw-bot-ava.letter { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
/* Widget Direct ↔ Team channel tabs */
.chatw-tabs { display: flex; gap: 6px; padding: 8px 12px; background: #1f1fd6; }
.chatw-tab { flex: 1; border: none; background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; padding: 7px 10px; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: all .12s; }
.chatw-tab.on { background: #fff; color: #2b2bff; }
.cw-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 22px 14px; line-height: 1.5; }
/* @mention autocomplete popover + highlighted mentions */
.mn-pop { margin: 0 12px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.16); overflow-y: auto; max-height: 190px; z-index: 6; }
.mn-pop.hide { display: none; }
.mn-item { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 9px 13px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--accent); }
.mn-item:hover { background: var(--card-2); }
.mention { color: var(--accent-2); font-weight: 800; background: rgba(43,43,255,.08); border-radius: 5px; padding: 0 3px; }
/* Emoji reactions */
.cw-bcol { display: flex; flex-direction: column; min-width: 0; }
.rx-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 3px; position: relative; }
.rx-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; cursor: pointer; line-height: 1.7; }
.rx-chip.on { background: rgba(43,43,255,.12); border-color: var(--accent-2); }
.rx-add { border: none; background: transparent; cursor: pointer; font-size: 12px; opacity: 0; transition: opacity .12s; padding: 0 2px; color: var(--muted); }
.cw-msg:hover .rx-add, .ct-msg:hover .rx-add, .rx-row:hover .rx-add { opacity: .6; }
.rx-add:hover { opacity: 1 !important; }
.rx-bar { position: absolute; bottom: 100%; left: 0; display: flex; flex-wrap: wrap; gap: 1px; width: 244px; max-height: 144px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 5px; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 8; margin-bottom: 3px; }
.rx-bar.hide { display: none; }
.rx-bar button { border: none; background: transparent; cursor: pointer; font-size: 16px; padding: 2px 3px; border-radius: 6px; transition: transform .1s; }
.rx-bar button:hover { background: var(--card-2); transform: scale(1.25); }
/* Quote-reply */
.rpl-bar { display: flex; align-items: center; gap: 8px; margin: 0 12px 6px; padding: 7px 10px; background: var(--card-2); border-left: 3px solid var(--accent-2); border-radius: 8px; }
.rpl-bar.hide { display: none; }
.rpl-q { flex: 1; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpl-x { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 14px; flex: none; }
.rpl-in { border-left: 2px solid var(--accent-2); padding: 2px 7px; margin-bottom: 4px; font-size: 11.5px; opacity: .85; background: rgba(43,43,255,.06); border-radius: 5px; }
/* Typing indicators */
.cw-typing { padding: 2px 16px 4px; font-size: 12px; color: var(--muted); font-style: italic; }
.ct-typing { padding: 4px 18px; font-size: 12px; color: var(--muted); font-style: italic; }
.cw-typing.hide, .ct-typing.hide { display: none; }
/* Drag & drop files into chat */
.chatw-msgs.dropping, .ct-body.dropping { outline: 2px dashed var(--accent-2); outline-offset: -8px; background: rgba(43,43,255,.06); }
/* Creator full chat page */
.pagechat { display: flex; height: calc(100dvh - 120px); max-width: 1120px; margin: 0 auto; padding: 0 16px; gap: 12px; }
.pc-sidebar { width: 244px; flex: none; overflow-y: auto; border-right: 1px solid var(--line); padding-right: 6px; }
.pc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 10px; }
.pcs-sec { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 12px 8px 6px; }
.pcs-item { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; text-align: left; font-size: 14px; font-weight: 600; color: var(--accent); }
.pcs-item:hover { background: var(--card-2); }
.pcs-item.on { background: var(--accent); color: #fff; }
.pcs-ava-wrap { position: relative; flex: none; }
.pcs-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.pcs-ava.letter, .pcs-ava.emoji { display: grid; place-items: center; background: var(--card-2); font-weight: 800; font-size: 15px; }
.pcs-item.on .pcs-ava.letter, .pcs-item.on .pcs-ava.emoji { background: rgba(255,255,255,.22); color: #fff; }
.pcs-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: #1ea672; border: 2px solid var(--bg); }
.pcs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pcs-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.pcs-sub { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcs-item.on .pcs-sub { color: rgba(255,255,255,.82); }
.pcs-empty { color: var(--muted); font-size: 12px; padding: 8px; }
@media (max-width: 760px) { .pc-sidebar { width: 140px; } .pagechat { padding: 0 6px; } }
.pagechat .ct-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.pagechat .ct-composer { margin-top: 10px; display: flex; gap: 8px; align-items: flex-end; }
.pagechat .ct-composer textarea { flex: 1; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; }
.pc-attbar { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-attbar:empty { display: none; }
.pc-att-chip { background: var(--card-2); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 600; }
.pc-att-chip button { border: none; background: transparent; cursor: pointer; color: var(--muted); }
.cw-msg.team { cursor: pointer; }
.cw-msg.team .cw-bubble { background: #f0f0ff; border: 1px solid #d6d6fb; border-bottom-left-radius: 5px; }
.cw-msg.team:hover .cw-bubble { background: #e7e7ff; }
.cw-team-name { font-size: 11px; font-weight: 800; color: var(--accent-2); margin-bottom: 3px; }
.msg-ava { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; background: #000; padding: 1.5px; vertical-align: -3px; margin-right: 5px; }
.cw-bubble { padding: 10px 13px; border-radius: 15px; font-size: 13.5px; line-height: 1.45; white-space: normal; word-break: break-word; }
.cw-msg.bot .cw-bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--text); }
.cw-msg.user .cw-bubble { background: var(--accent-2); color: #fff; border-bottom-right-radius: 5px; }
.cw-bubble.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.cw-bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: cw-typing 1.2s infinite; }
.cw-bubble.typing span:nth-child(2) { animation-delay: .2s; }
.cw-bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cw-typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
/* quick replies (collapsible) */
.chatw-quick-wrap { border-top: 1px solid var(--line); background: var(--card); }
.chatw-quick-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: none; cursor: pointer; padding: 9px 14px; font-size: 12.5px; font-weight: 800; color: var(--accent-2); }
.chatw-quick-toggle:hover { background: var(--card-2); }
.chatw-quick-chev { font-size: 12px; }
.chatw-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 12px; background: var(--card); max-height: 200px; overflow-y: auto; }
.chatw-quick-wrap.collapsed .chatw-quick { display: none; }
.cw-chip { background: var(--card-2); border: 1px solid var(--line); color: var(--accent-2); font-weight: 700; font-size: 12px; padding: 6px 11px; border-radius: 99px; cursor: pointer; transition: .12s; }
.cw-chip:hover { background: #ececff; border-color: var(--accent-2); }
/* input */
.chatw-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--card); }
.chatw-input input { flex: 1; border: 1px solid var(--line); border-radius: 99px; padding: 10px 15px; font-size: 13.5px; font-family: inherit; outline: none; background: var(--bg); }
.chatw-input input:focus { border-color: var(--accent-2); }
.chatw-send { background: var(--accent-2); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 16px; cursor: pointer; flex: none; transition: .12s; }
.chatw-send:hover { transform: scale(1.07); }
.chatw-attach { background: var(--card-2); border: 1px solid var(--line); color: var(--accent-2); width: 42px; height: 42px; border-radius: 50%; font-size: 17px; cursor: pointer; flex: none; transition: .12s; }
.chatw-attach:hover { background: #ececff; border-color: var(--accent-2); }
/* attachments */
.cw-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cw-att { max-width: 280px; max-height: 280px; border-radius: 10px; display: block; cursor: zoom-in; }
.cw-att-link { display: inline-block; line-height: 0; }
.cw-att-wrap { position: relative; display: inline-block; line-height: 0; }
.cw-att-full { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: none; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 13px; opacity: 0; transition: opacity .12s; }
.cw-att-wrap:hover .cw-att-full { opacity: 1; }
/* Fullscreen media viewer */
.media-full { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 30px; }
.media-full.open { display: flex; }
.media-full img, .media-full video { max-width: 94vw; max-height: 92vh; border-radius: 10px; }
.mf-x { position: absolute; top: 18px; right: 24px; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; cursor: pointer; }
.mf-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: none; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .12s; z-index: 2; }
.mf-nav:hover { background: rgba(255,255,255,.3); }
.mf-nav.prev { left: 24px; }
.mf-nav.next { right: 24px; }
.mf-cap { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 700; background: rgba(0,0,0,.5); padding: 6px 14px; border-radius: 99px; }
@media (max-width: 640px) { .mf-nav { width: 44px; height: 44px; font-size: 28px; } .mf-nav.prev { left: 8px; } .mf-nav.next { right: 8px; } }
/* Online dot + clickable avatar (chat page) */
.ct-ava-wrap { position: relative; flex: none; cursor: pointer; }
.ct-online-dot { position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: #1ea672; border: 2px solid var(--bg); }
.pc-info { text-align: center; font-size: 12.5px; color: var(--muted); padding: 0 0 8px; }
.pc-info.hide { display: none; }
/* "My messages" (creator chat) — header above a full-width two-pane, styled like the Creative Strategy chat */
#tab-chat.active { display: flex; flex-direction: column; height: calc(100dvh - 96px); }
/* Unified white bordered card, exactly like the Creative Strategy chat (.cs-msg-wrap) */
#tab-chat .pagechat { flex: 1; min-height: 0; height: auto; max-width: none; gap: 0; margin: 0 26px 12px; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
#tab-chat .pc-sidebar { width: 300px; flex: none; border-right: 1px solid var(--line); background: var(--card); padding: 8px; overflow-y: auto; }
#tab-chat .pc-main { min-width: 0; padding-top: 0; }
#tab-chat .pc-info { text-align: left; font-size: 15px; font-weight: 800; color: var(--text); padding: 14px 18px; border-bottom: 1px solid var(--line); }
#tab-chat .ct-body { background: var(--card); border: none; border-radius: 0; padding: 16px 18px; }
#tab-chat .ct-composer { border-top: 1px solid var(--line); margin-top: 0; padding: 12px 16px; }
/* Unread badges for "My messages" (profile button dot + profile-menu item count) */
.avatar-wrap { position: relative; display: inline-flex; }
.msg-dot { position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg); box-sizing: border-box; }
.pm-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; margin-left: 6px; }
.profile-menu .nav-menu-item { display: flex; align-items: center; }
/* Creator chat page side panel (slide-in) */
.page-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; background: var(--card); border-left: 1px solid var(--line); box-shadow: -8px 0 28px rgba(0,0,0,.14); transform: translateX(100%); transition: transform .2s; z-index: 120; overflow-y: auto; }
.page-panel.open { transform: translateX(0); }
/* Thread indicator under a message + slide-in thread panel (ClickUp-style) */
.ct-thread { align-self: flex-start; margin-top: 5px; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 800; color: var(--accent); cursor: pointer; transition: all .12s; }
.ct-thread:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.ct-thread.has-new { border-color: #ff3b8e; background: rgba(255,59,142,.07); }
.ct-thread-new { color: #ff3b8e; font-weight: 900; }
.thread-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 92vw; background: var(--card); border-left: 1px solid var(--line); box-shadow: -8px 0 28px rgba(0,0,0,.16); transform: translateX(100%); transition: transform .2s; z-index: 130; display: flex; flex-direction: column; }
.thread-panel.open { transform: translateX(0); }
.thread-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.thread-title { font-weight: 900; font-size: 16px; }
.thread-scroll { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.thread-count { font-size: 12px; font-weight: 800; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.thread-new-sep { display: flex; align-items: center; gap: 8px; color: #ff3b8e; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.thread-new-sep::after { content: ""; flex: 1; height: 1.5px; background: #ff3b8e; border-radius: 2px; }
.thread-attbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.thread-attbar:empty { display: none; }
.thread-composer { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); flex: 0 0 auto; }
.thread-composer textarea { flex: 1; resize: none; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; max-height: 120px; }
/* Inline message edit */
.ct-edited { color: var(--muted); font-size: 10.5px; font-style: italic; }
.ct-edit { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.ct-edit-ta { width: 100%; resize: vertical; min-height: 54px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--accent-2); background: var(--card); font: inherit; }
.ct-edit-act { display: flex; gap: 6px; justify-content: flex-end; }
.chatw-attbar { display: none; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: var(--card); }
.chatw-attbar.on { display: flex; }
.cw-att-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--card-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 10px; font-size: 11.5px; color: var(--text); max-width: 160px; overflow: hidden; white-space: nowrap; }
.cw-att-chip button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.cw-att-chip button:hover { color: #e23; }
@media (max-width: 760px) {
  .chatw { left: 14px; bottom: 14px; }
  .chatw-panel { width: calc(100vw - 28px); height: calc(100vh - 100px); }
}

@media (max-width: 760px) {
  #detailModal .modal { max-height: calc(100vh - 24px); }
  #detailModal .modal .body { overflow-y: auto; }
  .detail-split { flex-direction: column; align-items: stretch; }
  .detail-video { width: 100%; max-width: 100%; align-self: stretch; }
  .detail-video video { max-width: 100%; max-height: 56vh; margin: 0 auto; }
  .detail-side { max-height: none; }
}

/* ---- My Account: activity graphs ---- */
.act-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.act-head select { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.act-sub { font-size: 12.5px; margin: 4px 0 12px; }
.activity-chart { min-height: 160px; }
.act-summary { display: flex; gap: 22px; margin-bottom: 10px; }
.act-sum { display: flex; align-items: baseline; gap: 6px; }
.act-dot { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.act-dot.up { background: var(--accent-2); }
.act-dot.val { background: var(--ok); }
.act-num { font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.act-cap { font-size: 12px; color: var(--muted); font-weight: 700; }
.act-svg { width: 100%; height: 190px; display: block; }
/* Activity top row: streak (highlighted) + gate buttons */
.act-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.streak { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 16px; border-radius: 14px; background: linear-gradient(135deg, #fff1d6, #ffe0b0); border: 1px solid rgba(214,158,46,.35); box-shadow: 0 3px 10px rgba(214,158,46,.18); }
.streak.live { animation: streakpulse 2.4s ease-in-out infinite; }
@keyframes streakpulse { 0%,100% { box-shadow: 0 3px 10px rgba(214,158,46,.18); } 50% { box-shadow: 0 4px 16px rgba(214,158,46,.34); } }
.streak-flame { font-size: 20px; align-self: center; }
.streak-num { font-size: 26px; font-weight: 900; letter-spacing: -1px; color: #b9791a; }
.streak-cap { font-size: 12px; font-weight: 800; color: #a9772a; }
.gate-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.gate-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: .15s; }
.gate-btn:hover { border-color: var(--accent); }
.gate-btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.act-svg .bar-up { fill: var(--accent-2); }
.act-svg .bar-val { fill: var(--ok); }
.act-svg .ax-lab { fill: var(--muted); font-size: 9px; font-weight: 700; }

/* ---- My Account: review queue ---- */
.rq-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rq-lab { font-weight: 700; font-size: 13.5px; }
.rq-val { font-weight: 900; font-size: 15px; }
.rq-pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.rq-pill.on { background: rgba(31,157,87,.14); color: var(--ok); }
.rq-pill.off { background: rgba(140,131,119,.16); color: var(--muted); }
.rq-hint { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---- My Account: payout history ---- */
.payout-empty { text-align: center; padding: 30px 18px; }
.payout-empty .pe-ico { font-size: 34px; }
.payout-empty .pe-title { font-weight: 800; font-size: 15px; margin: 8px 0 4px; }
.payout-empty .pe-sub { color: var(--muted); font-size: 13px; }
.payout-wrap { overflow-x: auto; }
.payout-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.payout-table th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.payout-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.payout-table .pay-amt { font-weight: 800; }
.pay-status { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.pay-status.st-pending { background: rgba(140,131,119,.16); color: var(--muted); }
.pay-status.st-processing { background: rgba(108,92,255,.14); color: var(--accent-2); }
.pay-status.st-paid { background: rgba(31,157,87,.16); color: var(--ok); }
.pay-status.st-failed { background: rgba(210,59,78,.14); color: var(--danger); }
.pay-status.st-hold { background: rgba(214,158,46,.18); color: var(--gold); }

/* ---- Online status (admin + profile) ---- */
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.online-dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(31,157,87,.18); }
.online-dot.off { background: var(--line); }
.online-txt { font-size: 12px; font-weight: 700; color: var(--muted); vertical-align: middle; }
.online-txt.on { color: var(--ok); }

/* ---- Game detail: creators count + asset library ---- */
.gv-meta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 4px; }
.gv-creators { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.92); background: rgba(0,0,0,.28); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(2px); }
.gv-assetlib { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(108,92,255,.08), rgba(108,92,255,.03)); border: 1px solid rgba(108,92,255,.28); transition: .15s; }
.gv-assetlib:hover { border-color: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(108,92,255,.16); }
.gv-assetlib-ico { font-size: 30px; }
.gv-assetlib-txt { flex: 1; display: flex; flex-direction: column; }
.gv-assetlib-txt strong { font-size: 15px; color: var(--accent); }
.gv-assetlib-txt small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.gv-assetlib-go { font-size: 20px; color: var(--accent-2); font-weight: 800; }

/* ---- Admin: games overview (drag-and-drop) ---- */
.ga-hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.ga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ga-tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ga-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.ga-tile.dragging { opacity: .4; }
.ga-tile.drop-before { box-shadow: -4px 0 0 0 var(--accent-2); }
.ga-tile.drop-after { box-shadow: 4px 0 0 0 var(--accent-2); }
.ga-rank { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 7px; }
.ga-active { position: absolute; top: 8px; left: 46px; z-index: 2; font-size: 12px; line-height: 1; background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 5px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.pill.active { background: #fff1e3; color: var(--warn); border-color: #f3d6b0; }
.ga-grip { position: absolute; top: 6px; right: 8px; z-index: 2; color: #fff; font-size: 16px; cursor: grab; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ga-thumb { aspect-ratio: 16/10; background: #000; overflow: hidden; }
.ga-thumb video, .ga-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ga-noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; }
.ga-body { padding: 10px 12px 12px; }
.ga-name { font-weight: 800; font-size: 14px; }
.ga-code { font-size: 11px; font-weight: 700; color: var(--muted); }
.ga-genre { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--accent-2); background: #ececff; border: 1px solid #d6d6fb; padding: 1px 8px; border-radius: 99px; }
.ga-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ---- Admin: game detail — videos received ---- */
.gd-subs { display: flex; flex-direction: column; gap: 8px; }
.gd-sub { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.gd-sub:hover { background: var(--card-2); border-color: var(--accent-2); }
.gd-sub-thumb { width: 54px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; background: #000; }
.gd-sub-thumb video, .gd-sub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-sub-info { flex: 1; min-width: 0; }
.gd-sub-vendor { font-weight: 800; font-size: 14px; }
.gd-sub-meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-sub-go { font-weight: 800; color: var(--accent-2); font-size: 13px; flex: none; }

/* Benchmark gallery — 9:16 portrait cards + genre dropdown */
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bench-card { display: flex; flex-direction: column; gap: 8px; }
.bench-media { position: relative; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.bench-media video, .bench-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bench-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 800; line-height: 26px; padding: 0; }
.bench-del:hover { background: var(--danger); }
.bench-genre { width: 100%; padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 700; cursor: pointer; }
/* Admin: link a benchmark video to a Voodoo game + flag it performing */
.bench-game { width: 100%; padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bench-perf { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; user-select: none; }
.bench-perf input { accent-color: var(--gold); cursor: pointer; }
.bench-perf.on { color: var(--gold); border-color: #eedcb3; background: #fcefc9; }
.bench-card.perf .bench-media { outline: 2px solid var(--gold); outline-offset: -2px; }
.bench-perf-badge { position: absolute; top: 6px; left: 6px; font-size: 14px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
/* Sensor Tower top-creatives results (reuses .bench-grid container) */
.st-card { display: flex; flex-direction: column; gap: 6px; }
.st-media { position: relative; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.st-media video, .st-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-noprev { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.st-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.st-net { font-weight: 800; }
.st-seen { color: var(--muted); }
.st-open { margin-left: auto; font-weight: 700; color: var(--accent-2); }
.st-hot { position: absolute; top: 6px; left: 6px; z-index: 2; font-size: 15px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.st-ref-grid { display: flex; flex-direction: column; gap: 8px; }
.st-ref { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--card); }
.st-ref-logo { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.st-ref-logo.emoji { display: grid; place-items: center; font-size: 20px; background: var(--card-2); }
.st-ref-main { flex: 1 1 auto; min-width: 0; }
.st-ref-name { font-weight: 800; font-size: 13.5px; }
/* Referenced-games list: multi-column grid + filter bar */
#stRefList { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 8px; }
.st-ref-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.st-ref-filters input[type="search"] { flex: 0 1 300px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--accent); }
.st-ref-filters input[type="search"]:focus { outline: none; border-color: var(--accent-2); }
.st-ref-filters select { padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.st-addbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.st-addbar-l { font-size: 13px; font-weight: 600; }
.vct-table { width: 100%; }
.vct-table th, .vct-table td { vertical-align: middle; }
.vct-game { display: flex; align-items: center; gap: 10px; }
.vct-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #000; }
.vct-logo-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; background: var(--card-2); }
.vct-when { white-space: nowrap; color: var(--muted); font-weight: 600; }
.vct-p1 td { background: rgba(234, 179, 8, .07); }
.vct-p1 td:first-child { box-shadow: inset 3px 0 0 #eab308; }
/* Reports — production per period */
.rep-row { cursor: pointer; }
.rep-row:hover { background: var(--card-2); }
.rep-caret { display: inline-block; color: var(--muted); font-size: 11px; transition: transform .15s; }
.rep-caret.open { transform: rotate(90deg); }
.rep-detail td { background: var(--bg-2); padding: 0 12px; }
.rep-detail-box { padding: 4px 0 12px; }
.rep-sort { background: none; border: none; font: inherit; font-weight: 800; color: inherit; cursor: pointer; padding: 0; }
.rep-sort.on { color: var(--accent-2); }
.rep-sort:hover { color: var(--accent-2); }
.vc-cat { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 11px; white-space: nowrap; border: 1px solid var(--line); }
.vc-cat.core { background: rgba(28,122,68,.12); color: #1c7a44; border-color: rgba(28,122,68,.3); }
.vc-cat.portfolio_live { background: rgba(43,43,255,.10); color: var(--accent-2); border-color: rgba(43,43,255,.25); }
.vc-cat.long_tail { background: var(--card-2); color: var(--muted); }
.bud-monthnav { display: inline-flex; align-items: center; gap: 8px; }
.bud-monthnav span { font-weight: 800; min-width: 132px; text-align: center; font-size: 14px; }
.st-filters { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.st-filt-group { display: flex; flex-direction: column; gap: 6px; }
.st-filt-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.st-checks { display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: 640px; }
.st-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent); cursor: pointer; }
.st-check input { accent-color: var(--accent-2); cursor: pointer; }
.drop.dragover { border-color: var(--accent-2); background: var(--card-2); color: var(--accent); }

/* Creator: benchmark filter — header + "Voodoo creatives" game-logo chips */
.bench-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 8px 0 14px; }
.bench-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Games tab header: full-width so the filter row's right edge lines up with the
   topbar profile (both inset 26px), with the controls pinned right even on wrap. */
.games-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; padding: 20px 26px 10px; }
.games-head .bench-head-right { margin-left: auto; justify-content: flex-end; }
/* Manage Games — inline-editable table */
.gt-editable td, .gt-editable th { white-space: nowrap; vertical-align: middle; }
.gt-editable .gt-game { cursor: pointer; }
.gt-editable .gt-game:hover strong { text-decoration: underline; }
.gt-sel { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; max-width: 150px; }
.gt-sel:hover { border-color: var(--accent-2); }
.gt-price { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-weight: 800; }
.gt-price input { width: 66px; padding: 5px 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 800; color: var(--accent); }
.gt-price input:hover { border-color: var(--accent-2); }
.gt-ind { font-weight: 900; font-size: 15px; }
.gt-ind.yes { color: #1ea672; }
.gt-ind.no { color: var(--muted); opacity: .45; }
.gt-linkcell:hover { background: var(--card-2); }
.gt-logo { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; vertical-align: middle; }
.gt-gamecell { display: flex; align-items: center; gap: 10px; }
.gt-orgs { background: none; border: none; font: inherit; font-weight: 800; font-size: 14px; color: var(--accent-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 2px 6px; border-radius: 6px; }
.gt-orgs:hover { color: var(--accent); background: var(--card-2); }
.gt-owner-ava { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; vertical-align: -3px; }
.gorg-list { display: flex; flex-direction: column; gap: 8px; }
.gorg-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.gorg-name { font-weight: 700; flex: 1; min-width: 0; }
/* Budget → "concepts in prod" list with thumbnails */
.gcpt-list { display: flex; flex-direction: column; gap: 8px; }
.gcpt-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; transition: border-color .12s, background .12s; }
.gcpt-row:hover { border-color: var(--accent); background: var(--card-2); }
.gcpt-thumb { width: 64px; height: 84px; border-radius: 9px; overflow: hidden; flex: none; background: #000; display: flex; align-items: center; justify-content: center; }
.gcpt-thumb video, .gcpt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gcpt-noimg { font-size: 26px; }
.gcpt-main { flex: 1; min-width: 0; }
.gcpt-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcpt-sub { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcpt-price { white-space: nowrap; }
/* Concept modal prev/next navigation */
.ac-nav { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.ac-navbtn { border: none; background: var(--card-2); color: var(--text); font-size: 19px; line-height: 1; width: 30px; height: 28px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ac-navbtn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.ac-navbtn:disabled { opacity: .32; cursor: default; }
.ac-navpos { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 7px; min-width: 34px; text-align: center; }
/* Game detail — read-only hero */
.gd-hero { display: flex; gap: 18px; align-items: stretch; margin-top: 12px; padding: 16px; }
.gd-hero-visual { width: 150px; flex: none; }
.gd-hero-visual .cover-prev { width: 150px; height: 200px; border-radius: 12px; object-fit: cover; }
.gd-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gd-hero-head { display: flex; gap: 12px; align-items: flex-start; }
.gd-hero-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #000; flex: none; }
.gd-hero-name { margin: 0 0 7px; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.gd-code { font-size: 12px; font-weight: 800; color: var(--accent); background: rgba(99,102,241,.14); border-radius: 7px; padding: 2px 8px; letter-spacing: .5px; }
.gd-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-badge { font-size: 12px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.gd-badge.prio { color: #9a6200; background: rgba(245,158,11,.16); border-color: transparent; }
.gd-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-stat { flex: 1; min-width: 92px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.gd-stat span { font-size: 17px; font-weight: 800; }
.gd-stat label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.gd-stat-info { min-width: 220px; gap: 7px; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.gd-chip img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.gd-res-row { display: flex; gap: 12px; flex-wrap: wrap; }
.gd-res { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.gd-res.on { border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.08); }
.gd-res.off { border-style: dashed; opacity: .75; }
.gd-res-ic { font-size: 26px; flex: none; }
.gd-res-main { flex: 1; min-width: 0; }
.gd-res-t { font-weight: 800; font-size: 14px; }
.gd-res-s { font-size: 12.5px; font-weight: 700; margin-top: 1px; }
.gd-res.on .gd-res-s { color: #15803d; }
.gd-res.off .gd-res-s { color: var(--muted); }
.st-nogenre { font-size: 10.5px; font-weight: 800; color: #9a6200; background: rgba(245,158,11,.16); border-radius: 999px; padding: 1px 7px; white-space: nowrap; margin-left: 6px; }
.btn.sm.dim { opacity: .6; border-style: dashed; }
.btn.sm.dim:hover { opacity: 1; }
.gt-glogo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; background: #000; }
.gt-glogo-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; background: var(--card-2); }
.gt-search { width: 200px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--accent); }
.gt-search:focus { outline: none; border-color: var(--accent-2); }
.bench-st-btn { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 800; color: var(--accent); cursor: pointer; transition: all .12s; }
.bench-st-btn:hover { border-color: var(--accent-2); }
.bench-st-btn.on { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.st-sel { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--accent); font-size: 13.5px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); max-width: 280px; transition: border-color .15s; }
.st-sel:hover { border-color: var(--accent-2); }
.st-game-head { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 16px; margin: 2px 0 6px; }
.st-game-head img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; }
.st-game-pick { display: inline-flex; align-items: center; gap: 8px; }
.st-sel-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.bench-genre-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.bench-genre-filter select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.bench-chips { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.bench-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 8px; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; transition: all .12s; }
.bench-chip:hover { border-color: var(--accent-2); }
.bench-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.bench-chip.vd.on { background: var(--accent-2); border-color: var(--accent-2); }
.bench-chip-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex: none; background: #000; }
.bench-chip-emoji { font-size: 16px; }
.bench-chip-n { font-size: 11px; font-weight: 800; opacity: .6; }
.bench-chip.on .bench-chip-n { opacity: .85; }
/* Voodoo-tops priority tag on a chip */
.bench-chip-prio { font-size: 9.5px; font-weight: 900; letter-spacing: .3px; padding: 1px 5px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.bench-chip-prio.p1 { background: #ffe7b0; color: #7a5200; }
.bench-chip.on .bench-chip-prio { background: rgba(255,255,255,.22); color: #fff; }
/* Voodoo-tops creator filter bar (search + genre + prio) */
.vc-filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.vc-search { flex: 0 1 260px; width: 260px; max-width: 300px; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--accent); }
.vc-search:focus { outline: none; border-color: var(--accent-2); }
/* Admin Voodoo-tops manager */
.vc-admin-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vc-admin-search { flex: 1 1 220px; max-width: 320px; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; }
.st-ref.vc-p1 { border-color: #f0c24b; box-shadow: inset 3px 0 0 #f0c24b; }
.vc-prio-tag { font-size: 9.5px; font-weight: 900; padding: 1px 6px; border-radius: 999px; background: var(--card-2); color: var(--muted); vertical-align: middle; }
.vc-prio-tag.p1 { background: #ffe7b0; color: #7a5200; }
/* Benchmark feed: 3 segmented tabs + per-tile source badges */
.feed-refresh { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 18px; line-height: 1; color: var(--accent); display: grid; place-items: center; transition: border-color .12s, color .12s; }
.feed-refresh:hover { border-color: var(--accent-2); color: var(--accent-2); }
.feed-refresh.spinning { animation: cmspin .9s linear; }
.feed-tabs { display: inline-flex; gap: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.feed-tab { border: none; background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .12s; white-space: nowrap; }
.feed-tab:hover { color: var(--accent); }
.feed-tab.on { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.feed-tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 2; pointer-events: none; }
.feed-src { font-size: 10.5px; font-weight: 900; letter-spacing: .2px; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.feed-src.v { background: rgba(255,213,79,.92); color: #5c3d00; }
.feed-src.c { background: rgba(20,20,28,.74); color: #fff; }
.feed-logo { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: none; background: #000; margin-right: 2px; }
/* Instant placeholder behind a lazy video that has no thumbnail (Voodoo): a blurred game-logo backdrop */
.tile-ph { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(20px) brightness(.85) saturate(1.1); transform: scale(1.15); z-index: 0; }
.tile-ph + .tile-media { position: relative; z-index: 1; }
/* Per-tab filter bar (Voodoo creatives / Competitors creatives) */
.feed-filters { display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: center; margin: 14px 26px 2px; padding: 12px 16px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; }
.feed-toggle { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.feed-pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .12s; white-space: nowrap; }
.feed-pill:hover { border-color: var(--accent-2); color: var(--accent); }
.feed-pill.on { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Admin Benchmark sub-nav (Sensor Tower / Voodoo Tops / Benchmark gallery) */
.bench-admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.bench-admin-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .12s; }
.bench-admin-btn:hover { border-color: var(--accent-2); color: var(--accent); }
.bench-admin-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.12); }

/* Companies & creators — grouped "who is on what" view */
.company-box { border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); padding: 14px; margin-bottom: 14px; }
.cb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cb-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.cb-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.cb-stats b { color: var(--accent); font-weight: 800; }
.cb-games { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.cm-game { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.cm-game b { color: var(--accent-2); }
.cb-members { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.cm-row.orphan { opacity: .75; }
.cm-main { display: flex; align-items: center; gap: 7px; min-width: 180px; flex: 1; font-size: 14px; }
.cm-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cm-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.cm-code { font-size: 12px; font-weight: 700; background: var(--card-2); padding: 2px 7px; border-radius: 6px; }
.cm-glogos { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.cm-glogo { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; background: #111; border: 1px solid var(--line); flex: none; }
.cm-glogo.emoji { display: grid; place-items: center; font-size: 12px; background: var(--card-2); }
.cm-lvl { font-size: 11.5px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.muted-pill { background: var(--card-2) !important; color: var(--muted) !important; }
.cb-add { margin-top: 10px; }

/* Received "war machine" — review queue navigation + triage cues */
.rv-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rv-pos { font-weight: 800; font-size: 14px; }
.rv-auto { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.rv-help { margin-left: auto; font-size: 11.5px; color: var(--muted); }
#statusBtns kbd { display: inline-block; min-width: 14px; padding: 0 3px; margin-right: 3px; border-radius: 4px; background: rgba(0,0,0,.12); font-size: 10.5px; font-weight: 800; }
.btn.primary #statusBtns kbd, #statusBtns .btn.primary kbd { background: rgba(255,255,255,.25); }
.pill.prio { background: rgba(176,125,24,.15); color: var(--gold); border: 1px solid rgba(176,125,24,.4); }
tr.prio-row { background: rgba(176,125,24,.06); }
/* Received list: make the videos awaiting action stand out from settled ones. */
#list tr.to-review td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
#list tr.done-row { opacity: .66; }
#list tr.done-row:hover { opacity: 1; }

/* ===== Games overview toolbar — filters + view toggle + create ===== */
.ga-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gf-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.gf-pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .12s; }
.gf-pill:hover { border-color: var(--accent-2); color: var(--accent); }
.gf-pill.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }
.seg button { border: none; background: transparent; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.ga-toolbar .ga-create { margin-left: auto; }

/* category corner badge on game tiles */
.ga-cat { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.ga-cat.core { background: #e3f6ea; color: var(--ok); }
.ga-cat.portfolio_live { background: #ececff; color: #4b4bd8; }
.ga-cat.long_tail { background: #efe9df; color: var(--muted); }

/* category pills (reuse .pill) */
.pill.cat-core { background: #e3f6ea; color: var(--ok); border-color: #bfe9cf; }
.pill.cat-portfolio_live { background: #ececff; color: #4b4bd8; border-color: #d6d6fb; }
.pill.cat-long_tail { background: #efe9df; color: var(--muted); border-color: var(--line); }

/* ===== Games table view ===== */
.games-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.games-table th { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.games-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.games-table tr:hover td { background: var(--card-2); cursor: pointer; }
.games-table .num { text-align: center; font-weight: 800; }
.gt-vendors { display: flex; gap: 5px; flex-wrap: wrap; }
.gt-vendor { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.gt-vendor b { color: var(--accent-2); }
.gt-none { color: var(--muted); font-style: italic; }
.gt-owner { background: #fff4e0; border: 1px solid #ffd591; color: #ad6800; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
/* --- Responsive: denser admin tables + tiles for 13"–14" laptops. The 16" (≈1728px CSS) is above this breakpoint, so it's unchanged. --- */
@media (max-width: 1536px) {
  .games-table { font-size: 12.5px; }
  .games-table th, .games-table td { padding: 7px 7px; }
  .games-table .gt-vendors { max-width: 196px; }
  .games-table .gt-owner { font-size: 10.5px; padding: 1px 7px; }
  .gt-owner-ava { width: 14px; height: 14px; }
  .games-table .gt-glogo { width: 26px; height: 26px; }
  #budgetHead .card { padding: 15px; }
  #budgetHead .stat .value { font-size: 25px; }
  #budgetHead .stat .sub { font-size: 11.5px; }
}

/* ===== Roles & game owners ===== */
.role-badge { display: inline-flex; align-items: center; background: #fff4e0; border: 1px solid #ffd591; color: #ad6800; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 800; margin-right: 6px; }
.cm-role { font-size: 12px; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); margin-left: 4px; }
.cm-games { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; width: 100%; }
.owner-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.owner-chk { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .12s; }
.owner-chk:hover { border-color: var(--accent-2); }
.owner-chk.on { background: #fff4e0; border-color: #ffd591; color: #ad6800; font-weight: 700; }
.owner-chk input { accent-color: var(--accent-2); cursor: pointer; }

/* ===== Budget tab ===== */
.bud-bar { position: relative; height: 8px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; margin-top: 5px; min-width: 90px; }
.bud-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ok); border-radius: 999px; transition: width .2s; }
.bud-fill.mid { background: var(--warn); }
.bud-fill.over { background: var(--danger); }
.bud-usage { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ===== last-online indicator on member rows ===== */
.cm-seen { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cm-seen.on { color: var(--ok); font-weight: 700; }

/* ===== Admin ↔ creator chat ===== */
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; vertical-align: middle; }
/* Full-window immersive: the chat tab fills the viewport below the topbar. */
#tab-chat.active { padding: 0; }
.chat-layout { display: grid; grid-template-columns: 340px 1fr; gap: 0; height: calc(100dvh - 64px); }
.chat-list { background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.chat-list-head { padding: 16px 16px 2px; font-weight: 800; font-size: 16px; }
.chat-mode-toggle { display: flex; gap: 6px; padding: 8px 16px 4px; }
.cmt-btn { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 10px; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .12s; }
.cmt-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.cp-ava.channel { background: var(--card-2); font-size: 18px; }
.chat-search-wrap { position: relative; margin: 12px; }
.chat-search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .6; pointer-events: none; }
.chat-search { width: 100%; padding: 11px 14px 11px 36px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--bg-2); font-size: 13.5px; font-family: inherit; transition: border-color .15s, background .15s, box-shadow .15s; }
.chat-search:focus { outline: none; border-color: var(--accent-2); background: var(--card); box-shadow: 0 0 0 3px rgba(43,43,255,.12); }
#chatPeople { overflow-y: auto; flex: 1; }
.chat-person { display: flex; gap: 11px; padding: 11px 14px; cursor: pointer; border-top: 1px solid var(--line); transition: background .12s; }
.chat-person:hover { background: var(--card-2); }
.chat-person.active { background: var(--bg-2); }
.cp-ava { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; overflow: hidden; }
.cp-ava img { width: 100%; height: 100%; object-fit: cover; }
.cp-online { position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid var(--card); z-index: 1; }
.cp-main { flex: 1; min-width: 0; }
.cp-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cp-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.cp-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 2px; }
.cp-preview { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-badge { flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.cp-company { font-size: 11px; color: var(--muted); margin-top: 2px; }
.chat-thread { background: var(--bg-2); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.chat-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }
.chat-empty.sm { height: auto; padding: 24px; }
.ct-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 15px; cursor: pointer; }
.ct-head:hover { background: var(--card-2); }
.ct-head-info { opacity: .55; font-size: 13px; margin-left: 4px; }
/* Right-side user panel (timezone, last connection, activity) */
.chat-layout.with-panel { grid-template-columns: 340px 1fr 308px; }
.chat-userpanel { border-left: 1px solid var(--line); background: var(--card); overflow-y: auto; min-width: 0; }
.chat-userpanel.hide { display: none; }
.cup-load { padding: 22px 16px; color: var(--muted); font-size: 13px; }
.cup-top { padding: 22px 16px 16px; text-align: center; border-bottom: 1px solid var(--line); position: relative; }
.cup-x { position: absolute; top: 8px; right: 10px; border: none; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.cup-ava { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.cup-ava.letter { display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 30px; font-weight: 800; }
.cup-name { font-weight: 900; font-size: 17px; }
.cup-company { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cup-presence { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.cup-presence.on { color: #1ea672; }
.cup-rows { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; border-bottom: 1px solid var(--line); }
.cup-row { font-size: 13px; display: flex; gap: 8px; align-items: center; word-break: break-word; }
.cup-row span { width: 18px; flex: none; text-align: center; }
.cup-h { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 14px 16px 8px; }
.cup-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 18px; }
.cup-stat { background: var(--card-2); border-radius: 12px; padding: 12px 8px; text-align: center; }
.cup-stat b { display: block; font-size: 18px; font-weight: 900; }
.cup-stat span { font-size: 11px; color: var(--muted); }
.ct-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ct-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.ct-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.ct-msg.them { align-self: flex-start; }
.ct-ava { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.ct-ava.letter { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; }
.ct-ava.letter.team { background: var(--accent-2); }
.ct-col { display: flex; flex-direction: column; min-width: 0; }
.ct-msg.mine .ct-col { align-items: flex-end; }
.ct-name { font-size: 11px; font-weight: 700; color: var(--muted); margin: 0 6px 2px; }
.ct-bubble { padding: 9px 13px; border-radius: 15px; font-size: 13.5px; line-height: 1.4; word-break: break-word; max-width: 100%; }
.ct-msg.mine .ct-bubble { background: var(--accent-2); color: #fff; border-bottom-right-radius: 4px; }
.ct-msg.them .ct-bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ct-meta { font-size: 11px; font-weight: 700; opacity: .8; margin-bottom: 2px; }
.ct-time { font-size: 10px; opacity: .65; margin-top: 3px; text-align: right; }
.ct-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ct-att { max-width: 200px; max-height: 200px; border-radius: 10px; display: block; }
.ct-att-link { display: inline-flex; }
.ct-attbar { display: none; gap: 8px; flex-wrap: wrap; padding: 8px 14px 0; }
.ct-attbar.on { display: flex; }
.ct-att-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 6px 5px 11px; font-size: 12px; font-weight: 600; }
.ct-att-chip span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-att-chip button { border: none; background: var(--line); color: var(--text); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; }
.ct-composer { display: flex; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.ct-attach { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 18px; }
.ct-attach:hover { background: var(--card-2); }
.ct-composer textarea { flex: 1; resize: none; max-height: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-family: inherit; font-size: 13.5px; line-height: 1.4; }
@media (max-width: 720px) { .chat-layout { grid-template-columns: 1fr; height: auto; } .ct-att { max-width: 140px; max-height: 140px; } }

/* ---- VGP multi-select & transfer ---------------------------------------- */
#selectBtn.primary { background: var(--accent); color: #fff; }
/* The selection overlays live in the DOM at all times so toggling select mode
   never re-renders (and never reloads the videos); CSS shows/hides them. */
.select-mode .rcv-card { cursor: pointer; }
.select-mode .rcv-card .rcv-vid::after { content: ""; position: absolute; inset: 0; background: transparent; transition: background .12s ease; }
.rcv-card.selected { outline: 3px solid var(--accent-2); outline-offset: -1px; }
.rcv-card.selected .rcv-vid::after { background: rgba(43,43,255,.14); }
.rcv-check { display: none; position: absolute; top: 8px; left: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.92); border: 2px solid var(--accent-2); place-items: center; font-weight: 900; font-size: 15px; color: var(--accent-2); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.select-mode .rcv-check { display: grid; }
.rcv-card.selected .rcv-check { background: var(--accent-2); color: #fff; }
tr.selected { background: rgba(43,43,255,.08); }
.rcv-rowcheck { width: 17px; height: 17px; cursor: pointer; }
.selcell { display: none; }
.select-mode .selcell { display: table-cell; }

.bulk-bar { position: sticky; bottom: 14px; z-index: 40; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 14px auto 0; max-width: 760px; padding: 10px 14px; background: var(--card); border: 1px solid var(--accent-2); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.bulk-bar[hidden] { display: none; }
.bulk-count { font-weight: 800; }
.bulk-sep { flex: 1 1 auto; }
.btn.ghost { background: transparent; }

#vgpModal .modal { max-width: 620px; width: 94vw; }
.vgp-steps { margin: 0; padding-left: 20px; line-height: 1.9; }
.vgp-steps li { margin-bottom: 6px; }
.vgp-bm { display: inline-block; margin-top: 8px; cursor: grab; user-select: none; }
.vgp-bm:active { cursor: grabbing; }
.vgp-alt { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.vgp-alt summary { cursor: pointer; font-weight: 700; }
.vgp-alt textarea { width: 100%; margin: 8px 0; font-family: ui-monospace, Menlo, monospace; font-size: 11px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--card-2); resize: vertical; }
.vgp-reco { background: rgba(43,43,255,.08); border: 1px solid rgba(43,43,255,.35); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; }
.vgp-reco code { background: var(--card-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12px; }
.vgp-note { margin-top: 14px; font-size: 12.5px; }
.vgp-selected { margin-top: 14px; }
.vgp-selected summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.vgp-game-list { margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; }
/* Rename-before-upload UI */
.vgp-rename { margin-bottom: 12px; }
.vgp-rename label { display: block; font-weight: 800; margin-bottom: 6px; }
.vgp-rename input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: ui-monospace, Menlo, monospace; }
.vgp-rename input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(43,43,255,.15); }
.vgp-rename-hint { font-size: 12px; margin-top: 6px; line-height: 1.4; }
.vgp-preview { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); padding: 8px 10px; }
.vgp-preview-head { font-weight: 800; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.vgp-preview-list { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; }
.vgp-preview-list li { word-break: break-word; }
.vgp-old { color: var(--muted); }
.vgp-arrow { margin: 0 6px; color: var(--accent-2); font-weight: 800; }
.vgp-new { font-weight: 800; font-family: ui-monospace, Menlo, monospace; }
.vgp-prev-meta { font-size: 12px; }
.vgp-action { margin-top: 16px; }
.vgp-send-btn { font-size: 15px; padding: 11px 18px; }

/* Per-game creative-code rename (smart sequence: EA01, EA02, …) */
.vgp-rename-intro { font-size: 12.5px; line-height: 1.5; margin-bottom: 12px; }
.vgp-rename-intro code { font-family: ui-monospace, Menlo, monospace; background: var(--card-2); padding: 1px 5px; border-radius: 5px; }
.vgp-games { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.vgp-game { border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); padding: 10px 12px; }
.vgp-game-head { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.vgp-game-name { font-size: 14px; }
.vgp-start-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.vgp-start { width: 84px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; }
.vgp-start:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(43,43,255,.15); }
.vgp-last { font-weight: 600; }
.vgp-prev-game { margin-bottom: 8px; }
.vgp-prev-game:last-child { margin-bottom: 0; }
.vgp-prev-game-name { font-weight: 800; font-size: 12.5px; margin: 4px 0 2px; }
.vgp-commit { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.vgp-commit .muted { font-size: 12px; }

/* ---- FAQ tab --------------------------------------------------------------- */
.faq-hero { text-align: center; padding: 14px 0 22px; }
.faq-hero-title { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.faq-hero-sub { color: var(--muted); font-size: 15px; max-width: 640px; margin: 8px auto 0; line-height: 1.5; }
.faq-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.faq-step { background: linear-gradient(135deg, #fff, var(--card-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.faq-step b { font-size: 14.5px; }
.faq-step span:not(.faq-step-n) { color: var(--muted); font-size: 13px; line-height: 1.45; }
.faq-step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.faq-section { margin-bottom: 16px; }
.faq-section .section-title { font-size: 17px; margin: 0 0 6px; }
.faq-q { border-top: 1px solid var(--line); }
.faq-q:first-of-type { border-top: 0; }
.faq-q summary { cursor: pointer; list-style: none; padding: 13px 30px 13px 2px; font-weight: 700; font-size: 14.5px; position: relative; outline: none; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq-q[open] summary::after { content: "−"; }
.faq-q summary:hover { color: var(--accent-2); }
.faq-q summary:focus-visible { box-shadow: 0 0 0 3px rgba(43,43,255,.15); border-radius: 6px; }
.faq-a { padding: 0 6px 16px 2px; color: var(--text); font-size: 14px; line-height: 1.6; }
.faq-a b { font-weight: 800; }
.faq-specs { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }
.faq-specs li { margin-bottom: 2px; }
.faq-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.faq-tier { border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); padding: 12px; }
.faq-tier-k { font-weight: 900; font-size: 14px; }
.faq-tier-v { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 4px; }
.faq-cta { text-align: center; padding: 26px 16px 8px; }
.faq-cta-title { font-size: 21px; font-weight: 900; }
.faq-cta-sub { color: var(--muted); margin: 6px 0 14px; }
@media (max-width: 760px) {
  .faq-steps { grid-template-columns: 1fr 1fr; }
  .faq-tiers { grid-template-columns: 1fr; }
  .faq-hero-title { font-size: 23px; }
}

/* ---- Admin: Landing page asset manager ---------------------------------- */
.landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.landing-empty { color: var(--muted); padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.landing-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.landing-thumb { width: 100%; height: 150px; object-fit: cover; background: #111; display: block; }
.landing-meta { padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.landing-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-pos { color: var(--muted); font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.landing-actions { display: flex; gap: 6px; padding: 0 11px 11px; }
.landing-actions .mini { flex: 1; }
.mini { border: 1px solid var(--line); background: var(--card-2); color: var(--text); padding: 6px 10px; border-radius: 8px; font-weight: 800; font-size: 13px; cursor: pointer; transition: .15s; }
.mini:hover:not(:disabled) { border-color: var(--accent-2); color: var(--accent-2); }
.mini:disabled { opacity: .4; cursor: not-allowed; }
.mini.danger { color: var(--danger); }
.mini.danger:hover { border-color: var(--danger); color: var(--danger); background: #fbe3e6; }
#landingUploadStatus { color: var(--muted); font-size: 13px; margin-left: 10px; }

/* ===== Creative Strategy (internal /strategy app) ===== */
.cs-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; padding: 16px 26px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.cs-topbar .brand { display: flex; align-items: center; gap: 8px; }
.cs-topbar .brand small { position: relative; top: 3px; }
.cs-tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.cs-top-right { display: flex; align-items: center; gap: 12px; }
.feed-tab:focus, .feed-tab:focus-visible { outline: none; }
.cs-me { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--accent); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.cs-me:hover { border-color: var(--accent-2); box-shadow: 0 2px 10px rgba(40,30,10,.08); }
.cs-me-ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.cs-me-ava.letter { display: flex; align-items: center; justify-content: center; background: var(--accent-2); color: #fff; font-size: 13px; font-weight: 800; }
.cs-me-name { white-space: nowrap; }
.cs-h { font-size: 20px; font-weight: 900; margin: 4px 0 14px; }
.cs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cs-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.cs-kpi-n { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.cs-kpi-l { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.cs-kpi-sub { font-size: 11px; font-weight: 700; color: var(--muted); opacity: .8; margin-top: 3px; }
/* My account modal */
.cs-acc { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cs-acc-photo .cs-acc-ava, .cs-acc-ava { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--line); }
.cs-acc-ava.letter { display: flex; align-items: center; justify-content: center; background: var(--accent-2); color: #fff; font-size: 40px; font-weight: 900; }
.cs-acc-name { font-size: 20px; font-weight: 900; }
/* Analytics chart */
.cs-chart { padding: 16px 18px; margin-top: 2px; }
.cs-chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.cs-leg { font-size: 12.5px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.cs-leg b { color: var(--accent); font-size: 13.5px; }
.cs-leg-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.cs-chart-wrap { position: relative; }
.cs-chart-svg { width: 100%; height: auto; display: block; }
.cs-chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 700; }
/* Toast */
.cs-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--accent); color: #fff; font-weight: 800; font-size: 13.5px; padding: 11px 18px; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 4000; }
.cs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cs-toast.ok { background: #1f8a4e; }
.cs-toast.err { background: var(--danger, #d23b3b); }
/* Unread badges (name chip + dropdown menu item) */
.cs-me-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e0483d; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.cs-menu-badge { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; background: #e0483d; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.nav-menu-item { display: flex; align-items: center; }
/* My messages — two-pane (conversation list + thread) */
.cs-msg-screen { display: flex; flex-direction: column; min-height: 0; }
.cs-msg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 26px 10px; }
.cs-msg-title { font-size: 18px; font-weight: 900; }
.cs-msg-tsub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cs-msg-wrap { display: grid; grid-template-columns: 300px 1fr; grid-template-rows: minmax(0, 1fr); gap: 0; margin: 0 26px 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); flex: 1; min-height: 0; }
.cs-msg-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--card); padding: 8px; min-height: 0; }
/* Admin "Messages" — grey the organisations sidebar (the chat pane stays white) */
#amsgList { background: var(--bg); }
/* Read-only "What to adapt" boxes (visible but not editable outside Edit mode) */
.lb-brief-targets.ro .lb-target { cursor: default; }
.lb-brief-targets.ro input:disabled { opacity: .85; }
.cs-msg-sec { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 12px 10px 6px; }
.cs-msg-none { font-size: 12px; color: var(--muted); padding: 4px 10px 8px; }
.cs-msg-conv { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 11px; padding: 9px 10px; cursor: pointer; }
.cs-msg-conv:hover { background: var(--card-2); }
.cs-msg-conv.on { background: var(--accent); color: #fff; }
.cs-msg-ico { font-size: 18px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cs-msg-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.cs-msg-ava.letter { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-2); color: #fff; font-size: 13px; font-weight: 800; }
.cs-msg-cmeta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cs-msg-cname { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-msg-csub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-msg-conv.on .cs-msg-csub { color: rgba(255,255,255,.8); }
.cs-msg-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e0483d; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cs-msg-conv.on .cs-msg-badge { background: #fff; color: var(--accent); }
.cs-msg-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cs-msg-empty { margin: auto; color: var(--muted); font-size: 14px; }
.cs-msg-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 800; }
.cs-msg-thread { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.cs-msg-drop { display: none; position: absolute; inset: 10px; border: 2px dashed var(--accent-2); border-radius: 14px; align-items: center; justify-content: center; color: var(--accent-2); font-weight: 800; background: rgba(43,43,255,.06); z-index: 5; pointer-events: none; }
.cs-msg-thread.drag .cs-msg-drop { display: flex; }
.cs-msg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); vertical-align: middle; }
.cs-msg-dot.on { background: #1f9d57; }
.cs-msg-ico { position: relative; }
.cs-msg-ico .cs-msg-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 2px solid var(--bg); }
.cs-msg-conv.on .cs-msg-ico .cs-msg-dot { border-color: var(--accent); }
.cs-msg-status { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.cs-msg-status.on { color: #1f8a4e; }
.cs-msg-quote { border-left: 3px solid var(--accent-2); padding: 2px 8px; margin-bottom: 5px; font-size: 12px; color: var(--muted); background: rgba(0,0,0,.03); border-radius: 0 8px 8px 0; }
.cs-msg-mrow.mine .cs-msg-quote { background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); border-left-color: rgba(255,255,255,.5); }
.cs-msg-rx { margin-top: 6px; }
.cs-msg-mrow.mine .cs-msg-rx .rx-add, .cs-msg-act { color: var(--muted); }
.cs-msg-mrow.mine .cs-msg-rx .rx-add, .cs-msg-mrow.mine .cs-msg-act { color: rgba(255,255,255,.72); }
.cs-msg-act { background: none; border: 0; cursor: pointer; font-size: 12px; opacity: .7; padding: 2px; }
.cs-msg-act:hover { opacity: 1; }
.cs-msg-edit-ta { width: 280px; max-width: 58vw; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: inherit; color: var(--accent); background: var(--card); }
.cs-msg-edit-act { display: flex; gap: 6px; margin-top: 6px; }
.ct-bubble.cs-msg-editing { background: var(--card) !important; border: 1px solid var(--line); padding: 8px; }
.cs-msg-compose-wrap { border-top: 1px solid var(--line); }
.cs-msg-replybar { padding: 8px 14px 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cs-msg-replybar button { background: none; border: 0; cursor: pointer; color: var(--muted); font-weight: 800; }
.cs-msg-attrow { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; }
.cs-msg-attrow:empty { display: none; }
.cs-msg-attchip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.cs-msg-attchip.up { color: var(--muted); }
.cs-msg-attchip button { background: none; border: 0; cursor: pointer; }
.cs-msg-spin { display: inline-block; width: 11px; height: 11px; border: 2px solid var(--line); border-top-color: var(--accent-2); border-radius: 50%; animation: csspin .7s linear infinite; }
@keyframes csspin { to { transform: rotate(360deg); } }
.cs-msg-mrow { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.cs-msg-mrow.mine { align-self: flex-end; flex-direction: row; }
.cs-msg-rava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.cs-msg-rava.letter { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 800; }
.cs-msg-bub { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.cs-msg-mrow.mine .cs-msg-bub { background: var(--accent); color: #fff; border-color: var(--accent); }
.cs-msg-bhead { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; margin-bottom: 3px; }
.cs-msg-time { font-weight: 600; color: var(--muted); font-size: 10.5px; }
.cs-msg-mrow.mine .cs-msg-time { color: rgba(255,255,255,.75); }
.cs-msg-btext { font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.cs-msg-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cs-msg-atts img, .cs-msg-atts video { width: 90px; height: 120px; object-fit: cover; border-radius: 8px; cursor: pointer; background: #000; }
.cs-msg-compose { display: flex; gap: 8px; padding: 12px 14px; align-items: flex-end; }
.cs-msg-compose textarea { flex: 1; resize: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; font-family: inherit; max-height: 120px; }
@media (max-width: 760px) { .cs-msg-wrap { grid-template-columns: 1fr; grid-template-rows: 180px 1fr; } .cs-msg-list { border-right: none; border-bottom: 1px solid var(--line); } }
.cs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cs-table th { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cs-table th.ana-num { text-align: right; } /* numeric headers right-align to match their data */
.cs-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.cs-table tbody tr:hover { background: var(--card-2); }
.cs-table tbody tr:last-child td { border-bottom: none; }
.cs-game { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.cs-game img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; }
.cs-game-emoji { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--card-2); font-size: 15px; flex: none; }
.cs-prod { color: var(--accent); }
.cs-soon { margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--muted); }

/* Creative Strategy — Received / Concepts / Vendors */
.cs-toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cs-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cs-cf-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.vgp-steps { font-size: 13.5px; margin: 12px 0; padding-left: 22px; }
.vgp-steps li { margin-bottom: 16px; line-height: 1.55; }
.vgp-steps li:last-child { margin-bottom: 0; }
.vgp-steps .btn { vertical-align: middle; margin: 0 2px; }
.cs-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cs-grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* New-concept modal — roomier window + checkbox grid */
#csModal .modal { max-width: 1320px; width: 96vw; }
#csModal .modal .body { padding: 22px 24px; }
/* Concept modal = fixed window, only the columns scroll inside (scoped via :has so other strategy modals are untouched). */
#csModal:has(.cs-cm-3) { align-items: center; padding: 24px; }
#csModal .modal:has(.cs-cm-3) { max-width: 1480px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
/* Keep the title on one line so the ✏️ Edit + status group stays cleanly right-aligned. */
#csModal .modal:has(.cs-cm-3) header { gap: 12px; }
#csModal .modal:has(.cs-cm-3) header h3 { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#csModal .modal:has(.cs-cm-3) header > div { flex: 0 0 auto; flex-wrap: nowrap; }
#csModal .modal:has(.cs-cm-3) header .btn { flex: 0 0 auto; white-space: nowrap; }
#csModal .modal:has(.cs-cm-3) .body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 18px 22px; }
#csModal .cs-cm-3 { flex: 1 1 auto; min-height: 0; align-items: stretch; }
#csModal .cs-cm-col { min-height: 0; max-height: 100%; overflow-y: auto; scrollbar-gutter: stable both-edges; }
.cs-cm-coltitle { font-size: 15px; font-weight: 900; margin-bottom: 10px; }
/* New/Edit concept form: fixed-height modal, scrollable body, buttons pinned at the bottom. */
#csModal:has(.cs-form-body) { align-items: center; padding: 24px; }
#csModal .modal:has(.cs-form-body) { max-width: 920px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
#csModal .modal .body.cs-form-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.cs-form-foot { flex: 0 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px; justify-content: flex-end; background: var(--card); border-top: 1px solid var(--line); }
.cs-form-foot #ncMsg { margin-right: auto; text-align: left; }
/* Bigger bullet-list textareas (concept summary / game mechanic / deliverables). */
/* WYSIWYG contentEditable editor for concept fields (bold/italic show formatted, not markers). */
.cs-rte { min-height: 116px; max-height: 320px; overflow-y: auto; line-height: 1.65; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; background: var(--card); }
.cs-rte:focus { outline: none; border-color: var(--accent-2); }
.cs-rte:empty::before { content: attr(data-ph); color: var(--muted); pointer-events: none; }
.cs-rte b, .cs-rte strong { font-weight: 800; }
.cs-rte a { color: var(--accent-2); text-decoration: underline; }
.cs-gamepick { position: relative; }
.cs-gamepick-logo { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; object-fit: cover; pointer-events: none; z-index: 1; }
.cs-gamepick.has-logo select { padding-left: 42px; }
.cu-ava-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-act-new { display: inline-block; background: rgba(43,43,255,.1); color: var(--accent-2); border: 1px solid rgba(43,43,255,.3); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; margin: 0 4px 4px 0; white-space: nowrap; }
.cs-act-hot { background: rgba(43,43,255,.04); }
.cs-act-stat { font-size: 12px; font-weight: 700; white-space: nowrap; margin-right: 6px; }
.cs-act-table tr[onclick] { cursor: pointer; }
.cs-act-table tr[onclick]:hover { background: var(--card-2); }
.cs-an-grow { cursor: pointer; }
.cs-an-grow:hover { background: var(--card-2); }
.cs-team-heads { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.cs-head { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--accent-2); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; flex: none; }
.cs-head img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-head-more { background: var(--line); color: var(--text); }
.cs-fmtbar { display: flex; gap: 5px; margin-bottom: 6px; }
.cs-fmtbar button { width: 30px; height: 27px; border: 1px solid var(--line); background: var(--card); border-radius: 7px; font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.cs-fmtbar button:hover { border-color: var(--accent-2); color: var(--accent-2); }
/* WIP videos: 2 per row, bigger */
.cs-vgrid-wip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.cs-vgrid-wip .cs-wip { width: 100%; }
.cs-vgrid-wip .cs-vthumb { width: 100%; height: auto; aspect-ratio: 9 / 16; }
@media (max-width: 680px) {
  #csModal .modal:has(.cs-cm-3) .body { display: block; overflow-y: auto; }
  #csModal .cs-cm-col { max-height: none; overflow: visible; }
}
.cs-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; }
.cs-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cs-check input { width: 16px; height: 16px; flex: none; accent-color: var(--accent-2); }
@media (max-width: 680px) { .cs-checks { grid-template-columns: 1fr; } }
/* Concepts — List view (grouped by status, compact rows) */
.cs-clist { display: flex; flex-direction: column; gap: 22px; }
.cs-cgroup-h { font-size: 13.5px; font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.cs-crows { display: flex; flex-direction: column; gap: 8px; }
.cs-crow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.cs-crow:hover { border-color: var(--accent-2); box-shadow: 0 3px 12px rgba(40,30,10,.07); }
.cs-crow-th { width: 56px; height: 56px; border-radius: 9px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.cs-crow-th video, .cs-crow-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-crow-th span { font-size: 22px; }
.cs-crow-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.cs-crow-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.cs-crow-sub { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }
.cs-crow-stats { display: flex; gap: 13px; align-items: center; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cs-crow-stats .mc-price { color: #8a6d00; font-weight: 800; }
.cs-crow-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11.5px; white-space: nowrap; }
@media (max-width: 820px) { .cs-crow { grid-template-columns: 48px minmax(0, 1fr); } .cs-crow-stats, .cs-crow-meta { grid-column: 2; flex-direction: row; align-items: center; gap: 10px; } }
/* Concept detail modal */
.cs-cm-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
@media (max-width: 760px) { .cs-cm-grid { grid-template-columns: 1fr; } }
/* 3-column layout: left = meta + context, middle = videos, right = comments. */
.cs-cm-3 { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; align-items: start; }
.cs-cm-col { min-width: 0; }
.cs-cm-mid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 24px; }
.cs-cm-right { display: flex; flex-direction: column; }
.cs-cm-right .cs-cm-l { margin-bottom: 10px; }
.cs-cm-right .cs-cmts { max-height: min(58vh, 560px); flex: 1; }
/* Keep the comment input pinned at the bottom-right of the modal. */
.cs-cm-right .cm-cmts-box { position: sticky; bottom: 0; background: var(--card); padding-top: 8px; margin-top: auto; }
/* @-mention autocomplete dropdown (above the comment input) + highlighted mentions. */
.cs-mentions { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.13); z-index: 30; max-height: 232px; overflow-y: auto; }
.cs-mention-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; text-align: left; }
.cs-mention-opt:last-child { border-bottom: none; }
.cs-mention-opt:hover { background: var(--card-2); }
.cs-mention-opt img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.cs-mention-ph { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--card-2); flex: none; font-size: 12px; }
.cs-mention-opt b { flex: 1; min-width: 0; font-weight: 700; }
.cs-mention-kind { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--muted); background: var(--card-2); border-radius: 5px; padding: 1px 6px; flex: none; }
.cs-mention { color: var(--accent-2); font-weight: 700; }
@media (max-width: 1040px) {
  .cs-cm-3 { grid-template-columns: 1fr 1fr; }
  .cs-cm-mid { border: none; padding: 0; }
  .cs-cm-right { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 680px) { .cs-cm-3 { grid-template-columns: 1fr; } }
/* WIP card: thumbnail + "send to VGP" action underneath. */
.cs-wip { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cs-wip-up { border: 1px solid var(--accent-2); background: rgba(43,43,255,.07); color: var(--accent-2); font-weight: 800; font-size: 10.5px; border-radius: 999px; padding: 4px 9px; cursor: pointer; white-space: nowrap; line-height: 1; }
.cs-wip-up:hover { background: var(--accent-2); color: #fff; }
.cs-wip-up.done { border-color: #1f9d57; background: rgba(31,157,87,.1); color: #1f8a4e; }
.cs-wip-up.done:hover { background: rgba(31,157,87,.2); color: #166b3c; }
.cs-cm-block { margin-bottom: 15px; }
.cs-cm-l { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 6px; display: block; }
.cs-cm-txt { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.cs-cm-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 15px; }
.cs-cm-meta > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
/* Tagged-on row lives inside the cream meta box, spanning both columns. */
.cs-cm-meta > .cs-cm-tagged { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 11px; margin-top: 2px; gap: 0; }
.cs-cm-meta > .cs-cm-tagged .cs-achips { margin-top: 2px; }
.cs-vgrid { display: flex; flex-wrap: wrap; gap: 8px; }
/* References: bigger thumbnails (2 per row, full column width). */
.cs-refgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.cs-refgrid .cs-vthumb { width: 100%; height: auto; aspect-ratio: 9 / 16; }
.cs-vthumb { position: relative; width: 84px; height: 112px; border-radius: 9px; overflow: hidden; background: #000; cursor: pointer; border: 1px solid var(--line); }
.cs-vthumb video, .cs-vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-vbadge { position: absolute; top: 5px; left: 5px; font-size: 9px; font-weight: 800; background: rgba(0,0,0,.65); color: #fff; border-radius: 999px; padding: 1px 6px; }
.cs-cmts { display: flex; flex-direction: column; gap: 8px; max-height: 230px; overflow-y: auto; }
.cs-cmt { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 13px; }
.cs-cmt-h { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; font-size: 12px; }
/* Concept detail — reference player, thumbnails, tagging, comment threads */
.cs-ref { position: relative; margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: #000; }
.cs-ref video { width: 100%; max-height: 360px; object-fit: contain; display: block; cursor: zoom-in; background: #000; }
.cs-ref-full { position: absolute; right: 10px; bottom: 10px; border: none; background: rgba(0,0,0,.62); color: #fff; font-weight: 800; font-size: 12px; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.cs-ref-full:hover { background: rgba(0,0,0,.85); }
.cs-ref-tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 3px 9px; }
.cs-vthumb-zoom { position: absolute; right: 5px; bottom: 5px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px; padding: 1px 5px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.cs-vthumb:hover .cs-vthumb-zoom { opacity: 1; }
.cs-achips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-achip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 5px; font-size: 12.5px; font-weight: 700; }
.cs-achip-ava { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
/* Tagged-person line on concept cards / list rows (avatar + name inline). */
.cs-tagline { display: inline-flex; align-items: center; gap: 5px; }
.cs-tag-ava { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; flex: none; }
.cs-tag-edit { border: 1px solid var(--line); background: var(--card); border-radius: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; margin-left: 6px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.cs-tag-edit:hover { border-color: var(--accent-2); color: var(--accent-2); }
.cs-assign-pop { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cs-ro-tag { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.cs-replybar { display: flex; align-items: center; gap: 6px; font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; margin: 8px 0 0; }
.cs-replybar button { margin-left: auto; border: none; background: none; cursor: pointer; font-size: 13px; }
.cs-cthread { margin-bottom: 6px; }
.cs-creplies { margin: 2px 0 8px 26px; padding-left: 12px; border-left: 2px solid var(--line); }
.cmc-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cmc-atts img, .cmc-atts video { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; background: #000; }
.cmc-badge { font-size: 9px; font-weight: 800; background: var(--accent-2); color: #fff; border-radius: 999px; padding: 1px 6px; text-transform: uppercase; letter-spacing: .3px; }
/* Vendors — game logo chips */
.cs-gchips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 460px; }
.cs-gchip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cs-gchip img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; display: block; }
.cs-gchip.all { padding: 3px 11px; }
/* Benchmark lightbox — brief panel inputs */
.lb-brief #ncName, .lb-brief #ncPrice, .lb-brief #ncTarget, .lb-brief #aiCount { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: inherit; background: var(--card); color: var(--accent); }
/* AI tab — tile badge + hook results in the lightbox panel */
.cs-rstat.st-ai { background: rgba(43,43,255,.88); color: #fff; }
.cs-ai-out { margin-top: 2px; }
.cs-ai-load { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.cs-ai-ff { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.cs-ai-ff img { width: 46px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cs-ai-ff span { font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.3; }
.cs-ai-hook { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg); }
.cs-ai-hook-h { font-weight: 800; font-size: 13.5px; margin-bottom: 4px; }
.cs-ai-hook-p { font-size: 12.5px; line-height: 1.5; color: var(--accent); opacity: .85; }
/* AI tab — slim, box-less filter bar (aligned at 26px, aerated) */
.ai-filters { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 14px 26px 4px; }
.ai-filter-left { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ai-filters .ai-search { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; transition: border-color .12s; }
.ai-filters .ai-search:focus-within { border-color: var(--accent-2); }
.ai-search .ai-mag { color: var(--muted); flex: none; opacity: .7; }
.ai-search input { border: none; background: transparent; font-size: 12.5px; line-height: 1.2; outline: none; width: 130px; color: var(--accent); font-family: inherit; }
.ai-search input::placeholder { color: var(--muted); }
/* Budget search box — matches the filter selects' height & look (rcv-fsel) */
.bud-search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; height: 36px; padding: 0 11px; box-sizing: border-box; transition: border-color .12s; }
.bud-search:focus-within { border-color: var(--accent); }
.bud-search .ai-mag { color: var(--muted); flex: none; opacity: .7; }
.bud-search input { border: none; background: transparent; font-size: 12.5px; line-height: 1.2; outline: none; width: 150px; color: var(--text); font-family: inherit; padding: 0; }
.bud-search input::placeholder { color: var(--muted); }
.bud-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
/* Strategist (Voodoo user) profile-photo picker */
.st-ava-prev { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--line); background: var(--card-2); display: grid; place-items: center; }
.st-ava-prev img { width: 100%; height: 100%; object-fit: cover; }
.st-ava-ph { font-size: 26px; opacity: .7; }
.ai-out-badge { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.ai-out-badge.up { background: rgba(28,122,68,.92); color: #fff; }
.ai-out-badge.rej { background: rgba(224,72,61,.92); color: #fff; }
.ai-ob-row { display: flex; gap: 4px; margin-top: 6px; }
.ai-ob { flex: 1; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45); color: #fff; border-radius: 7px; font-size: 10px; font-weight: 800; padding: 3px 4px; cursor: pointer; white-space: nowrap; }
.ai-ob:hover { background: rgba(0,0,0,.78); }
.ai-ob.on { background: var(--accent-2); border-color: var(--accent-2); }
/* Idle tile placeholder (videos load only on hover → cool laptop) */
.tile-ph-gen { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1c1930, #0c0b14); color: rgba(255,255,255,.5); font-size: 24px; }
/* Generated — selection + auto code + bulk bar */
.ai-chk { position: absolute; top: 9px; left: 9px; z-index: 3; width: 20px; height: 20px; cursor: pointer; accent-color: var(--accent-2); }
.tile.bench.sel { outline: 3px solid var(--accent-2); outline-offset: -3px; }
.ai-code { font-size: 12px; font-weight: 900; letter-spacing: .4px; color: #fff; background: rgba(0,0,0,.55); border-radius: 6px; padding: 1px 7px; margin-right: 7px; }
.ai-code.up { background: rgba(28,122,68,.95); }
.ai-code.rej { background: rgba(224,72,61,.95); }
.ai-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 26px 6px; padding: 9px 14px; background: var(--card); border: 1px solid var(--accent-2); border-radius: 12px; }
.ai-bulk b { font-size: 13px; }
.ai-bulk-n { background: var(--accent-2); color: #fff; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.ai-bulk-div { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
.ai-bulk-clear { margin-left: auto; }
.lb-brief .cs-sel { background: var(--card); color: var(--accent); margin: 0; }
.lb-brief .lb-brief-targets { display: flex; flex-direction: column; gap: 7px; }
/* Received — tile status pill (top-right) + list rows */
.cs-rstat { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 10.5px; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: rgba(20,20,28,.74); color: #fff; backdrop-filter: blur(6px); pointer-events: none; }
.cs-rstat.st-rejected, .cs-rstat.st-not_performing { background: rgba(224,72,61,.92); color: #fff; }
.cs-rstat.st-passed_testing, .cs-rstat.st-passed_3k { background: rgba(28,122,68,.92); color: #fff; }
.cs-rstat.st-top_spender { background: rgba(255,213,79,.95); color: #5c3d00; }
.cs-rstat.st-in_testing { background: rgba(43,43,255,.82); color: #fff; }
.tile-foot-sub { color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 700; margin-top: -8px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rcv-cell { display: flex; align-items: center; gap: 12px; }
.rcv-th { width: 40px; height: 54px; border-radius: 7px; overflow: hidden; background: #000; flex: none; }
.rcv-th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcv-glogo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex: none; }
.rcv-ai { font-weight: 800; color: var(--accent-2); white-space: nowrap; }
.rcv-ai-btn { border: 1px solid var(--line); background: var(--bg); color: var(--accent-2); font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 3px 11px; cursor: pointer; white-space: nowrap; }
.rcv-ai-btn:hover { border-color: var(--accent-2); background: rgba(43,43,255,.08); }
/* AI carousel (hooks made from a received video) */
.rcv-aicar { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; }
.rcv-aicar-item { flex: 0 0 200px; }
.rcv-aicar-item video { width: 200px; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; background: #000; display: block; }
.rcv-aicar-ph { width: 200px; aspect-ratio: 9/16; border-radius: 12px; background: linear-gradient(135deg,#1c1930,#0c0b14); color: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: 12.5px; }
.rcv-aicar-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
/* Received video modal (player + concept + siblings) */
.rcv-vmodal > video { width: 100%; max-height: 58vh; border-radius: 12px; background: #000; display: block; }
.rcv-vmodal-concept { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.rcv-vmodal-sibs { margin-top: 14px; }
.rcv-vmodal-sibrow { display: flex; gap: 10px; overflow-x: auto; margin-top: 6px; padding-bottom: 6px; }
.rcv-sib { flex: 0 0 92px; cursor: pointer; text-align: center; }
.rcv-sib video { width: 92px; aspect-ratio: 9/16; object-fit: cover; border-radius: 9px; background: #000; border: 1px solid var(--line); display: block; }
.rcv-sib:hover video { border-color: var(--accent-2); }
.rcv-sib span { font-size: 11px; font-weight: 700; color: var(--muted); }
#rcvTable tbody tr { cursor: pointer; }
#rcvTable tbody tr:hover { background: var(--bg); }
#rcvTable .ai-ob-row { gap: 4px; }
#rcvTable .ai-ob { background: var(--bg); color: var(--accent); border-color: var(--line); }
#rcvTable .ai-ob.on { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.rcv-chk { width: 17px; height: 17px; accent-color: var(--accent-2); cursor: pointer; flex: none; }
.ai-filter-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.ai-filter-right .ai-search { margin-left: 0; }
#rcvTable tr.rcv-selrow, #aiTable tr.rcv-selrow { background: rgba(43,43,255,.07); }
#rcvTable thead th:nth-child(2), #aiTable thead th:nth-child(2) { width: 46px; }
.rcv-vgp { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.rcv-vgp-st { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.rcv-vgp-st.todo { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.rcv-vgp-st.none { background: transparent; color: var(--muted); border: 1px dashed var(--line); opacity: .8; }
/* Totals row at the bottom of the AI Generated list */
.cs-table tfoot .cs-table-total td { border-top: 2px solid var(--line); border-bottom: none; padding: 12px 14px; font-size: 14px; background: var(--bg); }
.rcv-vgp-st.up { background: rgba(28,122,68,.92); color: #fff; }
.rcv-vgp-st.rej { background: rgba(224,72,61,.92); color: #fff; }
.rcv-vgp-st.wip { background: rgba(245,158,11,.95); color: #3a2600; }
.ext-type.wip { background: rgba(245,158,11,.16); color: #9a6200; }
.ext-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.ext-count b { color: var(--text); }
.ext-counts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 6px; }
.ext-pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 26px 4px; }
.ext-page-info { font-size: 12.5px; color: var(--muted); }
.ext-page-nav { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ext-page-btn { min-width: 32px; height: 32px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--accent); font-size: 12.5px; font-weight: 800; cursor: pointer; transition: border-color .12s, background .12s; }
.ext-page-btn:hover:not(:disabled) { border-color: var(--accent-2); }
.ext-page-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ext-page-btn:disabled { opacity: .4; cursor: default; }
.ext-page-ell { color: var(--muted); padding: 0 2px; }
/* Admin Concepts overview — KPI cards + status pills */
.ac-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 16px; }
.ac-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.ac-kpi-v { font-size: 23px; font-weight: 900; line-height: 1.05; }
.ac-kpi-l { font-size: 12px; font-weight: 800; margin-top: 6px; }
.ac-kpi-s { font-size: 11px; color: var(--muted); margin-top: 2px; }
@media (max-width: 1100px) { .ac-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .ac-kpis { grid-template-columns: repeat(2, 1fr); } }
.ac-st { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; white-space: nowrap; display: inline-block; }
.ac-st.open { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.ac-st.todo { background: rgba(43,43,255,.10); color: var(--accent-2); }
.ac-st.prog { background: rgba(245,158,11,.16); color: #9a6200; }
.ac-st.up { background: rgba(28,122,68,.92); color: #fff; }
/* Stable concept dialog — fixed height, scroll happens inside the columns. */
#acModal.modal-bg { align-items: center; padding: 24px; }
#acModal .modal { max-width: 1480px; width: 97vw; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
#acModal .modal header { flex: 0 0 auto; }
#acModal .modal .body { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 22px 24px; display: flex; flex-direction: column; }
#acModal .cs-cm-3 { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
#acModal .cs-cm-col { min-height: 0; max-height: 100%; overflow-y: auto; padding-right: 8px; }
#acModal .cs-cm-right { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
#acModal .cs-cm-right .cs-cmts { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
#acModal .cs-cm-right .cm-cmts-att, #acModal .cs-cm-right .cm-cmts-box, #acModal .cs-cm-right .cs-replybar { flex: none; }
@media (max-width: 900px) {
  #acModal .modal { max-height: calc(100vh - 32px); }
  #acModal .modal .body { display: block; overflow-y: auto; }
  #acModal .cs-cm-col, #acModal .cs-cm-right { max-height: none; overflow: visible; min-height: 0; }
}
/* Creator concept modal — same 3-column behaviour as the admin/strategy concept view */
#conceptModal .modal.cm-modal { max-width: 1480px; width: 97vw; max-height: calc(100vh - 80px); display: flex; flex-direction: column; overflow: hidden; }
/* Bigger WIP/final tiles (2 per line) + references; gray text blocks; photo avatars. */
/* 2 per line (grid) — an odd last tile sits below the first, in the left column. */
#conceptModal .cm-prod-grid { grid-template-columns: repeat(2, 1fr); }
#conceptModal .cm2-refs { grid-template-columns: repeat(2, 1fr); }
#conceptModal .cs-cm-col { padding-bottom: 12px; }
/* Center the middle column content — counter the scroll-gutter right padding. */
#conceptModal .cs-cm-3 .cs-cm-mid { padding-left: 24px; padding-right: 24px; }
/* Fill the tile, centered (center-crop) — no letterbox bars. */
#conceptModal .cm-prod-vid video { object-fit: cover; object-position: center center; }
.cm2-gray { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; }
.cm2-gray .cm2-sec-h { margin-top: 0; margin-bottom: 8px; }
.cm2-sum { background: rgba(245,166,35,.10); border-color: rgba(214,140,20,.30); }
.cm2-mech { background: rgba(43,43,255,.055); border-color: rgba(43,43,255,.20); }
.cm2-del { background: rgba(31,157,87,.09); border-color: rgba(31,157,87,.24); }
.cm2-sum .lb-brief-targets { margin-top: 8px; gap: 11px; }
img.cm-asg-av { object-fit: cover; }
#conceptModal .modal.cm-modal header { flex: 0 0 auto; }
#conceptModal .modal.cm-modal .body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
#conceptModal .cs-cm-3 { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
#conceptModal .cs-cm-col { min-height: 0; max-height: 100%; overflow-y: auto; padding-right: 8px; }
#conceptModal .cs-cm-right { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
#conceptModal .cs-cm-right .cs-cmts { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
#conceptModal .cs-cm-right .cm-cmts-att, #conceptModal .cs-cm-right .cm-cmts-box { flex: none; }
@media (max-width: 900px) {
  #conceptModal .modal.cm-modal { max-height: calc(100vh - 32px); }
  #conceptModal .modal.cm-modal .body { display: block; overflow-y: auto; }
  #conceptModal .cs-cm-col, #conceptModal .cs-cm-right { max-height: none; overflow: visible; min-height: 0; }
}
/* Header on a single line: title shrinks, status select + actions stay inline */
#conceptModal .modal.cm-modal header h3 { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#conceptModal .cm-head-right { flex: 0 0 auto; }
#conceptModal .cm-head-actions { flex-wrap: nowrap; }
#conceptModal .cm-head-actions .cm2-status { max-width: 190px; }
.ac-stchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.ac-stchip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.ac-stchip:hover { border-color: var(--accent-2); color: var(--accent); }
.ac-stchip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ac-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 800; background: var(--bg); border: 1px solid var(--line); color: var(--muted); border-radius: 7px; padding: 3px 9px; margin-right: 8px; vertical-align: middle; }
.ac-price-btn { background: none; border: none; cursor: pointer; opacity: .55; font-size: 12px; padding: 0 2px; line-height: 1; }
.ac-price-btn:hover { opacity: 1; }
.ac-price-edit { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.ac-price-edit input { width: 78px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; }
.ac-price-edit .btn.sm { padding: 4px 9px; }
.ac-linkbtn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ac-linkbtn svg { width: 14px; height: 14px; flex: none; }
.ac-linkbtn.ok { background: rgba(28,122,68,.12); color: #1c7a44; border-color: rgba(28,122,68,.45); }
/* Received — tight header + one compact filter row */
.rcv-head { padding-top: 14px; padding-bottom: 0; }
.rcv-head .mosaic-label { margin: 0 0 6px; }
.rcv-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 26px 8px; }
.rcv-filters .feed-pill { padding: 5px 10px; font-size: 12px; }
.rcv-filters .rcv-spacer { flex: 1 1 16px; }
.rcv-fsel { max-width: 160px; padding: 6px 10px; font-size: 12.5px; border-radius: 9px; }
.rcv-filters .ai-search { padding: 5px 11px; }
.rcv-filters .ai-search input { min-width: 120px; }
#rcvTable .ai-ob { padding: 4px 8px; font-size: 12px; }
@media (max-width: 1000px) { .rcv-filters .rcv-spacer { display: none; } }
.cs-tile { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 9/16; cursor: pointer; border: 1px solid var(--line); }
.cs-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-tag { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(4px); }
.cs-tag.voodoo { background: rgba(245,200,66,.92); color: #5b4700; }
.cs-tile-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); color: #fff; font-size: 12px; display: flex; flex-direction: column; gap: 1px; }
.cs-tile-foot span { font-size: 10.5px; opacity: .85; }
.cs-concept-top { display: flex; align-items: center; gap: 10px; }
.cs-concept-top img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cs-badge { font-size: 11px; font-weight: 800; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.cs-badge.gold { background: rgba(245,200,66,.2); color: #8a6d00; border-color: rgba(245,200,66,.5); }
.cs-price { width: 84px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-weight: 700; }

/* Creative Strategy — AI hooks */
.cs-ai-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 700; font-size: 13.5px; }
.cs-ai-bar input { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-weight: 800; }
.cs-ai-tile.sel { outline: 3px solid var(--accent); outline-offset: 1px; }
.cs-ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.cs-ai-prompt { display: flex; flex-direction: column; }
.cs-ai-firstframe img { width: 100%; border-radius: 10px; aspect-ratio: 9/16; object-fit: cover; }

/* Creative Strategy — Benchmark */
.cs-ph { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(18px); transform: scale(1.1); opacity: .55; }
.cs-tile .cs-lazy { position: relative; z-index: 1; }
.cs-send { position: absolute; bottom: 8px; right: 8px; z-index: 3; border: none; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; padding: 5px 10px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.cs-tile:hover .cs-send { opacity: 1; }
.cs-src-prev { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cs-src-prev video { width: 110px; aspect-ratio: 9/16; border-radius: 10px; object-fit: cover; background: #000; }

/* Creative Strategy — AI hooks */
.cs-ai-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 13px; }
.cs-ai-tile { cursor: pointer; }
.cs-ai-tile.sel { outline: 3px solid var(--accent); outline-offset: 2px; }
.cs-ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.cs-ai-firstframe img { width: 100%; border-radius: 8px; display: block; }
.cs-ai-prompt { display: flex; flex-direction: column; }

/* Creative Strategy — My games extras */
.cs-sel { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; }
.cs-vchips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; max-width: 280px; }
.cs-vchip { font-size: 11px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.cs-uachip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px 2px 5px; white-space: nowrap; }
.cs-uachip-ava { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.cs-sumrow td { border-top: 2px solid var(--ink, #111); background: var(--card-2); font-size: 14px; padding-top: 13px; padding-bottom: 13px; }
