@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-variable.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --muted: #626b79;
  --line: #e5e5e5;
  --blue: #2563eb;
  --surface: #fff;
  --bg: #f8fafc;
  --primary: #2563eb;
  --subtle-ink: #525966;
  --soft: #f5f5f5;
  --control-line: #e5e5e5;
  --control-hover-line: #b7b9bf;
  --label: #222833;
  --placeholder: #9aa2ae;
  --focus: #c6d8ff;
  --primary-hover: #1d4ed8;
  --selected-bg: #eff5ff;
  --selected-line: #dee8fc;
  --selected-ink: #2459b1;
  --danger: #b42318;
  --danger-bg: #fff5f5;
  --danger-line: #e7d6d6;
  --notice-bg: #f5f8ff;
  --notice-line: #d9e4f7;
  --notice-ink: #345079;
  --alert-bg: #fff8f7;
  --alert-line: #f0d6d3;
  --alert-ink: #a4382d;
  --success-bg: #f2faf5;
  --success-line: #d6eade;
  --success-ink: #28704c;
  --badge-bg: #f5f5f5;
  --badge-line: #e5e5e5;
  --list-line: #edf0f3;
  --avatar-bg: #eef2f8;
  --avatar-ink: #475569;
  --work-avatar-bg: #e0e7ff;
  --work-avatar-ink: #4338ca;
  --skeleton-base: #e9edf2;
  --skeleton-shine: #f6f8fa;
  --menu-hover: #2563eb0a;
  --radius: 8px;
  font:
    13px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --sidebar: #fafafa;
  --sidebar-width: 224px;
  --surface-shadow: 0 1px 2px rgb(0 0 0 / 3%), 0 4px 16px rgb(0 0 0 / 2.5%);
  --control-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --line: #27272a;
  --blue: #8ab4ff;
  --surface: #121214;
  --bg: #0c0c0e;
  --subtle-ink: #d4d4d8;
  --soft: #1a1a1e;
  --control-line: #27272a;
  --control-hover-line: #52525b;
  --label: #e4e4e7;
  --placeholder: #85858e;
  --focus: #4065a2;
  --selected-bg: #1b2c48;
  --selected-line: #324d76;
  --selected-ink: #9fc1ff;
  --danger: #ffaaa2;
  --danger-bg: #321e25;
  --danger-line: #693640;
  --notice-bg: #19283d;
  --notice-line: #344c71;
  --notice-ink: #b7d0f5;
  --alert-bg: #321e25;
  --alert-line: #693640;
  --alert-ink: #ffb1a8;
  --success-bg: #152d26;
  --success-line: #2d5746;
  --success-ink: #95d7b2;
  --badge-bg: #1a1a1e;
  --badge-line: #27272a;
  --list-line: #27272a;
  --avatar-bg: #23232b;
  --avatar-ink: #d4d4d8;
  --work-avatar-bg: #30305c;
  --work-avatar-ink: #c5beff;
  --skeleton-base: #202024;
  --skeleton-shine: #2c2c32;
  --menu-hover: #8ab4ff12;
  --sidebar: #0c0c0e;
  --surface-shadow: 0 1px 2px rgb(0 0 0 / 15%), 0 4px 16px rgb(0 0 0 / 8%);
  --control-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--control-hover-line) transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -0.01em;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.icon {
  flex: 0 0 auto;
  vertical-align: middle;
}
.app-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: auto;
  height: 21px;
  max-width: 132px;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle-ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.product-link {
  font-size: 12px;
  color: var(--muted);
}
.product-link span {
  margin-left: 5px;
}
.account-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--subtle-ink);
  font-size: 12px;
}
.account-switch:hover {
  text-decoration: none;
  color: var(--ink);
}
.app-frame {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100svh - 113px);
}
nav {
  padding: 20px 12px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 113px);
  position: sticky;
  top: 56px;
  align-self: start;
}
nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 5px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--subtle-ink);
  font-size: 12.5px;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
}
nav a:hover {
  color: var(--ink);
  background: var(--soft);
  text-decoration: none;
}
nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
nav .icon {
  width: 17px;
  height: 17px;
}
main {
  width: 100%;
  max-width: 1184px;
  min-width: 0;
  margin: 0 auto;
  padding: 32px 36px 48px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
h2 {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
p {
  margin-bottom: 18px;
}
.muted,
small {
  color: var(--muted);
}
.subtle,
.small {
  font-size: 12px;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 20px 0;
  background: var(--surface);
  box-shadow: var(--surface-shadow);
}
.card > .muted {
  font-size: 13px;
  line-height: 1.65;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.card-heading .icon {
  color: var(--subtle-ink);
  width: 18px;
  height: 18px;
}
.card-heading h2 {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.grid .card {
  margin: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
label {
  display: block;
  color: var(--label);
  font-size: 12px;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  display: block;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  margin-top: 6px;
  min-height: 36px;
  box-shadow: var(--control-shadow);
  font-size: 13px;
}
input::placeholder {
  color: var(--placeholder);
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--primary) 18%, transparent);
  outline-offset: 0;
  border-color: var(--blue);
}
input[type="checkbox"] {
  display: inline-block;
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 2px 9px 0 0;
  accent-color: var(--blue);
  vertical-align: top;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  box-shadow: var(--control-shadow);
}
button:hover,
.button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: none;
}
button .icon,
.button .icon {
  width: 16px;
  height: 16px;
}
button.secondary,
.button.secondary {
  background: var(--surface);
  border-color: var(--control-line);
  color: var(--ink);
  box-shadow: var(--control-shadow);
}
button.secondary:hover,
.button.secondary:hover {
  background: var(--bg);
  border-color: var(--control-hover-line);
}
button.danger {
  border-color: var(--danger-line);
  color: var(--danger);
  background: var(--surface);
}
button.danger:hover {
  background: var(--danger-bg);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.actions a {
  font-size: 13px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.notice,
.alert {
  padding: 12px 14px;
  border: 1px solid var(--notice-line);
  border-radius: 6px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.65;
}
.alert {
  background: var(--alert-bg);
  border-color: var(--alert-line);
  color: var(--alert-ink);
}
.success {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--success-ink);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--badge-line);
  border-radius: 5px;
  background: var(--badge-bg);
  font-size: 10px;
  font-weight: 500;
  color: var(--subtle-ink);
  line-height: 1.6;
  text-transform: capitalize;
  gap: 4px;
}
.badge.work {
  background: var(--work-avatar-bg);
  border-color: color-mix(in srgb, var(--work-avatar-ink) 20%, transparent);
  color: var(--work-avatar-ink);
}
.badge.enabled {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--success-ink);
}
.code,
code {
  font:
    12px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  border-radius: 6px;
  background: var(--bg);
}
.list {
  padding: 17px 0;
  border-bottom: 1px solid var(--list-line);
}
.list:last-child {
  border-bottom: 0;
}
.list p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 12px;
}
.list strong {
  font-size: 13px;
  font-weight: 500;
}
.qr {
  max-width: 200px;
  display: block;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.avatar {
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--avatar-bg);
  color: var(--avatar-ink);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.profile-panel {
  display: flex;
  align-items: center;
  gap: 17px;
}
.profile-panel h2 {
  font-size: 17px;
  margin: 0 0 3px;
}
.profile-panel p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.profile-panel .badge {
  margin-left: 8px;
  vertical-align: middle;
}
.profile-panel > button {
  margin-left: auto;
}
.profile-info {
  min-width: 0;
}
.profile-info p {
  overflow-wrap: anywhere;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--list-line);
  font-size: 12px;
}
.summary-row:last-of-type {
  border-bottom: 0;
}
.summary-row > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.summary-row .icon {
  width: 16px;
  height: 16px;
  color: var(--placeholder);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  margin-top: 17px;
}
.card-link .icon {
  width: 14px;
  height: 14px;
}
.product-icon {
  display: inline-flex;
  padding: 10px;
  background: var(--selected-bg);
  border-radius: 8px;
  color: var(--blue);
  margin-bottom: 18px;
  margin: 0;
}
.card-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.stat {
  display: block;
  margin: 16px 0 5px;
  font-size: 25px;
  letter-spacing: -0.6px;
  font-weight: 500;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--placeholder);
  background: var(--surface);
  font-size: 11px;
  min-height: 57px;
}
body[data-layout="auth"] {
  background: var(--bg);
}
body[data-layout="auth"] .app-header,
body[data-layout="auth"] nav {
  display: none;
}
body[data-layout="auth"] .app-frame {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: calc(100svh - 64px);
}
body[data-layout="auth"] main {
  max-width: 440px;
  padding: 30px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--surface-shadow);
}
body[data-layout="auth"] footer {
  max-width: 440px;
  margin: 0 auto;
  border: 0;
  padding: 14px 4px;
  background: transparent;
  flex-wrap: wrap;
}
body[data-layout="auth"] footer > span:last-child {
  display: initial;
}
body[data-layout="auth"] h1 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-brand {
  display: block;
  margin-bottom: 28px;
}
.auth-brand img {
  height: 25px;
  width: auto;
  max-width: 160px;
}
.auth-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 24px;
}
body[data-layout="auth"] .card {
  padding: 0;
  border: 0;
  box-shadow: none;
  margin: 24px 0 0;
  border-radius: 0;
}
body[data-layout="auth"] .stack {
  gap: 16px;
}
body[data-layout="auth"] .actions {
  justify-content: center;
  margin-top: 24px;
}
body[data-layout="auth"] .actions a {
  font-size: 13px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.label-row a {
  font-size: 12px;
  font-weight: 400;
}
.password-control {
  position: relative;
}
.password-control input {
  padding-right: 42px;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  color: var(--placeholder);
  background: transparent;
  border: 0;
}
.password-toggle:hover {
  color: var(--ink);
  background: var(--soft);
  border: 0;
}
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--placeholder);
  font-size: 11px;
  margin: 22px 0;
}
.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 0;
}
.auth-switch a {
  font-weight: 500;
  margin-left: 3px;
}
.demo-panel {
  margin-top: 24px;
  border: 1px dashed var(--control-line);
  border-radius: 7px;
  background: var(--soft);
  padding: 12px;
}
.demo-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 5px;
}
.demo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a547;
}
.demo-account {
  padding-top: 11px;
}
.demo-account + .demo-account {
  border-top: 1px solid var(--list-line);
  margin-top: 11px;
}
.demo-account .row {
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}
.demo-account strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
}
.demo-account code {
  display: block;
  color: var(--subtle-ink);
  font-size: 11px;
  line-height: 1.8;
}
.demo-account button {
  min-height: 27px;
  padding: 3px 8px;
  font-size: 11px;
}
.account-choice {
  display: flex;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 13px;
  margin-top: 10px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  gap: 12px;
}
.account-choice:hover {
  background: var(--bg);
  border-color: var(--control-hover-line);
}
.account-choice strong,
.account-choice small {
  display: block;
}
.account-choice small {
  font-weight: 400;
  margin-top: 3px;
}
.account-choice > .icon:last-child {
  margin-left: auto;
  color: var(--placeholder);
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (max-width: 850px) {
  main {
    padding: 28px 24px 40px;
  }
  .app-frame {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .header-actions .product-link {
    display: none;
  }
}
@media (max-width: 600px) {
  .app-header {
    padding: 0 18px;
  }
  .brand {
    gap: 11px;
  }
  .brand img {
    height: 20px;
  }
  .brand span {
    padding-left: 11px;
    font-size: 12px;
  }
  .account-switch > span:last-child {
    display: none;
  }
  .app-frame {
    display: block;
  }
  nav {
    display: flex;
    gap: 6px;
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: static;
    min-height: 0;
    flex-direction: row;
  }
  nav a {
    flex: 1;
    justify-content: center;
    padding: 8px;
    margin: 0;
    gap: 7px;
    font-size: 12px;
  }
  nav .icon {
    width: 15px;
    height: 15px;
  }
  main {
    padding: 28px 18px 40px;
  }
  h1 {
    font-size: 20px;
  }
  .card {
    padding: 20px;
  }
  .profile-panel {
    flex-wrap: wrap;
    gap: 13px;
  }
  .profile-panel > button {
    margin-left: 61px;
  }
  .profile-panel .badge {
    margin-left: 5px;
  }
  .row.between {
    align-items: flex-start;
  }
  footer {
    padding: 16px 18px;
  }
  footer > span:last-child {
    display: none;
  }
  body[data-layout="auth"] .app-frame {
    display: grid;
  }
}
.saved-account-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-top: 10px;
}
.saved-account-row .account-choice {
  margin: 0;
  min-width: 0;
}
.saved-account-row .account-choice > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.saved-remove {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
  width: 34px;
  flex: 0 0 auto;
  padding: 5px;
}
.saved-remove:hover {
  background: var(--alert-bg);
  color: var(--danger);
  border-color: var(--danger-line);
}
.add-account {
  margin-top: 20px;
}

[hidden] {
  display: none !important;
}
button,
.button,
nav a {
  transition:
    background-color 140ms,
    border-color 140ms,
    color 140ms,
    box-shadow 140ms,
    transform 100ms;
}
button:active:not(:disabled),
.button:active {
  transform: translateY(1px);
}
button.is-pending {
  cursor: progress;
  opacity: 0.85;
}
.spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.network-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms;
}
.network-progress span {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--blue);
  transform: translateX(-100%);
}
body[data-network="busy"] .network-progress {
  opacity: 1;
}
body[data-network="busy"] .network-progress span {
  animation: request-progress 1.2s ease-in-out infinite;
}
@keyframes request-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(390%);
  }
}
.navigation-status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 4px 24px #00000012;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--muted);
  z-index: 100;
  font-size: 12px;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}
.page-enter {
  animation: page-enter 180ms ease-out both;
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.skeleton {
  display: block;
  border-radius: 5px;
  background: linear-gradient(
    100deg,
    var(--skeleton-base) 30%,
    var(--skeleton-shine) 45%,
    var(--skeleton-base) 60%
  );
  background-size: 230% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
}
@keyframes skeleton-wave {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.boot-loading {
  max-width: 390px;
  margin: 48px auto 0;
}
.skeleton-brand {
  height: 22px;
  width: 110px;
  margin: 0 auto 36px;
}
.skeleton-heading {
  height: 26px;
  width: 55%;
  margin: 0 auto 16px;
}
.skeleton-copy {
  height: 13px;
  width: 85%;
  margin: 0 auto 28px;
}
.skeleton-card {
  display: grid;
  gap: 24px;
  min-height: 245px;
}
.skeleton-field {
  height: 42px;
}
.skeleton-button {
  height: 38px;
  width: 100%;
}
.loading-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.account-menu {
  position: relative;
}
.account-trigger {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 4px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 0 #2563eb14;
}
.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  background: transparent;
  box-shadow: 0 0 0 4px #2563eb14;
}
.account-trigger .avatar {
  width: 32px;
  height: 32px;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.avatar.work-avatar {
  background: var(--work-avatar-bg);
  color: var(--work-avatar-ink);
}
.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 86px);
  overflow-y: auto;
  z-index: 50;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow:
    0 8px 32px #15223826,
    0 2px 6px #1522380d;
  transform-origin: top right;
  animation: account-popover-in 150ms ease-out;
}
@keyframes account-popover-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.account-profile {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 23px 20px;
}
.account-profile .profile-avatar {
  width: 78px;
  height: 78px;
  font-size: 26px;
  flex: 0 0 auto;
}
.account-profile-details {
  min-width: 0;
  display: grid;
  align-items: start;
  justify-items: start;
  padding-top: 1px;
}
.account-profile-details > strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.account-email {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.account-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.account-kind .icon {
  width: 13px;
  height: 13px;
}
.account-managed {
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-profile .manage-account {
  margin-top: 12px;
  padding: 7px 15px;
  min-height: 32px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.remembered-accounts {
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.account-popover .account-choice {
  width: 100%;
  margin: 0;
  padding: 15px 20px;
  gap: 12px;
  min-height: 76px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.account-popover .account-choice:hover {
  background: var(--menu-hover);
}
.account-choice-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}
.account-popover .account-choice strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-popover .account-choice small {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-popover .account-choice .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.choice-affordance {
  opacity: 0;
  color: var(--blue);
  transition: opacity 140ms;
}
.account-choice:hover .choice-affordance,
.account-choice:focus-visible .choice-affordance {
  opacity: 1;
}
.choose-account-link,
.account-menu-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  font-size: 12px;
  color: var(--muted);
  transition:
    background 140ms,
    color 140ms;
}
.choose-account-link:hover,
.account-menu-links a:hover {
  background: var(--menu-hover);
  color: var(--ink);
  text-decoration: none;
}
.choose-account-link .icon,
.account-menu-links .icon {
  width: 15px;
  height: 15px;
}
.account-menu-links {
  padding-block: 5px;
}
.account-menu-links a > .icon:last-child {
  margin-left: auto;
}
.account-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  gap: 12px;
}
.account-menu-footer .button,
.account-menu-footer button {
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  min-height: 32px;
  line-height: 1.4;
}
.account-menu-footer .icon {
  width: 14px;
  height: 14px;
}
.menu-skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.skeleton-lines {
  flex: 1;
  display: grid;
  gap: 8px;
}
.skeleton-lines .skeleton {
  height: 11px;
  width: 90%;
}
.skeleton-lines .skeleton:last-child {
  width: 60%;
}
.skeleton-page-description {
  width: 250px;
  max-width: 85%;
  height: 13px;
  margin: 16px 0 28px;
}
.skeleton-section {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 220px;
}
.skeleton-section-title {
  height: 18px;
  width: 45%;
}
.skeleton-section-copy {
  height: 12px;
  width: 95%;
}
.skeleton-section-copy.short {
  width: 65%;
}
.skeleton-section .skeleton-field {
  margin-top: 18px;
}
.menu-error {
  padding: 12px 20px;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 12px;
}
.menu-retry {
  padding: 14px 20px;
  color: var(--muted);
  font-size: 12px;
}
.menu-retry p {
  margin: 0 0 5px;
}
.text-button {
  padding: 2px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
}
.text-button:hover {
  background: transparent;
  text-decoration: underline;
}
@media (max-width: 480px) {
  .account-profile .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 23px;
  }
  .account-profile {
    gap: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body[data-network="busy"] .network-progress span {
    width: 100%;
    transform: none;
    opacity: 0.7;
  }
  .spinner {
    border-right-color: currentColor;
    opacity: 0.6;
  }
}

/* Use the supplied wordmarks so the blue symbol keeps its original colors. */
.brand-logo-dark {
  display: none;
}
:root[data-theme="dark"] .brand-logo-light {
  display: none;
}
:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}
.qr {
  background: white;
  padding: 8px;
  border-radius: 6px;
}
.appearance-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.appearance-control select {
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 4px 24px 4px 8px;
  font-size: 12px;
  box-shadow: none;
}
.signup-invitation-note {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
}

/* Console chrome and account panels share Cloud's neutral surface hierarchy. */
::selection {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 110;
  transform: translateY(-150%);
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.skip-link:focus {
  transform: none;
}
.header-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.header-context strong {
  color: var(--ink);
  font-weight: 500;
}
.header-actions .product-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--ink);
  box-shadow: var(--control-shadow);
}
.header-actions .product-link:hover {
  background: var(--soft);
  text-decoration: none;
}
.nav-section-label,
.panel-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-section-label {
  margin: 2px 12px 12px;
}
.nav-items {
  flex: 1;
}
.nav-items a > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
}
.sidebar-context-icon,
.stat-icon,
.panel-icon,
.device-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  color: var(--muted);
}
.sidebar-context-icon .icon,
.stat-icon .icon,
.panel-icon .icon,
.device-icon .icon {
  width: 16px;
  height: 16px;
}
.sidebar-context > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.sidebar-context strong {
  font-size: 11px;
  font-weight: 500;
}
.sidebar-context > div > span {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-heading {
  margin-bottom: 24px;
}
.page-description {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 680px;
}
.page-heading > .skeleton {
  height: 20px;
  width: 360px;
  max-width: 80%;
  margin: 0;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.panel-heading > div {
  min-width: 0;
}
.panel-heading h2 {
  margin: 1px 0 5px;
}
.panel-heading p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}
.panel-icon {
  background: var(--soft);
  border-color: transparent;
}
.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--surface-shadow);
}
.profile-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 20px;
}
.hero-avatar {
  width: 68px;
  height: 68px;
  font-size: 23px;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}
.profile-hero h2 {
  font-size: 21px;
  margin: 10px 0 4px;
  overflow-wrap: anywhere;
}
.profile-hero .profile-info > p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.profile-hero .profile-info > .profile-organization {
  font-size: 11px;
  margin-top: 6px;
}
.profile-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.badge .icon {
  width: 11px;
  height: 11px;
}
.verified-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}
.verified-label .icon {
  width: 12px;
  height: 12px;
  color: var(--success-ink);
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.account-stat {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--control-shadow);
  transition:
    border-color 140ms,
    background-color 140ms;
}
.account-stat:hover {
  border-color: var(--control-hover-line);
  background: var(--soft);
  text-decoration: none;
}
.account-stat > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.account-stat small {
  font-size: 10px;
}
.account-stat strong {
  font-size: 13px;
  font-weight: 500;
}
.account-stat > .icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.overview-grid > .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}
.overview-grid > .span-all {
  grid-column: 1 / -1;
}
.panel-footer {
  display: flex;
  align-items: center;
  padding-top: 18px;
  margin-top: auto;
}
.panel-footer a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
}
.panel-footer .icon {
  width: 14px;
  height: 14px;
}
.product-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
}
.product-heading h2 {
  font-size: 16px;
  margin: 0 0 4px;
}
.product-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.product-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 0 0 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.product-account > span:last-child {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.device-row,
.session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--list-line);
}
.device-row > div,
.session-info {
  flex: 1;
  min-width: 0;
}
.device-row strong,
.session-info strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.device-row small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.session-info p {
  overflow-wrap: anywhere;
}
.organization-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}
.organization-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--selected-bg);
  color: var(--blue);
  border: 1px solid var(--selected-line);
}
.organization-identity h2 {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.organization-identity p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.setting-status {
  margin: 0 0 20px;
}
.settings-grid > .card {
  margin: 0;
}
.settings-grid .stack > button {
  justify-self: start;
}
.empty-state {
  padding: 16px;
  margin-bottom: 20px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
[id="sessions"],
[id="authenticator"],
[id="passkeys"] {
  scroll-margin-top: 80px;
}
.organization-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
}
.organization-summary .eyebrow {
  margin-bottom: 5px;
}
.organization-summary h2 {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.organization-summary > p {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 12px;
}
.invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-info {
  flex: 1;
  min-width: 0;
}
.member-info strong,
.member-info p {
  overflow-wrap: anywhere;
}
.member-row > label {
  font-size: 10px;
  color: var(--muted);
  min-width: 112px;
}
.member-row select {
  margin-top: 3px;
  color: var(--ink);
}
.organization-details-form {
  display: flex;
  align-items: end;
  gap: 12px;
  max-width: 560px;
}
.organization-details-form label {
  flex: 1;
  min-width: 0;
}
.name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.team-table-container {
  margin-top: 20px;
  overflow-x: auto;
}
.team-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.team-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.team-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--list-line);
  vertical-align: middle;
}
.team-table tbody tr:last-child td {
  border-bottom: 0;
}
.team-person {
  min-width: 220px;
}
.team-person-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-person-content > div {
  min-width: 0;
}
.team-person strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.team-person small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.team-person .badge {
  margin-left: 5px;
}
.role-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 188px;
}
.role-control select {
  margin: 0;
  min-width: 120px;
  width: auto;
  min-height: 32px;
}
.team-table button {
  min-height: 32px;
  padding: 5px 10px;
  white-space: nowrap;
}
.team-help {
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1000px) {
  .account-stats {
    gap: 10px;
  }
  .account-stat {
    padding: 14px 12px;
    gap: 8px;
  }
  .account-stat > .icon {
    display: none;
  }
}
@media (max-width: 850px) {
  .header-context {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    align-items: start;
    flex-direction: column;
  }
  .account-stat .stat-icon {
    display: none;
  }
  .invite-form {
    grid-template-columns: 1fr 1fr;
  }
  .invite-form > button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
@media (max-width: 600px) {
  .nav-section-label,
  .sidebar-context {
    display: none;
  }
  .nav-items {
    display: flex;
    gap: 6px;
    min-width: 0;
  }
  .profile-hero {
    padding: 20px;
    gap: 20px;
  }
  .profile-main {
    align-items: start;
    gap: 12px;
  }
  .hero-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  .profile-badges {
    gap: 6px;
  }
  .profile-hero h2 {
    font-size: 18px;
  }
  .account-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 16px 0 20px;
  }
  .account-stat .stat-icon {
    display: inline-flex;
  }
  .account-stat > span:nth-child(2) {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .account-stat small {
    font-size: 11px;
  }
  .account-stat strong {
    font-size: 12px;
    text-align: right;
  }
  .session-row {
    flex-wrap: wrap;
  }
  .session-info {
    flex-basis: calc(100% - 48px);
  }
  .member-row {
    flex-wrap: wrap;
  }
  .member-info {
    flex-basis: calc(100% - 44px);
  }
  .member-row > label {
    flex: 1;
  }
  .invite-form {
    grid-template-columns: 1fr;
  }
  .organization-summary {
    gap: 8px 12px;
  }
  .organization-summary > .badge {
    grid-column: 2;
    justify-self: start;
  }
  body[data-layout="auth"] main {
    width: calc(100% - 32px);
    padding: 24px;
    margin: 24px auto;
  }
  body[data-layout="auth"] footer {
    width: calc(100% - 32px);
    padding: 12px 4px;
  }
  .team-table,
  .team-table tbody {
    display: block;
  }
  .team-table thead {
    display: none;
  }
  .team-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .team-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .team-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    color: var(--muted);
  }
  .team-table .team-person,
  .team-table td[data-label="Role"],
  .team-table td[data-label="Actions"] {
    grid-column: 1 / -1;
  }
  .team-person small {
    overflow-wrap: anywhere;
  }
  .role-control {
    min-width: 0;
  }
}
@media (min-width: 601px) and (max-width: 850px) {
  .invite-form > label:nth-of-type(3) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .name-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
