    @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

    :root {
      --bg: #f6f8fc;
      --panel: rgba(255, 255, 255, 0.96);
      --panel-2: rgba(255, 255, 255, 0.99);
      --panel-3: rgba(248, 250, 252, 0.98);
      --text: #243041;
      --muted: #6b7280;
      --line: rgba(148, 163, 184, 0.22);
      --line-strong: rgba(148, 163, 184, 0.36);
      --green: #22c55e;
      --green-dark: #15803d;
      --gold: #d4af37;
      --gold-soft: #a67c10;
      --gold-deep: #8f6a12;
      --navy-soft: #edf2f7;
      --navy-mid: #d9e2ec;
      --ivory: #ffffff;
      --red: #ef4444;
      --blue: #38bdf8;
      --orange: #f97316;
      --yellow: #facc15;
      --shadow-deep: 0 18px 48px rgba(15, 23, 42, 0.08);
      --shadow-gold: 0 14px 30px rgba(212, 175, 55, 0.12);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Manrope', Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(212,175,55,0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(212,175,55,0.08), transparent 24%),
        linear-gradient(rgba(6,16,29,0.9), rgba(4,10,20,0.97)),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
      min-height: 100vh;
      overflow-x: hidden;
    }

    button, input, select, textarea { font: inherit; }
    a { color: inherit; text-decoration: none; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(7,14,27,0.96), rgba(7,14,27,0.88));
      backdrop-filter: blur(14px);
      box-shadow: 0 16px 40px rgba(0,0,0,0.22);
    }

    .topbar-inner {
      width: min(1320px, 94%);
      margin: 0 auto;
      padding: 16px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

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

    .brand-logo {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      border: 1px solid rgba(242,223,152,0.18);
      background: linear-gradient(180deg, rgba(9,18,32,0.98), rgba(9,18,32,0.9));
      box-shadow: var(--shadow-gold);
      object-fit: cover;
    }

    .brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .brand-title { font-weight: 800; font-size: 1.35rem; line-height: 1.05; }
    .brand-title span { color: var(--gold); }
    .brand small {
      font-size: 0.72rem;
      font-weight: 600;
      color: #d0c6ad;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .top-actions-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      margin-left: auto;
    }

    .top-actions {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .broker-access-inline {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .top-cta {
      color: var(--gold-soft);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-align: right;
    }

    .top-cta.hidden { display: none; }
    .hidden { display: none !important; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid transparent;
      border-radius: 12px;
      padding: 10px 14px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
      font-weight: 700;
    }

    .btn:hover { transform: translateY(-1px); }
    .btn-primary {
      background: linear-gradient(135deg, #f0de9b, var(--gold) 45%, #9e7415 100%);
      color: #111827;
      border-color: rgba(242,223,152,0.35);
      box-shadow: 0 12px 30px rgba(143,106,18,0.28);
    }
    .btn-secondary {
      background: linear-gradient(180deg, rgba(16,28,46,0.92), rgba(9,18,32,0.95));
      border: 1px solid rgba(212,175,55,0.18);
      color: var(--text);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }
    .btn-green {
      background: linear-gradient(90deg, var(--green-dark), var(--green));
      color: white;
      border-color: transparent;
    }
    .btn-danger { background: rgba(127, 29, 29, 0.88); color: white; }
    .btn-tiny { padding: 8px 11px; border-radius: 10px; font-size: 0.84rem; }

    .menu-toggle {
      min-width: 122px;
      padding-inline: 14px;
    }

    .menu-toggle-lines { display: inline-flex; flex-direction: column; gap: 4px; }
    .menu-toggle-lines span { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; }

    .layout {
      width: min(1320px, 94%);
      margin: 12px auto 24px;
      display: block;
    }

    .sidebar,
    .content-panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: var(--shadow-deep);
      backdrop-filter: blur(10px);
    }

    .sidebar {
      position: fixed;
      top: 92px;
      right: 22px;
      width: min(360px, calc(100vw - 28px));
      max-height: calc(100vh - 112px);
      overflow-y: auto;
      padding: 22px;
      z-index: 1600;
      transform: translateX(calc(100% + 26px));
      opacity: 0;
      pointer-events: none;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .sidebar.open {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
    }

    .sidebar-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
    .sidebar-text { color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
    .menu { display: grid; gap: 10px; }
    .menu-btn { width: 100%; justify-content: flex-start; }
    .menu-btn.active {
      background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(143,106,18,0.2));
      border-color: rgba(212,175,55,0.34);
      color: var(--gold-soft);
    }

    .menu-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(5, 10, 18, 0.5);
      backdrop-filter: blur(3px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
      z-index: 1500;
    }
    .menu-backdrop.active { opacity: 1; pointer-events: auto; }

    .hero-box {
      padding: 28px;
      border-bottom: 1px solid var(--line);
      background:
        linear-gradient(rgba(7,14,27,0.72), rgba(7,14,27,0.9)),
        url('https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=1600&q=80') center/cover;
    }

    .hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(242,223,152,0.24);
      background: rgba(11, 21, 36, 0.72);
      color: var(--gold-soft);
      font-size: 0.76rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 14px;
    }

    .hero-box h1 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(2.2rem, 4vw, 4rem);
      line-height: 0.95;
      margin-bottom: 12px;
    }

    .hero-box p {
      max-width: 860px;
      color: #e8dcc0;
      line-height: 1.7;
      font-size: 1rem;
    }

    .hero-actions-label {
      margin-top: 20px;
      margin-bottom: 12px;
      font-size: 0.9rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--gold-soft);
    }

    .hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
    .hero-action-btn.primary-start {
      background: linear-gradient(135deg, #f0de9b, var(--gold) 45%, #9e7415 100%);
      color: #111827;
      border-color: rgba(242,223,152,0.35);
    }

    .system-banner {
      display: none;
      margin: 14px 16px 0;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(15,23,42,0.7);
      line-height: 1.5;
    }
    .system-banner.active { display: block; }
    .system-banner.error {
      background: rgba(69,10,10,0.24);
      border-color: rgba(239,68,68,0.32);
      color: #fecaca;
    }
    .system-banner.success {
      background: rgba(9,49,26,0.24);
      border-color: rgba(34,197,94,0.32);
      color: #bbf7d0;
    }

    .search-hub {
      margin: 14px 16px 0;
      padding: 18px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(11,21,36,0.94), rgba(11,21,36,0.82));
      box-shadow: var(--shadow-gold);
    }

    .search-copy h3 {
      font-size: 1.08rem;
      margin-bottom: 6px;
    }

    .search-copy p {
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 14px;
    }

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

    .search-bar input {
      min-height: 48px;
      border-radius: 14px;
      border: 1px solid rgba(212,175,55,0.18);
      background: rgba(9,18,32,0.86);
      color: var(--text);
      padding: 0 14px;
    }

    .search-suggestions {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .search-suggestions.hidden { display: none !important; }

    .suggestion-chip {
      width: 100%;
      justify-content: flex-start;
      background: rgba(9,18,32,0.82);
      border-color: rgba(212,175,55,0.14);
      text-align: left;
    }

    .section { display: none; padding: 18px 16px 22px; }
    .section.active { display: block; }

    .page-head h2 { font-size: 2rem; margin-bottom: 6px; }
    .page-head p { color: var(--muted); line-height: 1.55; }
    .page-use {
      margin-top: 16px;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid var(--line-strong);
      background: rgba(15,23,42,0.62);
      color: #e8dcc0;
      line-height: 1.6;
    }

    .grid-2, .grid-3, .stats { display: grid; gap: 14px; }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-top: 16px;
    }

    .card, .stat-card, .listing-card {
      background: var(--panel-2);
      border: 1px solid var(--line);
      border-radius: 18px;
    }
    .card, .listing-card { padding: 16px; }
    .stat-card { padding: 14px; }
    .listing-card.distress-card {
      background:
        linear-gradient(180deg, rgba(58,16,16,0.18), rgba(13,24,42,0.97)),
        var(--panel-2);
      border-color: rgba(212,175,55,0.3);
      box-shadow: 0 20px 40px rgba(143,106,18,0.16);
    }
    .stat-card small {
      display: block;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.72rem;
      margin-bottom: 8px;
    }
    .stat-card strong { font-size: 1.9rem; }

    .listing-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 16px;
    }

    .listing-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .listing-title h3 { font-size: 1.08rem; margin-bottom: 6px; }
    .muted { color: var(--muted); line-height: 1.55; }
    .badges, .actions { display: flex; flex-wrap: wrap; gap: 8px; }

    .badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 4px 10px;
      border: 1px solid transparent;
      font-size: 0.75rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .badge-blue { background: rgba(56,189,248,0.14); border-color: rgba(56,189,248,0.28); color: #93c5fd; }
    .badge-green { background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.28); color: #bbf7d0; }
    .badge-gold { background: rgba(212,175,55,0.14); border-color: rgba(212,175,55,0.28); color: var(--gold-soft); }
    .badge-red { background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.28); color: #fecaca; }
    .badge-orange { background: rgba(249,115,22,0.14); border-color: rgba(249,115,22,0.28); color: #fdba74; }
    .badge-hot {
      background: linear-gradient(135deg, rgba(212,175,55,0.24), rgba(249,115,22,0.22));
      border-color: rgba(212,175,55,0.38);
      color: #f9e7ad;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin: 12px 0;
    }

    .detail-cell {
      padding: 12px;
      border-radius: 14px;
      border: 1px solid rgba(212,175,55,0.1);
      background: rgba(9,18,32,0.7);
    }
    .detail-cell small {
      display: block;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.72rem;
      margin-bottom: 6px;
    }

    .empty {
      margin-top: 16px;
      padding: 18px;
      border-radius: 16px;
      border: 1px dashed rgba(212,175,55,0.18);
      color: var(--muted);
      text-align: center;
      background: rgba(9,18,32,0.5);
    }

    .auth-overlay, .popover {
      position: fixed;
      inset: 0;
      z-index: 1700;
      display: none;
    }
    #authModal.auth-overlay.active {
      display: grid !important;
      place-items: center !important;
      padding: 28px 20px !important;
      background:
        radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 34%),
        rgba(5,10,18,0.72) !important;
      backdrop-filter: blur(10px) !important;
    }

    #authModal .auth-card {
      position: relative;
      width: min(920px, 100%) !important;
      padding: 34px 34px 28px !important;
      border-radius: 34px !important;
      overflow: hidden !important;
      border: 1px solid rgba(212, 175, 55, 0.34) !important;
      background:
        radial-gradient(circle at top left, rgba(212,175,55,0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.86), rgba(249,245,237,0.96)) !important;
      box-shadow:
        0 32px 72px rgba(15, 23, 42, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.52) inset,
        0 0 36px rgba(212, 175, 55, 0.22) !important;
    }

    #authModal .auth-card::before {
      content: "";
      position: absolute;
      inset: 10px;
      border-radius: 28px;
      border: 1px solid rgba(212, 175, 55, 0.18);
      pointer-events: none;
    }

    #authModal .auth-close-btn {
      position: absolute;
      top: 22px;
      right: 22px;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.35rem;
      font-weight: 700;
      padding: 0;
      z-index: 2;
    }

    #authModal .auth-head {
      display: grid !important;
      justify-items: center;
      gap: 10px;
      margin-bottom: 20px;
      text-align: center;
      padding-inline: 40px;
    }

    #authModal .auth-head h3 {
      font-size: clamp(2rem, 3vw, 2.6rem);
      line-height: 1.1;
      letter-spacing: -0.02em;
    }

    #authModal .auth-divider {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      gap: 14px;
      color: var(--gold-deep);
    }

    #authModal .auth-divider span {
      width: 68px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(212,175,55,0.12), rgba(212,175,55,0.78), rgba(212,175,55,0.12));
    }

    #authModal .auth-divider i {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      font-style: normal;
      font-size: 0.9rem;
      line-height: 1;
    }

    #authModal .auth-tabs {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      width: min(330px, 100%) !important;
      margin: 0 auto 18px !important;
      padding: 6px !important;
      border-radius: 18px !important;
      background: rgba(255, 255, 255, 0.92) !important;
      border: 1px solid rgba(212,175,55,0.18) !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 10px 24px rgba(15, 23, 42, 0.06) !important;
    }

    #authModal .auth-tab {
      min-height: 50px !important;
      border: none !important;
      background: transparent !important;
      color: var(--text) !important;
      padding: 11px 18px !important;
      border-radius: 14px !important;
      font-weight: 800 !important;
      cursor: pointer !important;
      box-shadow: none !important;
    }

    #authModal .auth-tab.active {
      background: linear-gradient(135deg, #e0b34d, #b88718) !important;
      color: #ffffff !important;
      border-color: transparent !important;
      box-shadow: 0 12px 26px rgba(181, 138, 29, 0.24) !important;
    }

    #authModal .auth-copy,
    #authModal .auth-foot {
      color: var(--muted);
      line-height: 1.7;
    }

    #authModal .auth-copy {
      max-width: 620px;
      margin: 0 auto;
      text-align: center;
      font-size: 1.02rem;
    }

    #authModal .auth-status {
      display: none;
      margin: 18px auto 0 !important;
      padding: 12px 14px !important;
      border-radius: 16px !important;
      border: 1px solid var(--line) !important;
      max-width: 760px !important;
    }
    #authModal .auth-status.active { display: block; }
    #authModal .auth-status.error {
      background: rgba(69,10,10,0.24);
      border-color: rgba(239,68,68,0.32);
      color: #fecaca;
    }

    #authModal .auth-form-grid {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      margin-top: 22px !important;
      gap: 18px !important;
      align-items: start !important;
    }

    #authModal .auth-field-block {
      display: grid;
      gap: 10px !important;
      min-width: 0 !important;
    }

    #authModal .auth-field-block > label.small {
      color: var(--text);
      font-size: 0.98rem;
      font-weight: 800;
      letter-spacing: -0.01em;
    }

    #authModal .auth-input-shell {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      min-height: 58px !important;
      padding: 0 16px !important;
      border-radius: 16px !important;
      border: 1px solid rgba(148, 163, 184, 0.22);
      background: rgba(255,255,255,0.96);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.96),
        0 10px 24px rgba(15, 23, 42, 0.05);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    #authModal .auth-input-shell:focus-within {
      border-color: rgba(181, 138, 29, 0.38);
      box-shadow:
        0 0 0 4px rgba(181, 138, 29, 0.1),
        0 14px 28px rgba(181, 138, 29, 0.08);
      transform: translateY(-1px);
    }

    #authModal .auth-input-icon {
      flex: 0 0 30px !important;
      width: 30px !important;
      height: 30px !important;
      border-radius: 10px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      color: #b58a1d;
      background: rgba(181, 138, 29, 0.12);
      font-weight: 800;
      font-size: 0.9rem;
      letter-spacing: -0.02em;
    }

    #authModal .auth-input-shell input {
      min-width: 0;
      border: none !important;
      background: transparent !important;
      box-shadow: none !important;
      padding: 0 !important;
      min-height: 56px !important;
      width: 100% !important;
      color: var(--text) !important;
    }

    #authModal .auth-input-shell input:-webkit-autofill,
    #authModal .auth-input-shell input:-webkit-autofill:hover,
    #authModal .auth-input-shell input:-webkit-autofill:focus,
    #authModal .auth-input-shell input:-webkit-autofill:active {
      -webkit-text-fill-color: var(--text) !important;
      caret-color: var(--text) !important;
      box-shadow: 0 0 0 1000px rgba(255,255,255,0.98) inset !important;
      -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.98) inset !important;
      border-radius: 12px !important;
      transition: background-color 99999s ease-out 0s;
    }

    #authModal .auth-company-combobox {
      position: relative;
      display: grid;
      gap: 8px;
    }

    #authModal .auth-company-helper {
      font-size: 0.84rem;
      color: var(--muted);
      line-height: 1.5;
      padding-inline: 4px;
    }

    #authModal .auth-company-menu {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      right: 0;
      z-index: 1800;
      display: grid;
      gap: 4px;
      padding: 8px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: var(--panel-2);
      box-shadow: var(--shadow-deep);
      max-height: 220px;
      overflow-y: auto;
    }

    #authModal .auth-company-option {
      border: 0;
      background: transparent;
      border-radius: 12px;
      padding: 10px 12px;
      text-align: left;
      color: var(--text);
      cursor: pointer;
      font-weight: 600;
    }

    #authModal .auth-company-option:hover,
    #authModal .auth-company-option.is-active {
      background: rgba(212, 175, 55, 0.12);
      color: var(--gold-deep);
    }

    .protected-broker-contact {
      display: grid;
      gap: 10px;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid rgba(212, 175, 55, 0.18);
      background: rgba(15, 23, 42, 0.04);
    }

    .protected-broker-contact.is-compact {
      width: 100%;
      min-width: 220px;
      padding: 12px;
      gap: 8px;
    }

    .protected-broker-contact-copy {
      display: grid;
      gap: 4px;
    }

    .protected-broker-contact-copy strong {
      font-size: 0.98rem;
      color: var(--text);
    }

    .protected-broker-contact-copy span,
    .protected-broker-contact small {
      color: var(--muted);
      line-height: 1.45;
    }

    #authModal .auth-utility-row,
    #authModal .auth-submit-row,
    #authModal .auth-foot-secondary,
    #authModal .auth-trust-panel {
      grid-column: 1 / -1;
    }

    #authModal .auth-inline-link {
      border: none;
      background: transparent;
      color: var(--gold-soft);
      font-weight: 700;
      font-size: 0.94rem;
      cursor: pointer;
      padding: 0;
    }

    #authModal .auth-inline-link:hover {
      color: var(--gold-deep);
      text-decoration: underline;
    }

    #authModal .auth-foot-secondary {
      margin-top: 10px;
    }

    #authModal .auth-submit-row {
      margin-top: 6px !important;
    }

    #authModal #authSubmitBtn {
      width: 100% !important;
      min-height: 60px !important;
      border-radius: 18px !important;
      font-size: 1.12rem !important;
      font-weight: 800 !important;
      box-shadow: 0 16px 30px rgba(181, 138, 29, 0.24) !important;
    }

    #authModal #authSubmitBtn::after {
      content: "->";
      margin-left: 12px;
      font-weight: 700;
      letter-spacing: -0.04em;
    }

    #authModal #authSubmitBtn[data-loading="true"]::after {
      content: "";
      margin-left: 0;
    }

    #authModal .auth-trust-panel {
      display: grid !important;
      grid-template-columns: auto 1fr !important;
      align-items: center !important;
      gap: 16px !important;
      padding: 18px 20px !important;
      border-radius: 20px !important;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(255,255,255,0.72);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
      margin-top: 12px !important;
    }

    #authModal .auth-trust-icon {
      width: 52px;
      height: 52px;
      border-radius: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #b58a1d;
      border: 1px solid rgba(181, 138, 29, 0.22);
      background: rgba(181, 138, 29, 0.08);
      font-size: 1.15rem;
      font-weight: 800;
    }

    #authModal .auth-card[data-mode="signin"] #emailWrap,
    #authModal .auth-card[data-mode="signin"] #passwordWrap,
    #authModal .auth-card[data-mode="forgot"] #emailWrap {
      grid-column: 1 / -1;
    }

    #authModal #fullNameWrap[style*="display: none"],
    #authModal #companyWrap[style*="display: none"],
    #authModal #brokerIdWrap[style*="display: none"],
    #authModal #mobileWrap[style*="display: none"],
    #authModal #emailWrap[style*="display: none"],
    #authModal #passwordWrap[style*="display: none"],
    #authModal #confirmPasswordWrap[style*="display: none"],
    #authModal #forgotPasswordRow[style*="display: none"] {
      display: none !important;
    }

    @media (max-width: 768px) {
      #authModal.auth-overlay.active {
        padding: 18px 14px;
      }

      #authModal .auth-card {
        padding: 24px 20px 20px;
        border-radius: 28px;
      }

      #authModal .auth-close-btn {
        top: 16px;
        right: 16px;
        width: 46px;
        height: 46px;
      }

      #authModal .auth-head {
        padding-inline: 8px;
      }

      #authModal .auth-tabs {
        width: 100%;
      }

      #authModal .auth-divider span {
        width: 42px;
      }

      #authModal .auth-trust-panel {
        grid-template-columns: 1fr;
        justify-items: start;
      }
    }

    .popover {
      display: none;
      pointer-events: none;
    }

    .popover.active { display: block; }

    .floating-card {
      position: absolute;
      min-width: 270px;
      max-width: 320px;
      background: #ffffff;
      border: 1px solid #E5E7EB;
      border-radius: 16px;
      box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
      padding: 14px;
      pointer-events: auto;
    }

    .floating-card h4 { font-size: 0.88rem; margin-bottom: 6px; }
    .floating-card .small { font-size: 0.74rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.08em; }
    .floating-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .floating-row {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: space-between;
    }
    .floating-value { font-weight: 800; color: #0f172a; word-break: break-word; }
    .copy-icon-btn {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      border: 1px solid #E5E7EB;
      background: #F8FAFC;
      color: #475569;
      cursor: pointer;
      flex: 0 0 auto;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }
    .copy-icon-btn:hover {
      background: #EEF2F7;
      border-color: #CBD5E1;
      color: #0F172A;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }
    .floating-close-btn {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      border: 1px solid #E5E7EB;
      background: #FFFFFF;
      color: #64748B;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      line-height: 1;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }
    .floating-close-btn:hover {
      background: #F8FAFC;
      border-color: #CBD5E1;
      color: #0F172A;
    }
    .copy-icon {
      position: relative;
      display: inline-block;
      width: 14px;
      height: 14px;
    }
    .copy-icon::before,
    .copy-icon::after {
      content: "";
      position: absolute;
      border: 1.8px solid currentColor;
      border-radius: 3px;
      width: 10px;
      height: 10px;
    }
    .copy-icon::before { top: 2px; left: 2px; opacity: 0.7; }
    .copy-icon::after { top: 0; left: 0; background: transparent; }

    .topbar-inner.public-topbar {
      width: min(1400px, 95%);
      display: grid;
      grid-template-columns: auto minmax(260px, 380px) auto;
      align-items: center;
      gap: 16px;
    }

    .top-search-inline {
      min-width: 0;
      width: 100%;
      position: relative;
    }

    .search-hub.compact-top-search {
      margin: 0;
      padding: 0;
      border: none;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      position: relative;
      width: 100%;
    }

    .search-hub.compact-top-search .search-copy {
      display: none;
    }

    .search-hub.compact-top-search .search-bar {
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 8px;
      align-items: center;
    }

    .search-hub.compact-top-search .search-field-wrap {
      position: relative;
      min-width: 0;
    }

    .search-hub.compact-top-search .search-field-wrap::before {
      content: "";
      position: absolute;
      left: 14px;
      top: 50%;
      width: 16px;
      height: 16px;
      transform: translateY(-50%);
      border: 2px solid rgba(242, 223, 152, 0.65);
      border-radius: 999px;
      opacity: 0.85;
      pointer-events: none;
    }

    .search-hub.compact-top-search .search-field-wrap::after {
      content: "";
      position: absolute;
      left: 28px;
      top: calc(50% + 5px);
      width: 8px;
      height: 2px;
      transform: rotate(45deg);
      background: rgba(242, 223, 152, 0.65);
      border-radius: 999px;
      pointer-events: none;
    }

    .search-hub.compact-top-search .search-bar input {
      min-height: 42px;
      height: 42px;
      padding: 0 16px 0 42px;
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(11,21,36,0.96), rgba(9,18,32,0.92));
      border: 1px solid rgba(212,175,55,0.18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
      font-size: 0.95rem;
    }

    .search-hub.compact-top-search .btn {
      min-height: 40px;
      padding: 0 12px;
      border-radius: 11px;
      font-size: 0.88rem;
    }

    .search-hub.compact-top-search .btn-secondary {
      min-width: 40px;
      padding-inline: 10px;
    }

    .search-hub.compact-top-search .search-suggestions {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      width: 100%;
      z-index: 1100;
      padding: 10px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(11,21,36,0.98), rgba(9,18,32,0.96));
      box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
    }

    .top-actions-wrap {
      margin-left: 0;
      gap: 8px;
    }

    .page-nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 40px;
      padding: 0 12px;
      border-radius: 999px;
      font-size: 0.88rem;
    }

    .activity-brokers-indicator {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
      flex: 0 0 auto;
    }

    .top-actions .btn:not(.page-nav-btn):not(.menu-toggle) {
      min-height: 38px;
      padding-inline: 12px;
      font-size: 0.82rem;
    }

    .page-nav-btn.is-active {
      background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(143,106,18,0.24));
      border-color: rgba(242,223,152,0.26);
      color: var(--gold-soft);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }

    .hero-box.compact-public-hero {
      padding: 18px 24px;
      display: grid;
      gap: 10px;
    }

    .hero-box.compact-public-hero h1 {
      font-size: clamp(1.9rem, 3vw, 2.8rem);
      margin-bottom: 2px;
    }

    .hero-box.compact-public-hero p {
      max-width: 760px;
      font-size: 0.92rem;
      line-height: 1.5;
    }

    .hero-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .section-switch-btn {
      min-height: 38px;
      padding: 0 14px;
      border-radius: 999px;
    }

    .section-switch-btn .tab-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 24px;
      padding: 0 7px;
      min-height: 24px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.24);
      background: rgba(255,255,255,0.78);
      color: var(--text-soft);
      font-size: 0.72rem;
      font-weight: 800;
      line-height: 1;
    }

    .section-switch-btn.is-active {
      background: linear-gradient(135deg, #f0de9b, var(--gold) 45%, #9e7415 100%);
      color: #111827;
      border-color: rgba(242,223,152,0.35);
      box-shadow: 0 12px 28px rgba(143,106,18,0.24);
    }

    .section-switch-btn.is-active .tab-count {
      background: rgba(17, 24, 39, 0.08);
      border-color: rgba(17, 24, 39, 0.12);
      color: #111827;
    }

    .page-head.compact-head h2 {
      font-size: 1.34rem;
      margin-bottom: 3px;
    }

    .page-head.compact-head p {
      max-width: 640px;
      font-size: 0.84rem;
    }

    .public-sheet {
      margin-top: 10px;
      display: grid;
      gap: 10px;
    }

    .public-sheet-head,
    .public-row {
      display: grid;
      grid-template-columns: 74px minmax(180px, 1.5fr) repeat(5, minmax(110px, 1fr)) auto;
      gap: 10px;
      align-items: center;
      padding: 12px 14px;
      border-radius: 16px;
    }

    .public-sheet-head {
      border: 1px solid rgba(212,175,55,0.1);
      background: rgba(9, 18, 32, 0.62);
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .public-row {
      border: 1px solid rgba(212,175,55,0.1);
      background: linear-gradient(180deg, rgba(13,24,42,0.88), rgba(9,18,32,0.92));
      transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    }

    .public-row:hover {
      border-color: rgba(212,175,55,0.24);
      transform: translateY(-1px);
      box-shadow: 0 16px 28px rgba(0,0,0,0.18);
    }

    .public-row.is-distress {
      background:
        linear-gradient(180deg, rgba(61,18,18,0.2), rgba(13,24,42,0.94)),
        rgba(13,24,42,0.94);
      border-color: rgba(212,175,55,0.26);
    }

    .sheet-col {
      min-width: 0;
      display: grid;
      gap: 4px;
    }

    .sheet-label {
      display: none;
      color: var(--muted);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .sheet-primary {
      color: var(--text);
      font-size: 0.92rem;
      font-weight: 700;
      line-height: 1.35;
      word-break: break-word;
    }

    .sheet-secondary {
      color: var(--muted);
      font-size: 0.78rem;
      line-height: 1.35;
    }

    .sheet-index {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 34px;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      background: #f8fafc;
      color: #334155;
      font-weight: 700;
      font-size: 0.78rem;
    }

    .row-badge-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .row-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
    }

    .action-icon-btn {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 1px solid rgba(212,175,55,0.18);
      background: linear-gradient(180deg, rgba(14,27,47,0.96), rgba(8,18,32,0.98));
      color: var(--text);
      cursor: pointer;
      transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
      font-weight: 800;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
      position: relative;
      overflow: hidden;
    }

    .action-icon-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(212,175,55,0.32);
      background: linear-gradient(180deg, rgba(18,33,58,1), rgba(10,20,36,1));
      box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    }

    .action-icon-btn svg {
      width: 15px;
      height: 15px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.85;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .action-icon-btn.success {
      color: #bbf7d0;
      border-color: rgba(34,197,94,0.26);
      background: linear-gradient(180deg, rgba(12,43,28,0.94), rgba(8,26,20,0.98));
    }

    .action-icon-btn.share {
      color: var(--gold-soft);
    }

    .action-icon-btn.match {
      color: #d9e4ff;
      border-color: rgba(96,165,250,0.22);
    }

    .action-icon-btn.call {
      color: #dbeafe;
      border-color: rgba(96,165,250,0.2);
    }

    .pager {
      margin-top: 12px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      color: var(--muted);
      font-size: 0.82rem;
    }

    .pager.hidden {
      display: none !important;
    }

    /* Light theme overrides */
    body {
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 22%),
        linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 48%, #eef3f8 100%);
    }

    .topbar,
    .sidebar,
    .content-panel,
    .floating-card,
    .auth-modal,
    .search-hub,
    .sheet-wrap,
    .listing-card,
    .section-switch,
    .page-head,
    .status-bar,
    .metric-pill {
      background: var(--panel) !important;
      color: var(--text);
      border-color: var(--line) !important;
      box-shadow: var(--shadow-deep);
    }

    .topbar {
      background: rgba(255, 255, 255, 0.88) !important;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .brand-logo,
    .auth-tabs,
    .floating-card .small-pill,
    .sheet-cell {
      background: linear-gradient(180deg, #ffffff, #f3f6fb) !important;
      border-color: rgba(148, 163, 184, 0.22) !important;
      color: var(--text);
    }

    .brand small,
    .top-cta,
    .sidebar-text,
    .page-head p,
    .muted,
    .detail-cell small,
    .sheet-label,
    .floating-card .small,
    .pager,
    .auth-copy,
    .auth-foot {
      color: var(--muted) !important;
    }

    .hero-box,
    .hero-box.compact-public-hero {
      background:
        linear-gradient(rgba(255,255,255,0.86), rgba(248,250,252,0.94)),
        url('https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=1600&q=80') center/cover !important;
      border-bottom-color: var(--line) !important;
    }

    .hero-kicker {
      background: rgba(255,255,255,0.84) !important;
      color: var(--gold-deep) !important;
      border-color: rgba(212, 175, 55, 0.28) !important;
    }

    input,
    select,
    textarea {
      background: #ffffff !important;
      color: var(--text) !important;
      border-color: rgba(148, 163, 184, 0.26) !important;
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    }

    input::placeholder,
    textarea::placeholder {
      color: #9aa4b2;
    }

    .btn-secondary,
    .menu-btn,
    .page-switch-btn,
    .auth-tab,
    .suggestion-chip,
    .action-icon-btn {
      background: linear-gradient(180deg, #ffffff, #f4f7fb) !important;
      color: var(--text) !important;
      border-color: rgba(148, 163, 184, 0.24) !important;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

    .btn-secondary:hover,
    .menu-btn:hover,
    .page-switch-btn:hover,
    .auth-tab:hover,
    .suggestion-chip:hover,
    .action-icon-btn:hover {
      background: #eef4fb !important;
      border-color: rgba(100, 116, 139, 0.28) !important;
    }

    .menu-btn.active,
    .page-switch-btn.is-active,
    .auth-tab.active {
      background: linear-gradient(135deg, rgba(212,175,55,0.14), rgba(212,175,55,0.22)) !important;
      color: var(--gold-deep) !important;
      border-color: rgba(212,175,55,0.32) !important;
    }

    .public-row,
    .metric,
    .listing-card,
    .helper,
    .empty,
    .top-metric {
      background: rgba(255,255,255,0.9) !important;
      border-color: var(--line) !important;
      color: var(--text) !important;
    }

    .menu-backdrop {
      background: rgba(148, 163, 184, 0.18) !important;
    }

    .status.error,
    .auth-status.error {
      background: #fef2f2 !important;
      color: #b91c1c !important;
      border-color: rgba(239, 68, 68, 0.22) !important;
    }

    .status.success,
    .auth-status.success {
      background: #f0fdf4 !important;
      color: #166534 !important;
      border-color: rgba(34, 197, 94, 0.22) !important;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .topbar-inner {
      padding: 14px 0 12px;
      gap: 18px;
    }

    .brand-title {
      font-size: 1.4rem;
      letter-spacing: -0.02em;
    }

    .brand small {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.14em;
    }

    .top-actions {
      gap: 10px;
    }

    .btn {
      min-height: 42px;
      padding: 10px 16px;
      border-radius: 14px;
      font-size: 0.9rem;
      font-weight: 700;
    }

    .btn-primary {
      box-shadow: 0 10px 24px rgba(212, 175, 55, 0.18);
    }

    .btn-secondary {
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

    .hero-box,
    .hero-box.compact-public-hero {
      padding: 24px 28px;
      border-radius: 22px 22px 0 0;
    }

    .hero-box h1,
    .hero-box.compact-public-hero h1 {
      font-size: clamp(2rem, 3.4vw, 3rem);
      letter-spacing: -0.03em;
      color: #17202c;
    }

    .hero-box p,
    .hero-box.compact-public-hero p {
      max-width: 720px;
      font-size: 0.97rem;
      line-height: 1.6;
      color: #5f6b7a;
    }

    .hero-kicker {
      padding: 6px 12px;
      font-size: 0.7rem;
      letter-spacing: 0.14em;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    }

    .search-hub,
    .search-hub.compact-top-search {
      padding: 16px 18px;
      border-radius: 20px;
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    }

    .search-hub.compact-top-search .search-field-wrap {
      border-radius: 14px;
      border-width: 1px;
    }

    .search-hub.compact-top-search .search-bar input {
      font-size: 0.95rem;
      padding-left: 42px;
    }

    .search-hub.compact-top-search .search-field-wrap::before {
      left: 14px;
      opacity: 0.78;
    }

    .search-hub.compact-top-search .search-suggestions {
      border-radius: 16px;
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    }

    .page-head {
      padding: 18px 22px;
      border-radius: 20px;
    }

    .page-head h2,
    .page-head.compact-head h2 {
      font-size: 1.55rem;
      letter-spacing: -0.025em;
      color: #182230;
    }

    .page-head p,
    .page-head.compact-head p {
      font-size: 0.92rem;
      line-height: 1.55;
      max-width: 820px;
    }

    .public-row {
      min-height: 78px;
      padding: 12px 14px;
      border-radius: 16px;
      border-width: 1px;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
    }

    .public-row:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    }

    .sheet-col {
      gap: 4px;
    }

    .sheet-primary {
      font-size: 0.92rem;
      font-weight: 700;
      color: #1f2937;
    }

    .sheet-secondary {
      font-size: 0.8rem;
      line-height: 1.45;
      color: #677385;
    }

    .row-actions {
      gap: 10px;
    }

    .badge {
      padding: 5px 10px;
      border-radius: 999px;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      border-width: 1px;
    }

    .floating-card,
    .auth-modal {
      border-radius: 20px;
      box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
    }

    .floating-card h4,
    .auth-title {
      color: #1b2532;
      letter-spacing: -0.02em;
    }

    @media (max-width: 1380px) and (min-width: 1181px) {
      .connector-results-shell {
        grid-template-columns: minmax(0, 1fr) 360px;
      }
    }

    @media (max-width: 1180px) {
      .topbar-inner.public-topbar {
        grid-template-columns: 1fr;
      }

      .top-actions-wrap {
        width: 100%;
        align-items: stretch;
      }

      .top-actions {
        justify-content: flex-start;
      }

      .broker-access-inline {
        justify-content: flex-start;
      }

      .connector-toolbar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .connector-results-shell {
        grid-template-columns: 1fr;
      }

      .connector-detail-panel {
        position: static;
      }

      .public-sheet {
        min-width: 0;
      }

      .public-sheet-head {
        display: none;
      }

      .public-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
      }

      .sheet-label {
        display: block;
      }

      .row-actions {
        justify-content: flex-start;
      }
    }

    @media (max-width: 980px) {
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .grid-2, .grid-3, .listing-grid, .detail-grid, .search-bar { grid-template-columns: 1fr; }
    }

    @media (max-width: 768px) {
      .topbar-inner { align-items: flex-start; }
      .top-actions-wrap { width: 100%; align-items: flex-start; }
      .hero-box { padding: 22px 18px; }
      .page-head h2 { font-size: 1.7rem; }
      .search-hub { margin-inline: 18px; }
      .hero-box.compact-public-hero { padding: 18px; }
      .public-row { grid-template-columns: 1fr; }
      .top-actions { justify-content: flex-start; }
      .connector-toolbar {
        margin-inline: 18px;
      }
      .connector-toolbar-grid,
      .connector-detail-grid {
        grid-template-columns: 1fr;
      }
      .sidebar {
        top: 78px;
        right: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 94px);
        border-radius: 18px;
        padding: 18px;
      }
    }

    /* CRM light-table polish */
    body {
      background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
      color: #1f2937;
    }

    .topbar {
      background: rgba(255, 255, 255, 0.94) !important;
      border-bottom-color: rgba(148, 163, 184, 0.18) !important;
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05) !important;
      backdrop-filter: blur(14px);
    }

    .brand-logo,
    .sidebar,
    .content-panel,
    .hero-box,
    .page-head,
    .search-hub,
    .floating-card,
    .auth-card,
    .detail-cell,
    .sheet-cell {
      background: #ffffff !important;
      border-color: rgba(148, 163, 184, 0.2) !important;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
    }

    .brand-logo {
      border-radius: 18px;
    }

    .brand-title,
    .hero-box h1,
    .page-head h2,
    .auth-title,
    .sidebar-title,
    .floating-card h4 {
      color: #18212f !important;
    }

    .brand small,
    .top-cta,
    .hero-box p,
    .page-head p,
    .sidebar-text,
    .muted,
    .detail-cell small,
    .sheet-label,
    .pager,
    .floating-card .small,
    .auth-copy,
    .auth-foot {
      color: #6b7280 !important;
    }

    .hero-box,
    .hero-box.compact-public-hero {
      background-image: none !important;
      background-color: #ffffff !important;
      border-bottom-color: rgba(148, 163, 184, 0.16) !important;
    }

    .hero-box.compact-public-hero.marketplace-hero {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(110deg, rgba(255,255,255,0.82) 0%, rgba(255,250,238,0.76) 42%, rgba(242,247,252,0.68) 100%),
        url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1800&q=80') center/cover !important;
      background-blend-mode: screen, normal;
      border-bottom-color: rgba(212, 175, 55, 0.18) !important;
    }

    .hero-box.compact-public-hero.marketplace-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.54) 38%, rgba(247,250,252,0.36) 100%),
        radial-gradient(circle at 82% 28%, rgba(212,175,55,0.22), transparent 22%),
        radial-gradient(circle at 88% 82%, rgba(21, 94, 117, 0.14), transparent 24%);
      pointer-events: none;
    }

    .hero-box.compact-public-hero.marketplace-hero > * {
      position: relative;
      z-index: 1;
    }

    .marketplace-hero-stage {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.72fr);
      gap: 24px;
      align-items: end;
      margin-bottom: 14px;
    }

    .marketplace-hero-copy {
      max-width: 760px;
    }

    .marketplace-hero-copy h1 {
      margin-bottom: 10px;
    }

    .marketplace-title-accent {
      background: linear-gradient(90deg, #17202f 0%, #1f3e68 22%, #0f7b6c 48%, #b58a1d 74%, #e1bb55 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent !important;
      text-shadow: 0 10px 32px rgba(181, 138, 29, 0.14);
    }

    .marketplace-hero-copy p {
      max-width: 640px;
    }

    .marketplace-hero-art {
      position: relative;
      min-height: 170px;
      align-self: stretch;
      border-radius: 24px;
      border: 1px solid rgba(212, 175, 55, 0.22);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,250,252,0.5)),
        linear-gradient(145deg, rgba(212,175,55,0.14), rgba(10,27,52,0.04));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.78),
        0 18px 36px rgba(15, 23, 42, 0.08);
      overflow: hidden;
    }

    .marketplace-hero-art::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 70% 24%, rgba(212,175,55,0.18), transparent 24%),
        linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.02));
      opacity: 1;
    }

    .marketplace-hero-art::after {
      content: none;
    }

    .marketplace-flag-badge {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      padding: 14px;
      border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.28);
      background: rgba(255,255,255,0.92);
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
      color: #20314c;
      min-width: 84px;
      min-height: 84px;
    }

    .marketplace-flag {
      width: 54px;
      height: 34px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
      background:
        linear-gradient(90deg, #d62828 0 24%, transparent 24%),
        linear-gradient(180deg, #0f9d58 0 33.34%, #ffffff 33.34% 66.67%, #111827 66.67% 100%);
    }

    .marketplace-hero-caption {
      display: none;
    }

    .marketplace-hero-caption strong {
      display: none;
    }

    .page-head,
    .search-hub {
      border-radius: 18px;
    }

    .btn {
      min-height: 40px;
      border-radius: 12px;
      font-size: 0.88rem;
      font-weight: 700;
      box-shadow: none !important;
    }

    .btn-primary,
    .btn-green {
      background: #b58a1d !important;
      border-color: #b58a1d !important;
      color: #ffffff !important;
    }

    .btn-secondary,
    .menu-btn,
    .page-nav-btn,
    .menu-toggle,
    .section-switch-btn,
    .auth-tab,
    .suggestion-chip,
    .action-icon-btn {
      background: #ffffff !important;
      color: #334155 !important;
      border: 1px solid rgba(148, 163, 184, 0.24) !important;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    }

    .btn-secondary:hover,
    .menu-btn:hover,
    .page-nav-btn:hover,
    .menu-toggle:hover,
    .section-switch-btn:hover,
    .auth-tab:hover,
    .suggestion-chip:hover,
    .action-icon-btn:hover {
      background: #f8fafc !important;
      border-color: rgba(100, 116, 139, 0.32) !important;
      color: #111827 !important;
      box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05) !important;
      transform: translateY(-1px);
    }

    .section-switch-btn.is-active,
    .menu-btn.active,
    .auth-tab.active {
      background: rgba(181, 138, 29, 0.1) !important;
      color: #8f6a12 !important;
      border-color: rgba(181, 138, 29, 0.3) !important;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(181, 138, 29, 0.08) !important;
    }

    .section-switch-btn .tab-count {
      background: #f8fafc !important;
      border-color: rgba(148, 163, 184, 0.18) !important;
      color: #64748b !important;
    }

    .section-switch-btn.is-active .tab-count {
      background: rgba(181, 138, 29, 0.12) !important;
      border-color: rgba(181, 138, 29, 0.2) !important;
      color: #8f6a12 !important;
    }

    .section-switch-btn .tab-count.is-loading {
      color: transparent !important;
      position: relative;
      overflow: hidden;
      min-width: 30px !important;
    }

    .section-switch-btn .tab-count.is-loading::after {
      content: "";
      width: 18px;
      height: 7px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.45), rgba(148, 163, 184, 0.18));
      background-size: 220% 100%;
      animation: publicSkeletonSweep 1.15s ease-in-out infinite;
    }

    .section-switch-btn.is-active .tab-count.is-loading::after {
      background: linear-gradient(90deg, rgba(181, 138, 29, 0.16), rgba(181, 138, 29, 0.45), rgba(181, 138, 29, 0.16));
      background-size: 220% 100%;
    }

    .section-switch-btn .tab-count.is-error {
      background: #fff7ed !important;
      border-color: rgba(181, 138, 29, 0.28) !important;
      color: #9a3412 !important;
    }

    .search-hub.compact-top-search .search-field-wrap,
    input,
    select,
    textarea {
      background: #ffffff !important;
      color: #1f2937 !important;
      border: 1px solid rgba(148, 163, 184, 0.24) !important;
      box-shadow: none !important;
    }

    input::placeholder,
    textarea::placeholder {
      color: #94a3b8;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: rgba(181, 138, 29, 0.36) !important;
      box-shadow: 0 0 0 4px rgba(181, 138, 29, 0.08) !important;
      outline: none;
    }

    .public-sheet {
      gap: 0;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      overflow: hidden;
      background: #ffffff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
      min-width: 1120px;
    }

    .public-sheet-head {
      background: #f8fafc !important;
      border: 0 !important;
      border-bottom: 1px solid #e5e7eb !important;
      color: #64748b !important;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      min-height: 44px;
      font-size: 11px !important;
    }

    .public-row {
      background: #ffffff !important;
      border: 0 !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-radius: 0 !important;
      min-height: 72px;
      box-shadow: none !important;
      transform: none !important;
    }

    .public-row:last-child {
      border-bottom: 0 !important;
    }

    .public-row:hover {
      background: #f1f5f9 !important;
      border-color: rgba(148, 163, 184, 0.14) !important;
      box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06) !important;
      transform: none !important;
    }

    .public-row.is-selected {
      background: #f8fafc !important;
      box-shadow: inset 3px 0 0 #b58a1d, inset 0 0 0 1px rgba(181, 138, 29, 0.08) !important;
    }

    .public-row.is-distress {
      background: linear-gradient(180deg, #fffaf0, #ffffff) !important;
      border-left: 3px solid rgba(181, 138, 29, 0.42) !important;
    }

    .public-sheet.is-loading {
      min-height: 328px;
      position: relative;
    }

    .public-sheet.is-loading:empty::before {
      content: "";
      position: absolute;
      inset: 16px;
      border-radius: 14px;
      background:
        linear-gradient(90deg, #f1f5f9 18%, #e2e8f0 34%, #f1f5f9 50%) 0 0 / 220% 46px,
        linear-gradient(90deg, #f8fafc 18%, #e5e7eb 34%, #f8fafc 50%) 0 70px / 220% 72px,
        linear-gradient(90deg, #f8fafc 18%, #e5e7eb 34%, #f8fafc 50%) 0 154px / 220% 72px,
        linear-gradient(90deg, #f8fafc 18%, #e5e7eb 34%, #f8fafc 50%) 0 238px / 220% 72px;
      background-repeat: no-repeat;
      animation: publicSkeletonSweep 1.15s ease-in-out infinite;
    }

    .public-skeleton-head,
    .public-skeleton-row {
      pointer-events: none;
    }

    .public-skeleton-row {
      min-height: 74px;
    }

    .public-skeleton-cell {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .public-skeleton-cell.align-right {
      justify-items: end;
    }

    .public-skeleton-line,
    .public-skeleton-pill {
      display: block;
      max-width: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #f1f5f9 18%, #e2e8f0 34%, #f1f5f9 50%);
      background-size: 220% 100%;
      animation: publicSkeletonSweep 1.15s ease-in-out infinite;
    }

    .public-skeleton-line {
      width: 100%;
      height: 12px;
    }

    .public-skeleton-line.short {
      width: 54px;
    }

    .public-skeleton-line.medium {
      width: 110px;
    }

    .public-skeleton-line.long {
      width: min(180px, 100%);
    }

    .public-skeleton-pill {
      width: 34px;
      height: 24px;
    }

    .public-skeleton-pill.wide {
      width: 72px;
      height: 30px;
    }

    .public-load-state {
      min-height: 236px;
      margin: 14px;
      padding: 22px;
      border: 1px dashed rgba(181, 138, 29, 0.26);
      border-radius: 18px;
      background: linear-gradient(180deg, #ffffff, #fffaf0);
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 16px;
      color: var(--text);
    }

    .public-load-state-icon {
      width: 38px;
      height: 38px;
      border-radius: 14px;
      background: rgba(181, 138, 29, 0.12);
      border: 1px solid rgba(181, 138, 29, 0.2);
      color: #9a3412;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
    }

    .public-load-state-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .public-load-state-copy strong {
      color: var(--text);
      font-size: 0.98rem;
    }

    .public-load-state-copy span {
      color: var(--text-soft);
      line-height: 1.45;
    }

    @keyframes publicSkeletonSweep {
      0% { background-position: 100% 0; }
      100% { background-position: -100% 0; }
    }

    .detail-cell {
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      padding: 4px 0 !important;
    }

    .badge {
      padding: 4px 9px;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      border-width: 1px;
    }

    .badge-blue { background: rgba(59, 130, 246, 0.08); color: #1d4ed8; border-color: rgba(59,130,246,0.16); }
    .badge-green { background: rgba(34, 197, 94, 0.08); color: #166534; border-color: rgba(34,197,94,0.16); }
    .badge-gold { background: rgba(181, 138, 29, 0.1); color: #8f6a12; border-color: rgba(181,138,29,0.18); }
    .badge-red { background: rgba(239, 68, 68, 0.08); color: #b91c1c; border-color: rgba(239,68,68,0.16); }
    .badge-orange { background: rgba(249, 115, 22, 0.08); color: #c2410c; border-color: rgba(249,115,22,0.16); }
    .badge-hot { background: rgba(181, 138, 29, 0.12); color: #8f6a12; border-color: rgba(181,138,29,0.22); }

    .action-icon-btn {
      width: 34px;
      height: 34px;
      border-radius: 999px !important;
    }

    .pager {
      margin-top: 14px;
      padding-top: 6px;
    }

    .connector-toolbar {
      margin: 14px 16px 0;
      padding: 16px 18px;
      border-radius: 18px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: #ffffff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
      display: grid;
      gap: 14px;
    }

    .connector-toolbar-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }

    .connector-toolbar-copy {
      display: grid;
      gap: 4px;
    }

    .connector-toolbar-copy h3 {
      font-size: 0.98rem;
      font-weight: 800;
      color: #0f172a;
    }

    .connector-toolbar-copy p,
    .connector-toolbar-meta {
      color: #64748b;
      font-size: 0.8rem;
      line-height: 1.45;
    }

    .connector-toolbar-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
      gap: 10px;
      align-items: end;
    }

    .connector-filter-field {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .connector-filter-field label {
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
    }

    .connector-results-shell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 380px;
      gap: 16px;
      align-items: start;
    }

    .connector-results-shell.no-detail {
      grid-template-columns: minmax(0, 1fr);
    }

    .connector-results-shell.no-detail .connector-detail-panel {
      display: none;
    }

    .connector-list-panel,
    .connector-detail-panel {
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    .connector-list-panel {
      overflow-x: auto;
      overflow-y: visible;
      scrollbar-width: thin;
    }

    .connector-detail-panel {
      padding: 20px;
      position: sticky;
      top: 106px;
      display: grid;
      gap: 20px;
      min-height: 240px;
    }

    .connector-detail-empty {
      min-height: 220px;
      border: 1px dashed rgba(148, 163, 184, 0.22);
      border-radius: 16px;
      background: #f8fafc;
      color: #64748b;
      display: grid;
      place-items: center;
      padding: 18px;
      text-align: center;
      font-size: 0.84rem;
      line-height: 1.5;
    }

    .connector-detail-header {
      display: grid;
      gap: 8px;
    }

    .connector-detail-head-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .connector-detail-header h3 {
      font-size: 1.12rem;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.3;
      letter-spacing: -0.02em;
    }

    .connector-detail-meta,
    .connector-detail-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .connector-detail-toolbar .btn {
      min-height: 34px;
      padding: 0 12px;
      font-size: 0.78rem;
      border-radius: 10px;
    }

    .connector-action-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .connector-action-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 10px;
      font-size: 0.78rem;
      white-space: nowrap;
    }

    .connector-action-btn svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex: 0 0 auto;
    }

    .connector-detail-toolbar .btn-primary,
    .connector-detail-toolbar .btn-green {
      background: #b58a1d !important;
      border-color: #b58a1d !important;
      color: #ffffff !important;
    }

    .connector-detail-toolbar .btn-secondary {
      background: #ffffff !important;
      border-color: rgba(148, 163, 184, 0.24) !important;
      color: #334155 !important;
    }

    .btn-ghost {
      background: transparent !important;
      border-color: transparent !important;
      color: #64748b !important;
      box-shadow: none !important;
    }

    .row-open-action {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      justify-content: flex-end;
    }

    .row-open-action .btn {
      min-height: 32px;
      padding: 0 10px;
      border-radius: 10px;
      font-size: 0.75rem;
    }

    .btn-ghost:hover {
      background: #f8fafc !important;
      border-color: rgba(148, 163, 184, 0.14) !important;
      color: #0f172a !important;
    }

    .connector-detail-section {
      display: grid;
      gap: 20px;
      padding-top: 16px;
      border-top: 1px solid #e5e7eb;
    }

    .connector-detail-section:first-of-type {
      padding-top: 0;
      border-top: none;
    }

    .connector-detail-section h4 {
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
    }

    .connector-detail-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
    }

    .connector-detail-cell {
      padding: 10px 0;
      border-radius: 0;
      border: 0;
      border-bottom: 1px solid rgba(148, 163, 184, 0.14);
      background: transparent;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }

    .connector-detail-cell:last-child {
      border-bottom: 0;
    }

    .connector-detail-cell small {
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.66rem;
      font-weight: 800;
    }

    .connector-detail-cell strong {
      color: #0f172a;
      font-size: 0.88rem;
      line-height: 1.45;
      word-break: break-word;
      text-align: right;
    }

    .sheet-head-center,
    .sheet-col-center {
      text-align: center;
      justify-items: center;
    }

    .sheet-head-right,
    .sheet-col-right {
      text-align: right;
      justify-items: end;
    }

    .contact-reveal-trigger {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 32px;
      padding: 0 12px;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
      color: #475569;
      font-size: 12px;
      font-weight: 600;
      line-height: 1;
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    .contact-reveal-trigger:hover {
      border-color: rgba(181, 138, 29, 0.28);
      background: #f8fafc;
      color: #0f172a;
    }

    .contact-reveal-trigger svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex: 0 0 auto;
    }

    .contact-reveal-value {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      font-size: 0.88rem;
      font-weight: 700;
      color: #0f172a;
    }

    .broker-activity-inline,
    .broker-activity-stack {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      color: #64748b;
      font-size: 0.76rem;
      line-height: 1.4;
    }

    .broker-activity-stack {
      font-size: 0.8rem;
      color: #475569;
    }

    .bcp-broker-identity {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .bcp-broker-avatar {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid #e5e7eb;
      background: #f8fafc;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #8f6a12;
      font-size: 0.8rem;
      font-weight: 800;
      flex: 0 0 42px;
    }

    .bcp-broker-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .bcp-broker-copy {
      min-width: 0;
      display: grid;
      gap: 4px;
    }

    .bcp-broker-copy strong {
      font-size: 0.9rem;
      color: #0f172a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .broker-activity-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      flex: 0 0 auto;
      background: #cbd5e1;
    }

    .broker-activity-dot.is-online {
      background: #22c55e;
    }

    .broker-activity-dot.is-active {
      background: #f59e0b;
    }

    .broker-activity-dot.is-recent,
    .broker-activity-dot.is-offline {
      background: #cbd5e1;
    }

    .sheet-secondary.is-rich {
      display: grid;
      gap: 4px;
    }

    .connector-detail-note {
      padding: 0;
      border-radius: 0;
      border: 0;
      background: transparent;
      color: #475569;
      font-size: 0.88rem;
      line-height: 1.55;
    }

    .connector-detail-location {
      color: #475569;
      font-size: 0.88rem;
      line-height: 1.55;
    }

    .connector-detail-price {
      color: #0f172a;
      font-size: 1.3rem;
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -0.02em;
    }

    .connector-detail-inline-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      color: #64748b;
      font-size: 0.78rem;
      line-height: 1.5;
    }

    /* Compact typography scale */
    .btn,
    .page-nav-btn,
    .section-switch-btn,
    .btn-tiny {
      font-size: 0.8rem !important;
      line-height: 1.2 !important;
    }

    .section-switch-btn .tab-count {
      font-size: 0.66rem !important;
      min-width: 22px !important;
      min-height: 22px !important;
    }

    .public-sheet-head,
    .sheet-label {
      font-size: 0.66rem !important;
      letter-spacing: 0.07em !important;
    }

    .sheet-primary {
      font-size: 0.9rem !important;
      line-height: 1.38 !important;
    }

    .sheet-secondary,
    .muted,
    .pager {
      font-size: 0.79rem !important;
      line-height: 1.46 !important;
    }

    .badge {
      font-size: 0.62rem !important;
      padding: 4px 8px !important;
      letter-spacing: 0.03em !important;
    }

    input,
    select,
    textarea,
    .search-hub.compact-top-search .search-bar input {
      font-size: 0.84rem !important;
      line-height: 1.35 !important;
    }

    input,
    select {
      min-height: 38px !important;
      padding-top: 8px !important;
      padding-bottom: 8px !important;
    }

    .complaint-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.42);
      z-index: 1600;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .complaint-dialog {
      width: min(640px, calc(100vw - 32px));
      max-height: calc(100vh - 48px);
      overflow: auto;
      border-radius: 20px;
      border: 1px solid #E5E7EB;
      background: #FFFFFF;
      box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    }

    .complaint-shell {
      display: grid;
      gap: 18px;
      padding: 20px;
    }

    .complaint-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }

    .complaint-head h3 {
      margin: 4px 0 0;
      color: #0F172A;
      font-size: 1.08rem;
    }

    .complaint-copy {
      margin: 0;
      color: #64748B;
      font-size: 0.92rem;
      line-height: 1.55;
    }

    .complaint-context-grid,
    .complaint-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .complaint-context-card,
    .complaint-form-card {
      border: 1px solid #E5E7EB;
      border-radius: 16px;
      background: #F8FAFC;
      padding: 16px;
      display: grid;
      gap: 10px;
    }

    .complaint-form-card.is-full {
      grid-column: 1 / -1;
    }

    .complaint-upload-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
    }

    .complaint-upload-note {
      color: #64748B;
      font-size: 0.85rem;
    }

    .complaint-actions-row {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }

    .rules-agreement-card {
      border: 1px solid rgba(200, 169, 107, 0.28);
      border-radius: 16px;
      background: rgba(200, 169, 107, 0.08);
      padding: 14px 16px;
      display: grid;
      gap: 10px;
    }

    .rules-agreement-label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: #243041;
      font-size: 0.9rem;
      line-height: 1.55;
    }

    .rules-agreement-label input {
      margin-top: 2px;
      width: 16px;
      height: 16px;
      accent-color: #c8a96b;
      flex: 0 0 16px;
    }

    .rules-agreement-status {
      color: #64748B;
      font-size: 0.84rem;
    }

    .support-menu-group {
      display: grid;
      gap: 10px;
      margin-top: 18px;
      padding-top: 18px;
      border-top: 1px solid #E5E7EB;
    }

    .support-menu-kicker {
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748B;
    }

    .support-rules-list {
      display: grid;
      gap: 12px;
    }

    .support-rule-card {
      border: 1px solid #E5E7EB;
      border-radius: 16px;
      background: #F8FAFC;
      padding: 14px 16px;
      display: grid;
      gap: 6px;
    }

    .support-rule-card h4 {
      margin: 0;
      color: #0F172A;
      font-size: 0.95rem;
    }

    .support-rule-card p {
      margin: 0;
      color: #64748B;
      font-size: 0.88rem;
      line-height: 1.55;
    }

    .support-form-shell {
      display: grid;
      gap: 14px;
    }

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

    .support-form-grid .full {
      grid-column: 1 / -1;
    }

    .support-form-shell textarea {
      min-height: 136px;
      resize: vertical;
    }

    body.complaint-modal-open {
      overflow: hidden;
    }

    /* App-style marketplace polish */
    .topbar-inner.public-topbar {
      grid-template-columns: auto auto !important;
      justify-content: space-between;
    }

    .hero-box.compact-public-hero.marketplace-hero {
      padding: 18px 22px 16px !important;
      min-height: 0;
    }

    .marketplace-hero-stage {
      grid-template-columns: minmax(0, 1fr) auto !important;
      gap: 16px !important;
      align-items: center !important;
      margin-bottom: 12px !important;
    }

    .marketplace-hero-copy h1 {
      margin: 4px 0 4px !important;
      font-size: clamp(1.7rem, 2.6vw, 2.35rem) !important;
      line-height: 1.05 !important;
    }

    .marketplace-hero-copy p {
      max-width: 610px !important;
      font-size: 0.88rem !important;
      line-height: 1.45 !important;
    }

    .marketplace-hero-art {
      min-height: 0 !important;
      align-self: center !important;
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      overflow: visible !important;
    }

    .marketplace-hero-art::before,
    .marketplace-hero-art::after {
      content: none !important;
    }

    .marketplace-flag-badge {
      position: static !important;
      transform: none !important;
      min-width: 0 !important;
      min-height: 0 !important;
      padding: 9px 12px !important;
      gap: 8px !important;
      border-radius: 999px !important;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .marketplace-flag {
      width: 28px !important;
      height: 18px !important;
      border-radius: 6px !important;
      flex: 0 0 auto;
    }

    .hero-tabs {
      gap: 8px !important;
    }

    .section-switch-btn {
      min-height: 36px !important;
      padding: 0 12px !important;
      border-radius: 12px !important;
    }

    .connector-toolbar {
      margin-top: 10px !important;
      padding: 14px !important;
      gap: 10px !important;
      border-radius: 16px !important;
    }

    .connector-toolbar-head {
      align-items: center !important;
    }

    .connector-toolbar-copy h3 {
      font-size: 0.94rem !important;
    }

    .connector-toolbar-copy p {
      margin: 0;
    }

    .connector-toolbar-grid {
      grid-template-columns: minmax(320px, 1.45fr) repeat(4, minmax(116px, 0.72fr)) auto !important;
      gap: 8px !important;
      align-items: end !important;
    }

    .connector-search-field {
      min-width: 0;
    }

    .compact-toolbar-search {
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    .compact-toolbar-search .search-bar {
      grid-template-columns: minmax(0, 1fr) auto auto !important;
      gap: 8px !important;
    }

    .compact-toolbar-search .search-bar input,
    .connector-filter-field select {
      min-height: 38px !important;
      height: 38px !important;
      border-radius: 12px !important;
    }

    .compact-toolbar-search .btn,
    .connector-toolbar-grid > .btn {
      min-height: 38px !important;
      border-radius: 12px !important;
    }

    .compact-toolbar-search .search-suggestions {
      background: #ffffff !important;
      border-color: rgba(148, 163, 184, 0.22) !important;
      box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12) !important;
    }

    .page-head.compact-head {
      padding: 14px 18px !important;
      border-radius: 16px !important;
    }

    .page-head.compact-head h2 {
      font-size: 1.35rem !important;
    }

    .connector-results-shell {
      grid-template-columns: minmax(0, 1fr) 390px !important;
      gap: 14px !important;
    }

    .connector-results-shell.no-detail {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    .connector-list-panel,
    .connector-detail-panel {
      border-radius: 18px !important;
    }

    .public-sheet {
      min-width: 1010px !important;
    }

    .public-sheet-head,
    .public-row {
      padding-inline: 12px !important;
      gap: 8px !important;
    }

    .public-row {
      min-height: 68px !important;
    }

    .public-row:hover {
      background: #fbfcfe !important;
    }

    .public-row.is-selected {
      background: linear-gradient(90deg, rgba(181, 138, 29, 0.11), #ffffff 42%) !important;
      box-shadow: inset 3px 0 0 #b58a1d, inset 0 0 0 1px rgba(181, 138, 29, 0.13) !important;
    }

    .sheet-index {
      width: 28px;
      height: 28px;
      font-size: 0.78rem;
    }

    .money-text {
      color: #182230 !important;
      font-weight: 800 !important;
      white-space: nowrap;
    }

    .time-badge {
      display: inline-flex;
      justify-content: flex-end;
      color: #64748b;
      font-size: 0.76rem;
      font-weight: 800;
      line-height: 1.2;
      white-space: nowrap;
    }

    .row-open-action .row-view-btn {
      min-height: 32px !important;
      padding: 0 10px !important;
      border-color: rgba(181, 138, 29, 0.22) !important;
      color: #8f6a12 !important;
      background: rgba(181, 138, 29, 0.07) !important;
    }

    .row-open-action .row-view-btn svg {
      width: 14px;
      height: 14px;
    }

    .connector-detail-panel {
      top: 92px !important;
      max-height: calc(100vh - 112px);
      overflow: auto;
      padding: 14px !important;
      gap: 12px !important;
      background: #f5f7fb !important;
    }

    .connector-detail-header,
    .connector-detail-section,
    .connector-detail-section:first-of-type {
      padding: 14px !important;
      border: 1px solid rgba(148, 163, 184, 0.16) !important;
      border-radius: 16px !important;
      background: #ffffff !important;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    }

    .connector-detail-header {
      gap: 10px !important;
    }

    .connector-detail-header h3 {
      font-size: 1.08rem !important;
      letter-spacing: -0.02em;
    }

    .connector-detail-price {
      font-size: 1.32rem !important;
    }

    .connector-detail-section {
      gap: 10px !important;
      border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
    }

    .connector-detail-section h4 {
      font-size: 0.7rem !important;
    }

    .connector-detail-cell {
      padding: 9px 0 !important;
    }

    .connector-detail-note {
      padding: 12px 13px !important;
      border: 1px solid rgba(148, 163, 184, 0.14) !important;
      border-radius: 14px !important;
      background: #f8fafc !important;
      color: #1f2937 !important;
    }

    .connector-detail-toolbar .connector-action-bar {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .connector-detail-toolbar .connector-action-btn {
      min-height: 38px !important;
      border-radius: 12px !important;
      padding-inline: 10px !important;
      font-size: 0.78rem !important;
    }

    .connector-detail-toolbar .connector-action-btn.btn-ghost {
      background: transparent !important;
      border-color: transparent !important;
    }

    .connector-detail-toolbar .connector-action-btn.btn-primary {
      box-shadow: 0 10px 20px rgba(181, 138, 29, 0.18) !important;
    }

    .bcp-broker-avatar {
      background: rgba(181, 138, 29, 0.08) !important;
      border-color: rgba(181, 138, 29, 0.16) !important;
    }

    @media (max-width: 760px) {
      .complaint-context-grid,
      .complaint-form-grid,
      .support-form-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 768px) {
      html,
      body {
        overflow-x: hidden;
      }

      body {
        font-size: 15px;
      }

      .topbar {
        position: sticky;
        top: 0;
        z-index: 120;
      }

      .topbar-inner.public-topbar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px;
        align-items: stretch !important;
        padding: 12px 14px !important;
      }

      .brand,
      .top-search-inline,
      .top-actions-wrap,
      .top-actions,
      .broker-access-inline {
        width: 100%;
      }

      .search-hub.compact-top-search {
        margin: 0 !important;
        width: 100%;
      }

      .search-hub.compact-top-search .search-bar {
        grid-template-columns: minmax(0, 1fr) auto auto;
      }

      .search-hub.compact-top-search .btn,
      .top-actions .btn,
      .broker-access-inline .btn {
        min-height: 46px;
      }

      .top-actions,
      .broker-access-inline {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
      }

      .top-cta {
        grid-column: 1 / -1;
        min-height: 42px;
        display: flex;
        align-items: center;
      }

      .layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
        width: min(100%, 100vw);
        padding: 14px;
        overflow-x: hidden;
      }

      .sidebar {
        top: 76px !important;
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 92px) !important;
      }

      .content-panel {
        min-width: 0;
        overflow-x: hidden;
      }

      .hero-box {
        padding: 18px 16px;
      }

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

      .hero-tabs .btn {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
      }

      .marketplace-hero-stage {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .marketplace-hero-art {
        min-height: 132px;
      }

      .connector-toolbar {
        margin: 0 !important;
        padding: 14px;
      }

      .connector-toolbar-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
      }

      .connector-toolbar-grid > .btn {
        width: 100%;
        min-height: 46px;
      }

      .connector-results-shell,
      .connector-results-shell.no-detail {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .connector-detail-panel {
        position: static !important;
        top: auto !important;
        order: -1;
        padding: 16px;
      }

      .connector-list-panel {
        overflow: visible !important;
      }

      .public-sheet {
        display: grid;
        gap: 12px;
        padding: 12px;
      }

      .public-sheet-head {
        display: none !important;
      }

      .public-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding: 14px;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        background: #ffffff;
      }

      .sheet-col,
      .sheet-col-right,
      .sheet-col-center {
        align-items: flex-start !important;
        justify-items: flex-start !important;
        text-align: left !important;
      }

      .sheet-label {
        display: block !important;
        margin-bottom: 4px;
      }

      .row-open-action {
        justify-content: flex-start !important;
        width: 100%;
      }

      .row-open-action .btn {
        min-height: 44px;
      }

      .connector-detail-grid,
      .detail-grid,
      .listing-grid,
      .support-form-grid,
      .complaint-form-grid,
      .complaint-context-grid,
      #authModal .auth-form-grid {
        grid-template-columns: 1fr !important;
      }

      .auth-modal {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: none !important;
        padding: 22px 18px !important;
        max-height: calc(100vh - 24px);
        overflow: auto;
      }

      #authModal .auth-field-block {
        width: 100%;
      }
    }

    @media (max-width: 430px) {
      .search-hub.compact-top-search .search-bar {
        grid-template-columns: 1fr;
      }

      .search-hub.compact-top-search .btn,
      .top-actions .btn,
      .broker-access-inline .btn {
        width: 100%;
      }

      .top-actions,
      .broker-access-inline {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 768px) {
      .hero-box.compact-public-hero.marketplace-hero {
        padding: 16px !important;
      }

      .marketplace-hero-stage {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
      }

      .marketplace-hero-art {
        min-height: 0 !important;
        justify-self: start;
      }

      .marketplace-flag-badge {
        white-space: normal;
      }

      .public-sheet {
        min-width: 0 !important;
      }

      .public-load-state {
        grid-template-columns: 1fr;
        justify-items: start;
        min-height: 220px;
      }

      .connector-detail-panel {
        max-height: none;
      }

      .connector-detail-toolbar .connector-action-bar {
        grid-template-columns: 1fr;
      }

      .time-badge {
        justify-content: flex-start;
      }
    }

    @media (hover: none) {
      .public-row:hover {
        transform: none;
        box-shadow: none;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
      }
    }
