      :root {
        --blue: #0b4ea2;
        --blue-deep: #073a7d;
        --blue-bright: #1a6fd4;
        --blue-ink: #062a57;
        --ink: #10151c;
        --bg: #f2f5f9;
        --surface: #ffffff;
        --surface-2: #e9eef5;
        --line: #d6dee9;
        --text: #141a22;
        --muted: #5a6a7d;
        --amber: #b45309;
        --amber-bg: #fdf3e3;
        --green: #177245;
        --green-bg: #e6f4ec;
        --red: #b3261e;
        --red-bg: #fbeae9;
        --chip-bg: #e7eef8;
        --shadow: 0 1px 2px rgba(6, 42, 87, .06), 0 8px 24px -12px rgba(6, 42, 87, .18);
        color-scheme: light;
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --blue: #2f7fe0;
          --blue-deep: #0a2c55;
          --blue-bright: #4b93e8;
          --blue-ink: #d7e7fb;
          --ink: #05080d;
          --bg: #0a0f16;
          --surface: #121a26;
          --surface-2: #1a2536;
          --line: #263449;
          --text: #e8eef6;
          --muted: #93a5bb;
          --amber: #f0b45a;
          --amber-bg: #33260f;
          --green: #5cc98d;
          --green-bg: #123324;
          --red: #f08a84;
          --red-bg: #3a1a17;
          --chip-bg: #1b2c47;
          --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
          color-scheme: dark;
        }
      }
      * { box-sizing: border-box; }
      html { -webkit-text-size-adjust: 100%; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--text);
        font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
        font-size: 15px;
        line-height: 1.5;
      }
      h1, h2, h3, .wordmark, .stat-num { font-family: "Archivo", "Segoe UI", system-ui, sans-serif; }
      button, [role="button"], select, input:not([type="checkbox"], [type="radio"]) { min-height: 2.25rem; }
      button { font: inherit; cursor: pointer; }
      a { color: var(--blue); }

      /* ---------- Top bar ---------- */
      .topbar {
        background: var(--ink);
        color: #fff;
        border-bottom: 4px solid var(--blue);
      }
      .topbar-in {
        max-width: 1180px; margin: 0 auto; padding: 14px 20px;
        display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
      }
      .wordmark { line-height: 1; }
      .wordmark .arg { font-size: 30px; font-weight: 800; letter-spacing: .04em; }
      .wordmark .arg span { color: var(--blue-bright); }
      .wordmark .funding { font-size: 11px; font-weight: 700; letter-spacing: .42em; color: #c9d8ec; margin-top: 3px; }
      .topbar .spacer { flex: 1; }
      .mock-tag {
        font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
        border: 1px solid rgba(255,255,255,.45); color: #dbe7f5;
        padding: 5px 10px; border-radius: 3px; white-space: nowrap;
      }
      .vendor-chip { display: flex; align-items: center; gap: 10px; }
      .avatar {
        width: 38px; height: 38px; border-radius: 50%; flex: none;
        background: var(--blue); color: #fff; display: grid; place-items: center;
        font-family: "Archivo", sans-serif; font-weight: 700; font-size: 14px;
      }
      .vendor-chip .who { line-height: 1.25; }
      .vendor-chip .who b { display: block; font-size: 14px; }
      .vendor-chip .who span { font-size: 12px; color: #aebfd6; }

      /* ---------- Layout ---------- */
      .wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 56px; }
      .view { display: none; }
      .view.active { display: block; }

      .page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
      .page-head h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
      .page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
      .page-head .spacer { flex: 1; }
      .btn-primary {
        background: var(--blue); color: #fff; border: 0; border-radius: 6px;
        padding: 10px 18px; font-weight: 700; font-size: 14px; min-height: 44px;
        display: inline-flex; align-items: center; gap: 8px;
      }
      .btn-primary:hover { background: var(--blue-deep); }
      .btn-ghost {
        background: transparent; color: var(--blue); border: 1px solid var(--line);
        border-radius: 6px; padding: 8px 14px; font-weight: 600; font-size: 14px; min-height: 40px;
        display: inline-flex; align-items: center; gap: 8px;
      }
      .btn-ghost:hover { border-color: var(--blue); }

      /* ---------- Stat cards ---------- */
      .stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
      .stat {
        background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
        padding: 16px; box-shadow: var(--shadow);
      }
      .stat .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
      .stat-num { font-size: 34px; font-weight: 800; line-height: 1.1; margin-top: 4px; }
      .stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
      .stat.alert { border-top: 4px solid var(--amber); }
      .stat.alert .stat-num { color: var(--amber); }
      .stat.good { border-top: 4px solid var(--green); }
      .stat.plain { border-top: 4px solid var(--blue); }

      .volumes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
      .volume {
        border-radius: 8px; padding: 18px 20px; color: #fff;
        display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
      }
      .volume.month { background: var(--blue-deep); }
      .volume.life { background: var(--ink); }
      .volume .v-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #bcd2ee; }
      .volume .v-num { font-family: "Archivo", sans-serif; font-size: 30px; font-weight: 800; line-height: 1.15; }
      .volume .v-sub { font-size: 13px; color: #bcd2ee; }
      .volume .spacer { flex: 1; }
      .volume .v-note { font-size: 12.5px; color: #bcd2ee; text-align: right; max-width: 210px; }

      /* ---------- Panels ---------- */
      .grid-2 { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
      .panel {
        background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
        box-shadow: var(--shadow); margin-bottom: 16px;
      }
      .panel-head {
        padding: 14px 18px; border-bottom: 1px solid var(--line);
        display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
      }
      .panel-head h2 { font-size: 16px; font-weight: 700; margin: 0; }
      .panel-head .spacer { flex: 1; }
      .panel-body { padding: 6px 18px 14px; }

      /* ---------- Filters ---------- */
      .filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 18px 4px; }
      .filters label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
      .filters .f-search { flex: 2 1 220px; }
      .filters .f-sel { flex: 1 1 150px; }
      .filters input, .filters select {
        width: 100%; font: inherit; font-size: 14px; padding: 8px 10px;
        border: 1px solid var(--line); border-radius: 6px;
        background: var(--surface); color: var(--text); min-height: 40px;
      }
      .filters input:focus, .filters select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

      /* ---------- Table ---------- */
      table.apps { width: 100%; border-collapse: collapse; font-size: 14px; }
      table.apps th {
        text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
        color: var(--muted); padding: 12px 18px 8px; border-bottom: 1px solid var(--line); font-weight: 700;
      }
      table.apps td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
      table.apps tbody tr { cursor: pointer; }
      table.apps tbody tr:hover { background: var(--chip-bg); }
      table.apps tbody tr:last-child td { border-bottom: 0; }
      .ref { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }
      .cust b { display: block; font-size: 14px; }
      .cust span { color: var(--muted); font-size: 12.5px; }
      .amt { font-weight: 700; white-space: nowrap; text-align: right; }
      td.amt-h, th.amt-h { text-align: right; }
      .updated { color: var(--muted); font-size: 13px; white-space: nowrap; }
      .no-results { padding: 26px 18px; text-align: center; color: var(--muted); display: none; }

      .chip {
        display: inline-block; font-size: 12px; font-weight: 700; line-height: 1;
        padding: 6px 10px; border-radius: 999px; white-space: nowrap;
        background: var(--chip-bg); color: var(--blue-ink);
      }
      .chip.action { background: var(--amber-bg); color: var(--amber); }
      .chip.good { background: var(--green-bg); color: var(--green); }
      .chip.bad { background: var(--red-bg); color: var(--red); }
      .chip.dark { background: var(--ink); color: #fff; }

      /* ---------- Activity feed ---------- */
      .activity { list-style: none; margin: 0; padding: 8px 0 4px; }
      .activity li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
      .activity li:last-child { border-bottom: 0; }
      .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 6px; flex: none; }
      .dot.amber { background: var(--amber); }
      .dot.green { background: var(--green); }
      .activity p { margin: 0; font-size: 13.5px; }
      .activity time { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

      .rep-list { list-style: none; margin: 0; padding: 10px 0 4px; }
      .rep-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
      .rep-list li:last-child { border-bottom: 0; }
      .rep-list b { font-weight: 600; }
      .rep-list span { color: var(--muted); white-space: nowrap; }

      /* ---------- Transaction view ---------- */
      .back-link {
        background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 14px;
        padding: 8px 4px; margin-bottom: 6px; min-height: 40px;
      }
      .txn-head {
        background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
        box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
      }
      .txn-head .row1 { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
      .txn-head h1 { font-size: 24px; font-weight: 800; margin: 0; }
      .txn-head .equip { color: var(--muted); margin-top: 3px; font-size: 14.5px; }
      .txn-head .spacer { flex: 1; }
      .txn-amt { text-align: right; }
      .txn-amt .a-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
      .txn-amt .a-num { font-family: "Archivo", sans-serif; font-size: 26px; font-weight: 800; }
      .status-banner {
        margin-top: 16px; border-radius: 6px; padding: 12px 14px;
        background: var(--amber-bg); display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
      }
      .status-banner.blue { background: var(--chip-bg); }
      .status-banner.green { background: var(--green-bg); }
      .status-banner p { margin: 0; font-size: 14px; flex: 1 1 260px; }
      .status-banner .upd { font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
      .meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
      .meta-grid .m .m-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
      .meta-grid .m .m-val { font-size: 14.5px; font-weight: 600; margin-top: 2px; }

      /* Timeline */
      .timeline { list-style: none; margin: 0; padding: 14px 0 6px; position: relative; }
      .timeline::before {
        content: ""; position: absolute; left: 11px; top: 22px; bottom: 14px;
        width: 2px; background: var(--line);
      }
      .timeline li { display: flex; gap: 14px; padding: 7px 0; position: relative; }
      .t-dot {
        width: 24px; height: 24px; border-radius: 50%; flex: none; z-index: 1;
        border: 2px solid var(--line); background: var(--surface);
        display: grid; place-items: center; font-size: 12px; color: transparent;
      }
      .timeline li.done .t-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
      .timeline li.current .t-dot { border-color: var(--amber); background: var(--amber-bg); color: var(--amber); font-weight: 800; }
      .timeline li .t-body { flex: 1; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
      .timeline li .t-name { font-weight: 600; font-size: 14.5px; }
      .timeline li.upcoming .t-name { color: var(--muted); font-weight: 500; }
      .timeline li .t-date { font-size: 12.5px; color: var(--muted); margin-left: auto; white-space: nowrap; }
      .timeline li .t-note { flex-basis: 100%; font-size: 13px; color: var(--muted); margin: 0; }

      /* Requirements */
      .reqs { list-style: none; margin: 0; padding: 10px 0 6px; }
      .reqs li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
      .reqs li:last-child { border-bottom: 0; }
      .req-ico {
        width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
        font-size: 13px; font-weight: 800;
      }
      .req-ico.open { background: var(--amber-bg); color: var(--amber); }
      .req-ico.done { background: var(--green-bg); color: var(--green); }
      .reqs b { display: block; font-size: 14.5px; }
      .reqs p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
      .reqs .due { margin-left: auto; font-size: 12.5px; color: var(--amber); font-weight: 700; white-space: nowrap; padding-top: 3px; }
      .reqs .due.ok { color: var(--green); }

      /* Notes */
      .note { padding: 12px 0; border-bottom: 1px solid var(--line); }
      .note:last-child { border-bottom: 0; }
      .note .n-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
      .note .n-head b { font-size: 14px; }
      .note .n-head time { font-size: 12px; color: var(--muted); }
      .note p { margin: 4px 0 0; font-size: 14px; }

      /* Documents — temporary per-deal uploads */
      .docs { list-style: none; margin: 0; padding: 6px 0; }
      .docs li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
      .docs li:last-child { border-bottom: 0; }
      .doc-ico {
        width: 26px; height: 26px; border-radius: 6px; flex: none; display: grid; place-items: center;
        font-size: 11px; font-weight: 800; background: var(--chip-bg); color: var(--blue);
      }
      .docs b { display: block; font-size: 14px; word-break: break-all; }
      .docs .doc-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
      .docs .doc-actions { margin-left: auto; display: flex; gap: 6px; flex: none; padding-top: 2px; }
      .docs .doc-actions button {
        font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 9px; border-radius: 6px;
        border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
      }
      .docs .doc-actions button:hover { border-color: var(--blue); color: var(--blue); }
      .docs .doc-actions button.danger:hover { border-color: var(--red); color: var(--red); }
      .doc-note { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
      .doc-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0 4px; }
      .doc-upload label { cursor: pointer; }
      .doc-hint { font-size: 12px; color: var(--muted); }
      .note-form { padding: 14px 0 4px; }
      .note-form textarea {
        width: 100%; font: inherit; font-size: 14px; padding: 10px; min-height: 76px;
        border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); resize: vertical;
      }
      .note-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
      .note-form .row { display: flex; justify-content: flex-end; margin-top: 8px; }
      .posted-msg { display: none; font-size: 13px; color: var(--green); font-weight: 600; padding-top: 8px; }

      /* ---------- New application modal ---------- */
      .modal-backdrop {
        display: none; position: fixed; inset: 0; z-index: 50;
        background: rgba(5, 12, 22, .62); padding: 18px; overflow-y: auto;
      }
      .modal-backdrop.open { display: block; }
      .modal {
        max-width: 560px; margin: 4vh auto; background: var(--surface); color: var(--text);
        border-radius: 10px; box-shadow: var(--shadow); border-top: 5px solid var(--blue);
      }
      .modal-head { padding: 18px 22px 0; display: flex; align-items: flex-start; gap: 12px; }
      .modal-head h2 { font-size: 20px; font-weight: 800; margin: 0; }
      .modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
      .modal-close {
        margin-left: auto; background: none; border: 0; font-size: 22px; line-height: 1;
        color: var(--muted); padding: 6px 10px; min-width: 40px;
      }
      .modal form { padding: 16px 22px 22px; }
      .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
      .form-grid .full { grid-column: 1 / -1; }
      .modal label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
      .modal input, .modal select {
        width: 100%; font: inherit; font-size: 14px; padding: 9px 10px; min-height: 42px;
        border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text);
      }
      .modal input:focus, .modal select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
      .modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
      .submit-done { display: none; padding: 8px 22px 24px; text-align: center; }
      .submit-done .big { font-family: "Archivo", sans-serif; font-size: 19px; font-weight: 800; margin: 10px 0 4px; }
      .submit-done p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
      .submit-done .ref { font-size: 16px; }
      @media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

      /* ---------- View switcher ---------- */
      .view-switch {
        display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
        background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px; box-shadow: var(--shadow);
      }
      .view-switch button {
        border: 1px solid transparent; background: transparent; color: var(--muted);
        font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: 6px; min-height: 40px;
      }
      .view-switch button.active { background: var(--blue); color: #fff; }
      .view-switch button:not(.active):hover { border-color: var(--line); color: var(--text); }
      .view-switch .vs-note { margin-left: auto; align-self: center; font-size: 12.5px; color: var(--muted); padding: 0 8px; }

      /* ---------- Dealer fee ---------- */
      .fee-cell { white-space: nowrap; }
      .fee-cell b { display: block; font-size: 14px; }
      .fee-cell span { font-size: 12px; color: var(--muted); }
      .fee-strip {
        display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px;
        border-top: 1px solid var(--line); padding-top: 16px;
      }
      .fee-strip .m .m-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
      .fee-strip .m .m-val { font-size: 15px; font-weight: 700; margin-top: 2px; }
      .fee-strip .m .m-sub { font-size: 12.5px; color: var(--muted); }

      /* ---------- Admin ---------- */
      .admin-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
      .admin-field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
      .admin-field select, .admin-field input, .admin-field textarea {
        width: 100%; font: inherit; font-size: 14px; padding: 9px 10px; min-height: 42px;
        border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text);
      }
      .admin-field textarea { min-height: 92px; resize: vertical; }
      .admin-field select:focus, .admin-field input:focus, .admin-field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
      .admin-form { padding: 16px 18px 18px; display: grid; gap: 16px; }
      .admin-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
      .status-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
      .status-picker button {
        text-align: left; font-size: 13px; font-weight: 600; line-height: 1.3;
        border: 1px solid var(--line); background: var(--surface); color: var(--text);
        border-radius: 6px; padding: 10px; min-height: 44px;
      }
      .status-picker button.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
      .status-picker button:not(.selected):hover { border-color: var(--blue); }
      .req-editor { display: grid; gap: 10px; }
      .req-row { border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: grid; gap: 8px; background: var(--surface-2); }
      .req-row .req-row-top { display: flex; gap: 8px; align-items: center; }
      .req-row .req-row-top input[type="text"] { flex: 1; }
      .req-row input, .req-row textarea {
        width: 100%; font: inherit; font-size: 13.5px; padding: 8px 9px;
        border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text);
      }
      .req-row textarea { min-height: 52px; resize: vertical; }
      .req-done-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
      .req-remove { background: none; border: 0; color: var(--red); font-weight: 700; font-size: 13px; padding: 6px 8px; }
      .save-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
      .save-msg { display: none; color: var(--green); font-weight: 700; font-size: 13.5px; }
      .admin-summary p { margin: 0 0 8px; font-size: 13.5px; }
      .admin-summary .k { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: block; }
      @media (max-width: 980px) { .admin-grid { grid-template-columns: 1fr; } .fee-strip { grid-template-columns: repeat(2, 1fr); } }
      @media (max-width: 640px) { .status-picker { grid-template-columns: 1fr 1fr; } .admin-2col { grid-template-columns: 1fr; } .view-switch .vs-note { margin-left: 0; } }

      /* ---------- Gateway / Auth ---------- */
      .domain-pill { font-family:"IBM Plex Mono",monospace; font-size:12px; font-weight:600; background:#16233a; border:1px solid #2a3f5f; color:#cfe2fb; padding:6px 9px; border-radius:999px; white-space:nowrap; }
      .gateway { max-width:760px; margin:8px auto 0; text-align:center; }
      .gateway h1 { font-size:38px; line-height:1.05; margin:18px 0 10px; letter-spacing:-.02em; }
      .gateway .lead { color:var(--muted); font-size:16px; max-width:560px; margin:0 auto; }
      .doors { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:28px; text-align:left; }
      .door { background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:22px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:10px; }
      .door h2 { margin:0; font-size:19px; }
      .door p { margin:0; color:var(--muted); font-size:14px; flex:1; }
      .door .door-tag { font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); }
      .auth-wrap { max-width:520px; margin:0 auto; }
      .auth-card { background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); padding:24px; }
      .auth-card h1 { font-size:24px; margin:0 0 6px; }
      .auth-card .sub { color:var(--muted); font-size:14px; margin:0 0 18px; }
      .field { margin-bottom:14px; }
      .field label { display:block; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:5px; }
      .field input { width:100%; font:inherit; font-size:15px; padding:10px 11px; min-height:44px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--text); }
      .field input:focus { outline:2px solid var(--blue); border-color:var(--blue); }
      .field .hint { font-size:12.5px; color:var(--muted); margin-top:5px; }
      .notice { border:1px solid var(--line); background:var(--surface-2); border-radius:8px; padding:13px 14px; font-size:13.5px; margin:16px 0; }
      .notice b { color:var(--text); }
      .notice.optional { border-style:dashed; }
      .auth-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:16px; }
      .text-link { background:none; border:0; color:var(--blue); font-weight:700; padding:8px 4px; cursor:pointer; }
      .settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
      @media (max-width:640px){ .doors{grid-template-columns:1fr;} .gateway h1{font-size:30px;} .settings-grid{grid-template-columns:1fr;} .domain-pill{display:none;} }

      footer.foot {
        max-width: 1180px; margin: 0 auto; padding: 0 20px 32px;
        color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap;
      }
      footer.foot .spacer { flex: 1; }

      /* ---------- Responsive ---------- */
      @media (max-width: 980px) {
        .stats { grid-template-columns: repeat(3, 1fr); }
        .grid-2 { grid-template-columns: 1fr; }
        .meta-grid { grid-template-columns: repeat(2, 1fr); }
      }
      @media (max-width: 640px) {
        .stats { grid-template-columns: repeat(2, 1fr); }
        .volumes { grid-template-columns: 1fr; }
        .volume .v-note { text-align: left; max-width: none; }
        .topbar-in { padding: 12px 16px; }
        .wrap { padding: 18px 14px 44px; }
        .vendor-chip .who { display: none; }
        /* Table becomes stacked cards */
        table.apps thead { display: none; }
        table.apps, table.apps tbody, table.apps tr, table.apps td { display: block; width: 100%; }
        table.apps tbody tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
        table.apps td { border-bottom: 0; padding: 2px 0; }
        table.apps td.amt-h { text-align: left; }
        .txn-amt { text-align: left; }
        .page-head h1 { font-size: 22px; }
      }
