/* 与公司站方案 R 同一套：冰蓝底、毛玻璃胶囊顶栏、蓝色主按钮 */
/* 底色挂在 html 上：body 宽度被 styles.css 限制在 1080px，挂 body 会出现侧边缝。 */
html {
  background:
    radial-gradient(1000px 640px at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(700px 520px at 0% 70%, rgba(147, 197, 253, 0.32), transparent 70%),
    #f3f6fb;
  background-repeat: no-repeat, no-repeat, repeat;
}

.account-page {
  --color-accent: #1e40af;
  --color-accent-dim: #1e3a8a;
  --color-accent-soft: #dbeafe;
  --color-muted: #5b6b86;
  --color-border: #d5deee;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  background: transparent;
  color: #0f172a;
}

.account-code-row .ghost {
  white-space: nowrap;
}

.account-home-top {
  margin-bottom: 20px;
}

.account-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 12px 64px;
  box-sizing: border-box;
}

.account-panel {
  background: #fff;
  border: 1px solid color-mix(in srgb, #1a2330 8%, transparent);
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: 0 12px 40px color-mix(in srgb, #1a4a7a 6%, transparent);
  box-sizing: border-box;
  max-width: 100%;
}

.account-panel h1 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 650;
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.account-form input {
  appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9d3df;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fbfcfe;
}

.account-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.account-code-row .ghost,
.account-actions .ghost {
  appearance: none;
  border: 1px solid #c9d3df;
  background: transparent;
  border-radius: 10px;
  padding: 0 14px;
  min-height: 44px;
  min-width: 96px;
  font: inherit;
  cursor: pointer;
}

.account-form .btn-primary,
.account-actions .btn-primary {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  min-width: 120px;
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: #1f6feb;
  color: #fff;
}

.account-status {
  margin: 14px 0 0;
}

.account-status.is-error {
  color: #b42318;
}

.account-empty {
  display: grid;
  gap: 6px;
}

.account-node-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.account-address {
  margin: 0 0 16px;
}

.account-address summary {
  cursor: pointer;
  color: #52637a;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-actions[hidden],
.account-empty[hidden],
.account-node[hidden],
.account-code[hidden],
.account-status[hidden],
[data-node-suspended][hidden],
[data-account-login][hidden],
[data-account-home][hidden],
.account-exit[hidden] {
  display: none !important;
}

.account-code {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #f2f5f9;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.8rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.muted {
  color: #667789;
}
