@font-face {
  font-family: "Geist Variable";
  src: url("/assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fff;
  --fg: #080808;
  --muted: #7d8187;
  --border: #e6e6e6;
  --soft: #f7f7f7;
  --danger: #a83441;
  --focus: #080808;
  font-family: "Geist Variable", Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080808;
  --fg: #fafafa;
  --muted: #92969c;
  --border: #292929;
  --soft: #141414;
  --danger: #ff8b98;
  --focus: #fafafa;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 20px;
}
button,
input,
summary {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  padding: 0 16px;
  outline: none;
}
input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}
input::placeholder {
  color: var(--muted);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 16px 0 8px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 36px;
}
h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}
h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.muted {
  color: var(--muted);
}
.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  line-height: 20px;
}
.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.primary,
.secondary,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.primary:hover {
  opacity: 0.85;
  text-decoration: none;
}
.secondary:hover,
.pill:hover {
  background: var(--soft);
  text-decoration: none;
}
.full-width {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--fg);
  padding: 4px;
  font: inherit;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--fg);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
  padding-bottom: 3px;
}
.brand small {
  display: none;
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 16px;
}
.app-context {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.app-menu {
  position: relative;
}
.app-menu summary {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  color: var(--fg);
}
.app-menu summary::-webkit-details-marker {
  display: none;
}
.app-menu summary .icon {
  width: 12px;
  height: 12px;
}
.app-menu > div {
  position: absolute;
  z-index: 2;
  right: 0;
  top: calc(100% + 8px);
  min-width: 192px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 12px #0001;
}
.app-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
}
.app-menu a:hover {
  background: var(--soft);
  text-decoration: none;
}
.auth-main {
  width: 100%;
  max-width: 432px;
  margin: 108px auto 0;
  padding: 0 24px 80px;
}
.auth-main > h1 {
  text-align: center;
}
.auth-intro {
  text-align: center;
  font-size: 14px;
  line-height: 24px;
  margin: 24px 0 32px;
}
.auth-main form[data-flow] {
  margin-top: 20px;
}
.auth-main form[data-flow] label {
  font-size: 13px;
  font-weight: 400;
}
.auth-main form[data-flow] > .primary {
  margin-top: 12px;
}
.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}
.auth-switch a {
  margin-left: 8px;
  color: var(--fg);
}
.auth-legal {
  font-size: 12px;
  text-align: center;
  margin-top: 24px;
  line-height: 20px;
}
.auth-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 4px;
}
.email-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 8px 0;
  font-size: 14px;
  gap: 12px;
}
.email-summary span {
  overflow-wrap: anywhere;
}
.email-summary .text-button {
  font-size: 13px;
  flex-shrink: 0;
  color: var(--muted);
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 44px;
}
.eye {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
}
.eye:hover {
  background: var(--soft);
  color: var(--fg);
}
.eye-slash {
  display: none;
}
.eye[data-visible] .eye-slash {
  display: block;
}
.error,
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.error {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 6%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--danger) 15%, var(--bg));
}
.notice {
  background: var(--soft);
  border: 1px solid var(--border);
}
footer {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.auth-main > footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
}
.hero-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--soft);
  margin: 0 auto 24px;
}
.hero-symbol .icon {
  width: 28px;
  height: 28px;
}
.permissions {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.permissions li {
  padding: 8px 0;
}
.permissions li:before {
  content: "✓";
  margin-right: 12px;
  color: var(--muted);
}
.consent-account {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--soft);
  padding: 16px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.consent-account p {
  font-size: 13px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6e6e6;
  color: #080808;
  font-size: 12px;
  flex-shrink: 0;
}
.centered {
  text-align: center;
  margin-top: 22px;
}
.switch-account {
  display: block;
  text-align: center;
  font-size: 13px;
  margin: 14px auto 0;
}
.legal-copy {
  margin: 26px 0;
  font-size: 14px;
  line-height: 28px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 288px;
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  z-index: 20;
}
.sidebar > .brand {
  margin: 0 8px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--fg);
  background: var(--soft);
  text-decoration: none;
}
.nav-link[aria-current="true"] {
  color: var(--fg);
}
.nav-label {
  color: var(--fg);
  font-size: 13px;
  margin: 40px 8px 12px;
}
.sidebar-logout {
  margin-top: auto;
}
.sidebar-logout .text-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--muted);
  height: 32px;
}
.account-main {
  margin-left: 288px;
  padding: 64px 48px 128px;
  display: flex;
  justify-content: center;
}
.account-content {
  width: 100%;
  max-width: 1024px;
}
.settings-section {
  scroll-margin-top: 128px;
  margin-bottom: 160px;
}
.settings-section:last-child {
  margin-bottom: 0;
}
.settings-section > h1,
.section-title {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.5px;
  font-weight: 500;
  padding: 0 8px;
  margin-bottom: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 24px;
  gap: 16px;
}
.section-heading .section-title {
  padding: 0;
  margin: 0;
}
.section-heading .pill {
  width: auto;
}
.settings-section > h2:not(.section-title),
.subsection-title {
  padding: 0 8px;
  margin-top: 24px;
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 16px 8px;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 20px;
}
.setting-row:last-child {
  border-bottom: 0;
}
.setting-row .muted {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
}
.setting-row .pill {
  width: 96px;
  flex-shrink: 0;
}
.row-value {
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.profile-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-summary strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}
.status {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: var(--soft);
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  margin-left: 8px;
  font-weight: 400;
}
.row-icon {
  margin-right: 8px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--fg);
}
.theme-control {
  display: flex;
  gap: 0;
}
.theme-control button {
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}
.theme-control button[aria-pressed="true"] {
  color: var(--fg);
  background: var(--soft);
}
.section-description {
  font-size: 14px;
  padding: 0 8px;
  margin-top: -12px;
  margin-bottom: 24px;
}
.current-session {
  margin-bottom: 24px;
}
.current-session .setting-row {
  min-height: 32px;
  border: 0;
  padding: 6px 8px;
}
.current-session .row-value {
  color: var(--muted);
}
.session-table {
  position: relative;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}
th,
td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}
th:last-child,
td:last-child {
  text-align: right;
}
td .pill {
  width: 96px;
}
td strong {
  font-weight: 400;
  display: block;
  font-size: 14px;
}
.table-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.empty-sessions {
  padding: 16px 8px;
}
dialog {
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  width: calc(100% - 32px);
  max-width: 512px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow:
    0 10px 15px -3px #0000001a,
    0 4px 6px -4px #0000001a;
}
dialog::backdrop {
  background: #0008;
}
dialog h2 {
  font-size: 16px;
  line-height: 16px;
  margin: 0 24px 20px 0;
  font-weight: 500;
  letter-spacing: 0;
}
dialog p {
  font-size: 14px;
  line-height: 20px;
}
dialog input {
  height: 36px;
  border-radius: 8px;
  padding: 8px 12px;
}
dialog input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
  background: var(--soft);
}
dialog .eye {
  top: 2px;
  right: 4px;
}
dialog label {
  margin-top: 16px;
  line-height: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.dialog-actions .pill,
.dialog-actions .primary {
  min-height: 32px;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mobile-header {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1023px) {
  .mobile-header {
    height: 64px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    color: var(--fg);
  }
  .mobile-menu-button .icon {
    width: 20px;
    height: 20px;
  }
  .sidebar {
    display: none;
    top: 64px;
    width: 288px;
    box-shadow: 8px 0 24px #0001;
  }
  .sidebar[data-expanded] {
    display: flex;
  }
  .sidebar > .brand {
    display: none;
  }
  .account-main {
    margin-left: 0;
    padding: 32px 48px 128px;
  }
}
@media (max-width: 639px) {
  .auth-header {
    padding: 20px 16px;
  }
  .app-context > .muted {
    display: none;
  }
  .auth-main {
    margin-top: 80px;
  }
  .auth-main > footer {
    position: static;
    margin-top: 64px;
  }
  .mobile-header {
    padding: 16px;
  }
  .account-main {
    padding: 32px 16px 80px;
  }
  .settings-section {
    margin-bottom: 96px;
    scroll-margin-top: 32px;
  }
  .setting-row {
    gap: 12px;
  }
  .setting-row .pill {
    width: 80px;
  }
  .profile-summary strong {
    font-size: 18px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .section-heading .pill {
    font-size: 12px;
    padding: 0 10px;
  }
  .row-value {
    font-size: 13px;
  }
  .auth-main h1 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.setting-row:has(+ h2) {
  border-bottom: 0;
}
#profile-dialog form > p.muted,
#password-dialog form > p.muted {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.brand-mark .icon {
  width: 32px;
  height: 24px;
  stroke-width: 3;
}
.setting-row {
  height: 64px;
  padding: 0 8px;
}
.setting-row:has(p) {
  height: auto;
  min-height: 76px;
  padding: 16px 8px;
}
.current-session .setting-row {
  height: auto;
  min-height: 32px;
  padding: 6px 8px;
}
@media (max-width: 1023px) {
  .mobile-menu-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
  }
  .sidebar {
    inset: 56px 16px auto auto;
    width: 128px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 12px #0001;
  }
  .sidebar nav[aria-label="账户设置"],
  .sidebar .nav-label {
    display: none;
  }
  .sidebar-logout {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 639px) {
  .setting-row .pill {
    width: 96px;
  }
  .setting-row:has(.row-icon) > div:first-child {
    display: flex;
    align-items: center;
  }
  .row-icon + .muted {
    display: none;
  }
  .settings-section {
    margin-bottom: 160px;
  }
}
