:root {
  color-scheme: dark;
  --background: #030403;
  --border: rgba(255, 255, 255, 0.16);
  --text: #f4f7f5;
  --muted: #9aa49e;
  --accent: #d5ad5c;
  --danger: #ff9d9d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
  background: #000;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(app-header), ::view-transition-new(app-header) { animation: none; }
::view-transition-old(app-content) { animation: app-content-out 90ms ease-in both; }
::view-transition-new(app-content) { animation: app-content-in 180ms ease-out both; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: #000;
}

button, input, select { font: inherit; }
a { color: var(--accent); }
.icon, .choice-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 2;
  padding: 0.75rem 1rem;
  color: #06110b;
  background: var(--accent);
  border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  justify-items: center;
  align-items: start;
  padding: 2rem;
  overflow-x: clip;
  background: #000;
}
.page-shell::before,
.page-shell::after {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  content: "";
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .08) 8%, rgba(0, 0, 0, .42) 20%, #000 36%, #000 64%, rgba(0, 0, 0, .42) 80%, rgba(0, 0, 0, .08) 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .08) 8%, rgba(0, 0, 0, .42) 20%, #000 36%, #000 64%, rgba(0, 0, 0, .42) 80%, rgba(0, 0, 0, .08) 92%, transparent 100%);
}
.page-shell::before {
  background:
    radial-gradient(ellipse at 17% 18%, rgba(227, 188, 107, .17), rgba(173, 126, 47, .055) 22%, transparent 48%),
    radial-gradient(ellipse at 82% 48%, rgba(213, 173, 92, .12), rgba(151, 106, 39, .035) 20%, transparent 44%),
    radial-gradient(ellipse at 38% 92%, rgba(213, 173, 92, .09), transparent 39%);
  filter: blur(18px);
  opacity: .9;
  animation: ambient-gold-drift 26s ease-in-out infinite alternate;
}
.page-shell::after {
  background:
    radial-gradient(circle at 13% 27%, rgba(243, 213, 148, .72) 0 1px, transparent 2px),
    radial-gradient(circle at 27% 68%, rgba(213, 173, 92, .48) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 41% 14%, rgba(243, 213, 148, .4) 0 .8px, transparent 1.8px),
    radial-gradient(circle at 57% 81%, rgba(213, 173, 92, .5) 0 1px, transparent 2.2px),
    radial-gradient(circle at 73% 31%, rgba(243, 213, 148, .55) 0 1px, transparent 2.1px),
    radial-gradient(circle at 89% 64%, rgba(213, 173, 92, .38) 0 1.1px, transparent 2.2px);
  opacity: .4;
  animation: ambient-specks-drift 32s ease-in-out infinite alternate;
}
.page-shell > * {
  position: relative;
  z-index: 1;
}
@keyframes ambient-gold-drift {
  0% { transform: translateY(-1%) scale(1); }
  52% { transform: translateY(1.5%) scale(1.035); }
  100% { transform: translateY(2.2%) scale(1.015); }
}
@keyframes ambient-specks-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2%); }
}
@keyframes app-content-out { to { opacity: 0; transform: translateY(-2px); } }
@keyframes app-content-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.app-page-content { view-transition-name: app-content; animation: app-content-in 180ms ease-out both; }

.auth-card {
  align-self: center;
  width: min(100%, 440px);
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; line-height: 1; }

header { margin-bottom: 2rem; }
h1 { margin: 0.35rem 0 0.75rem; font-size: clamp(1.9rem, 6vw, 2.55rem); line-height: 1.06; letter-spacing: -0.05em; }
p { line-height: 1.55; }
.eyebrow { margin: 0; color: var(--accent); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.muted { margin: 0; color: var(--muted); }

.form-stack { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 650; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  background: #090b0a;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(213, 173, 92, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(213, 173, 92, 0.16); }

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: #07110b;
  font-weight: 750;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #dfbd74, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.18);
}
button:hover { filter: brightness(1.06); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.help-text, .help-text ul { margin: 0; padding-left: 1rem; color: var(--muted); font-size: 0.78rem; }
.field-error { margin: 0; color: var(--danger); font-size: 0.84rem; }
.form-alert { margin-bottom: 1rem; padding: 0.85rem; color: var(--danger); border: 1px solid rgba(255, 157, 157, 0.25); border-radius: 12px; background: rgba(255, 157, 157, 0.07); }
.form-alert ul { margin: 0; padding-left: 1rem; }
.flash-messages { position: fixed; top: max(1rem, env(safe-area-inset-top)); right: 1rem; z-index: 50; display: grid; width: min(calc(100% - 2rem), 440px); gap: 0.55rem; }
.flash-message { margin: 0; padding: 0.9rem 1rem; color: var(--text); font-size: 0.86rem; font-weight: 650; border: 1px solid rgba(213, 173, 92, 0.42); border-radius: 13px; background: rgba(12, 15, 13, 0.96); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48); backdrop-filter: blur(16px); }
.flash-success { border-color: rgba(117, 223, 173, 0.38); }
.flash-error { color: #ffd2d2; border-color: rgba(255, 157, 157, 0.42); }
.auth-switch { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

.dashboard { width: min(100%, 1120px); min-height: min(720px, calc(100vh - 4rem)); padding: 1.5rem; }
.app-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; view-transition-name: app-header; }
.app-nav .brand { margin: 0; }
.dashboard nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dashboard nav .brand { margin: 0; }
.staff-link { margin-left: auto; color: var(--muted); font-size: 0.82rem; text-decoration: none; }
.staff-link:hover { color: var(--text); }
.button-secondary { color: var(--text); border: 1px solid var(--border); background: transparent; }
.nav-action { min-height: 44px; padding: 0.65rem 0.85rem; }
.add-account-action { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .58rem .95rem; color: #07110b; font-size: .78rem; font-weight: 750; text-decoration: none; border: 0; border-radius: 999px; background: linear-gradient(145deg, #e3bf73, var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px rgba(0,0,0,.18); white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: color 120ms ease, background 120ms ease, box-shadow 120ms ease, transform 120ms ease, filter 120ms ease; }
.add-account-action .icon { width: 1.08rem; height: 1.08rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.add-account-action:hover { color: #07110b; filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 9px 20px rgba(0,0,0,.24); }
.add-account-action:active, .add-account-action.is-pressed { color: #eef0ed; background: linear-gradient(145deg, #898b84, #6e726d); filter: none; transform: translateY(1px) scale(.975); box-shadow: inset 0 2px 5px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.18); }
.button-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.75rem 1rem; color: #07110b; font-weight: 750; text-decoration: none; border-radius: 12px; background: var(--accent); }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 5rem 0 2rem; }
.dashboard-title-row { display: flex; align-items: baseline; gap: .95rem; min-width: 0; }
.dashboard-heading h1 { margin-bottom: 0; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }

.subscription-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  margin: -1rem 0 1.35rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(213, 173, 92, .42);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(213, 173, 92, .08), rgba(7, 10, 8, .64) 44%, rgba(3, 4, 3, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 14px 36px rgba(0, 0, 0, .2);
}
.subscription-summary.requires-activation { border-color: rgba(225, 182, 91, .72); }
.subscription-state-dot { width: .65rem; height: .65rem; border-radius: 999px; background: var(--accent); box-shadow: 0 0 16px rgba(213, 173, 92, .42); }
.subscription-summary.is-active .subscription-state-dot { background: #75dfad; box-shadow: 0 0 16px rgba(117, 223, 173, .35); }
.subscription-summary.needs-attention .subscription-state-dot { background: var(--danger); box-shadow: 0 0 16px rgba(255, 157, 157, .3); }
.subscription-summary-copy { display: grid; gap: .18rem; min-width: 0; }
.subscription-summary-label { color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.subscription-summary-copy strong { overflow: hidden; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 4.2vw, 1.22rem); font-weight: 500; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.subscription-summary-copy small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.subscription-summary-action {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 40px;
  padding: .5rem .75rem;
  color: #0a0b09;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #e7c579, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.subscription-summary.is-active .subscription-summary-action,
.subscription-summary.needs-attention .subscription-summary-action { color: var(--accent); border: 1px solid rgba(213, 173, 92, .55); background: rgba(4, 6, 5, .58); }
.subscription-summary-action svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.subscription-page { max-width: 760px; }
.subscription-heading { margin-bottom: 1.4rem; }
.subscription-offer {
  padding: clamp(1.4rem, 5vw, 2rem);
  text-align: center;
  border: 1px solid rgba(213, 173, 92, .38);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(213, 173, 92, .055), rgba(3, 5, 4, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 18px 50px rgba(0, 0, 0, .24);
}
.subscription-price { margin: .65rem 0 0; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 12vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.subscription-price small { color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .25em; font-weight: 500; letter-spacing: 0; }
.subscription-count { margin: .5rem 0 1.5rem; color: var(--muted); }
.subscription-inclusions { display: grid; gap: .8rem; margin: 0 0 1.5rem; padding: 1.25rem 0; color: var(--text); text-align: left; list-style: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.subscription-inclusions li { position: relative; padding-left: 1.45rem; }
.subscription-inclusions li::before { position: absolute; left: .1rem; color: var(--accent); content: "✓"; }
.subscription-checkout-placeholder { width: 100%; opacity: .7; cursor: not-allowed; }
.subscription-technical-note { margin: .8rem 0 0; color: var(--muted); font-size: .72rem; }
.subscription-active-note { margin: 0; padding: .9rem 1rem; color: #91e7bd; border: 1px solid rgba(117, 223, 173, .22); border-radius: 14px; background: rgba(29, 86, 59, .15); }
.account-card { position: relative; padding: 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: #090b0a; }
.account-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.portfolio-account .account-card-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  align-items: center;
  gap: var(--portfolio-grid-gap, 1.3rem);
}
.portfolio-account .account-card-top .account-type { grid-column: 1; grid-row: 1; }
.portfolio-account .account-card-top .account-card-status-slot {
  display: flex;
  min-width: 0;
  min-height: 36px;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  padding-left: .5rem;
}
.account-card-actions { display: inline-flex; align-items: center; margin-left: .5rem; }
.account-card-open { display: inline-grid; width: 30px; height: 36px; place-items: center; color: var(--accent); border-radius: 8px; }
.account-card-open svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.account-card-open:hover { background: rgba(213, 173, 92, .08); }
.portfolio-account .account-card-top .compact-phase-title {
  grid-column: 2;
  grid-row: 1;
  border-left: 0;
  padding-left: 0;
}
.portfolio-account .account-card-top .card-menu {
  position: absolute;
  top: 50%;
  right: -0.65rem;
  z-index: 2;
  margin: 0;
  transform: translateY(-50%);
}
.portfolio-account .account-card-top .account-type {
  min-width: 0;
  justify-self: start;
  flex: 0 0 auto;
}
.portfolio-account .account-card-top .account-card-status {
  margin: 0;
  flex: 0 0 auto;
}
.portfolio-account .account-card-top .compact-phase-title {
  justify-self: stretch;
  width: 100%;
  flex: none;
}
.account-card-top > .account-card-status { flex: 0 1 auto; min-width: 0; margin-right: auto; font-size: .65rem; }
.account-phase-logo { display: flex; align-items: center; justify-content: flex-start; gap: 4px; width: 100%; min-width: 0; padding-inline: 0; }
.account-phase-logo img { display: block; flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; opacity: .78; filter: saturate(.78) brightness(.88); }
.phase-wordmark { font: 600 11.5px/1.15 var(--font-sans, sans-serif); color: var(--text); white-space: nowrap; }
.phase-wordmark small { display: block; margin-top: 3px; font-size: 8px; font-weight: 400; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.account-phase-logo.is-stale { opacity: .7; }
.has-phase-header .account-card-top { gap: var(--portfolio-grid-gap, 1.3rem); }
.has-phase-header .account-card-top { grid-template-columns: auto auto minmax(0, 1fr); }
.darwinex-account:not(.has-phase-header) .account-card-top {
  display: flex;
  grid-template-columns: none;
  justify-content: space-between;
}
.darwinex-account:not(.has-phase-header) .account-card-status-slot {
  min-height: 0;
  justify-content: flex-end;
  border-left: 0;
  padding-left: 0;
  margin-left: auto;
}
.portfolio-account.has-phase-header .account-card-top .account-card-status-slot { justify-content: flex-end; border-left: 0; padding-left: 0; }
.has-phase-header .compact-phase-title { width: auto; }
.has-phase-header .account-phase-logo { width: auto; }
.has-phase-header .account-type { font-size: 13px; font-weight: 750; letter-spacing: .03em; gap: 6px; }
.account-capital-total { color: var(--accent); font-size: .9em; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.portfolio-account.has-phase-header .account-type-logo { width: 20px; height: 24px; }
.account-card.has-phase-header .compact-phase-title { flex: 0 0 auto; width: 100%; min-width: 0; margin: 0; }
.compact-phase-title a { display: flex; align-items: center; min-height: 36px; text-decoration: none; }
.compact-phase-title a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.has-phase-header .account-card-status { flex: 0 0 auto; font-size: 11px; padding: 5px 7px; }
.has-phase-header .status-connected::before,
.prop-account .status-connected::before {
  display: block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  content: "";
  align-self: center;
  border-radius: 50%;
  background: currentColor;
}
@media (max-width: 359px) {
  .subscription-summary { grid-template-columns: auto minmax(0, 1fr); }
  .subscription-summary-action { grid-column: 1 / -1; justify-content: center; }
  .has-phase-header .account-card-top { margin-inline: 0; gap: var(--portfolio-grid-gap, .75rem); }
  .has-phase-header .account-type { font-size: 11px; font-weight: 700; letter-spacing: .04em; gap: 4px; }
  .portfolio-account.has-phase-header .account-type-logo { width: 18px; height: 22px; }
  .account-card.has-phase-header .compact-phase-title { flex-basis: auto; width: 100%; }
  .has-phase-header .account-phase-logo { gap: 3px; }
  .has-phase-header .account-phase-logo img { flex-basis: 24px; width: 24px; height: 24px; }
  .has-phase-header .phase-wordmark { font-size: 9.5px; }
  .has-phase-header .phase-wordmark small { font-size: 8px; }
  .has-phase-header .account-card-status-slot { padding-left: .25rem; }
  .has-phase-header .compact-phase-title { padding-left: 0; }
  .has-phase-header .account-card-status { font-size: 10px; padding: 5px 3px; }
  .has-phase-header .account-card-actions { gap: .25rem; margin-left: .25rem; }
  .has-phase-header .account-card-open { width: 24px; }
  .has-phase-header .status-connected::before,
  .prop-account .status-connected::before { flex-basis: 4px; width: 4px; height: 4px; margin-right: 4px; }
}
@media (min-width: 601px) {
  .has-phase-header .account-card-top { gap: var(--portfolio-grid-gap, 1.3rem); }
  .has-phase-header .account-type { font-size: 15px; font-weight: 700; letter-spacing: .05em; gap: 8px; }
  .portfolio-account.has-phase-header .account-type-logo { width: 28px; height: 32px; }
  .account-card.has-phase-header .compact-phase-title { flex-basis: auto; width: 100%; }
  .has-phase-header .account-phase-logo { gap: 6px; }
  .has-phase-header .account-card-status-slot, .has-phase-header .compact-phase-title { padding-left: 0; }
  .has-phase-header .account-phase-logo img { flex-basis: 34px; width: 34px; height: 34px; }
  .has-phase-header .phase-wordmark { font-size: 14px; }
  .has-phase-header .phase-wordmark small { font-size: 10px; }
  .has-phase-header .account-card-status { font-size: 13px; padding: 7px 10px; }
}
.account-card h2 { margin: 1.25rem 0 0.35rem; overflow-wrap: anywhere; font-size: 1.05rem; }
.account-type { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.account-type .icon { width: 1rem; height: 1rem; color: var(--accent); }
.account-type-logo { width: 1.15rem; height: 1.3rem; object-fit: contain; }
.status { padding: 0.35rem 0.55rem; font-size: 0.72rem; border-radius: 999px; background: rgba(213, 173, 92, 0.12); color: var(--accent); }
.status-connected { color: #86d4aa; background: rgba(134, 212, 170, 0.1); }
.status-rejected, .status-action_required, .status-deletion_requested { color: var(--danger); background: rgba(255, 157, 157, 0.08); }
.account-card-status { display: inline-flex; margin-top: 1.25rem; }
.card-menu { position: relative; margin: -0.65rem -0.65rem -0.65rem 0; }
.card-menu summary { display: grid; width: 44px; height: 44px; place-items: center; cursor: pointer; color: var(--muted); border-radius: 10px; list-style: none; }
.card-menu summary::-webkit-details-marker { display: none; }
.card-menu summary:hover, .card-menu[open] summary { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.card-menu summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-menu summary svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.card-menu-popover { position: absolute; z-index: 3; top: 2.75rem; right: 0; width: 150px; padding: 0.35rem; border: 1px solid var(--border); border-radius: 12px; background: #111311; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.card-menu-popover a, .card-menu-popover button { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: flex-start; padding: 0.65rem 0.75rem; color: var(--text); font-size: 0.875rem; font-weight: 600; text-decoration: none; border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
.card-menu-popover a:hover, .card-menu-popover button:hover { background: rgba(255, 255, 255, 0.06); }
.card-menu-popover .menu-action-delete { color: var(--danger); }
.account-delete-form { display: none; }
.modal-open { overflow: hidden; }
.confirm-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, 0.78); }
.confirm-backdrop[hidden] { display: none; }
.confirm-modal { width: min(100%, 380px); padding: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; background: #111311; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.confirm-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 1rem; color: var(--danger); border: 1px solid rgba(255, 157, 157, 0.28); border-radius: 50%; background: rgba(255, 157, 157, 0.08); }
.confirm-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.confirm-modal h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.confirm-modal p { margin: 0; color: var(--muted); line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 0.65rem; margin-top: 1.5rem; }
.confirm-actions button { min-height: 44px; }
.confirm-actions .button-secondary { color: var(--text); }
.button-danger { color: #fff4f4; border: 1px solid rgba(255, 157, 157, 0.3); background: rgba(137, 43, 43, 0.78); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.review-note { margin: 1rem 0 0; color: var(--danger); font-size: 0.85rem; }
.account-form-page { width: min(100%, 560px); padding: 2rem; }
.account-form-heading { margin: 4.5rem 0 2rem; }
.account-form-heading .dashboard-title-row { align-items: center; gap: .7rem; }
.account-form-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 400; letter-spacing: -.025em; }
.account-back-action { display: inline-grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: var(--accent); text-decoration: none; border: 1px solid rgba(213, 173, 92, .28); border-radius: 50%; background: rgba(213, 173, 92, .06); -webkit-tap-highlight-color: transparent; transition: color 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease; }
.account-back-action:hover { color: #edcb83; border-color: rgba(213, 173, 92, .52); background: rgba(213, 173, 92, .1); }
.account-back-action:active, .account-back-action.is-pressed { color: #11120f; border-color: var(--accent); background: var(--accent); transform: translateY(1px) scale(.94); box-shadow: inset 0 2px 4px rgba(0,0,0,.2), 0 0 0 4px rgba(213,173,92,.1); }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 0.25rem; text-decoration: none; }
.account-type-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.account-type-option { position: relative; display: grid; min-height: 108px; place-items: center; align-content: center; gap: 0.65rem; cursor: pointer; color: var(--muted); border: 1px solid var(--border); border-radius: 14px; background: #090b0a; }
.account-type-option input { position: absolute; opacity: 0; pointer-events: none; }
.account-type-option:has(input:checked) { color: var(--text); border-color: var(--accent); background: rgba(213, 173, 92, 0.08); box-shadow: 0 0 0 3px rgba(213, 173, 92, 0.1); }
.account-type-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.choice-icon { width: 1.65rem; height: 1.65rem; color: var(--accent); }
.choice-logo { width: 2rem; height: 2.3rem; object-fit: contain; }
.propfirm-logo { width: 2.15rem; }
[data-account-fields] { display: grid; gap: 1.15rem; }
.account-details { gap: 1.15rem; }
.account-form-enhanced .account-details { display: none; }
.account-form-enhanced .account-details.is-visible { display: grid; animation: account-details-in 180ms ease-out; }
.account-details > button { margin-top: 0.5rem; }
@keyframes account-details-in { from { opacity: 0; transform: translateY(8px); } }
.empty-state { display: grid; min-height: 320px; place-content: center; justify-items: center; gap: 0.75rem; padding: 2rem; text-align: center; }
.empty-state .muted { max-width: 34rem; }
.empty-icon { width: 2rem; height: 2rem; padding: 0.4rem; color: var(--accent); border: 1px solid rgba(213, 173, 92, 0.3); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.staff-page { width: min(100%, 1120px); padding: 2rem 0 4rem; }
.staff-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.staff-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.55rem; }
.staff-header .brand { margin-bottom: 3rem; }
.staff-header h1 { margin-bottom: 0.55rem; }
.staff-back { display: inline-flex; min-height: 44px; align-items: center; padding: 0.65rem 0.9rem; color: var(--text); text-decoration: none; border-radius: 12px; }
.staff-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.staff-filter { display: inline-flex; min-height: 42px; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; color: var(--muted); font-size: 0.82rem; text-decoration: none; border: 1px solid var(--border); border-radius: 10px; background: #090b0a; }
.staff-filter strong { color: var(--text); font-size: 0.78rem; }
.staff-filter.is-active { color: var(--text); border-color: var(--accent); background: rgba(213, 173, 92, 0.09); }
.staff-account-list { display: grid; gap: 0.65rem; }
.staff-account-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: 14px; background: #090b0a; }
.staff-account-row:hover { border-color: rgba(213, 173, 92, 0.62); background: #0c0f0d; }
.staff-account-type { margin: 0 0 0.3rem; color: var(--accent); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.staff-account-row h2 { margin: 0 0 0.3rem; font-size: 1rem; overflow-wrap: anywhere; }
.staff-account-row .muted { font-size: 0.8rem; }
.staff-account-meta { display: flex; align-items: center; gap: 0.85rem; }
.staff-chevron { color: var(--accent); font-size: 1.25rem; }
.staff-empty { padding: 4rem 1rem; color: var(--muted); text-align: center; border: 1px dashed var(--border); border-radius: 14px; }
.proxy-layout { align-items: start; }
.proxy-mode-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.proxy-mode-tab.is-active { color: #090b0a; background: var(--accent); border-color: var(--accent); }
.proxy-form .field input, .proxy-form .field select { width: 100%; min-height: 44px; padding: 0.65rem 0.75rem; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; background: #090b0a; }
.proxy-form .field input:focus, .proxy-form .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(213, 173, 92, 0.16); }
.proxy-form .field input[type="checkbox"] { width: auto; min-height: auto; }
.proxy-form .field ul { display: grid; gap: 0.4rem; max-height: 190px; overflow: auto; margin: 0.5rem 0 0; padding: 0.75rem; list-style: none; border: 1px solid var(--border); border-radius: 10px; background: #090b0a; }
.proxy-form .field ul label { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.82rem; }
.proxy-form .field label { display: block; margin-bottom: 0.35rem; color: var(--text); font-size: 0.82rem; font-weight: 650; }
.proxy-form .field small { display: block; margin-top: 0.35rem; }
.proxy-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.proxy-card { padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: #090b0a; }
.proxy-card-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.proxy-card h3 { margin: 0; font-size: 1rem; }
.proxy-data { gap: 0.7rem; margin-top: 1rem; }
.proxy-data dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.proxy-data dd.management-mono { overflow-wrap: anywhere; }
.proxy-card .staff-actions { margin-top: 1rem; }
.staff-detail-header { align-items: center; }
.staff-detail-header > div { display: flex; flex-direction: column; align-items: flex-start; }
.staff-detail-header .status { flex: 0 0 auto; }
.staff-detail-header .back-link { display: inline-flex; margin-bottom: 0; color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.staff-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.staff-panel { padding: 1.3rem; border: 1px solid var(--border); border-radius: 16px; background: #090b0a; }
.staff-panel-title { margin: 0; }
.staff-data { display: grid; gap: 1rem; margin: 1.4rem 0 0; }
.staff-data div { display: grid; gap: 0.25rem; }
.staff-data dt { color: var(--muted); font-size: 0.75rem; }
.staff-data dd { margin: 0; overflow-wrap: anywhere; }
.credential-open { min-height: 40px; padding: 0.55rem 0.75rem; font-size: 0.8rem; }
.staff-review-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.field textarea { width: 100%; padding: 0.75rem 0.9rem; resize: vertical; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; outline: none; background: #090b0a; }
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(213, 173, 92, 0.16); }
.staff-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; }
.staff-actions button { min-height: 44px; font-size: 0.84rem; }
.staff-client-access-panel { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; background: linear-gradient(135deg, rgba(213, 173, 92, 0.08), #090b0a 48%); }
.staff-client-access-copy { display: grid; gap: 0.4rem; min-width: 0; }
.staff-client-access-copy h2 { margin: 0.05rem 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.staff-client-access-copy .muted { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; }
.staff-client-list { display: grid; gap: 0.7rem; }
.staff-client-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.7fr) auto; align-items: center; gap: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(135deg, rgba(213, 173, 92, 0.045), #090b0a 40%); }
.staff-client-main { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.staff-client-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #17130b; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; border-radius: 50%; background: linear-gradient(145deg, #e6c57f, var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.staff-client-copy { min-width: 0; }
.staff-client-copy h2 { margin: 0 0 0.25rem; font-size: 0.98rem; overflow-wrap: anywhere; }
.staff-client-copy .muted { font-size: 0.78rem; }
.staff-client-state { display: grid; gap: 0.2rem; justify-items: start; }
.staff-client-state small { padding-left: 1rem; color: var(--muted); font-size: 0.68rem; }
.access-status { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.access-status.is-sent { color: var(--accent); }
.access-status.is-active { color: #86d4aa; }
.access-dot { width: 0.48rem; height: 0.48rem; flex: 0 0 auto; border-radius: 999px; background: var(--muted); box-shadow: 0 0 0 3px rgba(154, 164, 158, 0.08); }
.access-dot.is-sent { background: var(--accent); box-shadow: 0 0 10px rgba(213, 173, 92, 0.38); }
.access-dot.is-active { background: #75dfad; box-shadow: 0 0 10px rgba(117, 223, 173, 0.34); }
.staff-invite-button { min-height: 42px; padding: 0.62rem 0.9rem; font-size: 0.78rem; white-space: nowrap; }
.credentials-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, 0.82); }
.credentials-backdrop[hidden] { display: none; }
.credentials-modal { width: min(100%, 620px); max-height: min(720px, calc(100vh - 2rem)); overflow: auto; padding: 1.35rem; border: 1px solid rgba(213, 173, 92, 0.34); border-radius: 18px; background: #0b0d0c; box-shadow: 0 24px 90px rgba(0, 0, 0, 0.7); }
.credentials-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.credentials-modal-header h2 { margin: 0.35rem 0 0; font-size: clamp(1.35rem, 4vw, 1.7rem); }
.credentials-close { width: 42px; min-height: 42px; padding: 0; color: var(--muted); font-size: 1.8rem; font-weight: 400; border: 1px solid var(--border); background: transparent; box-shadow: none; }
.credentials-close:hover { color: var(--text); }
.credentials-list { display: grid; gap: 0.65rem; padding-top: 1rem; }
.credential-row { display: grid; grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.3fr) auto; align-items: center; gap: 0.8rem; padding: 0.85rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: #090b0a; }
.credential-row > span { color: var(--muted); font-size: 0.82rem; }
.credential-row code { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; }
.credential-row button { min-height: 36px; padding: 0.45rem 0.6rem; color: var(--accent); font-size: 0.75rem; border: 1px solid rgba(213, 173, 92, 0.3); border-radius: 8px; background: transparent; box-shadow: none; }
.credential-row button:hover { background: rgba(213, 173, 92, 0.1); }
.credential-icon-button { display: grid; width: 36px; place-items: center; padding: 0 !important; }
.credential-icon-button .icon { width: 1.05rem; height: 1.05rem; }
.credential-icon-button.is-copied { color: #86d4aa; border-color: rgba(134, 212, 170, 0.55); }
.credential-actions { display: flex; gap: 0.4rem; }
.credentials-error { margin: 1rem 0 0; color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .page-shell { align-items: stretch; padding: 0; }
  .page-shell::before, .page-shell::after {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .06) 6%, rgba(0, 0, 0, .25) 16%, rgba(0, 0, 0, .65) 29%, #000 42%, #000 58%, rgba(0, 0, 0, .65) 71%, rgba(0, 0, 0, .25) 84%, rgba(0, 0, 0, .06) 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .06) 6%, rgba(0, 0, 0, .25) 16%, rgba(0, 0, 0, .65) 29%, #000 42%, #000 58%, rgba(0, 0, 0, .65) 71%, rgba(0, 0, 0, .25) 84%, rgba(0, 0, 0, .06) 94%, transparent 100%);
  }
  .auth-card { display: flex; width: 100%; min-height: 100vh; flex-direction: column; justify-content: center; padding: 1.5rem; }
  .dashboard { min-height: 100vh; padding: 1rem; }
  .app-nav, .dashboard nav { align-items: center; }
  .app-nav form, .dashboard nav form { margin-left: auto; }
  .app-nav .button-label, .dashboard nav .button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .app-nav button, .dashboard nav button { width: 44px; padding: 0; }
  .app-nav .staff-link, .dashboard nav .staff-link { margin-left: auto; }
  .app-nav .staff-link + form, .dashboard nav .staff-link + form { margin-left: 0; }
  .dashboard-heading { align-items: stretch; flex-direction: column; margin-top: 3rem; }
  .account-form-page { width: 100%; padding: 1.5rem 1rem 3rem; }
  .account-form-heading { margin-top: 3rem; }
  .empty-state { min-height: 42vh; padding: 1rem; }
  .staff-page { padding: 1.5rem 1rem 3rem; }
  .staff-header { align-items: stretch; flex-direction: column; gap: 1rem; }
  .staff-header .brand { margin-bottom: 2.5rem; }
  .staff-back { align-self: flex-start; }
  .staff-detail-grid { grid-template-columns: 1fr; }
  .staff-detail-header { flex-direction: row; align-items: start; }
  .staff-detail-header .status { margin-top: 4rem; }
  .staff-account-row { align-items: flex-start; }
  .staff-account-meta { flex-direction: column; align-items: flex-end; gap: 0.5rem; }
  .staff-client-access-panel { align-items: stretch; flex-direction: column; }
  .staff-client-access-panel form, .staff-client-access-panel button { width: 100%; }
  .staff-client-card { grid-template-columns: 1fr auto; gap: 0.85rem; }
  .staff-client-main { grid-column: 1 / -1; }
  .staff-client-card form { align-self: center; }
  .credential-row { grid-template-columns: 1fr auto; gap: 0.5rem; }
  .credential-row > span { grid-column: 1 / -1; }
  .credential-row code { grid-column: 1; }
  .credential-row > button, .credential-actions { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root),
  ::view-transition-old(app-header), ::view-transition-new(app-header),
  ::view-transition-old(app-content), ::view-transition-new(app-content) { animation: none !important; }
}

/* Owner-scoped portfolio. Kept separate from staff/forms and their existing layout. */
.portfolio { max-width: 1100px; --portfolio-grid-gap: 1.3rem; }
.portfolio h1, .portfolio-account-title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.025em; }
.portfolio h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.portfolio .account-grid { grid-template-columns: 1fr; gap: 1.15rem; }
.portfolio-panel, .portfolio-account {
  padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(213,173,92,.24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20, 19, 15, .82), rgba(7, 9, 8, .72) 74%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}
.portfolio .positive { color: #80dfa4; }
.portfolio .negative { color: #ffaaaa; }
.metric-value small { font-size: .65em; color: var(--muted); }
.portfolio .portfolio-account-title { font-size: 1.65rem; margin: .7rem 0 .65rem; }
.portfolio-account-title a { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.portfolio-account-title a span { color: var(--accent); font: 2rem sans-serif; }
.portfolio-account .account-card-status { margin-top: 0; }
.portfolio-account .account-type-logo { width: 28px; height: 28px; }
.portfolio-account { padding-block: 1.25rem; }
.portfolio-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.3rem; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--border); }
.portfolio-metrics > div { display: flex; flex-direction: column; min-width: 0; gap: .4rem; }
.portfolio-metrics > div + div { padding-left: 1.2rem; border-left: 1px solid var(--border); }
.metric-label { display: block; font-size: .85rem; color: var(--muted); }
.metric-trend { display: inline-block; margin-right: .28rem; font-size: 1.05em; font-weight: 700; line-height: 1; }
.metric-trend-up { color: #78e2a3; }
.metric-trend-down { color: #ffaaa9; }
.metric-value { display: block; font-size: clamp(1.1rem, 2.6vw, 1.65rem); font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-emphasis { font-size: clamp(1.4rem, 3vw, 2rem); }
.data-note { display: block; font-size: .7rem; color: var(--muted); line-height: 1.55; }
.portfolio-account .metric-label, .detail-data-panel .metric-label { order: 2; }
.portfolio-account .data-note, .detail-data-panel .data-note { order: 3; }
.portfolio-empty { margin: 1.3rem 0 0; font-size: .9rem; }
.prop-provider { overflow-wrap: anywhere; font-size: .9rem; }
.portfolio-panel { margin-bottom: 1.15rem; }
.portfolio-panel h2 { font-size: 1.15rem; color: var(--accent); margin: 0 0 1.4rem; }
.portfolio-panel .portfolio-metrics { border: 0; padding: 0; margin-top: 0; }
.portfolio-detail {
  max-width: 880px;
  --detail-panel-gap: 1rem;
}
.portfolio-detail .portfolio-panel { margin-bottom: var(--detail-panel-gap); }
.detail-page-heading { margin: 4.5rem 0 2rem; }
.portfolio .detail-page-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -.035em;
}
.detail-account-summary {
  position: relative;
  padding-block: 1.25rem;
}
.detail-account-summary:has(.card-menu[open]) { z-index: 4; }
.detail-account-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: var(--portfolio-grid-gap, 1.3rem);
}
.detail-account-row:not(:has(.detail-phase-slot)) { grid-template-columns: auto minmax(0, 1fr); }
.detail-account-identity { min-width: 0; justify-self: start; }
.detail-account-summary.has-phase-header .account-type-logo { width: 28px; height: 32px; }
.detail-phase-slot { justify-self: start; }
.detail-account-controls { display: flex; min-width: 0; align-items: center; justify-self: end; gap: .25rem; }
.detail-account-controls .status { flex: 0 0 auto; }
.detail-account-controls .account-card-status { margin: 0; }
.detail-account-menu { flex: 0 0 auto; margin: 0 -.55rem 0 0; }
.detail-account-menu summary { width: 36px; height: 36px; }
.detail-account-menu .card-menu-popover { z-index: 5; width: 170px; }
.card-menu-reference { margin: 0; padding: .55rem .75rem .65rem; overflow-wrap: anywhere; color: var(--muted); font-size: .68rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.detail-data-panel .portfolio-metrics > div { gap: .55rem; }
.detail-data-panel .metric-label { white-space: nowrap; }
.detail-finance-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.detail-finance-panel h2 { margin: 0; }
.detail-finance-row { display: grid; justify-items: end; gap: .35rem; text-align: right; }
.detail-finance-row .metric-value { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 620; }
.detail-last-updated { margin: 1.2rem 0 0; color: var(--muted); font-size: .72rem; text-align: center; }
.portfolio a:focus-visible, .portfolio summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 5px; }
@media (max-width: 600px) {
  .portfolio { padding: 1.5rem 1rem; --portfolio-grid-gap: .75rem; }
  .portfolio .dashboard-heading { margin-top: 2.5rem; }
  .add-account-action { min-height: 38px; padding: .48rem .75rem; font-size: .72rem; }
  .portfolio-metrics { gap: .75rem; }
  .portfolio-metrics > div + div { padding-left: .7rem; }
  .portfolio-account, .portfolio-panel { border-radius: 20px; }
  .portfolio-detail { --detail-panel-gap: .85rem; }
  .detail-page-heading { margin: 2.75rem 0 1.55rem; }
  .portfolio .detail-page-heading h1 { font-size: clamp(2rem, 8.5vw, 2.75rem); }
  .detail-account-summary { padding: 1.1rem; }
  .detail-account-row { gap: .7rem; }
  .detail-account-summary.has-phase-header .account-type-logo { width: 20px; height: 24px; }
  .detail-account-menu { margin-right: -.5rem; }
  .detail-data-panel { padding: 1.15rem 1rem; }
  .detail-data-panel h2 { margin-bottom: 1.1rem; }
  .detail-data-panel .portfolio-metrics { gap: .7rem; }
  .detail-data-panel .portfolio-metrics > div + div { padding-left: .7rem; }
  .detail-finance-panel { padding: 1.25rem; }
  .metric-label { font-size: .75rem; }
  .data-note { font-size: .65rem; }
}
@media (max-width: 380px) {
  .detail-account-summary.has-phase-header .account-type-logo { width: 18px; height: 22px; }
  .detail-data-panel .metric-label { white-space: normal; }
}
.portfolio-panel > .portfolio-source, .portfolio-account > .portfolio-source { margin-top: 16px; }

/* Quiet feedback on the portfolio cards: clearer hierarchy without noisy motion. */
.portfolio-account {
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.portfolio-account::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent 4%, rgba(213, 173, 92, .7) 50%, transparent 96%);
  opacity: .55;
  pointer-events: none;
}
.portfolio-account:hover {
  border-color: rgba(213, 173, 92, .42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .25), 0 0 0 1px rgba(213, 173, 92, .06);
  transform: translateY(-2px);
}
.portfolio-account:active { transform: translateY(0) scale(.995); }
.portfolio-account .metric-value,
.detail-data-panel .metric-value {
  letter-spacing: -.025em;
  line-height: 1.1;
}
.portfolio-account .portfolio-metrics .metric-label,
.detail-data-panel .portfolio-metrics .metric-label {
  white-space: nowrap;
  font-size: clamp(.68rem, 1.15vw, .85rem);
  letter-spacing: -.025em;
}
.portfolio-account .portfolio-metrics > div:nth-child(-n+2) .metric-value,
.detail-data-panel .portfolio-metrics > div:nth-child(-n+2) .metric-value {
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 650;
}
.portfolio-account .portfolio-metrics > div:nth-child(3) .metric-value,
.detail-data-panel .portfolio-metrics > div:nth-child(3) .metric-value {
  min-height: 1.1em;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 650;
}
.portfolio-account .portfolio-metrics > div,
.detail-data-panel .portfolio-metrics > div {
  align-items: center;
  text-align: center;
}
.portfolio-account .metric-value.positive,
.detail-data-panel .metric-value.positive {
  color: #78e2a3;
  text-shadow: 0 0 20px rgba(120, 226, 163, .16);
}
.portfolio-account .metric-value.negative,
.detail-data-panel .metric-value.negative {
  color: #ffaaa9;
  text-shadow: 0 0 20px rgba(255, 170, 169, .1);
}
.portfolio-account .portfolio-metrics > div,
.detail-data-panel .portfolio-metrics > div {
  padding-top: 0;
}
.portfolio-account .portfolio-metrics > div + div,
.detail-data-panel .portfolio-metrics > div + div {
  padding-left: 0;
  border-left: 0;
}
.portfolio-account .metric-emphasis,
.detail-data-panel .metric-emphasis {
  text-shadow: 0 0 22px rgba(128, 223, 164, .14);
}
.darwinex-account .darwinex-performance-metric .metric-value {
  font-size: clamp(1.05rem, 4.6vw, 1.55rem);
  letter-spacing: -.045em;
  white-space: nowrap;
  overflow-wrap: normal;
}
.darwinex-account .darwinex-performance-metric .metric-trend {
  margin-right: .12rem;
  font-size: .95em;
}
.portfolio-account .status-connected {
  box-shadow: inset 0 0 0 1px rgba(134, 212, 170, .08), 0 0 18px rgba(134, 212, 170, .08);
}

/* Account detail: each panel answers one product question. */
.portfolio-detail .portfolio-panel {
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.detail-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .9rem 0 0;
  padding-top: .85rem;
  color: var(--muted);
  font-size: .72rem;
  border-top: 1px solid rgba(255,255,255,.09);
}
.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.detail-section-heading h2 { margin: 0; }
.detail-section-heading h2 span { color: var(--text); font-weight: 500; }
.detail-section-kicker {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-align: right;
  text-transform: uppercase;
}
.detail-quote-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  column-gap: 1rem;
  padding: .2rem 0 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.detail-quote-hero .metric-label { grid-column: 1; }
.detail-quote-value {
  grid-column: 1;
  font-size: clamp(2.5rem, 9vw, 4.3rem);
  font-weight: 540;
  line-height: .98;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.detail-since-inception {
  grid-column: 2;
  align-self: end;
  justify-self: start;
  margin-bottom: .35rem;
  font-size: .86rem;
  font-weight: 620;
}
.detail-performance-panel .detail-performance-metrics {
  margin-top: 1.3rem;
}
.detail-performance-panel .detail-performance-metrics > div {
  align-items: flex-start;
  text-align: left;
}
.detail-performance-panel .detail-performance-metrics > div + div {
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,.1);
}
.detail-performance-panel .detail-performance-metrics .metric-value {
  white-space: nowrap;
  overflow-wrap: normal;
}
.darwinia-state {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .68rem;
  color: #86d4aa;
  font-size: .72rem;
  border: 1px solid rgba(134,212,170,.16);
  border-radius: 999px;
  background: rgba(134,212,170,.08);
}
.darwinia-state::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}
.darwinia-state.is-excluded {
  color: var(--danger);
  border-color: rgba(255,157,157,.2);
  background: rgba(255,157,157,.08);
}
.darwinia-score-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 1rem;
}
.darwinia-score {
  display: block;
  margin-top: .25rem;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 580;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.darwinia-score small { color: var(--muted); font-size: .46em; font-weight: 500; }
.darwinia-progress-copy {
  max-width: 240px;
  margin: 0 0 .2rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
  text-align: right;
}
.darwinia-progress {
  height: 7px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.darwinia-progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a9823e, #e4bd6d);
  box-shadow: 0 0 18px rgba(213,173,92,.22);
}
.darwinia-warning {
  margin: 1rem 0 0;
  padding: .75rem .85rem;
  color: #ffc0bf;
  font-size: .78rem;
  border: 1px solid rgba(255,157,157,.16);
  border-radius: 12px;
  background: rgba(255,157,157,.055);
}
.detail-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.12);
}
.detail-money-grid > div {
  display: flex;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  padding: 1rem;
}
.detail-money-grid > div:nth-child(even) { border-left: 1px solid rgba(255,255,255,.09); }
.detail-money-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.09); }
.detail-money-grid .metric-value {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 620;
  white-space: nowrap;
  overflow-wrap: normal;
}
.detail-date-value { text-transform: lowercase; }
.allocation-details { margin-top: 1rem; }
.allocation-details > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: .65rem .8rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
  border-radius: 11px;
  list-style: none;
  background: rgba(213,173,92,.055);
}
.allocation-details > summary::-webkit-details-marker { display: none; }
.allocation-details[open] > summary span { transform: rotate(180deg); }
.allocation-list { display: grid; gap: .7rem; margin-top: .75rem; }
.allocation-row {
  padding: .9rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(0,0,0,.12);
}
.allocation-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.allocation-row-heading strong { font-size: .86rem; }
.allocation-row-heading span { color: var(--accent); font-size: .8rem; font-weight: 650; }
.allocation-row dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1rem;
  margin: .85rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.allocation-row dl div { min-width: 0; }
.allocation-row dt { color: var(--muted); font-size: .67rem; }
.allocation-row dd { margin: .2rem 0 0; font-size: .8rem; font-variant-numeric: tabular-nums; }
.detail-replication-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-replication-panel .detail-replication-metrics > div {
  align-items: flex-start;
  text-align: left;
}
.detail-replication-panel .detail-replication-metrics > div + div {
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,.1);
}
.detail-explainer {
  margin: 1.2rem 0 0;
  padding-top: .9rem;
  color: var(--muted);
  font-size: .7rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 600px) {
  .detail-account-meta { margin-top: .8rem; }
  .detail-account-menu { margin-right: 0; }
  .detail-section-heading { margin-bottom: .9rem; }
  .detail-section-heading h2 { font-size: 1.08rem; }
  .detail-section-kicker { font-size: .62rem; }
  .detail-quote-value { font-size: clamp(2.35rem, 13vw, 3.25rem); }
  .detail-since-inception { font-size: .72rem; }
  .detail-performance-panel .detail-performance-metrics { gap: .4rem; margin-top: 1.1rem; }
  .detail-performance-panel .detail-performance-metrics > div + div { padding-left: .55rem; }
  .detail-performance-panel .detail-performance-metrics .metric-label {
    font-size: .68rem;
    line-height: 1.35;
    white-space: normal;
  }
  .detail-performance-panel .detail-performance-metrics .metric-value { font-size: clamp(1.1rem, 6vw, 1.5rem); }
  .darwinia-score-row { gap: .75rem; }
  .darwinia-progress-copy { justify-self: end; max-width: 170px; font-size: .68rem; }
  .detail-money-grid > div { min-height: 94px; padding: .85rem; }
  .detail-money-grid .metric-label { font-size: .68rem; }
  .detail-money-grid .metric-value { font-size: clamp(1.05rem, 5vw, 1.45rem); }
  .allocation-row dl { grid-template-columns: 1fr; }
  .detail-replication-panel .detail-replication-metrics > div + div { padding-left: .7rem; }
  .detail-replication-panel .metric-label { white-space: normal; }
}
@media (max-width: 359px) {
  .portfolio-detail { padding-inline: .75rem; }
  .detail-page-heading { margin-top: 2.5rem; }
  .detail-account-summary { padding-inline: .85rem; }
  .detail-account-row,
  .detail-account-row:not(:has(.detail-phase-slot)) {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: .4rem;
  }
  .detail-account-row:not(:has(.detail-phase-slot)) { grid-template-columns: minmax(0, 1fr) auto; }
  .detail-account-identity { font-size: 10.5px; gap: 3px; letter-spacing: .025em; }
  .detail-account-summary.has-phase-header .account-type-logo { width: 17px; height: 20px; }
  .detail-phase-slot { margin: 0; }
  .detail-phase-slot img { flex-basis: 22px; width: 22px; height: 22px; }
  .detail-account-controls { gap: .1rem; }
  .detail-account-controls .status { padding: 4px 5px; font-size: 9px; }
  .detail-account-menu summary { width: 30px; height: 30px; }
  .detail-data-panel { padding-inline: .85rem; }
  .detail-section-heading { align-items: flex-start; gap: .55rem; }
  .detail-section-heading h2 { font-size: 1rem; }
  .detail-section-kicker { max-width: 44%; font-size: .56rem; line-height: 1.3; }
  .detail-performance-panel .detail-performance-metrics { gap: .25rem; }
  .detail-performance-panel .detail-performance-metrics > div { gap: .4rem; }
  .detail-performance-panel .detail-performance-metrics > div + div { padding-left: .28rem; }
  .detail-performance-panel .detail-performance-metrics .metric-value { font-size: .84rem; letter-spacing: -.035em; }
  .detail-performance-panel .detail-performance-metrics .metric-label { font-size: .62rem; }
  .detail-performance-panel .metric-trend { margin-right: .08rem; font-size: .95em; }
  .darwinia-score { font-size: 2.15rem; }
  .darwinia-progress-copy { max-width: 130px; font-size: .63rem; }
  .detail-money-grid > div { min-height: 88px; padding: .72rem; }
  .detail-money-grid .metric-label { font-size: .62rem; }
  .detail-money-grid .metric-value { font-size: .95rem; }
  .detail-replication-panel .detail-replication-metrics { gap: .45rem; }
  .detail-replication-panel .detail-replication-metrics > div + div { padding-left: .55rem; }
  .detail-replication-panel .metric-value { font-size: 1.05rem; white-space: nowrap; overflow-wrap: normal; }
  .detail-replication-panel .metric-label { font-size: .63rem; line-height: 1.35; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-account { transition: none; }
}

/* Prop-firm history: compact preview on the portfolio, richer balance view in detail. */
.prop-account .account-card-top {
  grid-template-columns: minmax(0, 1fr) auto;
}
.prop-account .account-type {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .03em;
  gap: 6px;
}
.prop-account .account-type-logo { width: 20px; height: 24px; }
.prop-stage-title {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.prop-account .account-card-top .account-card-status-slot {
  grid-column: 2;
  justify-content: flex-end;
  border-left: 0;
  padding-left: 0;
}
.prop-preview-metrics { margin: 0; padding: 0; border: 0; }
.prop-preview-metrics .metric-value { white-space: nowrap; overflow-wrap: normal; }
.prop-preview-metrics .metric-value small { font-size: .52em; }
.prop-preview-metrics .metric-trend { margin-right: .16rem; }
.prop-chart-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  padding-bottom: .55rem;
}
.prop-chart-metrics > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: .28rem;
  text-align: center;
}
.prop-chart-metrics .metric-label { order: 2; font-size: .66rem; }
.prop-account .prop-chart-metrics .metric-value {
  font-size: clamp(1.05rem, 2.8vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -.035em;
}
.darwinex-account .darwinex-chart-preview .metric-value {
  font-size: clamp(1.05rem, 2.8vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -.035em;
}
.darwinex-account .darwinex-chart-preview .metric-value small { font-size: .52em; }
.darwinex-account .darwinex-chart-preview .data-note { display: none; }
.prop-chart-preview {
  position: relative;
  display: block;
  margin-top: 1rem;
  padding: .9rem .9rem .7rem;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.024), rgba(0,0,0,.12));
  transition: border-color .18s ease, background-color .18s ease;
}
.prop-chart-preview:hover { border-color: rgba(213,173,92,.25); }
.prop-chart-axis {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.prop-balance-chart {
  display: block;
  width: 100%;
  height: 88px;
  margin-top: .15rem;
  overflow: visible;
  color: #78e2a3;
}
.prop-balance-chart.is-negative { color: #ffaaa9; }
.prop-balance-chart.is-neutral { color: var(--accent); }
.prop-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 2px rgba(120,226,163,.18));
}
.prop-chart-area { color: inherit; }
.prop-chart-axis { margin-top: -.15rem; color: var(--muted); font-size: .58rem; font-variant-numeric: tabular-nums; }
.prop-chart-axis span { color: rgba(238,240,237,.62); }
.prop-data-note { margin-top: .65rem; text-align: center; }

.prop-detail-chart-panel { padding-bottom: 1.25rem; }
.prop-detail-balance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.prop-detail-balance-heading h2 {
  margin: .35rem 0 0;
  color: var(--text);
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 540;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.prop-detail-balance-heading h2 small { color: var(--muted); font-size: .34em; letter-spacing: 0; }
.prop-performance-pill {
  display: inline-flex;
  align-items: center;
  margin-top: .3rem;
  padding: .5rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}
.prop-performance-pill.positive { color: #78e2a3; border-color: rgba(120,226,163,.18); background: rgba(120,226,163,.07); }
.prop-performance-pill.negative { color: #ffaaaa; border-color: rgba(255,170,169,.18); background: rgba(255,170,169,.06); }
.prop-detail-chart-wrap {
  margin-top: 1.2rem;
  padding: 1rem 1rem .75rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(0,0,0,.1);
}
.darwinex-detail-chart-wrap { margin-top: 1.1rem; }
.prop-balance-chart-large { height: 220px; margin: 0; }
.prop-detail-chart-axis { margin-top: .25rem; font-size: .65rem; }
.prop-detail-money-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prop-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.prop-activity-grid > div { min-width: 0; }
.prop-activity-grid strong { display: block; margin-top: .4rem; font-size: 1rem; font-variant-numeric: tabular-nums; }
.prop-activity-grid .metric-value { font-size: 1.35rem; }

@media (max-width: 600px) {
  .prop-account .account-card-top { gap: .55rem; }
  .prop-account .account-type { font-size: 13px; font-weight: 750; letter-spacing: .03em; gap: 6px; }
  .prop-account .account-type-logo { width: 20px; height: 24px; }
  .prop-stage-title { font-size: .61rem; letter-spacing: .035em; }
  .prop-account .account-card-status { padding: 5px 6px; font-size: 10px; }
  .prop-account .account-card-actions { margin-left: .2rem; }
  .prop-account .account-card-open { width: 24px; }
  .prop-preview-metrics { gap: .35rem; }
  .prop-preview-metrics .metric-value { font-size: clamp(.95rem, 4.35vw, 1.25rem) !important; }
  .darwinex-account .darwinex-chart-preview .metric-value { font-size: clamp(.95rem, 4.35vw, 1.25rem) !important; }
  .prop-preview-metrics .metric-label { font-size: .64rem; }
  .prop-chart-preview { margin-top: 1rem; padding-inline: .72rem; }
  .prop-balance-chart { height: 76px; }
  .prop-detail-balance-heading h2 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .prop-performance-pill { padding: .42rem .58rem; font-size: .7rem; }
  .prop-detail-chart-wrap { padding: .75rem .65rem .6rem; }
  .prop-balance-chart-large { height: 175px; }
  .prop-activity-grid { gap: .65rem; }
  .prop-activity-grid .metric-label { white-space: normal; }
  .prop-activity-grid strong { font-size: .78rem; }
  .prop-activity-grid .metric-value { font-size: 1.05rem; }
}

@media (max-width: 359px) {
  .prop-account .account-type { font-size: 11px; font-weight: 700; letter-spacing: .04em; gap: 4px; }
  .prop-account .account-type-logo { width: 18px; height: 22px; }
  .prop-stage-title { font-size: .55rem; }
  .prop-account .account-card-status { font-size: 9px; padding-inline: 4px; }
  .prop-preview-metrics .metric-value { font-size: .86rem !important; }
  .prop-preview-metrics .metric-label { font-size: .56rem; white-space: normal; }
  .prop-chart-axis { font-size: .52rem; }
}

@media (min-width: 601px) {
  .prop-account .account-type { font-size: 15px; font-weight: 700; letter-spacing: .05em; gap: 8px; }
  .prop-account .account-type-logo { width: 28px; height: 32px; }
}
