:root {
  --rr-radius: 0;
  --rr-page: min(1320px, calc(100vw - 40px));
  --rr-cream: #f0e5d0;
  --rr-orange: #e86135;
  --rr-line: rgba(240, 229, 208, .12);
  --rr-shadow: 0 28px 90px rgba(0, 0, 0, .36);
}

body {
  min-width: 320px;
  overflow-x: clip;
  color: var(--rr-cream);
  background:
    radial-gradient(circle at 12% 18%, rgba(51, 92, 62, .13), transparent 28%),
    radial-gradient(circle at 88% 52%, rgba(232, 97, 53, .08), transparent 28%),
    #090c09;
  font-family: 'Anybody', Arial, sans-serif;
  font-variation-settings: 'wdth' 96;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(240, 229, 208, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 229, 208, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  content: '';
  pointer-events: none;
}

.rr-grid { display: none; }

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  min-height: 72px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border: 1px solid var(--rr-line);
  border-width: 0 0 1px;
  background: rgba(9, 13, 10, .9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}

.brand img { width: 132px; height: auto; }
.brand strong { border-color: var(--rr-line); color: var(--rr-cream); }
.brand small { color: rgba(240, 229, 208, .5); }
.ecosystem-nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.ecosystem-nav a { display: inline-flex; align-items: center; padding: 0 17px; color: rgba(240, 229, 208, .58); font-size: 9px; font-weight: 820; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.ecosystem-nav a:hover { color: var(--rr-cream); box-shadow: inset 0 -2px var(--rr-orange); }
.back-link { margin-left: 16px; padding: 11px 15px; border: 1px solid rgba(232,97,53,.45); border-radius: 0; color: rgba(240, 229, 208, .68); }
.back-link:hover { color: var(--rr-cream); background: rgba(240, 229, 208, .07); }

.shell { width: min(760px, calc(100% - 40px)); padding: 34px 0 78px; }
body.dashboard-mode .shell { width: var(--rr-page); }

.panel {
  overflow: hidden;
  border-color: var(--rr-line);
  border-radius: var(--rr-radius);
  clip-path: none;
  background-color: rgba(12, 16, 13, .93);
  background-image:
    linear-gradient(rgba(240, 229, 208, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 229, 208, .028) 1px, transparent 1px);
  background-size: 38px 38px;
  box-shadow: var(--rr-shadow);
}

.panel::before { width: 22%; height: 3px; background: var(--rr-orange); }
.panel-top { padding: 18px 28px; border-color: var(--rr-line); }
#authView, #approvalView { padding: 38px 44px 44px; }
#dashboardView { padding: 34px 38px 44px; }

.auth-heading h1,
.dashboard-topline h1,
.section-heading h2,
.section-intro h2,
.dashboard-heading h2 { color: var(--rr-cream); font-variation-settings: 'wdth' 88; }
.auth-heading h1 { font-size: clamp(38px, 6vw, 58px); letter-spacing: -.055em; }

.tabs { overflow: hidden; border-color: var(--rr-line); border-radius: 0; }
.tabs button { border-radius: 0; }
.tabs button.active { color: #10140f; background: var(--rr-cream); }

.form-stack input,
.compact-form input {
  min-height: 50px;
  border-color: var(--rr-line);
  border-radius: 0;
  background: rgba(4, 8, 5, .82);
}

.primary,
.outline,
.text-button { border-radius: 0; }
.primary { color: #120c08; background: var(--rr-orange); }
.outline { border-color: var(--rr-line); }
.text-button { padding-inline: 12px; }
.message { border: 1px solid rgba(232,97,53,.35); border-left-width: 3px; border-radius: 14px; }

.dashboard-topline { gap: 28px; }
.profile-actions { display: flex; gap: 8px; }
.account-identity,
.account-nav,
.account-summary article,
.product,
.settings-card,
.sessions-card,
.session,
.approval-account { border-radius: 0; }
.account-identity { border-color: var(--rr-line); background: rgba(240,229,208,.025); }
.avatar { border-radius: 0; }
.account-nav { overflow: hidden; border: 1px solid var(--rr-line); background: rgba(4,8,5,.55); }
.account-nav button { border-color: var(--rr-line); }
.account-nav button.active { color: #10140f; background: var(--rr-cream); }
.account-summary article,
.product,
.settings-card,
.sessions-card { border-color: var(--rr-line); background: rgba(6, 10, 7, .72); }
.product::after { display: none; }
.product.focus-product { box-shadow: 0 0 0 1px rgba(232,97,53,.16), 0 20px 50px rgba(0,0,0,.24); }
.product-resources span,
.product-status strong { border-radius: 0; }
.session button { border-radius: 0; }

footer {
  width: var(--rr-page);
  margin: 0 auto 24px;
  padding: 22px 4px;
  border-color: var(--rr-line);
}

@media (max-width: 760px) {
  :root { --rr-page: calc(100vw - 20px); --rr-radius: 0; }
  .site-header { top: 0; height: 62px; min-height: 62px; margin-top: 0; padding: 0 15px; }
  .brand img { width: 106px; }
  .brand strong { display: none; }
  .ecosystem-nav { display: none; }
  .back-link { font-size: 9px; }
  .shell, body.dashboard-mode .shell { width: var(--rr-page); padding-top: 16px; }
  #authView, #approvalView, #dashboardView { padding: 28px 20px 32px; }
  .panel-top { padding: 15px 20px; }
  .dashboard-topline { align-items: flex-start; }
  .profile-actions { flex-direction: column; }
  footer { align-items: flex-start; gap: 16px; }
}

/* Account shell v21 — exact public-site header, width and surface language. */
body {
  padding-top: 0;
}

.identity-header-shell {
  width: 100%;
  padding-top: 24px;
}

.identity-header-shell > .rrt-header {
  width: var(--rrt-page);
  margin-bottom: 26px;
}

.identity-header-shell .rrt-brand img {
  width: 100%;
  height: auto;
}

.identity-account-link[aria-current='page'] {
  color: #11150f;
  border-color: var(--rrt-cream);
  background: var(--rrt-cream);
}

.identity-account-link[aria-current='page']:hover {
  color: #11150f;
  background: #fff8e9;
}

.shell,
body.dashboard-mode .shell,
body.dashboard-mode footer,
footer {
  width: var(--rrt-page);
}

body.dashboard-mode .shell {
  padding-top: 0;
}

body.dashboard-mode .panel,
.account-hero,
.account-nav,
.account-section,
.account-summary,
.software-manager,
.products,
.product,
.product-detail,
.settings-card,
.sessions-card,
.billing-provider-note,
.billing-product,
footer {
  border-color: var(--rrt-line);
  border-radius: 0;
}

/* Account center v25 — compact controls, explicit mobile layout and no clipped product data. */
.product-detail-head > .product-open {
  min-width: 190px;
  min-height: 48px;
}

.resource-revoke {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 15px !important;
  border: 1px solid color-mix(in srgb, var(--product-accent) 64%, transparent) !important;
  color: var(--product-accent) !important;
  background: color-mix(in srgb, var(--product-accent) 7%, transparent) !important;
  font-size: 12px !important;
  font-weight: 880 !important;
  letter-spacing: .055em !important;
  text-decoration: none !important;
}

.resource-revoke:hover {
  border-color: var(--product-accent) !important;
  color: #0b0d0a !important;
  background: var(--product-accent) !important;
}

@media (max-width: 760px) {
  .identity-header-shell {
    padding-top: 10px;
  }

  .identity-header-shell > .rrt-header {
    width: calc(100vw - 20px);
    margin-bottom: 10px;
  }

  .identity-header-shell > .rrt-header > .identity-account-link {
    display: none;
  }

  .shell,
  body.dashboard-mode .shell,
  body.dashboard-mode footer,
  footer {
    width: calc(100vw - 20px);
  }

  body.dashboard-mode .account-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  body.dashboard-mode .account-nav button {
    min-width: 0;
    min-height: 58px;
    justify-content: center;
    padding: 8px 7px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  #subscriptionSection .products {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    overflow: visible;
    padding: 12px;
  }

  #subscriptionSection .products-label { grid-column: 1; }

  #subscriptionSection .product {
    width: 100%;
    min-width: 0;
    min-height: 84px;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 10px 12px;
  }

  #subscriptionSection .product-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
  }

  #subscriptionSection .product-selector-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  #subscriptionSection .product-selector-copy strong {
    overflow: visible;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

  #subscriptionSection .product-selector-plan {
    grid-column: 2;
    grid-row: 2;
    display: block;
    min-width: 0;
    margin: 0;
    text-align: left;
  }

  #subscriptionSection .product-selector-plan strong {
    overflow: visible;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

  .product-detail-head > .product-open {
    min-height: 46px;
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  .product-detail-metrics {
    grid-template-columns: 1fr;
  }

  .product-detail-metrics > div,
  .product-detail-metrics > div:first-child {
    min-height: 62px;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rr-line);
  }

  .product-detail-metrics > div:last-child { border-bottom: 0; }

  body.dashboard-mode .product-detail-metrics strong {
    overflow: visible;
    font-size: 14px;
    text-overflow: clip;
    white-space: normal;
  }
}

/* Final mobile account layout: product switching must never create a horizontal carousel. */
@media (max-width: 820px) {
  #subscriptionSection .products {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 12px !important;
  }

  #subscriptionSection .products-label {
    grid-column: 1 !important;
  }

  #subscriptionSection .product {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 82px !important;
    grid-template-columns: 22px 40px minmax(0, 1fr) 14px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--rr-line) !important;
  }
}

/* Final mobile density lock: product selectors must never become a hidden rail. */
@media (max-width: 760px) {
  .account-nav { grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; }
  .account-nav button { min-height: 48px; justify-content: flex-start; padding: 0 15px; border-right: 0 !important; border-bottom: 1px solid var(--rr-line) !important; }
  .account-nav button:last-child { border-bottom: 0 !important; }
  .software-manager-layout { display: block; }
  .products { display: grid; grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; }
  .product { width: 100%; min-height: 86px; grid-template-columns: 22px 40px minmax(0, 1fr) 14px; border-right: 0; border-bottom: 1px solid var(--rr-line); }
  .product.focus-product { box-shadow: inset 3px 0 var(--product-accent); }
  .product-selector-copy small { overflow: visible; text-overflow: clip; white-space: normal; }
}

@media (max-width: 760px) {
  .account-nav { grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; }
  .account-nav button { min-height: 48px; justify-content: flex-start; padding: 0 15px; border-right: 0 !important; border-bottom: 1px solid var(--rr-line) !important; }
  .account-nav button:last-child { border-bottom: 0 !important; }
  .products { display: grid; grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; }
  .product { min-height: 86px; border-right: 0; border-bottom: 1px solid var(--rr-line); }
  .product.focus-product { box-shadow: inset 3px 0 var(--product-accent); }
  .product-selector-copy small { overflow: visible; text-overflow: clip; white-space: normal; }
}

/* Product access v24 — deliberate destructive action instead of a native button. */
.product-detail .resource-revoke {
  position: relative;
  min-width: 236px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  margin-top: 14px;
  padding: 0 13px;
  border: 1px solid rgba(220, 92, 51, .72);
  border-left-width: 3px;
  color: var(--rr-orange);
  background:
    linear-gradient(90deg, rgba(220, 92, 51, .12), transparent 65%),
    rgba(3, 7, 4, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .075em;
  line-height: 1;
  text-align: left;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-detail .resource-revoke::before {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  content: '\00d7';
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.product-detail .resource-revoke::after {
  margin-left: auto;
  content: '\2192';
  font-size: 14px;
  line-height: 1;
}

.product-detail .resource-revoke:hover {
  border-color: var(--rr-orange);
  color: #0a0d09;
  background: var(--rr-orange);
  box-shadow: 0 10px 30px rgba(220, 92, 51, .18);
  transform: translateY(-1px);
}

.product-detail .resource-revoke:active {
  box-shadow: none;
  transform: translateY(0);
}

.product-detail .resource-revoke:focus-visible {
  outline: 2px solid var(--rr-cream);
  outline-offset: 3px;
}

.product-detail .resource-revoke:disabled {
  opacity: .5;
  cursor: wait;
  transform: none;
}


/* Final HOME parity for the account center. */
body { background: #090c09; }
body::before {
  display: none;
  content: none;
}
.site-header {
  min-height: 70px;
  height: 70px;
  padding: 0 24px;
  border-radius: 24px;
  background-color: rgba(9,13,10,.88);
}
.brand strong { display: none; }
.ecosystem-nav { gap: 3px; padding: 0; border: 0; background: transparent; }
.ecosystem-nav a { min-height: 0; padding: 10px 12px; color: rgba(240,229,208,.54); font-size: 11px; font-weight: 650; letter-spacing: 0; border-radius: 999px; }
.ecosystem-nav a:hover { color: var(--rr-cream); background: rgba(240,229,208,.07); }
.back-link { min-height: 46px; padding: 0 19px; }
.panel {
  background-color: rgba(12,16,13,.88);
  background-image:
    linear-gradient(rgba(240,229,208,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(240,229,208,.035) 1px,transparent 1px);
  background-size:38px 38px;
  box-shadow:0 28px 90px rgba(0,0,0,.42);
}
.panel::before { display: none; }
.auth-heading { text-align: center; }
.auth-heading h1 { font-size: clamp(38px,3.45vw,50px); line-height:.98; letter-spacing:-.04em; }
.auth-heading p { max-width: 520px; margin-right:auto; margin-left:auto; font-size:15px; line-height:1.62; }

.rr-account-glow-card { --rr-glow-x:50%; --rr-glow-y:50%; position:relative; isolation:isolate; }
.rr-account-border-glow {
  position:absolute; inset:0; z-index:30; padding:1px; overflow:hidden; border-radius:inherit; opacity:0;
  background:radial-gradient(420px circle at var(--rr-glow-x) var(--rr-glow-y), rgba(255,137,84,.98) 0, rgba(232,97,53,.72) 28%, rgba(232,97,53,.28) 58%, transparent 100%);
  filter:drop-shadow(0 0 12px rgba(232,97,53,.28)); pointer-events:none; transition:opacity .42s cubic-bezier(.16,1,.3,1);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite:exclude;
}
.rr-account-glow-card[data-glow-active="true"] > .rr-account-border-glow { opacity:1; transition-duration:.24s; }

@media (max-width:1120px) {
  .ecosystem-nav a { padding-inline:8px; font-size:9px; }
  .back-link { min-height:42px; padding-inline:14px; }
}
@media (max-width:760px) {
  .site-header { min-height:62px; height:62px; padding:8px 12px; border-radius:19px; }
  .ecosystem-nav { display:none; }
}

/* Current HOME ecosystem shell. */
:root { --rr-radius: 24px; --rr-soft-radius: 18px; }

.site-header {
  top: 12px;
  width: var(--rr-page);
  height: 68px;
  min-height: 68px;
  margin: 12px auto 0;
  padding: 8px 14px 8px 20px;
  border-width: 1px;
  border-radius: 999px;
  background: rgba(12,16,13,.82);
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
  backdrop-filter: blur(22px) saturate(1.15);
}
.brand img { width: 112px; }
.ecosystem-nav { height: auto; gap: 3px; padding: 4px; border: 1px solid rgba(240,229,208,.07); border-radius: 999px; background: rgba(240,229,208,.025); }
.ecosystem-nav a { min-height: 36px; padding: 0 13px; border-radius: 999px; }
.ecosystem-nav a:hover { color: var(--rr-cream); background: rgba(232,97,53,.11); box-shadow: none; }
.back-link { min-height: 42px; display: inline-flex; align-items: center; margin-left: 10px; padding: 0 17px; border-color: var(--rr-cream); border-radius: 999px; color: #0b0d0a; background: var(--rr-cream); }

.shell { padding-top: 26px; }
.panel { border-radius: var(--rr-radius); background-color: rgba(12,16,13,.84); box-shadow: 0 28px 90px rgba(0,0,0,.32); }
.panel::before { width: 16%; border-radius: 0 0 999px 0; }
.tabs { padding: 4px; border-radius: 999px; background: rgba(4,8,5,.66); }
.tabs button { border: 0; border-radius: 999px; }
.form-stack input,
.compact-form input { border-radius: 14px; }
.primary,
.outline,
.text-button { border-radius: 999px; }

.account-identity,
.account-nav,
.account-summary article,
.product,
.settings-card,
.sessions-card,
.session,
.approval-account { border-radius: var(--rr-soft-radius); }
.avatar { border-radius: 18px; }
.account-nav { padding: 5px; }
.account-nav button { border: 0; border-radius: 14px; }
.account-summary article,
.product,
.settings-card,
.sessions-card { box-shadow: 0 18px 52px rgba(0,0,0,.14); }
.product-resources span,
.product-status strong,
.session button { border-radius: 999px; }

footer { padding: 22px 24px; border: 1px solid var(--rr-line); border-radius: var(--rr-radius); background: rgba(13,18,14,.68); }

/* Shared Rage Raptors backdrop. */
body {
  background-color: #090c09;
  background-image: url('/back.png?v=1');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.panel { background-color: rgba(4, 8, 5, .36); }

@media (max-width: 760px) {
  :root { --rr-page: calc(100vw - 20px); --rr-radius: 19px; --rr-soft-radius: 15px; }
  body { background-attachment: scroll; }
  .site-header { top: 8px; width: var(--rr-page); height: 62px; min-height: 62px; margin-top: 8px; padding: 8px 12px; border-radius: 22px; }
  .back-link { min-height: 38px; margin-left: auto; padding: 0 13px; }
  .shell, body.dashboard-mode .shell { padding-top: 18px; }
  footer { padding: 20px; }
}

/* Three-part Rage Raptors account center: Subscription / Account & Security / Billing. */
body.dashboard-mode .panel { min-height: calc(100vh - 180px); }
.account-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; }
.account-nav button { min-height: 64px; font-size: 11px; letter-spacing: .075em; }
.account-nav button span { color: var(--rr-orange); }
.account-nav button.active { color: #130d09; background: var(--rr-cream); }
.account-section { min-height: 420px; }
.account-security-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.billing-provider-note {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(320px, 1.25fr);
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--rr-line);
  border-left: 3px solid var(--rr-orange);
  background: rgba(240,229,208,.025);
}
.billing-provider-note span,
.billing-product-copy > span,
.billing-product-provider span {
  display: block;
  color: var(--rr-orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.billing-provider-note strong { display: block; margin-top: 7px; font-size: 14px; letter-spacing: .04em; }
.billing-provider-note p { margin: 0; color: rgba(240,229,208,.58); font-size: 12px; line-height: 1.55; }
.billing-products { display: grid; gap: 10px; margin-top: 14px; }
.billing-product {
  display: grid;
  grid-template-columns: 42px minmax(250px, 1fr) minmax(170px, .45fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 17px 18px;
  border: 1px solid var(--rr-line);
  background: rgba(6,10,7,.72);
}
.billing-product-index { color: var(--rr-orange); font-size: 11px; font-weight: 900; }
.billing-product-copy h3 { margin: 6px 0 4px; color: var(--rr-cream); font-size: 21px; line-height: 1; text-transform: uppercase; }
.billing-product-copy p { margin: 0; color: rgba(240,229,208,.48); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.billing-product-provider { padding-left: 18px; border-left: 1px solid var(--rr-line); }
.billing-product-provider strong { display: block; margin-top: 7px; color: rgba(240,229,208,.78); font-size: 11px; letter-spacing: .05em; }
.billing-product-action .outline { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 190px; min-height: 44px; padding: 0 17px; text-decoration: none; }
.billing-product-action .outline span { color: var(--rr-orange); }
.billing-footnote { margin: 16px 2px 0; color: rgba(240,229,208,.42); font-size: 10px; line-height: 1.5; }

@media (max-width: 980px) {
  .account-security-grid { grid-template-columns: 1fr; }
  .billing-product { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .billing-product-provider { grid-column: 2; padding: 0; border: 0; }
  .billing-product-action { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 760px) {
  .account-nav { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; }
  .account-nav button { min-height: 58px; padding: 0 15px; justify-content: flex-start; white-space: nowrap; scroll-snap-align: start; }
  .billing-provider-note { grid-template-columns: 1fr; gap: 12px; }
  .billing-product { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .billing-product-provider { grid-column: 2; }
  .billing-product-action { grid-column: 1 / -1; grid-row: auto; }
  .billing-product-action .outline { width: 100%; }
}

/* Sharp HOME geometry for the unified account centre. */
:root { --rr-radius: 0; --rr-soft-radius: 0; }
.site-header,
.ecosystem-nav,
.ecosystem-nav a,
.back-link,
.panel,
.tabs,
.tabs button,
.form-stack input,
.compact-form input,
.primary,
.outline,
.text-button,
.message,
.account-identity,
.account-nav,
.account-nav button,
.account-summary article,
.product,
.settings-card,
.sessions-card,
.session,
.approval-account,
.avatar,
.product-resources span,
.product-status strong,
.session button,
footer,
.rr-account-border-glow { border-radius: 0 !important; }
.panel::before { border-radius: 0 !important; }

/* Local sitewide background reference. */
html { background: #050806; }
body {
  background-color: #050806 !important;
  background-image: url('/back.png?v=1') !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* Product-first account workspace. Each application keeps independent access and billing controls. */
body.dashboard-mode .shell { width: min(1380px, calc(100% - 40px)); }
#dashboardView { padding: 30px 32px 38px; }
.dashboard-topline { padding-bottom: 22px; }
.dashboard-topline h1 { font-size: clamp(36px, 4.2vw, 50px); }
.account-identity { margin-bottom: 12px; padding: 13px 16px; }
.avatar { width: 52px; height: 52px; }
.account-nav { margin-bottom: 22px; }
.account-nav button { min-height: 56px; }
.account-section { min-height: 0; }
.dashboard-heading h2 { font-size: 29px; }
.account-summary { gap: 0; margin-top: 18px; border: 1px solid var(--rr-line); }
.account-summary .summary-item { min-height: 68px; border: 0; border-right: 1px solid var(--rr-line); padding: 13px 16px; background: rgba(4,8,5,.38); }
.account-summary .summary-item:last-child { border-right: 0; }
.summary-item span { margin-bottom: 5px; }
.summary-item strong { font-size: 20px; }

.software-manager { margin-top: 12px; border: 1px solid var(--rr-line); background: rgba(4,8,5,.54); }
.software-manager-bar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 15px; border-bottom: 1px solid var(--rr-line); }
.software-manager-bar span { color: var(--rr-orange); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.software-manager-bar small { color: rgba(240,229,208,.38); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.software-manager-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 430px; }
.products { display: block; min-width: 0; margin: 0; border-right: 1px solid var(--rr-line); background: rgba(3,7,4,.34); }
.product {
  width: 100%; min-height: 112px; display: grid; grid-template-columns: 26px 46px minmax(0,1fr) auto 16px; align-items: center; gap: 11px;
  padding: 15px 14px; overflow: hidden; border: 0; border-bottom: 1px solid var(--rr-line); color: var(--rr-cream); text-align: left; box-shadow: none; cursor: pointer;
}
.product:last-child { border-bottom: 0; }
.product:hover { background: color-mix(in srgb, var(--product-accent) 7%, rgba(240,229,208,.025)); }
.product.focus-product { border-color: var(--rr-line); box-shadow: inset 3px 0 var(--product-accent); background: color-mix(in srgb, var(--product-accent) 10%, rgba(240,229,208,.025)); }
.product-index { align-self: start; padding-top: 3px; color: var(--product-accent); }
.product-icon { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.32)); }
.product-selector-copy { min-width: 0; }
.product-selector-copy strong { display: block; color: var(--rr-cream); font-size: 14px; line-height: 1.06; letter-spacing: -.02em; text-transform: uppercase; }
.product-selector-copy small { display: block; margin-top: 6px; overflow: hidden; color: rgba(240,229,208,.42); font-size: 8px; font-weight: 820; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.product-selector-plan { min-width: 72px; text-align: right; }
.product-selector-plan small { display: block; color: rgba(240,229,208,.34); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.product-selector-plan strong { display: block; margin-top: 5px; color: var(--product-accent); font-size: 9px; line-height: 1.2; text-transform: uppercase; }
.product-selector-arrow { color: var(--product-accent); font-size: 14px; transform: translateX(-2px); transition: transform .18s ease; }
.product:hover .product-selector-arrow,
.product.focus-product .product-selector-arrow { transform: translateX(2px); }

.product-detail { --product-accent: var(--rr-orange); min-width: 0; padding: 25px 27px 23px; background: linear-gradient(135deg, color-mix(in srgb, var(--product-accent) 7%, transparent), transparent 40%); }
.product-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--rr-line); }
.product-detail-brand { display: flex; align-items: center; min-width: 0; gap: 17px; }
.product-detail-brand img { width: 68px; height: 68px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.38)); }
.product-detail-brand span,
.product-detail-plan > span,
.product-detail-access > span,
.product-detail-section-title > span { display: block; color: var(--product-accent); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.product-detail-brand h3 { margin: 8px 0 4px; color: var(--rr-cream); font-size: clamp(24px, 2.4vw, 34px); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.product-detail-brand p { margin: 0; color: rgba(240,229,208,.48); font-size: 10px; font-weight: 760; letter-spacing: .04em; }
.product-detail-plan { min-width: 150px; padding-left: 18px; border-left: 1px solid var(--rr-line); text-align: right; }
.product-detail-plan strong { display: block; margin-top: 8px; color: var(--rr-cream); font-size: 18px; line-height: 1; text-transform: uppercase; }
.product-detail-plan small { display: block; margin-top: 8px; color: var(--product-accent); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.product-detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-bottom: 1px solid var(--rr-line); }
.product-detail-metrics > div { min-height: 70px; padding: 15px 14px; border-right: 1px solid var(--rr-line); }
.product-detail-metrics > div:first-child { padding-left: 0; }
.product-detail-metrics > div:last-child { border-right: 0; }
.product-detail-metrics span { display: block; color: rgba(240,229,208,.36); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.product-detail-metrics strong { display: block; margin-top: 8px; overflow: hidden; color: var(--rr-cream); font-size: 12px; line-height: 1.15; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-detail-access { padding: 17px 0; border-bottom: 1px solid var(--rr-line); }
.product-detail-access p { margin: 8px 0 0; color: rgba(240,229,208,.62); font-size: 10px; font-weight: 730; line-height: 1.55; letter-spacing: .02em; }
.product-detail-section { padding-top: 17px; }
.product-detail-section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-detail-section-title small { color: rgba(240,229,208,.34); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.product-detail-resources { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.product-detail-resources > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--rr-line); background: rgba(0,0,0,.12); }
.product-detail-resources span { display: block; color: var(--product-accent); font-size: 7px; font-weight: 900; letter-spacing: .09em; }
.product-detail-resources strong { display: block; margin-top: 5px; overflow: hidden; color: rgba(240,229,208,.74); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.product-detail-empty { margin: 10px 0 0; padding: 12px; border: 1px dashed rgba(240,229,208,.12); color: rgba(240,229,208,.42); font-size: 10px; line-height: 1.5; }
.product-detail-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.product-detail-actions .primary,
.product-detail-actions .outline { min-height: 42px; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 15px; }
.product-detail-actions .product-open { background: var(--product-accent); text-decoration: none; }
.product-detail-actions .outline:hover { border-color: var(--product-accent); }
.product-detail-actions .text-action { padding: 8px 2px; border: 0; border-bottom: 1px solid rgba(240,229,208,.18); color: rgba(240,229,208,.58); background: none; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-decoration: none; }
.product-detail-actions .text-action.is-danger { color: #ef795e; border-bottom-color: rgba(239,121,94,.35); }

.billing-product { grid-template-columns: 32px 48px minmax(230px, 1fr) minmax(150px, .42fr) auto; }
.billing-product-index { color: var(--product-accent); }
.billing-product-icon { width: 44px; height: 44px; object-fit: contain; }
.billing-product-copy > span { color: var(--product-accent); }

@media (max-width: 1080px) {
  .software-manager-layout { grid-template-columns: 280px minmax(0,1fr); }
  .product { grid-template-columns: 22px 40px minmax(0,1fr) 14px; }
  .product-icon { width: 40px; height: 40px; }
  .product-selector-plan { display: none; }
  .billing-product { grid-template-columns: 30px 44px minmax(0,1fr) auto; }
  .billing-product-provider { grid-column: 3; }
  .billing-product-action { grid-column: 4; grid-row: 1 / span 2; }
}

@media (max-width: 820px) {
  #dashboardView { padding: 25px 20px 32px; }
  .software-manager-layout { display: block; min-height: 0; }
  .products { display: grid; grid-template-columns: 1fr; overflow: visible; border-right: 0; border-bottom: 1px solid var(--rr-line); scroll-snap-type: none; }
  .product { width: 100%; min-height: 86px; grid-template-columns: 22px 40px minmax(0,1fr) 14px; border-right: 0; border-bottom: 1px solid var(--rr-line); scroll-snap-align: none; }
  .product.focus-product { box-shadow: inset 3px 0 var(--product-accent); }
  .product-detail { padding: 22px 20px; }
  .product-detail-head { gap: 18px; }
}

@media (max-width: 600px) {
  .dashboard-topline h1 { font-size: 34px; }
  .account-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .account-summary .summary-item { min-width: 0; padding: 11px 9px; }
  .summary-item span { min-height: 18px; font-size: 7px; }
  .summary-item strong { font-size: 17px; }
  .product-detail-head { display: block; }
  .product-detail-brand img { width: 56px; height: 56px; }
  .product-detail-brand h3 { font-size: 25px; }
  .product-detail-plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; min-width: 0; margin-top: 17px; padding: 14px 0 0; border-top: 1px solid var(--rr-line); border-left: 0; text-align: left; }
  .product-detail-plan strong { grid-column: 1; }
  .product-detail-plan small { grid-column: 2; grid-row: 1 / span 2; }
  .product-detail-metrics > div { padding-inline: 8px; }
  .product-detail-metrics > div:first-child { padding-left: 0; }
  .product-detail-metrics span { min-height: 17px; }
  .product-detail-metrics strong { font-size: 10px; }
  .product-detail-resources { grid-template-columns: 1fr; }
  .product-detail-actions .primary,
  .product-detail-actions .outline { width: 100%; }
  .billing-product { grid-template-columns: 28px 40px minmax(0,1fr); }
  .billing-product-provider { grid-column: 3; }
  .billing-product-action { grid-column: 1 / -1; grid-row: auto; }
}

/* Match the current HOME shell: exposed backdrop, sharp framed sections and readable type. */
.site-header {
  position: relative;
  top: auto;
  width: min(1320px, calc(100vw - 40px));
  min-height: 70px;
  height: 70px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 24px;
  margin: 24px auto 0;
  padding: 0 20px;
  border: 1px solid var(--rr-line);
  background: rgba(7, 11, 8, .62);
  box-shadow: var(--rr-shadow);
  backdrop-filter: blur(18px);
}
.brand { width: 132px; }
.brand img { width: 132px; }
.ecosystem-nav { height: 100%; justify-content: center; gap: 3px; padding: 0; border: 0; background: transparent; }
.ecosystem-nav a { min-height: 42px; padding: 0 13px; color: rgba(240,229,208,.54); font-size: 12px; font-weight: 650; letter-spacing: 0; }
.ecosystem-nav a:hover { color: var(--rr-cream); background: rgba(240,229,208,.07); box-shadow: none; }
.back-link { min-height: 46px; justify-self: stretch; justify-content: space-between; margin: 0; padding: 0 19px; border-color: var(--rr-cream); color: #11150f; background: var(--rr-cream); font-size: 12px; letter-spacing: .035em; }
.back-link:hover { color: #11150f; background: #fff8e9; }

body.dashboard-mode .shell { width: min(1320px, calc(100vw - 40px)); padding: 18px 0 70px; }
body.dashboard-mode .panel {
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
}
body.dashboard-mode .panel::before,
body.dashboard-mode .panel > .rr-account-border-glow,
body.dashboard-mode .panel-top { display: none !important; }
body.dashboard-mode #dashboardView { padding: 0; }

.account-hero {
  min-height: 218px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  align-items: stretch;
  border: 1px solid var(--rr-line);
  background-color: rgba(4,8,5,.14);
  background-image: linear-gradient(rgba(5,9,6,.58),rgba(5,9,6,.58));
  box-shadow: var(--rr-shadow);
}
.dashboard-topline { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; margin: 0; padding: 30px 34px; border-right: 1px solid var(--rr-line); }
.dashboard-topline > div:first-child > span { color: var(--rr-orange); font-size: 10px; letter-spacing: .08em; }
.dashboard-topline h1 { margin: 12px 0 10px; font-size: clamp(38px, 4.1vw, 54px); font-weight: 780; font-variation-settings: 'wdth' 112; line-height: .92; letter-spacing: -.045em; }
.dashboard-topline p { max-width: 610px; color: var(--rr-muted); font-size: 16px; font-weight: 420; line-height: 1.6; }
.profile-actions { margin-top: 21px; }
.profile-actions .outline { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; font-size: 10px; }
.account-identity { min-width: 0; align-self: stretch; gap: 18px; margin: 0; padding: 28px; border: 0; background: rgba(240,229,208,.025); box-shadow: none; }
.account-identity h2 { margin: 7px 0 5px; color: var(--rr-cream); font-size: 24px; font-weight: 720; letter-spacing: -.025em; }
.account-identity p { overflow: hidden; color: var(--rr-muted); font-size: 13px; text-overflow: ellipsis; }
.avatar { width: 72px; height: 72px; border-color: rgba(240,229,208,.22); background: rgba(240,229,208,.04); font-size: 22px; }

.account-nav { margin: 12px 0 0; padding: 0; border-color: var(--rr-line); background: rgba(4,8,5,.28); box-shadow: var(--rr-shadow); }
.account-nav button { min-height: 62px; justify-content: center; border-right: 1px solid var(--rr-line) !important; color: rgba(240,229,208,.56); font-size: 11px; }
.account-nav button:last-child { border-right: 0 !important; }
.account-nav button.active { color: #11150f; background: var(--rr-cream); }

.account-section { margin-top: 12px; padding: 28px; border: 1px solid var(--rr-line); background: rgba(4,8,5,.18); box-shadow: var(--rr-shadow); }
.dashboard-heading { align-items: center; }
.dashboard-heading h2 { margin-top: 10px; color: var(--rr-cream); font-size: clamp(29px, 3vw, 40px); font-weight: 740; font-variation-settings: 'wdth' 108; line-height: .95; letter-spacing: -.035em; }
.dashboard-heading p { max-width: 520px; color: var(--rr-muted); font-size: 14px; line-height: 1.6; }
.dashboard-heading span { font-size: 9px; letter-spacing: .09em; }

.account-summary { margin-top: 22px; background: rgba(4,8,5,.22); }
.account-summary .summary-item { min-height: 74px; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; background: transparent; }
.summary-item span { color: rgba(240,229,208,.46); font-size: 9px; }
.summary-item strong { color: var(--rr-cream); font-size: 24px; font-weight: 650; }
.software-manager { margin-top: 12px; background: rgba(4,8,5,.2); box-shadow: none; }
.software-manager-bar { min-height: 42px; }
.software-manager-layout { min-height: 420px; }
.products { background: rgba(4,8,5,.18); }
.product { min-height: 118px; background: rgba(4,8,5,.16); }
.product-selector-copy strong { font-size: 15px; }
.product-selector-copy small { font-size: 9px; }
.product-detail { padding: 28px 30px 25px; background-color: rgba(4,8,5,.16); }
.product-detail-brand span,
.product-detail-plan > span,
.product-detail-access > span,
.product-detail-section-title > span { font-size: 9px; }
.product-detail-brand p,
.product-detail-access p,
.product-detail-empty { font-size: 11px; }
.product-detail-metrics span { font-size: 8px; }
.product-detail-metrics strong { font-size: 13px; }

.settings-card,
.sessions-card,
.billing-provider-note,
.billing-product { background: rgba(4,8,5,.22); box-shadow: none; }
.account-security-grid { margin-top: 22px; }
.settings-title span,
.billing-provider-note span,
.billing-product-copy > span,
.billing-product-provider span { font-size: 9px; }
.settings-title strong { font-size: 13px; }
.compact-form label { font-size: 10px; }
.compact-form input { min-height: 48px; font-size: 14px; }
.billing-provider-note p { color: var(--rr-muted); font-size: 13px; }
.billing-product-copy p { font-size: 10px; }

footer { width: min(1320px, calc(100vw - 40px)); margin-bottom: 24px; padding: 22px 24px; background: rgba(4,8,5,.2); box-shadow: none; }

/* Mobile account controls: keep all choices visible without hidden horizontal rails. */
@media (max-width: 760px) {
  .account-nav {
    grid-template-columns: 1fr;
    overflow: visible;
    scroll-snap-type: none;
  }

  .account-nav button {
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 15px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--rr-line) !important;
  }

  .account-nav button:last-child {
    border-bottom: 0 !important;
  }

  .products {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    scroll-snap-type: none;
  }

  .product {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid var(--rr-line);
  }

  .product.focus-product {
    box-shadow: inset 3px 0 var(--product-accent);
  }

  .product-selector-copy small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

.product-detail-brand span,
.product-detail-plan > span,
.product-detail-access > span,
.product-detail-section-title > span,
.product-detail-metrics span,
.product-detail-section-title small,
.product-detail-resources span {
  font-size: 10px;
}

.product-detail-brand p,
.product-detail-access p,
.product-detail-empty,
.product-detail-resources strong {
  font-size: 12px;
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 150px minmax(0,1fr) 150px; gap: 12px; }
  .ecosystem-nav a { padding-inline: 8px; font-size: 10px; }
  .account-hero { grid-template-columns: minmax(0,1fr) 330px; }
}

@media (max-width: 820px) {
  .site-header { width: calc(100vw - 20px); min-height: 64px; height: 64px; grid-template-columns: 1fr auto; margin-top: 10px; padding: 0 14px; }
  .ecosystem-nav { display: none; }
  .brand, .brand img { width: 112px; }
  .back-link { min-height: 40px; padding-inline: 14px; font-size: 10px; }
  body.dashboard-mode .shell { width: calc(100vw - 20px); padding-top: 10px; }
  .account-hero { grid-template-columns: 1fr; }
  .dashboard-topline { padding: 26px 22px; border-right: 0; border-bottom: 1px solid var(--rr-line); }
  .dashboard-topline p { font-size: 15px; }
  .account-identity { padding: 20px 22px; }
  .account-section { padding: 24px 20px; }
  .dashboard-heading { display: block; }
  .dashboard-heading p { margin-top: 12px; text-align: left; }
  footer { width: calc(100vw - 20px); }
}

@media (max-width: 520px) {
  .dashboard-topline h1 { font-size: 36px; }
  .account-nav { grid-template-columns: repeat(3,minmax(0,1fr)); overflow: hidden; }
  .account-nav button { min-width: 0; min-height: 62px; justify-content: center; gap: 5px; padding-inline: 6px; font-size: 8px; line-height: 1.25; text-align: center; white-space: normal; }
  .account-nav button span { font-size: 7px; }
  .account-section { padding: 21px 14px; }
  .dashboard-heading h2 { font-size: 30px; }
  .software-manager { margin-inline: -1px; }
}

/* Final HOME parity: use the shared site backdrop and remove the legacy account grid. */
html {
  background: #090c09 !important;
}

body {
  padding-top: 24px;
  background-color: #090c09 !important;
  background-image: url('/back.png?v=1') !important;
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body::before,
.rr-grid {
  display: none !important;
  content: none !important;
}

.panel {
  background-image: linear-gradient(rgba(5, 9, 6, .7), rgba(5, 9, 6, .7)) !important;
  background-size: auto !important;
}

body.dashboard-mode .panel {
  background: transparent !important;
}

.site-header {
  margin-top: 0;
  background-color: rgba(7, 11, 8, .62);
  background-image: linear-gradient(rgba(5, 9, 6, .7), rgba(5, 9, 6, .7));
  border-top: 1px solid var(--rr-line);
}

.brand strong {
  display: none !important;
}

.ecosystem-nav a {
  text-transform: uppercase;
}

.ecosystem-nav {
  width: 100%;
  margin-left: 0;
}

.back-link[aria-current='page'] {
  color: #11150f;
  border-color: var(--rr-cream);
  background: var(--rr-cream);
}

.back-link[aria-current='page']:hover {
  color: #11150f;
  background: #fff8e9;
}

.account-hero,
.account-nav,
.account-section,
.account-summary,
.software-manager,
.products,
.product,
.product-detail,
.settings-card,
.sessions-card,
.billing-provider-note,
.billing-product,
footer {
  background-image: linear-gradient(rgba(5, 9, 6, .7), rgba(5, 9, 6, .7)) !important;
  background-size: auto !important;
}

@media (max-width: 900px) {
  body {
    padding-top: 10px;
    background-attachment: scroll !important;
  }

  .site-header { margin-top: 0; }
}

/* Account center v17 — premium product workspace, using the shared public-site shell. */
body.dashboard-mode .shell {
  width: var(--rr-page);
  padding: 18px 0 28px;
}

body.dashboard-mode .panel {
  overflow: visible;
  border: 1px solid var(--rr-line);
  background: rgba(4, 8, 5, .54) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

body.dashboard-mode .panel::before,
body.dashboard-mode .panel-top {
  display: none;
}

#dashboardView:not([hidden]) {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(470px, 1fr);
  padding: 0;
}

.account-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  align-items: stretch;
  min-height: 168px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rr-line);
  background: rgba(5, 9, 6, .34) !important;
}

.dashboard-topline {
  display: flex;
  align-items: center;
  padding: 30px 38px;
}

.dashboard-topline > div:first-child > span { display: none; }
.dashboard-topline h1 {
  margin: 0;
  color: var(--rr-cream);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 720;
  line-height: .96;
  letter-spacing: -.045em;
}
.dashboard-topline p {
  max-width: 470px;
  margin: 13px 0 0;
  color: rgba(240, 229, 208, .58);
  font-size: 14px;
  line-height: 1.55;
}

.account-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 26px 36px;
  border: 0;
  border-left: 1px solid var(--rr-line);
  background: rgba(4, 8, 5, .24) !important;
}
.account-identity .avatar {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(240, 229, 208, .16);
  background: rgba(240, 229, 208, .035);
}
.account-identity .avatar span { font-size: 28px; }
.account-identity-copy { min-width: 0; }
.account-identity-copy > span { display: none; }
.account-identity h2 {
  overflow: hidden;
  margin: 0;
  color: var(--rr-cream);
  font-size: 19px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-identity p {
  overflow: hidden;
  margin: 7px 0 0;
  color: rgba(240, 229, 208, .48);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-identity .profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-identity .profile-actions .outline {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  color: rgba(240, 229, 208, .62);
  background: transparent;
  font-size: 10px;
  letter-spacing: .1em;
}
.account-identity .profile-actions .outline:hover { color: var(--rr-cream); }
.account-identity .profile-actions .outline span { color: var(--rr-orange); }

.account-nav {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 4px;
  margin: 0;
  padding: 27px 24px 19px;
  border: 0;
  border-right: 1px solid var(--rr-line);
  background: rgba(5, 9, 6, .46) !important;
}
.account-nav button {
  position: relative;
  min-height: 42px;
  justify-content: flex-start;
  padding: 0 0 0 18px;
  border: 0;
  color: rgba(240, 229, 208, .5);
  background: transparent;
  text-align: left;
  font-size: 10px;
  letter-spacing: .035em;
}
.account-nav button::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: rgba(240, 229, 208, .13);
  content: '';
}
.account-nav button span { display: none; }
.account-nav button:hover { color: var(--rr-cream); }
.account-nav button.active { color: var(--rr-orange); background: transparent; }
.account-nav button.active::before { background: var(--rr-orange); }

#subscriptionSection:not([hidden]) { display: contents; }
#subscriptionSection .dashboard-heading,
#subscriptionSection .account-summary,
#subscriptionSection .software-manager-bar { display: none; }
#subscriptionSection .software-manager,
#subscriptionSection .software-manager-layout { display: contents; }

.products {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 10px 24px 30px;
  border: 0;
  border-right: 1px solid var(--rr-line);
  background: rgba(5, 9, 6, .46) !important;
}
.products-label {
  display: block;
  margin: 4px 0 10px;
  color: rgba(240, 229, 208, .38);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}
.product {
  min-height: 82px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0 12px;
  padding: 11px 10px 11px 13px;
  border: 0;
  border-left: 2px solid transparent;
  color: var(--rr-cream);
  background: transparent !important;
  text-align: left;
}
.product:hover { background: rgba(240, 229, 208, .025) !important; }
.product.focus-product {
  border-left-color: var(--product-accent);
  box-shadow: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--product-accent) 9%, transparent), transparent 72%) !important;
}
.product-index,
.product-selector-arrow,
.product-selector-plan small,
.product-selector-copy small { display: none; }
.product-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .36));
}
.product-selector-copy { min-width: 0; }
.product-selector-copy strong {
  overflow: hidden;
  display: block;
  color: var(--rr-cream);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-selector-plan {
  display: block;
  align-self: start;
  min-width: 0;
  margin-top: 5px;
}
.product-selector-plan strong {
  overflow: hidden;
  display: block;
  color: rgba(240, 229, 208, .48);
  font-size: 10px;
  font-weight: 520;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.product-detail {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-width: 0;
  padding: 32px 38px 34px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--product-accent) 5%, transparent), transparent 38%) !important;
}
.product-detail-head {
  min-height: 138px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--rr-line);
}
.product-detail-brand { gap: 20px; }
.product-detail-brand img { width: 104px; height: 104px; }
.product-detail-brand span { font-size: 8px; }
.product-detail-brand h3 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: .96;
}
.product-detail-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.product-detail-status strong {
  color: rgba(240, 229, 208, .64);
  font-size: 12px;
  font-weight: 560;
  text-transform: capitalize;
}
.product-detail-status i { width: 1px; height: 14px; background: var(--rr-line); }
.product-detail-status small {
  color: #86ec69;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
}
.product-detail-status small::before {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 72%, transparent);
  content: '';
}
.product-detail-head > .product-open {
  min-width: 222px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  color: #0b0d0a;
  background: var(--product-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
}
.product-detail-head > .product-open:hover { transform: translateY(-2px); }

.product-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rr-line);
}
.product-detail-metrics > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 28px;
  border-right: 1px solid var(--rr-line);
}
.product-detail-metrics > div:first-child { padding-left: 0; }
.product-detail-metrics > div:last-child { border-right: 0; }
.product-detail-metrics span { font-size: 8px; }
.product-detail-metrics strong {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: .02em;
}

.product-detail-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .94fr);
  gap: 0;
  padding-top: 26px;
}
.product-detail-section,
.product-management { min-width: 0; padding: 0; }
.product-detail-section { padding-right: 32px; }
.product-management { padding-left: 32px; border-left: 1px solid var(--rr-line); }
.product-management .product-detail-section-title > small { display: none; }
.product-detail-section-title { min-height: 24px; align-items: flex-start; }
.product-detail-section-title > span { font-size: 9px; }
.product-detail-section-title > small {
  max-width: 280px;
  overflow: hidden;
  font-size: 7px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-resource-empty {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 28px;
  border: 1px dashed rgba(240, 229, 208, .18);
  text-align: center;
}
.product-resource-empty > strong {
  color: var(--rr-cream);
  font-size: 10px;
  letter-spacing: .1em;
}
.product-resource-empty > p {
  max-width: 360px;
  margin: 10px 0 18px;
  color: rgba(240, 229, 208, .48);
  font-size: 11px;
  line-height: 1.55;
}
.product-resource-empty > .outline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 15px;
  color: var(--rr-cream);
  border-color: var(--product-accent);
  text-decoration: none;
}
.product-detail-resources {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}
.product-detail-resources > div { padding: 14px; }
.resource-revoke { margin-top: 12px; }

.product-management-actions { margin-top: 14px; border-top: 1px solid var(--rr-line); }
.product-management-actions > a,
.product-management-actions > button {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--rr-line);
  color: var(--rr-cream);
  background: transparent;
  text-align: left;
  text-decoration: none;
}
.product-management-actions > a:hover,
.product-management-actions > button:hover { color: var(--product-accent); }
.product-management-actions span { display: grid; gap: 7px; }
.product-management-actions strong { font-size: 10px; letter-spacing: .08em; }
.product-management-actions small { color: rgba(240, 229, 208, .46); font-size: 10px; font-weight: 480; line-height: 1.4; }
.product-management-actions b { color: var(--product-accent); font-size: 17px; }

#accountSection,
#billingSection {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-width: 0;
  margin: 0;
  padding: 32px 38px 38px;
  border: 0;
  background: rgba(5, 9, 6, .34) !important;
}
#accountSection .dashboard-heading,
#billingSection .dashboard-heading { margin-bottom: 22px; }

body.dashboard-mode footer {
  width: var(--rr-page);
  min-height: 72px;
  margin: 0 auto 24px;
  padding: 0 34px;
  border: 1px solid var(--rr-line);
  background: rgba(5, 9, 6, .52) !important;
}

@media (max-width: 1050px) {
  #dashboardView:not([hidden]) { grid-template-columns: 254px minmax(0, 1fr); }
  .account-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); }
  .account-identity { grid-template-columns: 64px minmax(0, 1fr); padding-inline: 24px; }
  .account-identity .avatar { width: 64px; height: 64px; }
  .account-identity .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .product-detail { padding-inline: 28px; }
  .product-detail-brand img { width: 84px; height: 84px; }
  .product-detail-head > .product-open { min-width: 190px; }
  .product-detail-workspace { grid-template-columns: 1fr; }
  .product-detail-section { padding-right: 0; }
  .product-management { margin-top: 26px; padding: 26px 0 0; border-top: 1px solid var(--rr-line); border-left: 0; }
}

@media (max-width: 760px) {
  body.dashboard-mode .shell { width: calc(100% - 20px); padding-top: 10px; }
  #dashboardView:not([hidden]) { display: block; }
  .account-hero { display: block; min-height: 0; }
  .dashboard-topline { padding: 24px 20px 20px; }
  .dashboard-topline h1 { font-size: 30px; }
  .dashboard-topline p { font-size: 12px; }
  .account-identity { grid-template-columns: 54px minmax(0, 1fr); padding: 18px 20px; border-top: 1px solid var(--rr-line); border-left: 0; }
  .account-identity .avatar { width: 54px; height: 54px; }
  .account-identity h2 { font-size: 16px; }
  .account-identity .profile-actions { grid-column: 1 / -1; }
  .account-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rr-line);
  }
  .account-nav button {
    min-width: max-content;
    min-height: 50px;
    padding: 0 14px;
  }
  .account-nav button::before { top: auto; right: 14px; bottom: 0; left: 14px; width: auto; height: 2px; }
  #subscriptionSection:not([hidden]),
  #subscriptionSection .software-manager,
  #subscriptionSection .software-manager-layout { display: block; }
  .products {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: 0;
    overflow-x: auto;
    padding: 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--rr-line);
  }
  .products-label { grid-column: 1 / -1; }
  .product { min-height: 76px; }
  .product-detail { padding: 24px 18px 28px; }
  .product-detail-head { display: block; min-height: 0; }
  .product-detail-brand img { width: 70px; height: 70px; }
  .product-detail-brand h3 { font-size: 28px; }
  .product-detail-head > .product-open { width: 100%; min-height: 48px; margin-top: 20px; }
  .product-detail-metrics > div { min-height: 74px; padding: 14px 8px; }
  .product-detail-metrics strong { font-size: 12px; }
  .product-detail-section-title { display: block; }
  .product-detail-section-title > small { display: block; margin-top: 7px; white-space: normal; }
  .product-resource-empty { min-height: 210px; padding: 22px 16px; }
  #accountSection,
  #billingSection { padding: 24px 18px 30px; }
  body.dashboard-mode footer { width: calc(100% - 20px); padding: 18px; }
}

/* Account center v18 — legibility pass for secondary labels and supporting copy. */
body.dashboard-mode {
  --rr-account-secondary: rgba(240, 229, 208, .70);
  --rr-account-tertiary: rgba(240, 229, 208, .58);
}

body.dashboard-mode .account-identity p {
  color: var(--rr-account-secondary);
  font-size: 13px;
}

body.dashboard-mode .account-identity .profile-actions .outline,
body.dashboard-mode .account-nav button {
  font-size: 12px;
}

body.dashboard-mode .products-label,
body.dashboard-mode .software-manager-bar span,
body.dashboard-mode .software-manager-bar small,
body.dashboard-mode .product-detail-brand span,
body.dashboard-mode .product-detail-plan > span,
body.dashboard-mode .product-detail-access > span,
body.dashboard-mode .product-detail-section-title > span,
body.dashboard-mode .settings-title span,
body.dashboard-mode .billing-provider-note span,
body.dashboard-mode .billing-product-copy > span,
body.dashboard-mode .billing-product-provider span {
  font-size: 11px;
  line-height: 1.35;
}

body.dashboard-mode .product-selector-copy strong { font-size: 14px; }
body.dashboard-mode .product-selector-copy small,
body.dashboard-mode .product-selector-plan small,
body.dashboard-mode .product-selector-plan strong {
  color: var(--rr-account-tertiary);
  font-size: 11px;
  line-height: 1.35;
}

body.dashboard-mode .product-detail-brand p,
body.dashboard-mode .product-detail-status strong,
body.dashboard-mode .product-detail-status small,
body.dashboard-mode .product-detail-access p,
body.dashboard-mode .product-detail-empty,
body.dashboard-mode .product-resource-empty > p {
  color: var(--rr-account-secondary);
  font-size: 13px;
}

body.dashboard-mode .product-detail-metrics span,
body.dashboard-mode .product-detail-section-title > small,
body.dashboard-mode .product-detail-resources span {
  color: var(--rr-account-tertiary);
  font-size: 11px;
  line-height: 1.4;
}

body.dashboard-mode .product-detail-metrics strong { font-size: 15px; }
body.dashboard-mode .product-detail-resources strong { font-size: 12px; }
body.dashboard-mode .product-resource-empty > strong { font-size: 12px; }

body.dashboard-mode .product-management-actions strong,
body.dashboard-mode .settings-title strong,
body.dashboard-mode .compact-form label,
body.dashboard-mode .session-row strong {
  font-size: 12px;
  line-height: 1.4;
}

body.dashboard-mode .product-management-actions small,
body.dashboard-mode .settings-note,
body.dashboard-mode .session-row span,
body.dashboard-mode .loading-copy,
body.dashboard-mode .empty-copy,
body.dashboard-mode .billing-provider-note p,
body.dashboard-mode .billing-product-copy p,
body.dashboard-mode .billing-product-provider strong,
body.dashboard-mode .billing-footnote {
  color: var(--rr-account-secondary);
  font-size: 12px;
  line-height: 1.55;
}

body.dashboard-mode .summary-item span,
body.dashboard-mode .dashboard-heading span {
  color: var(--rr-account-tertiary);
  font-size: 11px;
  line-height: 1.35;
}

body.dashboard-mode .product-detail-actions .text-action,
body.dashboard-mode .mini-action,
body.dashboard-mode footer {
  font-size: 11px;
}

@media (max-width: 520px) {
  body.dashboard-mode .account-nav button { font-size: 10px; }
  body.dashboard-mode .account-nav button span { font-size: 10px; }
  body.dashboard-mode .summary-item span { min-height: 0; font-size: 10px; }
  body.dashboard-mode .product-detail-metrics strong { font-size: 13px; }
}

/* Account & Security v19 — security-first workspace based on selected concept 03. */
#accountSection {
  --security-surface: rgba(3, 7, 4, .34);
  --security-line: rgba(240, 229, 208, .14);
}

.security-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  align-items: end;
  gap: 16px 34px;
  margin-bottom: 22px;
}
.security-page-heading > span {
  grid-column: 1 / -1;
  color: var(--rr-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}
.security-page-heading h2 {
  margin: 0;
  color: var(--rr-cream);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 760;
  font-variation-settings: 'wdth' 108;
  line-height: .92;
  letter-spacing: -.04em;
}
.security-page-heading p {
  margin: 0;
  color: var(--rr-account-secondary);
  font-size: 14px;
  line-height: 1.55;
  text-align: right;
}

.security-identity-bar {
  min-height: 106px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--security-line);
  background: var(--security-surface);
}
.security-avatar {
  position: relative;
  width: 66px;
  height: 66px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 229, 208, .2);
  color: var(--rr-orange);
  background: rgba(240, 229, 208, .035);
  font-size: 23px;
  font-weight: 850;
}
.security-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.security-identity-copy { min-width: 0; }
.security-identity-copy strong,
.security-identity-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.security-identity-copy strong { color: var(--rr-cream); font-size: 21px; line-height: 1.1; }
.security-identity-copy span { margin-top: 7px; color: var(--rr-account-secondary); font-size: 14px; }
.security-edit-action {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--rr-orange);
  color: var(--rr-orange);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.security-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid var(--security-line);
  background: var(--security-surface);
}
.security-status-strip > div {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-right: 1px solid var(--security-line);
}
.security-status-strip > div:last-child { border-right: 0; }
.security-status-strip span { color: var(--rr-orange); font-size: 12px; font-weight: 900; }
.security-status-strip strong { color: #91e76d; font-size: 13px; letter-spacing: .04em; }
.security-status-strip > div:last-child strong { color: var(--rr-orange); }

.account-security-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}
.security-settings-column,
.security-sessions-column {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--security-line);
  background: var(--security-surface);
}
.security-sessions-column { display: flex; flex-direction: column; }
.security-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--security-line);
}
.security-section-title span { color: var(--rr-orange); font-size: 14px; font-weight: 900; letter-spacing: .06em; }
.security-section-title strong { color: var(--rr-account-tertiary); font-size: 11px; letter-spacing: .08em; }
.password-section-title { margin-top: 28px; }

.security-form { display: grid; gap: 16px; padding-top: 18px; }
.security-form + .security-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--security-line); }
.security-form label { display: grid; gap: 9px; color: var(--rr-account-secondary); font-size: 12px; font-weight: 850; letter-spacing: .07em; }
.security-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(240, 229, 208, .18);
  color: var(--rr-cream);
  background: rgba(0, 0, 0, .16);
  outline: none;
  font-size: 15px;
}
.security-form input:focus { border-color: var(--rr-orange); box-shadow: 0 0 0 2px rgba(232, 97, 53, .08); }
.security-submit {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(240, 229, 208, .18);
  color: var(--rr-orange);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.security-submit:hover { border-color: var(--rr-orange); color: var(--rr-cream); }
.security-current-value { display: grid; gap: 7px; }
.security-current-value span { color: var(--rr-account-secondary); font-size: 12px; font-weight: 850; letter-spacing: .07em; }
.security-current-value strong { overflow-wrap: anywhere; color: var(--rr-cream); font-size: 15px; font-weight: 550; }

.security-sessions-column .sessions-list { margin-top: 0; border-top: 0; }
.security-sessions-column .session-row {
  min-height: 102px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--security-line);
}
.session-device-index { align-self: start; padding-top: 2px; color: var(--rr-orange); font-size: 12px; font-weight: 900; }
.security-sessions-column .session-row strong { color: var(--rr-cream); font-size: 14px; }
.security-sessions-column .session-row span:not(.session-device-index) { color: var(--rr-account-secondary); font-size: 12px; line-height: 1.55; }
.security-sessions-column .session-row i { color: #94ff00; font-size: 11px; }
.security-sessions-column .mini-action { color: var(--rr-orange); font-size: 11px; }
.security-signout-all {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  border: 1px solid var(--rr-orange);
  color: var(--rr-orange);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
}
.security-signout-all:hover { color: var(--rr-cream); background: rgba(232, 97, 53, .07); }

@media (max-width: 1080px) {
  .security-page-heading { grid-template-columns: 1fr; }
  .security-page-heading > span { grid-column: auto; }
  .security-page-heading p { max-width: 660px; text-align: left; }
  .account-security-workspace { grid-template-columns: 1fr; }
  .security-signout-all { margin-top: 24px; }
}

@media (max-width: 680px) {
  .security-page-heading h2 { font-size: 34px; }
  .security-identity-bar { grid-template-columns: 54px minmax(0, 1fr); padding: 16px; }
  .security-avatar { width: 54px; height: 54px; }
  .security-edit-action { grid-column: 1 / -1; justify-self: stretch; }
  .security-status-strip { grid-template-columns: 1fr; }
  .security-status-strip > div { min-height: 56px; border-right: 0; border-bottom: 1px solid var(--security-line); }
  .security-status-strip > div:last-child { border-bottom: 0; }
  .security-settings-column,
  .security-sessions-column { padding: 19px 16px; }
  .security-section-title { display: grid; gap: 6px; }
}

/* Account & Security v20 — final legibility and form-completion pass. */
.security-page-heading > span { font-size: 12px; }
.security-page-heading p { font-size: 15px; line-height: 1.6; }
.security-identity-copy strong { font-size: 24px; }
.security-identity-copy span { font-size: 15px; }
.security-edit-action { font-size: 13px; }
.security-status-strip span { font-size: 12px; }
.security-status-strip strong { font-size: 15px; }
.security-section-title span { font-size: 16px; }
.security-section-title strong { font-size: 12px; }
.security-form label,
.security-current-value span { font-size: 13px; line-height: 1.35; }
.security-form input { font-size: 16px; }
.security-current-value strong { font-size: 16px; }
.security-submit,
.security-signout-all { font-size: 13px; }
.security-sessions-column .session-row strong { font-size: 15px; }
.security-sessions-column .session-row span:not(.session-device-index) { font-size: 13px; }
.security-sessions-column .session-row i,
.security-sessions-column .mini-action { font-size: 12px; }

/* Account shell v22 — final cascade lock to the public HOME design system. */
body {
  padding-top: 0;
}

.identity-header-shell {
  width: 100%;
  padding-top: 24px;
}

.identity-header-shell > .rrt-header {
  width: var(--rrt-page);
  margin-bottom: 26px;
  border-color: var(--rrt-line);
  border-radius: 0;
  background-color: rgba(7, 11, 8, .62);
  background-image: linear-gradient(rgba(5, 9, 6, .7), rgba(5, 9, 6, .7));
}

.identity-header-shell .rrt-brand img {
  width: 100%;
  height: auto;
}

.identity-account-link[aria-current='page'] {
  color: #11150f;
  border-color: var(--rrt-cream);
  background: var(--rrt-cream);
}

.identity-account-link[aria-current='page']:hover {
  color: #11150f;
  background: #fff8e9;
}

.shell,
body.dashboard-mode .shell,
body.dashboard-mode footer,
footer {
  width: var(--rrt-page);
}

body.dashboard-mode .shell {
  padding-top: 0;
}

body.dashboard-mode .panel,
.account-hero,
.account-nav,
.account-section,
.account-summary,
.software-manager,
.products,
.product,
.product-detail,
.settings-card,
.sessions-card,
.billing-provider-note,
.billing-product,
footer {
  border-color: var(--rrt-line);
  border-radius: 0;
}

@media (max-width: 760px) {
  .identity-header-shell {
    padding-top: 10px;
  }

  .identity-header-shell > .rrt-header {
    width: calc(100vw - 20px);
    margin-bottom: 10px;
  }

  .identity-header-shell > .rrt-header > .identity-account-link {
    display: none;
  }

  .shell,
  body.dashboard-mode .shell,
  body.dashboard-mode footer,
  footer {
    width: calc(100vw - 20px);
  }
}

/* Account center v27 — final mobile cascade lock. */
@media (max-width: 760px) {
  body.dashboard-mode .account-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  body.dashboard-mode .account-nav button {
    min-width: 0 !important;
    min-height: 58px !important;
    justify-content: center !important;
    padding: 8px 7px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  #subscriptionSection .products {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    overflow: visible !important;
    padding: 12px !important;
  }

  #subscriptionSection .products-label { grid-column: 1 !important; }

  #subscriptionSection .product {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 84px !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 4px 12px !important;
    padding: 10px 12px !important;
  }

  #subscriptionSection .product-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 48px !important;
    height: 48px !important;
  }

  #subscriptionSection .product-selector-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  #subscriptionSection .product-selector-copy strong {
    overflow: visible !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  #subscriptionSection .product-selector-plan {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  #subscriptionSection .product-selector-plan strong {
    overflow: visible !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
}

@media (max-width: 520px) {
  .product-detail-metrics { grid-template-columns: 1fr !important; }
  .product-detail-metrics > div,
  .product-detail-metrics > div:first-child {
    min-height: 62px !important;
    padding: 12px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--rr-line) !important;
  }
  .product-detail-metrics > div:last-child { border-bottom: 0 !important; }
  body.dashboard-mode .product-detail-metrics strong {
    overflow: visible !important;
    font-size: 14px !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
}
