:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #141e37;
  background: #f2f5fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 14px clamp(16px, 5vw, 60px);
  background: #111a31;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
a {
  color: #2349b6;
  text-underline-offset: 3px;
}
header a {
  color: inherit;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
}
main {
  width: min(1050px, calc(100% - 32px));
  margin: 36px auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
}
nav {
  display: grid;
  gap: 6px;
  align-content: start;
}
nav a {
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
}
nav a[aria-current] {
  background: #243f80;
  color: #fff;
}
section {
  padding: clamp(16px, 4vw, 32px);
  border: 1px solid #d7e0f1;
  border-radius: 18px;
  background: #fff;
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}
ul {
  padding: 0;
  list-style: none;
}
li,
dl {
  border-bottom: 1px solid #d7e0f1;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
dt {
  font-weight: 700;
}
dd {
  margin: 4px 0 14px;
}
button {
  font: inherit;
  cursor: pointer;
  padding: 8px 12px;
}
@media (max-width: 630px) {
  main {
    display: block;
    margin-block: 16px;
  }
  nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 12px;
  }
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-block: 14px;
}
.account-panel > header,
.account-panel main > nav,
.account-panel h1 {
  display: none;
}
.account-panel main {
  display: block;
  margin-block: 12px;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e0f1;
  border-radius: 12px;
}
.account-profile small,
.account-setting small {
  display: block;
  margin-top: 4px;
  color: #536484;
  overflow-wrap: anywhere;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #e3ebfd;
  color: #243f80;
  font-weight: 800;
}
.account-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d7e0f1;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
}
.account-setting:hover {
  background: #edf2fd;
}
.account-setting > span:last-child {
  font-size: 1.4rem;
}
.account-password-action {
  display: inline-block;
  margin-top: 12px;
}
.auth-entry {
  display: block;
  max-width: 520px;
}
.auth-entry nav {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.telelive-auth-form {
  display: grid;
  gap: 12px;
  margin-block: 16px;
}
.telelive-auth-form[hidden] {
  display: none;
}
.telelive-auth-form label {
  display: grid;
  gap: 5px;
  font-weight: 650;
}
.telelive-auth-form input {
  min-width: 0;
  border: 1px solid #9eacc9;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.telelive-auth-form button {
  border: 1px solid #9eacc9;
  border-radius: 8px;
  color: #172a56;
  background: #edf2fd;
}
.telelive-auth-form button[type='submit'] {
  background: #243f80;
  color: white;
}
.account-workspace {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.account-workspace main {
  display: block;
  width: min(720px, calc(100% - 24px));
  flex: 1;
}
.account-panel main {
  overflow: auto;
  margin-block: 0;
  padding-block: 12px;
  min-height: 0;
}
.account-panel.account-workspace {
  height: 100dvh;
  overflow: hidden;
}
.account-panel #account-title {
  display: block;
  font-size: 1.4rem;
  margin-top: 12px;
}
.account-panel.account-menu-open #account-title {
  display: none;
}
.account-feature-menu {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  overflow: visible;
  white-space: normal;
}
.account-feature-menu a {
  color: #172a56;
}
.account-footer {
  position: sticky;
  bottom: 0;
  background: #f2f5fb;
  padding: 12px 16px;
  border-top: 1px solid #d7e0f1;
}
.account-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-footer time {
  font-variant-numeric: tabular-nums;
}
#account-sign-out {
  margin-top: 8px;
}
#account-sign-out > * {
  width: min(144px, 100%);
  display: block;
  text-align: center;
  padding: 8px;
  border: 1px solid #9eacc9;
  border-radius: 8px;
  color: #172a56;
  background: #fff;
  font-weight: 700;
}
.telelive-auth-form select,
.telelive-auth-form textarea {
  border: 1px solid #9eacc9;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.account-app-sidebar {
  display: none;
}
.account-workspace:not(.account-panel) {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}
.account-workspace:not(.account-panel) .account-app-sidebar {
  display: block;
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100dvh;
  padding: 20px 12px;
  background: #111a31;
  color: #e7efff;
}
.account-workspace:not(.account-panel) > :is(header, main, footer) {
  grid-column: 2;
}
.account-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 20px;
  color: white;
  font-weight: 800;
  text-decoration: none;
}
.account-app-sidebar nav {
  display: grid;
  gap: 4px;
  overflow: visible;
  white-space: normal;
}
.account-app-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  color: inherit;
}
.account-app-sidebar nav a:hover {
  background: #223455;
}
.account-app-sidebar nav a[aria-current] {
  background: #2b4482;
  color: white;
}
.account-app-sidebar nav img {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(0.9);
}
.account-app-sidebar nav span {
  width: 19px;
  text-align: center;
  font-size: 1.2rem;
}
.profile-identity,
.profile-wallet {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 14px;
  background: #f4f7fd;
}
.profile-identity h2,
.profile-identity p {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.profile-identity small {
  color: #3e547b;
  font-weight: 650;
}
.profile-identity .account-avatar {
  width: 54px;
  height: 54px;
}
.profile-wallet {
  background: #14274a;
  color: white;
  flex-wrap: wrap;
}
.profile-wallet img {
  width: 36px;
  height: 36px;
}
.profile-wallet strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 4px;
}
.profile-wallet a {
  margin-left: auto;
  color: white;
  padding: 8px 12px;
  border: 1px solid #9db0d2;
  border-radius: 8px;
}
.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
}
.profile-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  border: 1px solid #d7e0f1;
  padding: 10px;
  border-radius: 9px;
}
.profile-metrics dt {
  font-size: 0.78rem;
  font-weight: 650;
}
.profile-metrics dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.3rem;
}
.profile-settings > section {
  margin-top: 12px;
  padding: 14px;
}
.profile-settings h2 {
  margin: 0 0 9px;
  font-size: 1.1rem;
}
.profile-settings .account-setting + .account-setting {
  margin-top: 6px;
}
@media (max-width: 630px) {
  .account-workspace:not(.account-panel) {
    grid-template-columns: 79px minmax(0, 1fr);
  }
  .account-workspace:not(.account-panel) .account-app-sidebar {
    padding: 12px 4px;
  }
  .account-sidebar-brand {
    justify-content: center;
    padding: 0 0 12px;
  }
  .account-sidebar-brand span {
    display: none;
  }
  .account-app-sidebar nav a {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 8px 2px;
    font-size: 0.68rem;
    text-align: center;
  }
  .account-workspace:not(.account-panel) > header {
    padding: 10px;
    gap: 8px;
    font-size: 0.8rem;
  }
  .profile-identity,
  .profile-wallet {
    gap: 8px;
    padding: 10px;
  }
  .profile-metrics {
    grid-template-columns: 1fr;
  }
}

.profile-summary > section {
  border-radius: 16px;
}
.viewer-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.viewer-groups button,
.viewer-row button,
.viewer-invitation button {
  padding: 7px 12px;
  border: 1px solid #bdcbea;
  border-radius: 9px;
  background: #fff;
  color: #1c376b;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.viewer-groups button[aria-pressed='true'] {
  background: #263f7e;
  border-color: #263f7e;
  color: white;
}
.viewer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.viewer-row div {
  margin-right: auto;
}
.viewer-row small {
  display: block;
  margin-top: 3px;
  color: #455b82;
}
.viewer-row [data-viewer-star][aria-pressed='true'] {
  color: #84530e;
  background: #fff2d8;
}
.viewer-invitation {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #cbd8f1;
  border-radius: 12px;
  background: #edf3ff;
}
.viewer-invitation h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.viewer-invitation select {
  max-width: 100%;
  padding: 7px;
  margin: 0 8px 8px 0;
  font: inherit;
}
.viewer-invitation a {
  display: block;
  margin-top: 8px;
}
.viewer-invitation [role='status']:empty {
  display: none;
}
@media (min-width: 1024px) {
  .account-profile-page:not(.account-panel) main {
    width: min(1120px, calc(100% - 64px));
  }
  .account-profile-page:not(.account-panel) main h1 {
    font-size: 2.45rem;
  }
  .account-profile-page:not(.account-panel) .profile-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px;
  }
  .account-profile-page:not(.account-panel) .profile-summary > section {
    padding: 24px;
  }
  .account-profile-page:not(.account-panel) .profile-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  .account-profile-page:not(.account-panel) .profile-settings > section {
    margin-top: 0;
    padding: 18px;
  }
  .account-profile-page:not(.account-panel) .profile-metrics {
    gap: 16px;
    margin-bottom: 18px;
  }
  .account-profile-page:not(.account-panel) .profile-metrics > div {
    padding: 16px;
  }
}

.account-footer[hidden],
.account-footer > [hidden] {
  display: none;
}
.account-app-header {
  min-height: 72px;
  padding: 12px clamp(22px, 4vw, 66px);
  gap: 12px;
  background: #fff;
  color: #101934;
  border-bottom: 1px solid #dbe3f0;
}
.account-header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-inline-start: auto;
}
.account-header-actions .account-wallet-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid #d3dfff;
  border-radius: 30px;
  background: #eaf0ff;
  color: #163bb9;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.account-wallet-pill img {
  width: 24px;
  height: 24px;
}
@media (min-width: 1024px) {
  .account-workspace:not(.account-panel) {
    grid-template-columns: 228px minmax(0, 1fr);
  }
}
@media (max-width: 630px) {
  .account-app-header {
    flex-wrap: wrap;
  }
  .account-header-actions {
    gap: 6px;
  }
  .account-header-actions .account-wallet-pill {
    padding-inline: 8px;
  }
  .account-header-actions .account-icon {
    width: 42px;
    justify-content: center;
    padding: 0;
  }
  .account-header-actions .account-icon span {
    display: none;
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: #748dbb #eaf0fa;
}

.viewer-invitation > button {
  margin: 0 8px 8px 0;
}
.sample-view-form:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 8px;
}
.sample-view-form input {
  min-width: 0;
  flex: 1 1 160px;
}

.account-app-sidebar nav .account-bottom-wallet {
  display: none;
}
@media (max-width: 1023px) {
  .account-workspace:not(.account-panel) {
    height: 100dvh;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }
  .account-workspace:not(.account-panel) > :is(header, main, footer) {
    grid-column: 1;
  }
  .account-workspace:not(.account-panel) > header {
    grid-row: 1;
  }
  .account-workspace:not(.account-panel) > main {
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding: 16px max(12px, calc((100% - 720px) / 2));
    overflow: auto;
    overscroll-behavior: contain;
  }
  .account-workspace:not(.account-panel) > footer {
    grid-row: 3;
    position: static;
  }
  .account-workspace:not(.account-panel) .account-app-sidebar {
    grid-row: 4;
    align-self: stretch;
    position: static;
    min-height: 0;
    padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }
  .account-app-sidebar .account-sidebar-brand,
  .account-app-sidebar nav [data-account-route] {
    display: none;
  }
  .account-app-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
  }
  .account-app-sidebar nav a,
  .account-app-sidebar nav .account-bottom-wallet {
    display: grid;
    place-content: center;
    justify-items: center;
    min-height: 54px;
    gap: 3px;
    padding: 3px 2px;
    font-size: 12px;
    text-align: center;
  }
  .account-app-sidebar nav span {
    font-size: 22px;
    line-height: 1;
    color: #aac2ff;
  }
  .account-app-sidebar nav .account-bottom-wallet img {
    width: 24px;
    height: 24px;
    filter: none;
  }
}

.viewer-search {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: min(100%, 28rem);
  margin-block: 0 14px;
}
.viewer-search input[type='search'] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b6c6e7;
  border-radius: 10px;
  background: #fff;
  color: #14213d;
  font: inherit;
  font-size: 16px;
}
.viewer-search button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-height: 44px;
  border: 1px solid #c8d6f2;
  border-radius: 10px;
  background: #edf2ff;
  color: #24447e;
}
.viewer-search button:hover {
  background: #dce8ff;
}
.viewer-search :is(input, button):focus-visible {
  outline: 2px solid #244bd5;
  outline-offset: 2px;
}

.referral-bonus {
  margin-block: 16px;
  padding: 16px;
  border: 1px solid #d7e0f1;
  border-radius: 12px;
}
.referral-bonus input {
  display: block;
  width: 100%;
  margin-block: 6px 10px;
  text-align: left;
}
.referral-totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
}
.referral-totals dd {
  margin: 0;
  font-weight: 700;
}

.account-sidebar-brand .brand-accent {
  color: #a8baff;
}
header .telelive-wordmark .brand-accent {
  color: #244bd5;
}
