:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --ink: #17201b;
  --muted: #607067;
  --line: #dce4de;
  --primary: #206a4b;
  --primary-dark: #164c36;
  --primary-action-border: rgba(242, 199, 102, 0.28);
  --primary-action-border-hover: rgba(242, 199, 102, 0.48);
  --primary-action-bg: linear-gradient(180deg, rgba(22, 36, 25, 0.86), rgba(3, 12, 7, 0.88));
  --primary-action-bg-hover: linear-gradient(180deg, rgba(35, 52, 34, 0.92), rgba(10, 24, 15, 0.92));
  --primary-action-text: #f7fff9;
  --primary-action-text-hover: #fff7df;
  --primary-action-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(242, 199, 102, 0.14);
  --primary-action-shadow-hover: 0 16px 38px rgba(0, 0, 0, 0.28), 0 0 26px rgba(242, 199, 102, 0.1), inset 0 1px 0 rgba(242, 199, 102, 0.2);
  --danger: #a33b3b;
  --warning-bg: #fff7df;
}

.owner-analytics-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 56px);
  padding: 16px;
  color: rgba(247, 255, 249, 0.92);
}

.owner-analytics-head,
.owner-panel,
.owner-metric-grid article {
  border: 1px solid rgba(171, 255, 205, 0.13);
  background: rgba(3, 15, 10, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.owner-analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
}

.owner-kicker {
  display: block;
  margin-bottom: 4px;
  color: rgba(171, 255, 205, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.owner-analytics-head h1,
.owner-panel-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.owner-analytics-head h1 {
  font-size: 22px;
  line-height: 1.15;
}

.owner-range-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(171, 255, 205, 0.13);
  border-radius: 9px;
  background: rgba(3, 12, 8, 0.72);
}

.owner-range-switcher a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: rgba(247, 255, 249, 0.68);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.owner-range-switcher a:hover,
.owner-range-switcher a.active {
  background: rgba(171, 255, 205, 0.12);
  color: rgba(247, 255, 249, 0.96);
}

.owner-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.owner-metric-grid article {
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 14px;
  border-radius: 10px;
}

.owner-metric-grid span,
.owner-metric-grid em,
.owner-panel-head span,
.owner-users-table small,
.owner-empty {
  color: rgba(210, 232, 219, 0.62);
}

.owner-metric-grid span {
  font-size: 12px;
  font-weight: 760;
}

.owner-metric-grid strong {
  color: rgba(247, 255, 249, 0.98);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.owner-metric-grid em {
  font-size: 12px;
  font-style: normal;
}

.owner-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 14px;
}

.owner-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}

.owner-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(171, 255, 205, 0.1);
}

.owner-panel-head h2 {
  color: rgba(247, 255, 249, 0.96);
  font-size: 15px;
}

.owner-panel-head span {
  font-size: 12px;
  text-align: right;
}

.owner-table-wrap {
  overflow: auto;
}

.owner-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.owner-users-table {
  min-width: 980px;
}

.owner-table th,
.owner-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(171, 255, 205, 0.08);
  color: rgba(247, 255, 249, 0.86);
  font-size: 12px;
  line-height: 1.25;
  vertical-align: top;
}

.owner-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(5, 18, 12, 0.96);
  color: rgba(210, 232, 219, 0.7);
  font-size: 11px;
  font-weight: 780;
  text-align: left;
  text-transform: uppercase;
}

.owner-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.owner-table tbody tr:hover td {
  background: rgba(171, 255, 205, 0.055);
}

.owner-users-table strong,
.owner-users-table small {
  display: block;
}

.owner-users-table strong {
  color: rgba(247, 255, 249, 0.94);
  font-weight: 760;
}

.owner-empty {
  height: 84px;
  text-align: center;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .owner-analytics-head,
  .owner-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-metric-grid,
  .owner-analytics-grid {
    grid-template-columns: 1fr;
  }

  .owner-range-switcher {
    width: 100%;
    overflow-x: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-body,
body.video-sandbox-body {
  background: #020604;
}

body.app-theme-jungle {
  --app-sidebar-width: 220px;
  --app-jungle-bg:
    linear-gradient(180deg, rgba(2, 6, 4, 0.72), rgba(6, 17, 12, 0.86)),
    url("/static/controlplate_site/images/sandbox-leaf-projection-bg.jpg") center center / cover no-repeat fixed,
    radial-gradient(circle at 18% -12%, rgba(82, 255, 168, 0.22), transparent 28%),
    radial-gradient(circle at 78% 6%, rgba(103, 232, 249, 0.16), transparent 28%),
    radial-gradient(circle at 46% 118%, rgba(22, 163, 74, 0.18), transparent 35%),
    linear-gradient(180deg, #020604 0%, #06110c 44%, #0b1510 100%);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: #020604;
}

body.app-theme-jungle::before {
  content: "";
  position: fixed;
  inset: 0 0 0 var(--app-sidebar-width);
  z-index: 0;
  pointer-events: none;
  background: var(--app-jungle-bg);
}

body.app-theme-jungle > .shell {
  position: relative;
  z-index: 1;
}

body.channel-collections-body {
  background: #020604;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: var(--app-sidebar-width, 220px);
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.2), rgba(3, 8, 5, 0.78)),
    url("/static/controlplate_site/images/sidebar-jungle-car.png") 32% bottom / cover no-repeat,
    #132a21;
  color: #f7fff9;
  box-shadow: 16px 0 40px rgba(19, 42, 33, 0.12);
}

.brand {
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 16px;
  margin-top: 22px;
}

.side-nav-section {
  display: grid;
  gap: 6px;
}

.side-nav-section-admin {
  position: relative;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 255, 249, 0.14);
}

.side-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: rgba(247, 255, 249, 0.74);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.side-nav a.active {
  border: 1px solid rgba(82, 255, 168, 0.22);
  background: rgba(82, 255, 168, 0.12);
  color: #bbf7d0;
  box-shadow: inset 0 1px 0 rgba(236, 255, 244, 0.06);
}

.sidebar-foot {
  display: grid;
  gap: 8px;
  color: rgba(247, 255, 249, 0.66);
  font-size: 13px;
  line-height: 1.25;
}

.app-sidebar .link-button,
.app-sidebar a {
  color: inherit;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a,
.link-button {
  color: var(--muted);
  text-decoration: none;
}

.link-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 28px auto 48px;
}

.app-sidebar + .shell {
  width: min(1180px, calc(100vw - 252px));
  margin: 28px 16px 48px 236px;
}

.app-sidebar + .shell.channel-shell {
  width: calc(100vw - 268px);
  max-width: none;
}

.report-page {
  overflow: hidden;
}

.shell.report-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 64px);
  margin: 0;
  padding: 12px;
}

.app-sidebar + .shell.report-shell {
  width: calc(100vw - 220px);
  height: 100vh;
  margin: 0 0 0 220px;
}

.page-heading,
.auth-panel,
.split {
  display: grid;
  gap: 20px;
}

.page-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 22px;
}

.page-heading.compact {
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.muted,
.item-card p,
td span {
  color: var(--muted);
}

.auth-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.auth-actions,
.panel,
.item-card,
.empty-state,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.auth-actions,
.panel,
.empty-state {
  padding: 22px;
}

.user-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.user-admin-tabs a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d7e4dc;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.user-admin-tabs a.active,
.user-admin-tabs a:hover {
  border-color: rgba(32, 106, 75, 0.28);
  background: #e8f5ef;
  color: var(--primary);
}

.user-create-panel {
  margin-bottom: 16px;
  border-color: #d7e4dc;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
}

.user-create-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

.user-create-form label {
  display: grid;
  gap: 7px;
  color: #31443a;
  font-size: 13px;
  font-weight: 760;
}

.user-create-form input,
.user-create-form select {
  width: 100%;
}

.user-create-form .errorlist {
  margin: 0;
  padding-left: 18px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 650;
}

.input-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.user-create-active {
  align-self: center;
  padding-bottom: 10px;
}

.created-credentials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(32, 106, 75, 0.24);
  border-radius: 8px;
  background: #e8f5ef;
}

.created-credentials strong,
.created-credentials span {
  display: block;
}

.created-credentials span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.created-credentials pre {
  grid-column: 1 / -1;
  margin: 0;
  overflow-x: auto;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #183126;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.user-list-heading {
  padding: 16px 18px 0;
}

.auth-body.app-theme-jungle::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 4, 2, 0.08) 0%, rgba(1, 4, 2, 0.1) 46%, rgba(1, 4, 2, 0.5) 100%),
    linear-gradient(180deg, rgba(1, 4, 2, 0.1) 0%, rgba(1, 4, 2, 0.08) 52%, rgba(1, 4, 2, 0.34) 100%),
    url("/static/controlplate_site/images/auth-login-jungle-path.png") center center / cover no-repeat fixed,
    #020604;
}

.auth-body .topbar {
  display: none;
}

.auth-body .topbar .brand {
  color: #ecfff4;
}

.auth-body .topbar .nav a {
  color: rgba(236, 255, 244, 0.72);
}

.auth-body .topbar .nav a:hover {
  color: #bbf7d0;
}

.shell.auth-shell {
  display: grid;
  grid-template: "auth" 1fr / 1fr;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  margin: 0;
  padding: 30px clamp(18px, 3vw, 46px);
  align-items: center;
  justify-items: end;
}

.auth-shell .messages {
  grid-area: auth;
  align-self: center;
  justify-self: end;
  width: min(430px, calc(100vw - 36px));
  transform: translate(-30%, -330px);
}

.auth-card {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 18px;
  overflow: hidden;
  padding: 12px;
  border-color: rgba(171, 255, 205, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(2, 8, 5, 0.84), rgba(9, 30, 20, 0.76)),
    rgba(2, 8, 5, 0.74);
  color: #ecfff4;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(236, 255, 244, 0.08);
  backdrop-filter: blur(20px);
}

.auth-card-floating {
  grid-area: auth;
  align-self: center;
  justify-self: end;
  width: min(430px, calc(100vw - 36px));
  grid-template-columns: 1fr;
  gap: 0;
  padding: 9px;
  transform: translate(-30%, 0);
  border-color: rgba(245, 196, 101, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7, 15, 10, 0.52), rgba(1, 5, 3, 0.72)),
    rgba(1, 5, 3, 0.52);
  box-shadow:
    0 24px 90px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(236, 255, 244, 0.04),
    inset 0 1px 0 rgba(236, 255, 244, 0.1);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 6%, rgba(82, 255, 168, 0.18), transparent 32%),
    radial-gradient(circle at 86% 82%, rgba(103, 232, 249, 0.1), transparent 28%);
  pointer-events: none;
}

.auth-copy {
  display: grid;
  align-content: end;
  min-height: 430px;
  padding: 34px;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(2, 6, 4, 0.08), rgba(2, 6, 4, 0.52)),
    url("/static/controlplate_site/images/sidebar-jungle-car.png") center bottom / cover no-repeat,
    #06110c;
}

.auth-copy .eyebrow {
  color: #bbf7d0;
  letter-spacing: 0;
}

.auth-copy h1 {
  margin-bottom: 12px;
  color: #f7fff9;
  font-size: 46px;
  font-weight: 840;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(236, 255, 244, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.auth-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.auth-signal-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(171, 255, 205, 0.16);
  border-radius: 999px;
  background: rgba(2, 8, 5, 0.58);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 760;
}

.auth-card .auth-actions {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
  border-color: rgba(171, 255, 205, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(6, 17, 12, 0.9), rgba(2, 8, 5, 0.9)),
    rgba(2, 8, 5, 0.86);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(236, 255, 244, 0.07);
}

.auth-actions-head {
  display: grid;
  gap: 6px;
}

.auth-actions-head .eyebrow {
  margin: 0 0 3px;
  color: #f2c766;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
}

.auth-actions-head h1,
.auth-actions-head h2 {
  margin: 0;
  color: #f7fff9;
  font-size: 22px;
  font-weight: 820;
}

.auth-actions-head p {
  margin: 0;
  color: rgba(137, 169, 154, 0.94);
  font-size: 13px;
  line-height: 1.45;
}

.auth-card .divider {
  margin: 0;
  color: rgba(137, 169, 154, 0.9);
}

.auth-card .divider::before,
.auth-card .divider::after {
  background: rgba(171, 255, 205, 0.12);
}

.auth-google-button {
  gap: 10px;
  min-height: 42px;
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  box-shadow: var(--primary-action-shadow);
}

.auth-google-button svg {
  width: 18px;
  height: 18px;
}

.auth-card .form-stack {
  gap: 13px;
}

.auth-card label,
.auth-card .form-stack p {
  color: rgba(236, 255, 244, 0.74);
  font-size: 13px;
  font-weight: 680;
}

.auth-card input {
  border-color: rgba(171, 255, 205, 0.16);
  border-radius: 9px;
  background: rgba(2, 8, 5, 0.68);
  color: #ecfff4;
  box-shadow:
    inset 0 1px 0 rgba(236, 255, 244, 0.06),
    0 1px 0 rgba(82, 255, 168, 0.04);
}

.auth-card input:focus {
  border-color: rgba(82, 255, 168, 0.58);
  outline: 2px solid rgba(82, 255, 168, 0.24);
  outline-offset: 1px;
}

.auth-card input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: #52ffa8;
}

.auth-card .checkbox-row {
  display: flex;
}

.auth-submit-button {
  border-color: rgba(171, 255, 205, 0.16);
  background: rgba(2, 8, 5, 0.64);
  color: #ecfff4;
}

.auth-submit-button:hover {
  border-color: rgba(82, 255, 168, 0.34);
  background: rgba(13, 39, 26, 0.86);
  color: #bbf7d0;
}

.auth-card .form-note {
  color: rgba(137, 169, 154, 0.94);
  font-size: 13px;
}

.auth-card .form-note a {
  color: #bbf7d0;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

label,
.form-stack p {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  box-shadow: var(--primary-action-shadow);
}

.button.primary:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.button.danger {
  border-color: #f1cccc;
  color: var(--danger);
}

.button.ghost {
  background: #fff;
  color: var(--ink);
}

.button.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.grid-list {
  display: grid;
  gap: 14px;
}

.collection-create {
  margin-bottom: 16px;
  border-color: #d7e4dc;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
  box-shadow: 0 10px 24px rgba(29, 68, 48, 0.06);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.collection-grid {
  display: grid;
  gap: 14px;
}

.collection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(22, 44, 32, 0.035);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.managed-collection-card:hover {
  border-color: #b8d5c4;
  box-shadow: 0 8px 22px rgba(29, 68, 48, 0.07);
}

.managed-collection-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.managed-collection-card.pinned {
  border-color: rgba(32, 106, 75, 0.32);
  background: linear-gradient(90deg, #eaf8f0 0%, #fff 48%);
}

.managed-collection-card.kind-favorites {
  border-color: rgba(194, 31, 70, 0.28);
  background: linear-gradient(90deg, #ffecef 0%, #fff 48%);
  box-shadow: 0 5px 16px rgba(194, 31, 70, 0.055);
}

.managed-collection-card.kind-excluded {
  border-color: #cfd7d2;
  background: linear-gradient(90deg, #eef1ef 0%, #fff 48%);
  box-shadow: 0 8px 20px rgba(52, 64, 80, 0.05);
}

.managed-collection-card.kind-default {
  border-color: rgba(32, 106, 75, 0.26);
  background: linear-gradient(90deg, #eef8f2 0%, #fff 48%);
}

.managed-collection-card.kind-custom:not(.pinned) {
  border-color: #d2e4d9;
  background: linear-gradient(90deg, #f6fbf8 0%, #fff 48%);
}

.collection-grip {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  gap: 4px;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #8aa096;
  cursor: grab;
}

.collection-grip:hover {
  background: #e8f5ef;
  color: var(--primary);
}

.collection-grip:active {
  cursor: grabbing;
}

.collection-grip span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.managed-collection-card.dragging {
  opacity: 0.55;
  outline: 2px solid rgba(32, 106, 75, 0.28);
  transform: none;
}

.collection-main {
  min-width: 0;
}

.collection-row-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 7px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.collection-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.collection-title-row h2 {
  margin-bottom: 0;
  color: #14251b;
  font-weight: 900;
}

.collection-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.icon-button-ui {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e4dc;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(22, 44, 32, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.icon-button-ui svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button-ui:hover,
.icon-button-ui.active {
  border-color: #9fd3b4;
  background: #e5f6ec;
  color: var(--primary);
  transform: translateY(-1px);
}

.managed-collection-card.kind-favorites .icon-button-ui.active {
  border-color: rgba(194, 31, 70, 0.28);
  background: #ffe3e9;
  color: #c21f46;
}

.icon-button-ui.danger:hover {
  border-color: #efc4c4;
  background: #fff1f1;
  color: var(--danger);
}

.collection-card h2 {
  margin-bottom: 6px;
}

.collection-count-badge {
  display: grid;
  min-width: 88px;
  gap: 4px;
  justify-items: end;
  padding: 4px 0 4px 16px;
  border-left: 1px solid #d8e5dd;
  background: transparent;
}

.collection-count-badge strong {
  color: #1c2b22;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
}

.collection-count-badge span {
  color: #718179;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  text-transform: none;
}

.managed-collection-card.kind-favorites .collection-count-badge {
  border-left-color: rgba(194, 31, 70, 0.18);
}

.managed-collection-card.kind-favorites .collection-count-badge strong {
  color: #7c2a3c;
}

.managed-collection-card.kind-excluded .collection-count-badge {
  border-left-color: #cfd7d2;
}

.managed-collection-card.kind-excluded .collection-count-badge strong {
  color: #47524c;
}

.managed-collection-card.kind-default .collection-count-badge,
.managed-collection-card.pinned .collection-count-badge {
  border-left-color: #b9dec8;
}

.managed-collection-card.kind-default .collection-count-badge strong,
.managed-collection-card.pinned .collection-count-badge strong {
  color: #1d5a3d;
}

.collection-settings-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(260px, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}

.collection-settings-panel[hidden] {
  display: none;
}

.collection-settings-panel label {
  color: #4c6056;
  font-size: 12px;
  font-weight: 900;
}

.collection-settings-panel input,
.collection-settings-panel textarea {
  border-color: #c9dbd1;
  background: #fff;
}

.collection-settings-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.collection-card p {
  margin: 0;
  color: #5a6c62;
  font-weight: 650;
}

.collection-meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 10px;
  margin: 0;
  font-size: 13px;
}

.collection-meta dt {
  color: var(--muted);
}

.collection-meta dd {
  margin: 0;
  font-weight: 750;
}

.item-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.channel-list-table table {
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

.channel-list-table {
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  background: #fff;
}

.sticky-table.channel-list-table thead th {
  border-bottom: 1px solid #d7e4dc;
  background: linear-gradient(180deg, #f5faf7 0%, #eef5f0 100%);
  color: #44534b;
}

.channel-list-table tbody tr {
  background: #fff;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.channel-list-table tbody tr:nth-child(even) {
  background: #fbfdfb;
}

.channel-list-table tbody tr:hover {
  background: #f2faf5;
  box-shadow: inset 4px 0 0 #53a77a;
}

.channel-list-table td {
  border-bottom-color: #e2ebe5;
}

.sticky-table {
  max-height: calc(100vh - 90px);
  overflow: auto;
}

.sticky-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fbfcfc;
}

.channel-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 280px;
}

.channel-avatar-wrap {
  position: relative;
  width: 102px;
  height: 78px;
}

.channel-avatar-wrap .channel-mini-actions {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.channel-row-avatar {
  display: block;
  margin-left: 28px;
  width: 78px;
  height: 78px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px #d8e4dd, 0 8px 18px rgba(29, 68, 48, 0.12);
  object-fit: cover;
}

.channel-row-avatar.placeholder {
  display: block;
}

.table-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #14251b;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.sort-link {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-right: 14px;
  align-items: center;
  color: inherit;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
}

.sort-link::after {
  position: absolute;
  top: 0;
  right: 0;
  color: #93a199;
  content: "";
  font-size: 10px;
  line-height: 1;
}

.sort-link.active {
  color: var(--primary);
}

.sort-link.active.dir-asc::after {
  content: "↑";
}

.sort-link.active.dir-desc::after {
  content: "↓";
}

.sort-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
}

.row-actions a {
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.row-actions a:hover {
  text-decoration: underline;
}

.analytics-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #bcdcc9;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5fbf7 0%, #e9f6ef 100%);
  color: var(--primary);
  line-height: 1;
  box-shadow: 0 3px 8px rgba(32, 106, 75, 0.08);
}

.analytics-link:hover {
  border-color: #8fc8a8;
  background: #e1f2e9;
  text-decoration: none;
}

.analytics-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.video-detail-link {
  border-color: #d6dde7;
  background: linear-gradient(180deg, #fbfcff 0%, #eef3f8 100%);
  color: #31445d;
}

.video-detail-link:hover {
  border-color: #a8b7ca;
  background: #edf3fa;
  color: #22344b;
}

.video-row-actions {
  margin-top: 7px;
}

.channel-state-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.state-badge.favorite {
  border-color: #f0b4c2;
  background: #fff1f4;
  color: #c21f46;
}

.state-badge.archive {
  border-color: #cbd3dd;
  background: #eef2f6;
  color: #384252;
}

.state-badge.folder {
  border-color: #b9dec8;
  background: #eaf8f0;
  color: #17603f;
}

.channel-mini-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3px;
  margin-top: 0;
}

.channel-mini-actions .channel-action-status {
  min-width: 64px;
  min-height: auto;
  font-size: 11px;
}

.channel-mini-actions .folder-menu {
  top: 34px;
  left: 0;
  right: auto;
}

.floating-folder-menu {
  position: fixed;
  top: 0;
  right: auto;
  left: 0;
}

.channel-profile-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.channel-profile-avatar-link {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 50%;
}

.channel-profile-avatar {
  display: block;
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
}

.channel-profile-avatar.placeholder {
  display: block;
}

.channel-profile-main {
  min-width: 0;
}

.channel-profile-main h1 {
  margin-bottom: 6px;
  font-size: 30px;
  line-height: 1.08;
}

.channel-profile-main h1 a {
  color: var(--ink);
  text-decoration: none;
}

.channel-profile-main h1 a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.channel-profile-subline {
  margin: 0;
}

.channel-action-card {
  position: relative;
  display: grid;
  justify-self: end;
  align-self: start;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.channel-state-actions,
.profile-actions {
  display: grid;
  grid-template-columns: auto auto 42px;
  gap: 8px;
  justify-content: end;
}

.icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.icon-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-toggle.active svg {
  fill: currentColor;
}

.icon-toggle:hover {
  border-color: #b8c7bd;
  color: var(--ink);
  transform: translateY(-1px);
}

.icon-toggle.active {
  border-color: #ef7d9a;
  background: #fff1f4;
  color: #c21f46;
}

.icon-toggle.folder.active {
  border-color: #b9dec8;
  background: #f1faf5;
  color: var(--primary);
}

.icon-toggle.archive.active {
  border-color: #aab4c2;
  background: #eef2f6;
  color: #384252;
}

.icon-toggle.folder {
  color: var(--primary);
}

.icon-toggle.icon-only {
  width: 42px;
  max-width: 42px;
  padding: 0;
}

.icon-toggle span[aria-hidden="true"] {
  font-size: 16px;
  line-height: 1;
}

.icon-toggle.mini {
  width: 22px;
  min-height: 22px;
  padding: 0;
  border-color: #d7e4dc;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.icon-toggle.mini:hover {
  border-color: #9fcab0;
  background: #f0faf4;
  color: var(--primary);
}

.icon-toggle.mini.active {
  border-color: #ef9aad;
  background: #ffe8ee;
  color: #c21f46;
}

.icon-toggle.mini.archive.active {
  border-color: #aab4c2;
  background: #e9eef5;
  color: #344050;
}

.icon-toggle.mini.folder.active {
  border-color: #9fd3b4;
  background: #e5f6ec;
  color: #17603f;
}

.icon-toggle.mini svg {
  width: 12px;
  height: 12px;
}

.channel-action-status,
.video-action-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-badges {
  margin-top: 0;
}

.channel-v2-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.channel-v2-avatar-link,
.channel-v2-avatar {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
}

.channel-v2-avatar {
  border: 1px solid var(--line);
  background: var(--surface-2);
  object-fit: cover;
}

.channel-v2-title h1 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.08;
}

.channel-v2-title h1 a {
  color: var(--ink);
  text-decoration: none;
}

.channel-v2-title h1 a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.v2-action-card {
  background: transparent;
}

.v2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.v2-kpi-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.v2-kpi-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.v2-kpi-grid strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 16px;
  margin-bottom: 16px;
}

.v2-diagnosis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
}

.v2-diagnosis h2,
.v2-data-health h2,
.v2-section-head h2 {
  margin: 0;
}

.v2-diagnosis p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.v2-diagnosis dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.v2-diagnosis dl div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.v2-diagnosis dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.v2-diagnosis dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.v2-section {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.v2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.v2-section-head.compact {
  margin-bottom: 10px;
}

.v2-section-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.v2-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.v2-limit-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
}

.v2-limit-switch a {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.v2-limit-switch a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
}

.v2-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.v2-video-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcfc;
}

.v2-video-card > a {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.v2-video-card img,
.v2-video-card .thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-video-card > div {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.video-card-detail-link {
  justify-self: start;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d6dde7;
  border-radius: 999px;
  background: #f4f7fa;
  color: #31445d;
  font-size: 11px;
  font-weight: 850;
  line-height: 24px;
  text-decoration: none;
}

.video-card-detail-link:hover {
  border-color: #a8b7ca;
  background: #edf3fa;
  color: #22344b;
}

.v2-video-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.v2-video-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.v2-video-card strong,
.v2-video-card em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.v2-video-card strong {
  background: #e8f5ef;
  color: var(--primary);
}

.v2-video-card em {
  background: #f1f3f5;
  color: #384252;
}

.v2-compact-list {
  display: grid;
  gap: 8px;
}

.v2-video-card.compact {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
}

.v2-video-card.compact > a {
  height: 86px;
  aspect-ratio: auto;
}

.v2-bars {
  display: grid;
  gap: 9px;
}

.v2-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.v2-bars span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-bars strong {
  color: var(--muted);
  font-size: 12px;
}

.v2-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.recipe-insight-section {
  overflow: hidden;
}

.recipe-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 16px;
  align-items: start;
}

.recipe-main-panel,
.recipe-side-panel {
  min-width: 0;
}

.recipe-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.recipe-stat-strip div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #dbe5df;
  border-radius: 8px;
  background: #f7faf8;
}

.recipe-stat-strip span,
.recipe-stat-strip em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-stat-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.recipe-stat-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
}

.recipe-stat-strip em {
  margin-top: 4px;
  color: #6b766f;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.recipe-focus-list {
  display: grid;
  gap: 8px;
}

.recipe-focus-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 0.8fr) minmax(210px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.recipe-focus-row:first-child {
  border-top: 0;
}

.recipe-focus-title {
  min-width: 0;
}

.recipe-focus-title strong,
.recipe-focus-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-focus-title strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.recipe-focus-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.recipe-focus-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf0;
}

.recipe-focus-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #177a53, #9c6f2d);
}

.recipe-focus-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  min-width: 0;
}

.recipe-focus-stats span,
.recipe-samples a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.recipe-focus-stats span {
  padding: 0 8px;
  background: #f1f4f2;
  color: #3f4d45;
}

.recipe-samples {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.recipe-samples a {
  justify-content: center;
  width: 24px;
  border: 1px solid #d3ded7;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
}

.recipe-samples a:hover {
  border-color: rgba(23, 122, 83, 0.36);
  background: #e8f5ef;
}

.recipe-side-panel {
  display: grid;
  gap: 16px;
  padding: 12px;
  border: 1px solid #dde5ea;
  border-radius: 8px;
  background: #fbfcfc;
}

.recipe-side-panel .eyebrow {
  margin-bottom: 8px;
}

.recipe-mini-bars {
  gap: 8px;
}

.recipe-mini-bars span {
  font-size: 12px;
}

.recipe-mini-bars i {
  background: #9c6f2d;
}

.v2-month-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 180px;
  padding-top: 12px;
}

.v2-month-bars div {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 5px;
  align-items: end;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.v2-month-bars strong {
  align-self: end;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.v2-month-bars i {
  display: block;
  min-height: 8px;
  border-radius: 4px 4px 0 0;
  background: #9cc8b2;
}

.v2-month-bars span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  writing-mode: vertical-rl;
}

.v2-sort-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
}

.v2-sort-toolbar a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.v2-sort-toolbar button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfc;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.v2-sort-toolbar a:hover,
.v2-sort-toolbar a.active,
.v2-sort-toolbar button:hover,
.v2-sort-toolbar button.active {
  border-color: rgba(23, 122, 83, 0.32);
  background: #e8f5ef;
  color: var(--primary);
}

.v2-video-table-section {
  padding-bottom: 10px;
}

.v2-video-table-wrap {
  max-height: min(760px, calc(100vh - 180px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.v2-video-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.v2-video-table th,
.v2-video-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.v2-video-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f7f8f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.v2-video-table th a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.v2-video-table th a:hover {
  color: var(--primary);
}

.v2-video-table tbody tr:hover {
  background: #fbfcfc;
}

.v2-video-table .numeric {
  color: #273242;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.v2-video-table .emphasis {
  color: var(--primary);
}

.v2-table-video-cell {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.v2-table-thumb {
  display: block;
  width: 112px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}

.v2-table-thumb img,
.v2-table-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-table-video-cell a:not(.v2-table-thumb) {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v2-table-video-cell a:not(.v2-table-thumb):hover {
  color: var(--primary);
  text-decoration: underline;
}

.v2-table-video-cell p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.v2-vph-spark {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 150px;
  height: 42px;
  padding: 16px 46px 5px 6px;
  border: 1px solid #e3ebe7;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfffd 0%, #f2f7f4 100%);
}

.v2-vph-spark span {
  flex: 1 1 0;
  min-width: 4px;
  border-radius: 999px 999px 2px 2px;
  background: var(--primary);
}

.v2-vph-spark span.negative {
  background: #b5534d;
}

.v2-vph-spark strong {
  position: absolute;
  top: 5px;
  right: 7px;
  max-width: 58px;
  overflow: hidden;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-vph-spark em {
  margin: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.app-sidebar:has(+ .shell.channel-shell .channel-detail-page) {
  border-right-color: rgba(171, 255, 205, 0.12);
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.2), rgba(3, 8, 5, 0.78)),
    url("/static/controlplate_site/images/sidebar-jungle-car.png") 32% bottom / cover no-repeat,
    #020604;
  color: #ecfff4;
  box-shadow: 16px 0 60px rgba(0, 0, 0, 0.28);
}

.app-sidebar:has(+ .shell.channel-shell .channel-detail-page) a {
  color: #e7fff0;
}

.app-sidebar:has(+ .shell.channel-shell .channel-detail-page) a:hover {
  background: rgba(82, 255, 168, 0.08);
  color: #bbf7d0;
}

.app-sidebar:has(+ .shell.channel-shell .channel-detail-page) .brand {
  color: #f4fff8;
}

.app-sidebar:has(+ .shell.channel-shell .channel-detail-page) .sidebar-foot {
  color: #89a99a;
}

.app-sidebar + .shell.channel-shell:has(.channel-detail-page) {
  width: calc(100vw - 220px);
  max-width: none;
  margin: 0 0 0 220px;
  padding: 12px;
  background: transparent;
}

.channel-detail-page {
  --jungle-night-0: #020604;
  --jungle-night-1: #06110c;
  --jungle-night-2: #0a1b12;
  --jungle-night-3: #0f2619;
  --jungle-panel: rgba(6, 17, 12, 0.86);
  --jungle-panel-solid: #07140e;
  --jungle-panel-soft: rgba(12, 38, 25, 0.76);
  --jungle-border: rgba(171, 255, 205, 0.16);
  --jungle-border-strong: rgba(171, 255, 205, 0.34);
  --jungle-leaf: #bbf7d0;
  --jungle-leaf-strong: #52ffa8;
  --jungle-cyan: #67e8f9;
  --jungle-warn: #facc15;
  --jungle-danger: #fb7185;
  --jungle-text: #ecfff4;
  --jungle-muted: #89a99a;
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 24px);
  color: var(--jungle-text);
  font-feature-settings: "tnum" 1, "ss01" 1;
}

.channel-detail-page > *,
.channel-detail-commandbar,
.channel-detail-back,
.channel-detail-external,
.channel-detail-command-meta,
.channel-detail-page .channel-v2-hero,
.channel-detail-page .channel-v2-title,
.channel-detail-page .channel-action-card,
.channel-detail-page .v2-section,
.channel-detail-page .panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.channel-detail-commandbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 42px;
  align-items: center;
}

.channel-detail-back,
.channel-detail-external,
.channel-detail-command-meta {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.channel-detail-back,
.channel-detail-external {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(171, 255, 205, 0.14);
  border-radius: 8px;
  background: rgba(2, 8, 5, 0.5);
  color: var(--jungle-leaf);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.channel-detail-back:hover,
.channel-detail-external:hover {
  border-color: rgba(82, 255, 168, 0.34);
  background: rgba(13, 39, 26, 0.78);
}

.channel-detail-back svg,
.channel-detail-external svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.channel-detail-command-meta {
  justify-content: center;
  color: var(--jungle-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.channel-detail-command-meta span {
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 999px;
  background: rgba(2, 8, 5, 0.38);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-detail-page .channel-v2-hero,
.channel-detail-page .v2-kpi-grid article,
.channel-detail-page .v2-section,
.channel-detail-page .panel,
.channel-detail-page .recipe-side-panel {
  border: 1px solid rgba(171, 255, 205, 0.13);
  background:
    linear-gradient(180deg, rgba(6, 17, 12, 0.88), rgba(2, 8, 5, 0.82)),
    rgba(2, 8, 5, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(236, 255, 244, 0.06),
    0 18px 70px rgba(0, 0, 0, 0.2);
}

.channel-detail-page .channel-v2-hero {
  grid-template-columns: 112px minmax(0, 1fr) minmax(220px, 310px);
  gap: 16px;
  margin-bottom: 0;
  padding: 16px;
  border-radius: 12px;
}

.channel-detail-page .channel-v2-avatar-link,
.channel-detail-page .channel-v2-avatar {
  width: 112px;
  height: 112px;
}

.channel-detail-page .channel-v2-avatar-link {
  overflow: hidden;
  border: 1px solid rgba(171, 255, 205, 0.2);
  background: rgba(13, 39, 26, 0.56);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.channel-detail-page .channel-v2-avatar {
  border: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(82, 255, 168, 0.12), transparent 34%),
    rgba(2, 8, 5, 0.82);
}

.channel-detail-page .channel-v2-title {
  min-width: 0;
}

.channel-detail-page .eyebrow {
  margin-bottom: 7px;
  color: rgba(187, 247, 208, 0.76);
  font-size: 10.5px;
  font-weight: 860;
  letter-spacing: 0;
}

.channel-detail-page .channel-v2-title h1 {
  max-width: 980px;
  margin: 0 0 10px;
  color: #f4fff8;
  font-size: 25px;
  font-weight: 840;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.channel-detail-page .channel-v2-title h1 a,
.channel-detail-page .v2-table-video-cell a:not(.v2-table-thumb),
.channel-detail-page .v2-video-card .title-link {
  color: inherit;
  text-decoration: none;
}

.channel-detail-page .channel-v2-title h1 a:hover,
.channel-detail-page .v2-table-video-cell a:not(.v2-table-thumb):hover,
.channel-detail-page .v2-video-card .title-link:hover {
  color: var(--jungle-leaf);
  text-decoration: none;
}

.channel-detail-page .state-badge {
  border-color: rgba(171, 255, 205, 0.12);
  background: rgba(13, 39, 26, 0.5);
  color: rgba(236, 255, 244, 0.74);
}

.channel-detail-page .state-badge.favorite {
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.channel-detail-page .state-badge.archive {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.channel-detail-page .state-badge.folder {
  border-color: rgba(82, 255, 168, 0.24);
  background: rgba(82, 255, 168, 0.08);
  color: var(--jungle-leaf);
}

.channel-detail-page .channel-action-card {
  justify-self: stretch;
  align-self: center;
  width: 100%;
}

.channel-detail-page .channel-state-actions {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.channel-detail-page .icon-toggle {
  min-height: 36px;
  border-color: rgba(171, 255, 205, 0.14);
  background: rgba(2, 8, 5, 0.5);
  color: rgba(236, 255, 244, 0.72);
  box-shadow: none;
}

.channel-detail-page .icon-toggle:hover {
  border-color: rgba(82, 255, 168, 0.34);
  background: rgba(13, 39, 26, 0.78);
  color: var(--jungle-leaf);
  transform: none;
}

.channel-detail-page .icon-toggle.active {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.channel-detail-page .icon-toggle.folder {
  color: var(--jungle-leaf);
}

.channel-detail-page .icon-toggle.folder.active {
  border-color: rgba(82, 255, 168, 0.32);
  background: rgba(82, 255, 168, 0.1);
  color: var(--jungle-leaf-strong);
}

.channel-detail-page .icon-toggle.archive.active {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.channel-detail-page .folder-menu {
  right: 0;
  border-color: rgba(171, 255, 205, 0.16);
  background: rgba(6, 17, 12, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.channel-detail-page .folder-menu p,
.channel-detail-page .folder-menu-title,
.channel-detail-page .empty-menu {
  color: var(--jungle-muted);
}

.channel-detail-page .folder-menu label {
  color: rgba(236, 255, 244, 0.86);
}

.channel-detail-page .folder-menu label:hover {
  background: rgba(82, 255, 168, 0.08);
}

.channel-detail-page .folder-menu input {
  accent-color: var(--jungle-leaf-strong);
}

.channel-detail-page .channel-action-status,
.channel-detail-page .video-action-status,
.channel-detail-page .muted,
.channel-detail-page .v2-section-head > span,
.channel-detail-page .v2-section-actions,
.channel-detail-page .v2-video-card span,
.channel-detail-page .v2-table-video-cell p,
.channel-detail-page .v2-bars strong,
.channel-detail-page .recipe-stat-strip em,
.channel-detail-page .recipe-focus-title span,
.channel-detail-page .v2-diagnosis p,
.channel-detail-page .v2-vph-spark em,
.channel-detail-page .details dt {
  color: var(--jungle-muted);
}

.channel-detail-page .v2-kpi-grid {
  gap: 8px;
  margin-bottom: 0;
}

.channel-detail-page .v2-kpi-grid article {
  min-height: 92px;
  align-content: center;
  border-radius: 10px;
}

.channel-detail-page .v2-kpi-grid span,
.channel-detail-page .recipe-stat-strip span,
.channel-detail-page .v2-diagnosis dt {
  color: var(--jungle-muted);
  font-size: 10.5px;
  letter-spacing: 0;
}

.channel-detail-page .v2-kpi-grid strong,
.channel-detail-page .recipe-stat-strip strong,
.channel-detail-page .v2-diagnosis dd {
  color: #f4fff8;
  font-weight: 840;
  font-variant-numeric: tabular-nums;
}

.channel-detail-page .v2-layout {
  gap: 12px;
  margin-bottom: 0;
}

.channel-detail-page .v2-section {
  margin-bottom: 0;
  padding: 14px;
  border-radius: 12px;
}

.channel-detail-page .v2-section-head h2,
.channel-detail-page .v2-diagnosis h2,
.channel-detail-page .v2-data-health h2 {
  color: #f4fff8;
  font-size: 15px;
  font-weight: 840;
  line-height: 1.2;
}

.channel-detail-page .v2-diagnosis {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
}

.channel-detail-page .v2-diagnosis dl div,
.channel-detail-page .recipe-stat-strip div,
.channel-detail-page .recipe-side-panel,
.channel-detail-page .recipe-focus-row {
  border-color: rgba(171, 255, 205, 0.1);
  background: rgba(2, 8, 5, 0.42);
}

.channel-detail-page .v2-video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.channel-detail-page .v2-video-card {
  overflow: hidden;
  border-color: rgba(171, 255, 205, 0.11);
  border-radius: 10px;
  background: rgba(2, 8, 5, 0.44);
}

.channel-detail-page .v2-video-card > a {
  background:
    radial-gradient(circle at 50% 44%, rgba(82, 255, 168, 0.12), transparent 34%),
    rgba(2, 8, 5, 0.72);
}

.channel-detail-page .v2-video-card > div {
  gap: 7px;
}

.channel-detail-page .v2-video-card .title-link,
.channel-detail-page .recipe-focus-title strong,
.channel-detail-page .v2-bars span {
  color: rgba(236, 255, 244, 0.9);
}

.channel-detail-page .video-card-detail-link,
.channel-detail-page .analytics-link {
  border-color: rgba(125, 181, 218, 0.22);
  background: rgba(125, 181, 218, 0.1);
  color: #c8e7ff;
  box-shadow: none;
}

.channel-detail-page .video-card-detail-link:hover,
.channel-detail-page .analytics-link:hover {
  border-color: rgba(125, 181, 218, 0.42);
  background: rgba(125, 181, 218, 0.16);
  color: #e2f3ff;
}

.channel-detail-page .v2-video-card strong {
  background: rgba(82, 255, 168, 0.1);
  color: var(--jungle-leaf);
}

.channel-detail-page .v2-video-card em,
.channel-detail-page .recipe-focus-stats span {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.channel-detail-page .v2-compact-list {
  gap: 8px;
}

.channel-detail-page .v2-bars i,
.channel-detail-page .recipe-focus-meter i,
.channel-detail-page .v2-month-bars i {
  background: linear-gradient(90deg, var(--jungle-leaf-strong), rgba(187, 247, 208, 0.28));
}

.channel-detail-page .v2-bars div {
  min-width: 0;
}

.channel-detail-page .v2-month-bars strong {
  color: rgba(236, 255, 244, 0.88);
}

.channel-detail-page .v2-month-bars span {
  color: var(--jungle-muted);
}

.channel-detail-page .recipe-insight-grid {
  gap: 12px;
}

.channel-detail-page .recipe-stat-strip {
  gap: 8px;
}

.channel-detail-page .recipe-focus-row {
  padding: 10px 0;
  border-top-color: rgba(171, 255, 205, 0.1);
}

.channel-detail-page .recipe-focus-meter {
  background: rgba(171, 255, 205, 0.08);
}

.channel-detail-page .recipe-samples a {
  border-color: rgba(171, 255, 205, 0.14);
  background: rgba(2, 8, 5, 0.46);
  color: var(--jungle-leaf);
}

.channel-detail-page .recipe-samples a:hover {
  border-color: rgba(82, 255, 168, 0.34);
  background: rgba(82, 255, 168, 0.08);
}

.channel-detail-page .v2-sort-toolbar {
  gap: 6px;
  margin: -2px 0 12px;
}

.channel-detail-page .v2-sort-toolbar a,
.channel-detail-page .v2-sort-toolbar button,
.channel-detail-page .v2-limit-switch {
  border-color: rgba(171, 255, 205, 0.13);
  background: rgba(2, 8, 5, 0.5);
  color: rgba(236, 255, 244, 0.68);
}

.channel-detail-page .v2-sort-toolbar a:hover,
.channel-detail-page .v2-sort-toolbar a.active,
.channel-detail-page .v2-sort-toolbar button:hover,
.channel-detail-page .v2-sort-toolbar button.active,
.channel-detail-page .v2-limit-switch a.active {
  border-color: rgba(82, 255, 168, 0.3);
  background: rgba(82, 255, 168, 0.1);
  color: var(--jungle-leaf);
}

.channel-detail-page .v2-limit-switch a {
  color: rgba(236, 255, 244, 0.62);
}

.channel-detail-page .v2-video-table-wrap {
  border-color: rgba(171, 255, 205, 0.13);
  background: rgba(2, 8, 5, 0.54);
}

.channel-detail-page .v2-video-table th,
.channel-detail-page .v2-video-table td {
  border-bottom-color: rgba(171, 255, 205, 0.09);
}

.channel-detail-page .v2-video-table th {
  background: rgba(4, 18, 12, 0.98);
  color: rgba(137, 169, 154, 0.92);
}

.channel-detail-page .v2-video-table th a:hover {
  color: var(--jungle-leaf);
}

.channel-detail-page .v2-video-table tbody tr:hover {
  background: rgba(82, 255, 168, 0.04);
}

.channel-detail-page .v2-video-table .numeric {
  color: rgba(236, 255, 244, 0.82);
  font-variant-numeric: tabular-nums;
}

.channel-detail-page .v2-video-table .emphasis {
  color: var(--jungle-leaf);
}

.channel-detail-page .v2-table-thumb {
  border: 1px solid rgba(171, 255, 205, 0.1);
  background: rgba(2, 8, 5, 0.74);
}

.channel-detail-page .v2-vph-spark {
  border-color: rgba(171, 255, 205, 0.11);
  background: rgba(2, 8, 5, 0.42);
}

.channel-detail-page .v2-vph-spark span {
  background: var(--jungle-leaf);
}

.channel-detail-page .v2-vph-spark span.negative {
  background: var(--jungle-danger);
}

.channel-detail-page .v2-vph-spark strong {
  color: var(--jungle-leaf);
}

.channel-detail-page .details dd {
  color: rgba(236, 255, 244, 0.88);
}

.video-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(280px, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.video-detail-thumb {
  display: block;
  overflow: hidden;
  min-height: 206px;
  border-radius: 8px;
  background: var(--surface-2);
}

.video-detail-thumb img,
.video-detail-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-detail-title {
  display: grid;
  align-content: center;
  min-width: 0;
}

.video-detail-title h1 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.video-detail-title h1 a {
  color: var(--ink);
  text-decoration: none;
}

.video-detail-title h1 a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.video-detail-title p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.video-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-channel-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfffd 0%, #f2f7f4 100%);
}

.video-channel-card a,
.video-channel-card img,
.video-channel-card > a span {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.video-channel-card img,
.video-channel-card > a span {
  border: 1px solid var(--line);
  background: var(--surface-2);
  object-fit: cover;
}

.video-channel-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-channel-card strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.video-channel-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.video-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.video-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
}

.video-diagnosis {
  min-height: 180px;
}

.video-chart-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 260px;
}

.video-big-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 190px;
  padding: 26px 8px 8px;
  border: 1px solid #e3ebe7;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfffd 0%, #f3f7f5 100%);
}

.video-big-bars span {
  position: relative;
  flex: 1 1 0;
  min-width: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #2b8a62 0%, #9cc8b2 100%);
}

.video-big-bars.view-growth span {
  background: linear-gradient(180deg, #31445d 0%, #a8b7ca 100%);
}

.video-big-bars span.negative {
  background: linear-gradient(180deg, #b5534d 0%, #e4aaa6 100%);
}

.video-big-bars i {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 5px);
  max-width: 72px;
  overflow: hidden;
  color: #273242;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  transform: translateX(50%);
  white-space: nowrap;
}

.video-description-panel details {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.video-description-panel summary {
  width: max-content;
  cursor: pointer;
  color: var(--primary);
  font-weight: 850;
}

.video-description-panel details p {
  max-height: 320px;
  margin-top: 12px;
  overflow: auto;
}

.video-ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-ingredient-list span {
  display: inline-grid;
  gap: 3px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  background: #fbfcfc;
}

.video-ingredient-list strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.video-ingredient-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.app-sidebar + .shell.video-detail-shell {
  width: calc(100vw - 268px);
  max-width: none;
}

.video-detail-page {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 24px);
  color: var(--jungle-text);
}

.video-detail-commandbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 58px;
  align-items: center;
}

.video-detail-back,
.video-detail-command-meta {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.video-detail-back {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(171, 255, 205, 0.14);
  border-radius: 8px;
  background: rgba(2, 8, 5, 0.5);
  color: var(--jungle-leaf);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.video-detail-back:hover {
  border-color: rgba(82, 255, 168, 0.34);
  background: rgba(13, 39, 26, 0.78);
}

.video-detail-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.video-detail-command-meta {
  justify-content: center;
  color: var(--jungle-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.video-detail-command-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-detail-topgrid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  align-items: stretch;
}

.video-detail-topgrid.simple {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.video-detail-cover,
.video-detail-summary,
.video-detail-channel-card,
.video-detail-signal,
.video-detail-panel,
.video-detail-metrics article {
  border: 1px solid rgba(171, 255, 205, 0.13);
  background:
    linear-gradient(180deg, rgba(6, 17, 12, 0.88), rgba(2, 8, 5, 0.82)),
    rgba(2, 8, 5, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(236, 255, 244, 0.06),
    0 18px 70px rgba(0, 0, 0, 0.2);
}

.video-detail-cover {
  display: block;
  overflow: hidden;
  min-height: 206px;
  border-radius: 12px;
  background: rgba(2, 8, 5, 0.78);
}

.video-detail-cover img,
.video-detail-cover span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-detail-cover span {
  background:
    radial-gradient(circle at 50% 44%, rgba(82, 255, 168, 0.12), transparent 34%),
    rgba(2, 8, 5, 0.82);
}

.video-detail-summary {
  display: grid;
  align-content: center;
  gap: 11px;
  min-width: 0;
  padding: 18px;
  border-radius: 12px;
}

.video-detail-kicker,
.video-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.video-detail-kicker span,
.video-detail-kicker em,
.video-detail-facts span,
.video-detail-signal > span,
.video-detail-panel-head span,
.video-detail-metrics span,
.video-detail-rank-grid span {
  color: var(--jungle-muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-detail-kicker em,
.video-detail-facts span {
  min-height: 22px;
  padding: 5px 7px;
  border: 1px solid rgba(171, 255, 205, 0.11);
  border-radius: 999px;
  background: rgba(13, 39, 26, 0.48);
  color: rgba(236, 255, 244, 0.7);
  text-transform: none;
}

.video-detail-measure-window {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.video-detail-measure-window div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(171, 255, 205, 0.09);
  border-radius: 9px;
  background: rgba(2, 8, 5, 0.42);
}

.video-detail-measure-window span {
  display: block;
  color: var(--jungle-muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.video-detail-measure-window strong {
  display: block;
  margin-top: 4px;
  color: rgba(236, 255, 244, 0.88);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.video-detail-summary h1 {
  max-width: 980px;
  margin: 0;
  color: #f4fff8;
  font-size: 23px;
  font-weight: 820;
  line-height: 1.14;
  letter-spacing: 0;
}

.video-detail-summary h1 a {
  color: inherit;
  text-decoration: none;
}

.video-detail-summary h1 a:hover {
  color: var(--jungle-leaf);
}

.video-detail-channel-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
}

.video-detail-channel-avatar {
  display: block;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(171, 255, 205, 0.14);
  border-radius: 999px;
  background: rgba(13, 39, 26, 0.56);
  text-decoration: none;
}

.video-detail-channel-avatar img,
.video-detail-channel-avatar span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
  color: #f4fff8;
  font-size: 22px;
  font-weight: 820;
}

.video-detail-channel-card span {
  color: var(--jungle-muted);
  font-size: 10.5px;
  font-weight: 780;
  text-transform: uppercase;
}

.video-detail-channel-card h2 {
  margin: 5px 0 0;
  color: #f4fff8;
  font-size: 16px;
  font-weight: 820;
  line-height: 1.15;
}

.video-detail-summary p {
  max-width: 920px;
  margin: 0;
  color: rgba(137, 169, 154, 0.96);
  font-size: 13px;
  font-weight: 640;
  line-height: 1.45;
}

.video-detail-channel-card p {
  margin: 6px 0 0;
  color: rgba(137, 169, 154, 0.96);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.35;
}

.video-detail-channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.video-detail-channel-actions .button {
  min-height: 34px;
}

.video-detail-external-link {
  color: var(--jungle-muted);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.video-detail-external-link:hover {
  color: var(--jungle-leaf);
}

.video-detail-signal {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 0%, rgba(82, 255, 168, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(6, 17, 12, 0.9), rgba(2, 8, 5, 0.86));
}

.video-detail-signal strong {
  color: #f4fff8;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.1;
}

.video-detail-signal dl,
.video-detail-rank-grid,
.video-detail-metrics,
.video-detail-panel {
  min-width: 0;
}

.video-detail-signal dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.video-detail-signal dl div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 8px;
  background: rgba(2, 8, 5, 0.5);
}

.video-detail-signal dt {
  color: var(--jungle-muted);
  font-size: 10px;
  font-weight: 720;
}

.video-detail-signal dd {
  margin: 2px 0 0;
  color: var(--jungle-leaf);
  font-size: 15px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.video-detail-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.video-detail-metrics article {
  display: grid;
  gap: 5px;
  min-height: 82px;
  align-content: center;
  padding: 10px;
  border-radius: 10px;
}

.video-detail-metrics strong {
  color: #f4fff8;
  font-size: 18px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.video-detail-metrics strong:has(+ em) {
  min-width: 0;
}

.video-detail-metrics em,
.video-detail-rank-grid em,
.video-detail-related em {
  color: var(--jungle-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.video-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 12px;
}

.video-detail-chart-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-detail-main.secondary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.video-detail-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 14px;
  border-radius: 12px;
}

.video-detail-panel-head {
  display: flex;
  min-width: 0;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.video-detail-panel-head h2 {
  margin: 2px 0 0;
  color: #f4fff8;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.2;
}

.video-detail-panel-head p,
.video-detail-panel-head a {
  margin: 0;
  color: var(--jungle-muted);
  font-size: 11.5px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.video-detail-panel-head a:hover {
  color: var(--jungle-leaf);
}

.video-detail-views-panel {
  min-height: 292px;
}

.video-detail-line-chart {
  width: 100%;
  height: 214px;
  overflow: visible;
  border: 1px solid rgba(171, 255, 205, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(rgba(171, 255, 205, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 255, 205, 0.04) 1px, transparent 1px),
    rgba(2, 8, 5, 0.58);
  background-size: 100% 25%, 12.5% 100%, auto;
  padding: 8px;
}

.video-detail-line-chart path {
  fill: rgba(82, 255, 168, 0.12);
}

.video-detail-line-chart polyline {
  fill: none;
  stroke: var(--jungle-leaf);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.video-detail-line-chart circle {
  display: none;
}

.video-detail-axis-chart {
  width: 100%;
  height: 268px;
  border: 1px solid rgba(171, 255, 205, 0.08);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, currentColor 18%, transparent), transparent 34%),
    rgba(2, 8, 5, 0.62);
}

.video-detail-axis-chart.vph {
  color: #fb7185;
}

.video-detail-axis-chart.views {
  color: #86efac;
}

.video-detail-axis-chart.subscribers {
  color: #67e8f9;
}

.video-detail-axis-chart .chart-grid {
  stroke: rgba(171, 255, 205, 0.075);
  stroke-width: 1;
}

.video-detail-axis-chart .chart-grid.vertical {
  stroke: rgba(171, 255, 205, 0.045);
}

.video-detail-axis-chart .chart-axis {
  stroke: rgba(236, 255, 244, 0.42);
  stroke-width: 1.25;
}

.video-detail-axis-chart .chart-area {
  stroke: none;
}

.video-detail-axis-chart.vph .chart-area {
  fill: url("#vphAreaGradient");
}

.video-detail-axis-chart.views .chart-area {
  fill: url("#viewsAreaGradient");
}

.video-detail-axis-chart.subscribers .chart-area {
  fill: url("#subscribersAreaGradient");
}

.video-detail-axis-chart .chart-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 34%, transparent));
}

.video-detail-axis-chart .chart-arrow {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.25;
  opacity: 0.88;
  filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 28%, transparent));
}

.video-detail-axis-chart.vph .chart-arrow {
  marker-end: url("#vphArrow");
}

.video-detail-axis-chart.views .chart-arrow {
  marker-end: url("#viewsArrow");
}

.video-detail-axis-chart.subscribers .chart-arrow {
  marker-end: url("#subscribersArrow");
}

.video-detail-axis-chart marker path {
  fill: currentColor;
  stroke: none;
}

.video-detail-axis-chart circle {
  display: block;
  fill: rgba(2, 8, 5, 0.92);
  stroke: currentColor;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 4px color-mix(in srgb, currentColor 42%, transparent));
}

.video-detail-axis-chart text {
  fill: var(--jungle-muted);
  font-size: 12px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.video-detail-axis-chart .chart-y-label {
  text-anchor: end;
  dominant-baseline: middle;
}

.video-detail-axis-chart .chart-x-label,
.video-detail-axis-chart .chart-x-value {
  text-anchor: middle;
}

.video-detail-axis-chart .chart-x-value {
  fill: rgba(236, 255, 244, 0.92);
  font-size: 10.5px;
  font-weight: 780;
}

.video-detail-axis-chart .chart-x-label {
  font-size: 10px;
  fill: rgba(137, 169, 154, 0.88);
}

.video-detail-line-chart.vph polyline {
  stroke: #bbf7d0;
}

.video-detail-line-chart.views polyline {
  stroke: #67e8f9;
}

.video-detail-line-chart.views path {
  fill: rgba(103, 232, 249, 0.08);
}

.video-detail-chart-scale {
  display: flex;
  justify-content: space-between;
  color: var(--jungle-muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.video-detail-snapshot-ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 6px;
  margin-top: -4px;
}

.video-detail-snapshot-ticks span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid rgba(171, 255, 205, 0.08);
  border-radius: 8px;
  background: rgba(2, 8, 5, 0.42);
  text-align: center;
}

.video-detail-snapshot-ticks strong {
  overflow: hidden;
  color: #ecfff4;
  font-size: 11px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-detail-snapshot-ticks em {
  color: var(--jungle-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.video-detail-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.video-detail-rank-grid div {
  display: grid;
  gap: 5px;
  min-height: 76px;
  align-content: center;
  padding: 10px;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 9px;
  background: rgba(2, 8, 5, 0.52);
}

.video-detail-rank-grid strong {
  color: var(--jungle-leaf);
  font-size: 20px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.video-detail-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 160px;
  padding: 24px 8px 8px;
  border: 1px solid rgba(171, 255, 205, 0.08);
  border-radius: 10px;
  background: rgba(2, 8, 5, 0.56);
}

.video-detail-bars span {
  position: relative;
  flex: 1 1 0;
  min-width: 7px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--jungle-leaf), rgba(82, 255, 168, 0.22));
}

.video-detail-bars span.negative {
  background: linear-gradient(180deg, #f87171, rgba(248, 113, 113, 0.18));
}

.video-detail-bars i {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 5px);
  max-width: 64px;
  overflow: hidden;
  color: rgba(236, 255, 244, 0.86);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  transform: translateX(50%);
  white-space: nowrap;
}

.video-detail-ingredients,
.video-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.video-detail-ingredients span,
.video-detail-tags span {
  border: 1px solid rgba(171, 255, 205, 0.11);
  border-radius: 999px;
  background: rgba(13, 39, 26, 0.48);
}

.video-detail-ingredients span {
  display: inline-grid;
  gap: 2px;
  min-height: 42px;
  align-content: center;
  padding: 6px 9px;
  border-radius: 9px;
}

.video-detail-ingredients strong {
  color: #f4fff8;
  font-size: 12px;
  font-weight: 780;
}

.video-detail-ingredients em {
  color: var(--jungle-muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 650;
}

.video-detail-description summary {
  width: max-content;
  cursor: pointer;
  color: var(--jungle-leaf);
  font-size: 12px;
  font-weight: 780;
}

.video-detail-description p {
  max-height: 260px;
  margin: 10px 0 0;
  overflow: auto;
  color: rgba(236, 255, 244, 0.74);
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.55;
}

.video-detail-description.expanded p {
  margin-top: 0;
}

.video-detail-tags {
  margin-top: 12px;
}

.video-detail-tags span {
  min-height: 22px;
  padding: 5px 8px;
  color: rgba(236, 255, 244, 0.76);
  font-size: 11px;
  font-weight: 700;
}

.video-detail-related {
  display: grid;
  gap: 8px;
}

.video-detail-related a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 7px;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 9px;
  background: rgba(2, 8, 5, 0.46);
  text-decoration: none;
}

.video-detail-related a:hover {
  border-color: rgba(82, 255, 168, 0.28);
  background: rgba(13, 39, 26, 0.62);
}

.video-detail-related img,
.video-detail-related a > span {
  grid-row: span 2;
  width: 76px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(2, 8, 5, 0.72);
}

.video-detail-related strong {
  overflow: hidden;
  color: #f4fff8;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-detail-empty {
  margin: 0;
  color: var(--jungle-muted);
  font-size: 12px;
  font-weight: 650;
}

.app-sidebar + .shell.report-v2-shell {
  width: calc(100vw - 268px);
  max-width: none;
}

.report-v2-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.report-v2-head h1 {
  margin-bottom: 6px;
}

.report-v2-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-v2-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-v2-summary article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-v2-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-v2-summary strong {
  display: block;
  overflow: hidden;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-v2-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-v2-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.report-v2-panel-head h2 {
  margin: 0;
}

.report-v2-panel-tools {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.report-limit-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-limit-switch a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.report-limit-switch a:last-child {
  border-right: 0;
}

.report-limit-switch a:hover,
.report-limit-switch a.active {
  background: #e8f5ef;
  color: var(--primary);
}

.report-sort-toolbar {
  justify-content: flex-end;
  margin: 0;
}

.report-v2-table-wrap {
  max-height: calc(100vh - 275px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-v2-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.report-v2-table th,
.report-v2-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.report-v2-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f7f8f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-v2-table tbody tr:hover {
  background: #fbfcfc;
}

.report-v2-table .numeric {
  color: #273242;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.report-v2-table .emphasis {
  color: var(--primary);
}

.app-sidebar + .shell.recipe-trends-shell {
  width: calc(100vw - 220px);
  max-width: none;
  margin: 0 0 0 220px;
}

.recipe-trends-head {
  align-items: end;
}

.recipe-trends-head .report-limit-switch {
  justify-self: end;
}

.recipe-trend-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.recipe-trend-chart-panel {
  margin-bottom: 14px;
}

.recipe-trend-chart-wrap {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #dce5e2;
  border-radius: 8px;
  background: #fbfcfc;
}

.recipe-trend-chart {
  display: block;
  width: 100%;
  min-width: 780px;
  height: 430px;
}

.recipe-chart-grid {
  stroke: #dfe7e5;
  stroke-width: 1;
}

.recipe-chart-axis {
  fill: #68766f;
  font-size: 12px;
  font-weight: 800;
}

.recipe-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.recipe-chart-dot {
  stroke: #fff;
  stroke-width: 2;
}

.recipe-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
}

.recipe-trend-legend span,
.recipe-trend-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #2c3831;
  font-size: 12px;
  font-weight: 850;
}

.recipe-trend-legend i,
.recipe-trend-name i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.recipe-trend-table-wrap {
  max-height: 420px;
}

.recipe-trend-table {
  min-width: 900px;
}

.app-sidebar + .shell.video-browser-shell {
  width: calc(100vw - 220px);
  max-width: none;
  margin: 0 0 0 220px;
  padding: 14px;
}

.video-browser-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.video-browser-head h1 {
  font-size: 28px;
}

.video-browser-head .muted {
  margin: 8px 0 0;
}

.video-browser-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.video-browser-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #d6e3dc;
  border-radius: 999px;
  background: #fff;
  color: #54665c;
  font-size: 12px;
  font-weight: 850;
}

.video-browser-filters {
  display: grid;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d7e4dc;
  border-radius: 8px;
  background: #fff;
}

.video-view-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.video-search-control,
.video-property-filters label {
  display: grid;
  gap: 5px;
}

.video-search-control span,
.video-property-filters span {
  color: #53645b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-search-control input,
.video-property-filters input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d7e4dc;
  border-radius: 7px;
  background: #fbfdfb;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.video-search-control input:focus,
.video-property-filters input:focus {
  outline: 2px solid rgba(32, 106, 75, 0.16);
  border-color: #9fcab0;
  background: #fff;
}

.video-property-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.video-advanced-filters {
  border: 1px solid #e0e9e3;
  border-radius: 7px;
  background: #fbfdfb;
}

.video-advanced-filters summary {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  cursor: pointer;
  color: #40524a;
  font-size: 13px;
  font-weight: 900;
}

.video-advanced-filters summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: none;
}

.video-advanced-filters[open] {
  background: #fff;
}

.video-advanced-filters[open] summary {
  border-bottom: 1px solid #e0e9e3;
}

.video-advanced-filters .video-property-filters {
  padding: 10px;
}

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-row > span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #d7e4dc;
  border-radius: 999px;
  background: #f6faf7;
  color: #40524a;
  font-size: 11px;
  font-weight: 850;
}

.active-filter-chip {
  display: inline-flex;
  min-height: 26px;
  max-width: 260px;
  align-items: center;
  gap: 7px;
  padding: 0 5px 0 9px;
  border: 1px solid #d7e4dc;
  border-radius: 999px;
  background: #f6faf7;
  color: #40524a;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.active-filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-filter-chip b {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e2ebe5;
  color: #40524a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.active-filter-chip:hover,
.active-filter-chip:focus-visible {
  border-color: #9fcab0;
  background: #eaf7f0;
  color: var(--primary);
  text-decoration: none;
}

.active-filter-chip:hover b,
.active-filter-chip:focus-visible b {
  background: var(--primary);
  color: #fff;
}

.active-filter-chip.preset-filter-chip {
  max-width: none;
  padding: 0 9px;
  pointer-events: none;
}

.video-sandbox .active-filter-chip {
  min-height: 28px;
  border-color: #cfe5d9;
  background: #eef8f2;
  color: var(--sandbox-green);
  box-shadow: 0 8px 18px rgba(19, 42, 33, 0.08);
}

.video-sandbox .active-filter-chip b {
  background: #dceee5;
  color: var(--sandbox-green);
}

.video-sandbox .active-filter-chip:hover,
.video-sandbox .active-filter-chip:focus-visible {
  border-color: #8fc7a7;
  background: #e5f4ec;
  color: var(--sandbox-green-dark);
}

.video-sandbox .active-filter-chip:hover b,
.video-sandbox .active-filter-chip:focus-visible b {
  background: var(--sandbox-accent);
  color: #fff;
}

.selected-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.video-filter-main {
  min-width: 0;
}

.video-filter-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.video-filter-title strong {
  font-size: 14px;
  font-weight: 900;
}

.video-filter-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.ingredient-search-shell {
  display: grid;
  gap: 8px;
}

.ingredient-search-control {
  display: grid;
  gap: 5px;
  max-width: 420px;
}

.ingredient-search-control span,
.ingredient-search-meta {
  color: #53645b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ingredient-search-control input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d7e4dc;
  border-radius: 7px;
  background: #fbfdfb;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.ingredient-search-control input:focus {
  outline: 2px solid rgba(32, 106, 75, 0.16);
  border-color: #9fcab0;
  background: #fff;
}

.ingredient-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.ingredient-search-results label {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #e0e9e3;
  border-radius: 7px;
  background: #fbfdfb;
  color: #26382f;
  font-size: 12px;
  line-height: 1.2;
}

.ingredient-search-results label[hidden],
.ingredient-search-empty[hidden] {
  display: none;
}

.ingredient-search-results label.selected {
  border-color: #9fd3b4;
  background: #e8f5ef;
  color: #17603f;
}

.ingredient-search-results input {
  width: 15px;
  min-height: 15px;
  margin: 0;
}

.ingredient-search-results span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ingredient-search-results small {
  overflow: hidden;
  max-width: 110px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ingredient-search-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.video-sandbox .ingredient-search-control span,
.video-sandbox .ingredient-search-meta {
  color: var(--sandbox-green);
  letter-spacing: 0;
}

.video-sandbox .ingredient-search-control input {
  border-color: #c9ddd3;
  background: #fff;
  color: var(--sandbox-ink);
}

.video-sandbox .ingredient-search-control input:focus {
  outline: 3px solid rgba(32, 106, 75, 0.14);
  border-color: #8fc7a7;
}

.video-sandbox .ingredient-search-results label {
  border-color: #e2ece6;
  background: #fff;
  color: var(--sandbox-ink);
}

.video-sandbox .ingredient-search-results label.selected {
  border-color: #8fc7a7;
  background: #eaf7f0;
  color: var(--sandbox-green);
}

.video-sandbox .ingredient-search-results input {
  accent-color: var(--sandbox-accent);
}

.video-filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.selected-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 240px;
}

.selected-ingredients span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.video-browser-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.video-browser-toolbar.bottom {
  margin: 10px 0 0;
}

.video-browser-toolbar > div,
.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pagination-current {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(194, 214, 202, 0.74);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.button.disabled {
  opacity: 0.45;
  cursor: default;
}

.video-browser-table-wrap {
  max-height: calc(100vh - 294px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.video-browser-table {
  width: 100%;
  min-width: 1680px;
  border-collapse: separate;
  border-spacing: 0;
}

.video-browser-table th,
.video-browser-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2ebe5;
  text-align: left;
  vertical-align: middle;
}

.video-browser-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f6faf7;
  color: #53645b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-browser-table tbody tr:nth-child(even) {
  background: #fbfdfb;
}

.video-browser-table tbody tr:hover {
  background: #f1faf5;
}

.video-browser-table .channel-col {
  width: 360px;
}

.video-browser-table .video-col {
  width: 430px;
}

.video-browser-table .numeric {
  text-align: right;
  white-space: nowrap;
  color: #273242;
  font-size: 13px;
  font-weight: 850;
}

.video-browser-table .emphasis {
  color: var(--primary);
}

.video-browser-video {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.video-browser-thumb {
  display: block;
  width: 118px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}

.video-browser-thumb img,
.video-browser-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-browser-title,
.video-browser-channel {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-browser-channel {
  -webkit-line-clamp: 1;
}

.video-browser-title:hover,
.video-browser-channel:hover,
.video-browser-video p a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.video-browser-video p,
.video-browser-subline {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.video-browser-video p a {
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
}

.video-browser-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 240px;
  max-width: 360px;
}

.video-browser-ingredients span,
.video-browser-ingredients em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.video-browser-ingredients span {
  background: #e8f5ef;
  color: #17603f;
}

.video-browser-ingredients em {
  background: #f1f3f5;
  color: #718179;
}

.app-sidebar + .shell.video-sandbox-shell {
  width: calc(100vw - 220px);
  max-width: none;
  margin: 0 0 0 220px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(2, 6, 4, 0.72), rgba(6, 17, 12, 0.86)),
    url("/static/controlplate_site/images/sandbox-leaf-projection-bg.jpg") center center / cover no-repeat fixed,
    linear-gradient(180deg, #020604 0%, #06110c 44%, #0b1510 100%);
}

.video-sandbox {
  display: grid;
  gap: 8px;
  --toolbar-control-height: 32px;
  --sandbox-ink: #132a21;
  --sandbox-accent: #5fbf8f;
  --sandbox-accent-dark: #2d7a58;
  --sandbox-green: #206a4b;
  --sandbox-green-dark: #132a21;
  --sandbox-line: #cbded4;
  color: var(--sandbox-ink);
}

.video-sandbox.is-view-loading .video-sandbox-table-wrap {
  visibility: hidden;
}

.video-sandbox .button {
  min-height: var(--toolbar-control-height);
  border: 1px solid rgba(194, 214, 202, 0.74);
  background: #f8fbf8;
  color: var(--sandbox-ink);
  font-size: 12px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.video-sandbox .button:hover {
  border-color: rgba(120, 171, 143, 0.72);
  background: #ffffff;
  color: var(--sandbox-green-dark);
  text-decoration: none;
}

.video-sandbox .button:focus-visible {
  outline: 2px solid rgba(145, 230, 184, 0.52);
  outline-offset: 1px;
}

.video-sandbox .button.primary {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  box-shadow: var(--primary-action-shadow);
}

.video-sandbox .button.primary:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.video-sandbox .button.disabled {
  box-shadow: none;
}

.video-sandbox-controls {
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) 96px minmax(112px, 0.52fr) minmax(140px, 0.62fr) minmax(240px, 1.25fr);
  grid-template-rows: repeat(2, minmax(var(--toolbar-control-height), auto));
  gap: 7px 8px;
  position: relative;
  z-index: 40;
  align-items: stretch;
  padding: 9px;
  border: 1px solid rgba(179, 215, 195, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #173a2d, #11281f),
    var(--sandbox-green-dark);
  box-shadow: 0 16px 36px rgba(19, 42, 33, 0.16);
}

.video-sandbox-controls::before {
  display: none;
  content: none;
}

.video-sandbox-controls > * {
  position: relative;
  z-index: 1;
}

.video-sandbox-filter-form {
  display: contents;
}

.video-sandbox-search {
  grid-column: 5;
  grid-row: 1;
  min-width: 0;
}

.video-sandbox-text-search {
  grid-column: 5;
  grid-row: 2;
  min-width: 0;
}

.video-sandbox-popover.language {
  grid-column: 4;
  grid-row: 1;
  min-width: 0;
}

.video-sandbox-popover.ingredients {
  grid-column: 3;
  grid-row: 2;
}

.video-sandbox-filter-form > .video-sandbox-popover:not(.language):not(.ingredients):not(.columns):not(.templates) {
  grid-column: 3;
  grid-row: 1;
}

.video-sandbox-popover.columns {
  grid-column: 4;
  grid-row: 2;
}

.video-sandbox-popover.templates {
  grid-column: 1;
  grid-row: 1;
}

.video-sandbox-search,
.video-sandbox-text-search,
.video-sandbox-filter-grid label {
  display: grid;
  gap: 5px;
}

.video-sandbox-search {
  grid-template-columns: minmax(0, 1fr) minmax(196px, auto);
  gap: 6px;
  align-items: stretch;
}

.video-sandbox-text-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(196px, auto);
  gap: 6px;
  align-items: stretch;
}

.video-sandbox-search-input,
.video-sandbox-text-search-input {
  min-width: 0;
}

.video-sandbox-text-scope,
.video-sandbox-fast-mode {
  display: inline-grid;
  align-items: stretch;
  box-sizing: border-box;
  width: 196px;
  min-width: 196px;
  max-width: 196px;
  min-height: var(--toolbar-control-height);
  padding: 2px;
  border: 1px solid rgba(204, 220, 211, 0.92);
  border-radius: 6px;
  background: rgba(251, 253, 251, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.video-sandbox-text-scope {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-sandbox-fast-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-sandbox-text-scope label,
.video-sandbox-fast-mode label {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  color: #46584d;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.video-sandbox-text-scope label.selected,
.video-sandbox-text-scope label:has(input:checked),
.video-sandbox-fast-mode label.selected,
.video-sandbox-fast-mode label:has(input:checked) {
  background: #173a2d;
  color: #f7fff9;
}

.video-sandbox-text-scope input,
.video-sandbox-fast-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.video-sandbox-search span,
.video-sandbox-text-search span,
.video-sandbox-filter-grid span {
  color: rgba(247, 255, 249, 0.76);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-sandbox-text-scope span,
.video-sandbox-fast-mode span {
  color: inherit;
  font-size: 10.5px;
  text-transform: none;
}

.video-sandbox-search input,
.video-sandbox-text-search input,
.video-sandbox-filter-grid input,
.video-sandbox-filter-grid select {
  min-height: var(--toolbar-control-height);
  padding: 0 10px;
  border: 1px solid rgba(204, 220, 211, 0.92);
  border-radius: 6px;
  background: #fbfdfb;
  color: var(--sandbox-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.video-sandbox-text-scope input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.video-sandbox-search input::placeholder,
.video-sandbox-text-search input::placeholder {
  color: #75867d;
  font-weight: 600;
}

.video-sandbox-search input:focus,
.video-sandbox-text-search input:focus,
.video-sandbox-filter-grid input:focus,
.video-sandbox-filter-grid select:focus {
  outline: 2px solid rgba(123, 202, 158, 0.34);
  outline-offset: 1px;
  border-color: rgba(109, 176, 137, 0.86);
  background: #fff;
}

.video-sandbox-popover {
  position: relative;
  align-self: end;
  min-width: 0;
}

.video-sandbox-popover[open] {
  z-index: 80;
}

.video-sandbox-popover summary {
  display: inline-flex;
  width: 100%;
  min-height: var(--toolbar-control-height);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(194, 214, 202, 0.74);
  border-radius: 6px;
  background: #f0f7f2;
  color: var(--sandbox-ink);
  font-size: 12px;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.video-sandbox-popover summary > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-sandbox-popover.templates summary {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(8, 28, 21, 0.74);
  color: rgba(247, 255, 249, 0.96);
  font-weight: 650;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 10px 24px rgba(2, 14, 9, 0.18);
}

.video-sandbox-popover.templates[open] summary,
.video-sandbox-popover.templates summary:hover {
  border-color: rgba(145, 230, 184, 0.44);
  background: rgba(17, 55, 42, 0.9);
  color: #fff;
}

.video-sandbox.template-applied .video-sandbox-popover.templates summary {
  border-color: rgba(145, 230, 184, 0.52);
  background: rgba(14, 66, 45, 0.92);
}

.video-sandbox.template-changed .video-sandbox-popover.templates summary {
  border-color: rgba(236, 188, 111, 0.62);
  background: rgba(75, 52, 24, 0.92);
}

.video-sandbox.template-applied .template-value,
.video-sandbox.template-changed .template-value {
  border-color: rgba(88, 164, 116, 0.68);
  background: #eef8f2;
}

.video-sandbox.template-changed .template-value {
  border-color: rgba(224, 166, 78, 0.62);
  background: #fff8eb;
}

.video-sandbox-popover.templates summary small {
  background: rgba(145, 230, 184, 0.18);
  color: #fff;
}

.template-summary-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.template-summary-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #bfe8cf;
}

.template-summary-icon svg,
.video-sandbox-template-list svg,
.template-icon-action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.template-summary-text {
  display: flex;
  min-width: 0;
  align-items: center;
}

.template-summary-text b {
  min-width: 0;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-sandbox-popover summary small {
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #dceee5;
  color: var(--sandbox-green);
  font-size: 10px;
  font-weight: 750;
}

.video-sandbox-popover summary::-webkit-details-marker {
  display: none;
}

.video-sandbox-popover summary:focus-visible {
  outline: 2px solid rgba(145, 230, 184, 0.52);
  outline-offset: 1px;
}

.video-sandbox-popover[open] summary,
.video-sandbox-popover summary:hover {
  border-color: rgba(129, 184, 153, 0.68);
  background: #ffffff;
  color: var(--sandbox-green);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(12, 45, 31, 0.12);
}

.video-sandbox-popover.templates[open] summary,
.video-sandbox-popover.templates summary:hover {
  border-color: rgba(145, 230, 184, 0.44);
  background: rgba(17, 55, 42, 0.9);
  color: #fff;
}

.video-sandbox-filter-grid,
.video-sandbox-columns,
.video-sandbox-ingredients-panel,
.video-sandbox-language-panel,
.video-sandbox-template-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(32, 106, 75, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(19, 42, 33, 0.16);
}

.video-sandbox-popover.templates .video-sandbox-template-panel {
  right: auto;
  left: 0;
}

.video-sandbox-popover.language .video-sandbox-language-panel,
.video-sandbox-filter-form > .video-sandbox-popover:not(.language):not(.ingredients):not(.columns):not(.templates) .video-sandbox-filter-grid,
.video-sandbox-popover.templates .video-sandbox-template-panel {
  top: calc(100% + var(--toolbar-control-height) + 17px);
}

.video-sandbox-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 9px 8px;
}

.video-sandbox-filter-switch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: start;
  width: min(196px, 100%);
  align-items: stretch;
  min-height: var(--toolbar-control-height);
  padding: 2px;
  border: 1px solid rgba(204, 220, 211, 0.92);
  border-radius: 6px;
  background: rgba(251, 253, 251, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.video-sandbox-filter-switch label {
  display: grid;
  min-width: 0;
  place-items: center;
  border: 1px solid transparent;
  padding: 0 5px;
  border-radius: 4px;
  color: #46584d;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.video-sandbox-filter-switch label:has(input:checked) {
  background: #173a2d;
  color: #f7fff9;
}

.video-sandbox-filter-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.video-sandbox-filter-switch span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.video-sandbox-filter-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 9px 8px;
}

.video-sandbox-filter-grid:has(.video-sandbox-filter-switch input[value="channel"]:checked) .video-filter-section,
.video-sandbox-filter-grid:has(.video-sandbox-filter-switch input[value="video"]:checked) .channel-filter-section {
  display: none;
}

.video-sandbox-filter-form > .video-sandbox-popover:not(.language):not(.ingredients):not(.columns):not(.templates) .video-sandbox-filter-grid {
  right: auto;
  left: 0;
}

.video-sandbox-filter-grid label {
  gap: 5px;
}

.video-sandbox-filter-grid span {
  color: #617168;
  font-size: 10.5px;
  font-weight: 650;
}

.video-sandbox-folder-filter {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #eef4f0;
}

.video-sandbox-folder-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.video-sandbox-folder-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid #e0e9e3;
  border-radius: 7px;
  background: #fff;
  color: var(--sandbox-ink);
  font-size: 12px;
  font-weight: 600;
}

.video-sandbox-folder-options label.selected {
  border-color: #8fc7a7;
  background: #eaf7f0;
  color: var(--sandbox-green);
}

.video-sandbox-folder-options input {
  appearance: none;
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  border: 1px solid #bdd0c5;
  border-radius: 4px;
  background: #fff;
  accent-color: var(--sandbox-green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.video-sandbox-folder-options input:checked {
  border-color: #2f7d59;
  background:
    linear-gradient(135deg, transparent 0 42%, #fff 43% 57%, transparent 58%),
    linear-gradient(45deg, transparent 0 47%, #fff 48% 61%, transparent 62%),
    #2f7d59;
}

.video-sandbox-folder-options span {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.video-sandbox-folder-options small {
  color: #74847b;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.video-sandbox-language-panel {
  display: grid;
  width: min(240px, calc(100vw - 28px));
  max-height: 330px;
  overflow: auto;
  gap: 6px;
}

.video-sandbox-template-panel {
  display: grid;
  width: min(380px, calc(100vw - 28px));
  gap: 8px;
  padding: 10px;
}

.video-sandbox-template-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 6px;
  border-bottom: 1px solid #edf2ef;
}

.video-sandbox-template-head span {
  color: var(--sandbox-ink);
  font-size: 12px;
  font-weight: 720;
}

.video-sandbox-template-head small {
  min-width: 0;
  overflow: hidden;
  color: #7a8980;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-sandbox-template-list {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
}

.video-sandbox-template-list a,
.video-sandbox-template-empty {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--sandbox-ink);
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
}

.video-sandbox-template-list a:hover {
  border-color: #e3eee8;
  background: #f7fbf8;
}

.video-sandbox-template-list a.selected {
  border-color: #d8ebe0;
  background: #eef8f2;
  color: #1f6f4f;
}

.video-sandbox-template-list a.changed {
  border-color: #efd9ae;
  background: #fff8eb;
  color: #7a4d14;
}

.video-sandbox-template-list a > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.video-sandbox-template-list b {
  min-width: 0;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-sandbox-template-list svg {
  flex: 0 0 auto;
  color: #6f8378;
}

.video-sandbox-template-list small {
  color: #74847b;
  font-size: 10px;
  font-weight: 650;
}

.video-sandbox-template-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #edf2ef;
}

.video-sandbox-template-form input,
.video-sandbox-template-edit-form input {
  min-width: 0;
  min-height: var(--toolbar-control-height);
  padding: 0 10px;
  border: 1px solid #e0e9e3;
  border-radius: 6px;
  background: #fff;
  color: var(--sandbox-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.video-sandbox-template-form.is-submitting,
.video-sandbox-template-edit-form.is-submitting,
.video-sandbox-template-delete.is-submitting {
  opacity: 0.68;
  pointer-events: none;
}

.video-sandbox-template-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding-top: 2px;
}

.video-sandbox-template-edit[hidden] {
  display: none;
}

.video-sandbox-template-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 6px;
}

.video-sandbox-template-delete {
  display: flex;
}

.template-icon-action {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #dbe9e2;
  border-radius: 6px;
  background: #f8fbf8;
  color: #2f6f50;
  cursor: pointer;
}

.template-icon-action:hover,
.template-icon-action:focus-visible {
  border-color: #9dccb0;
  background: #eef8f2;
  outline: 0;
}

.template-icon-action.danger {
  color: #a14646;
}

.template-icon-action.danger:hover,
.template-icon-action.danger:focus-visible {
  border-color: #e8c4c4;
  background: #fff6f5;
}

.video-sandbox-language-panel label {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid #e0e9e3;
  border-radius: 7px;
  background: #fff;
  color: var(--sandbox-ink);
  font-size: 12px;
  font-weight: 600;
}

.video-sandbox-language-panel label.selected {
  border-color: #8fc7a7;
  background: #eaf7f0;
  color: var(--sandbox-green);
}

.video-sandbox-language-panel input {
  width: 14px;
  min-height: 14px;
  margin: 0;
  accent-color: var(--sandbox-green);
}

.video-sandbox-filter-grid input,
.video-sandbox-filter-grid select {
  border-color: #e0e9e3;
  background: #fff;
}

.video-sandbox-filter-grid .video-sandbox-folder-options input {
  box-sizing: border-box;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  border-color: #bdd0c5;
  background: #fff;
}

.video-sandbox-filter-grid .video-sandbox-folder-options input:checked {
  border-color: #2f7d59;
  background:
    linear-gradient(135deg, transparent 0 42%, #fff 43% 57%, transparent 58%),
    linear-gradient(45deg, transparent 0 47%, #fff 48% 61%, transparent 62%),
    #2f7d59;
}

.video-sandbox-popover.columns .video-sandbox-columns {
  width: min(640px, calc(100vw - 28px));
}

.video-sandbox-popover.ingredients .video-sandbox-ingredients-panel {
  right: auto;
  left: 0;
  width: min(520px, calc(100vw - 28px));
}

.video-sandbox-popover.ingredients.align-viewport .video-sandbox-ingredients-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: auto;
  left: 0;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 170px);
}

.video-sandbox-popover.align-viewport .video-sandbox-filter-grid,
.video-sandbox-popover.align-viewport .video-sandbox-columns,
.video-sandbox-popover.align-viewport .video-sandbox-ingredients-panel,
.video-sandbox-popover.align-viewport .video-sandbox-language-panel,
.video-sandbox-popover.align-viewport .video-sandbox-template-panel {
  position: fixed;
  top: var(--popover-fixed-top, 70px);
  right: 14px;
  left: 14px;
  width: auto;
  max-height: calc(100vh - var(--popover-fixed-top, 70px) - 14px);
}

.video-sandbox-ingredients-panel {
  display: grid;
  gap: 8px;
}

.video-sandbox-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.video-sandbox-view-tools {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid #edf2ef;
}

.video-sandbox-columns fieldset {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.video-sandbox-columns legend {
  margin-bottom: 2px;
  color: var(--sandbox-green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-sandbox-columns label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--sandbox-ink);
  font-size: 12px;
  font-weight: 760;
}

.video-sandbox-columns input {
  width: 15px;
  min-height: 15px;
  margin: 0;
  accent-color: var(--sandbox-accent);
}

.video-sandbox-actions {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  gap: 6px;
  align-self: stretch;
  align-items: end;
}

.video-sandbox-actions .button,
.video-sandbox-page-tools .button {
  width: 100%;
}

.video-sandbox-page-tools {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 56px 52px 44px 58px;
  grid-template-rows: minmax(0, 1fr);
  gap: 6px;
  align-items: end;
  justify-content: stretch;
  margin-left: 0;
  align-self: stretch;
  color: #c9d8cf;
  font-size: 11.5px;
  font-weight: 600;
}

.video-sandbox-page-summary {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(247, 255, 249, 0.84);
  overflow: hidden;
}

.video-sandbox-page-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-sandbox-page-tools .button {
  font-size: 11.5px;
}

.video-sandbox-page-tools .button:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.video-sandbox-page-tools .button:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.video-sandbox-page-tools .pagination-current {
  grid-column: 4;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-height: var(--toolbar-control-height);
  padding: 0 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(247, 255, 249, 0.72);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.video-sandbox-page-tools .button:nth-child(5) {
  grid-column: 5;
  grid-row: 1;
}

.video-sandbox-page-tools .button {
  min-height: var(--toolbar-control-height);
}

.video-sandbox-table-wrap {
  position: relative;
  z-index: 1;
  height: calc(100vh - 145px);
  min-height: 420px;
  overflow: auto;
  border: 1px solid rgba(19, 42, 33, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(19, 42, 33, 0.12);
}

.metric-header-aggregate {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  z-index: 7;
  display: inline-grid;
  justify-items: center;
  padding: 5px 8px 6px;
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-top-color: rgba(250, 204, 21, 0.22);
  border-radius: 0 0 8px 8px;
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 247, 223, 0.2), transparent 42%),
    radial-gradient(circle at 26% 4%, rgba(250, 204, 21, 0.28), transparent 48%),
    linear-gradient(180deg, rgba(66, 45, 10, 0.9), rgba(22, 17, 8, 0.92));
  color: #fff7df;
  box-shadow:
    0 0 0 1px rgba(255, 247, 223, 0.06) inset,
    0 0 18px rgba(250, 204, 21, 0.18);
  overflow: hidden;
  pointer-events: none;
}

.metric-header-aggregate strong {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 880;
  white-space: nowrap;
}

.video-sandbox-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.video-sandbox-table th,
.video-sandbox-table td {
  padding: 7px 9px;
  border-right: 1px solid #e8f0eb;
  border-bottom: 1px solid #dfeae4;
  background: #fff;
  text-align: center;
  vertical-align: middle;
}

.video-sandbox-table td[data-column="video"],
.video-sandbox-table td[data-column="channel"] {
  text-align: left;
}

.video-sandbox-table th[data-column="rank"],
.video-sandbox-table td[data-column="rank"] {
  width: 38px;
  min-width: 38px;
  padding-right: 8px;
  padding-left: 8px;
  text-align: center;
}

.video-sandbox-table th[data-column="trend"],
.video-sandbox-table td[data-column="trend"] {
  width: 198px;
  min-width: 198px;
  max-width: 198px;
}

.video-sandbox-table td[data-column="video"] {
  padding-top: 4px;
  padding-bottom: 4px;
}

.video-sandbox-table th {
  position: sticky;
  z-index: 4;
  top: 0;
  padding-right: 18px;
  background:
    linear-gradient(180deg, #17372b, #10271f),
    #132a21;
  color: #f7fff9;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: none;
  user-select: none;
  box-shadow: inset 0 -2px 0 rgba(95, 191, 143, 0.8);
}

.video-sandbox-table th.has-header-aggregate {
  overflow: visible;
}

.sortable-heading {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.sortable-heading.active {
  color: #fff4ef;
}

.sortable-heading-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sort-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.sort-arrow {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 4px;
  color: #c6d8cf;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.sort-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.sort-arrow.active {
  background: var(--sandbox-accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(32, 106, 75, 0.28);
}

.video-sandbox-table th.column-draggable {
  cursor: grab;
}

.video-sandbox-table th.column-draggable:active,
.video-sandbox-table th.is-dragging {
  cursor: grabbing;
}

.video-sandbox-table th.drag-target {
  box-shadow: inset 3px 0 0 rgba(95, 191, 143, 0.9), inset 0 -2px 0 rgba(95, 191, 143, 0.8);
}

.video-sandbox-table th.is-resizing {
  background: #224a39;
}

.video-sandbox.resizing-columns,
.video-sandbox.resizing-columns * {
  cursor: col-resize !important;
  user-select: none;
}

.column-resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  z-index: 8;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 3px;
  bottom: 10px;
  width: 1px;
  border-radius: 999px;
  background: transparent;
}

.video-sandbox-table th:hover .column-resize-handle::after,
.video-sandbox-table th.is-resizing .column-resize-handle::after {
  background: #8fc7a7;
}

.video-sandbox-table th button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.video-sandbox-table th button:hover,
.video-sandbox-table th button.active {
  color: var(--primary);
}

.video-sandbox-table tbody tr:nth-child(even) td {
  background: #fbfdf9;
}

.video-sandbox-table tbody tr:hover td {
  background: #eef8f2;
}

.video-sandbox-table .sticky-video {
  position: sticky;
  left: 0;
  z-index: 3;
  border-right-color: #d2e0d8;
  box-shadow: 8px 0 14px rgba(29, 68, 48, 0.04);
}

.video-sandbox-table th.sticky-video {
  z-index: 5;
}

.video-main-col {
  min-width: 380px;
}

.channel-main-col {
  min-width: 300px;
}

.video-sandbox-table td.numeric {
  color: #273242;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.video-sandbox-table .emphasis {
  color: var(--sandbox-green);
}

.muted-num {
  color: #87958e;
}

.sandbox-multiplier {
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid #d7e7de;
  border-radius: 999px;
  background: #f6fbf8;
  color: #2f5e47;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.sandbox-multiplier.warm {
  border-color: #bfe5ce;
  background: #edf9f1;
  color: #1f7a50;
}

.sandbox-multiplier.hot {
  border-color: #efcf9d;
  background: #fff6e8;
  color: #9a5a12;
}

.sandbox-video-cell {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 260px;
  min-height: 78px;
}

.sandbox-action-row,
.video-mini-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.sandbox-action-row .icon-toggle.mini {
  margin-left: 1px;
}

.similar-videos-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 1px solid rgba(163, 230, 53, 0.28);
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.08);
  color: #d9f99d;
  text-decoration: none;
}

.similar-videos-action svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.similar-videos-action:hover,
.similar-videos-action:focus-visible {
  border-color: rgba(190, 242, 100, 0.62);
  background: rgba(163, 230, 53, 0.17);
  color: #ecfccb;
}

.similarity-score {
  display: inline-flex;
  margin: 4px 0 0 6px;
  padding: 2px 6px;
  border: 1px solid rgba(163, 230, 53, 0.24);
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.08);
  color: #bef264;
  font-size: 10px;
  font-weight: 850;
  vertical-align: top;
}

.video-sandbox-table .similarity-col,
.video-sandbox-table .similarity-value {
  min-width: 92px;
  width: 92px;
}

.video-sandbox-table .similarity-value strong {
  display: inline-flex;
  justify-content: center;
  min-width: 52px;
  padding: 4px 7px;
  border: 1px solid rgba(163, 230, 53, 0.24);
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.08);
  color: #bef264;
  font-size: 11px;
  font-weight: 850;
}

.similarity-error {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 9px;
  background: rgba(76, 29, 42, 0.42);
  color: #fecdd3;
  font-size: 12px;
  font-weight: 700;
}

.video-action-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.video-action-status[data-error="true"] {
  color: #b42318;
}

.video-state-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.collection-added-cell {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 128px;
}

.collection-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.collection-remove-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.collection-remove-button:hover,
.collection-remove-button:focus-visible {
  border-color: rgba(244, 63, 94, 0.36);
  background: rgba(255, 241, 242, 0.95);
  color: #be123c;
  transform: translateY(-1px);
  outline: none;
}

.sandbox-thumb {
  display: block;
  width: 136px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(19, 42, 33, 0.12);
  border-radius: 7px;
  background: var(--surface-2);
  box-shadow: 0 8px 18px rgba(19, 42, 33, 0.12);
}

.sandbox-thumb img,
.sandbox-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sandbox-title,
.sandbox-channel-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--sandbox-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sandbox-channel-title {
  -webkit-line-clamp: 1;
}

.video-sandbox.wrap-text .sandbox-title,
.video-sandbox.wrap-text .sandbox-channel-title {
  display: block;
  overflow: visible;
  white-space: normal;
}

.sandbox-title:hover,
.sandbox-channel-title:hover,
.sandbox-actions a:hover {
  color: var(--sandbox-accent-dark);
  text-decoration: underline;
}

.sandbox-video-cell p,
.sandbox-channel-cell p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.channel-metrics-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sandbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.sandbox-channel-links {
  margin-top: 4px;
}

.sandbox-actions a {
  color: var(--sandbox-green);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.sandbox-channel-cell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 210px;
}

.sandbox-channel-avatar-wrap {
  position: relative;
  width: 64px;
  height: 60px;
}

.sandbox-channel-avatar-wrap .channel-mini-actions {
  position: static;
}

.sandbox-channel-avatar {
  display: block;
  width: 60px;
  height: 60px;
  margin-left: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: 0 0 0 2px #cfe5d9, 0 10px 22px rgba(19, 42, 33, 0.14);
  object-fit: cover;
}

.sandbox-channel-avatar.placeholder {
  display: block;
}

.trend-cell {
  display: block;
  width: 174px;
  min-width: 174px;
  margin: 0 auto;
  color: #617168;
}

.trend-spark {
  display: block;
  width: 174px;
  height: 84px;
  overflow: visible;
}

.trend-spark path,
.trend-spark polyline,
.trend-spark circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-spark .trend-baseline {
  stroke: #d6e4dc;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.trend-spark polyline {
  stroke: currentColor;
  stroke-width: 3;
}

.trend-point {
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.4;
}

.trend-point.previous {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 1.8;
}

.trend-point.first,
.trend-point.peak,
.trend-point.valley,
.trend-point.turning {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 1.8;
}

.trend-point.latest {
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.16));
}

.trend-point-label {
  fill: currentColor;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 3px;
  paint-order: stroke;
  font-size: 9px;
  font-weight: 900;
}

.trend-point-date {
  fill: #7d8b84;
  font-size: 7px;
  font-weight: 800;
}

.trend-cell.rising {
  color: #177245;
}

.trend-cell.surging {
  color: #0f8a52;
}

.trend-cell.falling {
  color: #b5443f;
}

.trend-cell.stable {
  color: #2f5d7c;
}

.trend-cell.single,
.trend-cell.empty {
  color: #75837c;
}

.trend-placeholder {
  display: block;
  width: 174px;
  height: 84px;
  border-bottom: 1px dashed #dbe6df;
}

.metric-stack {
  display: grid;
  gap: 2px;
  justify-items: center;
  line-height: 1.2;
  text-align: center;
}

.metric-stack strong {
  color: var(--sandbox-ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.metric-stack small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.signal-cell {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 3px 6px;
  border: 1px solid rgba(117, 131, 124, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  color: #617168;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.signal-cell.up {
  border-color: rgba(23, 114, 69, 0.24);
  background: rgba(23, 114, 69, 0.08);
  color: #177245;
}

.signal-cell.down {
  border-color: rgba(181, 68, 63, 0.26);
  background: rgba(181, 68, 63, 0.08);
  color: #b5443f;
}

.signal-cell.flat {
  border-color: rgba(47, 93, 124, 0.24);
  background: rgba(47, 93, 124, 0.08);
  color: #2f5d7c;
}

.signal-cell.empty {
  color: #75837c;
}

.data-stack {
  justify-items: center;
}

.sandbox-ingredients,
.sandbox-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  min-width: 210px;
  max-width: 340px;
}

.sandbox-ingredients span,
.sandbox-ingredients em,
.sandbox-flags span,
.sandbox-flags em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.sandbox-ingredients span {
  border: 1px solid #cfe5d9;
  background: #eef8f2;
  color: var(--sandbox-green);
}

.sandbox-ingredients em,
.sandbox-flags em {
  background: #f1f3f5;
  color: #718179;
}

.sandbox-flags span {
  border: 1px solid #cfe5d9;
  background: #eef8f2;
  color: var(--sandbox-green);
}

.video-sandbox-empty {
  margin: 0;
  padding: 10px;
  border: 1px solid #cfe5d9;
  border-radius: 8px;
  background: #f2faf6;
  color: var(--sandbox-green);
  font-weight: 800;
}

.report-video-cell {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.report-video-thumb {
  display: block;
  width: 112px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}

.report-video-thumb img,
.report-video-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-rank {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  margin-bottom: 5px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.report-video-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.report-video-title:hover,
.report-channel-title:hover {
  color: var(--primary);
  text-decoration: underline;
}

.report-video-cell p,
.report-channel-cell p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.report-channel-cell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.report-channel-avatar-wrap {
  position: relative;
}

.report-channel-avatar {
  display: block;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  object-fit: cover;
}

.report-channel-actions {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.report-channel-row {
  min-width: 280px;
}

.report-channel-row .row-actions {
  margin-top: 5px;
}

.report-channel-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.report-channel-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.report-ingredient-cell {
  display: grid;
  gap: 7px;
  min-width: 190px;
}

.report-ingredient-cell > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ingredient-category,
.ingredient-chip,
.ingredient-more,
.ingredient-empty {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.ingredient-category {
  width: fit-content;
  background: #eef3ee;
  color: #35443c;
}

.ingredient-chip {
  background: #f8faf9;
  color: #4c5a53;
  border: 1px solid #e2e9e5;
}

.ingredient-more {
  background: #e8f5ef;
  color: var(--primary);
}

.ingredient-empty {
  background: #f2f4f3;
  color: var(--muted);
}

.report-views-cell {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.report-views-cell strong {
  font-size: 13px;
}

.report-views-cell small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.channel-action-status[data-error="true"] {
  color: #b3261e;
}

.folder-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% - 2px);
  right: 12px;
  display: grid;
  width: min(280px, calc(100vw - 32px));
  max-height: 280px;
  gap: 4px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  background: #fff;
}

.folder-menu[hidden] {
  display: none;
}

.folder-menu p,
.folder-menu-title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.folder-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.folder-menu label:hover {
  background: var(--surface-2);
}

.folder-menu input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.empty-menu {
  color: var(--muted);
  font-size: 12px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(460px, 1.2fr);
  gap: 16px;
  margin-bottom: 16px;
}

.profile-stats-panel {
  align-self: start;
}

.stat-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.stat-tile-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
}

.stat-tile-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-tile-grid dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-description {
  margin-bottom: 14px;
}

.channel-description p {
  max-height: 220px;
  overflow: auto;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.channel-description summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.panel-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title-row h2 {
  margin: 0;
}

.panel-title-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.growth-chart-list {
  display: grid;
  gap: 10px;
}

.growth-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
}

.growth-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.growth-card-head span,
.growth-card-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.growth-card-head strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  height: 56px;
  padding-top: 6px;
  border-bottom: 1px solid var(--line);
}

.bar-chart span {
  flex: 1 1 0;
  min-width: 4px;
  max-width: 18px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.bar-chart span.negative {
  background: #b3261e;
}

.growth-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
}

.growth-summary strong {
  color: var(--ink);
}

.data-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.compact-details {
  margin-bottom: 0;
}

.video-table-heading {
  margin-top: 6px;
}

.video-list-table table {
  min-width: 1000px;
}

.report-video-table table {
  min-width: 1000px;
  table-layout: fixed;
}

.rank {
  width: 44px;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.video-col {
  width: 300px;
}

.channel-col {
  width: 250px;
}

.vph-col {
  width: 86px;
}

.trend-col {
  width: 104px;
  text-align: center;
}

.growth-col {
  width: 86px;
}

.multiplier-col {
  width: 80px;
}

.views-col {
  width: 126px;
}

.date-col {
  width: 70px;
  text-align: center;
  white-space: nowrap;
}

.duration-col {
  width: 58px;
  text-align: center;
  white-space: nowrap;
}

.shadcn-lab-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 220;
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.shadcn-lab-toggle.active {
  border-color: rgba(250, 250, 250, 0.28);
}

.video-theme-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 320;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(19, 42, 33, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(19, 42, 33, 0.16);
  backdrop-filter: blur(14px);
}

.video-theme-switcher .shadcn-lab-toggle {
  position: static;
  inset: auto;
  z-index: auto;
  min-height: 30px;
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: none;
}

.video-theme-switcher .shadcn-lab-toggle.active {
  border-color: rgba(19, 42, 33, 0.16);
  background: #132a21;
  color: #f7fff9;
}

.video-sandbox.shadcn-lab {
  --toolbar-control-height: 34px;
  --sandbox-ink: #f8fafc;
  --sandbox-muted: #94a3b8;
  --sandbox-panel: #09090b;
  --sandbox-card: rgba(24, 24, 27, 0.88);
  --sandbox-card-solid: #18181b;
  --sandbox-border: rgba(250, 250, 250, 0.1);
  --sandbox-ring: rgba(163, 230, 53, 0.38);
  --sandbox-accent: #a3e635;
  --sandbox-accent-dark: #84cc16;
  --sandbox-green: #a3e635;
  --sandbox-green-dark: #09090b;
  --sandbox-line: rgba(250, 250, 250, 0.1);
  gap: 10px;
  color: #f8fafc;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) {
  border-right: 1px solid rgba(250, 250, 250, 0.09);
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.2), rgba(3, 8, 5, 0.78)),
    url("/static/controlplate_site/images/sidebar-jungle-car.png") 32% bottom / cover no-repeat,
    #09090b;
  color: #f8fafc;
  box-shadow: 16px 0 60px rgba(0, 0, 0, 0.28);
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) a {
  color: #e4e4e7;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #d9f99d;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) .brand {
  color: #fafafa;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) .sidebar-foot {
  color: #a1a1aa;
}

.app-sidebar + .shell.video-sandbox-shell:has(.video-sandbox.shadcn-lab) {
  background: transparent;
}

.video-sandbox.shadcn-lab::before {
  content: none;
}

.video-sandbox.shadcn-lab > * {
  position: relative;
  z-index: 1;
}

.video-sandbox.shadcn-lab .video-sandbox-controls {
  z-index: 180;
}

.video-sandbox.shadcn-lab .video-sandbox-popover[open] {
  z-index: 260;
}

.video-sandbox.shadcn-lab .video-sandbox-filter-grid,
.video-sandbox.shadcn-lab .video-sandbox-columns,
.video-sandbox.shadcn-lab .video-sandbox-ingredients-panel,
.video-sandbox.shadcn-lab .video-sandbox-language-panel,
.video-sandbox.shadcn-lab .video-sandbox-template-panel {
  z-index: 280;
}

.video-sandbox.shadcn-lab ~ .floating-folder-menu {
  z-index: 300;
}

.video-sandbox.shadcn-lab .video-sandbox-table-wrap {
  z-index: 1;
}

.video-sandbox.shadcn-lab .video-sandbox-controls {
  overflow: visible;
  padding: 10px;
  border: 1px solid var(--sandbox-border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(39, 39, 42, 0.94), rgba(9, 9, 11, 0.92)),
    #09090b;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.video-sandbox.shadcn-lab .video-sandbox-controls::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(163, 230, 53, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 44%);
}

.video-sandbox.shadcn-lab .button,
.video-sandbox.shadcn-lab .video-sandbox-popover summary,
.video-sandbox.shadcn-lab .video-sandbox-search input,
.video-sandbox.shadcn-lab .video-sandbox-text-search input,
.video-sandbox.shadcn-lab .video-sandbox-filter-grid input,
.video-sandbox.shadcn-lab .video-sandbox-filter-grid select,
.video-sandbox.shadcn-lab .video-sandbox-template-form input,
.video-sandbox.shadcn-lab .video-sandbox-template-edit-form input {
  border-color: var(--sandbox-border);
  border-radius: 9px;
  background: rgba(9, 9, 11, 0.72);
  color: #fafafa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.24);
}

.video-sandbox.shadcn-lab .video-sandbox-text-scope,
.video-sandbox.shadcn-lab .video-sandbox-fast-mode {
  border-color: rgba(250, 204, 21, 0.28);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(31, 25, 12, 0.94), rgba(9, 9, 11, 0.78)),
    rgba(9, 9, 11, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 223, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(250, 204, 21, 0.08);
}

.video-sandbox.shadcn-lab .video-sandbox-text-scope label,
.video-sandbox.shadcn-lab .video-sandbox-fast-mode label {
  border: 1px solid transparent;
  color: #c6b98a;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.video-sandbox.shadcn-lab .video-sandbox-text-scope label.selected,
.video-sandbox.shadcn-lab .video-sandbox-text-scope label:has(input:checked),
.video-sandbox.shadcn-lab .video-sandbox-fast-mode label.selected,
.video-sandbox.shadcn-lab .video-sandbox-fast-mode label:has(input:checked) {
  border-color: rgba(250, 204, 21, 0.48);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 247, 223, 0.22), transparent 52%),
    linear-gradient(180deg, rgba(250, 204, 21, 0.28), rgba(146, 92, 18, 0.34));
  color: #fff7df;
  box-shadow:
    0 0 0 1px rgba(255, 247, 223, 0.06) inset,
    0 0 18px rgba(250, 204, 21, 0.2);
}

.video-sandbox.shadcn-lab .button:hover,
.video-sandbox.shadcn-lab .video-sandbox-popover summary:hover,
.video-sandbox.shadcn-lab .video-sandbox-popover[open] summary {
  border-color: rgba(163, 230, 53, 0.42);
  background: rgba(24, 24, 27, 0.96);
  color: #f8fafc;
}

.video-sandbox.shadcn-lab .button.primary {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  font-weight: 820;
  box-shadow: var(--primary-action-shadow);
}

.video-sandbox.shadcn-lab .button.primary:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.video-sandbox.shadcn-lab .shadcn-lab-toggle {
  border-color: rgba(163, 230, 53, 0.34);
  background:
    linear-gradient(180deg, rgba(39, 39, 42, 0.98), rgba(9, 9, 11, 0.98)),
    #09090b;
  color: #d9f99d;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.video-sandbox.shadcn-lab .video-sandbox-filter-switch {
  border-color: rgba(250, 204, 21, 0.28);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(31, 25, 12, 0.94), rgba(9, 9, 11, 0.78)),
    rgba(9, 9, 11, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 223, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(250, 204, 21, 0.08);
}

.video-sandbox.shadcn-lab .video-sandbox-filter-switch label {
  border: 1px solid transparent;
  color: #c6b98a;
}

.video-sandbox.shadcn-lab .video-sandbox-filter-switch label:has(input:checked) {
  border-color: rgba(250, 204, 21, 0.48);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 247, 223, 0.22), transparent 52%),
    linear-gradient(180deg, rgba(250, 204, 21, 0.28), rgba(146, 92, 18, 0.34));
  color: #fff7df;
  box-shadow:
    0 0 0 1px rgba(255, 247, 223, 0.06) inset,
    0 0 18px rgba(250, 204, 21, 0.2);
}

.video-sandbox.shadcn-lab .video-sandbox-search input::placeholder,
.video-sandbox.shadcn-lab .video-sandbox-text-search input::placeholder {
  color: #71717a;
}

.video-sandbox.shadcn-lab .video-sandbox-search input:focus,
.video-sandbox.shadcn-lab .video-sandbox-text-search input:focus,
.video-sandbox.shadcn-lab .video-sandbox-filter-grid input:focus,
.video-sandbox.shadcn-lab .video-sandbox-filter-grid select:focus,
.video-sandbox.shadcn-lab .video-sandbox-popover summary:focus-visible,
.video-sandbox.shadcn-lab .button:focus-visible {
  border-color: rgba(163, 230, 53, 0.68);
  outline: 2px solid var(--sandbox-ring);
  outline-offset: 1px;
}

.video-sandbox.shadcn-lab .video-sandbox-popover.templates summary {
  border-color: rgba(163, 230, 53, 0.26);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(9, 9, 11, 0.8)),
    rgba(9, 9, 11, 0.92);
  color: #f8fafc;
}

.video-sandbox.shadcn-lab .template-summary-icon {
  border: 1px solid rgba(163, 230, 53, 0.2);
  background: rgba(163, 230, 53, 0.12);
  color: #d9f99d;
}

.video-sandbox.shadcn-lab .video-sandbox-popover summary small,
.video-sandbox.shadcn-lab .video-sandbox-popover.templates summary small {
  background: rgba(163, 230, 53, 0.14);
  color: #d9f99d;
}

.video-sandbox.shadcn-lab .video-sandbox-page-tools {
  color: #a1a1aa;
}

.video-sandbox.shadcn-lab .video-sandbox-page-summary {
  color: #d4d4d8;
}

.video-sandbox.shadcn-lab .video-sandbox-filter-grid,
.video-sandbox.shadcn-lab .video-sandbox-columns,
.video-sandbox.shadcn-lab .video-sandbox-ingredients-panel,
.video-sandbox.shadcn-lab .video-sandbox-language-panel,
.video-sandbox.shadcn-lab .video-sandbox-template-panel {
  border-color: rgba(250, 250, 250, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(39, 39, 42, 0.98), rgba(24, 24, 27, 0.98)),
    #18181b;
  color: #fafafa;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.video-sandbox.shadcn-lab .video-sandbox-filter-grid span,
.video-sandbox.shadcn-lab .video-sandbox-template-head small,
.video-sandbox.shadcn-lab .video-sandbox-folder-options small,
.video-sandbox.shadcn-lab .video-sandbox-template-list small {
  color: #a1a1aa;
}

.video-sandbox.shadcn-lab .video-sandbox-template-head,
.video-sandbox.shadcn-lab .video-sandbox-view-tools,
.video-sandbox.shadcn-lab .video-sandbox-template-form,
.video-sandbox.shadcn-lab .video-sandbox-folder-filter {
  border-color: rgba(250, 250, 250, 0.1);
}

.video-sandbox.shadcn-lab .video-sandbox-template-head span,
.video-sandbox.shadcn-lab .video-sandbox-columns legend {
  color: #d9f99d;
}

.video-sandbox.shadcn-lab .video-sandbox-language-panel label,
.video-sandbox.shadcn-lab .video-sandbox-folder-options label,
.video-sandbox.shadcn-lab .video-sandbox-template-list a,
.video-sandbox.shadcn-lab .video-sandbox-template-empty {
  border-color: rgba(250, 250, 250, 0.08);
  background: rgba(9, 9, 11, 0.42);
  color: #fafafa;
}

.video-sandbox.shadcn-lab .video-sandbox-language-panel label.selected,
.video-sandbox.shadcn-lab .video-sandbox-folder-options label.selected,
.video-sandbox.shadcn-lab .video-sandbox-template-list a.selected {
  border-color: rgba(163, 230, 53, 0.44);
  background: rgba(163, 230, 53, 0.12);
  color: #d9f99d;
}

.video-sandbox.shadcn-lab .video-sandbox-template-list a.changed {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(250, 204, 21, 0.1);
  color: #fde68a;
}

.video-sandbox.shadcn-lab .video-sandbox-table-wrap {
  border-color: rgba(250, 250, 250, 0.1);
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.92);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.video-sandbox.shadcn-lab .video-sandbox-table th {
  border-color: rgba(250, 250, 250, 0.09);
  background:
    linear-gradient(180deg, rgba(39, 39, 42, 0.98), rgba(9, 9, 11, 0.98)),
    #09090b;
  color: #f4f4f5;
  box-shadow:
    inset 0 -1px 0 rgba(163, 230, 53, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.video-sandbox.shadcn-lab .video-sandbox-table td {
  border-color: rgba(250, 250, 250, 0.07);
  background: rgba(9, 9, 11, 0.9);
  color: #e4e4e7;
}

.video-sandbox.shadcn-lab .video-sandbox-table tbody tr:nth-child(even) td {
  background: rgba(24, 24, 27, 0.9);
}

.video-sandbox.shadcn-lab .video-sandbox-table tbody tr:hover td {
  background: rgba(39, 39, 42, 0.98);
}

.video-sandbox.shadcn-lab .video-sandbox-table td.numeric {
  color: #f8fafc;
}

.video-sandbox.shadcn-lab .video-sandbox-table .emphasis,
.video-sandbox.shadcn-lab .sandbox-actions a,
.video-sandbox.shadcn-lab .sandbox-title:hover,
.video-sandbox.shadcn-lab .sandbox-channel-title:hover {
  color: #bef264;
}

.video-sandbox.shadcn-lab .sandbox-title,
.video-sandbox.shadcn-lab .sandbox-channel-title {
  color: #fafafa;
}

.video-sandbox.shadcn-lab .sandbox-video-cell p,
.video-sandbox.shadcn-lab .sandbox-channel-cell p,
.video-sandbox.shadcn-lab .muted-num {
  color: #a1a1aa;
}

.video-sandbox.shadcn-lab .collection-remove-button {
  border-color: rgba(250, 250, 250, 0.12);
  background: rgba(39, 39, 42, 0.88);
  color: #d4d4d8;
}

.video-sandbox.shadcn-lab .collection-remove-button:hover,
.video-sandbox.shadcn-lab .collection-remove-button:focus-visible {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(76, 29, 42, 0.8);
  color: #fecdd3;
}

.video-sandbox.shadcn-lab .sandbox-thumb,
.video-sandbox.shadcn-lab .sandbox-channel-avatar {
  border-color: rgba(250, 250, 250, 0.12);
  box-shadow:
    0 0 0 1px rgba(163, 230, 53, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.38);
}

.video-sandbox.shadcn-lab .sandbox-multiplier {
  border-color: rgba(163, 230, 53, 0.18);
  background: rgba(163, 230, 53, 0.09);
  color: #d9f99d;
}

.video-sandbox.shadcn-lab .sandbox-multiplier.warm {
  border-color: rgba(14, 165, 233, 0.34);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
}

.video-sandbox.shadcn-lab .sandbox-multiplier.hot {
  border-color: rgba(250, 204, 21, 0.38);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
}

.video-sandbox.shadcn-lab .sort-actions {
  border-color: rgba(250, 250, 250, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.video-sandbox.shadcn-lab .sort-arrow {
  color: #a1a1aa;
}

.video-sandbox.shadcn-lab .sort-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

.video-sandbox.shadcn-lab .sort-arrow.active {
  background: #a3e635;
  color: #111827;
}

.video-sandbox.shadcn-lab .video-sandbox-controls {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(24, 24, 27, 0.94), rgba(15, 15, 18, 0.94)),
    #18181b;
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.video-sandbox.shadcn-lab .button.primary {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  box-shadow: var(--primary-action-shadow);
}

.video-sandbox.shadcn-lab .button.primary:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.video-sandbox.shadcn-lab .button,
.video-sandbox.shadcn-lab .video-sandbox-popover summary,
.video-sandbox.shadcn-lab .video-sandbox-search input,
.video-sandbox.shadcn-lab .video-sandbox-text-search input {
  background: rgba(24, 24, 27, 0.72);
}

.video-sandbox.shadcn-lab .shadcn-lab-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  top: auto;
  left: auto;
  display: inline-flex;
  width: max-content;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(24, 24, 27, 0.96);
  color: #e4e4e7;
}

.video-sandbox.shadcn-lab .shadcn-lab-toggle:hover {
  border-color: rgba(163, 230, 53, 0.34);
  color: #d9f99d;
}

.video-sandbox.shadcn-lab .video-sandbox-table-wrap {
  border-color: rgba(255, 255, 255, 0.08);
  background: #111113;
}

.video-sandbox.shadcn-lab .video-sandbox-table th {
  background:
    linear-gradient(180deg, rgba(31, 31, 35, 0.98), rgba(18, 18, 21, 0.98)),
    #18181b;
  color: #e4e4e7;
  font-weight: 780;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.video-sandbox.shadcn-lab .video-sandbox-table td {
  background: #111113;
  color: #d4d4d8;
}

.video-sandbox.shadcn-lab .video-sandbox-table tbody tr:nth-child(even) td {
  background: #17171a;
}

.video-sandbox.shadcn-lab .video-sandbox-table tbody tr:hover td {
  background: #202024;
}

.video-sandbox.shadcn-lab .sandbox-title,
.video-sandbox.shadcn-lab .sandbox-channel-title {
  color: #f4f4f5;
  font-weight: 780;
}

.video-sandbox.shadcn-lab .sandbox-actions a,
.video-sandbox.shadcn-lab .video-sandbox-table .emphasis {
  color: #a3e635;
}

.video-sandbox.shadcn-lab .sandbox-video-cell p,
.video-sandbox.shadcn-lab .sandbox-channel-cell p {
  color: #a1a1aa;
  font-weight: 650;
}

.video-sandbox.shadcn-lab .sandbox-thumb {
  border-radius: 9px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.32);
}

.video-sandbox.shadcn-lab .sandbox-channel-avatar {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.3);
}

.video-sandbox.shadcn-lab .sort-arrow.active {
  background: #bbf7d0;
  color: #04120b;
}

.video-sandbox.shadcn-lab {
  --jungle-night-0: #020604;
  --jungle-night-1: #06110c;
  --jungle-night-2: #0a1b12;
  --jungle-night-3: #0f2619;
  --jungle-panel: rgba(6, 17, 12, 0.86);
  --jungle-panel-solid: #07140e;
  --jungle-panel-soft: rgba(12, 38, 25, 0.76);
  --jungle-border: rgba(171, 255, 205, 0.16);
  --jungle-border-strong: rgba(171, 255, 205, 0.34);
  --jungle-leaf: #bbf7d0;
  --jungle-leaf-strong: #52ffa8;
  --jungle-cyan: #67e8f9;
  --jungle-warn: #facc15;
  --jungle-danger: #fb7185;
  --jungle-text: #ecfff4;
  --jungle-muted: #89a99a;
  --sandbox-ink: var(--jungle-text);
  --sandbox-muted: var(--jungle-muted);
  --sandbox-panel: var(--jungle-night-0);
  --sandbox-card: var(--jungle-panel);
  --sandbox-card-solid: var(--jungle-panel-solid);
  --sandbox-border: var(--jungle-border);
  --sandbox-ring: rgba(82, 255, 168, 0.36);
  --sandbox-accent: var(--jungle-leaf-strong);
  --sandbox-accent-dark: var(--jungle-leaf);
  --sandbox-green: var(--jungle-leaf);
  --sandbox-green-dark: var(--jungle-night-0);
  --sandbox-line: rgba(171, 255, 205, 0.11);
  font-feature-settings: "tnum" 1, "ss01" 1;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) {
  border-right-color: rgba(171, 255, 205, 0.12);
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.2), rgba(3, 8, 5, 0.78)),
    url("/static/controlplate_site/images/sidebar-jungle-car.png") 32% bottom / cover no-repeat,
    #020604;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) a:hover {
  background: rgba(82, 255, 168, 0.08);
  color: #bbf7d0;
}

.app-sidebar + .shell.video-sandbox-shell:has(.video-sandbox.shadcn-lab) {
  --jungle-night-0: #020604;
  --jungle-night-1: #06110c;
  --jungle-night-2: #0a1b12;
  --jungle-night-3: #0f2619;
  --jungle-panel: rgba(6, 17, 12, 0.86);
  --jungle-panel-solid: #07140e;
  --jungle-panel-soft: rgba(12, 38, 25, 0.76);
  --jungle-border: rgba(171, 255, 205, 0.16);
  --jungle-border-strong: rgba(171, 255, 205, 0.34);
  --jungle-leaf: #bbf7d0;
  --jungle-leaf-strong: #52ffa8;
  --jungle-cyan: #67e8f9;
  --jungle-warn: #facc15;
  --jungle-danger: #fb7185;
  --jungle-text: #ecfff4;
  --jungle-muted: #89a99a;
  background: transparent;
}

.video-sandbox.shadcn-lab .video-sandbox-controls {
  border-color: var(--jungle-border);
  background:
    linear-gradient(180deg, rgba(2, 6, 4, 0.72), rgba(2, 6, 4, 0.9)),
    url("/static/controlplate_site/images/sandbox-toolbar-jungle-bg.jpg") center / cover no-repeat,
    var(--jungle-night-1);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(82, 255, 168, 0.06),
    inset 0 1px 0 rgba(236, 255, 244, 0.09);
}

.video-sandbox.shadcn-lab .video-sandbox-controls::after {
  content: none;
}

.video-sandbox.shadcn-lab .button,
.video-sandbox.shadcn-lab .video-sandbox-popover summary,
.video-sandbox.shadcn-lab .video-sandbox-search input,
.video-sandbox.shadcn-lab .video-sandbox-text-search input,
.video-sandbox.shadcn-lab .video-sandbox-filter-grid input,
.video-sandbox.shadcn-lab .video-sandbox-filter-grid select,
.video-sandbox.shadcn-lab .video-sandbox-template-form input,
.video-sandbox.shadcn-lab .video-sandbox-template-edit-form input,
.video-sandbox.shadcn-lab .ingredient-search-control input {
  border-color: var(--jungle-border);
  background: rgba(2, 8, 5, 0.64);
  color: var(--jungle-text);
  box-shadow:
    inset 0 1px 0 rgba(236, 255, 244, 0.06),
    0 1px 0 rgba(82, 255, 168, 0.04);
}

.video-sandbox.shadcn-lab .button:hover,
.video-sandbox.shadcn-lab .video-sandbox-popover summary:hover,
.video-sandbox.shadcn-lab .video-sandbox-popover[open] summary {
  border-color: var(--jungle-border-strong);
  background: rgba(13, 39, 26, 0.86);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .button.primary {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  box-shadow: var(--primary-action-shadow);
}

.video-sandbox.shadcn-lab .button.primary:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.video-sandbox.shadcn-lab .button.disabled {
  border-color: rgba(171, 255, 205, 0.08);
  background: rgba(2, 8, 5, 0.38);
  color: rgba(137, 169, 154, 0.56);
}

.video-sandbox.shadcn-lab .video-sandbox-search input::placeholder,
.video-sandbox.shadcn-lab .video-sandbox-text-search input::placeholder,
.video-sandbox.shadcn-lab .video-sandbox-template-form input::placeholder,
.video-sandbox.shadcn-lab .ingredient-search-control input::placeholder {
  color: rgba(137, 169, 154, 0.86);
}

.video-sandbox.shadcn-lab .video-sandbox-popover.templates summary {
  border-color: rgba(82, 255, 168, 0.38);
  background:
    radial-gradient(circle at 14% 0%, rgba(82, 255, 168, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(13, 52, 33, 0.95), rgba(3, 15, 9, 0.92));
  color: var(--jungle-text);
}

.video-sandbox.shadcn-lab.template-applied .video-sandbox-popover.templates summary,
.video-sandbox.shadcn-lab .video-sandbox-popover.templates[open] summary,
.video-sandbox.shadcn-lab .video-sandbox-popover.templates summary:hover {
  border-color: rgba(82, 255, 168, 0.62);
  background:
    radial-gradient(circle at 16% 0%, rgba(82, 255, 168, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(15, 70, 44, 0.96), rgba(4, 18, 11, 0.96));
  color: #f4fff8;
}

.video-sandbox.shadcn-lab.template-changed .video-sandbox-popover.templates summary {
  border-color: rgba(250, 204, 21, 0.48);
  background:
    radial-gradient(circle at 16% 0%, rgba(250, 204, 21, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(62, 45, 9, 0.94), rgba(18, 13, 4, 0.96));
  color: #fef3c7;
}

.video-sandbox.shadcn-lab .template-summary-icon {
  border-color: rgba(82, 255, 168, 0.32);
  background: rgba(82, 255, 168, 0.13);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .video-sandbox-popover summary small,
.video-sandbox.shadcn-lab .video-sandbox-popover.templates summary small {
  background: rgba(82, 255, 168, 0.14);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .video-sandbox-page-tools {
  color: var(--jungle-muted);
}

.video-sandbox.shadcn-lab .video-sandbox-page-summary {
  color: rgba(236, 255, 244, 0.78);
}

.video-sandbox.shadcn-lab .video-sandbox-filter-grid,
.video-sandbox.shadcn-lab .video-sandbox-columns,
.video-sandbox.shadcn-lab .video-sandbox-ingredients-panel,
.video-sandbox.shadcn-lab .video-sandbox-language-panel,
.video-sandbox.shadcn-lab .video-sandbox-template-panel,
.video-sandbox.shadcn-lab ~ .folder-menu,
.folder-menu:has(input) {
  border-color: var(--jungle-border);
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 255, 168, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(10, 27, 18, 0.98), rgba(3, 10, 6, 0.98)),
    var(--jungle-night-1);
  color: var(--jungle-text);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(236, 255, 244, 0.08);
}

.video-sandbox.shadcn-lab .video-sandbox-filter-grid span,
.video-sandbox.shadcn-lab .video-sandbox-template-head small,
.video-sandbox.shadcn-lab .video-sandbox-folder-options small,
.video-sandbox.shadcn-lab .video-sandbox-template-list small,
.video-sandbox.shadcn-lab .ingredient-search-meta,
.video-sandbox.shadcn-lab .ingredient-search-results small {
  color: var(--jungle-muted);
}

.video-sandbox.shadcn-lab .video-sandbox-template-head,
.video-sandbox.shadcn-lab .video-sandbox-view-tools,
.video-sandbox.shadcn-lab .video-sandbox-template-form,
.video-sandbox.shadcn-lab .video-sandbox-folder-filter {
  border-color: rgba(171, 255, 205, 0.11);
}

.video-sandbox.shadcn-lab .video-sandbox-template-head span,
.video-sandbox.shadcn-lab .video-sandbox-columns legend,
.video-sandbox.shadcn-lab .ingredient-search-control span,
.video-sandbox.shadcn-lab .folder-menu-title {
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .video-sandbox-language-panel label,
.video-sandbox.shadcn-lab .video-sandbox-folder-options label,
.video-sandbox.shadcn-lab .video-sandbox-template-list a,
.video-sandbox.shadcn-lab .video-sandbox-template-empty,
.video-sandbox.shadcn-lab .ingredient-search-results label,
.video-sandbox.shadcn-lab ~ .folder-menu label,
.folder-menu:has(input) label {
  border-color: rgba(171, 255, 205, 0.1);
  background: rgba(2, 8, 5, 0.44);
  color: var(--jungle-text);
}

.video-sandbox.shadcn-lab .video-sandbox-language-panel label:hover,
.video-sandbox.shadcn-lab .video-sandbox-folder-options label:hover,
.video-sandbox.shadcn-lab .video-sandbox-template-list a:hover,
.video-sandbox.shadcn-lab .ingredient-search-results label:hover,
.video-sandbox.shadcn-lab ~ .folder-menu label:hover,
.folder-menu:has(input) label:hover {
  border-color: rgba(82, 255, 168, 0.28);
  background: rgba(13, 39, 26, 0.74);
}

.video-sandbox.shadcn-lab .video-sandbox-language-panel label.selected,
.video-sandbox.shadcn-lab .video-sandbox-folder-options label.selected,
.video-sandbox.shadcn-lab .video-sandbox-template-list a.selected,
.video-sandbox.shadcn-lab .ingredient-search-results label.selected {
  border-color: rgba(82, 255, 168, 0.48);
  background: rgba(82, 255, 168, 0.13);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .video-sandbox-template-list a.changed {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(250, 204, 21, 0.11);
  color: #fde68a;
}

.video-sandbox.shadcn-lab input[type="checkbox"],
.video-sandbox.shadcn-lab input[type="radio"],
.video-sandbox.shadcn-lab ~ .folder-menu input[type="checkbox"],
.folder-menu:has(input) input[type="checkbox"] {
  accent-color: var(--jungle-leaf-strong);
}

.video-sandbox.shadcn-lab .video-sandbox-filter-grid .video-sandbox-folder-options input,
.video-sandbox.shadcn-lab .ingredient-search-results input {
  border-color: rgba(171, 255, 205, 0.24);
  background: rgba(2, 8, 5, 0.76);
}

.video-sandbox.shadcn-lab .video-sandbox-filter-grid .video-sandbox-folder-options input:checked {
  border-color: rgba(82, 255, 168, 0.86);
  background:
    linear-gradient(135deg, transparent 0 42%, #04120b 43% 57%, transparent 58%),
    linear-gradient(45deg, transparent 0 47%, #04120b 48% 61%, transparent 62%),
    var(--jungle-leaf-strong);
}

.video-sandbox.shadcn-lab .video-sandbox-table-wrap {
  border-color: rgba(171, 255, 205, 0.13);
  background: rgba(2, 6, 4, 0.85);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(82, 255, 168, 0.04),
    inset 0 1px 0 rgba(236, 255, 244, 0.06);
}

.video-sandbox.shadcn-lab .video-sandbox-table th {
  border-color: rgba(171, 255, 205, 0.12);
  background:
    linear-gradient(180deg, rgba(13, 39, 26, 0.98), rgba(3, 11, 7, 0.98)),
    var(--jungle-night-1);
  color: rgba(236, 255, 244, 0.9);
  font-size: 12px;
  font-weight: 760;
  box-shadow:
    inset 0 -1px 0 rgba(82, 255, 168, 0.46),
    inset 0 1px 0 rgba(236, 255, 244, 0.07);
}

.video-sandbox.shadcn-lab .video-sandbox-table th[data-column="signal_views"] .sortable-heading-label,
.video-sandbox.shadcn-lab .video-sandbox-table th[data-column="signal_vph_delta"] .sortable-heading-label {
  color: rgba(236, 255, 244, 0.94);
  font-weight: 850;
  text-shadow: 0 0 12px rgba(82, 255, 168, 0.16);
}

.video-sandbox.shadcn-lab .video-sandbox-table th[data-column="signal_views"] .sortable-heading.active .sortable-heading-label,
.video-sandbox.shadcn-lab .video-sandbox-table th[data-column="signal_vph_delta"] .sortable-heading.active .sortable-heading-label {
  color: #f4fff8;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.18);
}

.video-sandbox.shadcn-lab .video-sandbox-table td {
  border-color: rgba(171, 255, 205, 0.08);
  background: rgba(3, 10, 6, 0.85);
  color: rgba(236, 255, 244, 0.84);
}

.video-sandbox.shadcn-lab .video-sandbox-table tbody tr:nth-child(even) td {
  background: rgba(7, 20, 14, 0.85);
}

.video-sandbox.shadcn-lab .video-sandbox-table tbody tr:hover td {
  background: rgba(13, 39, 26, 0.92);
}

.video-sandbox.shadcn-lab .video-sandbox-table td.numeric,
.video-sandbox.shadcn-lab .metric-stack strong {
  color: var(--jungle-text);
}

.video-sandbox.shadcn-lab .gain,
.video-sandbox.shadcn-lab .video-sandbox-table .emphasis,
.video-sandbox.shadcn-lab .sandbox-actions a,
.video-sandbox.shadcn-lab .sandbox-title:hover,
.video-sandbox.shadcn-lab .sandbox-channel-title:hover {
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .sandbox-title,
.video-sandbox.shadcn-lab .sandbox-channel-title {
  color: #f4fff8;
  font-weight: 780;
}

.video-sandbox.shadcn-lab .sandbox-video-cell p,
.video-sandbox.shadcn-lab .sandbox-channel-cell p,
.video-sandbox.shadcn-lab .muted-num,
.video-sandbox.shadcn-lab .metric-stack small {
  color: var(--jungle-muted);
}

.video-sandbox.shadcn-lab .sandbox-thumb {
  border-color: rgba(171, 255, 205, 0.16);
  border-radius: 10px;
  background: var(--jungle-night-2);
  box-shadow:
    0 0 0 1px rgba(82, 255, 168, 0.09),
    0 14px 30px rgba(0, 0, 0, 0.42);
}

.video-sandbox.shadcn-lab .sandbox-channel-avatar {
  border-color: rgba(236, 255, 244, 0.74);
  background: var(--jungle-night-2);
  box-shadow:
    0 0 0 2px rgba(82, 255, 168, 0.32),
    0 12px 28px rgba(0, 0, 0, 0.44);
}

.video-sandbox.shadcn-lab .icon-toggle.mini,
.video-sandbox.shadcn-lab .template-icon-action {
  border-color: rgba(171, 255, 205, 0.16);
  background: rgba(2, 8, 5, 0.76);
  color: var(--jungle-muted);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(236, 255, 244, 0.06);
}

.video-sandbox.shadcn-lab .icon-toggle.mini:hover,
.video-sandbox.shadcn-lab .template-icon-action:hover,
.video-sandbox.shadcn-lab .template-icon-action:focus-visible {
  border-color: rgba(82, 255, 168, 0.38);
  background: rgba(13, 39, 26, 0.9);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .icon-toggle.mini.active {
  border-color: rgba(251, 113, 133, 0.46);
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
}

.video-sandbox.shadcn-lab .icon-toggle.mini.archive.active {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.13);
  color: #cbd5e1;
}

.video-sandbox.shadcn-lab .icon-toggle.mini.folder.active {
  border-color: rgba(82, 255, 168, 0.46);
  background: rgba(82, 255, 168, 0.14);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .state-badge,
.video-sandbox.shadcn-lab .sandbox-ingredients span,
.video-sandbox.shadcn-lab .sandbox-ingredients em,
.video-sandbox.shadcn-lab .sandbox-flags span,
.video-sandbox.shadcn-lab .sandbox-flags em,
.video-sandbox.shadcn-lab .active-filter-chip,
.video-sandbox.shadcn-lab .sandbox-multiplier {
  border-color: rgba(171, 255, 205, 0.14);
  background: rgba(13, 39, 26, 0.62);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .state-badge.favorite {
  border-color: rgba(251, 113, 133, 0.36);
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
}

.video-sandbox.shadcn-lab .state-badge.archive,
.video-sandbox.shadcn-lab .sandbox-ingredients em,
.video-sandbox.shadcn-lab .sandbox-flags em {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.video-sandbox.shadcn-lab .state-badge.folder {
  border-color: rgba(103, 232, 249, 0.28);
  background: rgba(103, 232, 249, 0.1);
  color: #a5f3fc;
}

.video-sandbox.shadcn-lab .sandbox-multiplier.warm {
  border-color: rgba(103, 232, 249, 0.34);
  background: rgba(103, 232, 249, 0.12);
  color: #a5f3fc;
}

.video-sandbox.shadcn-lab .sandbox-multiplier.hot {
  border-color: rgba(250, 204, 21, 0.44);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
}

.video-sandbox.shadcn-lab .signal-cell {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  color: var(--jungle-muted);
}

.video-sandbox.shadcn-lab .signal-cell.up {
  border-color: rgba(82, 255, 168, 0.26);
  background: rgba(82, 255, 168, 0.1);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .signal-cell.down {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
}

.video-sandbox.shadcn-lab .signal-cell.flat {
  border-color: rgba(103, 232, 249, 0.22);
  background: rgba(103, 232, 249, 0.08);
  color: #a5f3fc;
}

.app-sidebar + .shell.user-admin-shell {
  width: calc(100vw - 220px);
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 220px;
  padding: 14px;
  background: transparent;
}

.app-sidebar:has(+ .shell.user-admin-shell .user-admin-page.shadcn-lab) {
  border-right-color: rgba(171, 255, 205, 0.12);
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.2), rgba(3, 8, 5, 0.78)),
    url("/static/controlplate_site/images/sidebar-jungle-car.png") 32% bottom / cover no-repeat,
    #020604;
}

.user-admin-page.shadcn-lab {
  --jungle-night-0: #020604;
  --jungle-night-1: #06110c;
  --jungle-night-2: #0a1b12;
  --jungle-panel: rgba(6, 17, 12, 0.86);
  --jungle-border: rgba(171, 255, 205, 0.16);
  --jungle-border-strong: rgba(171, 255, 205, 0.34);
  --jungle-leaf: #bbf7d0;
  --jungle-leaf-strong: #52ffa8;
  --jungle-danger: #fb7185;
  --jungle-text: #ecfff4;
  --jungle-muted: #89a99a;
  --sandbox-ink: var(--jungle-text);
  --sandbox-muted: var(--jungle-muted);
  --sandbox-border: var(--jungle-border);
  --sandbox-ring: rgba(82, 255, 168, 0.36);
  --toolbar-control-height: 34px;
  gap: 12px;
  color: var(--jungle-text);
  font-feature-settings: "tnum" 1, "ss01" 1;
}

.user-admin-commandbar,
.user-admin-panel,
.user-admin-table-section {
  border: 1px solid var(--jungle-border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(2, 6, 4, 0.72), rgba(2, 6, 4, 0.9)),
    var(--jungle-night-1);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(82, 255, 168, 0.05),
    inset 0 1px 0 rgba(236, 255, 244, 0.08);
  backdrop-filter: blur(18px);
}

.user-admin-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(2, 6, 4, 0.72), rgba(2, 6, 4, 0.9)),
    url("/static/controlplate_site/images/sandbox-toolbar-jungle-bg.jpg") center / cover no-repeat,
    var(--jungle-night-1);
}

.user-admin-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 4px;
}

.user-admin-title span,
.user-admin-panel-head span {
  color: var(--jungle-muted);
  font-size: 12px;
  font-weight: 720;
}

.user-admin-title h1,
.user-admin-panel-head h2 {
  margin: 0;
  color: var(--jungle-text);
  letter-spacing: 0;
}

.user-admin-title h1 {
  overflow: hidden;
  font-size: 22px;
  font-weight: 840;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(171, 255, 205, 0.14);
  border-radius: 9px;
  background: rgba(2, 8, 5, 0.58);
}

.user-admin-tabs a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--jungle-muted);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.user-admin-tabs a.active,
.user-admin-tabs a:hover {
  border-color: rgba(82, 255, 168, 0.36);
  background: rgba(82, 255, 168, 0.13);
  color: var(--jungle-leaf);
}

.user-admin-panel {
  padding: 14px;
}

.user-admin-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.user-admin-panel-head h2 {
  font-size: 15px;
  font-weight: 820;
}

.user-create-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.user-admin-page label,
.user-admin-page .user-create-form label {
  color: rgba(236, 255, 244, 0.74);
  font-size: 12px;
  font-weight: 720;
}

.user-admin-page input,
.user-admin-page select,
.user-admin-page textarea {
  min-height: var(--toolbar-control-height);
  border-color: var(--jungle-border);
  border-radius: 9px;
  background: rgba(2, 8, 5, 0.64);
  color: var(--jungle-text);
  font-size: 13px;
  box-shadow:
    inset 0 1px 0 rgba(236, 255, 244, 0.06),
    0 1px 0 rgba(82, 255, 168, 0.04);
}

.user-admin-page textarea {
  min-height: 128px;
}

.user-admin-page input::placeholder,
.user-admin-page textarea::placeholder {
  color: rgba(137, 169, 154, 0.86);
}

.user-admin-page input:focus,
.user-admin-page select:focus,
.user-admin-page textarea:focus {
  border-color: rgba(82, 255, 168, 0.58);
  outline: 2px solid var(--sandbox-ring);
  outline-offset: 1px;
}

.user-admin-page input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--jungle-leaf-strong);
}

.user-admin-page .button {
  border-color: var(--jungle-border);
  border-radius: 9px;
  background: rgba(2, 8, 5, 0.64);
  color: var(--jungle-text);
}

.user-admin-page .button:hover {
  border-color: var(--jungle-border-strong);
  background: rgba(13, 39, 26, 0.86);
  color: var(--jungle-leaf);
}

.user-admin-page .button.primary {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  box-shadow: var(--primary-action-shadow);
}

.user-admin-page .button.primary:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.user-admin-page .button.danger {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(76, 29, 42, 0.28);
  color: #fda4af;
}

.user-admin-page .button.danger:hover {
  border-color: rgba(251, 113, 133, 0.52);
  background: rgba(76, 29, 42, 0.72);
  color: #fecdd3;
}

.input-with-action {
  grid-template-columns: minmax(0, 1fr) auto;
}

.input-with-action .button {
  white-space: nowrap;
}

.user-create-active {
  align-self: end;
  min-height: var(--toolbar-control-height);
  padding: 0;
}

.user-create-actions {
  display: flex;
  align-self: end;
  justify-content: flex-end;
}

.user-create-form .errorlist,
.user-detail-form .errorlist {
  margin: 0;
  padding-left: 17px;
  color: #fda4af;
  font-size: 12px;
  font-weight: 650;
}

.app-sidebar + .shell.pipeline-status-shell {
  width: calc(100vw - 220px);
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 220px;
  padding: 14px;
  background: #06110c;
}

.pipeline-status-page {
  display: grid;
  gap: 12px;
  color: #ecfff4;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

.pipeline-commandbar,
.pipeline-panel,
.pipeline-kpi-grid article,
.pipeline-stage-card {
  border: 1px solid rgba(171, 255, 205, 0.15);
  border-radius: 8px;
  background: rgba(2, 8, 5, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.pipeline-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
}

.pipeline-commandbar span,
.pipeline-panel-head span,
.pipeline-kpi-grid span,
.pipeline-stage-card dt {
  color: #8fb6a2;
  font-size: 12px;
  font-weight: 720;
}

.pipeline-commandbar h1,
.pipeline-panel h2,
.pipeline-flow-head h3,
.pipeline-stage-card h3,
.pipeline-stage-card h4,
.pipeline-subhead h3 {
  margin: 0;
  color: #ecfff4;
  letter-spacing: 0;
}

.pipeline-commandbar h1 {
  font-size: 21px;
  line-height: 1.15;
}

.pipeline-day-switcher {
  display: inline-grid;
  grid-template-columns: 34px minmax(116px, auto) 34px;
  align-items: center;
  gap: 6px;
}

.pipeline-day-switcher a,
.pipeline-day-switcher strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(171, 255, 205, 0.18);
  border-radius: 7px;
  background: rgba(4, 15, 10, 0.88);
  color: #ecfff4;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.pipeline-day-switcher a {
  color: #bbf7d0;
  font-size: 21px;
}

.pipeline-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.pipeline-kpi-grid article {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 10px;
}

.pipeline-kpi-grid strong {
  color: #ecfff4;
  font-size: 23px;
  line-height: 1.05;
}

.pipeline-kpi-grid em {
  color: #8fb6a2;
  font-size: 12px;
  font-style: normal;
}

.pipeline-panel {
  min-width: 0;
  padding: 12px;
}

.pipeline-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pipeline-panel h2 {
  font-size: 15px;
}

.pipeline-flow-board {
  display: grid;
  gap: 10px;
}

.pipeline-flow-lane {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 8px;
  background: rgba(4, 15, 10, 0.48);
}

.pipeline-flow-head,
.pipeline-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pipeline-flow-head h3,
.pipeline-subhead h3 {
  font-size: 13px;
  line-height: 1.2;
}

.pipeline-flow-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pipeline-flow-step {
  position: relative;
  min-width: 180px;
}

.pipeline-flow-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  color: rgba(187, 247, 208, 0.58);
  font-size: 20px;
  font-weight: 820;
  line-height: 1;
}

.pipeline-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 8px;
}

.pipeline-stage-card {
  display: grid;
  gap: 9px;
  min-height: 152px;
  padding: 10px;
  background: rgba(4, 15, 10, 0.86);
}

.pipeline-stage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pipeline-stage-card h3 {
  font-size: 13px;
  line-height: 1.25;
}

.pipeline-stage-card h4 {
  font-size: 12px;
  line-height: 1.25;
}

.pipeline-stage-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.pipeline-stage-card dd {
  margin: 2px 0 0;
  color: #ecfff4;
  font-size: 13px;
  font-weight: 760;
}

.pipeline-stage-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pipeline-stage-metrics span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(171, 255, 205, 0.12);
  border-radius: 999px;
  background: rgba(2, 8, 5, 0.7);
  color: #9bbfad;
  font-size: 11px;
  font-weight: 700;
}

.pipeline-stage-metrics strong {
  color: #ecfff4;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pipeline-table-wrap {
  overflow: auto;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 7px;
}

.pipeline-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.pipeline-table th,
.pipeline-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(171, 255, 205, 0.08);
  color: #dff7e9;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

.pipeline-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #07140d;
  color: #8fb6a2;
  font-weight: 780;
}

.pipeline-table tr:last-child td {
  border-bottom: 0;
}

.pipeline-table .numeric {
  text-align: right;
  white-space: nowrap;
}

.pipeline-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.pipeline-status-badge.ok {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(22, 101, 52, 0.26);
  color: #bbf7d0;
}

.pipeline-status-badge.running {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(30, 64, 175, 0.28);
  color: #bfdbfe;
}

.pipeline-status-badge.warning {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(146, 64, 14, 0.3);
  color: #fde68a;
}

.pipeline-status-badge.error {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(127, 29, 29, 0.34);
  color: #fecdd3;
}

.pipeline-status-badge.unknown {
  color: #cbd5e1;
}

.pipeline-note,
.pipeline-empty {
  color: #9bbfad;
  font-size: 12px;
}

.pipeline-note {
  margin: 0;
}

.pipeline-warning-panel {
  border-color: rgba(251, 191, 36, 0.28);
}

.pipeline-subhead {
  margin: 12px 0 8px;
}

.pipeline-table strong,
.pipeline-table small {
  display: block;
}

.pipeline-table small {
  margin-top: 2px;
  color: #8fb6a2;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .pipeline-kpi-grid,
  .pipeline-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-sidebar + .shell.pipeline-status-shell {
    width: 100%;
    margin-left: 0;
    padding: 10px;
  }

  .pipeline-commandbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pipeline-kpi-grid,
  .pipeline-stage-grid {
    grid-template-columns: 1fr;
  }
}

.created-credentials {
  border-color: rgba(82, 255, 168, 0.28);
  border-radius: 10px;
  background: rgba(82, 255, 168, 0.1);
  color: var(--jungle-text);
}

.created-credentials span {
  color: var(--jungle-muted);
}

.created-credentials pre {
  border: 1px solid rgba(171, 255, 205, 0.12);
  border-radius: 9px;
  background: rgba(2, 8, 5, 0.68);
  color: rgba(236, 255, 244, 0.88);
}

.user-admin-table-section {
  overflow: hidden;
}

.user-admin-table-section .user-admin-panel-head {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(171, 255, 205, 0.1);
}

.user-admin-table-wrap {
  max-height: calc(100vh - 360px);
  min-height: 320px;
  overflow: auto;
  background: rgba(2, 6, 4, 0.72);
}

.user-admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.user-admin-table th,
.user-admin-table td {
  padding: 10px 12px;
  border-right: 1px solid rgba(171, 255, 205, 0.08);
  border-bottom: 1px solid rgba(171, 255, 205, 0.08);
  background: rgba(3, 10, 6, 0.85);
  color: rgba(236, 255, 244, 0.84);
  font-size: 13px;
  line-height: 1.3;
  vertical-align: middle;
}

.user-admin-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(13, 39, 26, 0.98), rgba(3, 11, 7, 0.98)),
    var(--jungle-night-1);
  color: rgba(236, 255, 244, 0.9);
  font-size: 12px;
  font-weight: 760;
  text-align: left;
  box-shadow:
    inset 0 -1px 0 rgba(82, 255, 168, 0.44),
    inset 0 1px 0 rgba(236, 255, 244, 0.07);
}

.user-admin-table tbody tr:nth-child(even) td {
  background: rgba(7, 20, 14, 0.85);
}

.user-admin-table tbody tr:hover td {
  background: rgba(13, 39, 26, 0.92);
}

.user-identity {
  display: grid;
  gap: 3px;
}

.user-identity strong {
  color: #f4fff8;
  font-weight: 780;
}

.user-identity span,
.user-admin-table td span,
.user-detail-list dt {
  color: var(--jungle-muted);
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 760;
}

.status.active {
  border-color: rgba(82, 255, 168, 0.3);
  background: rgba(82, 255, 168, 0.11);
  color: var(--jungle-leaf);
}

.status.pending {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(250, 204, 21, 0.1);
  color: #fde68a;
}

.user-row-actions {
  text-align: right;
  white-space: nowrap;
}

.user-empty {
  height: 88px;
  color: var(--jungle-muted);
  text-align: center;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(420px, 1.25fr);
  gap: 12px;
  align-items: start;
}

.user-detail-list {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 10px;
}

.user-detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
  background: rgba(3, 10, 6, 0.72);
}

.user-detail-list div:nth-child(even) {
  background: rgba(7, 20, 14, 0.72);
}

.user-detail-list dt,
.user-detail-list dd {
  margin: 0;
}

.user-detail-list dd {
  color: rgba(236, 255, 244, 0.88);
  font-weight: 720;
}

.user-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.user-detail-form {
  display: grid;
  gap: 14px;
}

.video-sandbox.shadcn-lab .active-filter-chip b {
  background: rgba(82, 255, 168, 0.16);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .sort-actions {
  border-color: rgba(171, 255, 205, 0.16);
  background: rgba(2, 8, 5, 0.44);
}

.video-sandbox.shadcn-lab .sort-arrow {
  color: var(--jungle-muted);
}

.video-sandbox.shadcn-lab .sort-arrow:hover {
  background: rgba(82, 255, 168, 0.11);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .sort-arrow.active {
  background: var(--jungle-leaf);
  color: #04120b;
  box-shadow: 0 0 16px rgba(82, 255, 168, 0.28);
}

.video-sandbox.shadcn-lab .trend-cell {
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .trend-spark .trend-baseline {
  stroke: rgba(171, 255, 205, 0.18);
}

.video-sandbox.shadcn-lab .trend-spark polyline {
  filter: drop-shadow(0 0 5px rgba(82, 255, 168, 0.24));
  stroke-width: 3.2;
}

.video-sandbox.shadcn-lab .trend-point {
  fill: currentColor;
  stroke: var(--jungle-night-0);
}

.video-sandbox.shadcn-lab .trend-point.previous,
.video-sandbox.shadcn-lab .trend-point.first,
.video-sandbox.shadcn-lab .trend-point.peak,
.video-sandbox.shadcn-lab .trend-point.valley,
.video-sandbox.shadcn-lab .trend-point.turning {
  fill: var(--jungle-night-0);
  stroke: currentColor;
}

.video-sandbox.shadcn-lab .trend-point.latest {
  filter: drop-shadow(0 0 6px currentColor);
}

.video-sandbox.shadcn-lab .trend-point-label {
  fill: currentColor;
  stroke: rgba(2, 6, 4, 0.92);
  stroke-width: 3.4px;
}

.video-sandbox.shadcn-lab .trend-point-date {
  fill: var(--jungle-muted);
}

.video-sandbox.shadcn-lab .trend-cell.rising,
.video-sandbox.shadcn-lab .trend-cell.surging {
  color: var(--jungle-leaf-strong);
}

.video-sandbox.shadcn-lab .trend-cell.falling {
  color: var(--jungle-danger);
}

.video-sandbox.shadcn-lab .trend-cell.stable {
  color: var(--jungle-cyan);
}

.video-sandbox.shadcn-lab .trend-cell.single,
.video-sandbox.shadcn-lab .trend-cell.empty {
  color: var(--jungle-muted);
}

.video-sandbox.shadcn-lab .trend-placeholder {
  border-bottom-color: rgba(171, 255, 205, 0.18);
}

.video-sandbox.shadcn-lab .template-icon-action.danger {
  color: #fda4af;
}

.video-sandbox.shadcn-lab .template-icon-action.danger:hover,
.video-sandbox.shadcn-lab .template-icon-action.danger:focus-visible {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.13);
}

.video-sandbox.shadcn-lab .shadcn-lab-toggle {
  border-color: rgba(82, 255, 168, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 39, 26, 0.96), rgba(2, 8, 5, 0.96));
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .shadcn-lab-toggle:hover {
  border-color: rgba(82, 255, 168, 0.58);
  color: #ecfff4;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) {
  border-right-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.2), rgba(3, 8, 5, 0.78)),
    url("/static/controlplate_site/images/sidebar-jungle-car.png") 32% bottom / cover no-repeat,
    #000;
  color: #fafafa;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.34);
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) .brand {
  color: #fff;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) a {
  color: rgba(250, 250, 250, 0.72);
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #f7fff9;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) .sidebar-foot {
  color: rgba(250, 250, 250, 0.48);
}

.app-sidebar + .shell.video-sandbox-shell:has(.video-sandbox.vercel-lab) {
  --vercel-bg: #000;
  --vercel-bg-2: #050806;
  --vercel-panel: rgba(8, 12, 10, 0.88);
  --vercel-panel-solid: #080c0a;
  --vercel-elevated: #0d1310;
  --vercel-line: rgba(255, 255, 255, 0.09);
  --vercel-line-strong: rgba(167, 243, 208, 0.26);
  --vercel-text: #fafafa;
  --vercel-muted: #8b9490;
  --vercel-green: #a7f3d0;
  --vercel-green-strong: #34d399;
  --vercel-cyan: #93c5fd;
  --vercel-yellow: #fde68a;
  --vercel-red: #fda4af;
  background: transparent;
}

.video-sandbox.vercel-lab {
  --toolbar-control-height: 34px;
  --sandbox-ink: var(--vercel-text);
  --sandbox-muted: var(--vercel-muted);
  --sandbox-accent: var(--vercel-green);
  --sandbox-accent-dark: var(--vercel-green-strong);
  --sandbox-green: var(--vercel-green);
  --sandbox-green-dark: #000;
  --sandbox-line: var(--vercel-line);
  gap: 10px;
  color: var(--vercel-text);
  font-feature-settings: "tnum" 1;
}

.video-sandbox.vercel-lab::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 68%);
}

.video-sandbox.vercel-lab > * {
  position: relative;
  z-index: 1;
}

.video-sandbox.vercel-lab .video-sandbox-controls {
  z-index: 180;
  overflow: visible;
  padding: 8px;
  border: 1px solid var(--vercel-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(13, 19, 16, 0.94), rgba(3, 6, 4, 0.94)),
    var(--vercel-panel-solid);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.video-sandbox.vercel-lab .video-sandbox-controls::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(52, 211, 153, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 48%);
}

.video-sandbox.vercel-lab .video-sandbox-popover[open] {
  z-index: 260;
}

.video-sandbox.vercel-lab .video-sandbox-filter-grid,
.video-sandbox.vercel-lab .video-sandbox-columns,
.video-sandbox.vercel-lab .video-sandbox-ingredients-panel,
.video-sandbox.vercel-lab .video-sandbox-language-panel,
.video-sandbox.vercel-lab .video-sandbox-template-panel {
  z-index: 280;
}

.video-sandbox.vercel-lab ~ .floating-folder-menu {
  z-index: 300;
}

.video-sandbox.vercel-lab .video-sandbox-table-wrap {
  z-index: 1;
}

.video-sandbox.vercel-lab .button,
.video-sandbox.vercel-lab .video-sandbox-popover summary,
.video-sandbox.vercel-lab .video-sandbox-search input,
.video-sandbox.vercel-lab .video-sandbox-text-search input,
.video-sandbox.vercel-lab .video-sandbox-filter-grid input,
.video-sandbox.vercel-lab .video-sandbox-filter-grid select,
.video-sandbox.vercel-lab .video-sandbox-template-form input,
.video-sandbox.vercel-lab .video-sandbox-template-edit-form input,
.video-sandbox.vercel-lab .ingredient-search-control input {
  border-color: var(--vercel-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.52);
  color: var(--vercel-text);
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.video-sandbox.vercel-lab .button:hover,
.video-sandbox.vercel-lab .video-sandbox-popover summary:hover,
.video-sandbox.vercel-lab .video-sandbox-popover[open] summary {
  border-color: var(--vercel-line-strong);
  background: rgba(13, 19, 16, 0.96);
  color: #fff;
}

.video-sandbox.vercel-lab .button:focus-visible,
.video-sandbox.vercel-lab .video-sandbox-popover summary:focus-visible,
.video-sandbox.vercel-lab input:focus,
.video-sandbox.vercel-lab select:focus {
  border-color: rgba(167, 243, 208, 0.58);
  outline: 2px solid rgba(52, 211, 153, 0.26);
  outline-offset: 1px;
}

.video-sandbox.vercel-lab .button.primary {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  font-weight: 780;
  box-shadow: var(--primary-action-shadow);
}

.video-sandbox.vercel-lab .button.primary:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.video-sandbox.vercel-lab .button.disabled {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(139, 148, 144, 0.56);
}

.video-sandbox.vercel-lab input::placeholder {
  color: rgba(139, 148, 144, 0.86);
}

.video-sandbox.vercel-lab .video-sandbox-popover.templates summary {
  border-color: rgba(167, 243, 208, 0.24);
  background:
    linear-gradient(180deg, rgba(10, 35, 24, 0.86), rgba(2, 6, 4, 0.86)),
    #000;
  color: #fff;
}

.video-sandbox.vercel-lab.template-applied .video-sandbox-popover.templates summary,
.video-sandbox.vercel-lab .video-sandbox-popover.templates[open] summary,
.video-sandbox.vercel-lab .video-sandbox-popover.templates summary:hover {
  border-color: rgba(167, 243, 208, 0.42);
  background:
    linear-gradient(180deg, rgba(14, 55, 37, 0.9), rgba(2, 8, 5, 0.9)),
    #000;
}

.video-sandbox.vercel-lab.template-changed .video-sandbox-popover.templates summary {
  border-color: rgba(253, 230, 138, 0.34);
  background:
    linear-gradient(180deg, rgba(45, 34, 9, 0.88), rgba(8, 7, 3, 0.9)),
    #000;
  color: var(--vercel-yellow);
}

.video-sandbox.vercel-lab .template-summary-icon {
  border: 1px solid rgba(167, 243, 208, 0.18);
  background: rgba(167, 243, 208, 0.08);
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .video-sandbox-popover summary small,
.video-sandbox.vercel-lab .video-sandbox-popover.templates summary small {
  background: rgba(167, 243, 208, 0.1);
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .video-sandbox-page-tools {
  color: var(--vercel-muted);
}

.video-sandbox.vercel-lab .video-sandbox-page-tools > span:first-child {
  color: rgba(250, 250, 250, 0.72);
}

.video-sandbox.vercel-lab .video-sandbox-filter-grid,
.video-sandbox.vercel-lab .video-sandbox-columns,
.video-sandbox.vercel-lab .video-sandbox-ingredients-panel,
.video-sandbox.vercel-lab .video-sandbox-language-panel,
.video-sandbox.vercel-lab .video-sandbox-template-panel,
.video-sandbox.vercel-lab ~ .folder-menu {
  border-color: var(--vercel-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(13, 19, 16, 0.98), rgba(3, 6, 4, 0.98)),
    #050806;
  color: var(--vercel-text);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.video-sandbox.vercel-lab .video-sandbox-filter-grid span,
.video-sandbox.vercel-lab .video-sandbox-template-head small,
.video-sandbox.vercel-lab .video-sandbox-folder-options small,
.video-sandbox.vercel-lab .video-sandbox-template-list small,
.video-sandbox.vercel-lab .ingredient-search-meta,
.video-sandbox.vercel-lab .ingredient-search-results small {
  color: var(--vercel-muted);
}

.video-sandbox.vercel-lab .video-sandbox-template-head,
.video-sandbox.vercel-lab .video-sandbox-view-tools,
.video-sandbox.vercel-lab .video-sandbox-template-form,
.video-sandbox.vercel-lab .video-sandbox-folder-filter {
  border-color: var(--vercel-line);
}

.video-sandbox.vercel-lab .video-sandbox-template-head span,
.video-sandbox.vercel-lab .video-sandbox-columns legend,
.video-sandbox.vercel-lab .ingredient-search-control span,
.video-sandbox.vercel-lab .folder-menu-title {
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .video-sandbox-language-panel label,
.video-sandbox.vercel-lab .video-sandbox-folder-options label,
.video-sandbox.vercel-lab .video-sandbox-template-list a,
.video-sandbox.vercel-lab .video-sandbox-template-empty,
.video-sandbox.vercel-lab .ingredient-search-results label,
.video-sandbox.vercel-lab ~ .folder-menu label {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.34);
  color: var(--vercel-text);
}

.video-sandbox.vercel-lab .video-sandbox-language-panel label:hover,
.video-sandbox.vercel-lab .video-sandbox-folder-options label:hover,
.video-sandbox.vercel-lab .video-sandbox-template-list a:hover,
.video-sandbox.vercel-lab .ingredient-search-results label:hover,
.video-sandbox.vercel-lab ~ .folder-menu label:hover {
  border-color: rgba(167, 243, 208, 0.22);
  background: rgba(13, 19, 16, 0.9);
}

.video-sandbox.vercel-lab .video-sandbox-language-panel label.selected,
.video-sandbox.vercel-lab .video-sandbox-folder-options label.selected,
.video-sandbox.vercel-lab .video-sandbox-template-list a.selected,
.video-sandbox.vercel-lab .ingredient-search-results label.selected {
  border-color: rgba(167, 243, 208, 0.34);
  background: rgba(52, 211, 153, 0.11);
  color: #d1fae5;
}

.video-sandbox.vercel-lab .video-sandbox-template-list a.changed {
  border-color: rgba(253, 230, 138, 0.3);
  background: rgba(253, 230, 138, 0.08);
  color: var(--vercel-yellow);
}

.video-sandbox.vercel-lab input[type="checkbox"],
.video-sandbox.vercel-lab input[type="radio"],
.video-sandbox.vercel-lab ~ .folder-menu input[type="checkbox"] {
  accent-color: var(--vercel-green-strong);
}

.video-sandbox.vercel-lab .video-sandbox-filter-grid .video-sandbox-folder-options input,
.video-sandbox.vercel-lab .ingredient-search-results input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.7);
}

.video-sandbox.vercel-lab .video-sandbox-filter-grid .video-sandbox-folder-options input:checked {
  border-color: rgba(167, 243, 208, 0.76);
  background:
    linear-gradient(135deg, transparent 0 42%, #000 43% 57%, transparent 58%),
    linear-gradient(45deg, transparent 0 47%, #000 48% 61%, transparent 62%),
    var(--vercel-green);
}

.video-sandbox.vercel-lab .video-sandbox-table-wrap {
  border-color: var(--vercel-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.94);
  box-shadow:
    0 24px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.video-sandbox.vercel-lab .video-sandbox-table th {
  border-color: var(--vercel-line);
  background:
    linear-gradient(180deg, rgba(13, 19, 16, 0.98), rgba(4, 6, 5, 0.98)),
    #050806;
  color: rgba(250, 250, 250, 0.82);
  font-size: 12px;
  font-weight: 720;
  box-shadow:
    inset 0 -1px 0 rgba(167, 243, 208, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.video-sandbox.vercel-lab .video-sandbox-table td {
  border-color: rgba(255, 255, 255, 0.065);
  background: rgba(0, 0, 0, 0.92);
  color: rgba(250, 250, 250, 0.8);
}

.video-sandbox.vercel-lab .video-sandbox-table tbody tr:nth-child(even) td {
  background: rgba(8, 12, 10, 0.92);
}

.video-sandbox.vercel-lab .video-sandbox-table tbody tr:hover td {
  background: rgba(13, 19, 16, 0.98);
}

.video-sandbox.vercel-lab .video-sandbox-table td.numeric,
.video-sandbox.vercel-lab .metric-stack strong {
  color: var(--vercel-text);
}

.video-sandbox.vercel-lab .gain,
.video-sandbox.vercel-lab .video-sandbox-table .emphasis,
.video-sandbox.vercel-lab .sandbox-actions a,
.video-sandbox.vercel-lab .sandbox-title:hover,
.video-sandbox.vercel-lab .sandbox-channel-title:hover {
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .sandbox-title,
.video-sandbox.vercel-lab .sandbox-channel-title {
  color: #fff;
  font-weight: 740;
}

.video-sandbox.vercel-lab .sandbox-video-cell p,
.video-sandbox.vercel-lab .sandbox-channel-cell p,
.video-sandbox.vercel-lab .muted-num,
.video-sandbox.vercel-lab .metric-stack small {
  color: var(--vercel-muted);
}

.video-sandbox.vercel-lab .sandbox-thumb {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: var(--vercel-elevated);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.video-sandbox.vercel-lab .sandbox-channel-avatar {
  border-color: rgba(255, 255, 255, 0.76);
  background: var(--vercel-elevated);
  box-shadow:
    0 0 0 1px rgba(167, 243, 208, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.34);
}

.video-sandbox.vercel-lab .icon-toggle.mini,
.video-sandbox.vercel-lab .template-icon-action {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.58);
  color: var(--vercel-muted);
  box-shadow: none;
}

.video-sandbox.vercel-lab .icon-toggle.mini:hover,
.video-sandbox.vercel-lab .template-icon-action:hover,
.video-sandbox.vercel-lab .template-icon-action:focus-visible {
  border-color: rgba(167, 243, 208, 0.28);
  background: rgba(13, 19, 16, 0.98);
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .icon-toggle.mini.active {
  border-color: rgba(253, 164, 175, 0.34);
  background: rgba(253, 164, 175, 0.1);
  color: var(--vercel-red);
}

.video-sandbox.vercel-lab .icon-toggle.mini.archive.active {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.09);
  color: #cbd5e1;
}

.video-sandbox.vercel-lab .icon-toggle.mini.folder.active {
  border-color: rgba(167, 243, 208, 0.34);
  background: rgba(52, 211, 153, 0.1);
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .state-badge,
.video-sandbox.vercel-lab .sandbox-ingredients span,
.video-sandbox.vercel-lab .sandbox-ingredients em,
.video-sandbox.vercel-lab .sandbox-flags span,
.video-sandbox.vercel-lab .sandbox-flags em,
.video-sandbox.vercel-lab .active-filter-chip,
.video-sandbox.vercel-lab .sandbox-multiplier {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(13, 19, 16, 0.72);
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .state-badge.favorite {
  border-color: rgba(253, 164, 175, 0.3);
  background: rgba(253, 164, 175, 0.1);
  color: var(--vercel-red);
}

.video-sandbox.vercel-lab .state-badge.archive,
.video-sandbox.vercel-lab .sandbox-ingredients em,
.video-sandbox.vercel-lab .sandbox-flags em {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.video-sandbox.vercel-lab .state-badge.folder {
  border-color: rgba(147, 197, 253, 0.24);
  background: rgba(147, 197, 253, 0.08);
  color: var(--vercel-cyan);
}

.video-sandbox.vercel-lab .sandbox-multiplier.warm {
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(147, 197, 253, 0.09);
  color: var(--vercel-cyan);
}

.video-sandbox.vercel-lab .sandbox-multiplier.hot {
  border-color: rgba(253, 230, 138, 0.34);
  background: rgba(253, 230, 138, 0.1);
  color: var(--vercel-yellow);
}

.video-sandbox.vercel-lab .active-filter-chip b {
  background: rgba(255, 255, 255, 0.075);
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .sort-actions {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.video-sandbox.vercel-lab .sort-arrow {
  color: var(--vercel-muted);
}

.video-sandbox.vercel-lab .sort-arrow:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.video-sandbox.vercel-lab .sort-arrow.active {
  background: #f7fff9;
  color: #000;
  box-shadow: none;
}

.video-sandbox.vercel-lab .trend-cell {
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .trend-spark .trend-baseline {
  stroke: rgba(255, 255, 255, 0.14);
}

.video-sandbox.vercel-lab .trend-spark polyline {
  stroke-width: 2.8;
  filter: drop-shadow(0 0 4px rgba(167, 243, 208, 0.14));
}

.video-sandbox.vercel-lab .trend-point {
  fill: currentColor;
  stroke: #000;
}

.video-sandbox.vercel-lab .trend-point.previous,
.video-sandbox.vercel-lab .trend-point.first,
.video-sandbox.vercel-lab .trend-point.peak,
.video-sandbox.vercel-lab .trend-point.valley,
.video-sandbox.vercel-lab .trend-point.turning {
  fill: #000;
  stroke: currentColor;
}

.video-sandbox.vercel-lab .trend-point-label {
  fill: currentColor;
  stroke: rgba(0, 0, 0, 0.92);
}

.video-sandbox.vercel-lab .trend-point-date {
  fill: var(--vercel-muted);
}

.video-sandbox.vercel-lab .trend-cell.rising,
.video-sandbox.vercel-lab .trend-cell.surging {
  color: var(--vercel-green);
}

.video-sandbox.vercel-lab .trend-cell.falling {
  color: var(--vercel-red);
}

.video-sandbox.vercel-lab .trend-cell.stable {
  color: var(--vercel-cyan);
}

.video-sandbox.vercel-lab .trend-cell.single,
.video-sandbox.vercel-lab .trend-cell.empty {
  color: var(--vercel-muted);
}

.video-sandbox.vercel-lab .trend-placeholder {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.video-sandbox.vercel-lab .template-icon-action.danger {
  color: var(--vercel-red);
}

.video-sandbox.vercel-lab .template-icon-action.danger:hover,
.video-sandbox.vercel-lab .template-icon-action.danger:focus-visible {
  border-color: rgba(253, 164, 175, 0.34);
  background: rgba(253, 164, 175, 0.1);
}

.video-sandbox.vercel-lab .video-theme-switcher {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.72);
}

.video-sandbox.vercel-lab .video-theme-switcher .button {
  border-color: transparent;
  background: transparent;
  color: var(--vercel-muted);
}

.video-sandbox.vercel-lab .video-theme-switcher .button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.video-sandbox.vercel-lab .video-theme-switcher .button.active {
  background: #f7fff9;
  color: #000;
}

.video-sandbox.shadcn-lab .video-theme-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  top: auto;
  z-index: 320;
  display: inline-flex;
  width: auto;
  border-color: rgba(82, 255, 168, 0.24);
  background: rgba(2, 8, 5, 0.78);
}

.video-sandbox.vercel-lab .video-theme-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  top: auto;
  z-index: 320;
  display: inline-flex;
  width: auto;
}

.video-sandbox.shadcn-lab .video-theme-switcher .shadcn-lab-toggle,
.video-sandbox.vercel-lab .video-theme-switcher .shadcn-lab-toggle {
  position: static;
  inset: auto;
  z-index: auto;
  display: inline-flex;
  width: auto;
  box-shadow: none;
}

.video-sandbox.shadcn-lab .video-theme-switcher .button {
  border-color: transparent;
  background: transparent;
  color: var(--jungle-muted);
}

.video-sandbox.shadcn-lab .video-theme-switcher .button:hover {
  border-color: transparent;
  background: rgba(82, 255, 168, 0.1);
  color: var(--jungle-leaf);
}

.video-sandbox.shadcn-lab .video-theme-switcher .button.active {
  border-color: transparent;
  background: var(--jungle-leaf);
  color: #04120b;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab),
.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) {
  overflow: hidden;
}

.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) .brand,
.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) .side-nav,
.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.shadcn-lab) .sidebar-foot,
.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) .brand,
.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) .side-nav,
.app-sidebar:has(+ .shell.video-sandbox-shell .video-sandbox.vercel-lab) .sidebar-foot {
  position: relative;
  z-index: 1;
}

.th-sub {
  display: block;
  margin-top: 2px;
  color: #7a8580;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.media,
.video-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.media > div,
.video-row > div,
.channel-card > div {
  min-width: 0;
}

.thumb,
.video-row-thumb {
  display: block;
  width: 96px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  object-fit: cover;
}

.thumb.placeholder,
.video-row-thumb.placeholder {
  display: block;
}

.avatar {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
}

.channel-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.channel-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.channel-meta-line {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-link,
.channel-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-link:hover,
.channel-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.subtext {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gain {
  color: var(--primary);
  font-weight: 850;
}

.value-cell {
  display: grid;
  gap: 2px;
  justify-items: end;
  line-height: 1.25;
}

.value-cell small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 6px;
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--primary);
  font-weight: 850;
}

.trend {
  display: grid;
  gap: 2px;
  justify-items: center;
  line-height: 1.2;
}

.trend-label {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.trend-detail {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

td strong,
td span {
  display: block;
}

.status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.status.active {
  background: #e4f4eb;
  color: #1f6b49;
}

.status.pending {
  background: var(--warning-bg);
  color: #8a640c;
}

.split {
  grid-template-columns: minmax(280px, 380px) 1fr;
  align-items: start;
}

.details {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  margin: 0 0 20px;
}

.details.wide {
  grid-template-columns: 160px 1fr;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.report-title {
  min-width: 0;
}

.report-title h1 {
  overflow: hidden;
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.app-sidebar + .shell.channel-collections-shell {
  width: calc(100vw - 220px);
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 220px;
  padding: 14px;
  background: transparent;
}

.channel-collections-page {
  display: grid;
  gap: 8px;
  --collections-ink: #132a21;
  --collections-green: #206a4b;
  --collections-green-dark: #132a21;
  --collections-accent: #5fbf8f;
  --collections-line: #cbded4;
  color: var(--collections-ink);
}

.collections-toolbar,
.collection-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 10px;
  align-items: end;
  padding: 9px;
  border: 1px solid rgba(179, 215, 195, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #173a2d, #11281f),
    var(--collections-green-dark);
  box-shadow: 0 16px 36px rgba(19, 42, 33, 0.16);
}

.collection-detail-head {
  margin-bottom: 8px;
}

.collections-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.collections-title span {
  color: rgba(247, 255, 249, 0.68);
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
}

.collections-title h1 {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collections-title p {
  margin: 1px 0 0;
  color: rgba(247, 255, 249, 0.68);
  font-size: 11.5px;
  font-weight: 600;
}

.collections-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 7px;
  align-items: end;
}

.collections-create-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.collections-create-form label span {
  color: rgba(247, 255, 249, 0.76);
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
}

.collections-create-form input {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(204, 220, 211, 0.92);
  border-radius: 6px;
  background: #fbfdfb;
  color: var(--collections-ink);
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.collections-create-form input:focus {
  outline: 2px solid rgba(123, 202, 158, 0.34);
  outline-offset: 1px;
  border-color: rgba(109, 176, 137, 0.86);
  background: #fff;
}

.channel-collections-shell .button {
  min-height: 32px;
  border: 1px solid rgba(194, 214, 202, 0.74);
  border-radius: 6px;
  background: #f8fbf8;
  color: var(--collections-ink);
  font-size: 12px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.channel-collections-shell .button.primary {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  box-shadow: var(--primary-action-shadow);
}

.channel-collections-shell .button:hover {
  border-color: rgba(120, 171, 143, 0.72);
  background: #ffffff;
  color: var(--collections-green-dark);
  text-decoration: none;
}

.channel-collections-shell .button.primary:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.channel-collections-shell .collection-grid {
  display: grid;
  gap: 7px;
}

.channel-collections-shell .collection-card {
  grid-template-columns: 26px minmax(0, 1fr) 88px 78px;
  gap: 10px;
  min-height: 58px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(19, 42, 33, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(19, 42, 33, 0.1);
}

.channel-collections-shell .managed-collection-card:hover {
  border-color: rgba(145, 193, 164, 0.86);
  box-shadow: 0 16px 38px rgba(19, 42, 33, 0.14);
}

.channel-collections-shell .managed-collection-card.pinned,
.channel-collections-shell .managed-collection-card.kind-default {
  border-color: rgba(95, 191, 143, 0.34);
  background:
    linear-gradient(90deg, rgba(234, 248, 240, 0.82), rgba(255, 255, 255, 0.98) 46%),
    #fff;
}

.channel-collections-shell .managed-collection-card.kind-favorites {
  border-color: rgba(194, 31, 70, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 236, 239, 0.9), rgba(255, 255, 255, 0.98) 46%),
    #fff;
}

.channel-collections-shell .managed-collection-card.kind-excluded {
  border-color: rgba(148, 160, 153, 0.32);
  background:
    linear-gradient(90deg, rgba(239, 243, 241, 0.92), rgba(255, 255, 255, 0.98) 46%),
    #fff;
}

.channel-collections-shell .collection-grip {
  grid-template-columns: repeat(2, 3px);
  gap: 3px;
  width: 24px;
  height: 28px;
  align-content: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aad9f;
}

.channel-collections-shell .collection-grip:hover {
  background: #eef8f2;
  color: var(--collections-green);
}

.channel-collections-shell .collection-grip span {
  width: 3px;
  height: 3px;
}

.channel-collections-shell .collection-title-row {
  gap: 8px;
}

.channel-collections-shell .collection-title-row h2 {
  overflow: hidden;
  margin: 0;
  color: var(--collections-ink);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-collections-shell .collection-main p {
  overflow: hidden;
  margin: 3px 0 0;
  color: #66766d;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-collections-shell .collection-open-link {
  min-height: 22px;
  padding: 0 8px;
  border-color: #d8e8df;
  border-radius: 6px;
  background: #f8fbf8;
  color: var(--collections-green);
  font-size: 11px;
  font-weight: 720;
}

.channel-collections-shell .collection-open-link:hover {
  border-color: #9dccb0;
  background: #eef8f2;
  text-decoration: none;
}

.channel-collections-shell .collection-count-badge {
  min-width: 0;
  justify-items: end;
  padding: 0 0 0 12px;
  border-left: 1px solid #dfebe5;
}

.channel-collections-shell .collection-count-badge strong {
  color: var(--collections-ink);
  font-size: 13px;
  font-weight: 780;
}

.channel-collections-shell .collection-count-badge span {
  color: #75847c;
  font-size: 10.5px;
  font-weight: 650;
}

.channel-collections-shell .collection-controls {
  gap: 5px;
  justify-content: end;
}

.channel-collections-shell .icon-button-ui {
  width: 32px;
  height: 32px;
  border-color: #dbe8e1;
  border-radius: 6px;
  box-shadow: none;
}

.channel-collections-shell .icon-button-ui:hover,
.channel-collections-shell .icon-button-ui.active {
  border-color: #9dccb0;
  background: #eef8f2;
  color: var(--collections-green);
  transform: none;
}

.channel-collections-shell .collection-settings-panel {
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 280px) minmax(260px, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce9e2;
  border-radius: 8px;
  background: #fbfdfb;
}

.channel-collections-shell .collection-settings-panel label {
  gap: 5px;
}

.channel-collections-shell .collection-settings-panel label span {
  color: #607169;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
}

.channel-collections-shell .collection-settings-panel input,
.channel-collections-shell .collection-settings-panel textarea {
  min-height: 32px;
  border-color: #dce9e2;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.channel-collections-shell .collection-settings-panel textarea {
  min-height: 72px;
}

.channel-collections-shell .empty-state {
  border-color: rgba(179, 215, 195, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
}

.channel-collection-detail-shell .channel-list-table {
  max-height: calc(100vh - 98px);
  border-color: rgba(19, 42, 33, 0.18);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(19, 42, 33, 0.1);
}

.channel-collection-detail-shell .sticky-table.channel-list-table thead th {
  background: linear-gradient(180deg, #f8fbf8 0%, #eef6f1 100%);
  color: #475850;
  font-size: 11.5px;
  font-weight: 760;
}

.channel-collection-detail-shell .channel-list-table td {
  padding: 8px 10px;
  font-size: 12px;
}

.channel-collection-workbench {
  --toolbar-control-height: 36px;
  display: grid;
  gap: 8px;
}

.channel-collection-workbench .channel-collection-controls {
  display: grid;
  grid-template-columns: 116px minmax(300px, 1.22fr) 116px 150px minmax(220px, 1fr);
  grid-template-rows: repeat(2, minmax(var(--toolbar-control-height), auto));
  gap: 7px 8px;
  align-items: stretch;
}

.channel-collection-page-tools {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: minmax(96px, 1fr) 56px 52px 44px 58px;
  grid-template-rows: minmax(0, 1fr);
  gap: 6px;
  align-items: end;
  justify-content: stretch;
  align-self: stretch;
  min-width: 0;
  color: #c9d8cf;
  font-size: 11.5px;
  font-weight: 600;
}

.channel-collection-page-tools .button {
  width: 100%;
  min-width: 0;
  font-size: 10.5px;
  padding-right: 6px;
  padding-left: 6px;
}

.channel-collection-page-summary {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(247, 255, 249, 0.84);
  overflow: hidden;
}

.channel-collection-page-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  line-height: 1;
}

.channel-collection-page-summary span:last-child {
  color: var(--jungle-muted);
  font-size: 10.5px;
}

.channel-collection-page-tools .pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--toolbar-control-height);
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: rgba(236, 255, 244, 0.88);
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

.channel-collection-page-tools > :nth-child(2) {
  grid-column: 2;
}

.channel-collection-page-tools > :nth-child(3) {
  grid-column: 3;
}

.channel-collection-page-tools > :nth-child(4) {
  grid-column: 4;
}

.channel-collection-page-tools > :nth-child(5) {
  grid-column: 5;
}

.video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-search {
  grid-column: 5;
  grid-row: 1;
  min-width: 0;
}

.channel-collection-workbench .video-sandbox-popover.templates {
  grid-column: 2;
  grid-row: 1;
}

.channel-collection-workbench .video-sandbox-popover.language {
  grid-column: 4;
  grid-row: 1;
  width: auto;
  min-width: 0;
}

.video-sandbox-filter-form.channel-collection-filter-form > .video-sandbox-popover:not(.language):not(.ingredients):not(.columns):not(.templates) {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

.video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-popover.columns {
  grid-column: 4;
  grid-row: 2;
  min-width: 0;
}

.channel-collection-workbench .video-sandbox-popover.language .video-sandbox-language-panel {
  right: 0;
  left: auto;
}

.video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-actions {
  display: contents;
}

.video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-actions .button.primary {
  grid-column: 3;
  grid-row: 2;
  width: 100%;
  min-height: var(--toolbar-control-height);
}

.video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-actions .button:not(.primary) {
  grid-column: 5;
  grid-row: 2;
  width: 100%;
  min-height: var(--toolbar-control-height);
}

.channel-view-switcher {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  min-width: 0;
}

.video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-popover summary,
.video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-actions .button,
.channel-view-switcher .button {
  min-height: var(--toolbar-control-height);
}

@media (max-width: 1180px) {
  .channel-collection-workbench .channel-collection-controls {
    grid-template-columns: 112px minmax(260px, 1fr) 112px minmax(136px, 0.66fr);
    grid-template-rows: repeat(3, minmax(var(--toolbar-control-height), auto));
  }

  .channel-view-switcher {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .channel-collection-workbench .video-sandbox-popover.templates,
  .channel-collection-page-tools {
    grid-column: 2;
  }

  .video-sandbox-filter-form.channel-collection-filter-form > .video-sandbox-popover:not(.language):not(.ingredients):not(.columns):not(.templates) {
    grid-column: 3;
    grid-row: 1;
  }

  .channel-collection-workbench .video-sandbox-popover.language {
    grid-column: 4;
    grid-row: 1;
  }

  .video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-popover.columns {
    grid-column: 4;
    grid-row: 2;
  }

  .video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-search {
    grid-column: 3 / 5;
    grid-row: 3;
  }

  .video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-actions .button.primary {
    grid-column: 3;
    grid-row: 2;
  }

  .video-sandbox-filter-form.channel-collection-filter-form .video-sandbox-actions .button:not(.primary) {
    grid-column: 4;
    grid-row: 3;
  }
}

@media (max-width: 980px) {
  .channel-collection-page-tools {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .channel-collection-page-tools > * {
    grid-column: 1;
    grid-row: auto;
  }
}

.channel-view-switcher .button {
  min-height: var(--toolbar-control-height);
  padding: 0 8px;
  font-size: 11.5px;
}

.channel-view-switcher .button.active {
  border-color: rgba(82, 255, 168, 0.42);
  background: rgba(82, 255, 168, 0.13);
  color: var(--jungle-leaf);
}

.channel-view-switcher .button.screening.active {
  border-color: rgba(245, 158, 11, 0.52);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(146, 64, 14, 0.18)),
    rgba(245, 158, 11, 0.1);
  color: #fde68a;
  box-shadow:
    inset 0 1px 0 rgba(255, 251, 235, 0.16),
    0 0 0 1px rgba(245, 158, 11, 0.08);
}

.channel-collection-table-wrap {
  height: calc(100vh - 74px);
  min-height: 480px;
}

.channel-collection-workbench[data-view-mode="visual"] .channel-collection-table {
  width: 2258px;
  min-width: 2258px;
  max-width: 2258px;
  table-layout: fixed;
}

.channel-collection-table th,
.channel-collection-table td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.channel-collection-table th[data-column="rank"],
.channel-collection-table td[data-column="rank"] {
  position: static;
  left: auto;
  z-index: auto;
}

.channel-collection-table th[data-column="rank"] {
  z-index: auto;
}

.channel-collection-table .sticky-video {
  position: static;
  left: auto;
  z-index: auto;
  border-right-color: rgba(174, 255, 206, 0.12);
  box-shadow: none;
}

.channel-collection-table th[data-column="channel"],
.channel-collection-table td[data-column="channel"] {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
}

.channel-collection-table .sandbox-channel-cell {
  grid-template-columns: 52px minmax(0, 1fr);
  min-width: 230px;
}

.channel-collection-table .sandbox-channel-avatar-wrap {
  width: 52px;
  height: 52px;
}

.channel-collection-table .sandbox-channel-avatar {
  width: 50px;
  height: 50px;
}

.channel-collection-table .sandbox-channel-cell p,
.channel-collection-table .sandbox-actions {
  margin-top: 3px;
}

.channel-collection-table th[data-column="subs_trend"],
.channel-collection-table td[data-column="subs_trend"],
.channel-collection-table th[data-column="monthly_videos"],
.channel-collection-table td[data-column="monthly_videos"],
.channel-collection-table th[data-column="views_trend"],
.channel-collection-table td[data-column="views_trend"] {
  width: 178px;
  min-width: 178px;
  max-width: 178px;
}

.channel-collection-table th[data-column="latest_video_1"],
.channel-collection-table td[data-column="latest_video_1"],
.channel-collection-table th[data-column="latest_video_2"],
.channel-collection-table td[data-column="latest_video_2"],
.channel-collection-table th[data-column="latest_video_3"],
.channel-collection-table td[data-column="latest_video_3"],
.channel-collection-table th[data-column="latest_video_4"],
.channel-collection-table td[data-column="latest_video_4"],
.channel-collection-table th[data-column="latest_video_5"],
.channel-collection-table td[data-column="latest_video_5"] {
  width: 390px;
  min-width: 390px;
  max-width: 390px;
  text-align: left;
}

.channel-collection-workbench[data-view-mode="visual"] .channel-collection-table th[data-column="channel"],
.channel-collection-workbench[data-view-mode="visual"] .channel-collection-table td[data-column="channel"] {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
}

.channel-collection-table th[data-column="shorts_pct"],
.channel-collection-table td[data-column="shorts_pct"],
.channel-collection-table th[data-column="food_pct"],
.channel-collection-table td[data-column="food_pct"] {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
}

.channel-video-views {
  color: var(--jungle-leaf);
  font-weight: 900;
}

.channel-collection-table .channel-state-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.channel-collection-table .trend-cell {
  width: 166px;
  min-width: 166px;
}

.channel-collection-table .trend-spark {
  width: 166px;
}

.channel-collection-table .sandbox-flags {
  justify-content: center;
}

.channel-collection-workbench.is-view-loading .channel-collection-table-wrap {
  opacity: 0;
}

.channel-collections-page {
  --toolbar-control-height: 32px;
  --collections-kind-border: rgba(171, 255, 205, 0.1);
  --collections-kind-bg: rgba(13, 39, 26, 0.62);
  --collections-kind-text: var(--jungle-muted);
}

.channel-collections-controls {
  grid-template-columns: minmax(240px, 1.05fr) 96px minmax(112px, 0.52fr) minmax(220px, 1fr) 96px;
  grid-template-rows: minmax(var(--toolbar-control-height), auto);
}

.collection-title-control {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}

.collection-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--toolbar-control-height);
  padding: 0 13px;
  border: 1px solid var(--primary-action-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.18), transparent 32%),
    var(--primary-action-bg);
  color: var(--primary-action-text);
  box-shadow: var(--primary-action-shadow);
  cursor: default;
  user-select: none;
}

.collection-title-badge .template-summary-icon {
  width: 24px;
  height: 24px;
  border-color: rgba(242, 199, 102, 0.28);
  background: rgba(242, 199, 102, 0.12);
  color: #fde68a;
}

.collection-title-badge > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.collection-title-badge b {
  color: #fff7df;
  font-size: 13px;
  font-weight: 860;
  line-height: 1.05;
}

.collection-title-badge small {
  color: rgba(255, 247, 223, 0.68);
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1;
}

.channel-collections-create-form {
  display: contents;
}

.channel-collections-create-form .video-sandbox-search {
  grid-column: 3 / 5;
  grid-row: 1;
  align-self: stretch;
}

.channel-collections-create-form .button {
  grid-column: 5;
  grid-row: 1;
  width: 100%;
  align-self: stretch;
}

.channel-collections-table-wrap {
  height: calc(100vh - 83px);
  min-height: 420px;
}

.channel-collections-table {
  width: 100%;
  min-width: 1080px;
}

.channel-collections-table th,
.channel-collections-table td {
  height: 48px;
  padding: 7px 10px;
  text-align: center;
}

.channel-collections-table th.collection-drag-column,
.channel-collections-table td.collection-drag-column {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding-right: 6px;
  padding-left: 10px;
  text-align: center;
}

.channel-collections-table th.collection-actions-column,
.channel-collections-table td.collection-actions-column {
  width: 98px;
  min-width: 98px;
}

.channel-collections-table td.collection-actions-column {
  text-align: center;
}

.channel-collections-table .collection-name-cell {
  position: relative;
  min-width: 320px;
  max-width: 620px;
  text-align: left;
}

.channel-collections-table .collection-name-cell:hover .collection-title-row h2 {
  color: var(--jungle-leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.channel-collections-table .collection-name-cell:focus-within {
  outline: 2px solid rgba(82, 255, 168, 0.28);
  outline-offset: -4px;
}

.channel-collections-table .collection-name-cell .collection-settings-panel,
.channel-collections-table .collection-name-cell [data-folder-settings-form],
.channel-collections-table .collection-name-cell input,
.channel-collections-table .collection-name-cell textarea,
.channel-collections-table .collection-name-cell button {
  position: relative;
  z-index: 2;
}

.channel-collections-table .collection-controls,
.channel-collections-table .collection-grip {
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.channel-collections-table .collection-grip {
  transform: translateX(-3px);
}

.channel-collections-table tbody tr:hover .collection-controls,
.channel-collections-table tbody tr:focus-within .collection-controls,
.channel-collections-table tbody tr:hover .collection-grip,
.channel-collections-table tbody tr:focus-within .collection-grip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.managed-collection-row.dragging td {
  opacity: 0.58;
  background: #eef8f2;
}

.channel-collections-table tbody tr.pinned td:first-child {
  box-shadow: inset 3px 0 0 rgba(32, 106, 75, 0.62);
}

.channel-collections-table tbody tr.kind-favorites td:first-child {
  box-shadow: inset 3px 0 0 rgba(194, 31, 70, 0.5);
}

.channel-collections-table tbody tr.kind-excluded td:first-child {
  box-shadow: inset 3px 0 0 rgba(89, 99, 111, 0.42);
}

.channel-collections-table .collection-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.channel-collections-table .collection-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.channel-collections-table .collection-title-row h2 {
  overflow: hidden;
  margin: 0;
  color: #f4fff8;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-collections-table .collection-main p {
  overflow: hidden;
  max-width: 760px;
  margin: 0;
  color: var(--jungle-muted);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-status-chip,
.collection-kind-chip {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--collections-kind-border);
  border-radius: 999px;
  background: var(--collections-kind-bg);
  color: var(--collections-kind-text);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.collection-status-chip {
  border-color: rgba(82, 255, 168, 0.3);
  background: rgba(82, 255, 168, 0.12);
  color: var(--jungle-leaf);
}

.collection-kind-chip.kind-favorites {
  border-color: rgba(253, 164, 175, 0.28);
  background: rgba(253, 164, 175, 0.1);
  color: #fda4af;
}

.collection-kind-chip.kind-excluded {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.09);
  color: #cbd5e1;
}

.channel-collections-table .metric-stack {
  justify-items: center;
}

.channel-collections-table .data-stack strong {
  font-size: 12px;
}

.channel-collections-table .data-stack small {
  font-size: 10.5px;
}

.channel-collections-table .collection-controls {
  display: inline-flex;
  gap: 6px;
  justify-content: center;
}

.channel-collections-table .template-icon-action {
  width: 30px;
  height: 30px;
  text-decoration: none;
}

.channel-collections-table .template-icon-action.active {
  border-color: rgba(82, 255, 168, 0.34);
  background: rgba(82, 255, 168, 0.12);
  color: var(--jungle-leaf);
}

.channel-collections-table .collection-grip {
  display: inline-grid;
  grid-template-columns: repeat(2, 3px);
  gap: 3px;
  width: 24px;
  height: 28px;
  align-content: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--jungle-muted);
  cursor: grab;
}

.channel-collections-table .collection-grip:hover {
  background: rgba(82, 255, 168, 0.1);
  color: var(--jungle-leaf);
}

.channel-collections-table .collection-grip span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.channel-collections-table .collection-settings-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.95fr) minmax(220px, 1.35fr) auto;
  gap: 7px;
  align-items: end;
  margin-top: 6px;
  padding: 7px;
  border: 1px solid rgba(171, 255, 205, 0.12);
  border-radius: 7px;
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 255, 168, 0.08), transparent 34%),
    rgba(2, 8, 5, 0.58);
}

.channel-collections-table .collection-settings-panel[hidden] {
  display: none;
}

.channel-collections-table .collection-settings-panel label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.channel-collections-table .collection-settings-panel label span {
  color: var(--jungle-leaf);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.channel-collections-table .collection-settings-panel input,
.channel-collections-table .collection-settings-panel textarea {
  min-height: 34px;
  border-color: var(--jungle-border);
  border-radius: 6px;
  background: rgba(2, 8, 5, 0.72);
  color: var(--jungle-text);
  font-size: 11.5px;
  font-weight: 600;
}

.channel-collections-table .collection-settings-panel textarea {
  height: 34px;
  min-height: 34px;
  line-height: 1.2;
  overflow: hidden;
  resize: none;
  white-space: nowrap;
}

.channel-collections-table .collection-settings-actions {
  grid-column: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-bottom: 0;
  white-space: nowrap;
}

.channel-collections-table .collection-settings-actions .button {
  min-height: 34px;
  padding: 0 11px;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.auth-body .topbar .nav {
  display: none;
}

.auth-body .topbar,
.auth-body .shell,
.auth-body .auth-card {
  position: relative;
  z-index: 1;
}

.auth-shell .messages {
  margin: 0;
}

.auth-shell .message {
  border-color: rgba(171, 255, 205, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(13, 39, 26, 0.88), rgba(2, 8, 5, 0.88)),
    rgba(2, 8, 5, 0.88);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 720;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(236, 255, 244, 0.07);
}

.auth-card .button.auth-google-button {
  border-color: var(--primary-action-border);
  background: var(--primary-action-bg);
  color: var(--primary-action-text);
  font-weight: 820;
}

.auth-card .button.auth-google-button:hover {
  border-color: var(--primary-action-border-hover);
  background: var(--primary-action-bg-hover);
  color: var(--primary-action-text-hover);
  box-shadow: var(--primary-action-shadow-hover);
}

.auth-card .button.auth-submit-button {
  border-color: rgba(171, 255, 205, 0.16);
  background: rgba(2, 8, 5, 0.64);
  color: #ecfff4;
}

.auth-card .button.auth-submit-button:hover {
  border-color: rgba(82, 255, 168, 0.34);
  background: rgba(13, 39, 26, 0.86);
  color: #bbf7d0;
}

.video-sandbox.shadcn-lab.video-detail-page .video-detail-commandbar {
  display: grid;
  grid-template-columns: minmax(180px, 248px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.video-sandbox.shadcn-lab.video-detail-page .video-detail-commandbar .button {
  justify-self: end;
}

.video-sandbox.shadcn-lab.video-detail-page .video-detail-command-meta {
  justify-content: flex-start;
}

.video-sandbox.shadcn-lab.video-detail-page .video-detail-metrics {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.video-sandbox.shadcn-lab.video-detail-page .video-detail-metrics strong {
  font-size: 18px;
}

@media (max-width: 980px) {
  .app-sidebar + .shell.channel-shell:has(.channel-detail-page) {
    width: min(100%, calc(100vw - 32px));
    margin: 16px auto;
    padding: 8px;
  }

  .channel-detail-commandbar {
    grid-template-columns: 1fr;
  }

  .channel-detail-back,
  .channel-detail-external {
    width: 100%;
    justify-content: center;
  }

  .channel-detail-command-meta {
    flex-wrap: wrap;
    justify-content: center;
  }

  .channel-detail-command-meta span {
    overflow: visible;
    white-space: normal;
  }

  .channel-detail-page .channel-v2-hero {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .channel-detail-page .channel-v2-avatar-link,
  .channel-detail-page .channel-v2-avatar {
    width: 96px;
    height: 96px;
  }

  .channel-detail-page .channel-action-card {
    grid-column: 1 / -1;
  }

  .channel-detail-page .v2-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-detail-page .v2-layout,
  .channel-detail-page .v2-diagnosis,
  .channel-detail-page .recipe-insight-grid {
    grid-template-columns: 1fr;
  }

  .channel-detail-page .v2-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-detail-page .recipe-focus-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .app-sidebar + .shell.video-detail-shell {
    width: min(100%, calc(100vw - 32px));
    margin: 16px auto;
  }

  .video-sandbox.shadcn-lab.video-detail-page .video-detail-commandbar {
    grid-template-columns: 1fr;
  }

  .video-sandbox.shadcn-lab.video-detail-page .video-detail-commandbar .button,
  .video-detail-back {
    width: 100%;
    justify-content: center;
  }

  .video-sandbox.shadcn-lab.video-detail-page .video-detail-command-meta {
    flex-wrap: wrap;
    justify-content: center;
  }

  .video-sandbox.shadcn-lab.video-detail-page .video-detail-command-meta span {
    overflow: visible;
    white-space: normal;
  }

  .video-sandbox.shadcn-lab.video-detail-page .video-detail-command-meta span:last-child {
    display: none;
  }

  .video-detail-topgrid,
  .video-detail-topgrid.simple,
  .video-detail-main,
  .video-detail-main.secondary {
    grid-template-columns: 1fr;
  }

  .video-detail-cover {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.app-theme-jungle::before {
    inset: 0;
    background-position: 64% bottom, right bottom, 18% -12%, 78% 6%, 46% 118%, center;
  }

  .topbar,
  .page-heading,
  .auth-panel,
  .item-card,
  .collection-card,
  .inline-form,
  .channel-profile-hero,
  .channel-v2-hero,
  .video-detail-hero,
  .channel-profile-actions,
  .profile-grid,
  .v2-layout,
  .video-detail-layout,
  .v2-diagnosis,
  .split,
  .report-toolbar {
    grid-template-columns: 1fr;
  }

  .user-create-form,
  .created-credentials {
    grid-template-columns: 1fr;
  }

  .input-with-action {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    padding: 16px;
  }

  .shell.auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    margin: 0;
    padding: 14px;
    align-items: start;
    justify-items: center;
  }

  .auth-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  .auth-copy {
    min-height: 250px;
    padding: 24px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .auth-card .auth-actions {
    padding: 20px;
  }

  .auth-card-floating {
    width: min(100%, 420px);
    margin-top: 0;
    transform: none;
    background:
      linear-gradient(180deg, rgba(7, 15, 10, 0.68), rgba(1, 5, 3, 0.84)),
      rgba(1, 5, 3, 0.72);
  }

  .auth-shell .messages {
    position: static;
    width: min(100%, 420px);
    transform: none;
  }

  .app-sidebar {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
  }

  .side-nav-section,
  .side-nav-section-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border-top: 0;
  }

  .side-nav a {
    min-height: 30px;
    padding: 0 9px;
  }

  .sidebar-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
  }

  .app-sidebar + .shell {
    width: min(100%, calc(100vw - 16px));
    margin: 18px auto 36px;
  }

  .app-sidebar + .shell.channel-shell {
    width: min(100%, calc(100vw - 16px));
    margin: 18px auto 36px;
  }

  .app-sidebar + .shell.channel-shell:has(.channel-detail-page) {
    width: min(100%, calc(100vw - 16px));
    margin: 18px auto 36px;
    padding: 8px;
  }

  .app-sidebar + .shell.report-v2-shell {
    width: min(100%, calc(100vw - 16px));
    margin: 18px auto 36px;
  }

  .app-sidebar + .shell.video-browser-shell {
    width: min(100%, calc(100vw - 16px));
    margin: 18px auto 36px;
    padding: 8px;
  }

  .app-sidebar + .shell.video-sandbox-shell {
    width: min(100%, calc(100vw - 16px));
    margin: 18px auto 36px;
    padding: 8px;
  }

  .app-sidebar + .shell.user-admin-shell {
    width: min(100%, calc(100vw - 16px));
    min-height: auto;
    margin: 18px auto 36px;
    padding: 8px;
  }

  .user-admin-commandbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-admin-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .user-admin-title h1 {
    white-space: normal;
  }

  .user-detail-grid {
    grid-template-columns: 1fr;
  }

  .user-admin-table-wrap {
    max-height: none;
  }

  .app-sidebar + .shell.channel-collections-shell {
    width: min(100%, calc(100vw - 16px));
    min-height: auto;
    margin: 18px auto 36px;
    padding: 8px;
  }

  .collections-toolbar,
  .collection-detail-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .collections-create-form {
    grid-template-columns: 1fr;
  }

  .channel-collections-shell .collection-card {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .channel-collections-shell .collection-settings-panel {
    grid-column: 1 / -1;
  }

  .channel-collections-shell .collection-count-badge {
    grid-column: 2;
    justify-items: start;
    padding: 4px 0 0;
    border-left: 0;
  }

  .channel-collections-shell .collection-controls {
    grid-column: 3;
    justify-content: flex-end;
  }

  .channel-collections-shell .collection-settings-panel {
    grid-template-columns: 1fr;
  }

  .app-sidebar + .shell.recipe-trends-shell {
    width: min(100%, calc(100vw - 16px));
    margin: 18px auto 36px;
    padding: 8px;
  }

  .recipe-trend-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-trends-head {
    align-items: start;
  }

  .recipe-trends-head .report-limit-switch {
    justify-self: start;
  }

  .recipe-trend-chart-wrap {
    overflow-x: auto;
  }

  .video-browser-head,
  .video-view-toolbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .video-sandbox-controls {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-left: 18px;
  }

  .video-sandbox-search,
  .video-sandbox-text-search,
  .video-sandbox-popover.language,
  .video-sandbox-popover.ingredients,
  .video-sandbox-filter-form > .video-sandbox-popover:not(.language):not(.ingredients):not(.columns):not(.templates),
  .video-sandbox-popover.columns,
  .video-sandbox-popover.templates,
  .video-sandbox-actions,
  .video-sandbox-page-tools {
    grid-column: 1;
    grid-row: auto;
  }

  .video-sandbox-actions,
  .video-sandbox-page-tools {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .video-sandbox-page-tools .button:nth-child(2),
  .video-sandbox-page-tools .button:nth-child(3),
  .video-sandbox-page-tools .button:nth-child(5),
  .video-sandbox-page-tools .pagination-current {
    grid-column: 1;
    grid-row: auto;
  }

  .video-sandbox-search,
  .video-sandbox-text-search {
    grid-template-columns: 1fr;
  }

  .video-sandbox-text-scope {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-sandbox-text-scope,
  .video-sandbox-fast-mode {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .video-sandbox-page-summary {
    padding-right: 0;
  }

  .video-sandbox-filter-grid,
  .video-sandbox-columns,
  .video-sandbox-ingredients-panel,
  .video-sandbox-popover.columns .video-sandbox-columns,
  .video-sandbox-popover.ingredients .video-sandbox-ingredients-panel,
  .video-sandbox-template-panel {
    left: auto;
    right: 0;
    width: min(720px, calc(100vw - 32px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-sandbox-filter-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-sandbox-table-wrap {
    height: calc(100vh - 320px);
    min-height: 380px;
  }

  .video-filter-actions {
    justify-content: flex-start;
  }

  .video-property-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-browser-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .shell.report-shell {
    height: calc(100vh - 104px);
    padding: 8px;
  }

  .app-sidebar + .shell.report-shell {
    width: 100%;
    height: calc(100vh - 104px);
    margin: 0;
  }

  .report-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .report-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .report-title h1 {
    white-space: normal;
  }

  .report-toolbar .button {
    width: 100%;
  }

  .report-v2-head,
  .report-v2-panel-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .report-v2-head {
    display: grid;
  }

  .report-v2-head .button {
    width: 100%;
  }

  .report-v2-summary {
    grid-template-columns: 1fr 1fr;
  }

  .report-v2-panel {
    padding: 10px;
  }

  .report-v2-panel-head {
    display: grid;
  }

  .report-sort-toolbar {
    justify-content: flex-start;
  }

  .report-v2-panel-tools {
    justify-items: start;
    width: 100%;
  }

  .report-v2-table-wrap {
    max-height: calc(100vh - 260px);
  }

  .managed-collection-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .managed-collection-card .collection-meta,
  .managed-collection-card .collection-count-badge,
  .managed-collection-card .collection-settings-panel,
  .managed-collection-card .collection-controls {
    grid-column: 1 / -1;
  }

  .collection-count-badge,
  .collection-controls {
    justify-content: flex-start;
  }

  .collection-count-badge {
    justify-items: start;
  }

  .collection-settings-panel {
    grid-template-columns: 1fr;
  }

  .channel-collections-shell .managed-collection-card {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 0;
  }

  .channel-collections-shell .managed-collection-card .collection-count-badge {
    grid-column: 2;
    padding: 4px 0 0;
    border-top: 1px solid #edf3ef;
    border-left: 0;
  }

  .channel-collections-shell .managed-collection-card .collection-controls {
    grid-column: 3;
    justify-content: flex-end;
  }

  .channel-collections-shell .managed-collection-card .collection-settings-panel {
    grid-column: 1 / -1;
  }

  .channel-profile-avatar-link,
  .channel-profile-avatar {
    width: 96px;
    height: 96px;
  }

  .channel-detail-page .channel-v2-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .channel-detail-page .channel-v2-avatar-link,
  .channel-detail-page .channel-v2-avatar {
    width: 88px;
    height: 88px;
  }

  .channel-detail-page .channel-v2-title h1 {
    font-size: 22px;
  }

  .channel-detail-page .channel-state-actions {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    width: 100%;
  }

  .channel-detail-page .v2-kpi-grid,
  .channel-detail-page .v2-video-grid,
  .channel-detail-page .recipe-stat-strip {
    grid-template-columns: 1fr;
  }

  .channel-action-card {
    width: 100%;
  }

  .v2-kpi-grid,
  .video-kpi-grid,
  .v2-video-grid,
  .recipe-insight-grid {
    grid-template-columns: 1fr;
  }

  .recipe-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-focus-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .recipe-focus-stats,
  .recipe-samples {
    justify-content: flex-start;
  }

  .video-detail-thumb {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-channel-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .video-big-bars {
    overflow-x: auto;
  }

  .video-big-bars span {
    flex: 0 0 18px;
  }

  .v2-video-card.compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .v2-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-state-actions,
  .profile-actions,
  .stat-tile-grid {
    grid-template-columns: 1fr;
  }

  .growth-card-head {
    align-items: flex-start;
  }

  .growth-summary {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.manual-intake-shell {
  max-width: 1680px;
}

.manual-intake-page {
  display: grid;
  gap: 12px;
  color: rgba(245, 255, 248, 0.94);
}

.manual-intake-topbar,
.manual-composer,
.manual-inspector-panel {
  border: 1px solid rgba(133, 204, 148, 0.18);
  border-radius: 8px;
  background: rgba(5, 15, 11, 0.82);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.manual-intake-topbar {
  display: block;
  padding: 12px;
}

.manual-intake-topbar h1,
.manual-block h2,
.manual-inspector-head h2,
.manual-result-column h3 {
  margin: 0;
  letter-spacing: 0;
}

.manual-intake-topbar h1 {
  font-size: 20px;
  line-height: 1.2;
}

.manual-intake-topbar p,
.manual-block-head p,
.manual-muted,
.manual-folder-list p {
  margin: 3px 0 0;
  color: var(--jungle-muted, #9fb6a8);
  font-size: 12px;
  line-height: 1.35;
}

.manual-quota-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
}

.manual-quota-strip div {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(133, 204, 148, 0.14);
  border-radius: 6px;
  background: rgba(3, 11, 8, 0.58);
}

.manual-quota-strip span,
.manual-quota-strip small {
  display: block;
  color: var(--jungle-muted, #9fb6a8);
  font-size: 11px;
  line-height: 1.2;
}

.manual-quota-strip strong {
  display: block;
  margin: 2px 0;
  font-size: 15px;
  line-height: 1.15;
}

.manual-intake-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 0.54fr);
  gap: 12px;
  align-items: start;
}

.manual-composer {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.manual-composer-simple {
  min-height: 360px;
  align-content: start;
}

.manual-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.manual-block + .manual-block {
  padding-top: 12px;
  border-top: 1px solid rgba(133, 204, 148, 0.13);
}

.manual-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.manual-block-head.tight {
  min-height: 38px;
}

.manual-block h2 {
  font-size: 14px;
  line-height: 1.25;
}

.manual-segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  min-width: 184px;
  padding: 2px;
  border: 1px solid rgba(133, 204, 148, 0.2);
  border-radius: 7px;
  background: rgba(3, 11, 8, 0.76);
}

.manual-segmented button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  color: var(--jungle-muted, #9fb6a8);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.manual-segmented button.active {
  color: #06120d;
  background: var(--jungle-leaf, #91e36f);
}

.manual-intake-mode {
  display: none;
}

.manual-intake-mode.active {
  display: grid;
  gap: 10px;
}

.manual-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--jungle-muted, #9fb6a8);
  font-size: 11px;
  line-height: 1.25;
}

.manual-field input,
.manual-field select,
.manual-field textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(133, 204, 148, 0.2);
  border-radius: 6px;
  outline: none;
  background: rgba(2, 9, 7, 0.72);
  color: rgba(245, 255, 248, 0.94);
  font: inherit;
  font-size: 13px;
  padding: 7px 9px;
}

.manual-field input:focus,
.manual-field select:focus,
.manual-field textarea:focus {
  border-color: rgba(145, 227, 111, 0.5);
  box-shadow: 0 0 0 2px rgba(145, 227, 111, 0.1);
}

.manual-field textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.45;
}

.manual-primary-field textarea {
  min-height: 260px;
}

.manual-search-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr)) minmax(80px, 0.5fr) minmax(150px, 0.9fr) repeat(2, minmax(70px, 0.42fr));
  gap: 8px;
  align-items: end;
}

.manual-field.small input {
  text-align: center;
}

.manual-check-row,
.manual-action-switch {
  margin: 0;
  padding: 0;
  border: 0;
}

.manual-check-row legend,
.manual-action-switch legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.manual-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manual-check-row label,
.manual-action-switch label,
.manual-folder-list label {
  cursor: pointer;
}

.manual-check-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(133, 204, 148, 0.14);
  border-radius: 6px;
  color: var(--jungle-muted, #9fb6a8);
  background: rgba(3, 11, 8, 0.46);
  font-size: 12px;
}

.manual-action-switch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.manual-action-switch label {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 6px 9px;
  border: 1px solid rgba(133, 204, 148, 0.15);
  border-radius: 7px;
  background: rgba(3, 11, 8, 0.5);
}

.manual-action-switch input,
.manual-folder-list input,
.manual-check-row input {
  appearance: none;
  align-self: center;
  box-sizing: border-box;
  display: inline-grid;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  justify-self: center;
  margin: 0;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(159, 182, 168, 0.76);
  border-radius: 4px;
  background: rgba(2, 9, 7, 0.7);
}

.manual-action-switch input {
  border-radius: 50%;
}

.manual-action-switch input::after,
.manual-folder-list input::after,
.manual-check-row input::after {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 2px;
  background: transparent;
}

.manual-action-switch input::after {
  border-radius: 50%;
}

.manual-action-switch input:checked,
.manual-folder-list input:checked,
.manual-check-row input:checked {
  border-color: var(--jungle-leaf, #91e36f);
  background: rgba(145, 227, 111, 0.18);
}

.manual-action-switch input:checked::after,
.manual-folder-list input:checked::after,
.manual-check-row input:checked::after {
  background: var(--jungle-leaf, #91e36f);
}

.manual-action-switch label:has(input:checked),
.manual-folder-list label:has(input:checked),
.manual-check-row label:has(input:checked) {
  border-color: rgba(145, 227, 111, 0.42);
  background: rgba(22, 48, 31, 0.7);
}

.manual-action-switch span,
.manual-action-switch strong,
.manual-action-switch small {
  display: block;
  min-width: 0;
}

.manual-action-switch strong {
  color: rgba(245, 255, 248, 0.96);
  font-size: 13px;
  line-height: 1.2;
}

.manual-action-switch small {
  margin-top: 2px;
  color: var(--jungle-muted, #9fb6a8);
  font-size: 11px;
  line-height: 1.25;
}

.manual-compact-grid {
  grid-template-columns: minmax(250px, 0.6fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: start;
}

.manual-folder-picker {
  display: grid;
  gap: 7px;
}

.manual-folder-locked,
.manual-folder-list label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(133, 204, 148, 0.14);
  border-radius: 6px;
  background: rgba(3, 11, 8, 0.46);
}

.manual-folder-locked {
  border-color: rgba(145, 227, 111, 0.36);
}

.manual-folder-locked strong,
.manual-folder-list span {
  min-width: 0;
  overflow: hidden;
  color: rgba(245, 255, 248, 0.94);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-folder-locked span,
.manual-folder-list small {
  color: var(--jungle-muted, #9fb6a8);
  font-size: 11px;
}

.manual-folder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 118px;
  overflow: auto;
  padding-right: 2px;
}

.manual-folder-list label {
  grid-template-columns: 14px minmax(0, 1fr) auto;
}

.manual-composer-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid rgba(133, 204, 148, 0.13);
}

.manual-composer-footer .button.primary {
  min-width: 178px;
  min-height: 36px;
}

.channel-action-status {
  min-width: 150px;
  color: var(--jungle-muted, #9fb6a8);
  font-size: 12px;
}

.manual-inspector {
  position: sticky;
  top: 14px;
  min-width: 0;
}

.manual-inspector-panel {
  height: min(620px, calc(100vh - 202px));
  min-height: 500px;
  max-height: calc(100vh - 202px);
  overflow: hidden;
}

.manual-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(133, 204, 148, 0.13);
}

.manual-inspector-head h2 {
  display: inline;
  margin-right: 8px;
  font-size: 14px;
}

.manual-inspector-head span {
  color: var(--jungle-muted, #9fb6a8);
  font-size: 12px;
}

.manual-inspector-body {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  height: calc(100% - 51px);
  min-height: 0;
}

.manual-job-list {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: auto;
  padding: 8px;
  border-right: 1px solid rgba(133, 204, 148, 0.13);
}

.manual-job-row {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(133, 204, 148, 0.14);
  border-radius: 6px;
  color: rgba(245, 255, 248, 0.92);
  background: rgba(3, 11, 8, 0.48);
  text-align: left;
  cursor: pointer;
}

.manual-job-row.active {
  border-color: rgba(145, 227, 111, 0.5);
  background: rgba(21, 48, 30, 0.72);
}

.manual-job-row strong {
  font-size: 13px;
  line-height: 1.2;
}

.manual-job-row span,
.manual-job-row em,
.manual-channel-row span {
  color: var(--jungle-muted, #9fb6a8);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.manual-run-detail {
  display: grid;
  grid-template-rows: minmax(145px, 0.48fr) minmax(190px, 1fr);
  min-width: 0;
  overflow: hidden;
}

.manual-result-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  padding: 9px 10px;
}

.manual-result-column + .manual-result-column {
  border-top: 1px solid rgba(133, 204, 148, 0.13);
}

.manual-result-column h3 {
  margin-bottom: 7px;
  color: var(--jungle-muted, #9fb6a8);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.manual-intake-events,
.manual-intake-channels {
  min-width: 0;
  overflow: auto;
  padding-right: 4px;
}

.manual-event,
.manual-channel-row {
  display: grid;
  gap: 3px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(133, 204, 148, 0.1);
}

.manual-event:last-child,
.manual-channel-row:last-child {
  border-bottom: 0;
}

.manual-event span {
  color: var(--jungle-muted, #9fb6a8);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.manual-event p {
  margin: 0;
  color: rgba(245, 255, 248, 0.9);
  font-size: 12px;
  line-height: 1.35;
}

.manual-event.level-error p {
  color: #ffb4a9;
}

.manual-event.level-success p {
  color: #bff89d;
}

.manual-channel-row strong {
  overflow: hidden;
  color: rgba(245, 255, 248, 0.94);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .manual-intake-layout,
  .manual-intake-topbar {
    grid-template-columns: 1fr;
  }

  .manual-inspector {
    position: static;
  }

  .manual-inspector-panel,
  .manual-inspector-body {
    max-height: none;
    height: auto;
  }

  .manual-inspector-body {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  .manual-compact-grid,
  .manual-search-fields,
  .manual-folder-list,
  .manual-quota-strip,
  .manual-inspector-body {
    grid-template-columns: 1fr;
  }

  .manual-job-list {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(133, 204, 148, 0.13);
  }

  .manual-block-head,
  .manual-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-segmented,
  .manual-composer-footer .button.primary,
  .channel-action-status {
    width: 100%;
  }
}

/* Daily production signal chart */
.app-sidebar + .shell.signals-shell {
  width: calc(100vw - 220px);
  max-width: none;
  margin: 0 0 0 220px;
  padding: 14px;
  background: transparent;
}

.signals-page {
  --jungle-panel: rgba(5, 18, 12, 0.86);
  --jungle-panel-solid: #07140e;
  --jungle-border: rgba(171, 255, 205, 0.15);
  --jungle-border-strong: rgba(171, 255, 205, 0.3);
  --jungle-leaf: #bbf7d0;
  --jungle-leaf-strong: #52ffa8;
  --jungle-text: #ecfff4;
  --jungle-muted: #91aa9d;
  display: grid;
  gap: 10px;
  min-height: calc(100vh - 28px);
  color: var(--jungle-text);
  font-feature-settings: "tnum" 1;
}

.signals-head,
.signals-summary,
.signals-toolbar,
.signals-table-panel,
.signals-empty-state {
  border: 1px solid var(--jungle-border);
  background: var(--jungle-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.signals-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
}

.signals-kicker {
  display: block;
  margin-bottom: 3px;
  color: rgba(187, 247, 208, 0.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.signals-head h1 {
  margin: 0;
  color: #f5fff8;
  font-size: 25px;
  line-height: 1.05;
}

.signals-head p {
  margin: 5px 0 0;
  color: var(--jungle-muted);
  font-size: 12px;
}

.signals-date-form,
.signals-toolbar label {
  display: grid;
  gap: 4px;
  color: var(--jungle-muted);
  font-size: 10px;
  font-weight: 730;
}

.signals-date-form select,
.signals-toolbar select,
.signals-toolbar input,
.signal-note textarea {
  border: 1px solid var(--jungle-border);
  outline: 0;
  background: rgba(1, 8, 5, 0.8);
  color: var(--jungle-text);
  font: inherit;
}

.signals-date-form select,
.signals-toolbar select,
.signals-toolbar input {
  min-height: 34px;
  padding: 0 28px 0 9px;
  border-radius: 7px;
  font-size: 12px;
}

.signals-date-form select:focus,
.signals-toolbar select:focus,
.signals-toolbar input:focus,
.signal-note textarea:focus {
  border-color: var(--jungle-border-strong);
  box-shadow: 0 0 0 3px rgba(82, 255, 168, 0.08);
}

.signals-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 10px;
}

.signals-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 11px 14px;
}

.signals-summary div + div {
  border-left: 1px solid rgba(171, 255, 205, 0.1);
}

.signals-summary span {
  color: var(--jungle-muted);
  font-size: 11px;
  font-weight: 720;
}

.signals-summary strong {
  color: #f5fff8;
  font-size: 22px;
  line-height: 1;
}

.signals-toolbar {
  display: flex;
  align-items: end;
  gap: 7px;
  overflow-x: auto;
  padding: 10px;
  border-radius: 10px;
}

.signals-toolbar label {
  flex: 0 0 auto;
}

.signals-search {
  position: relative;
  width: min(260px, 22vw);
}

.signals-search svg {
  position: absolute;
  left: 9px;
  bottom: 9px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--jungle-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.signals-search input {
  width: 100%;
  padding-left: 31px;
}

.signals-apply,
.signals-reset,
.signal-note button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--jungle-border);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.signals-apply {
  border-color: rgba(82, 255, 168, 0.35);
  background: rgba(82, 255, 168, 0.13);
  color: var(--jungle-leaf);
}

.signals-reset,
.signal-note button {
  background: rgba(255, 255, 255, 0.035);
  color: var(--jungle-muted);
}

.signals-table-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}

.signals-table-scroll {
  overflow: auto;
}

.signals-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.signals-table th,
.signals-table td {
  border-bottom: 1px solid rgba(171, 255, 205, 0.1);
  text-align: left;
  vertical-align: top;
}

.signals-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 9px 10px;
  background: rgba(4, 15, 10, 0.98);
  color: rgba(187, 247, 208, 0.58);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signals-table td {
  padding: 11px 10px;
  background: rgba(3, 13, 8, 0.42);
}

.signals-table tbody tr:hover td {
  background: rgba(14, 37, 24, 0.66);
}

.signals-table tbody tr:last-child td {
  border-bottom: 0;
}

.signals-rank-col { width: 70px; }
.signals-age-col { width: 96px; }
.signals-pulse-col { width: 130px; }
.signals-competition-col { width: 190px; }
.signals-feedback-col { width: 160px; }

.signals-rank-cell strong {
  display: block;
  color: #f6fff9;
  font-size: 23px;
  line-height: 1;
}

.signal-movement {
  display: inline-flex;
  margin-top: 7px;
  color: var(--jungle-muted);
  font-size: 10px;
  font-weight: 780;
}

.signal-movement.new { color: #67e8f9; }
.signal-movement.up { color: #86efac; }
.signal-movement.down { color: #fca5a5; }

.signals-title-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.signals-title-line h2 {
  margin: 0;
  color: #f4fff7;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.32;
}

.signal-priority {
  flex: 0 0 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(187, 247, 208, 0.2);
  border-radius: 5px;
  color: var(--jungle-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 850;
}

.signal-priority.priority-a {
  border-color: rgba(82, 255, 168, 0.35);
  color: #d9f99d;
  background: rgba(82, 255, 168, 0.11);
}

.signals-idea {
  margin: 5px 0 0 30px;
  color: rgba(236, 255, 244, 0.77);
  font-size: 12px;
  line-height: 1.4;
}

.signals-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 6px 0 0 30px;
  color: var(--jungle-muted);
  font-size: 10px;
}

.signals-inline-meta a {
  color: var(--jungle-leaf);
  text-decoration: none;
}

.signals-details {
  margin: 7px 0 0 30px;
}

.signals-details summary,
.signal-note summary {
  width: fit-content;
  color: rgba(187, 247, 208, 0.72);
  font-size: 10px;
  font-weight: 730;
  cursor: pointer;
  list-style: none;
}

.signals-details summary::-webkit-details-marker,
.signal-note summary::-webkit-details-marker {
  display: none;
}

.signals-details summary::before,
.signal-note summary::before {
  content: "+";
  display: inline-block;
  width: 13px;
  color: var(--jungle-muted);
}

.signals-details[open] summary::before,
.signal-note[open] summary::before {
  content: "−";
}

.signals-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid rgba(171, 255, 205, 0.1);
  border-radius: 7px;
  background: rgba(1, 7, 4, 0.4);
}

.signals-details-grid span {
  color: var(--jungle-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.signals-details-grid p {
  margin: 3px 0 0;
  color: rgba(236, 255, 244, 0.8);
  font-size: 11px;
  line-height: 1.4;
}

.signals-age-cell strong,
.signals-pulse-cell strong,
.signals-competition-cell strong {
  display: block;
  color: rgba(245, 255, 248, 0.92);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
}

.signals-age-cell span,
.signals-pulse-cell span,
.signals-competition-cell > span:not(.competition-state) {
  display: block;
  margin-top: 4px;
  color: var(--jungle-muted);
  font-size: 10px;
  line-height: 1.35;
}

.competition-state {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 3px 6px;
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(250, 204, 21, 0.07);
  font-size: 9px;
  font-weight: 780;
}

.competition-state.clear {
  border-color: rgba(134, 239, 172, 0.22);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.08);
}

.competition-state.crowded {
  border-color: rgba(252, 165, 165, 0.22);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.08);
}

.signals-feedback-cell form {
  display: grid;
  gap: 7px;
}

.signal-vote-buttons {
  display: flex;
  gap: 5px;
}

.signal-vote {
  width: 31px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jungle-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--jungle-muted);
  cursor: pointer;
}

.signal-vote svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.signal-vote.like.active {
  border-color: rgba(82, 255, 168, 0.38);
  background: rgba(82, 255, 168, 0.12);
  color: #bbf7d0;
}

.signal-vote.dislike.active {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
}

.signal-note textarea {
  width: 100%;
  min-height: 68px;
  margin-top: 7px;
  padding: 7px 8px;
  resize: vertical;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.signal-note button {
  width: 100%;
  min-height: 29px;
  margin-top: 5px;
}

.signal-feedback-status {
  min-height: 12px;
  color: var(--jungle-muted);
  font-size: 9px;
}

.signals-empty {
  height: 160px;
  color: var(--jungle-muted);
  font-size: 13px;
  text-align: center !important;
  vertical-align: middle !important;
}

.signals-empty-state {
  display: grid;
  place-content: center;
  min-height: 320px;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

.signals-empty-state strong {
  font-size: 18px;
}

.signals-empty-state p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--jungle-muted);
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 1000px) {
  .signals-head {
    align-items: stretch;
    flex-direction: column;
  }

  .signals-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signals-summary div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(171, 255, 205, 0.1);
  }

  .signals-summary div:nth-child(4) {
    border-top: 1px solid rgba(171, 255, 205, 0.1);
  }

  .signals-search {
    width: 220px;
  }
}

@media (max-width: 760px) {
  .app-sidebar + .shell.signals-shell {
    width: min(100%, calc(100vw - 16px));
    margin: 18px auto 36px;
    padding: 0;
  }

  .signals-head h1 {
    font-size: 22px;
  }

  .signals-toolbar {
    align-items: stretch;
    flex-direction: column;
    overflow: visible;
  }

  .signals-toolbar label,
  .signals-search,
  .signals-toolbar select,
  .signals-toolbar input,
  .signals-apply,
  .signals-reset {
    width: 100%;
  }
}

/* Ingredient matching uses the same segmented control as the search toolbar. */
.video-sandbox .ingredient-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.video-sandbox .ingredient-search-heading > label {
  color: inherit;
  font-size: 12px;
  font-weight: 650;
}
.video-sandbox .ingredient-operator {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  min-height: 30px;
}
.video-sandbox .ingredient-operator label:has(input:focus-visible) {
  outline: 2px solid #609f83;
  outline-offset: 2px;
}
.video-sandbox .ingredient-operator-hint {
  margin: 8px 0 12px;
  color: inherit;
  opacity: .7;
  font-size: 11px;
  line-height: 1.5;
}

.video-sandbox .ingredient-search-control {
  max-width: none;
}
.video-sandbox .ingredient-search-control input {
  width: 100%;
  box-sizing: border-box;
}
