/* Stage 447 · Client Account Ledger + Broker Knowledge Core */
:root {
  --stage447-bg: rgba(5, 13, 24, 0.88);
  --stage447-card: rgba(255, 255, 255, 0.062);
  --stage447-line: rgba(122, 240, 193, 0.22);
  --stage447-text: #efffff;
  --stage447-muted: rgba(224, 247, 255, 0.68);
  --stage447-accent: #79f0c1;
  --stage447-gold: #f5c96b;
  --stage447-warn: #ffcf7a;
  --stage447-danger: #ff7d93;
}

.stage447-account-ledger,
.stage447-landing-core,
.stage447-operator-client360 {
  position: relative;
  overflow: hidden;
  margin: clamp(18px, 3vw, 42px) auto;
  max-width: 1220px;
  border: 1px solid var(--stage447-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(121, 240, 193, 0.16), transparent 35%),
    radial-gradient(circle at 92% 10%, rgba(245, 201, 107, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(5, 13, 24, 0.94), rgba(10, 20, 38, 0.86));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  color: var(--stage447-text);
  padding: clamp(18px, 2.4vw, 32px);
}

.stage447-account-ledger::before,
.stage447-landing-core::before,
.stage447-operator-client360::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

.stage447-head,
.stage447-title-row {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.stage447-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(121, 240, 193, 0.11);
  border: 1px solid rgba(121, 240, 193, 0.23);
  color: var(--stage447-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stage447-account-ledger h2,
.stage447-landing-core h2,
.stage447-operator-client360 h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.stage447-account-ledger p,
.stage447-landing-core p,
.stage447-operator-client360 p {
  margin: 0;
  color: var(--stage447-muted);
  line-height: 1.62;
}

.stage447-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stage447-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: var(--stage447-card);
  padding: 16px;
  min-height: 118px;
  backdrop-filter: blur(12px);
}

.stage447-card strong {
  display: block;
  font-size: 13px;
  color: rgba(240, 255, 251, .94);
  margin-bottom: 7px;
}

.stage447-metric {
  display: block;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--stage447-accent);
}

.stage447-small {
  display: block;
  margin-top: 4px;
  color: var(--stage447-muted);
  font-size: 12px;
}

.stage447-actions {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.stage447-btn {
  cursor: pointer;
  border: 1px solid rgba(121, 240, 193, .28);
  border-radius: 999px;
  background: rgba(121, 240, 193, .12);
  color: var(--stage447-text);
  padding: 10px 14px;
  font-weight: 800;
  font-size: 12px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.stage447-btn:hover,
.stage447-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
  background: rgba(121, 240, 193, .2);
  border-color: rgba(121, 240, 193, .52);
}

.stage447-btn.secondary {
  background: rgba(245, 201, 107, .09);
  border-color: rgba(245, 201, 107, .25);
}

.stage447-panel-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  margin-top: 12px;
}

.stage447-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.stage447-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  padding: 10px 12px;
}

.stage447-row b { font-size: 13px; }
.stage447-row span { color: var(--stage447-muted); font-size: 12px; }

.stage447-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  color: var(--stage447-accent);
  background: rgba(121,240,193,.08);
}

.stage447-pill.warn { color: var(--stage447-warn); background: rgba(255,207,122,.08); }
.stage447-pill.danger { color: var(--stage447-danger); background: rgba(255,125,147,.08); }

.stage447-status-line {
  position: relative;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.07);
  color: var(--stage447-muted);
  font-size: 12px;
}

.stage447-knowledge-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stage447-knowledge-card {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.045);
}

.stage447-knowledge-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

body.stage447-booted .stage447-account-ledger,
body.stage447-booted .stage447-landing-core,
body.stage447-booted .stage447-operator-client360 {
  animation: stage447FadeUp .35s ease both;
}

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

@media (max-width: 980px) {
  .stage447-grid,
  .stage447-knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage447-panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .stage447-account-ledger,
  .stage447-landing-core,
  .stage447-operator-client360 {
    border-radius: 22px;
    padding: 16px;
    margin: 14px 10px;
  }
  .stage447-grid,
  .stage447-knowledge-grid { grid-template-columns: 1fr; }
  .stage447-row { grid-template-columns: 1fr; }
  .stage447-actions { flex-direction: column; }
  .stage447-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body.stage447-booted .stage447-account-ledger,
  body.stage447-booted .stage447-landing-core,
  body.stage447-booted .stage447-operator-client360 { animation: none; }
  .stage447-btn { transition: none; }
}
