/* Nem web account surface — quiet, direct, and intentionally light on containers. */

body.route-dashboard,
body.route-profile,
body.route-channels,
body.route-account-page {
  min-height: 100svh;
  padding: 0;
  background: #f5f5f2;
  color: #181816;
}

body.route-dashboard::before,
body.route-dashboard::after,
body.route-profile::before,
body.route-profile::after,
body.route-channels::before,
body.route-channels::after,
body.route-account-page::before,
body.route-account-page::after {
  display: none;
}

.account-top {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(24, 24, 22, .08);
  background: rgba(245, 245, 242, .90);
  box-shadow: 0 1px 0 rgba(255,255,255,.58);
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
}

.account-top .brand {
  gap: 9px;
  color: #181816;
  font-size: 15px;
  font-weight: 660;
  letter-spacing: -.035em;
}

.account-top .brand__mark {
  width: 36px;
  filter: none;
}

.account-top__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-refresh {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #85827a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .01em;
}

.account-refresh__spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(24,24,22,.14);
  border-top-color: #55534d;
  border-radius: 50%;
  animation: account-refresh-spin 620ms linear infinite;
}

@keyframes account-refresh-spin {
  to { transform: rotate(360deg); }
}

.environment-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid rgba(24, 24, 22, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: #716f68;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.environment-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c88435;
}

.account-profile {
  position: relative;
}

.account-profile__button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 24, 22, .09);
  border-radius: 50%;
  background: #ecebe6;
  color: #252520;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  transition: background 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.account-profile__button:hover {
  border-color: rgba(24, 24, 22, .16);
  background: #e5e4de;
}

.account-profile__button:active { transform: scale(.97); }

.account-profile__button {
  overflow: hidden;
}

.account-profile__button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.account-profile__button:focus-visible,
.account-nav__link:focus-visible,
.account-text-link:focus-visible,
.account-action:focus-visible,
.profile-menu__item:focus-visible {
  outline: 3px solid rgba(24, 24, 22, .12);
  outline-offset: 3px;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 264px;
  padding: 8px;
  border: 1px solid rgba(24, 24, 22, .08);
  border-radius: 16px;
  background: rgba(255, 255, 253, .96);
  box-shadow: 0 24px 64px rgba(24, 24, 20, .12);
  backdrop-filter: blur(20px) saturate(125%);
}

.profile-menu__identity {
  padding: 11px 11px 12px;
  border-bottom: 1px solid rgba(24, 24, 22, .07);
}

.profile-menu__identity strong,
.profile-menu__identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu__identity strong {
  color: #20201d;
  font-size: 12px;
  font-weight: 650;
}

.profile-menu__identity span {
  margin-top: 2px;
  color: #8a877f;
  font-size: 10px;
}

.profile-menu__items {
  padding-top: 6px;
}

.profile-menu__item {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4d4b45;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 560;
  text-align: left;
  text-decoration: none;
}

.profile-menu__item:hover {
  background: #f1f0eb;
  color: #181816;
}

.profile-menu__item--danger {
  margin-top: 5px;
  border-top: 1px solid rgba(24, 24, 22, .07);
  border-radius: 0 0 9px 9px;
  color: #74655f;
}

.profile-menu__icon,
.account-nav__icon,
.settings-row__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-main,
.profile-main,
.channels-main,
.account-surface-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.account-frame {
  min-height: calc(100svh - 73px);
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(44px, 7vw, 92px);
}

.account-nav {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100svh - 72px);
  padding: 44px 0 32px;
  overflow-y: auto;
  scrollbar-width: none;
}

.account-nav::-webkit-scrollbar { display: none; }

.account-nav__sticky {
  position: static;
}

.account-nav__label {
  margin: 0 0 11px 12px;
  color: #9b9890;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-nav__links {
  display: grid;
  gap: 3px;
}

.account-nav__link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #77746d;
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.account-nav__link:hover {
  color: #242420;
  background: rgba(255,255,255,.55);
}

.account-nav__link--active {
  color: #181816;
  background: #eae9e4;
  font-weight: 620;
}

.account-nav__link--separated {
  margin-top: 12px;
  padding-top: 12px;
  min-height: 54px;
  border-top: 1px solid rgba(24,24,22,.08);
  border-radius: 0 0 10px 10px;
}

.account-nav__link--advanced {
  color: #8e8b83;
  font-size: 12px;
}

.account-nav__download {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(24,24,22,.08);
}

.account-nav__download .account-nav__link {
  color: #373631;
}

.account-nav__meta {
  margin: 16px 11px 0;
  color: #aaa79f;
  font-size: 10px;
  line-height: 1.5;
}

.account-content {
  width: min(100%, 820px);
  padding: 44px 0 96px;
}

.account-content--narrow {
  width: min(100%, 720px);
}

.account-page-head {
  margin-bottom: 42px;
}

.account-page-head__kicker {
  margin: 0 0 10px;
  color: #96938b;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-page-head h1 {
  max-width: none;
  margin: 0;
  color: #181816;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: .98;
  font-weight: 690;
  letter-spacing: -.055em;
}

.account-page-head p {
  max-width: 600px;
  margin: 14px 0 0;
  color: #75726b;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.018em;
}

.account-section {
  margin-top: 40px;
}

.account-section:first-of-type {
  margin-top: 0;
}

.account-section__head {
  min-height: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
}

.account-section__head h2 {
  margin: 0;
  color: #282722;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.account-section__head p {
  margin: 0;
  color: #9a978f;
  font-size: 11px;
}

.settings-list {
  border-top: 1px solid rgba(24,24,22,.1);
  border-bottom: 1px solid rgba(24,24,22,.1);
}

.settings-row {
  min-height: 72px;
  padding: 14px 2px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(24,24,22,.07);
  color: #242420;
  text-decoration: none;
}

.settings-row:last-child { border-bottom: 0; }

a.settings-row:hover .settings-row__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.settings-row__icon {
  color: #77746d;
}

.settings-row__body {
  min-width: 0;
}

.settings-row__title,
.settings-row__meta {
  display: block;
}

.settings-row__title {
  color: #242420;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -.015em;
}

.settings-row__meta {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #8b8880;
  font-size: 11px;
  line-height: 1.45;
}

.settings-row__value {
  max-width: 260px;
  color: #626058;
  font-size: 11px;
  text-align: right;
}

.settings-row__chevron {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  fill: none;
  stroke: #aaa79f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-row__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #77746d;
  font-size: 11px;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa79f;
}

.status-dot[data-tone="positive"]::before {
  background: #3e9b60;
}

.download-panel {
  margin-top: 46px;
  padding: clamp(24px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-radius: 20px;
  background: #1a1a18;
  color: #fff;
  box-shadow: 0 22px 50px rgba(24,24,20,.12);
}

.download-panel__copy h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -.035em;
}

.download-panel__copy p {
  max-width: 480px;
  margin: 7px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.55;
}

.account-action {
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #181816;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
  transition: transform 120ms ease, opacity 150ms ease, background 150ms ease;
}

.account-action:hover { background: #2b2b27; }
.account-action:active { transform: scale(.98); }

.account-action--light {
  border-color: rgba(255,255,255,.14);
  background: #fff;
  color: #181816;
}

.account-action--light:hover { background: #f2f1ec; }

.account-action--quiet {
  border-color: rgba(24,24,22,.1);
  background: transparent;
  color: #34332e;
}

.account-action--quiet:hover { background: #ecebe6; }

.account-text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #4f4d46;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79,77,70,.3);
  text-underline-offset: 4px;
}

.account-footnote {
  margin-top: 22px;
  color: #a09d95;
  font-size: 10px;
  line-height: 1.55;
}

/* Signed-out dashboard */
.dashboard-loading,
.dashboard-error {
  min-height: calc(100svh - 73px);
  display: grid;
  place-items: center;
  padding: 44px 0;
}

.dashboard-loading__card,
.dashboard-error__card {
  width: min(100%, 420px);
  text-align: center;
}

.dashboard-loading__card h1,
.dashboard-error__card h1 {
  max-width: none;
  margin: 0;
  color: #20201d;
  font-size: 24px;
  letter-spacing: -.04em;
}

.dashboard-loading__card p,
.dashboard-error__card p {
  margin: 8px 0 0;
  color: #87847c;
  font-size: 13px;
}

.dashboard-public {
  min-height: calc(100svh - 73px);
  display: grid;
  align-items: center;
  padding: 64px 0 100px;
}

.dashboard-public__content {
  width: min(100%, 650px);
}

.dashboard-public__eyebrow {
  margin: 0 0 14px;
  color: #99968e;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-public h1 {
  max-width: 10em;
  margin: 0;
  color: #181816;
  font-size: clamp(48px, 7vw, 82px);
  line-height: .91;
  font-weight: 690;
  letter-spacing: -.072em;
}

.dashboard-public__lead {
  max-width: 480px;
  margin: 22px 0 0;
  color: #77746d;
  font-size: 16px;
  line-height: 1.55;
}

.dashboard-public__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dashboard-public__actions .account-action {
  min-width: 126px;
}

/* Management surfaces */
.management-list {
  border-top: 1px solid rgba(24,24,22,.10);
  border-bottom: 1px solid rgba(24,24,22,.10);
}

.management-row {
  min-height: 76px;
  padding: 15px 2px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(24,24,22,.07);
}

.management-row:last-child { border-bottom: 0; }

.management-row__lead {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.app-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(24,24,22,.07);
}

.app-logo img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.app-logo__mark {
  color: #5f5c55;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .03em;
}

.management-row__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.management-row__title {
  color: #242420;
  font-size: 13px;
  font-weight: 630;
  letter-spacing: -.018em;
}

.management-row__meta {
  color: #8b8880;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.management-row__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.management-status {
  min-height: 25px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ecebe6;
  color: #747169;
  font-size: 10px;
  font-weight: 620;
  white-space: nowrap;
}

.management-status[data-tone="positive"] {
  background: #e7f2e9;
  color: #487858;
}

.management-status[data-tone="warning"] {
  background: #f4ede1;
  color: #8a683a;
}

/* Saved cards: management rows, plus the hosted-enrolment hand-off. */
.saved-cards-loading {
  margin: 0;
  color: #918e86;
  font-size: 12px;
}

.saved-cards-unavailable {
  display: grid;
  gap: 6px;
}

.saved-cards-unavailable strong {
  color: #242420;
  font-size: 13px;
  font-weight: 630;
}

.saved-cards-message { margin: 0 0 12px; }

.saved-cards-result {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: #5f5c55;
  font-size: 12px;
  line-height: 1.5;
}

.saved-cards-result p { margin: 0; }

.saved-cards-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.saved-cards-note {
  max-width: 560px;
  margin: 12px 0 0;
  color: #85827a;
  font-size: 11px;
  line-height: 1.5;
}

/*
 * Add a card: Nem's dialog. The card fields are the payment vault's own page,
 * in its own tab; the dialog explains that, opens it, and closes by itself
 * once the Runtime has the card.
 */
.saved-card-entry { width: min(calc(100% - 32px), 440px); }
.saved-card-entry__body { gap: 14px; }

.saved-card-entry__step {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #f3f2ee;
}

.saved-card-entry__loading,
.saved-card-entry__how {
  margin: 0;
  color: #5f5c55;
  font-size: 13px;
  line-height: 1.5;
}

.saved-card-entry__step[aria-busy="false"] .saved-card-entry__loading { display: none; }

.saved-card-entry__status {
  min-height: 1.5em;
  margin: 0;
  color: #5f5c55;
  font-size: 12px;
  line-height: 1.5;
}

.saved-card-entry__note { margin: 0; }
.saved-card-entry__actions { align-items: center; justify-content: flex-end; gap: 8px; }
.saved-card-entry__open { text-decoration: none; }

.account-action--danger { background: #9b5257; }
.account-action--danger:hover { background: #86464b; }

/* Connections */
.connections-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.blocked-people {
  border-top: 1px solid rgba(24,24,22,.10);
}

.blocked-people summary {
  padding: 16px 2px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  cursor: pointer;
  color: #282722;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.blocked-people summary::-webkit-details-marker { display: none; }
.blocked-people summary::after { content: "+"; margin-left: auto; color: #8b8880; }
.blocked-people[open] summary::after { content: "-"; }
.blocked-people summary small { color: #8b8880; font-size: 11px; font-weight: 450; }

.connections-dialog {
  width: min(calc(100% - 32px), 520px);
  max-height: min(760px, calc(100svh - 32px));
  padding: 0;
  border: 1px solid rgba(24,24,22,.12);
  border-radius: 8px;
  background: #faf9f6;
  color: #242420;
  box-shadow: 0 24px 70px rgba(24,24,20,.20);
}

.connections-dialog::backdrop { background: rgba(24,24,20,.34); }

.connections-dialog__body {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.connections-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.connections-dialog__head h2,
.connections-dialog__head p,
.connections-dialog h3,
.connections-note { margin: 0; }
.connections-dialog__head h2 { font-size: 22px; line-height: 1.1; }
.connections-dialog__head p,
.connections-note { margin-top: 6px; color: #85827a; font-size: 11px; line-height: 1.5; }
.connections-dialog h3 { font-size: 13px; }

.connections-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #ecebe6;
  color: #5e5b54;
  cursor: pointer;
  font: inherit;
}

.connections-field { display: grid; gap: 7px; color: #5f5c55; font-size: 11px; font-weight: 620; }
.connections-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
.connections-dialog__actions--split { justify-content: space-between; }
.connections-dialog__actions { flex-wrap: wrap; }

/* A person's initials. Connections never carry a photo. */
.person-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9e8e2;
  color: #5f5c55;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}
.person-mark:empty::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bdbab2;
}
.person-mark--large { width: 44px; height: 44px; font-size: 15px; flex: none; }
.person-mark--large:empty::before { width: 16px; height: 16px; }
.connection-detail-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.connection-detail-who h2 { overflow-wrap: anywhere; }

.connection-permission {
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(24,24,22,.07);
}

.connection-permission:last-child { border-bottom: 0; }
.connection-permission__copy { display: grid; gap: 3px; }
.connection-permission__copy strong { font-size: 12px; }
.connection-permission__copy small { color: #85827a; font-size: 10px; line-height: 1.45; }

.row-action {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(24,24,22,.10);
  border-radius: 999px;
  background: transparent;
  color: #5b5952;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 610;
}

.row-action:hover {
  background: #ecebe6;
  color: #181816;
}

.row-action--danger { color: #7b625d; }

.row-action:disabled,
.account-action:disabled,
.account-text-link:disabled {
  cursor: wait;
  opacity: .55;
}

.account-empty {
  padding: 26px 2px;
  border-top: 1px solid rgba(24,24,22,.10);
  border-bottom: 1px solid rgba(24,24,22,.10);
  color: #918e86;
  font-size: 12px;
}

.account-inline-error {
  margin: 12px 0 0;
  color: #9b5257;
  font-size: 11px;
  line-height: 1.45;
}

.account-search {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
}

.account-field {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(24,24,22,.11);
  border-radius: 11px;
  background: #fff;
  color: #181816;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.account-field:focus {
  border-color: rgba(24,24,22,.30);
  box-shadow: 0 0 0 4px rgba(24,24,22,.05);
}

.management-list--catalogue {
  max-height: 430px;
  overflow: auto;
}

.apps-catalogue {
  display: grid;
  gap: 30px;
}

.apps-category-group {
  display: grid;
  gap: 9px;
}

.apps-category-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.apps-category-group__head h3 {
  margin: 0;
  color: #34332e;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.018em;
}

.apps-category-group__count {
  color: #9a978f;
  font-size: 10px;
}

.apps-catalogue .management-list {
  background: transparent;
}

.apps-catalogue-status {
  color: #9a978f;
  font-size: 11px;
}

.billing-summary {
  padding-top: 2px;
}

.billing-summary__row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(24,24,22,.10);
  border-bottom: 1px solid rgba(24,24,22,.10);
}

.billing-summary__label {
  margin: 0 0 7px;
  color: #918e86;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: .02em;
}

.plan-pill {
  min-height: 28px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eae9e4;
  color: #282722;
  font-size: 11px;
  font-weight: 650;
}

.billing-plan-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-plan-note,
.billing-summary__meta {
  margin: 0;
  color: #918e86;
  font-size: 11px;
  line-height: 1.45;
}

.billing-summary__row--secondary {
  border-top: 0;
}

.billing-change-panel {
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(24,24,22,.10);
}

.billing-change-panel__head {
  margin-bottom: 14px;
}

.billing-change-panel__head h2 {
  margin: 0;
  color: #282722;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.billing-change-panel__head p {
  margin: 5px 0 0;
  color: #918e86;
  font-size: 11px;
  line-height: 1.45;
}

.billing-plan-options {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(24,24,22,.08);
}

.billing-plan-option {
  min-height: 66px;
  padding: 12px 2px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(24,24,22,.08);
}

.billing-plan-option__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.billing-plan-option__title {
  color: #292823;
  font-size: 12px;
  font-weight: 640;
}

.billing-plan-option__meta {
  color: #918e86;
  font-size: 10px;
}

.billing-plan-option__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.client-form {
  display: grid;
  gap: 18px;
}

.account-form-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(180px,.55fr);
  gap: 12px;
}

.account-form-grid label {
  display: grid;
  gap: 7px;
  color: #625f58;
  font-size: 11px;
  font-weight: 620;
}

.capability-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.capability-picker legend {
  margin-bottom: 10px;
  color: #625f58;
  font-size: 11px;
  font-weight: 620;
}

#client-capabilities {
  max-height: 340px;
  overflow: auto;
  border-top: 1px solid rgba(24,24,22,.10);
  border-bottom: 1px solid rgba(24,24,22,.10);
}

.capability-group {
  padding: 13px 0;
  border-bottom: 1px solid rgba(24,24,22,.06);
}

.capability-group:last-child { border-bottom: 0; }

.capability-group__title {
  display: block;
  margin: 0 0 8px;
  color: #99968e;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.capability-option {
  padding: 7px 4px;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  cursor: pointer;
}

.capability-option input { margin-top: 3px; }

.capability-option__copy {
  display: grid;
  gap: 2px;
}

.capability-option__copy strong {
  color: #34332e;
  font-size: 11px;
  font-weight: 620;
}

.capability-option__copy small {
  color: #918e86;
  font-size: 10px;
  line-height: 1.4;
}

.token-panel {
  margin-top: 40px;
  padding: 22px;
  display: grid;
  gap: 14px;
  border-radius: 16px;
  background: #1a1a18;
  color: #fff;
}

.token-panel strong {
  font-size: 13px;
  font-weight: 650;
}

.token-panel p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 11px;
}

.token-panel code {
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 10px;
  line-height: 1.5;
  user-select: all;
}

.token-panel .account-action { justify-self: start; }

/* Pricing */
.account-content--wide {
  width: min(100%, 960px);
}

.pricing-head {
  max-width: 680px;
}

.pricing-toolbar {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pricing-billing-toggle {
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  background: #eae9e4;
}

.pricing-toggle__button {
  min-width: 82px;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7d7a73;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 620;
}

.pricing-toggle__button.is-active {
  background: #fff;
  color: #24231f;
  box-shadow: 0 1px 4px rgba(24,24,22,.08);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.pricing-card {
  min-height: 430px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(24,24,22,.10);
  border-radius: 18px;
  background: rgba(255,255,253,.72);
}

.pricing-card--featured {
  background: #eef4ff;
  border-color: rgba(79,130,220,.22);
}

.pricing-card__title {
  margin: 0;
  color: #1f1f1c;
  font-size: 23px;
  line-height: 1;
  font-weight: 680;
  letter-spacing: -.045em;
}

.pricing-card__description {
  min-height: 42px;
  margin: 12px 0 28px;
  color: #78756e;
  font-size: 12px;
  line-height: 1.5;
}

.pricing-card__price {
  min-height: 70px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.pricing-card__price strong {
  color: #171714;
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -.04em;
}

.pricing-card__price span {
  color: #96938b;
  font-size: 10px;
  line-height: 1.4;
}

.pricing-card__action {
  margin: 26px 0 22px;
}

.pricing-card__button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #181816;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
}

.pricing-card--featured .pricing-card__button:not(.pricing-card__button--current) {
  background: #397ff0;
}

.pricing-card__button--current {
  background: transparent;
  border: 1px solid rgba(24,24,22,.10);
  color: #88857d;
  cursor: default;
}

.pricing-card__features {
  margin: auto 0 0;
  padding: 20px 0 0;
  display: grid;
  gap: 12px;
  list-style: none;
  border-top: 1px solid rgba(24,24,22,.08);
}

.pricing-card__features li {
  position: relative;
  padding-left: 16px;
  color: #5e5b54;
  font-size: 11px;
  line-height: 1.45;
}

.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6d6a62;
}

/* Messages */
.channels-main > #state-loading,
.channels-main > #state-unavailable,
.channels-main > #state-auth {
  width: min(460px, 100%);
  margin: 84px auto 0;
}

.channels-main > #state-account {
  width: 100%;
  margin: 0;
}

.channels-main > #state-loading,
.channels-main > #state-unavailable,
.channels-main > #state-auth {
  text-align: center;
}

.route-channels #state-auth {
  padding: 28px;
  border: 1px solid rgba(24,24,22,.08);
  border-radius: 18px;
  background: #fff;
}

.route-channels .account-content {
  width: min(100%, 760px);
}

/*
 * Channels content uses the account primitives (account-section,
 * settings-list, settings-row, account-action). setup.css still loads for the
 * signed-out form, so its legacy #phone-verified / #channel-* decoration is
 * neutralised here rather than restyled.
 */
.route-channels #phone-verified,
.route-channels #channel-connected,
.route-channels #channel-unavailable,
.route-channels #phone-unavailable {
  min-height: 64px;
  padding: 14px 2px;
}

.route-channels #phone-verified::before,
.route-channels #phone-verified::after,
.route-channels #channel-connected::before,
.route-channels #channel-connected::after,
.route-channels #channel-absent::before,
.route-channels #channel-absent::after,
.route-channels #phone-form::before,
.route-channels #code-form::before {
  display: none;
}

/* The signed-out form still uses setup.css fields. */
.route-channels .field {
  max-width: 420px;
  height: 48px;
  border-color: rgba(24,24,22,.12);
  border-radius: 12px;
  background: #fff;
  color: #181816;
}

.route-channels .field:focus {
  border-color: rgba(24,24,22,.3);
  box-shadow: 0 0 0 4px rgba(24,24,22,.05);
}

/* Exactly one child of each Channels list is shown at a time. */
.route-channels .settings-list > .settings-row {
  border-bottom: 0;
}

.route-channels .inline-refresh {
  margin: 0 0 9px;
}

.channels-form,
.route-channels #channel-absent {
  min-height: 0;
  padding: 18px 2px;
  display: grid;
  gap: 9px;
}

.channels-form p {
  margin: 0;
}

.channels-form .account-field {
  max-width: 360px;
}

.channels-form__label {
  color: #625f58;
  font-size: 11px;
  font-weight: 620;
}

.channels-form__actions,
.route-channels .settings-row__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.channels-form__actions {
  margin-top: 4px;
}

.channels-connect {
  display: grid;
  gap: 7px;
  padding-top: 6px;
}

.channels-connect__message {
  max-width: 520px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #efeee9;
  color: #242420;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.channels-signout {
  margin-top: 40px;
}

@media (max-width: 560px) {
  .route-channels .settings-list > .settings-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .route-channels .settings-row__end {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* Profile */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.profile-hero--text {
  display: block;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9e8e2;
  color: #282722;
  font-size: 19px;
  font-weight: 670;
}

.profile-hero__copy {
  min-width: 0;
}

.profile-hero__copy h1 {
  max-width: none;
  margin: 0;
  color: #181816;
  font-size: 32px;
  font-weight: 680;
  letter-spacing: -.05em;
}

.profile-hero__copy p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #7d7a72;
  font-size: 13px;
}

.profile-signout-row {
  width: 100%;
  border: 0;
  border-bottom: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.profile-signout-row:hover .settings-row__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-avatar--editable {
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.profile-avatar--editable img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-form {
  margin: 0;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-field {
  display: grid;
  gap: 7px;
  color: #625f58;
  font-size: 11px;
  font-weight: 620;
}

.profile-photo-editor {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-photo-editor .profile-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
}

.profile-photo-editor__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.profile-form + .account-section {
  margin-top: 54px;
}

.profile-save-status {
  color: #88857d;
  font-size: 10px;
}

.apps-browser-controls {
  grid-template-columns: minmax(0, 1fr) 180px auto;
}

.apps-browser-more {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.advanced-disclosure {
  border-top: 1px solid rgba(24,24,22,.10);
  border-bottom: 1px solid rgba(24,24,22,.10);
}

.advanced-disclosure summary {
  min-height: 68px;
  padding: 14px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.advanced-disclosure summary::-webkit-details-marker { display: none; }

.advanced-disclosure summary span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.advanced-disclosure summary strong {
  color: #292823;
  font-size: 13px;
  font-weight: 630;
}

.advanced-disclosure summary small {
  color: #918e86;
  font-size: 10px;
  line-height: 1.4;
}

.advanced-disclosure__action {
  color: #69665f;
  font-size: 11px;
  font-weight: 620;
}

.advanced-disclosure[open] .advanced-disclosure__action::after {
  content: "d";
  font-size: 0;
}

.advanced-disclosure__body {
  padding: 8px 2px 24px;
}

/* Loading spinner is deliberately small and local. */
.spinner {
  width: 24px;
  height: 24px;
  margin: 18px auto 0;
  border-width: 2px;
  border-color: rgba(24,24,22,.12);
  border-top-color: #66645d;
}

.inline-refresh {
  margin: 0;
  color: #9a978f;
  font-size: 12px;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: account-page-out 90ms ease-out both;
}

::view-transition-new(root) {
  animation: account-page-in 145ms cubic-bezier(.2,.75,.25,1) both;
}

@keyframes account-page-out {
  to {
    opacity: .96;
    transform: translateY(-1px);
  }
}

@keyframes account-page-in {
  from {
    opacity: .88;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 820px) {
  .dashboard-main,
  .profile-main,
  .channels-main,
  .account-surface-main {
    width: min(100% - 28px, 720px);
  }

  .account-top {
    width: 100%;
    padding-inline: 14px;
  }

  .account-frame {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .account-nav {
    position: static;
    height: auto;
    padding: 18px 0 0;
    overflow-x: auto;
    overflow-y: visible;
    border-bottom: 1px solid rgba(24,24,22,.08);
  }

  .account-nav__sticky { position: static; }

  .account-nav__label,
  .account-nav__download,
  .account-nav__meta {
    display: none;
  }
  .account-nav__link--separated {
    margin-top: 0;
    padding-top: 8px;
    min-height: 38px;
    border-top: 0;
    border-radius: 9px 9px 0 0;
  }


  .account-nav__links {
    display: flex;
    gap: 2px;
    min-width: max-content;
  }

  .account-nav__link {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 9px 9px 0 0;
  }

  .account-nav__link--active {
    background: transparent;
    box-shadow: inset 0 -2px #181816;
  }

  .account-nav__icon { display: none; }

  .account-content {
    padding: 44px 0 72px;
  }

  .account-page-head {
    margin-bottom: 34px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .download-panel .account-action {
    justify-self: start;
  }

  .channels-main > #state-loading,
  .channels-main > #state-unavailable,
  .channels-main > #state-auth {
    margin-top: 48px;
  }
}

@media (max-width: 560px) {
  .account-top {
    min-height: 64px;
  }

  .account-top .brand__mark { width: 32px; }
  .environment-badge { display: none; }

  .dashboard-public {
    min-height: calc(100svh - 65px);
    padding: 44px 0 72px;
  }

  .dashboard-public h1 {
    font-size: clamp(46px, 15vw, 66px);
  }

  .dashboard-public__actions {
    display: grid;
  }

  .dashboard-public__actions .account-action {
    width: 100%;
  }

  .account-content {
    padding-top: 36px;
  }

  .account-page-head h1 {
    font-size: 38px;
  }

  .connections-head { align-items: flex-start; flex-direction: column; }
  .connections-head .account-action { width: 100%; }
  .connection-permission { grid-template-columns: 1fr; gap: 9px; }
  .connection-permission .account-field { width: 100%; }
  .blocked-people summary { align-items: flex-start; flex-wrap: wrap; }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .management-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .management-row__end {
    justify-content: flex-start;
  }

  .account-search,
  .account-form-grid,
  .profile-form-grid,
  .apps-browser-controls {
    grid-template-columns: 1fr;
  }

  .settings-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .settings-row__end {
    grid-column: 2;
    justify-content: flex-start;
  }

  .settings-row__value {
    max-width: none;
    text-align: left;
  }

  .download-panel {
    margin-top: 34px;
    padding: 22px;
    border-radius: 16px;
  }

  .profile-menu {
    position: fixed;
    top: 58px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .profile-hero {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 54px;
    height: 54px;
  }

  .profile-photo-editor .profile-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .billing-summary__row {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .profile-hero__copy h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  .account-refresh__spinner {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .account-profile__button,
  .account-action,
  .account-nav__link {
    transition: none;
  }
}

@media (prefers-contrast: more) {
  .account-top,
  .settings-list {
    border-color: rgba(24,24,22,.26);
  }

  .account-nav__link--active {
    outline: 1px solid rgba(24,24,22,.2);
  }
}

/* ── Company Brain ─────────────────────────────────────────────────────
   Company identity, Ask, About and People: four quiet sections, no
   dashboard. The logo is the company's own mark, shown inline. */
.company-picker { display: grid; gap: 7px; max-width: 320px; margin-bottom: 28px; color: #5f5c55; font-size: 11px; font-weight: 620; }
.company-identity__card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
.company-identity__card:has(> [hidden]:first-child) { grid-template-columns: minmax(0, 1fr); }
.company-identity__logo { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #f3f2ee; }
.company-identity__logo img { width: 48px; height: 48px; object-fit: contain; }
.company-identity__text { min-width: 0; display: grid; gap: 6px; }
.company-identity__text h2 { margin: 0; color: #181816; font-size: 20px; font-weight: 660; letter-spacing: -.03em; }
.company-identity__description { margin: 0; max-width: 600px; color: #4d4b45; font-size: 13px; line-height: 1.55; }
.company-identity__meta { margin: 0; color: #75726b; font-size: 12px; overflow-wrap: anywhere; }
.company-identity__provenance { margin: 2px 0 0; color: #9a978f; font-size: 11px; }
.company-identity__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.company-setup { display: grid; gap: 12px; max-width: 520px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(24,24,22,.10); }
.company-ask { margin-bottom: 0; }
.company-answer { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid rgba(24,24,22,.12); color: #2b2a26; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.company-answer--pending { color: #8b8880; }
.company-about { margin: 0; max-width: 640px; color: #3d3b36; font-size: 13px; line-height: 1.6; }
.company-people { margin: 0; padding: 0; list-style: none; }
.company-people .management-row { min-height: 56px; }

@media (max-width: 560px) {
  .company-identity__actions .account-action { flex: 1 1 auto; }
  .company-ask { grid-template-columns: minmax(0, 1fr); }
  .company-ask .account-action { width: 100%; }
}
