/* UNC CAPITAL MARKETS · CANONICAL FOREST PALETTE & RESPONSIVE UI SYSTEM */
:root {
  --bg-primary: #01201A;
  --bg-secondary: #021A13;
  --bg-card: #043322;
  --bg-card-hover: #06402B;
  --bg-card-dark: #021A12;
  --accent-forest: #07442B;
  --accent-gold: #FDB819;
  --accent-gold-hover: #FFCA00;
  --text-cream: #FCF0D4;
  --text-cream-dim: #D8E5C4;
  --text-muted: #8FA678;
  --border-forest: #07442B;
  --border-light: rgba(216, 231, 172, 0.16);
  --border-gold: rgba(253, 184, 25, 0.35);
  --badge-green: #49F29D;
  --badge-green-bg: #083A29;
}

.marketplace-store {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.marketplace-store * {
  box-sizing: border-box;
}

.marketplace-store a {
  color: inherit;
  text-decoration: none;
}

.marketplace-store a:focus-visible,
.marketplace-store button:focus-visible,
.marketplace-store input:focus-visible,
.marketplace-store select:focus-visible,
.marketplace-store textarea:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */

@media (max-width: 820px) {
  .market-eyebrow, .fine-note, .proof-meta, .view-eyebrow {
    font-size: 11px !important;
  }
  .market-main {
    padding-bottom: 96px !important;
  }
}

.pass-token {
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 180px;
  overflow: auto;
}

/* MAIN CONTAINER WITH 88PX-96PX BOTTOM BUFFER */
.market-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}

/* SPA VIEW SECTIONS */
.spa-view {
  display: none;
}
.spa-view.active {
  display: block;
  animation: fadeInView 0.15s ease-out;
}
@keyframes fadeInView {
  from { opacity: 0.85; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECTION HEADING & TOOLBARS */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.view-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* COMMON INTERACTIVE BUTTONS & BADGES */
.market-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #04271C !important;
  border: 0;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.market-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}
.market-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.market-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-forest);
  color: var(--text-cream);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.market-secondary-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.market-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-cream-dim);
  background: rgba(7, 68, 43, 0.3);
  white-space: nowrap;
}
.live-badge {
  background: var(--badge-green-bg);
  border-color: rgba(73, 242, 157, 0.4) !important;
  color: var(--badge-green) !important;
  font-weight: 650;
}
.quarantine-badge {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #F87171 !important;
}
.unavailable-badge {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #94A3B8 !important;
}

/* TAB 1: FIRMS TERMINAL GRID & LAUNCHPAD */
.firms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.firm-inspect-btn {
  margin-top: auto;
  width: 100%;
}

/* FIRM INSPECTION DRAWER / MODAL */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
}
.drawer-content {
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-forest);
  overflow-y: auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--text-cream);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-close-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}
.wizard-step-pill.active {
  background: var(--accent-forest);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-cream-dim);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-cream);
  font-family: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-gold);
}
.role-choice.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* TAB 2: DISCOVER SCREENER, EDGE MATRIX & 203 ROUTE TESTER */
.discover-subviews {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.subtool-selector-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-forest);
  padding-bottom: 12px;
  overflow-x: auto;
}
.subtool-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-forest);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-cream-dim);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.subtool-tab-btn.active {
  background: var(--accent-forest);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* 203 ROUTE & QUOTE TESTER TABLE */
.route-tester-card {
  background: var(--bg-card);
  border: 1px solid var(--border-forest);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-search-input {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12.5px;
  color: var(--text-cream);
  min-width: 240px;
  font-family: inherit;
}
.status-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.status-pill-btn {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.status-pill-btn.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(7, 68, 43, 0.4);
}
.route-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  max-height: 540px;
}
.route-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.route-table th {
  position: sticky;
  top: 0;
  background: #011A12;
  color: var(--text-muted);
  padding: 10px 14px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
  z-index: 10;
}
.route-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(216, 231, 172, 0.08);
  color: var(--text-cream-dim);
}
.route-table tr:hover td {
  background: rgba(7, 68, 43, 0.25);
}
.probe-inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.probe-amt-input {
  width: 65px;
  padding: 4px 8px;
  font-size: 11.5px;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-cream);
  font-family: inherit;
}
.probe-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: var(--accent-gold);
  color: #04271C;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* EDGE MATRIX COMPARATOR */
.edge-matrix-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-forest);
  background: var(--bg-card);
}
.edge-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.edge-matrix-table th {
  background: var(--bg-card-dark);
  color: var(--accent-gold);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-forest);
}
.edge-matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(216, 231, 172, 0.08);
  vertical-align: top;
}
.edge-matrix-table tr:last-child td {
  border-bottom: none;
}
.social-nav-btn.active {
  background: #01201A;
  border-color: rgba(253, 184, 25, 0.45);
  color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.pstat-val.green {
  color: var(--badge-green);
}
.persona-action-btn.primary {
  background: rgba(253, 184, 25, 0.14);
  border: 1px solid rgba(253, 184, 25, 0.4);
  color: var(--accent-gold);
}
.persona-action-btn.primary:hover {
  background: rgba(253, 184, 25, 0.22);
}
.persona-action-btn.secondary {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.persona-action-btn.secondary:hover {
  color: var(--text-cream);
  border-color: var(--text-muted);
}
.ticker-chip.active {
  background: #01201A;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.attach-pill-btn.active {
  background: rgba(253, 184, 25, 0.14);
  border-color: rgba(253, 184, 25, 0.45);
  color: var(--accent-gold);
}
@keyframes drawerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.post-sub-line .gold-text {
  color: var(--accent-gold);
}
.post-follow-btn.following {
  background: rgba(73, 242, 157, 0.12);
  border-color: rgba(73, 242, 157, 0.4);
  color: var(--badge-green);
}
.post-action-btn.active.like {
  color: #F43F5E;
}
.post-action-btn.active.quote {
  color: var(--badge-green);
}
.post-action-btn.active.bookmark {
  color: var(--accent-gold);
}
.post-action-btn.allocate {
  background: rgba(253, 184, 25, 0.12);
  border: 1px solid rgba(253, 184, 25, 0.35);
  color: var(--accent-gold);
  font-weight: 600;
  border-radius: 14px;
  padding: 3px 10px;
}
.post-action-btn.allocate:hover {
  background: rgba(253, 184, 25, 0.22);
}
.follow-btn-sm.following {
  background: rgba(73, 242, 157, 0.12);
  border-color: rgba(73, 242, 157, 0.4);
  color: var(--badge-green);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.apple-modal-btn.cancel {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.apple-modal-btn.cancel:hover {
  color: var(--text-cream);
  border-color: var(--text-muted);
}
.apple-modal-btn.submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  color: #011A12;
  box-shadow: 0 2px 10px rgba(253, 184, 25, 0.25);
}
.apple-modal-btn.submit:hover {
  background: #fec842;
  transform: translateY(-1px);
}
.dm-val.green { color: var(--badge-green); }
.dossier-tab-btn.active {
  background: #01201A;
  color: var(--accent-gold);
  border: 1px solid rgba(253, 184, 25, 0.35);
}
.persona-opt-item.active {
  border-color: var(--accent-gold);
  background: #01201A;
  box-shadow: 0 0 0 1px var(--accent-gold);
}

/* MOBILE RESPONSIVE RULES FOR AGENT SOCIAL */
@media (max-width: 1080px) {
  .agent-social-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .social-right-rail {
    display: none;
  }
}
@media (max-width: 820px) {
  .agent-social-workspace {
    grid-template-columns: 1fr;
  }
  .social-left-rail {
    order: 2;
  }
  .social-center-feed {
    order: 1;
  }
  .social-view-header {
    flex-direction: column;
    align-items: stretch;
  }
  .social-header-actions {
    justify-content: space-between;
  }
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
  .dossier-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TAB 6: NEXUS SIMULATOR & DEVELOPER GATEWAY */
.nexus-workbench-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}
.nexus-workbench-grid > * {
  min-width: 0;
  max-width: 100%;
}
.simulator-workbench-card,
.gateway-console-card {
  background: var(--bg-card);
  border: 1px solid var(--border-forest);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sim-results-output {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FOOTER */
.market-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px;
  border-top: 1px solid var(--border-forest);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}
.market-footer-brand {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text-cream);
}
.market-footer nav {
  display: flex;
  gap: 20px;
  font-size: 12px;
}
.market-disclosure {
  grid-column: 1 / -1;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* MOBILE RESPONSIVE RULES */
@media (max-width: 820px) {
  #view-nexus {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .token-desk-grid,
  .allocate-desk-grid,
  .social-desk-grid,
  .nexus-workbench-grid {
    grid-template-columns: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .simulator-workbench-card,
  .gateway-console-card {
    min-width: 0;
    max-width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }
  .drawer-stats-grid {
    grid-template-columns: 1fr;
  }
  .post-falsification-drawer {
    grid-template-columns: 1fr;
  }
  .market-footer {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .proof-dropzone-grid {
    grid-template-columns: 1fr;
  }
}
.proof-dropzone-slot.has-file {
  border-style: solid;
  border-color: #49F29D;
}
.proof-status-banner {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.proof-status-banner.verified {
  background: rgba(73, 242, 157, 0.1);
  border: 1px solid #49F29D;
  color: #FCF0D4;
}
.proof-status-banner.error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid #FF6B6B;
  color: #FFA5A5;
}
.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(73, 242, 157, 0.14);
  border: 1px solid #49F29D;
  color: #49F29D;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.proof-badge:hover {
  background: rgba(73, 242, 157, 0.24);
}
.proof-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 32, 26, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.proof-modal-card {
  background: var(--bg-card);
  border: 1px solid #49F29D;
  border-radius: 20px;
  padding: 28px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proof-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(216, 231, 172, 0.12);
  padding-bottom: 14px;
}
.proof-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-cream-dim);
}
.proof-checklist-item.pass {
  color: #49F29D;
}

/* ========================================================================= */
/* v34 LAUNCH A FIRM: one stepper, one card style, one button size            */
/* ========================================================================= */
.lf{max-width:820px;margin:0 auto 24px}
.lf-head{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:4px 0 14px}
.lf-h{margin:0;font-size:clamp(22px,3vw,28px);font-weight:750;letter-spacing:-.03em;color:#FCF0D4}
.lf-chain{font-size:12px;font-weight:600;color:#8FA678;border:1px solid rgba(216,231,172,.16);border-radius:999px;padding:5px 12px}
.lf .unc-info-panel a{color:#FDB819}
.lf-steps{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.lf-step{background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:20px;padding:20px;min-width:0}
.lf-step-head{display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px;margin-bottom:14px}
.lf-num{width:32px;height:32px;border-radius:50%;background:#07442B;color:#FDB819;display:inline-flex;align-items:center;justify-content:center;font-weight:750;font-size:15px}
.lf-step-head h4{margin:3px 0 4px;font-size:18px;font-weight:700;color:#FCF0D4;letter-spacing:-.01em}
.lf-step-head p{margin:0;font-size:14px;line-height:1.5;color:#BAC7A0}
.lf-sub{border-top:1px solid rgba(216,231,172,.12);margin-top:16px;padding-top:16px;min-width:0}
.lf-subh{margin:0 0 6px;font-size:15px;font-weight:700;color:#FCF0D4}
.lf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 12px}
.lf-grid-4{grid-template-columns:2fr 1fr 1fr 1fr}
.lf .form-field{margin:0;min-width:0}
.lf .form-field label{display:block;font-size:13px;font-weight:600;color:#D8E5C4;margin:0 0 6px}
.lf .form-field input,.lf .form-field select{width:100%;min-height:46px;box-sizing:border-box}
.lf-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;font-size:13px!important}
.lf-opt{font-weight:500;color:#8FA678;margin-left:4px}
.lf-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 10px}
.lf .market-primary,.lf .market-secondary-btn{min-height:44px;padding:0 20px;font-size:14px;font-weight:650;border-radius:999px}
.lf .lf-code-bar .market-secondary-btn{min-height:32px;padding:0 14px;font-size:12px}
.lf-code-wrap{background:#00140F;border:1px solid rgba(216,231,172,.16);border-radius:14px;margin:4px 0 10px;overflow:hidden}
.lf-code-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px 6px 14px;border-bottom:1px solid rgba(216,231,172,.12)}
.lf-code-bar label{font-size:12px;font-weight:600;color:#8FA678;margin:0}
.lf-code{display:block;width:100%;box-sizing:border-box;border:0!important;border-radius:0!important;background:transparent!important;color:#D8E5C4!important;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace!important;padding:12px 14px!important;resize:vertical;min-height:0!important}
.lf-inline{font:12.5px ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(255,255,255,.06);border-radius:6px;padding:1px 6px;color:#FCF0D4;overflow-wrap:anywhere}
.lf-note{margin:0 0 10px;font-size:13px;line-height:1.5;color:#8FA678}
.lf-note:empty,.lf-status:empty{display:none}
.lf-break{word-break:break-all}
.lf-status{margin:4px 0 0;font-size:13px;line-height:1.5;color:#BAC7A0;word-break:break-word}
.lf-checklist{list-style:none;margin:4px 0 6px;padding:0;display:grid;gap:6px}
.lf-checklist:empty{display:none}
.lf-checklist li{display:flex;gap:10px;align-items:baseline;font-size:14px;color:#8FA678}
.lf-checklist li::before{content:"";flex:0 0 10px;height:10px;border-radius:50%;border:2px solid currentColor;transform:translateY(1px)}
.lf-checklist li.is-done{color:#49F29D}.lf-checklist li.is-done::before{background:currentColor}
.lf-checklist li.is-next{color:#FDB819;font-weight:650}
.lf .lf-btn-danger{border-color:#FF8585!important;color:#FF8585!important;background:transparent!important}
.lf-values{margin-top:14px;background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:20px;padding:16px 20px}
#launch-copy-rows,#clone-mint-copy{display:flex;flex-direction:column;gap:6px;font-size:13px}
#launch-copy-rows .copy-btn,#clone-mint-copy .copy-btn{min-height:30px!important;padding:0 12px!important;font-size:12px!important}
@media(max-width:640px){
  .lf-step{padding:16px;border-radius:18px}
  .lf-grid,.lf-grid-4{grid-template-columns:minmax(0,1fr)}
  .lf-grid-deposit{grid-template-columns:minmax(0,1fr) auto}
  .lf-step-head{grid-template-columns:28px minmax(0,1fr);gap:12px}.lf-num{width:28px;height:28px;font-size:14px}
  .lf-actions>.market-primary,.lf-actions>.market-secondary-btn{flex:1 1 auto}
}

/* v34: Agent-Token Trade Ticket (Curve + Graduated Uniswap v4) */
.token-trade-ticket {
  background: var(--bg-card);
  border: 1px solid var(--border-forest);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.token-trade-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.token-venue-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  color: #FCF0D4;
  white-space: nowrap;
}
.token-venue-pill.is-curve {
  border-color: rgba(253, 184, 25, 0.5);
  color: #FDB819;
}
.token-venue-pill.is-uniswap {
  border-color: rgba(73, 242, 157, 0.5);
  color: #49F29D;
}
.token-venue-pill.is-locked {
  border-color: rgba(186, 199, 160, 0.35);
  color: #BAC7A0;
}
.token-trade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.token-trade-controls,
.token-trade-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.token-trade-side-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 14px;
}
.token-trade-side-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: #BAC7A0;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.token-trade-side-btn.active {
  background: #FDB819;
  color: #021A12;
}
.token-trade-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.token-trade-amount-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.token-trade-amount-wrap input {
  flex: 1 1 auto;
  min-width: 0;
}
.token-trade-max-btn {
  flex: 0 0 auto;
  padding: 0 14px;
  white-space: nowrap;
}
.token-trade-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.token-trade-actions .market-primary {
  flex: 1 1 160px;
}
.token-trade-progress-wrap,
.token-trade-quote-box,
.token-trade-meta {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.token-trade-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(252, 240, 212, 0.12);
  overflow: hidden;
}
.token-trade-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FDB819, #49F29D);
  transition: width 180ms ease;
}
.token-trade-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: #BAC7A0;
}
.token-trade-row strong {
  color: #FCF0D4;
  text-align: right;
  font-weight: 600;
}
.token-trade-row.is-emphasis {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(216, 231, 172, 0.12);
  font-size: 14px;
}
.token-trade-row.is-emphasis strong {
  color: #49F29D;
  font-size: 16px;
}
.token-trade-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #BAC7A0;
}
.token-trade-note.is-warn {
  color: #FDB819;
}
.token-trade-meta {
  font-size: 12px;
  color: #BAC7A0;
  gap: 6px;
}
.token-trade-meta a {
  color: #FDB819;
  text-decoration: none;
}
@media (max-width: 820px) {
  .token-trade-ticket {
    padding: 16px;
  }
  .token-trade-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================= */
/* v35 ALLOCATE: fund picker, fund summary, tiers, your position, invest     */
/* ========================================================================= */
.al{max-width:820px;display:grid;gap:14px}
#invest-status,#invest-buy{display:grid;gap:14px}#invest-status:empty,#invest-buy:empty{display:none}
.al-card{background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:20px;padding:20px;min-width:0}
.al-card h3{margin:0 0 4px;font-size:18px;font-weight:700;color:#FCF0D4;letter-spacing:-.01em}
.al-meta{margin:0;font-size:14px;line-height:1.5;color:#BAC7A0}.al-meta a,.al-card a{color:#FDB819}
.al-card>.al-meta+*{margin-top:12px}
.al-pick{padding:16px 20px}.al-pick .form-field{margin:0}.al-pick label{display:block;font-size:13px;font-weight:600;color:#D8E5C4;margin:0 0 6px}
.al-pick select{width:100%;min-height:48px;font-size:16px;font-weight:600}
.al-fund-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.al-badge{font-size:12px;font-weight:650;color:#BAC7A0;border:1px solid rgba(216,231,172,.2);border-radius:999px;padding:5px 12px;white-space:nowrap}
.al-badge-open{color:#49F29D;border-color:rgba(73,242,157,.45);background:rgba(73,242,157,.08)}
.al-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 0}
.al-stats div{background:rgba(0,0,0,.18);border-radius:14px;padding:12px 14px;min-width:0}
.al-stats dt{font-size:12px;color:#8FA678;margin:0 0 4px}.al-stats dd{margin:0;font-size:17px;font-weight:700;color:#FCF0D4;overflow-wrap:anywhere}
.al-card .al-stats+.al-meta{margin-top:12px}
.al-tiers{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.al-tiers li{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid rgba(216,231,172,.12);border-radius:14px}
.al-tiers li.is-yours{border-color:#FDB819;background:rgba(253,184,25,.06)}
.al-tier-n{font-weight:700;color:#FDB819;font-size:14px}.al-tier-hold{color:#FCF0D4;font-size:14px;font-weight:600;min-width:0}
.al-tier-hold small{display:block;font-size:12px;font-weight:500;color:#8FA678}.al-tier-cap{font-size:14px;color:#D8E5C4;white-space:nowrap}
.al-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:12px}
.al-row .form-field{flex:1 1 200px;margin:0}.al-row .form-field label{display:block;font-size:13px;font-weight:600;color:#D8E5C4;margin:0 0 6px}
.al-row input{width:100%;min-height:46px;box-sizing:border-box}
.al .market-primary,.al .market-secondary-btn{min-height:46px;padding:0 22px;font-size:15px;font-weight:650;border-radius:999px}
#invest-act>.market-secondary-btn{margin-top:12px}
.al-output{margin:0;font-size:14px;color:#D8E5C4;overflow-wrap:anywhere}
@media(max-width:640px){
  .al-card{padding:16px;border-radius:18px}
  .al-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.al-stats div:last-child{grid-column:1/-1}
  .al-tiers li{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}.al-tier-n{grid-column:1/-1}
  .al-you>.market-primary,.al-row>.market-primary{flex:1 1 100%}
}

/* ========================================================================= */
/* v36 TOKEN MARKETS: one card per token; Pons tokens link out, V4 tokens use the ticket */
/* ========================================================================= */
.tk{margin:0 0 16px;max-width:820px}
.tk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px}
.tk-card{background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0}
.tk-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.tk-head h4{margin:0;font-size:22px;font-weight:750;letter-spacing:-.02em;color:#FCF0D4}
.tk-head p{margin:2px 0 0;font-size:14px;color:#BAC7A0}
.tk-addr{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:rgba(0,0,0,.18);border-radius:12px;padding:8px 8px 8px 14px;margin:0}
.tk-addr-label{font-size:12px;color:#8FA678}
.tk-addr a{font:600 14px ui-monospace,SFMono-Regular,Menlo,monospace;color:#FCF0D4;text-decoration:none}
.tk-addr a:hover{color:#FDB819}
.tk-addr .copy-btn{margin-left:auto;min-height:32px!important;padding:0 14px!important;font-size:12px!important;border-radius:999px!important}
.tk-note{margin:0;font-size:14px;line-height:1.5;color:#BAC7A0}
.tk-actions{display:flex;gap:10px;flex-wrap:wrap}
.tk-actions .market-primary,.tk-actions .market-secondary-btn{min-height:46px;padding:0 22px;font-size:15px;font-weight:650;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.tk-empty{margin:0;font-size:14px;color:#BAC7A0}
.al-card .tk-addr{margin-top:12px}
@media(max-width:640px){.tk-card{padding:16px;border-radius:18px}.tk-actions>*{flex:1 1 auto}}

/* ========================================================================= */
/* v38 DOCUMENTATION: sticky contents, one card per section, copyable addresses */
/* ========================================================================= */
.dx{max-width:1120px;margin:0 auto;padding:24px 20px 64px}
.dx-head{margin:8px 0 22px;max-width:760px}
.dx-head h1{margin:0;font-size:clamp(30px,4vw,44px);font-weight:750;letter-spacing:-.035em;color:#FCF0D4}
.dx-lead{margin:10px 0 0;font-size:17px;line-height:1.55;color:#BAC7A0}
.dx-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start}
.dx-toc{position:sticky;top:calc(var(--unc-header-height,69px) + 16px);background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:18px;padding:16px 14px}
.dx-toc strong{display:block;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#8FA678;margin:0 0 8px 6px}
.dx-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:2px;counter-reset:dx}
.dx-toc li{counter-increment:dx}
.dx-toc a{display:flex;gap:8px;align-items:center;min-height:36px;padding:0 8px;border-radius:10px;color:#D8E5C4;text-decoration:none;font-size:14px}
.dx-toc a::before{content:counter(dx);font-size:12px;color:#8FA678;min-width:16px}
.dx-toc a:hover{background:rgba(253,184,25,.08);color:#FDB819}
.dx-body{display:grid;gap:16px;min-width:0}
.dx-body>.dx-sec{margin:0!important}
.dx-sec{background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:20px;padding:22px 24px;min-width:0;scroll-margin-top:calc(var(--unc-header-height,69px) + 16px);color:#D8E5C4;font-size:15px;line-height:1.6}
.dx-sec h2{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:22px;font-weight:700;letter-spacing:-.02em;color:#FCF0D4}
.dx-n{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#07442B;color:#FDB819;font-size:14px;font-weight:750;flex:0 0 30px}
.dx-sec h3{margin:20px 0 8px;font-size:16px;font-weight:700;color:#FCF0D4}
.dx-sec p{margin:0 0 10px}.dx-sec ul{margin:0 0 10px;padding-left:20px}.dx-sec li{margin:0 0 6px}
.dx-sec a{color:#FDB819}.dx-sec code{font:13px ui-monospace,SFMono-Regular,Menlo,monospace;color:#FCF0D4;background:rgba(255,255,255,.06);border-radius:6px;padding:1px 5px;overflow-wrap:anywhere}
.dx-sec pre code{background:none;padding:0}
.dx-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:12px 0}
.dx-facts div{background:rgba(0,0,0,.18);border-radius:14px;padding:12px 14px}.dx-facts dt{font-size:12px;color:#8FA678}.dx-facts dd{margin:4px 0 0;font-weight:650;color:#FCF0D4;overflow-wrap:anywhere}
.dx-links,.dx-api{list-style:none;padding:0!important;display:grid;gap:8px}
.dx-links li,.dx-api li{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border:1px solid rgba(216,231,172,.12);border-radius:14px;margin:0}
.dx-links a{font-weight:650;text-decoration:none}.dx-links span,.dx-api span{font-size:13px;color:#8FA678}
.dx-table-wrap{overflow-x:auto}
.dx-table{width:100%;border-collapse:collapse;font-size:14px}
.dx-table td{padding:10px 0;border-bottom:1px solid rgba(216,231,172,.1);vertical-align:middle}
.dx-table td:first-child{padding-right:16px;color:#FCF0D4;font-weight:600;min-width:180px}
.dx-table td small{display:block;font-weight:400;font-size:12.5px;color:#8FA678}
.dx-addr{display:flex;align-items:center;gap:10px;justify-content:space-between}
.dx-addr a{font:13px ui-monospace,SFMono-Regular,Menlo,monospace;color:#D8E5C4;text-decoration:none;overflow-wrap:anywhere;min-width:0}
.dx-addr a:hover{color:#FDB819}
.dx-addr .copy-btn{flex:0 0 auto;min-height:30px!important;padding:0 12px!important;font-size:12px!important;border-radius:999px!important}
.dx-sec table:not(.dx-table){font-size:13px}
@media(max-width:900px){.dx-layout{grid-template-columns:minmax(0,1fr)}.dx-toc{position:static}.dx-toc ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.dx{padding:16px 14px 88px}.dx-sec{padding:18px 16px;border-radius:18px}.dx-table td{display:block;padding:8px 0 0;border:0}.dx-table tr{display:block;padding:8px 0;border-bottom:1px solid rgba(216,231,172,.1)}.dx-sec h2{font-size:19px}}

/* ========================================================================= */
/* v43 DISCOVER LEADERBOARD + AGENT TOOLS TRACE                              */
/* ========================================================================= */
.mb-sort{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 16px}
.mb-pill{min-height:40px;padding:0 18px;border-radius:999px;border:1px solid rgba(216,231,172,.2);background:transparent!important;color:#D8E5C4!important;font-size:14px;font-weight:600}
.mb-pill.active{border-color:#FDB819!important;color:#FDB819!important;background:rgba(253,184,25,.08)!important}
.mb-list{list-style:none;margin:0;padding:0;display:grid;gap:12px;max-width:980px}
.mb-empty{padding:28px;text-align:center;color:#BAC7A0;background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:20px}
.mb-row{display:grid;grid-template-columns:28px 44px minmax(0,1.2fr) minmax(0,2fr) auto;gap:14px;align-items:center;background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:20px;padding:16px 20px}
.mb-rank{font-size:15px;font-weight:750;color:#8FA678;text-align:center}
.mb-avatar{width:44px;height:44px;border-radius:50%;background:#07442B;color:#FDB819;display:inline-flex;align-items:center;justify-content:center;font-weight:750;font-size:18px}
.mb-who{min-width:0}.mb-who strong{display:block;font-size:17px;color:#FCF0D4}.mb-who span{font-size:13px;color:#BAC7A0}
.mb-status{font-weight:650}.mb-status[data-state="on"]{color:#49F29D}
.mb-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.mb-stats div{background:rgba(0,0,0,.18);border-radius:12px;padding:8px 12px;min-width:0}.mb-stats dt{font-size:12px;color:#8FA678}.mb-stats dd{margin:2px 0 0;font-weight:700;color:#FCF0D4;overflow-wrap:anywhere}
.mb-actions{display:flex;gap:8px}.mb-actions a{min-height:42px;padding:0 18px;border-radius:999px;display:inline-flex;align-items:center;font-weight:650;text-decoration:none}
.trace-stage-card{background:rgba(0,0,0,.18);border:1px solid rgba(216,231,172,.12);border-radius:14px;padding:12px 14px;margin:0 0 10px;display:grid;gap:6px}
.trace-stage-card>strong{color:#FCF0D4;font-size:14px}
.trace-rows{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;margin:0;font-size:13.5px}
.trace-rows dt{color:#8FA678}.trace-rows dd{margin:0;color:#FCF0D4;overflow-wrap:anywhere}
.trace-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
.trace-tx,.marketplace-store .trace-tx{color:#FDB819;font-size:13.5px;font-weight:600;text-decoration:none}
#telemetry-mandate-address a{color:#FDB819;text-decoration:none}
@media(max-width:820px){.mb-row{grid-template-columns:28px 44px minmax(0,1fr)}.mb-stats,.mb-actions{grid-column:1/-1}.mb-actions a{flex:1;justify-content:center}}

/* ========================================================================= */
/* v49 ALLOCATE: fund on the left, a sticky invest panel with numbered steps */
/* ========================================================================= */
.al{max-width:1120px;gap:18px}
.al-pick{display:flex;align-items:center;gap:12px;padding:0;background:none;border:0}
.al-pick label{margin:0;font-size:14px;font-weight:650;color:#D8E5C4}
.al-pick select{width:auto;min-width:280px;max-width:100%;min-height:46px;font-size:16px;font-weight:650;border-radius:999px;padding:0 40px 0 18px}
.al-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}
.al-main,.al-main>#invest-status,.al-side{display:grid;gap:14px;min-width:0}
.al-side{position:sticky;top:96px;counter-reset:alstep}
.al-side:empty{display:none}
.al-side .al-step{counter-increment:alstep}
.al-side .al-step>h3::before{content:"Step " counter(alstep);display:block;margin:0 0 6px;font-size:11.5px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#8FA678}
.al-side .al-row>.market-primary,.al-side .al-row>.market-secondary-btn,.al-side #btn-invest-redeem{flex:1 1 100%;justify-content:center;text-align:center;display:inline-flex;align-items:center}
.al-side .al-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.al-side .al-stats dd{font-size:15px}
.al-side #invest-deposit-box{margin-top:12px}
.al-side #btn-invest-redeem{width:100%;margin-top:10px}
.al-side .tk-addr{margin-top:12px}
@media(max-width:980px){.al-grid{grid-template-columns:minmax(0,1fr)}.al-side{position:static}}
@media(max-width:640px){.al-pick{flex-direction:column;align-items:stretch;gap:6px}.al-pick select{width:100%;min-width:0}.al-side .al-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.al-side .al-stats div:last-child{grid-column:1/-1}}

/* ========================================================================= */
/* v53 PROFILE PILL + ACCOUNT PANEL (side sheet on desktop, full screen on phones) */
/* ========================================================================= */
.acct-avatar-lg{width:48px;height:48px;font-size:20px}
body.acct-lock{overflow:hidden}
.acct-backdrop{position:fixed;inset:0;background:rgba(0,10,6,.55);backdrop-filter:blur(2px);z-index:9998}
.acct{position:fixed;top:0;right:0;bottom:0;width:min(440px,100vw);z-index:9999;display:flex;flex-direction:column;background:#021F15;border-left:1px solid rgba(216,231,172,.14);box-shadow:-24px 0 60px rgba(0,0,0,.45);transform:translateX(100%);transition:transform .22s ease}
.acct.is-open{transform:none}
.acct[hidden]{display:none}
.acct-top{display:flex;align-items:center;gap:14px;padding:22px 22px 18px;border-bottom:1px solid rgba(216,231,172,.1)}
.acct-who{flex:1;min-width:0}.acct-who h2{margin:0;font-size:20px;color:#FCF0D4;letter-spacing:-.01em}
.acct-addr{margin-top:2px;padding:0;background:none!important;border:0;color:#BAC7A0!important;font:13px ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer}
.acct-addr:hover{color:#FDB819!important}
.acct-close{width:36px;height:36px;border-radius:50%;border:1px solid rgba(216,231,172,.18);background:transparent!important;color:#D8E5C4!important;font-size:20px;line-height:1;cursor:pointer}
.acct-body{flex:1;overflow-y:auto;padding:6px 22px 24px;overscroll-behavior:contain}
.acct-h{margin:22px 0 10px;font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#8FA678}
.acct-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.acct-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:16px;border:1px solid rgba(216,231,172,.12);background:#032A1D!important;color:#FCF0D4!important;text-align:left;text-decoration:none;cursor:pointer;font:inherit}
.acct-item:hover{border-color:rgba(253,184,25,.45)}
.acct-item-main{flex:1;min-width:0}.acct-item-main strong{display:block;font-size:15.5px}.acct-item-main small{font-size:12.5px;color:#BAC7A0}
.acct-item-side{text-align:right;font-weight:700;font-size:14px;white-space:nowrap}.acct-item-side small{display:block;font-weight:500;font-size:11.5px;color:#8FA678}
.acct-chev-r{color:#8FA678;font-size:20px}
.acct-pill{font-weight:650}.acct-pill[data-tone="on"]{color:#49F29D}.acct-pill[data-tone="warn"]{color:#FDB819}.acct-pill[data-tone="off"]{color:#BAC7A0}
.acct-empty{padding:16px;border-radius:16px;border:1px dashed rgba(216,231,172,.16);color:#BAC7A0;font-size:14px;text-align:center}
.acct-empty p{margin:0 0 10px}.acct-cta{display:inline-flex;min-height:42px;padding:0 20px;border-radius:999px;align-items:center;text-decoration:none;font-weight:650}
.acct-link{color:#FDB819;text-decoration:none;font-weight:600}
.acct-act{display:flex;justify-content:space-between;gap:12px;padding:10px 4px;border-bottom:1px solid rgba(216,231,172,.08);color:#FCF0D4;text-decoration:none;font-size:14px}
.acct-act strong{display:block}.acct-act small{color:#8FA678;font-size:12px}.acct-act>span:last-child{color:#D8E5C4;white-space:nowrap}
.acct-back{margin:14px 0 6px;padding:0;background:none!important;border:0;color:#FDB819!important;font-weight:650;font-size:14.5px;cursor:pointer}
.acct-firm-id{display:flex;align-items:center;gap:14px;margin:6px 0 14px}.acct-firm-id h3{margin:0;font-size:22px;color:#FCF0D4}.acct-firm-id p{margin:2px 0 0;font-size:13px;color:#BAC7A0}.acct-firm-id a{color:#FDB819;text-decoration:none}
.acct-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 8px}
.acct-stats div{background:#032A1D;border:1px solid rgba(216,231,172,.1);border-radius:14px;padding:10px 12px}.acct-stats dt{font-size:12px;color:#8FA678}.acct-stats dd{margin:2px 0 0;font-weight:700;color:#FCF0D4}
.acct-group{margin-top:18px}.acct-group h4{margin:0 0 8px;font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#8FA678}
.acct-row-form{display:flex;gap:10px;align-items:flex-end;margin-bottom:8px}.acct-row-form .form-field{flex:1;margin:0}.acct-row-form label{display:block;font-size:13px;color:#D8E5C4;margin:0 0 6px}
.acct-row-form input{width:100%;min-height:46px;box-sizing:border-box}.acct-row-form .market-primary{min-height:46px;padding:0 22px;border-radius:999px;font-weight:650}
.acct-action{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin:0 0 8px;padding:13px 16px;border-radius:14px;border:1px solid rgba(216,231,172,.14);background:#032A1D!important;color:#FCF0D4!important;font:inherit;font-weight:650;font-size:15px;text-align:left;text-decoration:none;cursor:pointer}
.acct-action span{font-weight:500;font-size:12.5px;color:#8FA678;margin-top:2px}.acct-action:hover{border-color:rgba(253,184,25,.45)}
.acct-pair{display:grid;gap:8px}.acct-pair .acct-action{margin:0}.acct-pair .acct-action[hidden]{display:none}
.acct-status{margin:14px 0 0;font-size:14px;overflow-wrap:anywhere}
.acct-danger{margin-top:22px;padding:14px;border-radius:16px;border:1px solid rgba(255,133,133,.25);display:flex;gap:12px;align-items:center;justify-content:space-between}
.acct-danger p{margin:2px 0 0;font-size:12.5px;color:#BAC7A0}.acct-danger strong{color:#FCF0D4}
.acct-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 22px calc(14px + env(safe-area-inset-bottom));border-top:1px solid rgba(216,231,172,.1)}
.acct-foot a{color:#BAC7A0;text-decoration:none;font-size:13.5px}.acct-disconnect{background:none!important;border:0;color:#FF8585!important;font-weight:650;font-size:14px;cursor:pointer}
.lf-existing{margin:10px 0 0;font-size:14px;color:#BAC7A0}.lf-link{padding:0;background:none!important;border:0;color:#FDB819!important;font:inherit;font-weight:650;cursor:pointer}
@media(max-width:640px){.acct{width:100vw;border-left:0}.wallet-pill-btn.is-profile .wallet-btn-label{font-size:12.5px}.acct-top{padding:18px 16px 14px}.acct-body{padding:4px 16px 20px}.acct-foot{padding-left:16px;padding-right:16px}}
.acct-action[hidden]{display:none}.acct-open{color:#49F29D;font-weight:600}

/* ========================================================================= */
/* v54 FIRMS DIRECTORY CARDS + FIRM DETAIL                                    */
/* ========================================================================= */
#firms-terminal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}
.fc{background:#032A1D;border:1px solid rgba(216,231,172,.14);border-radius:20px;padding:18px;display:grid;gap:14px;grid-template-rows:auto auto 1fr}.fc-actions{align-self:end}
.fc-top{display:flex;align-items:center;gap:12px}.fc-who{flex:1;min-width:0}.fc-who h3{margin:0;font-size:18px;color:#FCF0D4}.fc-who p{margin:2px 0 0;font-size:13px;color:#BAC7A0}
.fc-level{font-size:12px;font-weight:650;color:#49F29D;border:1px solid rgba(73,242,157,.4);border-radius:999px;padding:4px 10px;white-space:nowrap}
.fc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.fc-stats div{background:rgba(0,0,0,.18);border-radius:12px;padding:9px 12px;min-width:0}.fc-stats dt{font-size:12px;color:#8FA678}.fc-stats dd{margin:2px 0 0;font-weight:700;color:#FCF0D4;overflow-wrap:anywhere}.fc-stats small{font-size:11px;color:#8FA678}
.fc-actions{display:flex;gap:8px}.fc-actions>*{flex:1;min-height:42px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:650;text-decoration:none;padding:0 14px}
.fd .fd-panel{max-width:460px;width:100%;padding:22px;overflow-y:auto}
.fd-top{display:flex;align-items:center;gap:14px;margin-bottom:14px}.fd-who{flex:1;min-width:0}.fd-who h3{margin:0;font-size:22px;color:#FCF0D4}.fd-who p{margin:2px 0 0;font-size:13px;color:#BAC7A0}.fd-who a{color:#FDB819;text-decoration:none}
.fd-note{margin:0 0 10px;font-size:14px;line-height:1.5;color:#BAC7A0}
.fd-actions{display:flex;gap:8px;margin-top:12px}.fd-actions>*{flex:1;min-height:44px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:650;text-decoration:none}
.fd-more{display:inline-block;margin-top:10px}
@media(max-width:640px){#firms-terminal-grid{grid-template-columns:1fr}.fc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-stats div:last-child{grid-column:1/-1}.fd .fd-panel{max-width:100vw;border-radius:0}}

/* v75 polish: phone gutters match the header and home page (16 px) */
@media (max-width:820px){.market-main{padding-left:16px!important;padding-right:16px!important}.market-footer{padding-left:16px!important;padding-right:16px!important}}

/* ========================================================================= */
/* v83 LAUNCH A FIRM (Six, 26 Nov 2026): five step cards, a progress rail, one owner bar, one command and copy component. */
/* ========================================================================= */
.lfx{--lfx-card:#032A1D;--lfx-line:rgba(216,231,172,.14);--lfx-gold:#FDB819;--lfx-green:#49F29D;--lfx-text:#FCF0D4;--lfx-muted:#8FA678;--lfx-soft:#BAC7A0;display:flex;flex-direction:column;gap:16px}
.lfx[hidden],.lfx [hidden]{display:none!important}
.lfx .lf-head{margin:0}
.lfx-intro{margin:0;font-size:15px;line-height:1.55;color:var(--lfx-soft);max-width:46rem}
.lfx-intro a,.lfx .lf-link{color:var(--lfx-gold);text-decoration:none;font-weight:600;background:none;border:0;padding:0;font-size:inherit;cursor:pointer;min-height:0}
.lfx-intro a:hover,.lfx .lf-link:hover{text-decoration:underline}
.view-header.firms-directory-heading{align-items:center;gap:10px 16px;flex-wrap:nowrap}
#btn-toggle-firm-launch{margin:0;min-height:44px;white-space:nowrap}
.lfx .lfx-back,.lfx .lfx-utility{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--lfx-soft);font-size:14px;font-weight:650;cursor:pointer;text-decoration:none;margin:0}
.lfx .lfx-back{align-self:flex-start;padding:0 6px;color:var(--lfx-gold);margin-left:-6px}
.lfx-back span{font-size:22px;line-height:1}
.lfx .lfx-back:hover,.lfx .lfx-utility:hover{color:var(--lfx-text);background:rgba(216,231,172,.08)}
.lfx .lfx-utility:disabled{opacity:.55;cursor:default}

/* progress rail */
.lfx-rail ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.lfx-rail li{display:flex;flex-direction:column;gap:8px;min-width:0}
.lfx-rail-dot{display:block;height:4px;border-radius:999px;background:var(--lfx-line)}
.lfx-rail-label{font-size:12px;font-weight:600;color:var(--lfx-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lfx-rail li[data-state="done"] .lfx-rail-dot{background:var(--lfx-green)}
.lfx-rail li[data-state="done"] .lfx-rail-label{color:var(--lfx-soft)}
.lfx-rail li[data-state="current"] .lfx-rail-dot{background:var(--lfx-gold)}
.lfx-rail li[data-state="current"] .lfx-rail-label{color:var(--lfx-text)}

/* owner bar */
.lfx-owner{display:flex;flex-direction:column;gap:10px;padding:16px 20px;border:1px solid var(--lfx-line);border-radius:18px;background:rgba(3,42,29,.6)}
.lfx-owner-header{display:flex;align-items:center;justify-content:space-between;gap:12px 20px}
.lfx-owner-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.lfx-owner-text strong{font-size:15px;color:var(--lfx-text);overflow-wrap:anywhere}
.lfx-owner-text span{font-size:13px;color:var(--lfx-muted)}
.lfx-owner-actions{display:flex;gap:0 8px;flex-wrap:wrap;border-top:1px solid var(--lfx-line);padding-top:4px}
.lfx-sr{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* step cards */
.lfx-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.lfx .lfx-card{background:var(--lfx-card);border:1px solid var(--lfx-line);border-radius:20px;padding:0;margin:0;overflow:hidden;transition:border-color .2s ease}
.lfx .lfx-card[data-state="current"]{border-color:rgba(253,184,25,.45)}
.lfx-head{all:unset;box-sizing:border-box;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:18px 20px;cursor:pointer}
.lfx-head:focus-visible{outline:2px solid var(--lfx-gold);outline-offset:-2px;border-radius:20px}
.lfx-card[data-state="current"] .lfx-head{cursor:default}
.lfx .lfx-num{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:rgba(216,231,172,.06);border:1px solid var(--lfx-line);color:var(--lfx-muted);font-weight:700;font-size:15px;margin:0}
.lfx-tick{display:none;width:18px;height:18px;fill:none;stroke:#01201A;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.lfx-card[data-state="current"] .lfx-num{border-color:var(--lfx-gold);color:var(--lfx-gold);background:rgba(253,184,25,.08)}
.lfx-card[data-state="done"] .lfx-num{background:var(--lfx-green);border-color:var(--lfx-green)}
.lfx-card[data-state="done"] .lfx-n{display:none}
.lfx-card[data-state="done"] .lfx-tick{display:block}
.lfx-titles{display:flex;flex-direction:column;gap:3px;min-width:0}
.lfx-title{font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--lfx-text)}
.lfx-card[data-state="upcoming"] .lfx-title{color:var(--lfx-soft)}
.lfx-sub{font-size:13px;line-height:1.45;color:var(--lfx-muted)}
.lfx-pill{font-size:12px;font-weight:700;letter-spacing:.02em;padding:4px 10px;border-radius:999px;white-space:nowrap}
.lfx-pill:empty{display:none}
.lfx-card[data-state="done"] .lfx-pill{color:var(--lfx-green);background:rgba(73,242,157,.1)}
.lfx-card[data-state="current"] .lfx-pill{color:var(--lfx-gold);background:rgba(253,184,25,.1)}
.lfx-body{display:none;padding:4px 20px 22px 70px;flex-direction:column;gap:16px}
.lfx-card.is-open .lfx-body{display:flex}
.lfx-panel{display:flex;flex-direction:column;gap:16px}
.lfx-panel[hidden]{display:none!important}
.lfx-wait{margin:0;font-size:14px;color:var(--lfx-muted)}
.lfx-body:has(> .lfx-panel:not([hidden]):not([style*="display:none"]):not([style*="display: none"])) > .lfx-wait{display:none}
.lfx-card[data-state="done"] .lfx-wait{display:none}

/* fields: one height, one look, including the select */
.lfx .lf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin:0}
.lfx .lf-grid-4{grid-template-columns:2fr 1fr 1fr 1fr}
.lfx .form-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
.lfx .form-field label{font-size:13px;font-weight:600;color:var(--lfx-soft)}
.lfx .lf-opt{font-weight:500;color:var(--lfx-muted)}
.lfx .form-field input,.lfx .lfx-select{width:100%;box-sizing:border-box;min-height:48px;padding:12px 14px;border:1px solid var(--lfx-line);border-radius:12px;background:#021F15;color:var(--lfx-text);font-size:15px}
.lfx .form-field input:focus,.lfx .lfx-select:focus{outline:none;border-color:var(--lfx-gold);box-shadow:0 0 0 3px rgba(253,184,25,.15)}
.lfx .lf-mono,.lfx .lf-mono::placeholder{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px}
.lfx .lfx-select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238FA678' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}

/* actions: always separated from the fields above, primary on the right on desktop */
.lfx-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;margin:4px 0 0}
.lfx-actions .market-primary,.lfx-actions .market-secondary-btn,.lfx-owner-header .market-primary{min-height:44px;padding:0 20px;border-radius:999px;font-size:15px;font-weight:650;margin:0}
.lfx-actions:has(> [hidden]:only-child){display:none}
.lfx-hint{font-size:13px;color:var(--lfx-muted);margin:0}
.lfx .lf-note{margin:0;font-size:14px;line-height:1.55;color:var(--lfx-soft)}
.lfx-facts{margin:0;font-size:13px;line-height:1.55;color:var(--lfx-muted)}
.lfx-facts:empty{display:none}
.lfx-digest{margin:0;font-size:13px;color:var(--lfx-soft);overflow-wrap:anywhere}
.lfx-digest:empty{display:none}

/* status notices */
.lfx .lf-status{margin:0;padding:10px 14px;border-radius:12px;background:rgba(216,231,172,.06);border-left:3px solid var(--lfx-gold);font-size:14px;line-height:1.5;color:var(--lfx-soft);overflow-wrap:anywhere}
.lfx .lf-status:empty{display:none}

/* command blocks and code */
.lfx-cmd{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:12px 14px;border-radius:14px;background:#011A12;border:1px solid var(--lfx-line)}
.lfx-cmd-label{grid-column:1/2;font-size:12px;font-weight:600;color:var(--lfx-muted)}
.lfx-cmd-text{grid-column:1/2;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px;color:var(--lfx-text);overflow-wrap:anywhere;background:none;padding:0}
.lfx-cmd .lfx-chip{grid-column:2/3;grid-row:1/3}
.lfx .lf-code-wrap{border:1px solid var(--lfx-line);border-radius:14px;overflow:hidden;background:#011A12;margin:0}
.lfx .lf-code-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--lfx-line)}
.lfx .lf-code-bar label{font-size:13px;font-weight:600;color:var(--lfx-soft)}
.lfx .lf-code{display:block;width:100%;box-sizing:border-box;border:0;border-radius:0;background:transparent;color:var(--lfx-text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;padding:12px 14px;resize:vertical;min-height:84px}
.lfx-numbered{margin:0;padding:0;list-style:none;counter-reset:lfxn;display:flex;flex-direction:column;gap:14px}
.lfx-numbered>li{counter-increment:lfxn;display:flex;flex-direction:column;gap:10px;padding-left:32px;position:relative;font-size:14px;line-height:1.55;color:var(--lfx-soft)}
.lfx-numbered>li::before{content:counter(lfxn);position:absolute;left:0;top:0;width:22px;height:22px;border-radius:50%;background:rgba(216,231,172,.08);color:var(--lfx-soft);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.lfx-more{border-top:1px solid var(--lfx-line);padding-top:14px}
.lfx-more>summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--lfx-soft);list-style:none;min-height:0;padding:0}
.lfx-more>summary::-webkit-details-marker{display:none}
.lfx-more>summary::after{content:" ›";color:var(--lfx-muted)}
.lfx-more[open]>summary::after{content:" ˅"}
.lfx-more[open]{display:flex;flex-direction:column;gap:14px}

/* the one copy chip, used everywhere in the flow */
.lfx .lfx-chip,.lfx .copy-btn,.copy-row .copy-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 14px;border-radius:999px;border:1px solid rgba(216,231,172,.22);background:rgba(216,231,172,.08);color:#D8E5C4;font-size:13px;font-weight:650;letter-spacing:.01em;cursor:pointer;white-space:nowrap;margin:0;box-shadow:none}
.lfx .lfx-chip:hover,.lfx .copy-btn:hover{border-color:var(--lfx-gold);color:var(--lfx-gold);background:rgba(253,184,25,.08)}

/* your firm's details */
.lfx-values{background:var(--lfx-card);border:1px solid var(--lfx-line);border-radius:20px;padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.lfx-values[hidden]{display:none}
.lfx-values-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.lfx-values-head .lf-subh{margin:0;font-size:17px;color:var(--lfx-text)}
.lfx-rows{display:flex;flex-direction:column}
.lfx-rows:empty{display:none}
.copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px;padding:12px 0;border-top:1px solid var(--lfx-line)}
.copy-row:first-child{border-top:0}
.copy-row .copy-label{grid-column:1;font-size:12px;font-weight:600;color:var(--lfx-muted,#8FA678)}
.copy-row .copy-text{grid-column:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px;color:var(--lfx-text,#FCF0D4);overflow-wrap:anywhere;background:none;padding:0}
.copy-row .copy-btn{grid-column:2;grid-row:1/3}

@media (max-width:640px){
  .lfx{gap:14px}
  .lfx-head{grid-template-columns:32px minmax(0,1fr) auto;gap:12px;padding:16px}
  .lfx .lfx-num{width:32px;height:32px;font-size:14px}
  .lfx-body{padding:0 16px 18px}
  .lfx .lf-grid,.lfx .lf-grid-4{grid-template-columns:1fr}
  .lfx-actions{flex-direction:column;align-items:stretch}
  .lfx-actions .market-primary,.lfx-actions .market-secondary-btn,.lfx-owner-header .market-primary{width:100%}
  .lfx-owner{padding:16px}
  .lfx-owner-header{flex-direction:column;align-items:stretch}
  .lfx .form-field input,.lfx .lfx-select,.lfx .lf-mono{font-size:16px}
  .lfx-cmd-text{font-size:12.5px}
  .lfx-rail-label{font-size:11px}
}
.lfx-intro .lf-link{font-size:inherit;line-height:inherit;font-weight:600}
/* v83: one field surface for inputs and the select (older input rules were more specific) */
html body .lfx .form-field input,html body .lfx .lfx-select{background-color:#06331F!important;border:1px solid rgba(216,231,172,.16)!important;border-radius:12px!important;min-height:48px!important;color:#FCF0D4!important}
html body .lfx .form-field input:focus,html body .lfx .lfx-select:focus{border-color:#FDB819!important;box-shadow:0 0 0 3px rgba(253,184,25,.15)!important}
@media (max-width:640px){html body .lfx .lf-grid-4{grid-template-columns:1fr 1fr}html body .lfx .lf-grid-4 .form-field:first-child{grid-column:1/-1}}
/* v83: panels the scripts show with display:block keep the same rhythm */
html body .lfx #reg-binding-panel>*+*{margin-top:16px}
html body .lfx .lfx-more[open]>*+*{margin-top:14px}
html body .lfx .lfx-panel>.lf-status{margin-top:12px}
.lfx-more>summary::after{content:"›";display:inline-block;margin-left:6px;transition:transform .2s ease}
.lfx-more[open]>summary::after{content:"›";transform:rotate(90deg)}

/* ========================================================================= */
/* v84 TOKEN MARKETS, ALLOCATE (Six, 26 Nov 2026: the most used surfaces, "no amateur work")                        */
/* ========================================================================= */
/* one content width: the 1240 px platform grid */
html body #view-token .tk,html body #view-allocate .al{max-width:none}
html body #view-token .tk-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px}
/* one field surface for every select and input on these views */
html body #view-token select,html body #view-allocate select,html body #view-token input,html body #view-allocate input:not([type=checkbox]){background-color:#06331F;border:1px solid rgba(216,231,172,.16);border-radius:12px;min-height:48px;color:#FCF0D4;font-size:15px}
html body #view-token select,html body #view-allocate select{appearance:none;-webkit-appearance:none;padding:0 40px 0 14px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238FA678' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
html body #view-token select:focus,html body #view-allocate select:focus,html body #view-token input:focus,html body #view-allocate input:focus{outline:none;border-color:#FDB819;box-shadow:0 0 0 3px rgba(253,184,25,.15)}
/* the trade panel: a quiet venue pill, room to breathe */
html body #agent-token-trade-ticket{margin-top:20px;border-radius:20px}
html body #token-trade-venue-badge{font-size:12px;font-weight:650;padding:6px 12px;border-radius:999px;background:rgba(216,231,172,.08);border:1px solid rgba(216,231,172,.16);color:#BAC7A0}
/* Allocate: the fund chooser */
html body #view-allocate .al-pick{display:flex;flex-direction:column;gap:6px;max-width:420px}
html body #view-allocate .al-pick label{font-size:13px;font-weight:600;color:#BAC7A0}
html body #view-allocate .al-pick select{width:100%;border-radius:12px}
.al-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px;margin:16px 0 4px}
.al-picker[hidden]{display:none}
.al-tile{all:unset;box-sizing:border-box;display:grid;grid-template-columns:44px minmax(0,1fr) auto 16px;align-items:center;gap:14px;padding:16px 18px;border-radius:18px;background:#032A1D;border:1px solid rgba(216,231,172,.14);cursor:pointer;transition:border-color .2s ease,transform .2s ease}
.al-tile:hover{border-color:rgba(253,184,25,.5)}
.al-tile:focus-visible{outline:2px solid #FDB819;outline-offset:2px}
.al-tile .acct-avatar{width:44px;height:44px;font-size:18px}
.al-tile-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.al-tile-main strong{font-size:16px;color:#FCF0D4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.al-tile-main small{font-size:13px;color:#8FA678}
.al-tile-stats{display:flex;gap:16px;text-align:right}
.al-tile-stats span{display:flex;flex-direction:column}
.al-tile-stats b{font-size:14px;color:#FCF0D4;font-weight:650;white-space:nowrap}
.al-tile-stats i{font-style:normal;font-size:11px;color:#8FA678}
.al-tile-go{color:#8FA678;font-size:22px;line-height:1}
@media (max-width:640px){
  .al-tile{grid-template-columns:40px minmax(0,1fr) 14px;padding:14px}
  .al-tile-stats{grid-column:2/3;grid-row:2;justify-content:flex-start;text-align:left;gap:20px}
  .al-tile-go{grid-row:1/3;grid-column:3}
}
html body #view-allocate .al-pick label{text-align:left;align-self:flex-start}
html body #agent-token-trade-ticket .market-primary:disabled{opacity:.55;background:#FDB819;color:#01201A}

/* v84: phone trade actions: primary full width on its own line, refresh below */
@media (max-width:560px){
  html body .token-trade-actions{display:flex;flex-direction:column;gap:10px;}
  html body .token-trade-actions > button,html body .token-trade-actions > .market-primary{width:100%;flex:0 0 auto;min-height:48px;white-space:nowrap;}
}

/* v84: account close is a round 36px control everywhere; focus ring is round and only for keyboard users */
html body .acct-close{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:50%!important;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px}
html body .acct-close:focus{outline:none}
html body .acct-close:focus-visible{outline:2px solid var(--accent-gold);outline-offset:2px}
html body .acct-item-todo{font-size:13px;font-weight:600;color:var(--accent-gold);white-space:nowrap}

/* v88: Agent wallet (gas & research) in Your account -> Manage firm */
.acct-wallet-note{margin:0 0 10px;font-size:13px;line-height:1.5;color:#BAC7A0}
.acct-wallet-note a{color:#FDB819;text-decoration:none;font-weight:600}
.acct-wallet-note a:hover{text-decoration:underline}
.acct-wallet-meta .copy-row{padding:8px 0 10px;border-top:0;border-bottom:1px solid rgba(216,231,172,.12)}
.acct-wallet-meta .copy-text a{color:#FCF0D4;text-decoration:none}
.acct-wallet-meta .copy-text a:hover{color:#FDB819;text-decoration:underline}
.acct-wallet-stats{margin:10px 0 12px!important}
.acct-wallet-warn{color:#FDB819;font-size:11.5px;font-weight:600}

/* Six (27 Nov): the bonding curve as a market: price, market cap, impact and the curve. */
.token-trade-market{display:flex;flex-direction:column;gap:8px;padding-bottom:10px;border-bottom:1px solid rgba(216,231,172,.12)}
.token-curve-chart svg{display:block;width:100%;height:auto}
.token-curve-axis{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:#8FA678;margin-top:4px}
.token-trade-row strong.is-up{color:#49F29D}.token-trade-row strong.is-down{color:#F87171}
.tk-stats{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:13px;color:#BAC7A0;margin:6px 0 2px}.tk-stats strong{color:#FCF0D4;font-weight:600;text-align:right}
/* Six (27 Nov): the agent-token stock card, laid out like Apple Stocks and X's stock card. */
.stk{background:#0b1512;border:1px solid var(--border-light);border-radius:18px;padding:16px;margin:12px 0 4px;min-width:0}
.stk-head{display:flex;gap:10px;align-items:center}.stk-avatar{width:40px;height:40px;flex:none;border-radius:50%;background:#07442B;display:grid;place-items:center;font-weight:800;font-size:18px;color:#FCF0D4}
.stk-id{min-width:0}.stk-id strong{display:block;font-size:17px;color:#FCF0D4;line-height:1.2}.stk-id small{display:block;color:#8FA678;font-size:13px;margin-top:2px}
.stk-price{font-size:34px;font-weight:800;color:#FCF0D4;margin-top:12px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.1}.stk-price span{font-size:15px;color:#8FA678;font-weight:600;letter-spacing:0}
.stk-change{font-size:14px;font-weight:600;margin-top:4px;font-variant-numeric:tabular-nums}.stk-change.is-up{color:#30D158}.stk-change.is-down{color:#FF453A}.stk-when{color:#8FA678;font-weight:500;margin-left:4px}
.stk-chart{position:relative;margin:14px 0 8px;touch-action:pan-y;cursor:crosshair}.stk-chart svg{width:100%;height:200px;display:block}
.stk-empty{position:absolute;left:0;right:0;bottom:46px;text-align:center;font-size:13px;color:#8FA678;margin:0;pointer-events:none}
.stk-ranges{display:flex;gap:4px;background:rgba(252,240,212,.06);border-radius:12px;padding:4px}
.stk-range{flex:1;background:transparent;border:0;color:#BAC7A0;font:700 13px/1 inherit;padding:0;border-radius:9px;min-height:36px;cursor:pointer}.stk-range.is-on{background:#2a3b33;color:#FCF0D4}
.stk-stats{display:grid;grid-auto-flow:column;grid-template-rows:repeat(3,auto);grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px;margin:14px 0 0}
.stk-stats div{display:flex;justify-content:space-between;gap:6px;padding:8px 0;border-top:1px solid rgba(216,231,172,.1);font-size:13px;min-width:0}.stk-stats dt{color:#8FA678;white-space:nowrap}.stk-stats dd{margin:0;color:#FCF0D4;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:560px){.stk{padding:14px}.stk-price{font-size:30px}.stk-stats{column-gap:12px}.stk-stats div{flex-direction:column;justify-content:flex-start;gap:2px;font-size:12px}.stk-stats dd{font-size:13px;white-space:normal;overflow:visible;overflow-wrap:anywhere}}
