:root {
  --blue: #1677ff;
  --blue-dark: #0f4fb8;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --line: #dfe6f0;
  --text: #172033;
  --muted: #667085;
  --red: #e33445;
  --green: #0b9f6d;
  --amber: #d48806;
  --shadow: 0 18px 48px rgba(20, 38, 74, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  min-height: 88px;
  padding: 18px 32px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 760;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar input,
.toolbar button,
.status {
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
}

.toolbar input {
  width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  padding: 0 12px;
  outline: none;
}

.toolbar input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

input:focus::placeholder {
  color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toolbar button {
  padding: 0 16px;
  color: var(--blue-dark);
  background: white;
}

.toolbar .toolbar-ghost {
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.profile-menu {
  position: relative;
  z-index: 40;
}

.profile-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 260px;
  height: 14px;
}

.toolbar .profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  height: 42px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  color: var(--blue-dark);
  background: white;
  box-shadow: 0 10px 26px rgba(10, 55, 135, 0.14);
}

.profile-button::after {
  content: "";
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.72;
  transform: translateY(1px);
}

.profile-menu:hover .profile-button,
.profile-menu.open .profile-button {
  background: #f8fbff;
}

.profile-button span:first-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), #14b8a6);
  font-size: 13px;
  font-weight: 850;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 56px rgba(17, 30, 56, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  visibility: hidden;
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 34px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(45deg);
}

.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown,
.profile-menu.open .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.profile-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--line);
}

.profile-dropdown-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), #14b8a6);
  font-size: 16px;
  font-weight: 860;
}

.profile-dropdown-head strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.profile-dropdown-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
}

.toolbar .profile-menu-item {
  color: var(--text);
  background: transparent;
  height: auto;
  min-height: 42px;
  padding: 0 12px;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  color: var(--blue-dark);
  background: #eef6ff;
}

.profile-logout-item {
  color: #9f1239;
}

.toolbar .profile-logout-item {
  color: #9f1239;
}

.password-form label {
  color: var(--muted);
  font-size: 12px;
}

.password-form {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.password-form label {
  display: grid;
  gap: 6px;
}

.password-form input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  outline: none;
}

.password-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.password-form button,
.logout-button {
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
}

.password-form button {
  color: white;
  background: var(--blue);
}

.password-form button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.profile-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.logout-button {
  width: 100%;
  margin-top: 10px;
  color: #9f1239;
  border: 1px solid #ffd4dd;
  background: #fff1f4;
}

.toolbar-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: white;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.account-page {
  min-height: 100vh;
  height: auto;
  overflow: auto;
}

.account-shell {
  display: grid;
  min-height: calc(100vh - 88px);
  padding: 28px;
  place-items: start center;
}

.account-panel {
  width: min(980px, 100%);
  padding: 26px;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.account-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #14b8a6);
  font-size: 28px;
  font-weight: 860;
}

.account-summary p,
.account-summary span,
.account-card dt {
  color: var(--muted);
}

.account-summary h2 {
  margin: 4px 0;
  font-size: 30px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.account-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.account-card h3 {
  margin-bottom: 18px;
  font-size: 18px;
}

.account-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.account-card dt {
  font-size: 12px;
}

.account-card dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.45;
}

.account-password-form {
  padding-top: 0;
}

.account-password-form input {
  height: 42px;
  font-size: 14px;
}

.account-password-form button {
  height: 44px;
  font-size: 15px;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.account-logout {
  width: 180px;
  margin-top: 0;
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 720;
}

.status-ok {
  color: #eafff5;
  background: rgba(0, 138, 82, 0.28);
}

.status-warn {
  color: #fff6d6;
  background: rgba(214, 136, 0, 0.34);
}

.terminal {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(500px, 1.35fr) minmax(360px, 0.92fr);
  gap: 18px;
  height: calc(100vh - 88px);
  min-height: 0;
  padding: 16px 24px 18px;
  overflow: hidden;
}

.panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ranking-panel {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  color: #475467;
  background: white;
  font-size: 12px;
  font-weight: 750;
}

.category-tabs button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.quote-header h2 {
  font-size: 18px;
}

.panel-header span,
.quote-header p,
.quote-metrics span,
.bottom-strip span {
  color: var(--muted);
  font-size: 13px;
}

.ranking-table {
  width: 100%;
  height: calc(100% - 108px);
  overflow: hidden;
}

.ranking-table #rankingRows {
  width: 100%;
  height: calc(100vh - 88px - 16px - 18px - 72px - 54px - 42px);
  overflow-x: hidden;
  overflow-y: auto;
}

.ranking-table #rankingRows::-webkit-scrollbar {
  width: 8px;
}

.ranking-table #rankingRows::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.ranking-head,
.ranking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 82px;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
}

.ranking-head {
  color: var(--muted);
  font-size: 12px;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
}

.ranking-row {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  color: inherit;
  background: white;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ranking-head > *,
.ranking-row > * {
  min-width: 0;
}

.ranking-row:hover,
.ranking-row.active {
  background: #eef6ff;
}

.fund-cell {
  display: grid;
  justify-self: stretch;
  min-width: 0;
  gap: 3px;
}

.fund-name {
  display: block;
  font-weight: 760;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-code {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-source {
  display: block;
  margin-top: 2px;
  color: #1b8a5a;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-cell {
  justify-self: end;
  width: 64px;
  text-align: right;
  white-space: nowrap;
}

.red {
  color: var(--red);
}

.green {
  color: var(--green);
}

.signal-pill {
  display: inline-flex;
  justify-content: center;
  justify-self: center;
  align-items: center;
  min-width: 0;
  height: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.signal-pill {
  width: 82px;
}

.signal-buy {
  color: #7a4d00;
  background: #fff3cd;
}

.signal-watch,
.signal-pending {
  color: #475467;
  background: #eef2f7;
}

.signal-avoid {
  color: #0f4fb8;
  background: #e8f1ff;
}

.chart-panel {
  height: 100%;
  padding-bottom: 10px;
  overflow: hidden;
}

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.quote-metrics {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  gap: 14px;
  text-align: right;
}

.quote-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.chart-toolbar,
.chart-data-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 4px;
  color: var(--muted);
  font-size: 13px;
}

.chart-data-strip {
  padding-top: 4px;
  padding-bottom: 2px;
}

.chart-data-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-tabs button,
.side-tabs button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  color: #475467;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.chart-tabs button.active,
.side-tabs button.active {
  color: #fff;
  border-color: var(--text);
  background: var(--text);
}

.chart-tabs button:disabled {
  cursor: not-allowed;
  color: #98a2b3;
  background: #f2f4f7;
}

#klineCanvas {
  display: block;
  width: calc(100% - 28px);
  height: calc(100vh - 88px - 16px - 18px - 86px - 76px);
  min-height: 330px;
  margin: 0 14px;
}

.chart-wrap {
  position: relative;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 178px;
  padding: 10px 12px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  color: #172033;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(20, 38, 74, 0.16);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.chart-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.decision-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

.decision-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.decision-header span {
  white-space: nowrap;
}

.side-tabs {
  display: inline-flex;
  justify-self: start;
  gap: 8px;
  width: min(100%, 340px);
  padding: 5px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #f8fafd;
}

.side-tabs button {
  flex: 1 1 0;
  min-width: 126px;
  height: 40px;
  padding: 0 14px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  line-height: 1;
}

.side-tabs button.active {
  border-color: var(--blue);
  background: var(--blue);
}

.decision-view {
  height: 100%;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.decision-card {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  border: 1px solid #cfe1ff;
}

.decision-card span {
  color: var(--muted);
  font-size: 13px;
}

.decision-card strong {
  display: block;
  margin: 6px 0;
  color: var(--blue-dark);
  font-size: 26px;
}

.decision-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.score-block,
.reason-block {
  margin-top: 10px;
}

.reason-block h3,
.score-block h3,
.ticket h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.reason-block ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.score-block ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.score-block li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 9px;
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  background: #fbfdff;
}

.score-block strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.score-block small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.score-block b {
  min-width: 42px;
  text-align: right;
  font-size: 14px;
}

.score-block .score-total {
  grid-column: 1 / -1;
  border-color: #cfe1ff;
  background: #eef6ff;
}

.score-block .score-total b {
  color: var(--blue-dark);
  font-size: 18px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reason-block li {
  padding: 8px 10px;
  border-radius: 8px;
  color: #0f5e41;
  background: #e9f8f1;
  font-size: 12px;
}

.reason-block.risk li {
  color: #7a4d00;
  background: #fff7df;
}

.ticket {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdff;
}

.ticket label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.ticket input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  background: white;
  font-size: 14px;
}

.ticket button {
  height: 40px;
  margin-top: 4px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 14px;
}

.ticket-actions {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 8px;
}

.ticket .secondary-button {
  color: var(--blue-dark);
  border: 1px solid #cfe1ff;
  background: #eef6ff;
}

.ticket .danger-button {
  color: #fff;
  border: 1px solid var(--red);
  background: var(--red);
}

.ticket button:disabled {
  cursor: not-allowed;
  color: #7d8794;
  background: #e5eaf2;
}

.trade-message {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bottom-strip {
  display: none;
}

.bottom-strip div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.bottom-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.login-page {
  min-width: 0;
  color: #f8fbff;
  background:
    linear-gradient(rgba(48, 94, 155, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 94, 155, 0.13) 1px, transparent 1px),
    radial-gradient(circle at 70% 15%, rgba(40, 128, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0d2444 46%, #0a1220 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}

.login-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 390px;
  gap: 36px;
  width: min(1060px, 100%);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(164, 194, 242, 0.22);
  border-radius: 18px;
  background: rgba(5, 15, 30, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.login-stage::before,
.login-stage::after {
  content: "";
  position: absolute;
  inset: 28px;
  pointer-events: none;
  border: 1px solid rgba(112, 164, 255, 0.16);
}

.login-stage::after {
  inset: auto 28px 28px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(52, 166, 255, 0.8), transparent);
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 38px 0 0 38px;
  align-self: start;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(115, 188, 255, 0.55);
  border-radius: 12px;
  color: #dff0ff;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.9), rgba(11, 159, 109, 0.74));
  font-weight: 860;
}

.login-brand h1 {
  color: white;
  font-size: 24px;
}

.login-brand p {
  margin-top: 3px;
  color: rgba(222, 236, 255, 0.68);
  font-size: 13px;
}

.market-wall {
  position: absolute;
  left: 44px;
  right: 424px;
  top: 145px;
  bottom: 70px;
  border-left: 1px solid rgba(161, 191, 236, 0.18);
  border-bottom: 1px solid rgba(161, 191, 236, 0.18);
}

.market-line {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 130px;
  border-radius: 50%;
  border-top: 3px solid #39a2ff;
  border-right: 3px solid transparent;
  transform: skewX(-16deg);
  opacity: 0.78;
}

.line-one {
  top: 88px;
}

.line-two {
  top: 235px;
  border-top-color: #17c78f;
  transform: skewX(18deg) scaleY(0.72);
  opacity: 0.58;
}

.market-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  color: rgba(226, 238, 255, 0.26);
  font-size: 12px;
}

.market-grid span {
  min-height: 100%;
  padding: 0 0 10px 14px;
  border-right: 1px solid rgba(161, 191, 236, 0.1);
}

.login-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: center;
  gap: 18px;
  margin: 38px 38px 38px 0;
  padding: 32px;
  border: 1px solid rgba(169, 204, 255, 0.28);
  border-radius: 14px;
  background: rgba(250, 253, 255, 0.1);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.login-card-header {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.login-card-header span {
  color: #66d8ff;
  font-size: 12px;
  font-weight: 820;
}

.login-card h2 {
  color: white;
  font-size: 30px;
  line-height: 1.15;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: rgba(229, 239, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.login-card input {
  height: 46px;
  border: 1px solid rgba(180, 208, 255, 0.26);
  border-radius: 10px;
  padding: 0 14px;
  color: white;
  background: rgba(2, 8, 18, 0.46);
  outline: none;
  font-size: 15px;
}

.login-card input::placeholder {
  color: rgba(224, 236, 255, 0.46);
}

.login-card input:focus {
  border-color: rgba(64, 165, 255, 0.88);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.2);
}

.login-card button {
  height: 48px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #1677ff, #14b889);
  box-shadow: 0 14px 34px rgba(20, 121, 255, 0.28);
  font-size: 15px;
}

.login-card button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.login-message {
  min-height: 20px;
  color: rgba(224, 236, 255, 0.64);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .account-shell {
    padding: 16px;
  }

  .account-panel {
    padding: 18px;
  }

  .account-summary {
    align-items: flex-start;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-actions {
    justify-content: stretch;
  }

  .account-logout {
    width: 100%;
  }

  .login-shell {
    padding: 18px;
  }

  .login-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .market-wall {
    display: none;
  }

  .login-brand {
    padding: 26px 26px 0;
  }

  .login-card {
    margin: 0 26px 26px;
  }
}
