:root {
  --bg: #07111f;
  --bg-2: #0d1a2d;
  --panel: #f1f5f9;
  --panel-2: #dbe4ee;
  --ink: #ffffff;
  --muted: #aebbd0;
  --dark-ink: #102033;
  --line: rgba(255,255,255,.12);
  --green: #24c777;
  --green-2: #19a763;
  --amber: #f2b84b;
  --red: #ef6262;
  --blue: #69a7ff;
  --shadow: 0 18px 48px rgba(0,0,0,.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 0%, rgba(36,199,119,.16), transparent 28rem),
    linear-gradient(160deg, #07111f 0%, #0a1728 50%, #0e2037 100%);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, .btn { overflow-wrap: anywhere; }

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(7,17,31,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

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

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

.notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  font-weight: 900;
}

.alert-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #062015;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.notification-button strong {
  font-size: 12px;
}

.notification-button .alert-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  min-height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061a11;
  background: var(--green);
  font-size: 11px;
}

@media (max-width: 420px) {
  .topbar {
    gap: 8px;
    padding: 12px 12px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .notification-button {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 6px;
  }

  .notification-button strong {
    display: none;
  }

}

.notification-drawer {
  position: sticky;
  top: 67px;
  z-index: 19;
  margin: 0 14px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13,26,45,.96);
  box-shadow: var(--shadow);
}

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

.notification-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.07);
  text-align: left;
}

.notification-item.unread {
  border-color: rgba(36,199,119,.5);
  box-shadow: inset 4px 0 0 var(--green);
}

.notification-item small {
  color: var(--muted);
  font-weight: 800;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #062015;
  font-weight: 900;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(36,199,119,.12);
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.brand small, .muted { color: var(--muted); }
.brand small { display: block; margin-top: 1px; }

.page {
  padding: 18px 14px calc(104px + env(safe-area-inset-bottom));
}

.hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16,32,51,.92), rgba(13,26,45,.88));
  box-shadow: var(--shadow);
}

.hero h2, .section-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p, .section-title p { margin: 8px 0 0; color: var(--muted); }

.section-title {
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 26px;
}

.section-title p {
  font-size: 14px;
  line-height: 1.35;
}

.auth-grid, .dashboard-grid, .two-col, .trade-layout {
  display: grid;
  gap: 14px;
}

.auth-grid { margin-top: 14px; }

.panel {
  color: var(--dark-ink);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  min-width: 0;
}

.panel.dark {
  color: var(--ink);
  background: rgba(13,26,45,.86);
  border-color: var(--line);
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.form {
  display: grid;
  gap: 10px;
}

.add-card-form {
  gap: 12px;
}

.form-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.5);
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-kicker strong {
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.clean-search-grid {
  grid-template-columns: 1fr;
}

.search-manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.search-manual-row > .btn {
  width: 100%;
  min-height: 58px;
}

.search-manual-row > .btn:only-child {
  grid-column: 1 / -1;
}

.search-manual-row > .btn.secondary {
  color: #102033;
  background: rgba(16,32,51,.04);
  border-color: rgba(16,32,51,.18);
}

.manual-fields {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(16,32,51,.1);
  border-radius: 8px;
  background: rgba(16,32,51,.035);
}

.manual-fields .form-grid {
  grid-template-columns: 1fr;
}

.manual-fields .add-form-actions {
  position: static;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.manual-photo-block {
  display: grid;
  gap: 10px;
}

.want-search-field {
  position: relative;
}

.want-typeahead {
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.want-typeahead:empty {
  display: none;
}

.want-typeahead-note {
  padding: 9px 10px;
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  background: rgba(16,32,51,.04);
  color: #496176;
  font-size: 12px;
  font-weight: 900;
}

.want-typeahead-row {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 7px;
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  background: rgba(16,32,51,.04);
  color: #102033;
  text-align: left;
}

.want-typeahead-row img {
  width: 38px;
  height: 52px;
  border-radius: 5px;
  object-fit: cover;
  background: rgba(16,32,51,.08);
}

.want-typeahead-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.want-typeahead-row strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.want-typeahead-row small {
  color: #496176;
  font-size: 11px;
  font-weight: 800;
}

.want-typeahead-row em {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: #102033;
}

.card-typeahead-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 8px;
  background: #fff;
  border-color: rgba(16,32,51,.14);
  box-shadow: 0 6px 18px rgba(16,32,51,.06);
}

.card-typeahead-row img {
  width: 44px;
  height: 58px;
}

.card-typeahead-row em {
  padding: 7px 9px;
  border-radius: 999px;
  background: #2cc777;
  color: #071427;
}

.selected-add-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(44,199,119,.38);
  border-radius: 8px;
  background: rgba(44,199,119,.08);
}

.selected-add-card img {
  width: 46px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(16,32,51,.08);
}

.selected-add-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.selected-add-card strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.selected-add-card span,
.selected-add-card small {
  color: #496176;
  font-size: 11px;
  font-weight: 850;
}

.selected-add-card .btn {
  white-space: nowrap;
}

.selected-want-card {
  border-color: rgba(105,167,255,.38);
  background: rgba(105,167,255,.1);
}

.selected-want-card .pill {
  justify-self: end;
  white-space: nowrap;
}

.add-assistant #assistant-results {
  max-height: 560px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

label {
  display: grid;
  gap: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(16,32,51,.18);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--dark-ink);
  background: #fff;
}

textarea { min-height: 86px; resize: vertical; }

.image-picker {
  display: grid;
  gap: 8px;
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-section .image-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.image-actions .btn,
.image-actions .btn.secondary {
  color: #fff;
  background: #102033;
  border-color: #102033;
}

.photo-section .image-actions .btn {
  width: 100%;
}

.image-actions .btn:hover,
.image-actions .btn.secondary:hover {
  background: #1d3552;
  border-color: #1d3552;
}

.file-control {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.image-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(16,32,51,.24);
  border-radius: 8px;
  background: #eef4f8;
  color: #496176;
  font-size: 13px;
  font-weight: 700;
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 10px;
}

.add-form-actions {
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px;
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  background: rgba(241,245,249,.94);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.add-form-actions .btn {
  width: 100%;
}

.add-form-actions .btn.secondary {
  color: var(--dark-ink);
  background: rgba(16,32,51,.08);
  border-color: rgba(16,32,51,.18);
}

.dark input, .dark select, .dark textarea {
  color: var(--ink);
  background: #0a1728;
  border-color: var(--line);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.show-code-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.show-code-actions .btn {
  width: 100%;
}

.show-code-actions .btn.secondary {
  color: #fff;
  background: #233247;
  border-color: rgba(255,255,255,.16);
}

.show-code-actions .btn.secondary:hover {
  background: #2d405a;
}

.form-error {
  padding: 10px;
  border-radius: 8px;
  color: #5d160f;
  background: rgba(239,98,98,.18);
  font-size: 12px;
  font-weight: 900;
}

.binder-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.binder-actions .btn,
.binder-actions select {
  width: 100%;
  min-width: 0;
}

.binder-actions select {
  grid-column: 1 / -1;
}

.binder-home {
  display: grid;
  gap: 11px;
  padding-bottom: 86px;
}

.binder-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.binder-summary-stats span {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.binder-summary-stats strong,
.binder-summary-stats small {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.binder-summary-stats strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.binder-summary-stats small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.binder-home-head,
.recent-list-head,
.binder-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.binder-home-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.binder-home-head small {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.binder-home-head h2,
.recent-list-head h3,
.binder-grid-head h3 {
  margin: 2px 0 0;
}

.collection-selector-panel {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(14, 31, 50, .88);
}

.collection-selector-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.collection-selector-panel label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.collection-selector-panel select {
  min-height: 38px;
  margin-top: 3px;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

.collection-selector-summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.collection-selector-summary strong,
.collection-selector-summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-selector-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.collection-compact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.collection-compact-stats span {
  min-width: 0;
  padding: 5px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
}

.collection-compact-stats strong,
.collection-compact-stats small {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-compact-stats strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.collection-compact-stats small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.collection-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(36,199,119,.12);
  font-size: 14px;
  font-weight: 950;
}

.collection-tile strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-tile small {
  color: var(--ink);
  font-weight: 950;
}

.binder-search-drawer {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}

.binder-search-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 950;
}

.binder-search-drawer summary::-webkit-details-marker {
  display: none;
}

.binder-search-drawer[open] {
  padding: 0 10px 10px;
}

.binder-search-drawer[open] summary {
  padding: 10px 2px;
}

.binder-search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
}

.binder-search-strip .toolbar {
  display: block;
  margin: 0;
}

.binder-direct-search {
  display: block;
}

.binder-direct-search input {
  min-height: 40px;
  border-color: rgba(36,199,119,.35);
  background: rgba(255,255,255,.08);
}

.binder-search-strip .binder-filter-details {
  min-width: 108px;
}

.binder-search-strip .binder-filter-details summary {
  min-height: 40px;
}

.toolbar-embedded {
  margin: 0;
}

.recent-items {
  display: grid;
  gap: 9px;
}

.recent-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  text-align: left;
}

.recent-item img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: contain;
  background: #dfe9f4;
}

.recent-item strong,
.recent-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-item strong {
  font-size: 13px;
  white-space: nowrap;
}

.recent-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.recent-item em {
  color: #f7d35f;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.text-link {
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 950;
}

.view-toggle.compact {
  min-width: 112px;
}

.binder-add-button {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 35;
  width: 52px;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0,0,0,.32);
  font-size: 24px;
  line-height: 1;
}

.add-collection-modal {
  max-width: 520px;
}

.add-collection-modal .row-between {
  align-items: flex-start;
}

.add-collection-modal h3 {
  margin-bottom: 4px;
}

.add-collection-modal .btn.secondary {
  color: #102033;
  background: rgba(16,32,51,.08);
  border-color: rgba(16,32,51,.12);
}

.collection-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 16px;
}

.collection-picker-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--dark-ink);
  background: var(--panel);
  text-align: left;
}

.collection-picker-option .collection-icon {
  width: 36px;
  height: 36px;
}

.collection-picker-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.collection-picker-copy strong,
.collection-picker-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-picker-copy strong {
  font-size: 14px;
  line-height: 1.18;
}

.collection-picker-copy small {
  color: #496176;
  font-size: 12px;
  line-height: 1.28;
  white-space: normal;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: #061a11;
  font-weight: 800;
  background: var(--green);
  text-align: center;
}

.btn:hover { background: var(--green-2); }
.btn.secondary { color: var(--ink); background: rgba(255,255,255,.11); border: 1px solid var(--line); }
.btn.ghost { color: var(--green); background: transparent; border: 1px solid rgba(36,199,119,.4); }
.btn.danger { color: #fff; background: var(--red); }
.btn.selected { color: #062015; background: var(--green); border-color: var(--green); }
.btn.edit-btn { color: #fff; background: #233247; border: 1px solid rgba(255,255,255,.14); }
.btn.edit-btn:hover { background: #2d405a; }
.btn.small { min-height: 32px; padding: 6px 9px; font-size: 12px; }
.btn.full { width: 100%; }

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

.stat {
  min-height: 92px;
  padding: 13px;
  border-radius: 8px;
  color: var(--dark-ink);
  background: var(--panel);
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  letter-spacing: 0;
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 10px 0 12px;
  align-items: start;
}

.trade-market-page {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
}

.trade-discovery-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(96, 196, 127, .13), rgba(18, 34, 53, .94));
}

.trade-discovery-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.trade-discovery-head span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.trade-discovery-head h2 {
  margin: 2px 0;
  font-size: 22px;
}

.trade-discovery-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trade-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.trade-action-card {
  min-width: 0;
  min-height: 74px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: rgba(255,255,255,.07);
}

.trade-action-card.primary {
  color: #061324;
  background: var(--green);
}

.trade-action-card.muted {
  background: rgba(255,255,255,.05);
}

.trade-action-card.active {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28);
}

.trade-action-card strong,
.trade-action-card span {
  display: block;
}

.trade-action-card strong {
  font-size: 13px;
  font-weight: 950;
}

.trade-action-card span {
  margin-top: 4px;
  color: inherit;
  opacity: .78;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
}

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

.trade-status-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.trade-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-actions {
  gap: 6px;
}

.status-pill {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.08);
  font-size: 10px;
  font-weight: 950;
}

.status-pill.active {
  color: #061a11;
  background: var(--green);
}

.trade-opportunity-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.trade-opportunity-row div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.trade-opportunity-row strong,
.trade-opportunity-row small {
  display: block;
}

.trade-opportunity-row strong {
  margin-top: 5px;
  font-size: 13px;
}

.trade-opportunity-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

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

  .trade-action-grid {
    grid-template-columns: 1fr;
  }

  .trade-status-grid {
    grid-template-columns: 1fr;
  }

  .trade-action-card {
    min-height: 58px;
  }
}

.wants-live-page {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
}

.wants-live-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.wants-live-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.wants-live-head h2 {
  margin: 2px 0 0;
  font-size: 30px;
  line-height: 1;
}

.wants-live-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.wants-live-head .btn {
  min-height: 42px;
  padding-inline: 13px;
  white-space: nowrap;
}

.wants-live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.wants-live-stats span {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.wants-live-stats strong,
.wants-live-stats small {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.wants-live-stats strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.wants-live-stats small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.wants-live-search input {
  min-height: 40px;
  border-color: rgba(36,199,119,.28);
  background: rgba(255,255,255,.07);
}

.card-grid.wants-live-list {
  grid-template-columns: 1fr;
  gap: 9px;
}

.want-live-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 128px;
  color: var(--dark-ink);
  background: var(--panel);
}

.want-live-art {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 8px;
  border-radius: 8px 0 0 8px;
  background: #dfe9f4;
}

.want-live-art img {
  width: 100%;
  height: 100%;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.22));
}

.want-live-body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 9px;
}

.want-live-body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.12;
}

.want-live-priority {
  color: #06321f;
  font-size: 11px;
  font-weight: 950;
}

.want-match-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.want-match-indicators span,
.want-match-empty {
  min-height: 21px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #062015;
  background: rgba(36,199,119,.18);
  font-size: 10px;
  font-weight: 950;
}

.want-match-indicators span:nth-child(2) {
  background: rgba(105,167,255,.24);
}

.want-match-indicators span:nth-child(3) {
  background: rgba(242,184,75,.34);
}

.want-match-empty {
  display: inline-flex;
  width: fit-content;
  color: #496176;
  background: rgba(16,32,51,.08);
}

.want-live-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.want-live-action-row small {
  overflow: hidden;
  color: #496176;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.want-live-action-row .btn {
  min-width: 106px;
  white-space: nowrap;
}

.trade-market-head {
  display: grid;
  gap: 10px;
}

.trade-market-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.trade-market-head h2 {
  margin: 2px 0 0;
  font-size: 31px;
  line-height: 1;
}

.trade-market-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.trade-market-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.trade-market-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.trade-market-tabs button.active {
  color: #062015;
  background: var(--green);
}

.trade-market-search input {
  min-height: 43px;
  border-color: rgba(36,199,119,.35);
  background: rgba(255,255,255,.08);
}

.trade-market-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.trade-market-sort select {
  min-height: 43px;
  color: var(--ink);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}

.trade-market-filters {
  min-width: 118px;
}

.trade-market-filters summary {
  min-height: 43px;
}

.trade-market-grid {
  gap: 9px;
}

.trade-market-grid .card-tile {
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.trade-market-grid .card-art {
  min-height: 112px;
  padding: 6px;
}

.trade-market-grid .card-art img {
  max-height: 112px;
}

.trade-market-grid .card-body {
  padding: 8px;
}

.trade-market-grid .card-body h3 {
  margin-bottom: 3px;
  font-size: 14px;
}

.trade-market-grid .card-body .muted {
  display: none;
}

.trade-market-grid .card-title-line strong {
  font-size: 13px;
}

.trade-market-grid .card-trade-indicators {
  margin-top: 5px;
}

.trade-market-grid .card-trade-indicators span {
  min-height: 20px;
  padding: 3px 6px;
  font-size: 9px;
}

.trade-market-grid .card-tile-badges {
  gap: 5px;
  margin-top: 5px;
}

.trade-market-grid .card-tile-badges .pill {
  min-height: 20px;
  padding: 3px 6px;
  font-size: 9px;
}

.trade-market-grid .card-tile-badges .pill:nth-child(n+3) {
  display: inline-flex;
}

.binder-visibility {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.binder-visibility p {
  margin: 5px 0 0;
}

.trade-shelf {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.trade-shelf h3 {
  margin: 0 0 4px;
}

.trade-shelf p {
  margin: 0;
}

.row-between.trade-shelf-head {
  display: grid;
  gap: 10px;
  align-items: flex-start;
}

.trade-shelf-head .btn {
  width: 100%;
  white-space: nowrap;
}

.trade-shelf-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.trade-shelf-stats div {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.trade-shelf-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.trade-shelf-stats strong {
  font-size: 20px;
}

.shelf-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 2px;
}

.shelf-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.shelf-filter-row button,
.shelf-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  font-weight: 900;
}

.shelf-filter-row button {
  min-width: 0;
}

.shelf-chip {
  flex: 0 0 auto;
}

.shelf-filter-row button.active,
.shelf-chip.active {
  color: #052015;
  border-color: transparent;
  background: var(--green);
}

.shelf-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.shelf-preview {
  display: grid;
  gap: 8px;
}

.shelf-card {
  border: 1px solid rgba(36,199,119,.22);
}

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

.binder-filter-details {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}

.binder-filter-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 950;
}

.binder-filter-details summary::-webkit-details-marker {
  display: none;
}

.binder-filter-details[open] {
  padding: 10px;
}

.binder-filter-details[open] summary {
  padding: 0 0 10px;
}

.filter-field {
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.filter-field input,
.filter-field select {
  margin-top: 0;
}

.view-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  min-width: 132px;
}

.view-toggle button {
  flex: 1;
  border: 0;
  border-radius: 6px;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
}

.view-toggle button.active {
  color: #062015;
  background: var(--green);
  font-weight: 900;
}

.trade-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.trade-filter button {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}

.trade-filter button.active {
  color: #062015;
  background: var(--green);
}

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

.card-grid.list { grid-template-columns: 1fr; }
.card-grid.list .card-tile { grid-template-columns: 62px 1fr; display: grid; min-height: 82px; }
.card-grid.list .card-art { min-height: 82px; height: 100%; padding: 6px; }
.card-grid.list .card-art img { max-height: 76px; }
.card-grid.list .card-body { padding: 8px 40px 8px 9px; }
.card-grid.list .card-body .muted {
  -webkit-line-clamp: 1;
}
.card-grid.list .card-tile-badges,
.card-grid.list .card-trade-indicators {
  margin-top: 5px;
}

.card-grid .card-tile[hidden] {
  display: none !important;
}

.card-tile {
  position: relative;
  overflow: visible;
  border-radius: 8px;
  color: var(--dark-ink);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease;
}

.card-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(36,199,119,.42);
}

.card-art {
  position: relative;
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px 8px 0 0;
  background: var(--art-bg, #dfe9f4);
}

.card-art img {
  width: 100%;
  height: 100%;
  max-height: 154px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.24));
}

.photo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  border-radius: 6px;
  padding: 5px 7px;
  color: #062015;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.card-body { padding: 9px; }
.card-body h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.16; }
.card-body .muted {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }

.card-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.card-title-line strong {
  color: #06321f;
  font-size: 13px;
  white-space: nowrap;
}

.card-trade-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.card-trade-indicators span {
  min-height: 21px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #062015;
  background: rgba(36,199,119,.18);
  font-size: 10px;
  font-weight: 950;
}

.card-trade-indicators span:last-child {
  background: rgba(242,184,75,.32);
}

.card-actions-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

.card-actions-menu summary {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #071524;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
  cursor: pointer;
  font-weight: 950;
  line-height: 1;
  list-style: none;
}

.card-actions-menu summary::-webkit-details-marker {
  display: none;
}

.card-actions-menu div {
  position: absolute;
  bottom: 40px;
  right: 0;
  display: grid;
  min-width: 168px;
  padding: 6px;
  border: 1px solid rgba(16,32,51,.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0,0,0,.24);
}

.card-actions-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--dark-ink);
  background: transparent;
  text-align: left;
  font-weight: 900;
}

.card-actions-menu button:hover {
  background: rgba(36,199,119,.12);
}

.card-tile-badges .pill:nth-child(n+3) {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #102033;
  background: var(--panel-2);
}
.pill.green { color: #052015; background: rgba(36,199,119,.28); }
.pill.amber { background: rgba(242,184,75,.35); }
.pill.blue { background: rgba(105,167,255,.28); }
.pill.soft { color: #20364c; background: rgba(16,32,51,.08); }
.pill-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

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

.activity, .offer, .user-row, .match-card {
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: var(--dark-ink);
}

.dark .activity, .dark .offer, .dark .user-row, .dark .match-card {
  color: var(--ink);
  background: rgba(255,255,255,.07);
  border-color: var(--line);
}

.muted-card {
  opacity: .72;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #061a11;
  font-weight: 900;
  background: var(--green);
}

.avatar-button {
  border: 0;
  padding: 0;
}

.avatar-button:hover {
  background: var(--green-2);
}

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

.trader-tools {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.show-meta {
  display: grid;
  gap: 7px;
  margin: 8px 0;
}

.show-meta.compact {
  grid-template-columns: 1fr;
}

.show-meta div,
.safety-note {
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.show-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.show-meta strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.show-privacy-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.show-privacy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.show-share-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  font-weight: 900;
  text-align: left;
}

.show-share-toggle.on {
  color: #061a11;
  background: rgba(36,199,119,.86);
  border-color: rgba(36,199,119,.9);
}

.toggle-track {
  width: 44px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.16);
}

.toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.24);
  transition: transform .16s ease;
}

.show-share-toggle.on .toggle-track {
  background: rgba(6,26,17,.22);
  border-color: rgba(6,26,17,.18);
}

.show-share-toggle.on .toggle-thumb {
  transform: translateX(18px);
}

.show-current-panel {
  order: -1;
}

.joined-show-panel {
  padding: 12px;
}

.joined-show-panel h3 {
  margin-bottom: 8px;
}

.compact-show-meta {
  grid-template-columns: 1fr;
}

.show-quick-share {
  display: grid;
  gap: 6px;
}

.show-quick-share > .pill {
  justify-self: start;
}

.show-details {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}

.show-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 950;
}

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

.show-details[open] {
  padding: 11px;
}

.show-details[open] summary {
  padding: 0 0 10px;
}

.show-switch-details {
  padding: 0;
  overflow: hidden;
}

.show-switch-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 12px;
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.show-switch-details summary::-webkit-details-marker {
  display: none;
}

.show-switch-details[open] {
  padding: 12px;
}

.show-switch-details[open] summary {
  min-height: auto;
  padding: 0 0 10px;
}

.show-switch-details .form {
  gap: 8px;
}

.show-switch-details .portable-note {
  margin-top: 8px;
  padding: 8px;
}

.show-tabs {
  position: sticky;
  top: 73px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7,17,31,.94);
  backdrop-filter: blur(14px);
}

.show-tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 44px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 900;
}

.show-tab span {
  color: var(--ink);
  font-size: 12px;
}

.show-tab.active {
  color: #061a11;
  background: var(--green);
  border-color: var(--green);
}

.show-tab.active span {
  color: #061a11;
}

.show-overview-grid {
  display: grid;
  gap: 12px;
}

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

.show-glance button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  text-align: left;
}

.show-glance span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.show-glance strong {
  font-size: 22px;
}

.show-card-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.show-card-identity strong,
.show-card-identity span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-card-identity span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.show-card-thumb {
  width: 38px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
}

.show-card-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.show-trader-name {
  color: var(--ink);
  font-weight: 950;
}

.show-trade-context {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(36,199,119,.26);
  border-radius: 8px;
  background: rgba(36,199,119,.1);
}

.show-trade-context p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.show-match-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.show-match-filter-details {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}

.show-match-filter-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 11px;
  cursor: pointer;
  list-style: none;
  font-weight: 950;
}

.show-match-filter-details summary::-webkit-details-marker {
  display: none;
}

.show-match-filter-details[open] {
  padding: 11px;
}

.show-match-filter-details[open] summary {
  padding: 0 0 10px;
}

.show-match-controls label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.show-match-controls select {
  min-height: 38px;
  color: var(--ink);
  background: #0a1728;
  border-color: var(--line);
}

.show-filter-footer {
  display: grid;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.show-filter-footer .btn {
  width: 100%;
}

.safety-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.safety-note.compact {
  padding: 8px;
}

.safety-note.compact p {
  font-size: 12px;
}

.show-focus {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(105,167,255,.14);
}

.show-focus span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.show-match-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.show-match-panel-head h3 {
  margin: 0;
}

.match-count-badge {
  display: grid;
  grid-template-columns: auto minmax(0, min-content);
  align-items: center;
  gap: 7px;
  min-width: 118px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #071427;
  background: #60c47f;
  box-shadow: 0 0 0 4px rgba(96,196,127,.14);
}

.match-count-badge strong {
  font-size: 22px;
  line-height: 1;
}

.match-count-badge span {
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.show-action-header {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(96,196,127,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(96,196,127,.24);
}

.show-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.show-title-line h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 24px;
}

.compact-show-details {
  position: relative;
}

.compact-show-details summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-weight: 950;
}

.compact-show-details summary::-webkit-details-marker {
  display: none;
}

.show-detail-popover {
  position: absolute;
  right: 0;
  z-index: 4;
  display: grid;
  gap: 8px;
  width: min(280px, calc(100vw - 34px));
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071427;
  box-shadow: var(--shadow);
}

.show-detail-popover div {
  display: grid;
  gap: 2px;
}

.show-detail-popover span,
.show-live-copy,
.trading-mode-card p,
.best-match-hero p,
.best-trader-row span,
.show-opportunity-top span,
.show-opportunity-copy span,
.show-opportunity-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.show-live-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.show-live-copy span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.trading-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.trading-mode-card div {
  display: grid;
  gap: 3px;
}

.best-match-hero {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border-color: rgba(96,196,127,.46);
  background:
    radial-gradient(circle at top right, rgba(96,196,127,.24), transparent 42%),
    linear-gradient(180deg, rgba(96,196,127,.12), rgba(255,255,255,.04));
}

.best-match-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 3px solid #60c47f;
}

.best-match-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.best-match-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #071427;
  background: #60c47f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.best-match-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 82px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: #071427;
  background: #60c47f;
  box-shadow: 0 0 0 5px rgba(96,196,127,.14);
}

.best-match-score strong {
  font-size: 32px;
  line-height: .9;
}

.best-match-score small {
  font-size: 12px;
  font-weight: 950;
}

.best-trader-row,
.show-opportunity-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.show-trader-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #071427;
  background: #60c47f;
  font-weight: 950;
}

.best-match-hero .show-trader-avatar {
  width: 50px;
  height: 50px;
}

.best-trader-row h3 {
  margin: 0 0 3px;
  font-size: 22px;
}

.best-match-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.best-match-status span {
  color: var(--ink);
  font-weight: 950;
}

.best-match-status strong {
  color: #60c47f;
  font-size: 12px;
  text-transform: uppercase;
}

.best-match-cards {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.best-match-cards div {
  padding: 9px;
  border-radius: 8px;
  background: rgba(7,20,39,.72);
  border: 1px solid rgba(255,255,255,.12);
}

.best-match-cards .opportunity-card-line {
  grid-template-columns: 48px minmax(0, 1fr);
}

.best-match-cards .opportunity-card-line img,
.best-match-cards .opportunity-card-placeholder {
  width: 48px;
  height: 66px;
}

.best-match-cards .opportunity-card-line strong {
  font-size: 16px;
}

.best-match-cards span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-score {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #071427;
  background: #60c47f;
  font-weight: 950;
}

.show-opportunity-card {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.show-opportunity-card.high-priority-match {
  border-color: rgba(96,196,127,.38);
  background: rgba(96,196,127,.1);
}

.show-opportunity-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.show-opportunity-copy,
.show-opportunity-card-lines {
  display: grid;
  gap: 3px;
}

.show-opportunity-card-lines {
  gap: 7px;
}

.show-opportunity-card-lines div {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.opportunity-card-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "image label"
    "image value";
  gap: 2px 9px;
  align-items: center;
}

.opportunity-card-line img,
.opportunity-card-placeholder {
  grid-area: image;
  width: 38px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
}

.opportunity-card-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.show-opportunity-card-lines span {
  grid-area: label;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.show-opportunity-card-lines strong {
  grid-area: value;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.compact-lines {
  gap: 0;
}

.show-match-groups {
  display: grid;
  gap: 12px;
}

.show-match-group {
  display: grid;
  gap: 8px;
}

.show-match-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 1px;
}

.show-match-group-head strong {
  font-size: 13px;
}

.match-mini-count {
  padding: 6px 9px;
  border-radius: 999px;
  color: #071427;
  background: rgba(96,196,127,.92);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.show-match {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.show-match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.show-match-lines {
  display: grid;
  gap: 6px;
}

.show-match-lines div {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.show-match-lines div.has-match {
  border: 1px solid rgba(36,199,119,.28);
  background: rgba(36,199,119,.1);
}

.show-match-lines span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.show-match-lines strong {
  font-size: 13px;
  line-height: 1.25;
}

.show-match-actions {
  display: grid;
  gap: 8px;
}

.show-match-actions > .btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reverse-show-match {
  border-color: rgba(105,167,255,.24);
}

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

.trader-card {
  align-items: flex-start;
}

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

.trader-actions {
  display: grid;
  gap: 8px;
}

.trader-snippets {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: #496176;
  font-size: 12px;
  font-weight: 700;
}

.name-link, .name-sublink {
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
}

.name-link {
  color: var(--dark-ink);
  font-weight: 900;
}

.name-sublink {
  display: block;
  margin-top: 4px;
}

.dark .name-link {
  color: var(--ink);
}

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

.profile-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.account-menu-panel .profile-heading {
  align-items: center;
}

.account-menu-panel .profile-heading h2,
.account-menu-panel .profile-heading p {
  text-align: left;
}

.account-menu-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.profile-market-stats span {
  min-width: 0;
  padding: 8px 7px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.profile-market-stats strong,
.profile-market-stats small {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-market-stats strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.profile-market-stats small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.account-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.account-menu-list button {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.07);
  text-align: left;
}

.account-menu-list button strong {
  font-size: 13px;
  line-height: 1.15;
}

.account-menu-list button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.18;
}

.profile-section-stack {
  display: grid;
  gap: 8px;
}

.profile-section {
  padding: 0;
  overflow: hidden;
}

.profile-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.profile-section summary::-webkit-details-marker {
  display: none;
}

.profile-section summary span,
.profile-section summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-section summary span {
  color: var(--dark-ink);
  font-size: 14px;
  font-weight: 950;
}

.dark.profile-section summary span,
.profile-section.dark summary span {
  color: var(--ink);
}

.profile-section summary strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.profile-section[open] {
  padding: 12px;
}

.profile-section[open] summary {
  min-height: 0;
  padding: 0 0 10px;
}

.profile-section > .form,
.profile-section > p,
.profile-section > .data-portability-actions,
.profile-section > .public-share-summary {
  margin-top: 0;
}

.profile-section .phase-services,
.profile-section .phase-status,
.profile-section .phase-map {
  margin-top: 8px;
}

.account-menu-list button.danger-menu-item {
  border-color: rgba(239,98,98,.42);
  background: rgba(239,98,98,.1);
}

.account-menu-list button.danger-menu-item strong {
  color: #ffd2d2;
}

.profile-logout-button {
  min-height: 46px;
  border: 1px solid rgba(239,98,98,.42);
  border-radius: 8px;
  color: #ffd2d2;
  background: rgba(239,98,98,.1);
  font-weight: 950;
}

.trader-profile {
  margin: 14px 0;
}

.trader-profile h4 {
  margin: 10px 0 8px;
  color: var(--muted);
}

.mini-stats {
  margin: 12px 0;
}

.mini-stats .stat {
  min-height: 72px;
}

.mini-stats .stat strong {
  font-size: 20px;
}

.trader-detail-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.public-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.public-hero h2 {
  margin: 8px 0 4px;
  font-size: 30px;
}

.public-hero-stats,
.proposal-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.public-hero-stats div,
.proposal-summary {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.public-hero-stats span,
.proposal-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.public-hero-stats strong,
.proposal-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.public-binder-layout {
  display: grid;
  gap: 14px;
}

.public-card-list,
.proposal-mini-list {
  display: grid;
  gap: 8px;
}

.public-card {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  text-align: left;
}

.public-card.selected {
  color: #062015;
  background: var(--green);
  border-color: var(--green);
}

.public-card > img {
  width: 52px;
  height: 62px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
}

.public-card small,
.public-card em {
  color: inherit;
  opacity: .76;
  font-size: 12px;
  font-weight: 800;
}

.want-card {
  grid-template-columns: 1fr;
}

.proposal-columns {
  grid-template-columns: 1fr 1fr;
  margin: 12px 0;
}

.proposal-mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(16,32,51,.06);
  font-weight: 800;
}

.public-confirm {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.public-confirm h2 {
  margin: 0;
  font-size: 30px;
}

.confirm-columns {
  margin: 0;
}

.trade-score {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 8px;
  color: #061a11;
  background: var(--green);
  font-weight: 900;
}

.trade-inbox-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.trade-inbox-summary .stat {
  min-height: 78px;
}

.trade-inbox-summary .needs-response {
  border-color: rgba(242,184,75,.55);
  background: rgba(242,184,75,.16);
}

.response-panel {
  margin-bottom: 14px;
  border-color: rgba(242,184,75,.45);
}

.offers-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.offers-title h2 {
  margin: 0;
}

.offer-inbox-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.offer-inbox-tabs button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.offer-inbox-tabs button.active {
  color: #062015;
  background: var(--green);
}

.offer-inbox-tabs span,
.offer-inbox-tabs strong {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-inbox-tabs span {
  font-size: 11px;
}

.offer-inbox-tabs strong {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  min-height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255,255,255,.14);
  font-size: 11px;
}

.offer-inbox-list {
  display: grid;
  gap: 8px;
}

.offer-inbox-copy {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.offer-accordion {
  display: grid;
  gap: 10px;
}

.offer-section {
  padding: 0;
  overflow: hidden;
}

.offer-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 950;
}

.offer-section summary::-webkit-details-marker {
  display: none;
}

.offer-section summary strong {
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #052015;
  background: var(--green);
}

.offer-section[open] {
  padding: 12px;
}

.offer-section[open] summary {
  padding: 0 0 8px;
}

.offer-section-copy {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.show-offer-accordion {
  margin-top: 10px;
}

.show-offer-section {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.offer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.trade-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0;
}

.offer .trade-columns {
  align-items: start;
}

.compact-offer {
  padding: 10px;
}

.receipt-offer {
  display: grid;
  gap: 12px;
}

.receipt-offer.needs-response {
  border-color: rgba(242,184,75,.72);
  box-shadow: inset 4px 0 0 rgba(242,184,75,.86);
}

.compact-inbox-offer {
  gap: 6px;
  padding: 8px;
  color: var(--ink);
  border-color: rgba(255,255,255,.13);
  background: rgba(16,32,51,.72);
}

.compact-offer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px;
  align-items: center;
}

.compact-status,
.compact-score,
.compact-offer-top time {
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-status,
.compact-score {
  min-width: 0;
}

.compact-status {
  color: #392603;
  background: rgba(242,184,75,.32);
}

.compact-status.done,
.compact-score.excellent {
  color: #bdfbd7;
  background: rgba(36,199,119,.24);
}

.compact-status.stopped,
.compact-score.weak {
  color: #ffd2d2;
  background: rgba(255,101,101,.24);
}

.compact-score.fair {
  color: #ffe4a3;
  background: rgba(242,184,75,.3);
}

.compact-offer-top time {
  color: var(--muted);
  background: rgba(255,255,255,.07);
  font-size: 9px;
}

.compact-offer-title h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.14;
}

.compact-offer-title p {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.compact-offer-title p span {
  color: var(--green);
}

.compact-offer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.compact-offer-summary div {
  min-width: 0;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.compact-offer-summary span,
.compact-progress span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.compact-offer-summary strong,
.compact-progress strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.compact-offer-summary strong.positive {
  color: var(--green);
}

.compact-offer-summary strong.negative {
  color: #f7d35f;
}

.compact-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  background: rgba(105,167,255,.12);
}

.compact-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.compact-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.compact-progress-labels {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 8px;
}

.compact-progress-labels span:last-child {
  text-align: right;
}

.compact-offer-details {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.compact-offer-details summary {
  min-height: 30px;
  padding: 7px 10px;
  cursor: pointer;
  list-style: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.compact-offer-details summary::-webkit-details-marker,
.more-actions-menu summary::-webkit-details-marker {
  display: none;
}

.compact-offer-details[open] {
  padding-bottom: 8px;
}

.compact-why {
  display: grid;
  gap: 7px;
  padding: 0 10px 8px;
}

.compact-why > strong {
  font-size: 13px;
}

.compact-why div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.compact-why span {
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #052015;
  background: rgba(36,199,119,.18);
  font-size: 10px;
  font-weight: 900;
}

.compact-offer-details .receipt-columns,
.compact-offer-details .safety-note {
  margin: 0 8px 8px;
}

.compact-offer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.compact-offer-actions > .btn {
  min-height: 34px;
}

.more-actions-menu {
  position: relative;
}

.more-actions-menu summary {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.more-actions-menu div {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 8;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: #172436;
  box-shadow: 0 18px 30px rgba(0,0,0,.3);
}

.more-actions-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 900;
}

.more-actions-menu button:hover {
  background: rgba(255,255,255,.08);
}

.trade-receipt-modal {
  color: var(--dark-ink);
}

.trade-receipt-modal .trade-review {
  margin-top: 14px;
}

.trade-impact {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(242,184,75,.5);
  border-radius: 8px;
  background: rgba(242,184,75,.14);
}

.trade-impact p {
  margin: 6px 0 0;
  color: #496176;
  font-size: 13px;
  font-weight: 800;
}

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

.receipt-head h3 {
  margin: 5px 0 3px;
  font-size: 17px;
}

.receipt-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.receipt-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: #102033;
  background: rgba(255,255,255,.72);
  font-weight: 900;
}

.receipt-status.needs-you {
  background: rgba(242,184,75,.8);
}

.receipt-status.waiting {
  color: var(--ink);
  background: rgba(105,167,255,.24);
}

.receipt-status.done {
  background: rgba(36,199,119,.82);
}

.receipt-status.stopped {
  color: #fff;
  background: rgba(232,76,76,.72);
}

.receipt-columns {
  display: grid;
  gap: 10px;
}

.receipt-money {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.receipt-money span {
  color: var(--muted);
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-actions .btn {
  flex: 1 1 140px;
}

.mini-card {
  min-height: 58px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(16,32,51,.08);
}

.mini-card-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mini-card-row strong,
.mini-card-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card-row small {
  margin-top: 3px;
  color: var(--muted);
}

.mini-card-thumb {
  width: 32px;
  height: 44px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
}

.mini-card-button {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.mini-card-button:hover {
  outline: 1px solid rgba(36,199,119,.48);
}

.dark .mini-card { background: rgba(255,255,255,.08); }

.mini-card.wanted-match {
  border: 1px solid rgba(36,199,119,.62);
  background: rgba(36,199,119,.14);
}

.match-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #052015;
  background: rgba(36,199,119,.82);
  font-weight: 900;
}

.show-offer-confirmation {
  border-color: rgba(36,199,119,.42);
  background: rgba(36,199,119,.12);
}

.show-offer-confirmation h3 {
  margin: 8px 0 4px;
}

.show-offer-confirmation p {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 750;
}

.show-offer-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.show-offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.show-offer-top .pill-stack {
  justify-content: flex-start;
}

.show-offer-details {
  display: grid;
  gap: 6px;
}

.show-offer-details div {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.show-offer-details span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.show-offer-details strong {
  font-size: 13px;
  line-height: 1.25;
}

.show-offer-meetup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.show-offer-meetup label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.show-offer-meetup select {
  min-width: 0;
  min-height: 36px;
}

.compact-offer-copy {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.show-match.offer-sent {
  border-color: rgba(242,184,75,.5);
}

.cash-suggestion {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(242,184,75,.55);
  border-radius: 8px;
  color: #2f2107;
  background: rgba(242,184,75,.35);
  font-size: 13px;
  font-weight: 800;
}

.dark .cash-suggestion {
  color: var(--ink);
  background: rgba(242,184,75,.18);
}

.builder {
  margin-top: 14px;
}

.builder-head {
  align-items: flex-start;
}

.builder-head p {
  max-width: 520px;
}

.builder h4 {
  margin: 12px 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.builder-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.builder-steps div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.builder-steps span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #052015;
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.builder-steps strong {
  min-width: 0;
  font-size: 13px;
}

.builder-summary, .builder-zones, .builder-pools {
  display: grid;
  gap: 10px;
}

.builder-summary {
  grid-template-columns: 1fr;
  margin: 14px 0;
}

.builder-summary > div {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.builder-summary strong {
  font-size: 20px;
}

.builder-summary small {
  color: var(--muted);
  font-weight: 700;
}

.builder-drawer,
.builder-browse,
.trade-extra-tools {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.builder-drawer summary,
.builder-browse summary,
.trade-extra-tools summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 12px;
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.builder-drawer summary::-webkit-details-marker,
.builder-browse summary::-webkit-details-marker,
.trade-extra-tools summary::-webkit-details-marker {
  display: none;
}

.builder-drawer[open],
.builder-browse[open],
.trade-extra-tools[open] {
  padding: 12px;
}

.builder-drawer[open] summary,
.builder-browse[open] summary,
.trade-extra-tools[open] summary {
  padding: 0 0 10px;
}

.builder-browse {
  background: rgba(0,0,0,.08);
}

.builder-recommendations {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(36,199,119,.34);
  border-radius: 8px;
  background: rgba(36,199,119,.1);
}

.builder-recommendations p {
  margin: 4px 0 0;
}

.private-binder-suggestions {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(242,184,75,.34);
  border-radius: 8px;
  background: rgba(242,184,75,.1);
}

.private-binder-suggestions p {
  margin: 4px 0 0;
}

.recommendation-row {
  display: grid;
  gap: 8px;
}

.builder-selected, .builder-card-list {
  display: grid;
  gap: 8px;
}

.add-shelf {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.add-shelf-you {
  border-color: rgba(242,184,75,.52);
  background: rgba(242,184,75,.1);
}

.add-shelf-them {
  border-color: rgba(36,199,119,.56);
  background: rgba(36,199,119,.12);
}

.add-shelf-header {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.add-shelf-header span {
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #102033;
  background: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 900;
}

.add-shelf-header h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.add-shelf-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trade-side {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.trade-side.out {
  border-color: rgba(242,184,75,.42);
  background: rgba(242,184,75,.08);
}

.cash-offer-side {
  border-color: rgba(242,184,75,.45);
  background: rgba(242,184,75,.1);
}

.trade-side.in {
  border-color: rgba(36,199,119,.48);
  background: rgba(36,199,119,.1);
}

.trade-side-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.trade-side-header h4 {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 18px;
}

.trade-side-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trade-side-header > strong {
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 8px;
  color: #052015;
  background: var(--green);
  text-align: right;
}

.trade-side-header > strong span {
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  opacity: .72;
}

.side-label {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #102033;
  background: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 900;
}

.builder-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: rgba(255,255,255,.07);
}

.builder-card.sender {
  border-color: rgba(242,184,75,.3);
}

.builder-card.receiver {
  border-color: rgba(36,199,119,.34);
}

.builder-card.selected {
  border-color: rgba(36,199,119,.78);
  background: rgba(36,199,119,.15);
}

.builder-card.sender.selected {
  border-color: rgba(242,184,75,.88);
  background: rgba(242,184,75,.18);
}

.builder-card img {
  width: 54px;
  height: 66px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
}

.builder-card small, .selected-mini small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.card-badges em {
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #052015;
  background: rgba(36,199,119,.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.builder-card.sender .card-badges em:first-child {
  background: rgba(242,184,75,.78);
}

.trade-review {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.trade-review.ready {
  border-color: rgba(36,199,119,.52);
  background: rgba(36,199,119,.1);
}

.trade-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.trade-review-head h3 {
  margin: 5px 0 3px;
}

.trade-review-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-score {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 92px;
}

.review-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.review-score strong {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #052015;
  background: var(--green);
  font-size: 20px;
}

.review-columns {
  display: grid;
  gap: 10px;
}

.review-side {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 8px;
}

.review-out {
  border: 1px solid rgba(242,184,75,.45);
  background: rgba(242,184,75,.1);
}

.review-in {
  border: 1px solid rgba(36,199,119,.48);
  background: rgba(36,199,119,.12);
}

.review-side .row-between {
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.review-card-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 800;
}

.review-card-line > strong {
  grid-column: 2;
  justify-self: start;
  color: var(--green);
}

.review-card-line img {
  width: 34px;
  height: 44px;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(255,255,255,.12);
}

.review-card-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-card-line span strong {
  display: block;
}

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

.review-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  color: #102033;
  background: rgba(255,255,255,.72);
  font-weight: 900;
}

.selected-mini {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 1px solid rgba(36,199,119,.45);
  color: var(--ink);
  text-align: left;
}

.trade-side.out .selected-mini {
  border-color: rgba(242,184,75,.45);
}

.selected-thumb {
  display: grid;
  place-items: center;
  width: 38px;
  height: 48px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
}

.selected-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empty.compact {
  padding: 13px;
}

.builder-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: #0a1728;
  overflow: hidden;
}

.money-input > span {
  padding: 0 11px;
  color: var(--green);
  font-size: 16px;
  font-weight: 950;
}

.money-input input {
  min-height: 42px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: transparent;
}

.send-offer-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  font-weight: 900;
}

.send-offer-summary span {
  color: var(--muted);
}

.builder-actions .btn-row .btn,
.receipt-actions .btn,
.detail-actions .btn {
  min-height: 40px;
}

.counter-modal h4 {
  margin: 12px 0 8px;
  color: #496176;
}

.counter-columns {
  display: grid;
  gap: 12px;
}

.counter-form {
  margin-top: 12px;
}

.counter-form .wide {
  grid-column: 1 / -1;
}

.trade-preferences .wide {
  grid-column: 1 / -1;
}

.preference-help {
  padding: 10px 12px;
  border-radius: 8px;
  color: #496176;
  background: rgba(16,32,51,.08);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

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

.condition-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(16,32,51,.08);
}

.condition-checks input {
  width: auto;
  min-height: auto;
}

.qr-box {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(220px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #0c1828 10px, transparent 10px) 0 0 / 30px 30px,
    linear-gradient(#0c1828 10px, transparent 10px) 0 0 / 30px 30px,
    #fff;
  color: var(--dark-ink);
  font-weight: 900;
}

.public-binder-card {
  display: grid;
  gap: 12px;
}

.public-share-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.public-share-summary div {
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(16,32,51,.08);
}

.public-share-summary span {
  color: #496176;
  font-size: 11px;
  font-weight: 900;
}

.public-share-summary strong {
  color: var(--dark-ink);
  font-size: 18px;
}

.qr-print-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px;
  border: 1px solid rgba(16,32,51,.14);
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.qr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-ink);
}

.qr-brand span {
  display: block;
  color: #496176;
  font-size: 12px;
}

.share-qr {
  width: min(190px, 100%);
  padding: 12px;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px rgba(16,32,51,.18);
}

.fake-qr {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.fake-qr span {
  border-radius: 2px;
  background: transparent;
}

.fake-qr span.on {
  background: #102033;
}

.qr-print-card h4 {
  margin: 0;
  color: var(--dark-ink);
  font-size: 18px;
}

.qr-print-card p {
  margin: 0;
  color: #496176;
}

.share-url {
  color: var(--dark-ink);
  font-size: 13px;
  word-break: break-word;
}

.copy-link {
  display: grid;
  gap: 8px;
}

.public-link-box {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  background: rgba(16,32,51,.06);
}

.public-link-box label {
  color: #496176;
  font-size: 12px;
  font-weight: 900;
}

.share-preview {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 8px;
  background: rgba(36,199,119,.1);
}

.share-preview strong {
  color: var(--dark-ink);
}

.phase-status {
  display: grid;
  gap: 12px;
}

.phase-services {
  display: grid;
  gap: 12px;
}

.service-grid {
  display: grid;
  gap: 9px;
}

.service-row {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.service-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.service-row strong {
  color: var(--green);
  overflow-wrap: anywhere;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-grid {
  display: grid;
  gap: 7px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(16,32,51,.06);
  font-size: 13px;
  font-weight: 800;
}

.status-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-row strong {
  flex: 0 0 auto;
  min-width: 70px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
}

.status-row strong.green {
  color: #052015;
  background: rgba(36,199,119,.28);
}

.status-row strong.amber {
  color: #2f2107;
  background: rgba(242,184,75,.42);
}

.phase-map {
  display: grid;
  gap: 12px;
}

.phase-map-list {
  display: grid;
  gap: 9px;
}

.phase-map-row {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.phase-map-row strong {
  color: var(--ink);
}

.phase-map-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.phase-map-row span {
  color: var(--green);
}

.data-portability {
  display: grid;
  gap: 12px;
}

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

.import-btn {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.import-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.portable-note {
  padding: 10px;
  border-radius: 8px;
  color: #102033;
  background: rgba(242,184,75,.35);
  font-size: 12px;
  font-weight: 800;
}

.report-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.show-share-body {
  display: grid;
  place-items: center;
  padding: 18px;
}

.show-share-shell {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
}

.show-share-hero,
.show-share-details,
.show-share-safety {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.show-share-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 18px;
  text-align: center;
  background: rgba(241,245,249,.96);
  color: var(--dark-ink);
}

.show-share-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.show-share-hero p {
  max-width: 34rem;
  margin: 0;
  color: #496176;
  font-weight: 800;
}

.show-share-code {
  width: 100%;
  padding: 16px;
  border: 2px dashed rgba(16,32,51,.28);
  border-radius: 8px;
  color: #061a11;
  background: rgba(36,199,119,.2);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.show-qr-frame {
  width: min(320px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(16,32,51,.16);
}

.show-qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.show-share-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.show-share-actions .btn {
  width: 100%;
  text-decoration: none;
}

.show-share-actions .btn.secondary {
  color: #fff;
  background: #233247;
  border-color: rgba(16,32,51,.2);
}

.show-share-details,
.show-share-safety {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(10,23,40,.94);
}

.show-share-details div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.show-share-details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.show-share-details span,
.show-share-safety strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.show-share-details strong,
.show-share-safety p {
  margin: 0;
  color: var(--ink);
}

.organizer-shell {
  width: min(720px, 100%);
}

.organizer-hero {
  align-items: center;
  min-height: auto;
}

.organizer-request-panel,
.organizer-result {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(241,245,249,.96);
  color: var(--dark-ink);
  box-shadow: var(--shadow);
}

.organizer-form textarea {
  min-height: 96px;
}

.organizer-result h3,
.organizer-result p {
  margin: 0;
}

.organizer-result .public-link-box {
  color: var(--dark-ink);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media print {
  @page {
    margin: .45in;
  }

  body.show-share-body {
    display: block;
    min-height: auto;
    padding: 0;
    color: #102033;
    background: #fff;
  }

  .show-share-shell {
    width: 100%;
    max-width: none;
    gap: 16px;
  }

  .show-share-hero,
  .show-share-details,
  .show-share-safety {
    box-shadow: none;
    border-color: #c8d3df;
    break-inside: avoid;
  }

  .show-share-hero {
    min-height: 6.8in;
    justify-content: center;
    padding: .35in;
    background: #fff;
    color: #102033;
  }

  .show-share-hero .brand-mark {
    width: .72in;
    height: .72in;
    font-size: 20pt;
  }

  .show-share-hero .eyebrow {
    color: #496176;
    font-size: 11pt;
  }

  .show-share-hero h1 {
    font-size: 34pt;
  }

  .show-share-code {
    width: min(5.2in, 100%);
    padding: .18in;
    background: #eef8f2;
    border-color: #6fae88;
    font-size: 34pt;
  }

  .show-qr-frame {
    width: 3.9in;
    padding: .14in;
    border-color: #102033;
  }

  .show-share-actions {
    display: none;
  }

  .show-share-details,
  .show-share-safety {
    background: #fff;
    color: #102033;
  }

  .show-share-details {
    grid-template-columns: repeat(3, 1fr);
  }

  .show-share-details div {
    padding: 0;
    border-bottom: 0;
  }

  .show-share-details span,
  .show-share-safety strong {
    color: #496176;
  }

  .show-share-details strong,
  .show-share-safety p {
    color: #102033;
  }
}

.add-assistant {
  display: grid;
  gap: 12px;
}

.assistant-steps {
  display: grid;
  gap: 8px;
}

.assistant-steps div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.assistant-steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #052015;
  background: var(--green);
  font-weight: 900;
}

.assistant-steps strong {
  color: var(--ink);
}

.assistant-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assistant-result {
  display: grid;
  gap: 10px;
}

.assistant-result-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.assistant-result-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.assistant-result-head strong {
  overflow-wrap: anywhere;
}

.assistant-result-head span:not(.pill) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assistant-result-thumb {
  width: 46px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255,255,255,.12);
  box-shadow: 0 8px 14px rgba(0,0,0,.16);
}

.assistant-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.assistant-result-grid div {
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.assistant-result-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.review-field-list {
  display: grid;
  gap: 8px;
}

.review-field {
  grid-template-columns: auto .7fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
}

.review-field input {
  width: 18px;
  min-height: 18px;
}

.review-field span,
.review-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.review-field div {
  display: grid;
  gap: 3px;
}

.review-field strong {
  overflow-wrap: anywhere;
}

.import-paste {
  color: #496176;
  font-size: 12px;
  font-weight: 900;
}

.import-paste textarea,
.export-modal textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.export-modal {
  display: grid;
  gap: 12px;
}

.export-modal textarea {
  min-height: 260px;
}

.report-modal {
  display: grid;
  gap: 12px;
}

.report-modal textarea {
  min-height: 130px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(1180px, 100%);
  gap: 7px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7,17,31,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 900;
}

.nav-btn.active {
  color: #062015;
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(36,199,119,.16);
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.empty-state {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.06);
}

.empty-state.compact {
  padding: 13px;
}

.empty-state strong {
  font-size: 16px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel:not(.dark) .empty-state {
  color: var(--dark-ink);
  background: rgba(16,32,51,.05);
  border-color: rgba(16,32,51,.16);
}

.panel:not(.dark) .empty-state p {
  color: #496176;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  padding: 14px 10px calc(14px + env(safe-area-inset-bottom));
  background: rgba(3, 9, 18, .72);
  backdrop-filter: blur(10px);
}

.modal {
  width: min(760px, 100%);
  max-height: min(86dvh, 860px);
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.icon-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(16,32,51,.16);
  border-radius: 50%;
  color: #102033;
  background: rgba(16,32,51,.08);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.icon-close:hover {
  background: rgba(16,32,51,.14);
}

.card-detail {
  color: var(--dark-ink);
}

.detail-header h3 {
  margin-bottom: 2px;
  font-size: 22px;
}

.card-detail-layout {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

.detail-photo-panel {
  display: grid;
  gap: 8px;
  align-content: start;
}

.detail-art {
  position: relative;
  min-height: 154px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  background: #dfe9f4;
}

.detail-art img {
  width: 100%;
  max-height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.2));
}

.detail-photo-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.detail-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.card-detail-layout > .detail-record-section,
.card-detail-layout > .detail-more,
.card-detail-layout > .detail-assistant,
.card-detail-layout > .detail-notes {
  grid-column: 1 / -1;
}

.detail-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.detail-value {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(16,32,51,.08);
}

.detail-value span,
.detail-value small,
.detail-item span,
.detail-confidence span {
  color: #496176;
  font-size: 11px;
  font-weight: 800;
}

.detail-value strong {
  font-size: 24px;
}

.detail-confidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-confidence div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(36,199,119,.12);
}

.detail-confidence strong {
  font-size: 16px;
}

.detail-tags {
  margin-top: 0;
}

.detail-record-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  background: rgba(16,32,51,.04);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.detail-list {
  display: grid;
}

.detail-list-item {
  display: grid;
  grid-template-columns: minmax(124px, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid rgba(16,32,51,.1);
}

.detail-list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-list-item:last-child {
  padding-bottom: 0;
}

.detail-list-item span {
  color: #496176;
  font-size: 11px;
  font-weight: 900;
}

.detail-list-item strong {
  min-width: 0;
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-item {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(16,32,51,.06);
}

.detail-item strong {
  overflow-wrap: anywhere;
}

.detail-notes {
  padding: 12px;
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
}

.detail-notes p {
  margin-bottom: 0;
}

.detail-history {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  background: rgba(16,32,51,.05);
}

.detail-assistant {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(36,199,119,.28);
  border-radius: 8px;
  background: rgba(36,199,119,.08);
}

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

.history-item {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.68);
}

.history-item span {
  color: #496176;
  font-size: 11px;
  font-weight: 900;
}

.history-item p {
  margin: 0;
  color: #496176;
  font-size: 12px;
  font-weight: 800;
}

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

.detail-actions .btn {
  min-height: 36px;
  padding: 7px 9px;
}

.detail-actions .danger {
  grid-column: 1 / -1;
}

.detail-tool-actions {
  margin-bottom: 10px;
}

.detail-tool-actions .btn {
  min-height: 36px;
}

.detail-more {
  border: 1px solid rgba(16,32,51,.12);
  border-radius: 8px;
  background: rgba(16,32,51,.04);
  overflow: hidden;
}

.detail-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

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

.detail-more[open] {
  padding: 10px;
}

.detail-more[open] summary {
  padding: 0 0 8px;
}

.edit-form {
  margin-top: 12px;
}

.edit-form .wide {
  grid-column: 1 / -1;
}

.desktop-only { display: none; }

.beta-onboarding {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border-color: rgba(96,196,127,.35);
}

.beta-onboarding.compact {
  gap: 10px;
  padding: 12px;
}

.beta-onboarding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.beta-onboarding-head span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.beta-onboarding-head h3 {
  margin: 2px 0 0;
}

.beta-onboarding-head strong {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
  color: #071524;
  background: var(--green);
}

.beta-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.beta-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

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

.beta-checklist button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,.05);
  text-align: left;
}

.beta-checklist button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #071524;
  background: rgba(255,255,255,.55);
  font-weight: 950;
}

.beta-checklist button.done span,
.beta-checklist button.next span {
  background: var(--green);
}

.beta-checklist button.next {
  border-color: rgba(96,196,127,.7);
  background: rgba(96,196,127,.12);
}

.beta-checklist button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

@media (min-width: 720px) {
  .page { padding: 26px 22px calc(104px + env(safe-area-inset-bottom)); }
  .auth-grid, .dashboard-grid, .two-col { grid-template-columns: 1fr 1fr; }
  .show-current-panel { order: 0; }
  .trade-layout { grid-template-columns: 1.2fr .8fr; }
  .trade-columns { grid-template-columns: 1fr 1fr; }
  .trade-shelf-stats, .public-share-summary, .assistant-result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-card-line { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .review-card-line > strong { grid-column: auto; justify-self: end; }
  .builder-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .builder-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recommendation-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-columns { grid-template-columns: 1fr 1fr; }
  .receipt-columns { grid-template-columns: 1fr 1fr; }
  .builder-zones, .builder-pools { grid-template-columns: 1fr 1fr; }
  .builder-actions { grid-template-columns: .8fr .8fr auto; align-items: end; }
  .builder-actions.show-offer-actions { grid-template-columns: 1fr .8fr .8fr auto; }
  .counter-columns, .counter-form { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .quick-actions { grid-template-columns: repeat(5, 1fr); }
  .toolbar { grid-template-columns: minmax(260px, 1fr) auto; align-items: start; }
  .binder-actions {
    display: flex;
  }
  .binder-actions .btn,
  .binder-actions select {
    width: auto;
  }
  .binder-actions select {
    grid-column: auto;
  }
  .row-between.trade-shelf-head {
    display: flex;
  }
  .trade-shelf-head .btn {
    width: auto;
  }
  .shelf-filter-row {
    display: flex;
    overflow-x: auto;
  }
  .shelf-filter-row button {
    flex: 0 0 auto;
  }
  .binder-visibility { grid-template-columns: 1fr 180px; align-items: center; }
  .trader-tools { grid-template-columns: 1fr 220px; align-items: center; }
  .show-match-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .show-filter-footer { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .show-filter-footer .btn { width: auto; }
  .show-offer-details { grid-template-columns: 1fr 1fr; }
  .show-offer-meetup { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .show-overview-grid { grid-template-columns: 1fr 1fr; }
  .trader-detail-grid { grid-template-columns: 1fr 1fr; }
  .public-hero { grid-template-columns: 1fr 440px; align-items: center; }
  .public-binder-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .trade-inbox-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .modal-backdrop { align-items: center; }
  .edit-form { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .photo-section .image-actions { grid-template-columns: 1fr 1fr; }
  .add-form-actions {
    position: static;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .card-detail-layout { grid-template-columns: 220px 1fr; }
  .detail-art { min-height: 260px; padding: 14px; }
  .detail-art img { max-height: 300px; }
  .detail-photo-meta { grid-template-columns: 1fr 1fr; }
  .detail-summary { grid-template-columns: 1.1fr .9fr; }
  .trade-preferences { grid-template-columns: 1fr 1fr; }
  .copy-link { grid-template-columns: 1fr auto; }
  .trade-filter {
    display: flex;
    overflow-x: auto;
  }
  .trade-filter button {
    flex: 0 0 auto;
    padding: 7px 10px;
    white-space: nowrap;
  }
  .bottom-nav { max-width: 720px; border-radius: 12px 12px 0 0; }
  .desktop-only { display: inline-flex; }
}

@media print {
  body.printing-binder * {
    visibility: hidden;
  }

  body.printing-binder [data-print-card],
  body.printing-binder [data-print-card] * {
    visibility: visible;
  }

  body.printing-binder [data-print-card] {
    position: fixed;
    inset: 0;
    width: 4in;
    height: 6in;
    margin: auto;
    border: 2px solid #102033;
    box-shadow: none;
  }
}
