:root {
  color-scheme: dark;
  --paper: #101113;
  --white: #181a1d;
  --ink: #f2f3f4;
  --muted: #a4a8ae;
  --line: #303338;
  --teal: #f5222d;
  --teal-dark: #d32f2f;
  --coral: #f0807d;
  --gold: #b7bbc1;
  --soft-teal: #321d20;
  --soft-coral: #382326;
  --shadow: 0 8px 26px rgb(0 0 0 / 14%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgb(229 57 53 / 46%);
  outline-offset: 3px;
}

.app-shell { display: flex; min-height: 100vh; overflow-x: hidden; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 27px 18px 18px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.brand, .mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand { padding: 0 10px; }
.brand-logo { display: block; width: 198px; max-width: 100%; height: auto; }
.workspace-label {
  margin: 47px 11px 12px;
  color: #a0a5a4;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
}
.side-nav { display: grid; gap: 5px; }
.nav-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #65717a;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.nav-link:hover { background: #f7f8f6; color: var(--ink); }
.nav-link.active { background: var(--soft-teal); color: var(--teal-dark); }
.nav-icon { display: inline-grid; width: 19px; place-items: center; font-size: 20px; font-weight: 400; }
.nav-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 5px;
  place-items: center;
  border-radius: 10px;
  background: #f0f1ee;
  color: #77828a;
  font-size: 10px;
}
.sidebar-bottom { margin-top: auto; }
.privacy-card {
  display: flex;
  gap: 9px;
  padding: 13px 11px;
  border: 1px solid #e8eee8;
  border-radius: 10px;
  background: #f8faf6;
}
.privacy-icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e2f1e8;
  color: #33825f;
  font-size: 12px;
}
.privacy-card strong { display: block; font-size: 11px; }
.privacy-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.profile-chip { display: flex; align-items: center; gap: 9px; margin: 18px 4px 0; padding: 10px 7px 2px; border-top: 1px solid var(--line); }
.profile-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: #f7e9dc;
  color: #985d37;
  font-size: 12px;
  font-weight: 700;
}
.profile-chip strong, .profile-chip small { display: block; }
.profile-chip strong { font-size: 10px; }
.profile-chip small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.main-column { display: flex; min-width: 0; min-height: 100vh; flex: 1; flex-direction: column; margin-left: 248px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  background: rgb(246 244 239 / 92%);
  backdrop-filter: blur(12px);
}
.topbar-context { color: #7d858a; font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #e6e2d6;
  border-radius: 99px;
  background: #fbfaf6;
  color: #776a4b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.help-button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #dcded9;
  border-radius: 50%;
  background: transparent;
  color: #707c83;
  font-size: 12px;
}
.mobile-brand { display: none; }
.content { width: min(1120px, 100%); flex: 1; margin: 0 auto; padding: 44px 54px 58px; }
.page-view { display: none; animation: appear .24s ease-out; }
.page-view.active { display: block; }
@keyframes appear { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #8a928f; font-size: 9px; font-weight: 800; letter-spacing: 1.35px; }
.eyebrow-line { display: inline-block; width: 18px; height: 1px; background: var(--coral); }
.eyebrow.compact { margin-bottom: 10px; font-size: 8px; }
.hero-row { display: flex; min-height: 222px; align-items: center; justify-content: space-between; }
.hero-copy h1, .page-title-row h1 {
  margin: 15px 0 10px;
  font-size: clamp(36px, 4.1vw, 52px);
  font-weight: 730;
  letter-spacing: -2.5px;
  line-height: 1.06;
}
.hero-copy h1 em { color: var(--teal); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-copy p, .page-title-row p { max-width: 425px; margin: 0; color: #778188; font-size: 13px; line-height: 1.65; }
.hero-art { position: relative; display: grid; width: 180px; height: 165px; flex: 0 0 auto; place-items: center; margin: 0 43px 0 20px; }
.art-ring { position: absolute; border: 1px solid rgb(23 143 138 / 16%); border-radius: 50%; transform: rotate(-25deg); }
.ring-one { width: 144px; height: 105px; }
.ring-two { width: 104px; height: 147px; border-color: rgb(216 111 93 / 24%); transform: rotate(38deg); }
.art-core { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid #e5e0d4; border-radius: 20px; background: #fffdf8; box-shadow: var(--shadow); color: var(--teal); font-family: Georgia, serif; font-size: 18px; font-style: italic; }
.art-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.spark-one { top: 30px; right: 28px; }
.spark-two { bottom: 25px; left: 20px; width: 5px; height: 5px; background: var(--gold); }

.search-panel { padding: 19px 20px 14px; border: 1px solid #e9e6de; border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.search-panel label { display: block; margin-bottom: 10px; color: #425563; font-size: 11px; font-weight: 700; }
.search-control { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 4px 5px 4px 13px; border: 1px solid #e4e6e2; border-radius: 8px; background: #fdfdfb; }
.search-symbol { color: #899393; font-size: 22px; line-height: 1; }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-control input::placeholder { color: #a0a7a5; }
.button { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 720; transition: transform .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { flex: 0 0 auto; background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.button-light { border-color: #e3e7e3; background: white; color: #52646f; }
.button-light:hover { background: #f5faf8; }
.button-disabled { cursor: not-allowed; background: #e9ece9; color: #79817f; }
.search-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 0; color: #9aa19f; font-size: 10px; }
.text-button, .footer-link { padding: 0; border: 0; background: none; color: var(--teal-dark); font-size: 10px; font-weight: 700; }
.text-button:hover, .footer-link:hover { text-decoration: underline; }

.demo-callout { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 10px 12px; border: 1px solid #eee6d4; border-radius: 8px; background: #fbf8ef; }
.callout-icon { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f0e5c7; color: #95783b; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.demo-callout p { flex: 1; margin: 0; color: #857b62; font-size: 10px; line-height: 1.5; }
.demo-callout strong { color: #665a3f; }
.callout-dismiss { padding: 0 4px; border: 0; background: transparent; color: #a49b85; font-size: 18px; }
.global-notice { margin: 12px 54px 0; padding: 10px 14px; border: 1px solid #ecd7b5; border-radius: 7px; background: #fff9ec; color: #775f34; font-size: 11px; line-height: 1.5; }

.results-section { margin-top: 40px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.8px; }
.data-source-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #7d898a; font-size: 10px; }
.source-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 4px; background: #f8ece5; color: #a6634e; font-size: 8px; font-weight: 800; letter-spacing: .6px; }
.source-badge-live { background: #26382e; color: #9de0b0; }
.source-separator { color: #c2c4be; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; }
.metric-card { min-height: 88px; padding: 16px; border: 1px solid #e9e6de; border-radius: 9px; background: white; }
.metric-label { color: #7c898e; font-size: 10px; }
.metric-value { margin-top: 9px; color: var(--ink); font-size: 22px; font-weight: 730; letter-spacing: -.8px; }
.videos-header { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 11px; }
.videos-header h3 { margin: 0; font-size: 14px; }
.videos-header p { margin: 4px 0 0; color: #899294; font-size: 10px; }
.plain-count { color: #8b9392; font-size: 10px; }
.video-list, .saved-list { display: grid; gap: 8px; }
.video-row, .saved-row { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid #e9e6de; border-radius: 8px; background: white; }
.video-thumb { display: grid; width: 58px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 5px; background: linear-gradient(135deg, #dcece6, #f8e6d9); color: #607e77; font-family: Georgia, serif; font-size: 13px; font-style: italic; }
.video-thumbnail-image { object-fit: cover; }
.video-copy, .saved-copy { min-width: 0; flex: 1; }
.video-copy strong, .saved-copy strong { display: block; overflow: hidden; color: #354a58; font-size: 11px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.video-copy span, .saved-copy span { display: block; margin-top: 4px; color: #8a9498; font-size: 9px; }
.video-views { flex: 0 0 auto; color: #465e68; font-size: 10px; font-weight: 700; text-align: right; }
.video-views small { display: block; margin-top: 4px; color: #98a09f; font-size: 8px; font-weight: 500; }
.save-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid #e8e9e4; border-radius: 7px; background: white; color: #78878b; font-size: 16px; }
.save-icon:hover { border-color: #c9e2d9; background: #f4faf7; color: var(--teal-dark); }
.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 40px; }
.info-panel { position: relative; min-height: 136px; overflow: hidden; padding: 19px; border: 1px solid #e8e3d8; border-radius: 10px; background: #fffdf8; }
.info-panel.panel-teal { border-color: #d7e8e0; background: #f0f6f2; }
.panel-kicker { color: #9b927f; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.info-panel h3 { max-width: 270px; margin: 12px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; letter-spacing: -.3px; }
.info-panel p { max-width: 290px; margin: 0; color: #818b8c; font-size: 10px; line-height: 1.6; }
.panel-decoration { position: absolute; right: 20px; bottom: 4px; color: rgb(23 143 138 / 15%); font-size: 50px; }
.panel-teal .panel-decoration { color: rgb(216 111 93 / 20%); }

.page-title-row { display: flex; align-items: end; justify-content: space-between; margin: 19px 0 25px; }
.page-title-row h1 { margin: 0 0 9px; font-size: clamp(31px, 4vw, 43px); }
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.explore-card { padding: 18px; border: 1px solid #e8e5de; border-radius: 10px; background: white; }
.explore-card-top { display: flex; align-items: center; gap: 11px; }
.channel-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--soft-teal); color: var(--teal-dark); font-family: Georgia, serif; font-size: 14px; }
.explore-card h2 { margin: 0; font-size: 13px; }
.explore-card p { margin: 4px 0 0; color: #929a99; font-size: 9px; }
.explore-card .explore-stats { display: flex; gap: 15px; margin: 16px 0; padding-top: 12px; border-top: 1px solid #f0eee8; color: #718084; font-size: 10px; }
.explore-card .button { width: 100%; }
.saved-empty { display: grid; min-height: 220px; padding: 30px; place-items: center; border: 1px dashed #d9ddd7; border-radius: 10px; background: rgb(255 255 255 / 54%); text-align: center; }
.saved-empty span { display: block; color: var(--teal); font-size: 26px; }
.saved-empty h2 { margin: 8px 0 4px; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.saved-empty p { max-width: 300px; margin: 0; color: #879193; font-size: 11px; line-height: 1.6; }
.saved-remove { padding: 6px 8px; border: 1px solid #e8e9e4; border-radius: 6px; background: white; color: #8a6d61; font-size: 9px; }
.connect-panel { display: flex; gap: 20px; max-width: 700px; padding: 25px; border: 1px solid #e8e5de; border-radius: 11px; background: white; box-shadow: var(--shadow); }
.connect-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--soft-teal); color: var(--teal); font-size: 22px; }
.connect-panel h2 { max-width: 430px; margin: 9px 0 8px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.connect-panel p { max-width: 480px; margin: 0 0 17px; color: #7e8a8e; font-size: 11px; line-height: 1.65; }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 17px 54px; border-top: 1px solid var(--line); color: #9aa09c; font-size: 9px; }
.footer-dot { margin: 0 5px; color: var(--coral); }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 5; max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 8px; background: var(--ink); box-shadow: var(--shadow); color: white; font-size: 11px; line-height: 1.5; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.panel { padding: 20px; border: 1px solid #e8e5de; border-radius: 11px; background: white; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-heading h2, .panel-heading h3 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.3px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 14px; }
.dashboard-stat { display: grid; min-height: 94px; padding: 14px; border: 1px solid #e8e5de; border-radius: 9px; background: white; }
.dashboard-stat span { color: #74808a; font-size: 10px; }
.dashboard-stat strong { margin-top: 7px; color: var(--ink); font-size: 24px; letter-spacing: -.8px; }
.dashboard-stat small { margin-top: 4px; color: #9aa19f; font-size: 9px; }
.chart-panel { margin-top: 14px; }
.chart-controls { display: flex; gap: 4px; padding: 3px; border-radius: 7px; background: #f3f5f2; }
.period-button { padding: 6px 9px; border: 0; border-radius: 5px; background: transparent; color: #76827f; font-size: 9px; }
.period-button.active { background: white; box-shadow: 0 1px 5px rgb(25 50 74 / 9%); color: var(--teal-dark); font-weight: 700; }
.chart-summary { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.chart-summary strong { color: var(--ink); font-size: 20px; }
.chart-summary span, .chart-axis { color: #949d9b; font-size: 9px; }
.line-chart { display: block; width: 100%; height: auto; min-height: 145px; margin-top: 10px; overflow: visible; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 5px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; color: #7d8988; font-size: 9px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.dashboard-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 13px; margin-top: 14px; }
.dashboard-columns > .panel { min-width: 0; }
.compact-video-list { display: grid; gap: 4px; margin-top: 12px; }
.compact-video { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 8px 0; border: 0; border-top: 1px solid #f0eee8; background: transparent; text-align: left; }
.compact-video:first-child { border-top: 0; }
.mini-thumb { display: grid; width: 54px; height: 36px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 5px; color: white; font-size: 7px; font-weight: 800; text-align: center; }
.compact-video-copy { display: grid; min-width: 0; gap: 4px; }
.compact-video-copy strong { overflow: hidden; color: #354a58; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.compact-video-copy small { color: #8d9997; font-size: 8px; }
.compact-arrow { margin-left: auto; color: var(--teal); }
.topic-feature { background: #f4f8f5; }
.topic-feature h2 { margin: 11px 0 7px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.topic-feature p { margin: 0; color: #7c8988; font-size: 10px; line-height: 1.6; }
.topic-feature > .button { margin-top: 16px; }
.topic-category { display: inline-block; color: #9a8b69; font-size: 8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.featured-topic-title { display: block; margin-top: 5px; color: var(--teal-dark); font-family: Georgia, serif; font-size: 17px; }
.topic-signal { display: block; margin-top: 5px; color: #8d9997; font-size: 9px; }
.channel-chart-panel { margin-top: 18px; }
.channel-chart-panel .line-chart { min-height: 130px; }
.video-row { min-width: 0; }
.row-open { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #e3e7e3; border-radius: 6px; background: white; color: var(--teal-dark); font-size: 8px; font-weight: 700; }
.row-open:hover { background: #f4faf7; }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .55fr) minmax(140px, .45fr); gap: 10px; align-items: end; padding: 13px; border: 1px solid #e8e5de; border-radius: 9px; background: white; }
.filter-bar > label:not(.filter-search), .alert-form > label { display: grid; gap: 6px; color: #788582; font-size: 9px; font-weight: 700; }
.filter-search { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e3e7e3; border-radius: 7px; color: #899393; }
.filter-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.filter-bar select, .alert-form select, .alert-form input, .collection-select, .inline-form input { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid #e3e7e3; border-radius: 7px; background: white; color: #50616a; font-size: 10px; }
.result-count { margin: 14px 0 9px; color: #899492; font-size: 10px; }
.video-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid #e8e5de; border-radius: 9px; background: white; }
.thumbnail-art { position: relative; display: flex; aspect-ratio: 16 / 9; min-height: 100px; flex-direction: column; justify-content: end; overflow: hidden; padding: 12px; border-radius: 7px; background: linear-gradient(135deg, #34363a, #191a1c); color: white; isolation: isolate; }
.thumbnail-art::before, .thumbnail-art::after { position: absolute; z-index: -1; content: ""; }
.thumbnail-art::before { inset: -35% 45% -35% -15%; border: 1px solid rgb(255 255 255 / 27%); border-radius: 50%; transform: rotate(22deg); }
.thumbnail-art::after { top: 12%; right: 8%; width: 30%; height: 58%; border: 1px solid rgb(255 255 255 / 30%); border-radius: 45% 45% 8px 8px; transform: rotate(12deg); }
.thumb-coral { background: linear-gradient(135deg, #8e292c, #e04b4b); }
.thumb-teal { background: linear-gradient(135deg, #292b2f, #666a71); }
.thumb-gold { background: linear-gradient(135deg, #681e22, #c4363a); }
.thumb-lavender { background: linear-gradient(135deg, #34363a, #777b82); }
.thumbnail-art-title { max-width: 82%; color: white; font-size: clamp(12px, 1.3vw, 18px); font-weight: 850; letter-spacing: -.5px; line-height: 1.03; text-shadow: 0 1px 8px rgb(0 0 0 / 25%); }
.thumbnail-art-channel { margin-top: 6px; color: rgb(255 255 255 / 86%); font-size: 8px; font-weight: 650; }
.video-card-body { padding: 12px; }
.video-card-format { color: #9a8b69; font-size: 8px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; }
.video-card h2 { min-height: 37px; margin: 6px 0; color: #354a58; font-size: 12px; line-height: 1.45; }
.video-card p { margin: 0; color: #8a9498; font-size: 9px; }
.video-card-stats { display: flex; align-items: baseline; gap: 5px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #f0eee8; }
.video-card-stats strong { color: var(--ink); font-size: 12px; }
.video-card-stats span { color: #98a09f; font-size: 8px; }
.video-card-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.video-card-actions .button { flex: 1; }
.video-detail { margin-top: 16px; scroll-margin-top: 86px; }
.video-detail-top { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.video-detail-top h2 { margin: 6px 0 0; font-size: 22px; }
.detail-art { width: min(100%, 560px); margin-top: 17px; }
.detail-description { max-width: 650px; color: #788582; font-size: 11px; line-height: 1.65; }
.detail-metrics { margin-top: 15px; }
.detail-metrics .metric-value { font-size: 17px; }
.video-detail .line-chart { margin-bottom: 4px; }
.video-detail > .button { margin-top: 14px; }
.radar-banner { display: flex; gap: 12px; align-items: center; margin: 16px 0; padding: 14px; border: 1px solid #e5e9dd; border-radius: 9px; background: #f5f8ee; }
.analysis-scope { margin-top: 10px; }
.radar-banner > span { color: var(--gold); font-size: 22px; }
.radar-banner strong { color: #5e6d65; font-size: 11px; }
.radar-banner p { margin: 4px 0 0; color: #87918a; font-size: 9px; line-height: 1.5; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.topic-card { display: grid; align-content: start; min-height: 176px; padding: 15px; border: 1px solid #e8e5de; border-radius: 9px; background: white; }
.topic-symbol { display: grid; width: 30px; height: 30px; margin-bottom: 12px; place-items: center; border-radius: 9px; background: var(--soft-teal); color: var(--teal); }
.topic-coral { background: var(--soft-coral); color: var(--coral); }
.topic-gold { background: #f7f0dd; color: #a88435; }
.topic-lavender { background: #f0edf8; color: #76699d; }
.topic-card h2 { margin: 6px 0; font-size: 12px; }
.topic-card p, .topic-card small { margin: 0 0 7px; color: #8b9692; font-size: 9px; }
.topic-card .text-button { justify-self: start; margin-top: auto; font-size: 9px; }
.section-divider { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 13px; }
.section-divider h2 { margin: 5px 0 0; font-size: 17px; }
.thumbnail-intro { display: grid; grid-template-columns: 1fr minmax(210px, .7fr); gap: 24px; align-items: center; }
.thumbnail-intro h2 { margin: 7px 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.thumbnail-intro p { max-width: 480px; margin: 0; color: #82908c; font-size: 10px; line-height: 1.6; }
.thumbnail-selection { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; color: #85908e; font-size: 9px; }
.thumbnail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.thumbnail-card { min-width: 0; padding: 8px; border: 1px solid #e8e5de; border-radius: 9px; background: white; }
.thumbnail-card .thumbnail-art { min-height: 100px; }
.thumbnail-card h2 { min-height: 34px; margin: 9px 2px 4px; color: #354a58; font-size: 10px; line-height: 1.45; }
.thumbnail-card > p { margin: 0 2px; color: #929b99; font-size: 8px; }
.thumbnail-card-actions { display: grid; gap: 8px; margin: 10px 2px 2px; justify-items: start; }
.thumbnail-card-actions .text-button { font-size: 8px; }
.thumbnail-compare { margin-top: 16px; }
.thumbnail-compare h2 { margin: 0; font-size: 16px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.comparison-item { min-width: 0; padding: 9px; border: 1px solid #eeeae2; border-radius: 8px; }
.comparison-item h3 { margin: 8px 0 3px; font-size: 11px; }
.comparison-item p, .form-note { margin: 0; color: #8d9895; font-size: 9px; line-height: 1.55; }
.comparison-placeholder { display: grid; min-height: 120px; padding: 15px; place-items: center; border: 1px dashed #d9ddd7; border-radius: 8px; color: #929b99; font-size: 9px; text-align: center; }
.collection-manager { margin-bottom: 20px; }
.inline-form { display: flex; gap: 8px; margin-top: 14px; }
.inline-form input { flex: 1; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.collection-card { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 9px; align-items: center; padding: 11px; border: 1px solid #eeeae2; border-radius: 8px; }
.collection-icon { grid-row: span 2; color: var(--teal); font-size: 18px; }
.collection-card strong { overflow: hidden; color: #53636b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.collection-card small { color: #919b98; font-size: 8px; }
.collection-card .saved-remove { grid-column: 3; grid-row: 1 / span 2; }
.collection-select { width: auto; min-width: 110px; max-width: 150px; min-height: 30px; font-size: 8px; }
.saved-row { min-width: 0; }
.alerts-layout { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: 13px; align-items: start; }
.alert-form { display: grid; gap: 9px; }
.alert-form h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.alert-form input { background: #fff; }
.alert-form .button { margin-top: 5px; }
.alert-form .form-note { margin-top: 2px; }
.alert-list { display: grid; gap: 8px; margin-top: 12px; }
.alert-row { display: flex; align-items: center; gap: 8px; padding: 11px; border: 1px solid #eeeae2; border-radius: 8px; }
.alert-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.alert-copy strong { color: #435761; font-size: 10px; }
.alert-copy span, .alert-copy small { color: #899492; font-size: 8px; }
.alert-row .button { min-height: 30px; padding: 0 8px; font-size: 8px; }
.privacy-details { margin-top: 16px; }
.privacy-details h2 { margin: 8px 0; font-size: 16px; }
.privacy-details ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #788582; font-size: 10px; line-height: 1.5; }

@media (max-width: 1000px) {
  .sidebar { width: 214px; }
  .main-column { margin-left: 214px; }
  .content { padding-right: 34px; padding-left: 34px; }
  .topbar { padding-right: 34px; padding-left: 34px; }
  .footer { padding-right: 34px; padding-left: 34px; }
  .hero-art { margin-right: 12px; }
}

@media (max-width: 720px) {
  .sidebar { position: fixed; inset: auto 0 0; width: auto; height: 65px; flex-direction: row; justify-content: center; padding: 5px 8px; border-top: 1px solid var(--line); border-right: 0; background: rgb(255 255 255 / 96%); }
  .brand, .workspace-label, .sidebar-bottom { display: none; }
  .side-nav { width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .nav-link { position: relative; min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: 1px; padding: 2px 0; border-radius: 7px; font-size: 7px; }
  .nav-icon { height: 23px; font-size: 19px; }
  .nav-count { position: absolute; top: 2px; right: 3px; min-width: 14px; height: 14px; margin: 0; padding: 0 3px; font-size: 7px; }
  .main-column { min-height: 100vh; margin-left: 0; padding-bottom: 65px; }
  .topbar { min-height: 58px; padding: 0 17px; }
  .mobile-brand { display: inline-flex; }
  .mobile-brand .brand-logo { width: 146px; max-width: calc(100vw - 150px); }
  .topbar-context { display: none; }
  .demo-pill { padding: 6px 8px; font-size: 8px; }
  .help-button { width: 25px; height: 25px; }
  .content { padding: 30px 18px 35px; }
  .hero-row { min-height: 175px; overflow: hidden; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 45px); letter-spacing: -1.7px; }
  .hero-copy p { max-width: 300px; font-size: 11px; }
  .hero-art { display: none; }
  .search-panel { padding: 15px 13px 11px; }
  .search-control { flex-wrap: wrap; padding: 7px; }
  .search-control input { flex: 1; min-height: 34px; }
  .search-control .button { width: 100%; }
  .search-foot { align-items: flex-start; font-size: 9px; }
  .demo-callout { align-items: flex-start; }
  .demo-callout p { font-size: 9px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
  .dashboard-stat { min-height: 79px; padding: 10px; }
  .dashboard-stat strong { font-size: 20px; }
  .dashboard-stat small { font-size: 8px; }
  .panel { padding: 14px; }
  .panel-heading h2 { font-size: 15px; }
  .dashboard-columns, .alerts-layout { grid-template-columns: 1fr; }
  .chart-summary strong { font-size: 17px; }
  .line-chart { min-height: 112px; }
  .chart-legend { gap: 8px; }
  .legend-item { font-size: 8px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 19px; }
  .section-heading .button { padding: 0 9px; font-size: 9px; }
  .section-heading .button span { display: none; }
  .metric-grid { gap: 7px; }
  .metric-card { min-height: 76px; padding: 11px 9px; }
  .metric-label { font-size: 8px; }
  .metric-value { font-size: 17px; }
  .video-row { gap: 8px; padding: 10px 8px; }
  .video-thumb { width: 45px; height: 34px; }
  .video-copy strong { font-size: 9px; }
  .video-copy span, .video-views small { font-size: 8px; }
  .video-views { font-size: 9px; }
  .row-open { padding: 5px; font-size: 7px; }
  .save-icon { width: 26px; height: 26px; }
  .lower-grid { grid-template-columns: 1fr; margin-top: 26px; }
  .page-title-row { margin-bottom: 20px; }
  .page-title-row h1 { font-size: 32px; letter-spacing: -1.4px; }
  .page-title-row p { font-size: 11px; }
  .explore-grid, .topic-grid, .video-catalog { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; }
  .video-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
  .video-card .thumbnail-art { min-height: 100%; aspect-ratio: auto; border-radius: 0; }
  .video-card-body { padding: 10px; }
  .video-card h2 { min-height: 0; font-size: 11px; }
  .video-card-stats { margin-top: 7px; padding-top: 6px; }
  .video-card-actions { margin-top: 6px; }
  .thumbnail-intro { grid-template-columns: 1fr; gap: 13px; }
  .thumbnail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .thumbnail-card .thumbnail-art { min-height: 78px; padding: 8px; }
  .thumbnail-art-title { font-size: 12px; }
  .thumbnail-selection { align-items: flex-start; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .collection-select { min-width: 82px; max-width: 105px; }
  .alert-row { flex-wrap: wrap; }
  .alert-copy { flex-basis: 100%; }
  .detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-metrics .metric-card { min-width: 0; }
  .detail-metrics .metric-label { font-size: 7px; }
  .detail-metrics .metric-value { overflow-wrap: anywhere; font-size: 12px; }
  .video-detail-top h2 { font-size: 18px; }
  .comparison-grid { gap: 7px; }
  .comparison-item { padding: 6px; }
  .comparison-item .thumbnail-art { min-height: 75px; padding: 7px; }
  .comparison-item .thumbnail-art-title { font-size: 10px; }
  .inline-form { flex-wrap: wrap; }
  .inline-form .button { width: 100%; }
  .connect-panel { flex-direction: column; padding: 19px; }
  .global-notice { margin: 10px 18px 0; }
  .footer { padding: 13px 18px; font-size: 8px; }
  .footer-link { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

:root {
  color-scheme: dark;
  --paper: #101113;
  --white: #181a1d;
  --ink: #f2f3f4;
  --muted: #a4a8ae;
  --line: #303338;
  --teal: #f5222d;
  --teal-dark: #d32f2f;
  --coral: #f0807d;
  --gold: #b7bbc1;
  --soft-teal: #321d20;
  --soft-coral: #382326;
  --shadow: 0 8px 26px rgb(0 0 0 / 14%);
}

::selection { background: rgb(229 57 53 / 24%); color: var(--ink); }
body { background: var(--paper); color: var(--ink); }
.app-shell { background: var(--paper); }
.sidebar { width: 256px; padding: 24px 16px 18px; background: #141517; border-color: #2b2d31; }
.sidebar { background: #141517; border-color: #2b2d31; }
.brand { min-height: 46px; }
.workspace-label { margin: 40px 12px 12px; color: #71808d; font-size: 9px; }
.side-nav { gap: 4px; }
.nav-link { min-height: 44px; border: 1px solid transparent; border-radius: 8px; color: #a4b0bd; font-size: 12px; }
.nav-link:hover { background: #222427; color: #f0f1f2; }
.nav-link.active { border-color: rgb(229 57 53 / 24%); background: #341d20; color: var(--teal); }
.nav-icon { font-size: 18px; }
.nav-count { background: #292b2f; color: #c3c6ca; }
.privacy-card { border-color: #34363a; background: #1a1b1e; }
.privacy-icon { background: #3a2224; color: #f0807d; }
.privacy-card strong, .profile-chip strong { color: #e3e5e7; }
.privacy-card p, .profile-chip small { color: #a4a8ae; }
.profile-chip { border-color: #303236; }
.profile-avatar { background: #342225; color: #ef7774; }
.main-column { margin-left: 256px; }
.topbar { min-height: 66px; padding: 0 42px; border-color: #2b2d31; background: rgb(16 17 19 / 94%); }
.topbar-context { color: #c0c3c7; font-size: 13px; font-weight: 650; }
.demo-pill { border-color: #393b3f; background: #202124; color: #d0d2d5; }
.status-dot { background: var(--gold); }
.help-button { border-color: #414348; color: #b7bbc1; }
.help-button:hover { border-color: var(--teal); color: var(--teal); }
.content { width: min(1280px, 100%); padding: 40px 48px 56px; }
.eyebrow { color: #9aa8b7; font-size: 10px; letter-spacing: 1.15px; }
.eyebrow-line { background: var(--teal); }
.hero-row { min-height: 190px; }
.hero-copy h1, .page-title-row h1 { color: #f2f3f4; font-size: clamp(36px, 3.5vw, 48px); font-weight: 680; letter-spacing: -1.8px; }
.hero-copy h1 em { color: var(--teal); font-family: inherit; font-style: normal; font-weight: 680; }
.hero-copy p, .page-title-row p { max-width: 560px; color: #a9b5c1; font-size: 14px; }
.hero-art { display: none; }
.search-panel, .panel, .dashboard-stat, .metric-card, .explore-card, .topic-card,
.video-card, .thumbnail-card, .connect-panel {
  border-color: #303338;
  background: #181a1d;
  box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
}
.search-panel { padding: 20px; border-radius: 12px; }
.search-panel label { color: #dce4eb; font-size: 12px; }
.search-control, .filter-search { border-color: #3a3c40; background: #111214; }
.search-symbol, .filter-search { color: #b1b4b8; }
.search-control input, .filter-search input { color: #f0f1f2; font-size: 13px; }
.search-control input::placeholder, .filter-search input::placeholder { color: #92969b; }
.button { min-height: 40px; border-radius: 8px; font-size: 11px; }
.button-primary { background: var(--teal-dark); color: #fff; }
.button-primary:hover { background: #b71c1c; }
.button-light { border-color: #3a3c40; background: #202124; color: #e1e2e4; }
.button-light:hover { border-color: #5a5c60; background: #292a2d; }
.button-disabled { background: #292a2d; color: #a0a3a8; }
.search-foot { color: #a0a3a8; font-size: 10px; }
.text-button, .footer-link { color: var(--teal); }
.demo-callout { border-color: #3a3435; background: #201b1c; }
.callout-icon { background: #3a2224; color: #f0807d; }
.demo-callout p { color: #c1c2c4; font-size: 11px; }
.demo-callout strong { color: #f1f1f2; }
.callout-dismiss { color: #a7a9ad; }
.global-notice { border-color: #44464b; background: #222326; color: #e0e1e3; }
.dashboard-stats { gap: 12px; margin: 18px 0 14px; }
.dashboard-stat { min-height: 100px; padding: 16px; }
.dashboard-stat span { color: #b5b8bc; font-size: 11px; }
.dashboard-stat strong { color: #f2f6f9; font-size: 25px; }
.dashboard-stat small { color: #a0a3a8; font-size: 10px; }
.panel { border-radius: 12px; }
.panel-kicker { color: #a8abb0; font-size: 9px; }
.panel-heading h2, .panel-heading h3 { color: #ecf2f6; }
.chart-panel { margin-top: 15px; }
.chart-controls { background: #111214; }
.period-button { color: #b0b3b7; }
.period-button.active { background: #3a2224; box-shadow: none; color: #ff7773; }
.chart-summary strong { color: #f0f5f8; }
.chart-summary span, .chart-axis { color: #a0a3a8; }
.line-chart { min-height: 170px; }
.chart-legend { gap: 14px; }
.legend-item { color: #b6b9bd; }
.dashboard-columns { gap: 15px; margin-top: 15px; }
.compact-video { border-color: #303236; }
.compact-video-copy strong { color: #e5e6e8; font-size: 12px; }
.compact-video-copy small { color: #a5a8ad; font-size: 10px; }
.compact-arrow { color: var(--teal); }
.topic-feature { border-color: #3c3031; background: #1b1a1c; }
.topic-feature h2 { color: #eff5f5; font-family: inherit; font-weight: 620; }
.topic-feature p { color: #b2b4b8; }
.featured-topic-title { color: var(--teal); font-family: inherit; font-size: 17px; }
.topic-signal { color: #a7a9ad; }
.results-section { margin-top: 42px; }
.section-heading h2 { color: #f1f5f8; font-size: 25px; }
.data-source-note { color: #b0b3b7; }
.source-badge { background: #382224; color: #f08a87; }
.metric-card { min-height: 98px; }
.metric-label { color: #9aa9b5; }
.metric-value { color: #eef4f7; }
.videos-header h3 { color: #eaf0f4; }
.videos-header p, .plain-count { color: #a4a7ac; }
.video-row, .saved-row, .alert-row, .collection-card, .comparison-item { border-color: #34363a; background: #1c1d20; }
.video-copy strong, .saved-copy strong { color: #e7e8ea; }
.video-copy span, .saved-copy span, .video-views small { color: #a0a3a8; }
.video-views { color: #e2e3e5; }
.save-icon, .saved-remove { border-color: #3a3c40; background: #222326; color: #c9cbd0; }
.save-icon:hover { border-color: #c94b49; background: #3a2224; color: #ff7773; }
.lower-grid { gap: 15px; }
.info-panel { border-color: #34363a; background: #1c1d20; }
.info-panel.panel-teal { border-color: #3c3031; background: #211a1b; }
.info-panel h3 { color: #e8e9eb; font-family: inherit; font-weight: 600; }
.info-panel p { color: #aaadb2; }
.panel-decoration { color: rgb(229 57 53 / 14%); }
.page-title-row { margin: 18px 0 24px; }
.page-title-row h1 { font-size: clamp(32px, 3.5vw, 45px); }
.page-title-row p { font-size: 13px; }
.filter-bar { border-color: #303338; background: #181a1d; }
.filter-bar > label:not(.filter-search), .alert-form > label { color: #b1b4b8; }
.filter-bar select, .alert-form select, .alert-form input, .collection-select, .inline-form input {
  border-color: #3a3c40;
  background: #111214;
  color: #e5e6e8;
}
.result-count { color: #a5a8ad; }
.form-note { color: #a3a6ab; }
.explore-card h2, .topic-card h2 { color: #e7eef2; font-size: 13px; }
.explore-card p, .explore-stats, .topic-card p, .topic-card small { color: #a0adb8; font-size: 10px; }
.explore-card .explore-stats { border-color: #34363a; }
.channel-avatar { background: #3a2224; color: #f0807d; }
.saved-empty { border-color: #414348; background: #18191b; }
.saved-empty h2 { color: #e7e8ea; font-family: inherit; font-weight: 600; }
.saved-empty p { color: #a8abb0; }
.connect-panel h2 { color: #e8e9eb; font-family: inherit; font-weight: 620; }
.connect-panel p { color: #b0b3b7; }
.connect-icon { background: #3a2224; color: #f0807d; }
.privacy-details h2 { color: #ededee; }
.privacy-details ul { color: #b1b4b8; }
.footer { border-color: #2b2d31; color: #92969b; }
.toast { border: 1px solid #44464b; background: #252629; color: #f0f1f2; }
.radar-banner { border-color: #3a3435; background: #201b1c; }
.radar-banner strong { color: #e6e7e9; }
.radar-banner p { color: #b2b4b8; }
.topic-symbol { background: #342123; color: #f0807d; }
.topic-coral { background: #3a2224; color: #f0807d; }
.topic-gold { background: #303236; color: #c5c8cd; }
.topic-lavender { background: #292a2d; color: #c1c4c9; }
.topic-category, .video-card-format { color: #c3c5ca; }
.video-card-format { font-size: 9px; }
.video-card h2 { min-height: 38px; color: #ededee; font-size: 13px; }
.video-card p { color: #b5b7bc; font-size: 10px; }
.video-card-stats strong { color: #f0f1f2; font-size: 14px; }
.video-card-stats span { color: #a8abb0; font-size: 9px; }
.thumbnail-intro h2 { color: #ededee; font-family: inherit; font-weight: 620; }
.thumbnail-intro p { color: #b0b3b7; }
.thumbnail-selection { color: #b0b3b7; }
.thumbnail-card h2 { color: #e5e6e8; font-size: 11px; }
.thumbnail-card > p, .comparison-item p { color: #a5a8ad; }
.thumbnail-compare h2 { color: #ededee; }
.comparison-placeholder { border-color: #414348; color: #a5a8ad; }
.collection-card strong, .alert-copy strong { color: #e5e6e8; font-size: 10px; }
.collection-card small, .alert-copy span, .alert-copy small { color: #b0b3b7; font-size: 9px; }
.collection-icon { color: var(--teal); }
.alert-form h2 { color: #ededee; font-family: inherit; font-weight: 620; }
.alert-row { background: #1c1d20; }
.row-open { border-color: #3a3c40; background: #222326; color: #f0807d; }
.row-open:hover { background: #3a2224; }
.global-notice { border-color: #493638; background: #241a1b; color: #e4b7b7; }
.source-badge-live { background: #203528; color: #9de0b0; }
.data-source-note #channelStorageNote { color: #b1b4b8; }
.button:disabled, .save-icon:disabled { cursor: not-allowed; opacity: .55; }
.row-open { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

@media (max-width: 1000px) {
  .sidebar { width: 220px; }
  .main-column { margin-left: 220px; }
  .content { padding-right: 30px; padding-left: 30px; }
  .topbar { padding-right: 30px; padding-left: 30px; }
  .footer { padding-right: 30px; padding-left: 30px; }
}

@media (max-width: 720px) {
  .sidebar { inset: auto 0 0; width: 100%; height: 70px; padding: 6px 5px max(6px, env(safe-area-inset-bottom)); border-color: #303236; background: rgb(20 21 23 / 97%); }
  .side-nav { display: grid; overflow: hidden; width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .nav-link { min-width: 0; min-height: 54px; gap: 2px; padding: 3px 2px; border-radius: 8px; color: #93a1ad; font-size: 8px; }
  .nav-icon { height: 23px; font-size: 18px; }
  .nav-count { top: 1px; right: 12%; background: #292b2f; color: #e0e1e3; }
  .nav-link > span:not(.nav-icon):not(.nav-count) { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
  .main-column { margin-left: 0; padding-bottom: 70px; }
  .topbar { min-height: 58px; padding: 0 17px; }
  .mobile-brand .brand-logo { width: 146px; }
  .demo-pill { padding: 6px 8px; font-size: 8px; }
  .content { padding: 26px 18px 32px; }
  .hero-row { min-height: 175px; }
  .hero-copy h1 { max-width: 520px; font-size: clamp(34px, 8.5vw, 46px); letter-spacing: -1.9px; }
  .hero-copy p { max-width: 390px; font-size: 12px; }
  .hero-art { display: none; }
  .search-panel { padding: 15px; }
  .search-control { flex-wrap: nowrap; padding: 5px; }
  .search-control input { min-height: 38px; font-size: 11px; }
  .search-control .button { width: auto; min-height: 37px; padding: 0 10px; font-size: 9px; }
  .search-foot { align-items: center; font-size: 9px; }
  .demo-callout { align-items: flex-start; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dashboard-stat { min-height: 84px; padding: 12px; }
  .dashboard-stat strong { font-size: 21px; }
  .dashboard-stat small { font-size: 8px; }
  .panel { padding: 15px; }
  .dashboard-columns, .alerts-layout { grid-template-columns: 1fr; }
  .chart-summary strong { font-size: 18px; }
  .line-chart { min-height: 125px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 20px; }
  .section-heading .button { padding: 0 9px; font-size: 9px; }
  .section-heading .button span { display: none; }
  .metric-grid { gap: 7px; }
  .metric-card { min-height: 76px; padding: 11px 9px; }
  .metric-label { font-size: 8px; }
  .metric-value { font-size: 17px; }
  .video-row { gap: 8px; padding: 10px 8px; }
  .video-thumb { width: 45px; height: 34px; }
  .video-copy strong { font-size: 9px; }
  .video-copy span, .video-views small { font-size: 8px; }
  .video-views { font-size: 9px; }
  .row-open { padding: 5px; font-size: 7px; }
  .save-icon { width: 26px; height: 26px; }
  .page-title-row { margin-bottom: 18px; }
  .page-title-row h1 { font-size: 32px; letter-spacing: -1.4px; }
  .page-title-row p { font-size: 11px; }
  .explore-grid, .topic-grid, .video-catalog { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; }
  .video-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
  .video-card .thumbnail-art { min-height: 100%; aspect-ratio: auto; border-radius: 0; }
  .video-card-body { padding: 10px; }
  .video-card h2 { min-height: 0; font-size: 11px; }
  .video-card-stats { margin-top: 7px; padding-top: 6px; }
  .video-card-actions { margin-top: 6px; }
  .thumbnail-intro { grid-template-columns: 1fr; gap: 13px; }
  .thumbnail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .thumbnail-card .thumbnail-art { min-height: 78px; padding: 8px; }
  .thumbnail-art-title { font-size: 12px; }
  .thumbnail-selection { align-items: flex-start; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .collection-select { min-width: 82px; max-width: 105px; }
  .alert-row { flex-wrap: wrap; }
  .alert-copy { flex-basis: 100%; }
  .detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-metrics .metric-card { min-width: 0; }
  .detail-metrics .metric-label { font-size: 7px; }
  .detail-metrics .metric-value { overflow-wrap: anywhere; font-size: 12px; }
  .video-detail-top h2 { font-size: 18px; }
  .comparison-grid { gap: 7px; }
  .comparison-item { padding: 6px; }
  .comparison-item .thumbnail-art { min-height: 75px; padding: 7px; }
  .comparison-item .thumbnail-art-title { font-size: 10px; }
  .inline-form { flex-wrap: wrap; }
  .inline-form .button { width: 100%; }
  .connect-panel { flex-direction: column; padding: 19px; }
  .global-notice { margin: 10px 18px 0; }
  .footer { padding: 13px 18px; font-size: 8px; }
  .footer-link { font-size: 8px; }
}

@media (max-width: 420px) {
  .content { padding-right: 14px; padding-left: 14px; }
  .nav-link { font-size: 7px; }
  .nav-count { right: 5%; }
  .search-control { flex-wrap: wrap; }
  .search-control input { flex: 1 1 100%; }
  .search-control .button { width: 100%; }
  .search-foot { align-items: flex-start; }
  .search-foot > span { max-width: 55%; }
  .page-title-row h1 { font-size: 29px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

h1, h2, h3, h4, button, input, select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
h1, h2, h3, h4 { letter-spacing: -.025em; }
.hero-copy h1 em { font-style: normal; }
.hero-art { display: none; }
.art-core, .info-panel h3, .saved-empty h2, .connect-panel h2,
.topic-feature h2, .featured-topic-title, .thumbnail-intro h2,
.alert-form h2, .channel-avatar, .video-thumb, .callout-icon {
  font-family: inherit;
  font-style: normal;
}
.art-core { box-shadow: none; }
.info-panel h3, .saved-empty h2, .connect-panel h2, .thumbnail-intro h2,
.alert-form h2 { font-weight: 620; }
.video-thumb { color: #b7c5cf; }
.callout-icon { border-radius: 5px; font-size: 11px; font-weight: 700; }
.search-control, .filter-search, .filter-bar select, .alert-form select,
.alert-form input, .collection-select, .inline-form input {
  border-radius: 8px;
}
.search-panel, .panel, .dashboard-stat, .metric-card, .explore-card,
.topic-card, .video-card, .thumbnail-card, .connect-panel {
  box-shadow: 0 5px 16px rgb(0 0 0 / 8%);
}
.nav-link, .button, .save-icon, .saved-remove { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
