:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --surface: #121315;
  --surface-low: #1a1c1d;
  --surface-high: #292a2b;
  --surface-highest: #343536;
  --gold: #f4d463;
  --gold-dim: #d6b84a;
  --ink: #2c2300;
  --text: #e8e6df;
  --muted: #cfc6b0;
  --faint: #969085;
  --ghost: rgba(227, 226, 228, 0.12);
  --ghost-gold: rgba(244, 212, 99, 0.18);
  --green: #8cb8a3;
  --orange: #f0b665;
  --red: #ffb4ab;
  --blue: #c9d3ff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --maxw: 520px;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --font-price: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  padding-bottom: calc(96px + var(--safe-bottom));
}

body.login-active {
  padding-bottom: 0;
  background: #050607;
}

button, input {
  color: inherit;
  font: inherit;
  font-family: var(--font-ui);
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  position: relative;
  min-height: 100dvh;
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(420px 190px at 95% -6%, rgba(244, 212, 99, 0.11), transparent 70%),
    radial-gradient(360px 180px at 8% 7%, rgba(140, 184, 163, 0.06), transparent 72%),
    linear-gradient(180deg, #121315 0%, #101113 54%, #0d0e10 100%);
}

.app.login-active {
  background: #050607;
}

body.login-active .bottom-nav {
  display: none;
}

[data-section-hidden="true"] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(11px + env(safe-area-inset-top, 0px)) 17px 9px;
  background: rgba(18, 19, 21, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-back-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(244, 212, 99, 0.08);
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.15);
  white-space: nowrap;
}

.top-back-button[hidden],
.brand-mark[hidden] {
  display: none !important;
}

.app.secondary-view .brand-mark {
  display: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 28px;
  object-fit: contain;
  border-radius: 7px;
  background: rgba(244, 196, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(244, 196, 94, 0.18);
}

.brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.top-access-chip {
  min-width: 46px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bell {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(244, 212, 99, 0.06);
  color: var(--gold);
}

.bell-icon {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}

.bell-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #270000;
  font-size: 10px;
  font-weight: 950;
}

.screen {
  display: none;
  min-height: calc(100dvh - 146px - var(--safe-bottom));
  padding: 11px 16px calc(28px + var(--safe-bottom));
  gap: 12px;
  flex-direction: column;
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: none;
}

.screen[data-view="news"] {
  padding-bottom: calc(96px + var(--safe-bottom));
}

.screen-tools {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: -2px;
}

.screen[data-view="decision"] > .screen-tools {
  display: none;
}

.app.secondary-view .screen.active > .screen-tools,
.app.secondary-view .screen.active > .login-back {
  display: none;
}

.back-home-btn {
  min-height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(244, 212, 99, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.16);
}

@media (max-width: 768px) {
  .back-home-btn {
    display: none;
  }

  .back-home-btn.aux-back {
    display: inline-flex;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(30, 32, 33, 0.98), rgba(26, 28, 29, 0.98));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  overflow: visible;
}

.card-pad { padding: 15px; }
.tight { padding: 12px; border-radius: 16px; }

.headline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.section-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-section-title {
  display: block;
  margin-bottom: 12px;
  line-height: 1.25;
}

.kicker {
  margin-top: 3px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(244, 212, 99, 0.10);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.green { background: rgba(140, 184, 163, 0.13); color: var(--green); }
.pill.orange { background: rgba(240, 182, 101, 0.13); color: var(--orange); }
.pill.red { background: rgba(255, 180, 171, 0.13); color: var(--red); }
.pill.blue { background: rgba(201, 211, 255, 0.13); color: var(--blue); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.positive { color: var(--green); }
.negative { color: var(--red); }

.price-tier,
.mini-status {
  min-height: 20px;
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.price-card {
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.product-overview {
  padding: 14px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: rgba(26, 28, 29, 0.82);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.11);
}

.product-overview-main {
  min-width: 0;
}

.product-title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: 0;
}

.product-subtitle,
.product-updated,
.source-line,
.chart-status-line {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 850;
}

.product-subtitle {
  margin-top: 4px;
}

.product-overview-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
  text-align: right;
}

.price-card .headline-row > div {
  min-width: 0;
  flex: 1 1 auto;
}

.price-card .price-tier {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-card .mini-status {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -95px;
  bottom: -118px;
  background: radial-gradient(circle, rgba(244, 212, 99, 0.13), transparent 64%);
  pointer-events: none;
}

.price-name {
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.price-number-font {
  font-family: var(--font-price);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.price-main {
  margin-top: 6px;
  font-size: clamp(44px, 12.8vw, 64px);
  line-height: 0.98;
  white-space: nowrap;
}

.price-value-row {
  display: flex;
  align-items: flex-end;
  gap: 8px 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  max-width: 100%;
}

.price-value-row .price-main {
  margin-top: 0;
}

.price-change {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--faint);
  white-space: nowrap;
}

.price-change.move-up { color: var(--red); }
.price-change.move-down { color: var(--green); }
.price-change.move-flat { color: var(--faint); }

.subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.formula-line {
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.source-line {
  margin-top: 6px;
}

.chart-status-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.meta-chip {
  padding: 5px 8px;
  border-radius: 8px;
  background: #0d0e10;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.chart {
  position: relative;
  height: 132px;
  margin-top: 13px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #101112, #0d0e10);
  box-shadow: inset 0 0 0 1px rgba(76, 70, 54, 0.18);
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-axis {
  fill: rgba(207, 198, 176, 0.66);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.chart-bubble {
  fill: rgba(13, 14, 16, 0.92);
  stroke: rgba(244, 212, 99, 0.34);
  stroke-width: 1;
}

.chart-bubble-text {
  fill: var(--gold);
  font-size: 10px;
  font-weight: 950;
}

.chart-raw-marker {
  opacity: 0.88;
}

.chart-end-label {
  fill: var(--gold);
  font-size: 10px;
  font-weight: 950;
}

.chart-price-label {
  pointer-events: none;
}

.chart-price-label-latest .chart-bubble {
  stroke-opacity: 0.64;
}

.chart-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-card {
  min-height: 82px;
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--surface-low);
  box-shadow: inset 0 0 0 1px rgba(76, 70, 54, 0.20);
  text-align: left;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mini-card.active {
  background: rgba(244, 212, 99, 0.10);
  box-shadow: inset 0 0 0 2px var(--gold), 0 10px 24px rgba(244, 212, 99, 0.08);
}

.mini-card:active {
  transform: translateY(1px);
}

.mini-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.mini-label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mini-value {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-meta {
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.decision-word {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.score-pill {
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px;
}

.decision-brief {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.decision-brief-row {
  display: grid;
  grid-template-columns: minmax(68px, 76px) 1fr;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(13, 14, 16, 0.38);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.08);
}

.decision-brief-label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.decision-brief-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.action-row {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}

.app-btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(214, 184, 74, 0.13);
}

.app-btn.secondary {
  background: transparent;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.30);
}

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 17px;
  background: rgba(26, 28, 29, 0.95);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.11);
}

.strip-title {
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-sub {
  margin-top: 3px;
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-status-strip {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(13, 14, 16, 0.48);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--surface-low);
}

.segmented button {
  flex: 1;
  min-height: 34px;
  border-radius: 11px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 950;
  background: transparent;
}

.segmented button.active {
  color: var(--gold);
  background: var(--surface-high);
}

.segmented.compact {
  margin-top: 11px;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
}

.segmented.compact button {
  min-height: 31px;
  border-radius: 9px;
  font-size: 12px;
}

.decision-meta {
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.decision-card {
  overflow: hidden;
}

.decision-card .headline-row {
  align-items: flex-start;
}

.decision-card .decision-word {
  margin-top: 7px;
  font-size: clamp(30px, 8vw, 38px);
  letter-spacing: -0.045em;
}

.decision-card .summary-line {
  -webkit-line-clamp: 2;
}

.decision-card .score-pill {
  margin-top: 2px;
}

.decision-core-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.decision-focus-block {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(13, 14, 16, 0.42);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.075);
}

.decision-focus-title {
  margin: 0 0 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.decision-focus-block .summary-line {
  margin: 0;
  display: block;
  -webkit-line-clamp: initial;
  overflow: visible;
}

.decision-collapse {
  margin-top: 10px;
  border-radius: 14px;
  background: rgba(13, 14, 16, 0.32);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.07);
  overflow: hidden;
}

.decision-collapse summary {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.decision-collapse summary::-webkit-details-marker {
  display: none;
}

.decision-collapse summary::after {
  content: "+";
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.decision-collapse[open] summary::after {
  content: "-";
}

.decision-collapse-body {
  padding: 0 12px 12px;
}

.decision-metric {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.decision-metric .metric-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.34;
}

.decision-insights {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.decision-insights-title {
  color: var(--faint);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-insight {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(244, 212, 99, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.decision-insight strong {
  color: var(--gold);
  margin-right: 6px;
}

.decision-execution {
  margin-top: 14px;
  display: grid;
  gap: 11px;
}

.execution-section {
  min-width: 0;
  padding: 11px;
  border-radius: 13px;
  background: rgba(13, 14, 16, 0.46);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.07);
}

.execution-section-title {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

.execution-overview-item {
  min-width: 0;
  padding: 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.038);
}

.execution-overview-label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.execution-overview-value {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.execution-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.execution-list li {
  padding: 8px 9px;
  border-radius: 11px;
  background: rgba(244, 212, 99, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.execution-account-grid {
  display: grid;
  gap: 9px;
}

.execution-account-card {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.042);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026);
}

.execution-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.execution-account-title {
  font-size: 14px;
  font-weight: 950;
}

.execution-account-body {
  display: grid;
  gap: 7px;
}

.execution-account-row,
.execution-data-row {
  display: grid;
  grid-template-columns: minmax(70px, 88px) 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.execution-account-row span:first-child,
.execution-data-row span:first-child {
  color: var(--faint);
  font-weight: 950;
  white-space: nowrap;
}

.execution-data-grid {
  display: grid;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.metric {
  min-width: 0;
  padding: 10px;
  border-radius: 13px;
  background: rgba(13, 14, 16, 0.48);
}

.metric-label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.metric-value {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list {
  display: grid;
  gap: 8px;
}

.quality-row,
.event-row,
.notification-row {
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026);
  width: 100%;
  min-width: 0;
  text-align: left;
}

.quality-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.data-summary-card .strip-title {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.data-summary-card .headline-row {
  align-items: flex-start;
}

.data-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.data-quick {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(13, 14, 16, 0.45);
}

.data-quick b {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.data-quick span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
}

.server-sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.server-sync-item {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026);
}

.server-sync-item b {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 920;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.server-sync-item span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 860;
}

.data-core-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.core-asset-card {
  min-width: 0;
  padding: 11px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026);
}

.core-asset-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.core-asset-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.core-asset-code {
  margin-top: 2px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
}

.core-asset-price {
  margin-top: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.core-asset-meta,
.core-asset-note {
  margin-top: 5px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-note-list {
  display: grid;
  gap: 8px;
}

.data-note {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(244, 212, 99, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.candidate-watch {
  display: grid;
  gap: 10px;
}

.candidate-watch-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.candidate-watch-title {
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.candidate-watch-sub {
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.candidate-watch-price {
  color: var(--gold);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.candidate-watch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.candidate-watch-metric {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(13, 14, 16, 0.42);
}

.candidate-watch-metric b {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.candidate-watch-metric span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 850;
}

.candidate-watch-boundary {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(201, 211, 255, 0.09);
  color: var(--blue);
  font-size: 11px;
  font-weight: 880;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.page-title-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(26, 28, 29, 0.95);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.10);
}

.page-title-card h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-title-card p {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.news-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 2px;
}

.news-title {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  line-height: 1.08;
  font-weight: 950;
}

.news-subtitle {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.news-source-pill {
  flex: 0 0 auto;
  max-width: 42%;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(244, 212, 99, 0.10);
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.28;
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.12);
  text-align: center;
  white-space: normal;
}

.news-tabs-shell {
  position: sticky;
  top: calc(55px + env(safe-area-inset-top, 0px));
  z-index: 12;
  margin: 0 -16px;
  padding: 10px 0 9px;
  background: linear-gradient(180deg, rgba(18, 19, 21, 0.98), rgba(18, 19, 21, 0.78));
  backdrop-filter: blur(16px);
}

.news-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 24px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: 20px;
}

.news-tabs::-webkit-scrollbar {
  display: none;
}

.news-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  scroll-snap-align: start;
}

.news-tab.active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #ffe27d 52%, var(--gold-dim));
  box-shadow: 0 10px 24px rgba(244, 212, 99, 0.16), inset 0 0 0 1px rgba(18, 19, 21, 0.18);
}

.news-tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
  padding: 0 2px;
}

.news-tool-row .pill {
  min-height: 22px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--faint);
}

.news-source-status {
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: 20px;
  background:
    radial-gradient(180px 100px at 92% 0%, rgba(244, 212, 99, 0.08), transparent 68%),
    rgba(26, 28, 29, 0.96);
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.08), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.news-source-status:empty,
.news-source-status[hidden] {
  display: none;
}

.news-source-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.news-source-status-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.news-source-status-sub {
  margin: 5px 0 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.news-source-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.news-source-stat {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.04);
}

.news-source-stat b {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 920;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.news-source-stat span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.35;
}

.news-provider-list {
  display: grid;
  gap: 8px;
}

.news-source-details {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.035);
  overflow: hidden;
}

.news-source-details summary {
  min-height: 36px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.news-source-details summary::-webkit-details-marker {
  display: none;
}

.news-source-details summary::after {
  content: "展开";
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
}

.news-source-details[open] summary::after {
  content: "收起";
}

.news-source-details .news-provider-list {
  padding: 0 9px 9px;
}

.news-provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.035);
}

.news-provider-main {
  min-width: 0;
}

.news-provider-main b {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.news-provider-main span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 620;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.news-provider-badge {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(244, 212, 99, 0.10);
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.10);
}

.news-provider-badge.disabled {
  background: rgba(255, 255, 255, 0.045);
  color: var(--faint);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.04);
}

.news-feed {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.news-empty {
  display: grid;
  gap: 11px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(140px 80px at 88% 0%, rgba(244, 212, 99, 0.08), transparent 70%),
    rgba(26, 28, 29, 0.96);
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.08);
}

.news-empty.error {
  background:
    radial-gradient(140px 80px at 88% 0%, rgba(255, 180, 171, 0.08), transparent 70%),
    rgba(26, 28, 29, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 171, 0.10);
}

.news-empty.error .news-empty-title {
  color: var(--red);
}

.news-empty-title {
  display: block;
  color: var(--gold);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.28;
}

.news-empty-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.news-empty-points {
  display: grid;
  gap: 7px;
}

.news-empty-point {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 230, 223, 0.78);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.45;
}

.news-empty-point::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 212, 99, 0.08);
}

.news-empty-note {
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255, 180, 171, 0.08);
  color: rgba(255, 214, 207, 0.88);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.45;
}

.news-timeline {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.news-item {
  display: grid;
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
}

.news-dot {
  display: none;
}

.news-dot.warning {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 180, 171, 0.08);
}

.news-time {
  margin-bottom: 7px;
  color: rgba(227, 226, 228, 0.64);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

.news-item-card {
  min-width: 0;
  padding: 15px 14px 14px;
  border-radius: 16px;
  background:
    radial-gradient(180px 110px at 90% 8%, rgba(244, 212, 99, 0.045), transparent 68%),
    rgba(26, 28, 29, 0.98);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.045), 0 16px 30px rgba(0, 0, 0, 0.20);
}

.news-item-card.warning {
  box-shadow: inset 4px 0 0 rgba(255, 180, 171, 0.80), inset 0 0 0 1px rgba(255, 180, 171, 0.05), 0 16px 30px rgba(0, 0, 0, 0.20);
}

.news-item-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.45;
}

.news-item-kicker.warning {
  color: var(--red);
}

.news-item-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.news-item-summary {
  margin: 10px 0 0;
  color: rgba(232, 230, 223, 0.78);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.news-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}

.news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(244, 212, 99, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.16);
}

.news-tag {
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(201, 211, 255, 0.10);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(201, 211, 255, 0.07);
}

.news-tag.gold {
  background: rgba(140, 184, 163, 0.14);
  color: #9cccae;
  box-shadow: inset 0 0 0 1px rgba(140, 184, 163, 0.18);
}

.news-tag.warn {
  background: rgba(255, 180, 171, 0.11);
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 171, 0.16);
}

.staging-preview-entry[hidden] {
  display: none;
}

.staging-preview-entry {
  margin-top: -2px;
  width: 100%;
  padding: 15px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background:
    radial-gradient(160px 90px at 92% 0%, rgba(201, 211, 255, 0.10), transparent 70%),
    rgba(26, 28, 29, 0.98);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(201, 211, 255, 0.10);
}

.staging-preview-entry b {
  display: block;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.staging-preview-entry span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.staging-preview-entry .pill {
  flex: 0 0 auto;
}

.staging-preview-head {
  display: grid;
  gap: 12px;
  padding: 18px 16px;
  border-radius: 21px;
  background:
    radial-gradient(180px 110px at 95% 0%, rgba(201, 211, 255, 0.12), transparent 72%),
    rgba(26, 28, 29, 0.98);
  box-shadow: inset 0 0 0 1px rgba(201, 211, 255, 0.10);
}

.staging-preview-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.staging-preview-title {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: 0;
}

.staging-preview-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.staging-preview-banner {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(201, 211, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 211, 255, 0.11);
}

.staging-preview-banner b {
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
}

.staging-preview-banner span {
  color: rgba(232, 230, 223, 0.78);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.staging-preview-status,
.staging-preview-list {
  display: grid;
  gap: 12px;
}

[data-view="news-staging-preview"] {
  padding-bottom: calc(132px + var(--safe-bottom));
}

[data-view="profile"] {
  padding-bottom: calc(132px + var(--safe-bottom));
}

.staging-preview-card {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(160px 90px at 94% 6%, rgba(244, 212, 99, 0.055), transparent 72%),
    rgba(26, 28, 29, 0.98);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.045), 0 12px 24px rgba(0, 0, 0, 0.16);
}

.staging-preview-card-title {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.staging-preview-card-title.is-long {
  font-size: 15px;
  line-height: 1.44;
}

.staging-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.staging-preview-meta .pill {
  min-height: auto;
  padding: 6px 9px;
  justify-content: flex-start;
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}

.staging-preview-summary {
  margin: 12px 0 0;
  color: rgba(232, 230, 223, 0.78);
  font-size: 13px;
  font-weight: 660;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.staging-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.profile-title {
  margin: 2px 0 4px;
  color: var(--text);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.profile-identity {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 20px 16px;
  border-radius: 22px;
  background:
    radial-gradient(180px 100px at 100% 0%, rgba(244, 212, 99, 0.08), transparent 72%),
    linear-gradient(90deg, rgba(30, 32, 33, 0.98), rgba(26, 28, 29, 0.94));
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.055), 0 18px 36px rgba(0, 0, 0, 0.24);
}

.profile-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 24%, rgba(244, 212, 99, 0.42), transparent 28%),
    linear-gradient(135deg, #2f3232, #141516);
  color: var(--gold);
  font-size: 20px;
  font-weight: 950;
  box-shadow: inset 0 0 0 2px rgba(244, 212, 99, 0.20);
}

.profile-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  box-shadow: 0 0 0 3px rgba(26, 28, 29, 0.94);
}

.profile-identity-main {
  flex: 1;
  min-width: 0;
}

.profile-name {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.profile-status {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.profile-identity-note {
  grid-column: 1 / -1;
  margin: -3px 0 0;
  color: rgba(207, 198, 176, 0.72);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.profile-scope-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -2px;
}

.profile-scope-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(244, 212, 99, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.13);
}

.profile-identity-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 64px;
}

.profile-card-action {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(244, 212, 99, 0.16);
  white-space: nowrap;
  cursor: pointer;
}

.profile-card-action[hidden] {
  display: none !important;
}

.profile-card-action.secondary {
  background: rgba(227, 226, 228, 0.08);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.12);
}

.profile-auth-copy {
  display: grid;
  gap: 4px;
  color: rgba(207, 198, 176, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-auth-copy b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.profile-section {
  padding: 18px 16px;
  border-radius: 21px;
  background: rgba(26, 28, 29, 0.98);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.055);
}

.profile-section.soft {
  background:
    radial-gradient(190px 110px at 100% 0%, rgba(244, 212, 99, 0.06), transparent 74%),
    rgba(18, 20, 21, 0.98);
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.profile-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(244, 212, 99, 0.08);
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.16);
  font-size: 16px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-grid + .profile-grid {
  margin-top: 12px;
}

.profile-item {
  min-width: 0;
  min-height: 78px;
  padding: 14px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.075);
}

.profile-item b {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.profile-item b.accent {
  color: var(--gold);
}

.profile-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.personal-overview-grid,
.personal-account-group-grid,
.personal-position-grid {
  grid-template-columns: 1fr;
}

.personal-summary-card,
.personal-dashboard-card,
.personal-returns-card,
.personal-events-card,
.personal-account-group {
  min-width: 0;
  padding: 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.055);
}

.personal-summary-head,
.personal-dashboard-head,
.personal-account-group-head,
.personal-position-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.personal-summary-title,
.personal-dashboard-title,
.personal-account-name,
.personal-position-title {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.personal-summary-sub,
.personal-dashboard-sub,
.personal-account-meta,
.personal-position-code,
.personal-position-updated {
  display: block;
  margin-top: 5px;
  color: rgba(207, 198, 176, 0.72);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.personal-summary-grid,
.personal-position-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.personal-summary-metric,
.personal-position-metric {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(10, 11, 12, 0.34);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.045);
}

.personal-summary-metric b,
.personal-position-metric b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.personal-summary-metric span,
.personal-position-metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
}

.personal-dashboard-card {
  display: grid;
  gap: 13px;
}

.personal-returns-card {
  display: grid;
  gap: 12px;
}

.personal-returns-card.reference {
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.16);
}

.personal-returns-card.placeholder {
  background: rgba(255, 255, 255, 0.055);
}

.personal-returns-status,
.personal-returns-placeholder {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(10, 11, 12, 0.30);
  color: rgba(207, 198, 176, 0.76);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.personal-returns-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-returns-account-list {
  display: grid;
  gap: 10px;
}

.personal-returns-account-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(10, 11, 12, 0.28);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.05);
}

.personal-consistency-card {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(10, 11, 12, 0.28);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.045);
}

.personal-consistency-list {
  display: grid;
  gap: 8px;
}

.personal-consistency-row {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(207, 198, 176, 0.74);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

.personal-consistency-row b,
.personal-consistency-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.personal-consistency-row b {
  color: var(--text);
  font-weight: 930;
}

.personal-events-card {
  display: grid;
  gap: 12px;
}

.personal-dashboard-section {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(10, 11, 12, 0.26);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.04);
}

.personal-dashboard-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.personal-allocation-list,
.personal-pnl-list,
.personal-risk-list,
.personal-event-list {
  display: grid;
  gap: 9px;
}

.personal-allocation-row,
.personal-pnl-row,
.personal-risk-row {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.personal-dashboard-row-head {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.personal-dashboard-row-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.personal-dashboard-row-head b {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.personal-allocation-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(227, 226, 228, 0.09);
}

.personal-allocation-fill {
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(244, 212, 99, 0.88), rgba(140, 184, 163, 0.82));
}

.personal-dashboard-meta {
  color: rgba(207, 198, 176, 0.70);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.personal-risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.personal-risk-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(244, 212, 99, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.13);
}

.personal-pnl-badge {
  align-self: flex-start;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 950;
  background: rgba(207, 198, 176, 0.10);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(207, 198, 176, 0.16);
}

.pnl-positive {
  color: #8fd8a8;
}

.pnl-negative {
  color: #f2a7a0;
}

.pnl-neutral {
  color: var(--muted);
}

.personal-pnl-badge.pnl-positive {
  background: rgba(83, 170, 113, 0.13);
  box-shadow: inset 0 0 0 1px rgba(143, 216, 168, 0.18);
}

.personal-pnl-badge.pnl-negative {
  background: rgba(202, 99, 91, 0.13);
  box-shadow: inset 0 0 0 1px rgba(242, 167, 160, 0.18);
}

.personal-account-tabs {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.personal-account-tablist {
  position: sticky;
  top: 78px;
  z-index: 8;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px 9px;
  margin: -2px -2px 0;
  scrollbar-width: none;
  background: linear-gradient(180deg, rgba(20, 18, 14, 0.96), rgba(20, 18, 14, 0.82));
}

.personal-account-tablist::-webkit-scrollbar {
  display: none;
}

.personal-tab-button {
  flex: 0 0 auto;
  min-width: 62px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(227, 226, 228, 0.08);
  color: rgba(207, 198, 176, 0.82);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.08);
}

.personal-tab-button.active {
  background: rgba(244, 212, 99, 0.18);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.28);
}

.personal-account-tab-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.personal-account-tab-summary {
  display: grid;
  gap: 9px;
}

.personal-account-group + .personal-account-group {
  margin-top: 12px;
}

.personal-dashboard-card + .personal-account-group {
  margin-top: 12px;
}

.personal-position-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.personal-position-card {
  min-width: 0;
  border-radius: 12px;
  padding: 12px;
  background: rgba(10, 11, 12, 0.30);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.05);
}

.personal-position-card.pnl-positive {
  box-shadow: inset 0 0 0 1px rgba(143, 216, 168, 0.18);
}

.personal-position-card.pnl-negative {
  box-shadow: inset 0 0 0 1px rgba(242, 167, 160, 0.18);
}

.personal-event-card {
  min-width: 0;
  border-radius: 12px;
  padding: 12px;
  background: rgba(10, 11, 12, 0.28);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.05);
}

.personal-events-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.personal-events-summary span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(227, 226, 228, 0.07);
  color: rgba(207, 198, 176, 0.78);
  font-size: 11px;
  font-weight: 820;
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.07);
}

.personal-events-filter-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(10, 11, 12, 0.24);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.06);
}

.personal-events-filter-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: rgba(207, 198, 176, 0.82);
  font-size: 12px;
  font-weight: 820;
}

.personal-events-filter-head b {
  color: var(--text);
  white-space: nowrap;
}

.personal-events-filter-block {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.personal-events-filter-block > b,
.personal-events-sort-label > span {
  color: rgba(207, 198, 176, 0.74);
  font-size: 11px;
  font-weight: 900;
}

.personal-event-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.personal-event-filter-row::-webkit-scrollbar {
  display: none;
}

.personal-event-sort-row {
  padding-bottom: 4px;
}

.personal-event-filter-chip {
  flex: 0 0 auto;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(227, 226, 228, 0.07);
  color: rgba(207, 198, 176, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 860;
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.08);
}

.personal-event-filter-chip.active {
  background: rgba(244, 212, 99, 0.18);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.28);
}

.personal-events-sort-label {
  display: grid;
  gap: 7px;
}

.personal-events-empty-state {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(227, 226, 228, 0.05);
  color: rgba(207, 198, 176, 0.76);
}

.personal-events-empty-state b {
  color: var(--text);
  font-size: 14px;
}

.personal-events-empty-state span {
  font-size: 12px;
  line-height: 1.5;
}

.personal-readonly-line {
  margin-top: 12px;
  color: rgba(207, 198, 176, 0.72);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.5;
}

.profile-note {
  margin: 15px 2px 0;
  color: rgba(207, 198, 176, 0.68);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.security-entry {
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: rgba(13, 14, 16, 0.92);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.04);
}

.admin-status-entry {
  margin-top: 14px;
}

.admin-warning-list {
  display: grid;
  gap: 10px;
}

.admin-warning-item {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.05);
}

.admin-warning-item b {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-warning-item span,
.admin-warning-item p {
  display: block;
  margin: 6px 0 0;
  color: rgba(207, 198, 176, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.security-entry-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.security-entry-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(244, 212, 99, 0.12);
  color: var(--gold);
  font-size: 20px;
}

.security-entry-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.security-entry-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-version {
  margin: 22px 0 6px;
  text-align: center;
  color: rgba(244, 212, 99, 0.30);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 390px) {
  .profile-identity {
    grid-template-columns: auto 1fr;
  }

  .profile-identity-action {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
  }

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

.readonly-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.readonly-input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: none;
  border-radius: 13px;
  padding: 0 12px;
  background: #0d0e10;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.10);
}

.readonly-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.login-screen {
  min-height: 100dvh;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 24px calc(34px + var(--safe-bottom));
  background:
    radial-gradient(260px 150px at 50% 15%, rgba(244, 212, 99, 0.07), transparent 68%),
    #050607;
  justify-content: space-between;
  gap: 18px;
}

.login-back {
  align-self: flex-start;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(227, 226, 228, 0.70);
  background: rgba(227, 226, 228, 0.06);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.07);
  font-size: 12px;
  font-weight: 900;
}

.login-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.login-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.login-hex {
  position: relative;
  width: 68px;
  height: 60px;
  filter: drop-shadow(0 0 22px rgba(244, 212, 99, 0.24));
}

.login-hex::before,
.login-hex::after {
  content: "";
  position: absolute;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.login-hex::before {
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
}

.login-hex::after {
  inset: 8px;
  background: #050607;
}

.login-brand-title {
  margin: 0;
  color: var(--text);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.05;
}

.login-brand-title strong {
  color: var(--gold);
  font-weight: 780;
}

.login-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
  max-width: 280px;
}

.login-boundary {
  margin: 0;
  max-width: 310px;
  color: rgba(227, 226, 228, 0.58);
  font-size: 12px;
  line-height: 1.65;
}

.login-card {
  width: 100%;
  padding: 22px;
  border-radius: 20px;
  background: rgba(18, 19, 21, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(227, 226, 228, 0.045),
    0 28px 64px rgba(0, 0, 0, 0.32);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.login-field-note {
  margin: 0;
  color: rgba(227, 226, 228, 0.42);
  font-size: 11px;
  line-height: 1.45;
}

.login-input-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 15px;
  border-radius: 17px;
  background: #1a1c1d;
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.07);
  transition: box-shadow 160ms ease, background 160ms ease;
}

.login-input-wrap:focus-within {
  background: #1d1f20;
  box-shadow:
    inset 0 0 0 1px rgba(244, 212, 99, 0.38),
    0 0 0 4px rgba(244, 212, 99, 0.08);
}

.login-input {
  min-width: 0;
  width: 100%;
  height: 56px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
}

.login-input::placeholder {
  color: rgba(227, 226, 228, 0.28);
}

.login-code-button {
  flex: 0 0 auto;
  min-height: 40px;
  max-width: 104px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(244, 212, 99, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.login-submit {
  min-height: 58px;
  padding: 0 14px;
  border-radius: 17px;
  background: linear-gradient(145deg, #303133, #202123);
  color: var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(227, 226, 228, 0.055),
    0 10px 28px rgba(0, 0, 0, 0.24);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
  white-space: normal;
}

.login-submit:disabled,
.auth-code-button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-code-button {
  pointer-events: auto;
}

.login-message {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(227, 226, 228, 0.74);
  background: rgba(227, 226, 228, 0.055);
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.07);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(227, 226, 228, 0.48);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  line-height: 1.45;
}

.login-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 18px;
  color: rgba(227, 226, 228, 0.34);
  box-shadow: inset 0 1px 0 rgba(227, 226, 228, 0.035);
}

.login-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.login-link {
  padding: 0;
  background: transparent;
  color: rgba(227, 226, 228, 0.42);
  font-size: 12px;
  font-weight: 850;
}

.login-copyright {
  margin: 0;
  color: rgba(227, 226, 228, 0.34);
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
}

.row-title {
  margin: 0;
  font-size: 13px;
  font-weight: 950;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-sub {
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-row,
.notification-row {
  display: grid;
  gap: 6px;
  justify-items: stretch;
  align-items: start;
}

.event-head,
.notification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.event-main,
.notification-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.event-head .pill,
.notification-head .pill {
  flex: 0 0 auto;
}

.notification-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-row.unread {
  background: rgba(244, 212, 99, 0.07);
  box-shadow: inset 0 0 0 1px rgba(244, 212, 99, 0.17);
}

.notification-row {
  position: relative;
  overflow: hidden;
  border: 0;
  color: var(--text);
}

.notification-row[data-notification-id] {
  cursor: pointer;
}

.notification-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(244, 212, 99, 0.72);
  opacity: 0.58;
}

.notification-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.notification-card-field {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 11px;
  background: rgba(13, 14, 16, 0.33);
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
}

.notification-card-field b {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-inline-detail {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.notification-inline-detail summary {
  list-style: none;
  cursor: pointer;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
}

.notification-inline-detail summary::-webkit-details-marker {
  display: none;
}

.notification-inline-detail summary::after {
  content: "展开";
  float: right;
  color: var(--faint);
  font-size: 10px;
}

.notification-inline-detail[open] summary::after {
  content: "收起";
}

.notification-inline-detail p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.notification-readonly-note {
  margin: 8px 0 12px;
  padding: 10px 11px;
  border-radius: 13px;
  color: rgba(232, 230, 223, 0.78);
  background: rgba(140, 184, 163, 0.10);
  box-shadow: inset 0 0 0 1px rgba(140, 184, 163, 0.14);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.45;
}

.notification-baseline-note {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.4;
}

.notification-section-title {
  margin: 0 0 7px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 950;
}

.notification-empty {
  padding: 12px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.notification-group-strip {
  padding-bottom: 4px;
}

.notification-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.notification-filter-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
}

.notification-filter-grid select,
.notification-filter-grid input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.notification-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.notification-meta-line .pill {
  min-height: auto;
  padding: 5px 8px;
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.message-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.message-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.message-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.stat {
  padding: 10px 5px;
  text-align: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.stat b {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
}

.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

#mobileNotificationGroups,
#noticeFilters,
#noticeAdvancedFilters {
  margin-top: 14px;
}

@media (max-width: 480px) {
  .message-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.filter {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--faint);
  font-size: 12px;
  font-weight: 950;
}

.filter.active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
}

.more-data-button {
  position: static;
  width: 100%;
  margin-top: 12px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 25;
  width: min(var(--maxw), 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 9px 12px calc(12px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: rgba(26, 28, 29, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: inset 0 1px 0 rgba(227, 226, 228, 0.10), 0 -12px 32px rgba(0, 0, 0, 0.28);
}

.nav-btn {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 16px;
  background: transparent;
  color: rgba(227, 226, 228, 0.52);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  position: relative;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
}

.nav-btn.active {
  background: var(--surface-high);
  color: var(--gold);
}

.nav-badge {
  position: absolute;
  top: 5px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  display: none;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #270000;
  font-size: 10px;
  font-weight: 950;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(3px);
}

.sheet-mask.open {
  display: block;
}

.bottom-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--maxw));
  max-height: 75vh;
  transform: translate(-50%, 105%);
  display: flex;
  flex-direction: column;
  border-radius: 26px 26px 0 0;
  background: #181a1b;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(227, 226, 228, 0.10);
  transition: transform 190ms ease-out;
}

.sheet-mask.open .bottom-sheet {
  transform: translate(-50%, 0);
}

.sheet-head {
  flex: 0 0 auto;
  padding: 14px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(76, 70, 54, 0.18);
}

.sheet-title {
  font-size: 16px;
  font-weight: 950;
}

.sheet-close {
  min-width: 42px;
  min-height: 34px;
  border-radius: 12px;
  color: var(--gold);
  background: rgba(244, 212, 99, 0.08);
  font-weight: 950;
}

.sheet-body {
  overflow: auto;
  padding: 14px 18px calc(18px + var(--safe-bottom));
  display: grid;
  gap: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

.sheet-block {
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sheet-block h4 {
  margin: 0 0 7px;
  font-size: 13px;
  color: var(--gold);
}

.sheet-block p,
.sheet-block li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sheet-block ul {
  margin: 0;
  padding-left: 18px;
}

.detail-text,
.sheet-content,
.sheet-card,
.long-text,
.json-safe-text {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

pre,
code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.api-input {
  width: 100%;
  margin-top: 8px;
  border: 0;
  outline: none;
  border-radius: 13px;
  padding: 12px;
  background: #0d0e10;
  box-shadow: inset 0 0 0 1px rgba(227, 226, 228, 0.10);
}

.loading {
  position: fixed;
  left: 50%;
  top: 70px;
  z-index: 80;
  display: none;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 14, 16, 0.86);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--ghost-gold);
  font-size: 12px;
  font-weight: 950;
}

.loading.show { display: block; }

@media (max-height: 780px) {
  .price-main { font-size: 43px; }
  .price-card { padding: 16px; }
  .chart { height: 122px; }
  .screen { gap: 9px; padding-top: 8px; }
  .mini-card { min-height: 78px; padding: 9px; }
  .mini-value { font-size: 17px; }
  .decision-word { font-size: 32px; }
}

@media (min-width: 720px) {
  :root { --maxw: 760px; }
  .screen { min-height: auto; }
  .grid2 { grid-template-columns: repeat(4, 1fr); }
  .bottom-nav { display: none; }
  body { padding-bottom: 24px; }
}
