.site-theme {
  --bg: #141312;
  --surface: #141312;
  --panel: #23211e;
  --panel-2: #2b2723;
  --ink: #fff6eb;
  --muted: #c3b9ad;
  --line: #464039;
  --divider: #464039;
  --brand: #ff9a49;
  --brand-hot: #ffbb7f;
  --brand2: #ffbb7f;
  --brand-soft: #3c2a1e;
  --field: #181715;
  --rim: #9c4e24;
  --focus: #ffbd80;
  color-scheme: dark;
  background-color: #141312;
  min-height: 100vh;
  color: #fff6eb;
  line-height: 1.55;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-theme :is(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.site-theme .site-header,
.portal-theme .topbar,
.admin-theme .topbar {
  border-color: var(--line);
  background: var(--bg);
}

.site-theme .site-home-strip {
  background: #1d1b19;
  border-color: var(--line);
}

.site-theme .site-home-button:before {
  content: none;
}

.site-theme .site-home-strip-inner {
  width: 92%;
  max-width: 1280px;
}

.site-theme .eyebrow {
  color: var(--brand-hot);
  font-size: .875rem;
}

.site-theme .button,
.portal-theme :is(.primary, .secondary),
.billing-theme :is(.action, .period),
.site-theme :is(.header-register, .header-user-button, .site-home-button, .start-login),
.site-theme .site-nav .nav-download,
.admin-support-theme :is(form button, .header-actions a, .header-actions button) {
  --button-top: #403933;
  --button-face: #2a2521;
  --button-edge: #5d4c3e;
  --button-base: #0b0a09;
  --button-ink: #fff6eb;
  border: 1px solid var(--button-edge);
  border-radius: .65rem;
  background: var(--button-face);
  background: linear-gradient(to bottom, var(--button-top), var(--button-face));
  color: var(--button-ink);
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 4px 0 var(--button-base), 0 9px 18px rgba(0,0,0,.27);
  font-weight: 800;
  transition: filter 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.site-theme .button.light,
.portal-theme .primary,
.billing-theme .action,
.admin-theme .button-primary,
.admin-support-theme form button {
  --button-top: #ffbd77;
  --button-face: #f18432;
  --button-edge: #ffc492;
  --button-base: var(--rim);
  --button-ink: #21140b;
  background: #f18432;
  background: linear-gradient(to bottom, var(--button-top), var(--button-face));
  color: #21140b;
}

.site-theme .button.outline,
.site-theme .button.light:hover,
.portal-theme .primary:hover,
.billing-theme .action:is(:hover, :focus-visible) {
  background: linear-gradient(to bottom, var(--button-top), var(--button-face));
  color: var(--button-ink);
}

.admin-theme .button-danger {
  --button-ink: #ffa49c;
  --button-edge: #8d4e47;
}

.site-theme .site-nav .nav-download,
.site-theme .site-home-button,
.site-theme .header-register,
.site-theme .start-login {
  color: #ffbc84;
}

.site-theme :is(.button, .primary, .secondary, .action, .period, .header-register, .header-user-button, .site-home-button, .start-login, .nav-download):not(:disabled):hover {
  filter: brightness(1.09);
}

.site-theme :is(.button, .primary, .secondary, .action, .period, .header-register, .header-user-button, .site-home-button, .start-login, .nav-download):not(:disabled):active {
  transform: translateY(3px);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 1px 0 var(--button-base), 0 3px 6px rgba(0,0,0,.24);
}

.site-theme :is(.button, .primary, .secondary, .action, .period):disabled {
  box-shadow: none;
}

.site-theme .button,
.portal-theme :is(.primary, .secondary),
.billing-theme .action {
  min-height: 3.25rem;
}

.marketing-home .hero {
  background: radial-gradient(ellipse at 82% 46%, #35251c, transparent 54%), #141312;
}

.marketing-home .hero-grid {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.marketing-home .hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.marketing-home .device-guide {
  flex: 0 1 26rem;
  width: 100%;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #594938;
  border-radius: 1rem;
  background: linear-gradient(155deg, #302820, #211e1b 76%);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 22px 52px rgba(0,0,0,.31);
}

.marketing-home .device-guide h2 {
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -.025em;
}

.device-guide a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .95rem;
  margin-top: .65rem;
  border: 1px solid #5d4a3a;
  border-radius: .65rem;
  background: linear-gradient(160deg, #3a3028, #2a241f);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 2px 0 #17130f;
}

.device-guide a:hover {
  border-color: var(--brand);
}

.device-guide a:active {
  transform: translateY(2px);
  box-shadow: none;
}

.device-guide strong,
.device-guide small {
  display: block;
}

.device-guide small {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .875rem;
}

.device-icon {
  position: relative;
  flex: none;
  display: block;
  border: 2px solid var(--brand-hot);
  color: var(--brand-hot);
}

.device-phone {
  width: 1.2rem;
  height: 1.95rem;
  margin: 0 .4rem;
  border-radius: .24rem;
}

.device-phone:after,
.device-tv:after {
  content: "";
  position: absolute;
  left: 25%;
  width: 50%;
  height: 2px;
  background: currentColor;
}

.device-phone:after {
  bottom: .15rem;
}

.device-tv {
  width: 2rem;
  height: 1.35rem;
  margin-bottom: .24rem;
  border-radius: .18rem;
}

.device-tv:after {
  bottom: -.38rem;
}

.site-theme .band.white,
.marketing .download-section:nth-child(even),
.site-theme .start-points {
  --panel: #2a2622;
  --muted: #cfc3b6;
  --line: #493f35;
  background: #211e1b;
  color: #fff6eb;
}

.site-theme .band.black,
.site-theme .download-main,
.site-theme .partners-main {
  background-color: var(--bg);
}

.site-theme .band.white .eyebrow,
.site-theme .band.white .faq-list summary:after,
.marketing .download-section:nth-child(even) :is(.eyebrow, .install-card b, .faq-list summary:after) {
  color: var(--brand-hot);
}

.site-theme .legal-main,
.portal-theme,
.billing-theme,
.admin-support-theme,
.site-theme .start-hero {
  background: radial-gradient(ellipse at 50% 0, #32251c, #141312 55%);
}

.site-theme .start-points article,
.site-theme .start-device,
.site-theme .legal-main article,
.portal-theme :is(.card, dialog),
.billing-theme :is(.notice, .plan, .checkout, .login-panel),
.admin-support-theme .login-card {
  border-color: var(--line);
  border-radius: 1rem;
  background: linear-gradient(155deg, #2a2622, #211e1b);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 14px 32px rgba(0,0,0,.2);
}

.portal-theme:before,
.billing-theme:before,
.billing-theme .plan:after {
  content: none;
}

.portal-theme .tabs {
  background: var(--field);
}

.portal-theme .site-home-strip-inner {
  max-width: 1160px;
}

.portal-theme .tab.active {
  background: #433328;
  color: var(--brand-hot);
}

.portal-theme :is(input, textarea, select),
.billing-theme .login-panel input,
.admin-theme :is(input, textarea, select),
.admin-support-theme :is(input, textarea, select) {
  background-color: var(--field);
  border-color: #615247;
  color: #fff6eb;
}

.portal-theme label,
.billing-theme .login-panel label,
.admin-theme .login-panel label {
  color: #ded2c5;
  font-size: .875rem;
}

.site-theme .start-points p,
.site-theme .start-lead,
.site-theme .start-note,
.site-theme .legal-main :is(p, li) {
  color: var(--muted);
}

.site-theme .start-points h2 {
  margin-top: .8rem;
}

.admin-theme {
  --black: #141312;
  --white: #fff6eb;
  --ink: #191715;
  --line-strong: #625247;
  min-width: 0;
}

.admin-theme .login-mark,
.admin-theme .metric-main {
  background: #f3aa65;
  color: #21140b;
}

.admin-theme .login-mark {
  background: linear-gradient(145deg, #ffbd77, #c36b34);
}

.admin-theme .nav-item.is-active {
  border-left-color: var(--brand);
  color: var(--brand-hot);
}

.admin-redirect {
  padding: 1.5rem;
}

.admin-redirect a {
  color: var(--brand-hot);
}

@media (max-width: 790px) {
  .marketing-home .hero-grid {
    display: block;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .marketing-home .device-guide {
    margin-top: 2rem;
  }
  .site-theme .start-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-theme .login-mark {
    padding: 0 1.2rem;
    border-radius: 0 0 .8rem .8rem;
  }
  .portal-theme .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .android-tv-browser .marketing-home .device-guide {
    flex-basis: 32vw;
    padding: 1.7vw;
  }
  .android-tv-browser .marketing-home .device-guide h2 {
    font-size: 2vw;
  }
  .android-tv-browser .device-guide strong {
    font-size: 1.55vw;
  }
  .android-tv-browser .device-guide small {
    font-size: 1.2vw;
  }
  .android-tv-browser .site-theme .button,
  .android-tv-browser .portal-theme :is(.primary, .secondary),
  .android-tv-browser .billing-theme .action {
    min-height: 4vw;
    font-size: 1.4vw;
  }
}

@media (max-width: 380px) {
  .site-theme .legal-main article {
    padding: 1.25rem;
  }
  .site-theme .legal-main h1,
  .admin-support-theme h1 {
    font-size: 2rem;
  }
  .admin-support-theme .login-card {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-theme :is(a, button, summary) {
    transition: none;
  }
}
