.account-page {
  min-height: calc(100vh - 108px);
  padding: 32px 24px 48px;
  background: #F6F7F9;
  color: #1A1A2E;
}

.account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto 20px;
}

.account-kicker {
  margin: 0 0 4px;
  color: #2AACA7;
  font-size: 13px;
  font-weight: 700;
}

.account-header h1 {
  margin: 0;
  color: #1A1A2E;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.account-home-link,
.account-inline-link {
  color: #2AACA7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.account-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: start;
}

.account-sidebar,
.account-section,
.account-empty-panel {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(26, 26, 46, 0.06);
}

.account-sidebar {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.account-side-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1A1A2E;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.account-side-item:hover,
.account-side-item.active {
  background: rgba(42, 172, 167, 0.1);
}

.account-side-item.active {
  color: #168B86;
}

.account-side-title {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.account-side-meta {
  overflow: hidden;
  color: #6B7280;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-content {
  min-width: 0;
}

.account-section {
  padding: 22px;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.account-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.account-section-note {
  color: #6B7280;
  font-size: 13px;
  white-space: nowrap;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
}

.account-form .el-form-item {
  margin-bottom: 16px;
}

.account-form .el-select {
  width: 100%;
}

.account-field-hint {
  margin: 6px 0 0;
  color: #9CA3AF;
  font-size: 12px;
  line-height: 1.6;
}

.account-form .el-input.is-readonly .el-input__wrapper {
  background: #F3F6F8;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.account-module-summary {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #EEF0F3;
}

.account-module-summary h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.3;
}

.account-latest-result,
.account-work-row,
.account-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #EEF0F3;
  border-radius: 8px;
  background: #FAFBFC;
}

.account-latest-result {
  justify-content: flex-start;
}

.account-latest-action {
  margin-left: auto;
}

.account-latest-result img,
.account-work-row img {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #EEF0F3;
}

.account-latest-result div,
.account-work-row div,
.account-security-row div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-latest-result strong,
.account-work-row strong,
.account-security-row strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-latest-result span,
.account-work-row span,
.account-security-row span,
.account-latest-result small {
  color: #6B7280;
  font-size: 13px;
  line-height: 1.3;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.account-stat {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #EEF0F3;
  border-radius: 8px;
  background: #FAFBFC;
}

.account-stat span {
  color: #6B7280;
  font-size: 13px;
}

.account-stat strong {
  color: #111827;
  font-size: 26px;
  line-height: 1;
}

.account-work-row {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.account-security-row {
  margin-bottom: 18px;
}

.account-security-actions {
  flex: 0 0 auto;
}

.account-password-form {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.account-muted {
  margin: 0;
  color: #6B7280;
  font-size: 14px;
}

.account-oier-card,
.account-empty-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #EEF0F3;
  border-radius: 8px;
  background: #FAFBFC;
}

.account-oier-card > div,
.account-empty-inline {
  min-width: 0;
}

.account-oier-card span {
  color: #6B7280;
  font-size: 13px;
}

.account-oier-card strong,
.account-empty-inline strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-oier-card p,
.account-empty-inline p {
  margin: 4px 0 0;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.35;
}

.account-oier-stats {
  margin-top: 14px;
}

.account-oier-records {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.account-oier-records > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #EEF0F3;
  border-radius: 8px;
  background: #FFFFFF;
}

.account-oier-records strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-oier-records span {
  color: #6B7280;
  font-size: 12px;
}

.account-empty-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px;
  text-align: center;
}

.account-empty-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.account-empty-panel p {
  margin: 0 0 18px;
  color: #6B7280;
}

.account-result-dialog .el-dialog__body {
  max-height: min(78vh, 760px);
  overflow-y: auto;
  padding-top: 8px;
}

.account-result-poster {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(160deg, #0C0C1A 0%, #15162B 55%, #101018 100%);
  color: #F9FAFB;
  box-shadow: 0 22px 60px rgba(12, 12, 26, 0.24);
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
}

.account-result-accent-line {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.account-result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.account-result-card-head small {
  font-size: 12px;
  font-weight: 500;
}

.account-result-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 0 16px;
  text-align: center;
}

.account-result-avatar-frame {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 28px var(--accent-glow);
}

.account-result-avatar-frame img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  image-rendering: pixelated;
}

.account-result-label,
.account-result-section-title,
.account-result-footer {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.account-result-hero h2 {
  margin: 0;
  color: var(--accent);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow);
}

.account-result-subname {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.account-result-quote,
.account-result-nickname {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.account-result-divider {
  height: 1px;
  margin: 4px 0 16px;
  background: rgba(255, 255, 255, 0.08);
}

.account-result-radar-section {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.account-result-radar {
  width: 100%;
  height: 260px;
}

.account-result-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.account-result-traits span,
.account-result-weakness span {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.account-result-traits span.highlight {
  border-color: var(--accent-dim);
  background: var(--accent-dim);
  color: #FFFFFF;
}

.account-result-desc,
.account-result-weakness {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.account-result-desc h3,
.account-result-weakness h3 {
  margin: 0 0 8px;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.35;
}

.account-result-desc p,
.account-result-weakness p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.75;
}

.account-result-weakness div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.account-result-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.account-result-actions div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-result-actions button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.account-result-actions button:hover {
  border-color: var(--accent-dim);
  background: rgba(255, 255, 255, 0.12);
}

.account-result-actions .account-result-primary {
  border-color: transparent;
  background: var(--accent);
  color: #101018;
}

.account-result-actions .account-result-primary:hover {
  border-color: transparent;
  background: var(--accent);
  filter: brightness(1.05);
}

.account-result-actions .account-result-ghost {
  background: transparent;
}

.account-result-footer {
  margin-top: 14px;
  text-align: center;
}

@media (max-width: 820px) {
  .account-page {
    padding: 22px 12px 36px;
  }

  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-header h1 {
    font-size: 26px;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
  }

  .account-side-item {
    flex: 0 0 152px;
  }

  .account-section {
    padding: 18px;
  }

  .account-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-form,
  .account-stat-grid {
    grid-template-columns: 1fr;
  }

  .account-actions {
    justify-content: stretch;
  }

  .account-actions .el-button {
    flex: 1 1 auto;
  }

  .account-security-row {
    align-items: stretch;
    flex-direction: column;
  }

  .account-oier-card,
  .account-empty-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-latest-result {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .account-latest-action {
    width: 100%;
    margin-left: 0;
  }

  .account-result-dialog .el-dialog__body {
    padding: 8px 12px 16px;
  }

  .account-result-poster {
    padding: 18px;
  }

  .account-result-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-result-avatar-frame {
    width: 108px;
    height: 108px;
  }

  .account-result-avatar-frame img {
    width: 94px;
    height: 94px;
  }

  .account-result-radar {
    height: 220px;
  }

  .account-result-actions div {
    grid-template-columns: 1fr;
  }
}
