:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: #12161f;
  --panel2: #181e28;
  --panel3: #0c1016;
  --line: #232b37;
  --line2: #3a4453;
  --text: #f3f6fb;
  --muted: #97a1b2;
  --faint: #6c7688;
  --red: #e01b24;
  --red2: #ff3b43;
  --gold: #e3c47f;
  --green: #34d17d;
  --sky: #6fd3ff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 10px 34px rgba(0,0,0,.32);
  --shadow-lg: 0 28px 80px rgba(0,0,0,.5);
  --ring: 0 0 0 3px rgba(224,27,36,.32);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  background:
    radial-gradient(1100px 520px at 82% -6%, rgba(224,27,36,.14), transparent 60%),
    radial-gradient(900px 480px at 6% 4%, rgba(227,196,127,.08), transparent 60%),
    linear-gradient(180deg, #0a0d13, var(--bg));
  background-attachment: fixed;
  color: var(--text);
}

/* Premium scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2c3340 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #2c3340; border-radius: var(--radius-pill); border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #3b4453; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(5,7,10,.92), rgba(5,7,10,.72)),
    linear-gradient(180deg, rgba(5,7,10,.4), rgba(5,7,10,.94)),
    var(--promotion-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .25s ease;
}
body.hasPromotionBackground::before { opacity: 1; }
.shell {
  position: relative;
  z-index: 1;
}

button, input, textarea, select { font: inherit; letter-spacing: inherit; }
button {
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--red2), var(--red));
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 16px rgba(224,27,36,.24);
  transition: filter .16s var(--ease), transform .06s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
button:hover { filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 8px 22px rgba(224,27,36,.34); }
button:active { transform: translateY(1px); filter: brightness(.98); }
button.secondary { background: linear-gradient(180deg, #232a35, #1a212b); border: 1px solid #333c49; color: #e9edf4; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
button.secondary:hover { background: linear-gradient(180deg, #2b3340, #212836); border-color: #45505f; filter: none; }
button.ghost { background: transparent; border: 1px solid #363f4d; color: #cfd6e1; box-shadow: none; }
button.ghost:hover { background: rgba(255,255,255,.04); border-color: #4a5568; filter: none; }
button:disabled { opacity: .5; cursor: not-allowed; filter: none; box-shadow: none; transform: none; }
button.smallBtn { height: 32px; padding: 0 12px; font-size: 12px; }
:focus-visible { outline: none; }
button:focus-visible, a:focus-visible { box-shadow: var(--ring); }

input, textarea, select {
  width: 100%;
  border: 1px solid #2b3340;
  border-radius: var(--radius-sm);
  background: #0a0e14;
  color: var(--text);
  outline: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
input:hover, textarea:hover, select:hover { border-color: #3a4453; }
input, select { height: 42px; padding: 0 13px; }
textarea { min-height: 104px; resize: vertical; padding: 12px 13px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { border-color: var(--red2); box-shadow: var(--ring); background: #0b0f16; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .005em; }
.titleInput {
  height: 36px;
  padding: 0 11px;
  font-weight: 800;
  background: #080c12;
}

.hidden { display: none !important; }
html.embeddedMasterFrame #loginView,
html.embeddedMasterFrame #loginPanel {
  display: none !important;
}
.shell { min-height: 100vh; display: grid; grid-template-columns: 288px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,14,20,.94), rgba(7,9,13,.96));
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}
.brand { display: flex; gap: 13px; align-items: center; padding: 4px 6px 20px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.mark {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
  background: linear-gradient(150deg, var(--red2), #96121a);
  box-shadow: 0 12px 30px rgba(224,27,36,.34), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.brandTitle { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.brandSub { margin-top: 2px; color: var(--muted); font-size: 12px; }

.nav { display: grid; gap: 4px; }
.navItem {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: #b9c1cd;
  font-weight: 600;
  height: 42px;
  box-shadow: none;
  transition: background .14s var(--ease), color .14s var(--ease), border-color .14s var(--ease);
}
.navItem:hover { background: rgba(255,255,255,.045); color: #eef1f6; filter: none; }
.navItem.active {
  background: linear-gradient(90deg, rgba(224,27,36,.18), rgba(224,27,36,.05));
  border-color: rgba(224,27,36,.4);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--red2);
}
.sidebarFoot { margin-top: auto; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.05); }
.miniText { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.main { min-width: 0; padding: 26px 28px; }
.loginWrap { min-height: calc(100vh - 52px); display: grid; place-items: center; }
.loginCard {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23,29,39,.97), rgba(10,13,18,.98));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.03) inset;
  padding: 38px;
}
.loginCard h1 { margin: 12px 0 12px; font-size: 40px; line-height: 1.06; letter-spacing: -.02em; font-weight: 800; }
.loginCard p { color: var(--muted); max-width: 620px; line-height: 1.6; }
.loginGrid, .formGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 18px; }
.full { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.message { margin-top: 14px; color: var(--muted); line-height: 1.5; font-size: 13.5px; }
.message:not(:empty) { padding: 11px 13px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.message.error { color: #ffb3b3; background: rgba(224,27,36,.1); border-color: rgba(224,27,36,.32); }

.metadataEditor {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 5, 8, .74);
  backdrop-filter: blur(6px);
  overflow: auto;
  padding: 26px;
  display: grid;
  align-items: start;
  animation: overlayFade .2s var(--ease);
}
.metadataEditor.hidden { display: none !important; }
@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }
.metadataPanel {
  width: min(1040px, 100%);
  margin: 24px auto;
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #131822, #0a0d13);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  animation: modalRise .24s var(--ease);
}
@keyframes modalRise { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.metadataGrid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
}
.metadataFields {
  display: grid;
  gap: 12px;
}
.metadataThumbPreview {
  aspect-ratio: 16 / 9;
  border: 1px solid #465164;
  border-radius: 8px;
  background: #111722 center / cover no-repeat;
  display: grid;
  place-items: center;
  color: rgba(246,248,251,.68);
  font-weight: 900;
  margin-bottom: 12px;
}
.metadataThumbPreview.hasImage {
  color: transparent;
}

.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pageKicker, .eyebrow { color: var(--gold); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.topbar h2 { margin: 7px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.topActions { display: flex; gap: 10px; align-items: center; }
.compactSelect {
  width: 260px;
  display: grid;
  gap: 5px;
}
.compactSelect select { height: 38px; }
.pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); border-radius: var(--radius-pill); padding: 8px 14px; font-size: 12.5px; font-weight: 600; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.good { color: var(--green); border-color: rgba(52,209,125,.4); background: rgba(52,209,125,.08); }

.view { display: none; }
.view.active { display: block; animation: viewFade .28s var(--ease); }
@keyframes viewFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.heroPanel, .panel, .stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,29,39,.85), rgba(12,15,21,.9));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.heroPanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  min-height: 270px;
  padding: 28px;
  overflow: hidden;
}
.heroPanel h3 { margin: 10px 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.heroPanel p, .panelHead p, .softText { color: var(--muted); line-height: 1.5; }
.heroArt {
  position: relative;
  min-height: 220px;
  border: 1px solid #4a2630;
  border-radius: 8px;
  background: linear-gradient(135deg, #111822, #2a1116);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ringLines {
  position: absolute;
  inset: 24px;
  border: 2px solid rgba(215,183,109,.55);
}
.ringLines::before, .ringLines::after {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  height: 2px;
  background: rgba(255,255,255,.22);
}
.ringLines::before { top: 42%; }
.ringLines::after { top: 58%; }
.artText { position: relative; font-size: 34px; font-weight: 900; text-align: center; color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.stat { padding: 18px; min-height: 96px; transition: border-color .16s var(--ease), transform .16s var(--ease); }
.stat:hover { border-color: var(--line2); transform: translateY(-2px); }
.stat span { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 600; letter-spacing: .1em; }
.stat strong { display: block; margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.panel { padding: 20px; }
.panel.wide { min-height: 520px; }
.panelHead { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.panelHead h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.panelHead p { margin: 6px 0 0; font-size: 13.5px; }
.checklist { display: grid; gap: 9px; }
.check { position: relative; border: 1px solid var(--line); background: rgba(255,255,255,.02); border-radius: var(--radius-sm); padding: 13px 13px 13px 40px; color: #d5dbe5; font-size: 14px; }
.check::before { content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--faint); }
.check.done { border-color: rgba(52,209,125,.32); background: rgba(52,209,125,.06); color: var(--green); }
.check.done::before { border-color: var(--green); background: var(--green); }
.check.done::after { content: ""; position: absolute; left: 19px; top: 50%; width: 4px; height: 8px; border: solid #05231b; border-width: 0 2px 2px 0; transform: translateY(-60%) rotate(45deg); }

.fileBox input { padding: 10px; height: auto; }
.durationBox {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.durationInputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.durationInputs label { gap: 5px; font-size: 11px; }
.durationInputs input { height: 42px; padding: 0 8px; }
.durationInputs input[readonly] {
  color: var(--green);
  border-color: rgba(74,222,128,.35);
  background: #08110d;
  font-weight: 900;
}
.uploadThumbnailPreview {
  aspect-ratio: 16 / 9;
  min-height: 180px;
  border: 1px solid #465164;
  border-radius: 8px;
  background: #090c11 center / cover no-repeat;
  display: grid;
  place-items: center;
  color: rgba(246,248,251,.72);
  font-weight: 900;
  overflow: hidden;
}
.uploadThumbnailPreview.hasImage { color: transparent; }
.artPreviewGrid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  margin: 10px 0 4px;
}
.artPreviewCard {
  border: 1px solid #333d4c;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12,16,22,.98), rgba(7,9,13,.98));
  padding: 12px;
}
.artPreviewHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}
.artPreviewHead strong {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.artPreview {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #465164;
  border-radius: 8px;
  background-color: #090c11;
  background-position: center;
  background-size: cover;
  color: rgba(246,248,251,.72);
  font-weight: 900;
  overflow: hidden;
}
.thumbnailPreview { aspect-ratio: 16 / 9; min-height: 132px; }
.backgroundPreview { aspect-ratio: 16 / 7; min-height: 176px; }
.artPreview.hasImage { color: transparent; }
.uploadMeter { height: 12px; background: #0a0e14; border: 1px solid #2b3340; border-radius: var(--radius-pill); overflow: hidden; margin: 16px 0; }
#uploadBar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); box-shadow: 0 0 14px rgba(224,27,36,.5); transition: width .2s ease; }

.importQueue { display: grid; gap: 10px; margin-top: 16px; }
.importJob {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px 13px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--faint);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.importJob strong, .importJob span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.importJob strong { font-size: 14px; font-weight: 700; }
.importJob span { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.importJob em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
/* In-progress: queued / running */
.importJob.queued { border-left-color: var(--gold); }
.importJob.queued em { color: var(--gold); }
.importJob.running { border-left-color: var(--sky); }
.importJob.running em { color: var(--sky); }
.importJob.running::after,
.importJob.queued::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: currentColor;
  color: var(--sky);
  animation: jobPulse 1.3s var(--ease) infinite;
}
.importJob.queued::after { color: var(--gold); }
@keyframes jobPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.importJob.succeeded { border-left-color: var(--green); background: rgba(52,209,125,.05); }
.importJob.succeeded em { color: var(--green); }
.importJob.failed { border-left-color: var(--red2); background: rgba(224,27,36,.06); }
.importJob.failed em { color: #ff8f8f; }
.importQueueHead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 2px 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
.importJobEnd { display: flex; align-items: center; gap: 10px; }
.importJobRemove {
  height: 26px; width: 26px; min-width: 26px; padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line2);
  color: var(--muted);
  font-size: 17px; line-height: 1;
  box-shadow: none; flex: 0 0 auto;
  display: grid; place-items: center;
}
.importJobRemove:hover { background: rgba(224,27,36,.2); border-color: var(--red2); color: #fff; filter: none; }

.gridList { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 15px; }
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.pager span {
  min-width: 100px;
  text-align: center;
}
.videoCard, .builderRow, .tableRow {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  overflow: hidden;
  transition: border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.videoCard:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: var(--shadow); }
.thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a2130, #391016);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  background-size: cover;
  background-position: center;
}
.videoCard:hover .thumb { opacity: .94; }
.videoBody, .builderBody { padding: 14px; }
.videoTitle, .builderTitle { font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.rankNumber {
  display: inline-block;
  min-width: 28px;
  margin-right: 10px;
  color: var(--gold);
  font-weight: 950;
}
.videoMeta { margin-top: 6px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.cardActions, .miniActions, .inlinePicker {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cardActions { margin-top: 12px; }
.inlinePicker {
  margin-top: 13px;
  padding: 10px;
  border: 1px solid #2d3645;
  border-radius: 6px;
  background: #090d13;
}
.inlinePicker select { flex: 1 1 280px; min-width: 0; }
.channelEditor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #3f3340;
  border-radius: 8px;
  background: linear-gradient(180deg, #10151d, #090d13);
}
.channelEditor .full { grid-column: 1 / 2; }
.channelThumb {
  width: 180px;
  aspect-ratio: 16 / 9;
  border: 1px solid #4b5567;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  background: #0a0f16 center / cover no-repeat;
}
.rowBuilder { display: grid; gap: 12px; }
/* While a rows/FAST mutation is in flight, dim + block the builder lists so the
   serialized request finishes before another action starts. */
body.builderBusy #rowList,
body.builderBusy #fastList { opacity: .7; pointer-events: none; transition: opacity .15s var(--ease); }
body.builderBusy #rowList .titleInput,
body.builderBusy #fastList input,
body.builderBusy #fastList textarea { pointer-events: auto; }
.builderRow { padding: 14px; }
.builderTop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.builderVideos { display: grid; gap: 8px; margin-top: 12px; }
.playlistItem {
  width: 100%;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #2f3948;
  border-radius: 8px;
  background: #070b10;
  padding: 10px;
}
.playlistThumb {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a2130, #391016) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
}
.playlistInfo { min-width: 0; }
.chip { border: 1px solid #3d4757; background: #111720; border-radius: 999px; padding: 8px 10px; color: var(--muted); font-size: 12px; }
.chipBtn {
  height: auto;
  padding: 0 0 0 8px;
  border: 0;
  background: transparent;
  color: #ff9da1;
  font-size: 11px;
}
.chipBtn:hover { background: transparent; color: #fff; }
.tableLite { display: grid; gap: 8px; }
.tableRow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px; align-items: center; }
.tableRow span { color: var(--muted); font-size: 12px; }
.analyticsCard {
  border: 1px solid #343e4e;
  border-radius: 8px;
  background: linear-gradient(180deg, #111720, #090d13);
  padding: 14px;
  cursor: pointer;
}
.analyticsCard:hover { border-color: #5a6577; }
.analyticsCard.notClickable { cursor: default; }
.analyticsCard.notClickable:hover { border-color: #343e4e; }
.analyticsCard.currentPromotion {
  border-color: rgba(74,222,128,.65);
  box-shadow: 0 0 0 1px rgba(74,222,128,.18), 0 18px 55px rgba(0,0,0,.24);
}
.analyticsCard.currentPromotion .builderTitle { color: var(--green); }
.videoAnalytic.fastChannelRow { background: rgba(74,222,128,.08); border-left: 3px solid var(--green); border-radius: 6px; }
.top10Tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #f5d90a; border: 1px solid rgba(245,217,10,.5); border-radius: 999px; padding: 1px 7px; vertical-align: middle; margin-left: 6px; }
.metricStrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.metricStrip span {
  border: 1px solid #2e3848;
  border-radius: 6px;
  background: #0b1017;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}
.metricStrip strong { display: block; color: var(--gold); font-size: 20px; margin-bottom: 3px; }
.analyticsDetails {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2e3848;
}
.videoAnalytic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  background: #070b10;
  color: var(--muted);
  font-size: 12px;
}
.videoAnalytic span:first-child { color: var(--text); font-weight: 800; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heroPanel, .split, .loginGrid, .formGrid, .stats, .channelEditor, .metricStrip, .videoAnalytic, .playlistItem, .artPreviewGrid, .metadataGrid { grid-template-columns: 1fr; }
  .metadataEditor { padding: 14px; }
}
