:root {
  color-scheme: dark;
  --ink: #08090b;
  --paper: #f4f0e8;
  --muted: #9b9995;
  --gold: #e5a823;
  --line: #292a2d;
  --card: #131417;
}

/* Native support */
.support-main,.form-main,.ticket-main{max-width:1080px;margin:auto;padding:48px 28px 100px}.support-heading,.ticket-title{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:20px 0 36px}.support-heading h1,.ticket-title h1,.form-main h1{font-size:clamp(2.4rem,6vw,4.8rem);letter-spacing:-.055em;margin:.15em 0}.support-heading p,.ticket-title p{color:var(--muted)}.ticket-filters{display:grid;grid-template-columns:1fr 220px auto;gap:10px;margin-bottom:20px}input,select,textarea,.ticket-filters button,.ticket-controls button,.user-list button{font:inherit;color:var(--paper);background:#17131d;border:1px solid #342b3e;border-radius:8px;padding:12px}textarea{resize:vertical}.ticket-list{border-top:1px solid var(--line)}.ticket-row{display:grid;grid-template-columns:60px 1fr auto 12px;align-items:center;gap:18px;padding:21px 12px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.ticket-row:hover{background:#15111a}.ticket-row h2{margin:0 0 5px;font-size:1.05rem}.ticket-row p{margin:0;color:var(--muted);font-size:.84rem}.ticket-id{color:#777}.status{display:inline-block;border:1px solid #51445c;border-radius:999px;padding:6px 10px;font-size:.72rem;text-transform:uppercase;letter-spacing:.07em}.status-open{color:#bca0d0}.status-waiting_for_user{color:#e5c572}.status-closed{color:#888}.unread{width:8px;height:8px;border-radius:50%;background:#ae7bd7}.empty-state,.closed-note{padding:36px;border:1px dashed #3a3142;color:var(--muted)}.ticket-form,.reply-form{display:grid;gap:24px;max-width:760px}.ticket-form label,.reply-form label{display:grid;gap:8px;font-weight:600}.ticket-form fieldset{border:1px solid var(--line);padding:20px;display:grid;gap:10px}.choice{display:flex!important;align-items:center;gap:10px!important;font-weight:400!important}.choice input{width:auto}.field-help{font-weight:400;color:var(--muted);font-size:.82rem}.media-results{display:grid;background:#17131d}.media-results button{text-align:left;background:none;color:inherit;border:0;border-bottom:1px solid #302838;padding:13px;cursor:pointer}.media-results button:hover{background:#231b2b}.selection{color:#c9a5df}.original-report,.media-summary,.attachment-list,.reply-form,.ticket-controls{margin-top:28px;padding:24px;border:1px solid var(--line);background:#121015}.original-report p,.message p{white-space:pre-wrap;line-height:1.65}.media-summary{display:flex;gap:24px}.media-summary h2,.media-summary p{margin:0 0 5px}.thread{margin-top:40px}.message{padding:20px 0;border-top:1px solid var(--line)}.message header{display:flex;gap:12px;align-items:center}.message time{margin-left:auto;color:#777;font-size:.75rem}.message header span{color:#e5c572;font-size:.72rem}.internal-message{border-left:3px solid #c59b45;padding-left:18px;background:#1c1810}.deleted-file{color:#777}.ticket-controls{display:grid;gap:16px}.ticket-controls form{display:flex;gap:10px;align-items:end}.ticket-controls label{display:grid;gap:5px}.danger-button{color:#ec9a9a!important}.user-list{display:grid;gap:10px}.user-list article{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:16px;padding:18px;border:1px solid var(--line)}.user-list p{margin:5px 0 0;color:var(--muted)}.user-list form{display:flex;gap:6px}.back-link{color:#ae7bd7;text-decoration:none}@media(max-width:760px){.support-heading,.ticket-title{align-items:flex-start;flex-direction:column}.ticket-filters{grid-template-columns:1fr}.ticket-row{grid-template-columns:48px 1fr}.ticket-row .status{grid-column:2}.user-list article{grid-template-columns:1fr}.user-list form,.ticket-controls form{align-items:stretch;flex-direction:column}.support-main,.form-main,.ticket-main{padding:30px 18px 80px}}
* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, Avenir, "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
}
.wordmark {
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
}
.wordmark span {
  color: var(--gold);
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}
.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #c8c5bf;
  font-size: 0.85rem;
}
.profile img,
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #29221a;
  display: grid;
  place-items: center;
  color: var(--gold);
  text-transform: uppercase;
}
.profile form {
  margin: 0;
}
.profile button {
  border: 0;
  background: none;
  color: #777;
  cursor: pointer;
}
.dashboard {
  max-width: 1440px;
  margin: auto;
  padding: clamp(55px, 8vw, 120px) clamp(24px, 6vw, 96px);
}
.hero {
  max-width: 750px;
  margin-bottom: clamp(60px, 10vw, 130px);
}
.eyebrow,
.tag {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.hero h1,
.login-copy h1 {
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  margin: 0.24em 0;
  font-weight: 500;
}
.hero h1 em,
.login-copy h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--gold);
}
.hero > p:not(.eyebrow),
.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 540px;
  line-height: 1.65;
}
.primary,
.plex-button {
  display: inline-flex;
  align-items: center;
  gap: 35px;
  background: var(--gold);
  color: #111;
  padding: 18px 24px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 18px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.primary:hover,
.plex-button:hover {
  transform: translateY(-2px);
  background: #f1b62e;
}
.primary span {
  font-size: 1.4rem;
}
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service,
.tip {
  min-height: 260px;
  padding: 34px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s;
}
.service:hover {
  background: #17181b;
}
.service.featured {
  background: var(--paper);
  color: var(--ink);
}
.service-number {
  font-size: 0.7rem;
  color: #6e6c68;
  letter-spacing: 0.15em;
}
.service h2,
.tip h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 10px 0;
}
.service p,
.tip p {
  color: #84827e;
  max-width: 360px;
  line-height: 1.55;
}
.featured p {
  color: #5d5b57;
}
.arrow {
  font-size: 1.5rem;
}
.tip {
  background: #0d0e10;
}
.tip .tag {
  color: #777;
}
footer {
  padding: 35px clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #5f5e5b;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}
.login-body {
  overflow: hidden;
  background: #120c1d;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 16%, #8c62aa2e 0, transparent 30%),
    radial-gradient(circle at 82% 78%, #58377030 0, transparent 32%),
    linear-gradient(145deg, #1d102c 0%, #100b19 52%, #09070e 100%);
}
.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image: radial-gradient(#c7a9c3 0.8px, transparent 0.8px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.login-card {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: clamp(32px, 7vw, 52px);
  border: 1px solid #c7a9c31c;
  border-radius: 22px;
  background: #130d1fd9;
  box-shadow:
    0 30px 90px #0008,
    inset 0 1px #ffffff0a;
  backdrop-filter: blur(18px);
}
.login-logo {
  display: block;
  width: min(100%, 310px);
}
.login-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.plex-button {
  width: 100%;
  justify-content: center;
  margin: 0;
  gap: 12px;
  padding: 15px 22px;
  border: 1px solid #ae7bd7;
  border-radius: 10px;
  color: #f7f2fa;
  background: linear-gradient(135deg, #8c62aa, #583770);
  box-shadow: 0 12px 35px #58377055;
}
.plex-button svg {
  width: 22px;
  height: 22px;
  fill: #f7f2fa;
}
.plex-button:hover {
  background: linear-gradient(135deg, #ae7bd7, #745696);
}
.password-reset-link {
  margin-top: -18px;
  color: #9d96a3;
  font-size: 0.78rem;
  text-decoration: none;
}
.password-reset-link:hover {
  color: #d6c8dd;
  text-decoration: underline;
}
.error {
  border-left: 2px solid #e05454;
  background: #291719;
  color: #f0b8b8;
  padding: 13px 16px;
  width: 100%;
  border-radius: 8px;
}
@media (max-width: 800px) {
  .login-shell {
    padding: 16px;
  }
  .login-card {
    padding: 34px 24px;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .profile > span:not(.avatar) {
    display: none;
  }
  .hero h1 {
    font-size: 4rem;
  }
  footer {
    gap: 20px;
    flex-direction: column;
  }
  .service,
  .tip {
    min-height: 225px;
    padding: 25px;
  }
  .topbar {
    height: 72px;
  }
}

/* Member portal and documentation */
.portal-body {
  background: #0d0a12;
  color: #eeeaf0;
}
.portal-header {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid #29222f;
  background: #0d0a12f2;
  position: sticky;
  top: 0;
  z-index: 20;
}
.portal-header nav {
  display: flex;
  align-self: stretch;
  gap: 28px;
}
.portal-header nav a {
  display: grid;
  place-items: center;
  border-bottom: 2px solid transparent;
  color: #938c98;
  text-decoration: none;
  font-size: 0.84rem;
}
.portal-header nav a:hover,
.portal-header nav a.active {
  border-bottom-color: #ae7bd7;
  color: #eeeaf0;
}
.portal-header .profile {
  justify-self: end;
}
.portal-main {
  max-width: 1120px;
  margin: auto;
  padding: 64px clamp(20px, 5vw, 64px) 100px;
}
.apps-main {
  max-width: 1040px;
  margin: auto;
  padding: 58px clamp(20px, 5vw, 64px) 100px;
}
.apps-main .page-heading {
  margin-bottom: 48px;
}
.apps-main .page-heading .back-link {
  display: inline-block;
  margin-bottom: 24px;
}
.app-group + .app-group {
  margin-top: 38px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.download-grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.download-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid #302738;
  border-radius: 10px;
  background: #15111a;
  color: #eeeaf0;
  text-decoration: none;
}
.download-card:hover {
  border-color: #745696;
  background: #1a1420;
}
.platform-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2a1d35;
  color: #c7a9c3;
}
.platform-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.platform-icon.platform-logo svg {
  fill: currentColor;
  stroke: none;
}
.download-card h2 {
  margin: 0 0 5px;
  font-size: 0.95rem;
}
.download-card p {
  margin: 0;
  color: #918a96;
  font-size: 0.8rem;
}
.tv-card,
.alternative {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 12px;
  padding: 26px;
  border: 1px solid #302738;
  border-radius: 10px;
  background: #15111a;
}
.tv-card h2,
.alternative h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.tv-card p,
.alternative p {
  max-width: 700px;
  margin: 0;
  color: #a59eaa;
  line-height: 1.6;
}
.alternative {
  margin-top: 48px;
  border-color: #674a7d;
  background: #1b1422;
}
.alternative h2 {
  margin-top: 7px;
}
.alternative .primary-button {
  margin-top: 0;
}
.web-fallback {
  margin-top: 22px;
  color: #8f8993;
  text-align: center;
  font-size: 0.82rem;
}
.web-fallback a {
  color: #c7a9c3;
  text-decoration: none;
}
.page-heading {
  margin-bottom: 36px;
}
.page-heading h1 {
  margin: 0 0 7px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}
.page-heading p {
  margin: 0;
  color: #9c95a1;
}
.portal-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.account-main {
  max-width: 820px;
  margin: auto;
  padding: 58px clamp(20px, 5vw, 64px) 100px;
}
.account-main .page-heading .back-link {
  display: inline-block;
  margin-bottom: 24px;
}
.account-options {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}
.account-option {
  min-height: 142px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border: 1px solid #302738;
  border-radius: 11px;
  background: #15111a;
  color: #eeeaf0;
  text-decoration: none;
}
.account-option:hover {
  border-color: #745696;
  background: #1a1420;
}
.account-option.primary-account {
  border-color: #674a7d;
  background: #1b1422;
}
.account-option h2 {
  margin: 0 0 7px;
  font-size: 1.05rem;
}
.account-option p {
  max-width: 600px;
  margin: 0;
  color: #a59eaa;
  line-height: 1.55;
}
.security-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #121017;
  color: #918a96;
  font-size: 0.82rem;
  line-height: 1.6;
}
.help-main {
  max-width: 860px;
  margin: auto;
  padding: 58px clamp(20px, 5vw, 64px) 100px;
}
.help-main .page-heading .back-link {
  display: inline-block;
  margin-bottom: 24px;
}
.help-list {
  margin-top: 38px;
  border: 1px solid #302738;
  border-radius: 11px;
  overflow: hidden;
}
.help-list details {
  background: #15111a;
}
.help-list details + details {
  border-top: 1px solid #302738;
}
.help-list summary {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;
  padding: 21px 24px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.help-list summary::-webkit-details-marker {
  display: none;
}
.help-list summary::after {
  content: "+";
  grid-column: 3;
  color: #ae7bd7;
}
.help-list details[open] summary::after {
  content: "−";
}
.help-list summary span {
  color: #ae7bd7;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.help-list details > div {
  padding: 0 24px 24px 132px;
  color: #aaa2af;
  line-height: 1.65;
}
.help-list details p,
.help-list details ol {
  margin: 0;
}
.help-list details li + li {
  margin-top: 7px;
}
.help-list details a {
  color: #c7a9c3;
}
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid #302738;
  border-radius: 10px;
  background: #121017;
}
.contact-box h2 {
  margin: 0 0 7px;
  font-size: 1.05rem;
}
.contact-box p {
  margin: 0;
  color: #918a96;
  line-height: 1.55;
}
.portal-action {
  min-height: 132px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 24px;
  border: 1px solid #302738;
  border-radius: 12px;
  background: #15111a;
  color: #eeeaf0;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.portal-action:hover {
  border-color: #745696;
  background: #1a1420;
}
.portal-action.primary-action {
  border-color: #79569a;
  background: #24182e;
}
.portal-action.wide-action {
  grid-column: 1 / -1;
  min-height: 104px;
}
.action-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #ae7bd71c;
  color: #c7a9c3;
}
.portal-action h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.portal-action p {
  margin: 0;
  color: #918a96;
  font-size: 0.83rem;
}
.setup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 42px 0;
  padding: 30px;
  border-left: 3px solid #ae7bd7;
  border-radius: 0 10px 10px 0;
  background: #17111e;
}
.setup-copy h2,
.section-heading h2 {
  margin: 7px 0 8px;
  font-size: 1.35rem;
}
.setup-copy p {
  max-width: 720px;
  margin: 0;
  color: #a59eaa;
  line-height: 1.6;
}
.section-label {
  color: #ae7bd7;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.secondary-button,
.primary-button {
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 1px solid #624879;
  border-radius: 8px;
  color: #d9c8e2;
  text-decoration: none;
  font-size: 0.82rem;
}
.primary-button {
  display: inline-block;
  margin-top: 20px;
  background: #79569a;
  color: #fff;
  font-weight: 600;
}
.portal-section {
  padding-top: 10px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-heading a {
  color: #bca3c8;
  text-decoration: none;
  font-size: 0.8rem;
}
.short-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #302738;
  border-radius: 10px;
  background: #302738;
  list-style: none;
}
.short-steps li {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: #121017;
}
.short-steps li > span {
  color: #8c62aa;
  font-size: 0.75rem;
}
.short-steps strong {
  font-size: 0.9rem;
}
.short-steps p {
  margin: 6px 0 0;
  color: #8f8993;
  font-size: 0.8rem;
}

.docs-layout {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 70px;
  margin: auto;
  padding: 52px clamp(20px, 5vw, 64px) 110px;
}
.docs-nav {
  align-self: start;
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.docs-nav .section-label {
  margin-bottom: 8px;
}
.docs-nav a {
  color: #8f8993;
  text-decoration: none;
  font-size: 0.82rem;
}
.docs-nav a:hover {
  color: #d7cbdc;
}
.docs-title {
  padding-bottom: 48px;
  border-bottom: 1px solid #2b2431;
}
.docs-title > a {
  color: #8f8993;
  text-decoration: none;
  font-size: 0.8rem;
}
.docs-title h1 {
  margin: 30px 0 12px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
.docs-title p {
  max-width: 630px;
  margin: 0;
  color: #a59eaa;
  font-size: 1.05rem;
  line-height: 1.6;
}
.docs-section {
  padding: 52px 0;
  border-bottom: 1px solid #2b2431;
  scroll-margin-top: 92px;
}
.docs-section h2 {
  margin: 9px 0 22px;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}
.docs-section > p {
  color: #a59eaa;
  line-height: 1.7;
}
.important {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid #674a7d;
  border-radius: 9px;
  background: #1b1422;
}
.important > span {
  align-self: start;
  padding: 4px 7px;
  border-radius: 5px;
  background: #8c62aa;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.important p {
  margin: 0;
  color: #c3bac7;
  line-height: 1.65;
}
.docs-steps {
  padding: 0;
  list-style: none;
}
.docs-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #29222f;
}
.docs-steps li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a1d35;
  color: #c7a9c3;
  font-size: 0.78rem;
}
.docs-steps h3 {
  margin: 3px 0 7px;
  font-size: 1rem;
}
.docs-steps p {
  margin: 0;
  color: #a59eaa;
  line-height: 1.6;
}
.device-list {
  border: 1px solid #302738;
  border-radius: 9px;
  overflow: hidden;
}
.device-list > div {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 20px;
  padding: 17px 20px;
}
.device-list > div + div {
  border-top: 1px solid #302738;
}
.device-list strong {
  font-size: 0.85rem;
}
.device-list p {
  margin: 0;
  color: #9c95a1;
  font-size: 0.85rem;
  line-height: 1.5;
}
.note {
  padding: 14px 16px;
  border-radius: 7px;
  background: #15111a;
  font-size: 0.85rem;
}
.process {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.process span {
  padding: 11px 14px;
  border: 1px solid #493653;
  border-radius: 7px;
  background: #17111e;
  font-size: 0.8rem;
}
.process i {
  color: #745696;
  font-style: normal;
}
.troubleshooting {
  margin: 0;
}
.troubleshooting > div {
  padding: 18px 0;
  border-top: 1px solid #29222f;
}
.troubleshooting dt {
  margin-bottom: 7px;
  font-weight: 650;
}
.troubleshooting dd {
  margin: 0;
  color: #a59eaa;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .portal-header {
    grid-template-columns: 1fr auto;
  }
  .portal-header nav,
  .portal-header .profile > span:not(.avatar) {
    display: none;
  }
  .portal-actions,
  .short-steps,
  .download-grid,
  .download-grid.two {
    grid-template-columns: 1fr;
  }
  .portal-action.wide-action {
    grid-column: auto;
  }
  .setup-panel,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .setup-panel {
    display: flex;
  }
  .docs-layout {
    display: block;
    padding-top: 34px;
  }
  .docs-nav {
    display: none;
  }
  .important,
  .device-list > div {
    grid-template-columns: 1fr;
  }
  .process {
    align-items: stretch;
    flex-direction: column;
  }
  .process i {
    padding-left: 14px;
    transform: rotate(90deg);
    width: max-content;
  }
  .tv-card,
  .alternative {
    align-items: flex-start;
    flex-direction: column;
  }
  .help-list summary {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .help-list summary span {
    grid-column: 1;
  }
  .help-list summary::after {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .help-list details > div {
    padding: 0 20px 22px;
  }
  .contact-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Authenticated portal */
.app-body {
  background:
    radial-gradient(circle at 12% 4%, #58377024, transparent 30rem), #0b0910;
}
.topbar {
  height: 82px;
  background: #0b0910d9;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  width: 128px;
  height: 44px;
  display: grid;
  place-items: center;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.topbar nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 30px;
}
.topbar nav a {
  color: #8e8993;
  text-decoration: none;
  font-size: 0.82rem;
  height: 100%;
  display: grid;
  place-items: center;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover,
.topbar nav a.active {
  color: #f4f0f6;
  border-bottom-color: #ae7bd7;
}
.profile button {
  color: #8e8993;
}
.dashboard {
  max-width: 1280px;
  padding-top: clamp(54px, 8vw, 100px);
}
.welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(50px, 7vw, 84px);
}
.welcome h1,
.guide-hero h1 {
  max-width: 850px;
  margin: 14px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.welcome > div > p:last-child,
.guide-hero > p:last-of-type {
  color: #9d96a3;
  max-width: 610px;
  font-size: 1.08rem;
  line-height: 1.65;
}
.eyebrow,
.tag {
  color: #ae7bd7;
}
.primary {
  flex: 0 0 auto;
  border: 1px solid #ae7bd7;
  border-radius: 10px;
  background: linear-gradient(135deg, #8c62aa, #583770);
  color: #fff;
  box-shadow: 0 14px 40px #58377038;
}
.primary:hover {
  background: linear-gradient(135deg, #ae7bd7, #745696);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.action-card {
  min-height: 250px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 34px;
  border: 1px solid #c7a9c318;
  border-radius: 18px;
  color: #f4f0f6;
  text-decoration: none;
  background: linear-gradient(145deg, #17111fd9, #100d16d9);
  box-shadow: inset 0 1px #ffffff08;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.action-card:hover {
  transform: translateY(-3px);
  border-color: #ae7bd766;
  background: linear-gradient(145deg, #21162ddb, #120e19db);
}
.action-card.action-primary {
  background:
    radial-gradient(circle at 90% 10%, #c7a9c329, transparent 45%),
    linear-gradient(145deg, #583770, #25152f);
}
.action-card.compact {
  grid-column: 1 / -1;
  min-height: 170px;
}
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #c7a9c333;
  border-radius: 13px;
  background: #c7a9c310;
  color: #c7a9c3;
  font-size: 1.3rem;
}
.action-card h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}
.action-card p {
  max-width: 420px;
  margin: 0;
  color: #9d96a3;
  line-height: 1.55;
}
.action-card .arrow {
  color: #c7a9c3;
}
.watchlist-strip {
  margin-top: 18px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #c7a9c314;
  border-radius: 12px;
  color: #9d96a3;
  background: #100d15;
  font-size: 0.82rem;
}
.watchlist-strip > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.watchlist-strip a,
.guide a:not(.primary):not(.back-link) {
  color: #c7a9c3;
  text-decoration: none;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fd19e;
  box-shadow: 0 0 0 5px #8fd19e14;
}

/* Watchlist guide */
.guide {
  max-width: 1180px;
  margin: auto;
  padding: 48px clamp(24px, 6vw, 72px) 110px;
}
.back-link {
  color: #8e8993;
  text-decoration: none;
  font-size: 0.85rem;
}
.guide-hero {
  padding: clamp(62px, 9vw, 110px) 0 70px;
}
.guide-hero h1 {
  max-width: 920px;
}
.guide-visual {
  width: 100%;
  display: block;
  border: 1px solid #c7a9c31c;
  border-radius: 20px;
  box-shadow: 0 28px 80px #0007;
}
.friend-notice {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid #ae7bd752;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a1938, #15101d);
  box-shadow: 0 18px 54px #0004;
}
.friend-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #120e18;
  background: #c7a9c3;
  font-weight: 800;
}
.friend-notice h2 {
  margin: 9px 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.friend-notice p {
  max-width: 800px;
  margin: 0;
  color: #b4acb8;
  line-height: 1.65;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 48px 0;
  overflow: hidden;
  border: 1px solid #c7a9c318;
  border-radius: 18px;
  background: #c7a9c318;
}
.steps article {
  min-height: 330px;
  padding: 34px;
  background: #120e18;
}
.step-number {
  color: #745696;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}
.steps h2,
.flow-card h2,
.guide-notes h2 {
  margin: 42px 0 16px;
  font-size: 1.8rem;
  letter-spacing: -0.035em;
}
.steps p,
.flow-card p,
.guide-notes p,
.guide-notes li {
  color: #9d96a3;
  line-height: 1.7;
}
.steps strong {
  color: #d9cddf;
}
.flow-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
  padding: clamp(34px, 6vw, 62px);
  border: 1px solid #ae7bd73d;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 50%, #5837704a, transparent 58%), #120e18;
}
.flow-card h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.flow-card h2 span {
  color: #ae7bd7;
}
.guide-notes {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 48px;
}
.guide-notes > div,
.guide-notes aside {
  padding: 38px;
  border: 1px solid #c7a9c318;
  border-radius: 18px;
  background: #100d15;
}
.guide-notes h2 {
  margin-top: 0;
}
.guide-notes aside h2 {
  margin-top: 14px;
}
.guide-notes ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.guide-notes li + li {
  margin-top: 10px;
}

@media (max-width: 800px) {
  .topbar nav {
    display: none;
  }
  .brand {
    width: 104px;
  }
  .welcome {
    display: block;
  }
  .welcome .primary {
    margin-top: 22px;
  }
  .welcome h1,
  .guide-hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }
  .action-grid,
  .steps,
  .flow-card,
  .guide-notes {
    grid-template-columns: 1fr;
  }
  .action-card.compact {
    grid-column: auto;
  }
  .action-card {
    min-height: 220px;
    padding: 26px;
  }
  .steps {
    gap: 1px;
  }
  .steps article {
    min-height: 0;
  }
  .steps h2 {
    margin-top: 28px;
  }
  .flow-card {
    gap: 10px;
  }
  .friend-notice {
    grid-template-columns: 1fr;
  }
  .watchlist-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}
