/* Account surfaces inherit the pricing page's brand and theme tokens. */
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.account-page {
  background:
    radial-gradient(ellipse at 78% 8%, var(--accent-soft), transparent 48%),
    var(--page);
  min-height: 100dvh;
  color: var(--ink);
}
.account-shell {
  width: min(1320px, 100%);
  margin: auto;
  padding: clamp(18px, 3.5vw, 44px);
  min-height: 100dvh;
}
.account-page .plans-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.account-page .brand img {
  width: 44px;
  height: 44px;
}
.account-page .header-actions {
  gap: 8px;
}
.account-page #dashboard {
  background: var(--button);
  color: var(--button-ink);
  border-color: transparent;
}
.account-page a {
  text-decoration: none;
}
.account-page h1,
.account-page h2,
.account-page h3 {
  color: var(--ink);
}
.account-page h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 8px 0 10px;
  text-wrap: balance;
}
.account-page h2 {
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.account-page h3 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0;
}
.account-page p {
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0;
}
.account-page .eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin: 0 0 10px;
}
.account-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 36px 0 28px;
}
.account-heading > div > p:last-child {
  margin: 0;
  font-size: 14px;
}
.suite-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 12px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.ui-icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.suite-badge .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.account-layout {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.account-sidebar {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 16px 10px 10px;
  overflow: hidden;
}
.member-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 20px;
  min-width: 0;
}
.member-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--accent), #7852d2);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 20px #7852d220;
}
.member-summary > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.member-summary strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.member-summary > div > span {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-nav {
  display: grid;
  gap: 5px;
}
.account-page .account-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--muted);
  padding: 13px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
  width: 100%;
  min-height: 48px;
}
.account-nav .ui-icon {
  width: 18px;
  height: 18px;
}
.nav-arrow {
  margin-inline-start: auto;
  font-size: 20px;
  opacity: 0;
}
.account-page .account-nav button[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
}
.account-nav button[aria-selected="true"] .nav-arrow {
  opacity: 1;
}
.account-page .account-nav button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.shared-note {
  display: flex;
  gap: 9px;
  margin: 22px 8px 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.shared-note > .ui-icon {
  color: var(--accent);
  width: 15px;
  height: 15px;
  margin-top: 4px;
}
.shared-note p {
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
}
.shared-note p > span {
  display: block;
  margin-top: 5px;
  opacity: 0.8;
}
.account-content,
.account-content > section {
  min-width: 0;
}
.section-heading {
  margin-bottom: 20px;
}
.section-heading > p,
.section-heading > div > p:not(.eyebrow) {
  font-size: 13px;
  margin: 5px 0 0;
}
.account-page .panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  margin: 0 0 18px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel-heading > div {
  min-width: 0;
}
.panel-heading p {
  font-size: 11px;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.icon-tile {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent);
}
.count-badge {
  margin-inline-start: auto;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 11px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.workspace-grid > .panel {
  display: flex;
  flex-direction: column;
}
.account-page form {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  min-width: 0;
}
.account-page .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.account-page label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  min-width: 0;
}
.account-page input,
.account-page select,
.account-page textarea {
  font: inherit;
  font-size: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--page);
  color: var(--ink);
  padding: 12px 13px;
  min-height: 46px;
  outline-offset: 3px;
}
.account-page textarea {
  resize: vertical;
}
.account-page input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.account-page input:hover,
.account-page select:hover,
.account-page textarea:hover {
  border-color: var(--accent);
}
.account-page button,
.account-page .button {
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  line-height: 1.4;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.account-page button:hover,
.account-page .button:hover {
  border-color: var(--accent);
}
.account-page button:active,
.account-page .button:active {
  transform: translateY(1px);
}
.account-page button[type="submit"],
.account-page .primary {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-ink);
}
.account-page button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.account-page .secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.account-page form > button,
.account-page form > .button {
  justify-self: start;
}
.account-page #location-picker {
  margin: 0;
  gap: 16px;
}
.account-page #location-picker > button,
.account-page #location-picker > .button {
  width: 100%;
}
.location-options {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.account-page .location-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--page);
  border: 1px solid var(--line);
  padding: 16px 14px;
  border-radius: 13px;
  cursor: pointer;
  min-height: 84px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.account-page .location-card:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.location-card > input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.location-card:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.location-symbol {
  color: var(--accent);
  flex: none;
}
.location-copy {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.location-copy strong {
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.location-copy > span {
  font-size: 10px;
  font-weight: 400;
}
.radio-mark {
  flex: none;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.location-card input:checked ~ .radio-mark {
  border-color: var(--accent);
}
.location-card input:checked ~ .radio-mark:after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.account-page .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  margin-top: 18px;
  color: var(--accent);
}
.text-link .ui-icon {
  width: 15px;
  height: 15px;
}
.account-page .plan-preview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 90% 0%,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 70%
    ),
    var(--surface);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.plan-preview h3 {
  font-size: 21px;
  letter-spacing: -0.035em;
  margin: 8px 0;
}
.plan-orbit {
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 22px;
}
.plan-preview .plan-preview-price {
  color: var(--ink);
  margin: 8px 0 0;
  display: flex;
  gap: 5px;
  align-items: baseline;
  flex-wrap: wrap;
}
.plan-preview-price strong {
  font-size: 31px;
  letter-spacing: -0.045em;
}
.plan-preview-price > span {
  font-size: 11px;
  color: var(--muted);
}
.account-page .fine-print {
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.plan-preview > .fine-print:last-child {
  margin: 12px 0 0;
}
.plan-preview .button {
  width: 100%;
  margin-top: auto;
}
.plan-capacity {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  margin: 16px 0 24px;
}
.plan-capacity .ui-icon {
  width: 15px;
  height: 15px;
}
.create-panel summary {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.create-panel summary::-webkit-details-marker {
  display: none;
}
.create-panel summary strong {
  font-size: 12px;
  color: var(--ink);
}
.create-panel summary small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 5px;
}
.expand-mark {
  margin-inline-start: auto;
  color: var(--accent);
  font-size: 24px;
  font-weight: 350;
}
.create-panel[open] .expand-mark {
  transform: rotate(45deg);
}
.account-page .create-panel {
  padding: 18px 24px;
}
.account-page #create-location {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.form-footer .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.upload-field input {
  padding: 8px;
  font-size: 11px;
}
.upload-field input::file-selector-button {
  font: inherit;
  border: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px;
  cursor: pointer;
  margin-inline-end: 8px;
}
.security-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.security-row p {
  font-size: 12px;
  margin-bottom: 0;
}
.security-row button {
  flex: none;
}
.account-page .danger-button {
  color: var(--ink);
  background: transparent;
}
.empty-state {
  text-align: center;
  padding: 28px 16px;
}
.empty-state > .ui-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 14px;
}
.empty-state h3 {
  font-size: 14px;
}
.empty-state p {
  font-size: 12px;
  max-width: 36ch;
  margin: 8px auto 0;
}
.account-page .notice {
  font-size: 13px;
  line-height: 1.6;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}
.account-page .error {
  border-color: #dc6087;
  color: #f4a4bc;
}
:root[data-theme="light"] .account-page .error {
  color: #a6214a;
}
#message:empty {
  display: none;
}
.account-page :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.account-page [hidden] {
  display: none !important;
}
.account-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 22px;
}
.account-footer > span:first-child {
  font-weight: 750;
  letter-spacing: 0.02em;
}
.account-footer > span > span {
  color: var(--accent);
  margin: 0 7px;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  display: block;
  padding: 12px;
  background: var(--surface);
  color: var(--accent);
}
.loading-state {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
}
.loading-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: account-spin 0.8s linear infinite;
}
@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 64px 0 20px;
  align-items: start;
}
.auth-intro {
  padding-top: 28px;
}
.auth-intro h1 {
  font-size: clamp(36px, 4.3vw, 58px);
  max-width: 10ch;
}
.auth-intro > p:last-child {
  max-width: 39ch;
  font-size: 14px;
}
.auth-forms {
  min-width: 0;
}
.auth-forms .panel {
  padding: 28px;
}
.auth-forms h2 {
  font-size: 23px;
}
.auth-forms #google {
  width: 100%;
  margin: 16px 0 8px;
}
.auth-forms #forgot {
  width: 100%;
  border: 0;
  background: none;
  color: var(--accent);
}
.auth-forms form > button {
  width: 100%;
}
.auth-forms summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.auth-layout > #message {
  grid-column: 1/-1;
  margin: 0;
}
.account-page .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  font-size: 11px;
}
.account-page .check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: none;
  margin: 2px 0 0;
}
@media (max-width: 1100px) {
  .account-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 22px;
  }
  .account-page .panel {
    padding: 20px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .account-page .plan-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
    align-items: center;
  }
  .plan-orbit {
    display: none;
  }
  .plan-preview > .eyebrow,
  .plan-preview > h3 {
    grid-column: 1;
  }
  .plan-preview > .plan-preview-price {
    grid-column: 2;
    grid-row: 1/3;
    justify-self: end;
  }
  .plan-preview > .button {
    grid-column: 2;
    grid-row: 3/5;
    margin-top: 10px;
  }
  .plan-preview > .fine-print:last-child {
    grid-column: 1/-1;
  }
  .plan-capacity {
    margin: 8px 0;
  }
  .suite-badge {
    display: none;
  }
}
@media (max-width: 760px) {
  .account-shell {
    padding: 20px;
  }
  .account-page .plans-header {
    gap: 16px;
    padding-bottom: 20px;
  }
  .account-page .header-actions {
    gap: 6px;
  }
  .account-page .header-actions > * {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 44px;
  }
  .account-heading {
    padding: 26px 0 22px;
  }
  .account-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .account-sidebar {
    position: static;
    padding: 7px;
    border-radius: 15px;
  }
  .member-summary,
  .shared-note {
    display: none;
  }
  .account-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .account-page .account-nav button {
    flex: 1;
    min-width: 0;
    width: auto;
    flex-direction: column;
    gap: 5px;
    padding: 9px 5px;
    font-size: clamp(9px, 2.6vw, 10px);
    min-height: 61px;
    white-space: nowrap;
  }
  .account-nav .nav-arrow {
    display: none;
  }
  .section-heading {
    margin-bottom: 16px;
  }
  .account-footer {
    margin-top: 30px;
  }
  .auth-layout {
    gap: 28px;
    padding-top: 30px;
    grid-template-columns: 1fr;
  }
  .auth-intro {
    padding: 0;
  }
  .auth-intro h1 {
    max-width: 15ch;
    font-size: 36px;
  }
  .auth-intro > p:last-child {
    max-width: 100%;
  }
  .auth-forms .panel {
    padding: 22px;
  }
}
@media (max-width: 480px) {
  .account-shell {
    padding: 16px;
  }
  .account-page .brand {
    font-size: 14px;
  }
  .account-page .brand img {
    width: 36px;
    height: 36px;
  }
  .account-page .brand small {
    font-size: 9px;
  }
  .account-page .plans-header {
    align-items: center;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .account-page .header-actions #dashboard {
    margin-inline-start: auto;
  }
  .account-heading h1 {
    font-size: 29px;
  }
  .account-heading > div > p:last-child {
    font-size: 12px;
  }
  .account-page .panel {
    padding: 18px;
    border-radius: 16px;
  }
  .account-page .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-footer,
  .security-row {
    align-items: stretch;
    flex-direction: column;
  }
  .form-footer > button,
  .security-row > button {
    width: 100%;
  }
  .account-page #create-location {
    grid-template-columns: 1fr;
  }
  .account-page #create-location > button {
    width: 100%;
  }
  .account-page .plan-preview {
    display: flex;
    align-items: stretch;
  }
  .plan-preview > .plan-preview-price {
    justify-content: flex-start;
  }
  .plan-preview > .button {
    margin-top: 18px;
  }
  .plan-capacity {
    margin: 12px 0;
  }
  .account-footer {
    font-size: 9px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .create-panel summary small {
    font-size: 10px;
  }
  .icon-tile {
    width: 36px;
    height: 36px;
  }
  .account-page button,
  .account-page .button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .account-page * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
