﻿  /* Customer portal continues below; shared chrome loaded first (tokens/forms/pills/scrollbars). */
  :root {
    --cs-portal-bg0: #030303;
    --cs-portal-bg1: #0e0e0e;
    --cs-portal-bg2: #1a1012;
    --cs-portal-ink: #ececec;
    --cs-portal-muted: #a6a39e;
    --cs-portal-muted-soft: #968f88;
    --cs-portal-muted-dim: #7e7972;
    --cs-portal-ink-soft: #cfcac4;
    --cs-portal-accent: #e11d2e;
    --cs-portal-accent-deep: #b91020;
    --cs-portal-link: #e11d2e;
    --cs-portal-link-hover: #ff4d5c;
    --cs-portal-line: rgba(255, 255, 255, 0.07);
    --cs-portal-line-soft: rgba(255, 255, 255, 0.05);
    --cs-portal-panel: rgba(255, 255, 255, 0.028);
    --cs-portal-panel-strong: rgba(8, 8, 8, 0.45);
    --cs-portal-nav: rgba(0, 0, 0, 0.55);
    --cs-portal-ok: #3ecf8e;
    /* Control â†’ helper text breathing room (inputâ†’hint / buttonâ†’hint / fieldâ†’CTA) */
    --cs-portal-hint-gap: 0.95rem;
    --cs-portal-btn-hint-gap: 1rem;
    --cs-portal-form-action-gap: 1.35rem;
    --cs-portal-field-gap: 1.2rem;
    --cs-portal-card-gap: 1.65rem;
    --cs-portal-section-gap: 1.85rem;
    --cs-portal-section-pad-y: 1.5rem;
    --cs-portal-section-pad-x: 1.55rem;
    /* Space above status / flash / index banners (under page titles, mid-page notices) */
    --cs-portal-status-gap: 1.15rem;
    /* Title/lead â†’ section body (metrics, chips, health) */
    --cs-portal-lead-gap: var(--cs-portal-card-gap);
    /* Shared toolbar control height (search / Rows / Search btn / type filter) */
    --cs-portal-control-h: 2.5rem;
    /* Branded scrollbars: portal chrome + table/picker overflow */
    --cs-portal-scroll-w: 13px;
    --cs-portal-scroll-thumb: rgba(225, 29, 46, 0.72);
    --cs-portal-scroll-thumb-hover: #e11d2e;
    --cs-portal-scroll-track: #161414;
  }
  * { box-sizing: border-box; }
  html {
    height: auto;
    min-height: 100%;
  }
  html, body {
    margin: 0;
    height: auto;
    min-height: 100%;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--cs-portal-ink);
    background:
      radial-gradient(1400px 720px at 8% -8%, rgba(225, 29, 46, 0.28), transparent 58%),
      radial-gradient(1000px 560px at 92% 4%, rgba(225, 29, 46, 0.10), transparent 52%),
      radial-gradient(800px 480px at 70% 100%, rgba(40, 12, 16, 0.55), transparent 55%),
      radial-gradient(700px 400px at 50% 40%, rgba(48, 48, 48, 0.22), transparent 60%),
      linear-gradient(165deg, var(--cs-portal-bg0) 0%, var(--cs-portal-bg1) 42%, var(--cs-portal-bg2) 100%);
    /* fixed attachment can inflate scrollport in some engines â€” keep scroll tied to content */
    background-attachment: scroll;
  }
  body {
    min-height: 100vh;
    min-height: 100dvh;
  }
  /*
   * Authenticated shell: lock the document scrollport.
   * Only .cs-portal-main scrolls â€” prevents sticky/preview/sidebar leftovers from
   * creating a tall empty black region on html/body (Look Display & siblings).
   * Login/signup keep normal document scroll (no .cs-portal-app).
   */
  html:has(body > .cs-portal-app),
  html:has(body > .cs-portal-app) body {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  html:has(body > .cs-portal-app) body {
    min-height: 0;
  }
  a { color: inherit; text-decoration: none; }
  a:hover { color: #fff; }
  /* Content links â€” Code Samurai red (not browser blue). Table body / row-select links excluded. */
  .cs-portal-main a:not(.cs-portal__btn):not(.cs-portal-chip):not(.cs-portal-sort):not(.cs-portal-preview-modes button):not(.cs-portal-live-preview__reload):not(.cs-portal-help-steps__go) {
    color: var(--cs-portal-link);
  }
  .cs-portal-main a:not(.cs-portal__btn):not(.cs-portal-chip):not(.cs-portal-sort):not(.cs-portal-preview-modes button):not(.cs-portal-live-preview__reload):not(.cs-portal-help-steps__go):hover {
    color: var(--cs-portal-link-hover);
  }
  .cs-portal-main .cs-portal-leads-table td a {
    color: var(--cs-portal-ink-soft) !important;
  }
  .cs-portal-main .cs-portal-leads-table td a:hover {
    color: #fff !important;
  }
  .cs-portal-main .cs-portal-leads-table tr.is-selected td a {
    color: #fff !important;
  }

  .cs-portal-login {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    position: relative;
  }
  /* Sticky auth chrome (parity with .cs-portal-topbar blur bar). */
  .cs-portal-login__topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.45rem 1.35rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid var(--cs-portal-line);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
  }
  .cs-portal-login__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2.75rem 1.35rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }
  /* Compact website exit only (do not use .cs-portal__btn on this control). */
  .cs-portal-login__back {
    position: static;
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.2rem 0.1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cs-portal-muted, #a8a8a8);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    box-sizing: border-box;
  }
  .cs-portal-login__back:hover,
  .cs-portal-login__back:focus-visible {
    color: var(--cs-portal-ink, #ececec);
    background: transparent;
    border: 0;
    text-decoration: underline;
    outline: none;
  }
  .cs-portal-login__back:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .cs-portal-login::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(900px 420px at 50% 12%, rgba(225, 29, 46, 0.14), transparent 62%),
      radial-gradient(700px 380px at 80% 90%, rgba(26, 16, 18, 0.55), transparent 70%);
  }
  .cs-portal-login__brand {
    text-align: center;
    margin: 0 0 1.65rem;
    max-width: 28rem;
    position: relative;
    z-index: 1;
  }
  .cs-portal-login__brand-logo {
    display: block;
    width: min(100%, 22rem);
    height: auto;
    margin: 0 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .cs-portal__mark {
    font-size: clamp(2rem, 4.5vw, 2.95rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin: 0;
    line-height: 1.12;
  }
  .cs-portal__mark span { color: var(--cs-portal-accent); }
  .cs-portal__panel {
    width: min(100%, 26rem);
    border: 1px solid var(--cs-portal-line);
    border-radius: 18px;
    padding: 1.75rem 1.55rem 1.55rem;
    background: var(--cs-portal-panel-strong);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 1;
  }
  /* Turnstile success chrome can paint outside the iframe box; never clip it. */
  .cs-portal-login .cs-portal__panel,
  .cs-portal-login .cs-portal__panel form,
  .cs-portal-login .cs-portal__turnstile {
    overflow: visible;
  }
  .cs-portal__panel h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
  }
  .cs-portal__panel > p { margin: 0 0 1.25rem; font-size: 0.88rem; color: var(--cs-portal-muted); line-height: 1.5; }
  .cs-portal-login .cs-portal__panel form {
    display: flex;
    flex-direction: column;
  }
  .cs-portal-login .cs-portal__field {
    margin: 0 0 0.95rem;
  }
  .cs-portal-login .cs-portal__field:last-of-type {
    margin-bottom: 0;
  }
  .cs-portal-login .cs-portal__name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0 0 0.95rem;
  }
  .cs-portal-login .cs-portal__name-row .cs-portal__field {
    margin: 0;
  }
  @media (max-width: 420px) {
    .cs-portal-login .cs-portal__name-row {
      grid-template-columns: 1fr;
    }
  }
  .cs-portal-login .cs-portal__trust {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    color: var(--cs-portal-muted);
    line-height: 1.45;
    text-align: center;
  }
  .cs-portal-login .cs-portal__turnstile {
    margin: 0.5rem 0 1.65rem;
    padding: 0.15rem 0 0.35rem;
    min-height: 72px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .cs-portal-login .cs-portal__turnstile .cf-turnstile {
    max-width: 100%;
    overflow: visible;
  }
  .cs-portal-login .cs-portal__turnstile + .cs-portal__btn {
    margin-top: 0;
  }
  .cs-portal-login .cs-portal__btn {
    margin-top: 0.5rem;
  }
  .cs-portal-login .cs-portal__hint {
    margin: 0.15rem 0 0.95rem;
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .cs-portal-login .cs-portal__remember {
    margin: 0.15rem 0 1.05rem;
  }
  .cs-portal__pwd-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
  }
  .cs-portal__pwd-row label { margin: 0; }
  .cs-portal__pwd-row a {
    font-size: 0.78rem;
    color: var(--cs-portal-muted);
    text-decoration: none;
    white-space: nowrap;
  }
  .cs-portal__pwd-row a:hover { color: var(--cs-portal-link-hover); }
  .cs-portal__auth-split {
    margin: 1.25rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--cs-portal-line);
    text-align: center;
    font-size: 0.86rem;
    color: var(--cs-portal-muted);
    line-height: 1.45;
  }
  .cs-portal__auth-split a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
  }
  .cs-portal__auth-split a:hover { color: var(--cs-portal-link-hover); }
  .cs-portal-celebrate {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(62, 207, 142, 0.35);
    background: linear-gradient(135deg, rgba(62, 207, 142, 0.14), rgba(225, 29, 46, 0.08));
  }
  .cs-portal-celebrate__title {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
  }
  .cs-portal-celebrate__body {
    margin: 0;
    font-size: 0.88rem;
    color: var(--cs-portal-ink-soft);
    line-height: 1.45;
  }
  .cs-portal-create-hero {
    max-width: 28rem;
  }
  .cs-portal-create-hero .cs-portal__field input {
    font-size: 1.05rem;
    min-height: 2.75rem;
  }
  .cs-portal__field { margin: 0 0 var(--cs-portal-field-gap); }
  .cs-portal__field label {
    display: block;
    font-size: 0.8rem;
    color: var(--cs-portal-muted);
    margin-bottom: 0.45rem;
  }
  /* Form controls â€” customer-admin interaction quality, portal dark palette */
  .cs-portal__field input[type="text"],
  .cs-portal__field input[type="password"],
  .cs-portal__field input[type="url"],
  .cs-portal__field input[type="email"],
  .cs-portal__field input[type="number"],
  .cs-portal__field input[type="search"],
  .cs-portal__field input[type="tel"],
  .cs-portal__field input[type="color"],
  .cs-portal__field textarea,
  .cs-portal__field select,
  .cs-portal-form select,
  .cs-portal-table-size select,
  .cs-portal-app select,
  .cs-portal-login select {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #3a3d45;
    background: #121316;
    color: #f3f4f6;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    box-shadow: none;
  }
  .cs-portal__field textarea { min-height: 6rem; resize: vertical; line-height: 1.45; }
  .cs-portal__field input[type="color"] { padding: 0.25rem; height: 2.65rem; cursor: pointer; appearance: auto; -webkit-appearance: auto; }
  /* Native select fallback (before JS enhance / if JS off) */
  .cs-portal__field select,
  .cs-portal-form select,
  .cs-portal-table-size select,
  .cs-portal-app select,
  .cs-portal-login select {
    background-color: #121316;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23f3f4f6%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px top 55%;
    background-size: 16px 16px;
    padding: 0 32px 0 12px;
    cursor: pointer;
  }
  .cs-portal__field select option,
  .cs-portal-form select option,
  .cs-portal-table-size select option,
  .cs-portal-app select option {
    background-color: #1a1b1f;
    color: #f3f4f6;
  }
  .cs-portal__field input:focus,
  .cs-portal__field textarea:focus,
  .cs-portal__field select:focus,
  .cs-portal-form select:focus,
  .cs-portal-table-size select:focus,
  .cs-portal-app select:focus {
    outline: none;
    border-color: var(--cs-portal-accent);
    box-shadow: 0 0 0 1px var(--cs-portal-accent);
  }
  /* Custom select (brand-red hover â€” native OS blue cannot be restyled) */
  .cs-portal-app .cs-select-wrap,
  .cs-portal-login .cs-select-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    vertical-align: middle;
  }
  /* Form fields: select matches Subject/Message/Submit column width */
  .cs-portal__field > .cs-select-wrap {
    width: 100%;
    max-width: none;
  }
  /* Compact width only â€” same height / padding / chevron as full selects */
  .cs-portal-table-size .cs-select-wrap {
    display: inline-block;
    width: auto;
    min-width: 4.75rem;
    max-width: 6.5rem;
    vertical-align: middle;
  }
  .cs-portal-app .cs-select-wrap .cs-select-native,
  .cs-portal-login .cs-select-wrap .cs-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background-image: none !important;
  }
  .cs-portal-app .cs-select-trigger,
  .cs-portal-login .cs-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.5rem;
    padding: 0 32px 0 12px !important;
    border: 1px solid #3a3d45 !important;
    border-radius: 8px !important;
    background-color: #121316 !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23f3f4f6%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px top 55% !important;
    background-size: 16px 16px !important;
    color: #f3f4f6 !important;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    box-shadow: none !important;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .cs-portal-app .cs-select-wrap.is-open .cs-select-trigger,
  .cs-portal-app .cs-select-trigger:hover,
  .cs-portal-app .cs-select-trigger:focus,
  .cs-portal-login .cs-select-wrap.is-open .cs-select-trigger,
  .cs-portal-login .cs-select-trigger:hover,
  .cs-portal-login .cs-select-trigger:focus {
    border-color: var(--cs-portal-accent) !important;
    color: #fff !important;
    outline: none;
    box-shadow: 0 0 0 1px var(--cs-portal-accent);
  }
  .cs-portal-app .cs-select-menu,
  .cs-portal-login .cs-select-menu {
    position: absolute;
    z-index: 100020;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #1a1b1f;
    border: 1px solid #3a3d45;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    max-height: 240px;
    overflow: auto;
  }
  .cs-portal-app .cs-select-option,
  .cs-portal-login .cs-select-option {
    padding: 8px 10px;
    border-radius: 6px;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: nowrap;
  }
  .cs-portal-app .cs-select-option.is-active,
  .cs-portal-app .cs-select-option:hover,
  .cs-portal-login .cs-select-option.is-active,
  .cs-portal-login .cs-select-option:hover {
    background: var(--cs-portal-accent) !important;
    color: #fff !important;
  }
  .cs-portal-app .cs-select-option.is-selected:not(.is-active):not(:hover),
  .cs-portal-login .cs-select-option.is-selected:not(.is-active):not(:hover) {
    background: rgba(225, 29, 46, 0.18);
    color: #fff;
  }
  .cs-portal-app .cs-select-option.is-disabled,
  .cs-portal-login .cs-select-option.is-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
  }
  /* Checkboxes / radios â€” visible on dark, Code Samurai red when checked */
  .cs-portal-app input[type="checkbox"],
  .cs-portal-app input[type="radio"],
  .cs-portal-login input[type="checkbox"],
  .cs-portal-login input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    flex: 0 0 auto;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    cursor: pointer;
    accent-color: var(--cs-portal-accent);
    transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  }
  .cs-portal-app input[type="checkbox"],
  .cs-portal-login input[type="checkbox"] {
    border-radius: 4px;
  }
  .cs-portal-app input[type="radio"],
  .cs-portal-login input[type="radio"] {
    border-radius: 999px;
  }
  .cs-portal-app input[type="checkbox"]:hover,
  .cs-portal-app input[type="radio"]:hover,
  .cs-portal-login input[type="checkbox"]:hover,
  .cs-portal-login input[type="radio"]:hover {
    border-color: rgba(225, 29, 46, 0.65);
  }
  .cs-portal-app input[type="checkbox"]:checked,
  .cs-portal-app input[type="radio"]:checked,
  .cs-portal-login input[type="checkbox"]:checked,
  .cs-portal-login input[type="radio"]:checked {
    border-color: var(--cs-portal-accent);
    background-color: var(--cs-portal-accent);
    box-shadow: 0 0 0 2px rgba(225, 29, 46, 0.25);
  }
  .cs-portal-app input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
    background-size: 0.85rem 0.85rem;
    background-position: center;
    background-repeat: no-repeat;
  }
  .cs-portal-app input[type="radio"]:checked {
    background-image: radial-gradient(circle, #fff 0 35%, transparent 38%);
  }
  .cs-portal-app input[type="checkbox"]:focus-visible,
  .cs-portal-app input[type="radio"]:focus-visible,
  .cs-portal-login input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(225, 29, 46, 0.55);
    outline-offset: 2px;
  }
  .cs-portal-check-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.4rem 0;
    color: #d0d0d0;
    font-size: 0.9rem;
    line-height: 1.35;
    cursor: pointer;
  }
  .cs-portal-check-row input { margin-top: 0; }
  .cs-portal__field input[type="number"] { -moz-appearance: textfield; }
  .cs-portal__field input[type="number"]::-webkit-outer-spin-button,
  .cs-portal__field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  /* Shared controlâ†’hint spacing â€” use these classes going forward */
  .cs-portal-field-hint,
  .cs-portal__hint {
    margin: var(--cs-portal-hint-gap) 0 0;
    font-size: 0.75rem;
    color: var(--cs-portal-muted-dim);
    line-height: 1.45;
  }
  .cs-portal__field > .cs-portal-field-hint,
  .cs-portal__field > .cs-portal__hint {
    margin-top: var(--cs-portal-hint-gap);
  }
  .cs-portal-btn-hint {
    margin: var(--cs-portal-btn-hint-gap) 0 0;
    font-size: 0.75rem;
    color: var(--cs-portal-muted-dim);
    line-height: 1.45;
  }
  /* Button / CTA row â†’ hint (sibling patterns) */
  .cs-portal__btn + .cs-portal-btn-hint,
  .cs-portal__btn + .cs-portal__hint,
  .cs-portal-plugin-dl__row + .cs-portal-btn-hint,
  .cs-portal-plugin-dl__row + .cs-portal-plugin-dl__note,
  .cs-portal-connect-code__row + .cs-portal-field-hint,
  .cs-portal-connect-code__row + .cs-portal__hint {
    margin-top: var(--cs-portal-btn-hint-gap);
  }
  .cs-portal__field > input + .cs-portal-field-hint,
  .cs-portal__field > input + .cs-portal__hint,
  .cs-portal__field > textarea + .cs-portal-field-hint,
  .cs-portal__field > textarea + .cs-portal__hint,
  .cs-portal__field > select + .cs-portal-field-hint,
  .cs-portal__field > select + .cs-portal__hint {
    margin-top: var(--cs-portal-hint-gap);
  }
  /* Primary CTA breathing room after fields / hints inside cards + soft sections */
  .cs-portal-card form > .cs-portal__field:has(+ .cs-portal__btn),
  .cs-portal-card form > .cs-portal__field:has(+ .cs-portal__actions),
  .cs-portal-card form > .cs-portal__hint:has(+ .cs-portal__btn),
  .cs-portal-card form > .cs-portal__hint:has(+ .cs-portal__actions),
  .cs-portal-card form > .cs-portal-field-hint:has(+ .cs-portal__btn),
  .cs-portal-card form > .cs-portal-btn-hint:has(+ .cs-portal__btn),
  .cs-portal-section form > .cs-portal__field:has(+ .cs-portal__btn),
  .cs-portal-section form > .cs-portal__field:has(+ .cs-portal__actions),
  .cs-portal-section form > .cs-portal__hint:has(+ .cs-portal__btn),
  .cs-portal-section form > .cs-portal__hint:has(+ .cs-portal__actions),
  .cs-portal-section form > .cs-portal-field-hint:has(+ .cs-portal__btn),
  .cs-portal-section form > .cs-portal-btn-hint:has(+ .cs-portal__btn) {
    margin-bottom: 0;
  }
  .cs-portal-card form > .cs-portal__btn,
  .cs-portal-card form > .cs-portal__actions,
  .cs-portal-section form > .cs-portal__btn,
  .cs-portal-section form > .cs-portal__actions,
  .cs-portal-card .cs-portal-gs-cta,
  .cs-portal__hint + .cs-portal__btn,
  .cs-portal-field-hint + .cs-portal__btn,
  .cs-portal-btn-hint + .cs-portal__btn,
  .cs-portal__field + .cs-portal__btn,
  .cs-portal__field + .cs-portal__actions {
    margin-top: var(--cs-portal-form-action-gap);
  }
  .cs-portal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
  }
  .cs-portal__remember {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    font-size: 0.85rem;
    color: #a8a8a8;
    cursor: pointer;
  }
  .cs-portal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    /* Lighter edge than fill (mirrors ghost #3a3d45 on #1c1e24) so the border reads on dark UI. */
    border: 1px solid #ff6b78;
    border-radius: 10px;
    background: #e11d2e;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 150ms ease, border-color 150ms ease;
  }
  /* Primary red: same interaction model as ghost (brighten only) â€” no lift/glow. */
  .cs-portal__btn:hover:not(.cs-portal__btn--ghost):not(.cs-portal__btn--secondary) {
    background: #f1283a;
    border-color: #ff8490;
    transform: none;
    box-shadow: none;
  }
  .cs-portal__btn:active:not(.cs-portal__btn--ghost):not(.cs-portal__btn--secondary) {
    background: #c91828;
    border-color: #ff6b78;
    transform: none;
    box-shadow: none;
  }
  .cs-portal__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .cs-portal__btn--sm { width: auto; min-height: 2.35rem; padding: 0 1.1rem; font-size: 0.88rem; }
  /* Secondary = same as ghost (Purge knowledge cache): neutral gray, no red outline. */
  .cs-portal__btn--secondary,
  .cs-portal__btn--ghost {
    background: #1c1e24;
    border: 1px solid #3a3d45;
    color: #f0f0f0;
    box-shadow: none;
  }
  .cs-portal__btn--secondary:hover,
  .cs-portal__btn--ghost:hover {
    background: #252830;
    border-color: #4a4d55;
    color: #fff;
    transform: none;
    box-shadow: none;
  }
  .cs-portal__btn--secondary:active,
  .cs-portal__btn--ghost:active {
    transform: none;
    box-shadow: none;
  }
  .cs-portal-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0 0 1.25rem;
  }
  .cs-portal-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    border: 1px solid var(--cs-portal-line);
    background: rgba(255,255,255,0.04);
    color: var(--cs-portal-ink-soft);
  }
  .cs-portal-status-badge__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #64748b;
  }
  .cs-portal-status-badge.is-ok {
    border-color: rgba(62, 207, 142, 0.5);
    color: #b8f5d4;
    background: rgba(62, 207, 142, 0.1);
  }
  .cs-portal-status-badge.is-ok .cs-portal-status-badge__dot { background: var(--cs-portal-ok); }
  .cs-portal-status-badge.is-warn .cs-portal-status-badge__dot { background: #f59e0b; }
  .cs-portal-status-row__meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--cs-portal-muted);
  }
  .cs-portal-connect-code {
    margin: 0.35rem 0 0;
  }
  .cs-portal-connect-code__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
  }
  .cs-portal-connect-code__row input[type="text"] {
    flex: 1 1 14rem;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
  }
  .cs-portal-connect-code__row .cs-portal__btn {
    width: auto;
    flex: 0 0 auto;
    min-height: 2.6rem;
    padding: 0 1rem;
  }
  .cs-portal-advanced {
    margin: 1rem 0 0;
    border-top: 1px solid var(--cs-portal-line);
    padding-top: 0.85rem;
  }
  .cs-portal-advanced summary {
    cursor: pointer;
    color: var(--cs-portal-muted-dim);
    font-size: 0.8rem;
    font-weight: 600;
    list-style: none;
  }
  .cs-portal-advanced summary::-webkit-details-marker { display: none; }
  .cs-portal-advanced summary::before {
    content: 'â–¸ ';
    color: var(--cs-portal-muted-dim);
  }
  .cs-portal-advanced[open] summary::before { content: 'â–¾ '; }
  .cs-portal-advanced .cs-portal__field { margin-top: 0.75rem; }
  .cs-portal-gs-hero {
    margin-bottom: var(--cs-portal-card-gap);
  }
  .cs-portal-gs-hero h2 { margin-bottom: 0.45rem; }
  .cs-portal-gs-hero > p {
    margin: 0 0 1.25rem;
    color: var(--cs-portal-muted);
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .cs-portal-gs-cta {
    margin-top: var(--cs-portal-form-action-gap);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
  }
  .cs-portal-gs-steps {
    display: grid;
    gap: var(--cs-portal-section-gap);
    margin: 0;
  }
  .cs-portal-gs-step {
    margin: 0;
    padding: var(--cs-portal-section-pad-y) var(--cs-portal-section-pad-x);
    background: var(--cs-portal-panel);
    border: 1px solid var(--cs-portal-line-soft);
    border-radius: 12px;
    box-shadow: none;
  }
  .cs-portal-gs-step.is-done {
    border-color: var(--cs-portal-line-soft);
    background: var(--cs-portal-panel);
  }
  .cs-portal-gs-step.is-upcoming {
    opacity: 0.72;
  }
  .cs-portal-gs-step__head {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
    margin: 0 0 0.35rem;
  }
  .cs-portal-gs-step__num {
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(225, 29, 46, 0.16);
    border: 1px solid rgba(225, 29, 46, 0.38);
    color: #ffb4b8;
  }
  .cs-portal-gs-step.is-done .cs-portal-gs-step__num {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.38);
    color: #86efac;
  }
  .cs-portal-gs-step__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.015em;
  }
  .cs-portal-gs-step__desc {
    margin: 0.25rem 0 0;
    color: var(--cs-portal-ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .cs-portal-gs-step__body {
    margin-top: 1.2rem;
    padding-top: 1.15rem;
    padding-left: 2.8rem;
    border-top: 1px solid var(--cs-portal-line-soft);
  }
  .cs-portal-gs-step.is-done .cs-portal-gs-step__body {
    border-top-color: rgba(34, 197, 94, 0.14);
  }
  .cs-portal-gs-step__body > .cs-portal__field:first-child,
  .cs-portal-gs-step__body > .cs-portal-plugin-dl:first-child,
  .cs-portal-gs-step__body > form:first-child {
    margin-top: 0;
  }
  @media (max-width: 640px) {
    .cs-portal-gs-step__body { padding-left: 0; }
  }
  .cs-portal-plan-grid {
    display: grid;
    gap: var(--cs-portal-field-gap);
    grid-template-columns: 1fr;
    margin: 0;
  }
  @media (min-width: 720px) {
    .cs-portal-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .cs-portal-plan-metrics {
    margin: 0 0 var(--cs-portal-card-gap);
  }
  .cs-portal-plan-change {
    margin-top: 0;
  }
  .cs-portal-plan-change .cs-portal-plan-grid {
    margin-top: 0;
    margin-bottom: 1.75rem;
  }
  .cs-portal-plan-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.35rem 1.35rem 1.4rem;
    border-radius: 14px;
    border: 1px solid var(--cs-portal-line);
    background: rgba(255, 255, 255, 0.03);
  }
  .cs-portal-plan-card.is-current {
    border-color: rgba(62, 207, 142, 0.4);
    background: rgba(62, 207, 142, 0.07);
  }
  .cs-portal-plan-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
  }
  .cs-portal-plan-card__price {
    margin: 0;
    font-size: 0.82rem;
    color: var(--cs-portal-muted);
  }
  .cs-portal-plan-card__features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.4rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--cs-portal-ink-soft);
  }
  .cs-portal-plan-card__features li::before {
    content: "Â·";
    margin-right: 0.4rem;
    color: var(--cs-portal-accent);
    font-weight: 700;
  }
  .cs-portal-plan-card__notes {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--cs-portal-muted-dim);
  }
  .cs-portal-plan-card__actions {
    margin-top: auto;
    padding-top: var(--cs-portal-hint-gap);
  }
  .cs-portal-plan-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    border: 1px solid rgba(62, 207, 142, 0.45);
    background: rgba(62, 207, 142, 0.12);
    color: #b8f5d4;
  }
  .cs-portal-plan-card__status::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--cs-portal-ok);
    flex: 0 0 auto;
  }
  .cs-portal-plan-intro {
    margin: 0 0 var(--cs-portal-field-gap);
    color: var(--cs-portal-muted);
    font-size: 0.88rem;
    line-height: 1.5;
  }
  /* Beat .cs-portal-section p { margin:0 } (0,1,1) â€” class-only lost in 6.8.96 */
  .cs-portal-section p.cs-portal-plan-pay-note,
  .cs-portal-plan-pay-note {
    margin: 0.5rem 0 0;
    padding-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--cs-portal-muted-dim);
    line-height: 1.45;
  }
  .cs-portal-plugin-dl {
    margin: 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--cs-portal-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }
  .cs-portal-plugin-dl__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
  }
  .cs-portal-plugin-dl__note {
    margin: var(--cs-portal-btn-hint-gap) 0 0;
    font-size: 0.82rem;
    color: var(--cs-portal-muted);
    line-height: 1.45;
  }
  .cs-portal__error {
    margin: var(--cs-portal-status-gap) 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(220, 50, 50, 0.18);
    border: 1px solid rgba(220, 80, 80, 0.35);
    color: #ffc9c9;
    font-size: 0.85rem;
  }
  .cs-portal__ok,
  .cs-portal-flash {
    margin: var(--cs-portal-status-gap) 0 1.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(62, 207, 142, 0.14);
    border: 1px solid rgba(62, 207, 142, 0.35);
    color: #b8f5d4;
    font-size: 0.85rem;
  }
  .cs-portal-flash--ok {
    background: rgba(62, 207, 142, 0.14);
    border-color: rgba(62, 207, 142, 0.35);
    color: #b8f5d4;
  }
  .cs-portal-flash--error {
    background: rgba(220, 50, 50, 0.18);
    border-color: rgba(220, 80, 80, 0.35);
    color: #ffc9c9;
  }
  .cs-portal-flash--warn {
    background: rgba(230, 180, 60, 0.12);
    border-color: rgba(230, 180, 60, 0.35);
    color: #f5e0a8;
  }
  /* Slim status only (Edit account / Exit live in Account menu; never inflate sticky topbar). */
  .cs-portal-staff-view {
    display: block;
    margin: 0 0 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    background: rgba(230, 180, 60, 0.12);
    border: 1px solid rgba(230, 180, 60, 0.35);
    color: #f5e0a8;
    font-size: 0.86rem;
    line-height: 1.4;
  }
  .cs-portal-staff-view__text {
    margin: 0;
  }
  /* Beat .cs-portal-section/card p { margin:0 } so status bars keep the shared gap */
  .cs-portal-section p.cs-portal__ok,
  .cs-portal-section p.cs-portal__error,
  .cs-portal-section p.cs-portal-flash,
  .cs-portal-card p.cs-portal__ok,
  .cs-portal-card p.cs-portal__error,
  .cs-portal-card p.cs-portal-flash {
    margin: var(--cs-portal-status-gap) 0 1rem;
  }
  .cs-portal-section p.cs-portal__ok,
  .cs-portal-section p.cs-portal-flash,
  .cs-portal-card p.cs-portal__ok,
  .cs-portal-card p.cs-portal-flash {
    margin-bottom: 1.25rem;
  }
  /* Section/card chrome already pads the top â€” avoid stacking status-gap on first child */
  .cs-portal-section > .cs-portal__ok:first-child,
  .cs-portal-section > .cs-portal__error:first-child,
  .cs-portal-section > .cs-portal-flash:first-child,
  .cs-portal-card > .cs-portal__ok:first-child,
  .cs-portal-card > .cs-portal__error:first-child,
  .cs-portal-card > .cs-portal-flash:first-child,
  .cs-portal-section__title + .cs-portal__ok,
  .cs-portal-section__title + .cs-portal__error,
  .cs-portal-section__title + .cs-portal-flash,
  .cs-portal-section__lead + .cs-portal__ok,
  .cs-portal-section__lead + .cs-portal__error,
  .cs-portal-section__lead + .cs-portal-flash,
  .cs-portal__panel > .cs-portal__ok:first-of-type,
  .cs-portal__panel > .cs-portal__error:first-of-type {
    margin-top: 0;
  }
  .cs-portal-index-status {
    margin-top: var(--cs-portal-status-gap);
    max-width: 28rem;
  }
  .cs-portal-index-status[hidden] {
    display: none !important;
  }
  .cs-portal-index-status__banner {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .cs-portal-index-status__banner[hidden] {
    display: none !important;
  }
  .cs-portal-index-status__banner.is-ok {
    background: rgba(62, 207, 142, 0.14);
    border: 1px solid rgba(62, 207, 142, 0.35);
    color: #b8f5d4;
  }
  .cs-portal-index-status__banner.is-warn {
    background: rgba(230, 180, 60, 0.12);
    border: 1px solid rgba(230, 180, 60, 0.35);
    color: #f5e0a8;
  }
  .cs-portal-index-status__banner.is-error {
    background: rgba(220, 50, 50, 0.18);
    border: 1px solid rgba(220, 80, 80, 0.35);
    color: #ffc9c9;
  }
  .cs-portal-index-status__banner.is-busy {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cs-portal-line);
    color: var(--cs-portal-ink-soft);
  }
  .cs-portal-index-progress {
    margin-top: 0.15rem;
  }
  .cs-portal-index-progress[hidden] {
    display: none !important;
  }
  .cs-portal-index-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--cs-portal-muted);
    margin-bottom: 0.35rem;
  }
  .cs-portal-index-progress__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  .cs-portal-index-progress__pulse {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--cs-portal-accent);
    box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.45);
    animation: cs-portal-index-pulse 1.2s ease-out infinite;
    flex-shrink: 0;
  }
  .cs-portal-index-progress__track {
    height: 8px;
    background: #2c2e34;
    border-radius: 999px;
    overflow: hidden;
  }
  .cs-portal-index-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--cs-portal-accent);
    border-radius: 999px;
    transition: width 0.25s ease;
  }
  @keyframes cs-portal-index-pulse {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.5); opacity: 1; }
    70% { box-shadow: 0 0 0 8px rgba(225, 29, 46, 0); opacity: 0.85; }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0); opacity: 1; }
  }
  .cs-portal__note { margin-top: 1rem; font-size: 0.75rem; color: var(--cs-portal-muted-dim); text-align: center; }
  .cs-portal__auth-links {
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    justify-content: center;
    font-size: 0.82rem;
  }
  .cs-portal__auth-links a { color: #d4d4d4; text-decoration: underline; text-underline-offset: 2px; }
  .cs-portal__auth-links a:hover { color: #fff; }
  .cs-portal__foot { margin-top: 2rem; font-size: 0.8rem; }
  .cs-portal__foot a { color: #a8a8a8; }
  /* Auth website exit uses .cs-portal-login__topbar + .cs-portal-login__back (compact text link, not .cs-portal__btn). */
  .cs-portal-onboard-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
  }
  .cs-portal-onboard-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--cs-portal-line);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
  }
  .cs-portal-onboard-list__num {
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(225, 29, 46, 0.18);
    border: 1px solid rgba(225, 29, 46, 0.4);
    color: #ffb4b8;
  }
  .cs-portal-onboard-list__body { flex: 1 1 auto; min-width: 0; }
  .cs-portal-onboard-list__body strong { display: block; color: #fff; margin-bottom: 0.2rem; }
  .cs-portal-onboard-list__body span { color: var(--cs-portal-ink-soft); font-size: 0.86rem; line-height: 1.45; }
  .cs-portal-onboard-list li.is-done {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.06);
  }
  .cs-portal-onboard-list li.is-done .cs-portal-onboard-list__num {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
  }

  .cs-portal-app {
    /*
     * Fixed sidebar stays out of flow. App fills the locked viewport;
     * topbar stays put; main scrolls.
     */
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    width: 100%;
    padding-left: 240px;
    overflow: hidden;
  }
  /*
   * Branded scrollbars on portal chrome (app / sidebar nav / main)
   * and table/picker overflow regions. ~13px WebKit; Firefox auto + brand colors.
   */
  .cs-portal-app,
  .cs-portal-sidebar,
  .cs-portal-nav,
  .cs-portal-main,
  .cs-portal-picker,
  .cs-portal-url-list,
  .cs-portal-display-list,
  .cs-portal-table-wrap {
    scrollbar-width: auto;
    scrollbar-color: var(--cs-portal-scroll-thumb) var(--cs-portal-scroll-track);
  }
  .cs-portal-app::-webkit-scrollbar,
  .cs-portal-sidebar::-webkit-scrollbar,
  .cs-portal-nav::-webkit-scrollbar,
  .cs-portal-main::-webkit-scrollbar,
  .cs-portal-picker::-webkit-scrollbar,
  .cs-portal-url-list::-webkit-scrollbar,
  .cs-portal-display-list::-webkit-scrollbar,
  .cs-portal-table-wrap::-webkit-scrollbar {
    width: var(--cs-portal-scroll-w);
    height: var(--cs-portal-scroll-w);
  }
  .cs-portal-app::-webkit-scrollbar-track,
  .cs-portal-sidebar::-webkit-scrollbar-track,
  .cs-portal-nav::-webkit-scrollbar-track,
  .cs-portal-main::-webkit-scrollbar-track,
  .cs-portal-picker::-webkit-scrollbar-track,
  .cs-portal-url-list::-webkit-scrollbar-track,
  .cs-portal-display-list::-webkit-scrollbar-track,
  .cs-portal-table-wrap::-webkit-scrollbar-track {
    background: var(--cs-portal-scroll-track);
    border-radius: 999px;
  }
  .cs-portal-app::-webkit-scrollbar-thumb,
  .cs-portal-sidebar::-webkit-scrollbar-thumb,
  .cs-portal-nav::-webkit-scrollbar-thumb,
  .cs-portal-main::-webkit-scrollbar-thumb,
  .cs-portal-picker::-webkit-scrollbar-thumb,
  .cs-portal-url-list::-webkit-scrollbar-thumb,
  .cs-portal-display-list::-webkit-scrollbar-thumb,
  .cs-portal-table-wrap::-webkit-scrollbar-thumb {
    background: var(--cs-portal-scroll-thumb);
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
  }
  .cs-portal-app::-webkit-scrollbar-thumb:hover,
  .cs-portal-sidebar::-webkit-scrollbar-thumb:hover,
  .cs-portal-nav::-webkit-scrollbar-thumb:hover,
  .cs-portal-main::-webkit-scrollbar-thumb:hover,
  .cs-portal-picker::-webkit-scrollbar-thumb:hover,
  .cs-portal-url-list::-webkit-scrollbar-thumb:hover,
  .cs-portal-display-list::-webkit-scrollbar-thumb:hover,
  .cs-portal-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--cs-portal-scroll-thumb-hover);
    background-clip: padding-box;
  }
  .cs-portal-app::-webkit-scrollbar-corner,
  .cs-portal-sidebar::-webkit-scrollbar-corner,
  .cs-portal-nav::-webkit-scrollbar-corner,
  .cs-portal-main::-webkit-scrollbar-corner,
  .cs-portal-picker::-webkit-scrollbar-corner,
  .cs-portal-url-list::-webkit-scrollbar-corner,
  .cs-portal-display-list::-webkit-scrollbar-corner,
  .cs-portal-table-wrap::-webkit-scrollbar-corner {
    background: var(--cs-portal-scroll-track);
  }
  .cs-portal-table-wrap {
    max-height: 28rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }
  .cs-portal-table-wrap:has(.cs-admin-actions-menu[open]) {
    overflow: visible;
    max-height: none;
  }
  /* Sticky header row for all scrolling portal tables / pickers */
  .cs-portal-table-wrap thead th,
  .cs-portal-picker thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #121316;
    background-clip: padding-box;
    box-shadow: 0 1px 0 var(--cs-portal-line);
  }
  .cs-portal-table-wrap > .cs-portal-table,
  .cs-portal-picker .cs-portal-table {
    border-collapse: separate;
    border-spacing: 0;
  }
  .cs-portal-topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 0 0 auto;
    position: relative;
    z-index: 35;
    min-height: 3.25rem;
    padding: 0.45rem 2.15rem;
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid var(--cs-portal-line);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
  }
  .cs-portal-topbar__brand {
    display: none;
  }
  .cs-portal-menu-toggle {
    display: none;
  }
  .cs-portal-backdrop {
    display: none;
  }
  .cs-portal-sidebar {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(12, 8, 9, 0.62) 100%);
    border-right: 1px solid var(--cs-portal-line);
    backdrop-filter: blur(12px);
    padding: 1.35rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    max-width: 240px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    z-index: 40;
  }
  .cs-portal-sidebar__head {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 0 0 auto;
  }
  .cs-portal-sidebar__close {
    display: none;
  }
  .cs-portal-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 0 0.15rem;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
  }
  .cs-portal-brand span { color: var(--cs-portal-accent); }
  .cs-portal-brand__logo {
    display: block;
    width: 92%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .cs-portal-brand__icon {
    display: block;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    object-fit: cover;
  }
  .cs-portal-nav {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
  }
  .cs-portal-nav__group { display: flex; flex-direction: column; gap: 0.2rem; }
  .cs-portal-nav__group + .cs-portal-nav__group {
    margin-top: 0.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .cs-portal-nav__label {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0.35rem 0.55rem;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
    cursor: default;
  }
  .cs-portal-nav a {
    display: flex;
    align-items: center; /* optical middle: tight text line-box + cap-height icon */
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #b0b0b0;
    font-size: 0.92rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }
  .cs-portal-nav__text {
    line-height: 1;
  }
  .cs-portal-nav__icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 0.92em;
    height: 0.92em;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    line-height: 0;
    /* nudge down so stroke optical center matches Latin caps (not hovering high) */
    transform: translateY(0.06em);
  }
  .cs-portal-nav__icon svg {
    width: 0.92em;
    height: 0.92em;
    display: block;
    flex: 0 0 auto;
  }
  .cs-portal-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }
  .cs-portal-nav a:hover .cs-portal-nav__icon {
    color: #c8c8c8;
  }
  .cs-portal-nav a.is-active {
    background: rgba(225, 29, 46, 0.20);
    color: #fff;
    font-weight: 600;
    border-color: rgba(225, 29, 46, 0.35);
    box-shadow: inset 3px 0 0 var(--cs-portal-accent);
  }
  .cs-portal-nav a.is-active .cs-portal-nav__icon {
    color: var(--cs-portal-accent);
  }
  /* Sidebar foot removed: account chrome lives in .cs-portal-topbar */
  .cs-portal-sidebar__foot {
    display: none;
  }
  .cs-portal-chatbots-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .cs-portal-chatbots-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .cs-portal-chatbots-list__item:last-child { border-bottom: 0; }
  .cs-portal-chatbots-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
  }
  .cs-portal-chatbots-list__actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
  }
  .cs-portal-chatbots-list__actions .cs-portal__btn {
    flex: 0 0 auto;
    width: auto;
  }
  .cs-portal-chatbots-account {
    color: var(--cs-portal-ink);
    font-weight: 650;
  }
  .cs-portal-chatbots-sep {
    color: var(--cs-portal-muted-dim);
  }
  .cs-portal-chatbots-usage {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    margin: 0 0 1.15rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--cs-portal-line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.88rem;
    color: var(--cs-portal-ink-soft);
  }
  .cs-portal-chatbots-usage__count {
    font-weight: 650;
    color: var(--cs-portal-ink);
  }
  .cs-portal-chatbots-usage__plan {
    color: var(--cs-portal-muted);
  }
  .cs-portal-chatbots-stack .cs-portal-chatbots-table td {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  .cs-portal-chatbots-stack .cs-portal-chatbots-table .cs-portal-col-site {
    min-width: 8rem;
    max-width: 14rem;
  }
  .cs-portal-chatbots-stack .cs-portal-chatbots-table .cs-portal-col-site a {
    color: var(--cs-portal-ink);
    text-decoration: none;
    word-break: break-word;
  }
  .cs-portal-chatbots-stack .cs-portal-chatbots-table .cs-portal-col-site a:hover {
    color: #fff;
    text-decoration: underline;
  }
  .cs-portal-site-muted {
    color: var(--cs-portal-muted);
    font-size: 0.85rem;
  }
  .cs-portal-chatbots-stack .cs-portal-chatbots-table .cs-portal-col-action {
    width: 1%;
    min-width: 12.5rem;
    white-space: nowrap;
  }
  .cs-portal-create-bot-section .cs-portal-create-hero {
    max-width: 26rem;
  }
  .cs-portal-create-bot-section .cs-portal__actions .cs-portal__btn {
    width: auto;
    min-width: 10rem;
  }
  .cs-portal-account-name-readonly {
    margin: 0;
  }
  .cs-portal-account-name-readonly strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.05rem;
  }
  @media (max-width: 820px) {
    .cs-portal-app {
      display: block;
      padding-left: 0;
      padding-top: 4rem;
      box-sizing: border-box;
    }
    .cs-portal-topbar {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      gap: 0.55rem;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      min-height: 4rem;
      padding: 0.55rem 0.75rem;
      background: rgba(0, 0, 0, 0.92);
      border-bottom: 1px solid var(--cs-portal-line);
      backdrop-filter: blur(8px);
    }
    .cs-portal-topbar__brand {
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      display: flex;
      align-items: center;
      min-width: 0;
      flex: 0 1 auto;
      max-width: 38%;
      order: 1;
    }
    .cs-portal-topbar__brand span { color: var(--cs-portal-accent); }
    .cs-portal-topbar__brand-icon {
      display: block;
      width: 1.85rem;
      height: 1.85rem;
      border-radius: 50%;
      object-fit: cover;
      flex: 0 0 auto;
    }
    .cs-portal-topbar__brand-logo {
      display: block;
      height: 2.55rem;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      object-position: left center;
      background: transparent;
      border: 0;
      box-shadow: none;
    }
    .cs-portal-account {
      order: 2;
      flex: 1 1 auto;
      justify-content: flex-end;
      gap: 0.55rem;
      min-width: 0;
    }
    .cs-portal-account__cluster-label {
      font-size: 0.58rem;
    }
    .cs-portal-account__divider {
      min-height: 2.1rem;
      margin: 0;
    }
    .cs-portal-account__bot {
      max-width: min(8.5rem, 30vw);
    }
    .cs-portal-account__identity,
    .cs-portal-user-menu__label {
      max-width: 5rem;
    }
    .cs-portal-menu-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      order: 3;
      margin-left: 0;
      width: 2.4rem;
      height: 2.4rem;
      border-radius: 8px;
      border: 1px solid var(--cs-portal-line);
      background: rgba(255,255,255,0.04);
      color: #fff;
      cursor: pointer;
      padding: 0;
    }
    .cs-portal-menu-toggle:focus-visible {
      outline: 2px solid rgba(225, 29, 46, 0.55);
      outline-offset: 2px;
    }
    .cs-portal-menu-toggle__bars {
      display: block;
      width: 1.1rem;
      height: 2px;
      background: currentColor;
      box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
    }
    .cs-portal-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 55;
      background: rgba(0, 0, 0, 0.55);
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
    }
    .cs-portal-app.is-nav-open .cs-portal-backdrop {
      opacity: 1;
      pointer-events: auto;
      visibility: visible;
    }
    /*
     * Closed drawer is off-canvas + non-interactive by default (no .is-nav-open).
     * Do NOT transition by default â€” crossing the 820px breakpoint would otherwise
     * animate transform from desktop none â†’ translateX(105%) and flash the nav.
     */
    .cs-portal-sidebar {
      position: fixed;
      top: 0;
      right: 0;
      left: auto;
      bottom: 0;
      width: min(18.5rem, 88vw);
      height: 100vh;
      max-height: 100vh;
      border-right: 0;
      border-left: 1px solid var(--cs-portal-line);
      transform: translateX(105%);
      visibility: hidden;
      pointer-events: none;
      transition: none;
      z-index: 60;
      box-shadow: none;
    }
    .cs-portal-app.is-nav-open .cs-portal-sidebar {
      transform: translateX(0);
      visibility: visible;
      pointer-events: auto;
      box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    }
    /* Motion only while explicitly open/closing â€” never during resize/breakpoint */
    .cs-portal-app.is-nav-motion:not(.is-nav-no-motion) .cs-portal-sidebar {
      transition: transform 0.2s ease, visibility 0s linear 0.2s;
    }
    .cs-portal-app.is-nav-motion.is-nav-open:not(.is-nav-no-motion) .cs-portal-sidebar {
      transition: transform 0.2s ease, visibility 0s linear 0s;
    }
    .cs-portal-app.is-nav-motion:not(.is-nav-no-motion) .cs-portal-backdrop {
      transition: opacity 0.18s ease, visibility 0s linear 0.18s;
    }
    .cs-portal-app.is-nav-motion.is-nav-open:not(.is-nav-no-motion) .cs-portal-backdrop {
      transition: opacity 0.18s ease, visibility 0s linear 0s;
    }
    .cs-portal-app.is-nav-no-motion .cs-portal-sidebar,
    .cs-portal-app.is-nav-no-motion .cs-portal-backdrop {
      transition: none !important;
    }
    .cs-portal-sidebar__close {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      align-self: flex-end;
      width: 2.2rem;
      height: 2.2rem;
      border-radius: 8px;
      border: 1px solid var(--cs-portal-line);
      background: transparent;
      color: #c4c4c4;
      cursor: pointer;
      font-size: 1.25rem;
      line-height: 1;
    }
    .cs-portal-nav a.is-active {
      box-shadow: inset -3px 0 0 var(--cs-portal-accent);
    }
    .cs-portal-main {
      height: 100%;
      max-height: 100%;
      padding: 1.25rem 1rem 2.5rem;
    }
  }
  /* Full width of the main column beside the fixed sidebar â€” open on the atmosphere */
  .cs-portal-main {
    padding: 1.35rem 2.15rem 3rem;
    max-width: none;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }
  .cs-portal-main h1,
  .cs-portal-page-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    letter-spacing: -0.025em;
  }
  .cs-portal-page-title {
    display: flex;
    align-items: center; /* optical middle beside H1 glyphs */
    gap: 0.45rem;
    line-height: 1;
  }
  .cs-portal-page-title__text {
    line-height: 1;
  }
  .cs-portal-page-title__icon {
    display: inline-flex;
    flex: 0 0 auto;
    /* Display H1 has large internal leading; size to ~cap height of the word */
    width: 0.78em;
    height: 0.78em;
    align-items: center;
    justify-content: center;
    color: var(--cs-portal-accent);
    opacity: 0.92;
    line-height: 0;
    transform: translateY(0.05em);
  }
  .cs-portal-page-title__icon svg {
    width: 0.78em;
    height: 0.78em;
    display: block;
    flex: 0 0 auto;
  }
  .cs-portal-main .cs-portal-sub {
    margin: 0 0 1.85rem;
    color: var(--cs-portal-muted);
    max-width: 42rem;
    line-height: 1.55;
  }
  /* Soft section panels (Account pattern): shared by .cs-portal-section and .cs-portal-card */
  .cs-portal-section,
  .cs-portal-card {
    margin: 0 0 var(--cs-portal-section-gap);
    padding: var(--cs-portal-section-pad-y) var(--cs-portal-section-pad-x);
    background: var(--cs-portal-panel);
    border: 1px solid var(--cs-portal-line-soft);
    border-radius: 12px;
    box-shadow: none;
  }
  .cs-portal-section:last-child,
  .cs-portal-card:last-child {
    margin-bottom: 0;
  }
  .cs-portal-section__title,
  .cs-portal-card h2,
  .cs-portal-section > h2 {
    margin: 0 0 var(--cs-portal-hint-gap);
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: #fff;
    line-height: 1.3;
  }
  /* Beat .cs-portal-section p { margin:0 } so leadâ†’body uses --cs-portal-lead-gap */
  .cs-portal-section p.cs-portal-section__lead,
  .cs-portal-section__lead {
    margin: -0.25rem 0 var(--cs-portal-lead-gap);
    color: var(--cs-portal-muted);
    font-size: 0.88rem;
    line-height: 1.45;
  }
  /* Lead already owns the gap â€” donâ€™t double-stack on following body */
  .cs-portal-section__lead + .cs-portal-grid,
  .cs-portal-section__lead + .cs-portal-chips,
  .cs-portal-section__lead + .cs-portal-health,
  .cs-portal-section__lead + .cs-portal-dash-plan,
  .cs-portal-section__title + .cs-portal-health,
  .cs-portal-section__title + .cs-portal-chips,
  .cs-portal-section__title + .cs-portal-grid {
    margin-top: 0;
  }
  .cs-portal-section p,
  .cs-portal-card p {
    margin: 0;
    color: var(--cs-portal-ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
  }
  /* Titleâ†’body (no lead): use lead-gap so body isnâ€™t flush under the heading */
  .cs-portal-section:not(:has(> .cs-portal-section__lead)) > .cs-portal-section__title {
    margin-bottom: var(--cs-portal-lead-gap);
  }
  /*
   * Form pages: narrow section that hugs fields (no empty glass to the right).
   * Support â€œNew requestâ€ + Account Profile / Change password â€” ~38rem column.
   */
  .cs-portal-page-support .cs-portal-section:has(> .cs-portal-form),
  .cs-portal-page-support .cs-portal-section > .cs-portal-form,
  .cs-portal-page-account .cs-portal-section:has(> .cs-portal-form),
  .cs-portal-page-account .cs-portal-section > .cs-portal-form {
    max-width: 38rem;
    width: 100%;
  }
  .cs-portal-page-support .cs-portal-section > .cs-portal-form .cs-portal__field,
  .cs-portal-page-support .cs-portal-section > .cs-portal-form .cs-portal__field > .cs-select-wrap,
  .cs-portal-page-support .cs-portal-section > .cs-portal-form .cs-portal__field input,
  .cs-portal-page-support .cs-portal-section > .cs-portal-form .cs-portal__field textarea,
  .cs-portal-page-support .cs-portal-section > .cs-portal-form .cs-portal__field select,
  .cs-portal-page-support .cs-portal-section > .cs-portal-form > .cs-portal__btn,
  .cs-portal-page-account .cs-portal-section > .cs-portal-form .cs-portal__field,
  .cs-portal-page-account .cs-portal-section > .cs-portal-form .cs-portal__field input,
  .cs-portal-page-account .cs-portal-section > .cs-portal-form .cs-portal__actions,
  .cs-portal-page-account .cs-portal-section > .cs-portal-form .cs-portal__actions .cs-portal__btn {
    width: 100%;
    max-width: none;
  }
  .cs-portal-section + .cs-portal-section,
  .cs-portal-card + .cs-portal-card,
  .cs-portal-section + .cs-portal-card,
  .cs-portal-card + .cs-portal-section {
    margin-top: 0;
  }
  .cs-portal-section-stack,
  .cs-portal-account-stack {
    display: grid;
    gap: var(--cs-portal-section-gap);
  }
  .cs-portal-section-stack > .cs-portal-section,
  .cs-portal-section-stack > .cs-portal-card,
  .cs-portal-account-stack > .cs-portal-section,
  .cs-portal-account-stack > .cs-portal-card {
    margin-bottom: 0;
  }
  .cs-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: var(--cs-portal-field-gap);
    margin-bottom: var(--cs-portal-card-gap);
  }
  .cs-portal-stat {
    border: 1px solid var(--cs-portal-line);
    border-radius: 14px;
    padding: 1.05rem 1.15rem;
    background: var(--cs-portal-panel);
  }
  /* Inside soft section panels: solid darker chips (not the same glass as parent) */
  .cs-portal-section .cs-portal-stat {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    background: var(--cs-portal-panel-strong);
    box-shadow: none;
  }
  .cs-portal-stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cs-portal-muted);
    margin: 0 0 0.35rem;
  }
  .cs-portal-stat__value {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
  }
  .cs-portal-stat__meta { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--cs-portal-muted-dim); }
  .cs-portal-chart {
    display: flex;
    gap: 0.3rem;
    align-items: stretch;
    margin-top: 0.75rem;
    min-height: 10.5rem;
  }
  .cs-portal-chart__yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: auto;
    min-width: 1.15rem;
    max-width: 2.75rem;
    flex: 0 0 auto;
    font-size: 0.68rem;
    color: var(--cs-portal-muted-dim);
    text-align: left;
    padding: 0.85rem 0.15rem 1.55rem 0;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .cs-portal-chart__main { flex: 1 1 auto; min-width: 0; }
  .cs-portal-chart__plot {
    position: relative;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
  }
  .cs-portal-chart__grid {
    position: absolute;
    left: 0;
    right: 0;
    top: 0.75rem;
    height: 7.5rem;
    pointer-events: none;
    z-index: 0;
  }
  .cs-portal-chart__gridline {
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
  }
  .cs-portal-chart__gridline--top { top: 0; }
  .cs-portal-chart__gridline--mid { top: 50%; }
  .cs-portal-chart__gridline--zero {
    bottom: 0;
    border-top-style: solid;
    border-top-color: rgba(255, 255, 255, 0.14);
  }
  .cs-portal-chart__bars {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 2px;
    height: 9rem;
    min-height: 9rem;
    padding: 0.75rem 0.35rem 0.35rem;
    box-sizing: border-box;
    overflow-x: auto;
  }
  .cs-portal-chart__bar-wrap {
    flex: 1 1 0;
    min-width: 4px;
    max-width: none;
    height: 7.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    outline: none;
  }
  .cs-portal-chart__bars--months {
    overflow-x: visible;
    justify-content: flex-start;
    gap: 3px;
  }
  .cs-portal-chart__bars--months .cs-portal-chart__bar-wrap {
    max-width: none;
  }
  .cs-portal-chart__bar {
    width: 100%;
    max-width: none;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #ff4d5c, var(--cs-portal-accent, #e11d2e));
    min-height: 0;
    transition: filter 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  }
  .cs-portal-chart-root.is-loading {
    opacity: 0.45;
    pointer-events: none;
  }
  .cs-portal-chart__bar.is-zero {
    height: 2px !important;
    opacity: 0.28;
    background: rgba(255, 255, 255, 0.18);
  }
  .cs-portal-chart__bar-wrap:hover .cs-portal-chart__bar:not(.is-zero),
  .cs-portal-chart__bar-wrap:focus-visible .cs-portal-chart__bar:not(.is-zero),
  .cs-portal-chart__bar-wrap.is-tip-active .cs-portal-chart__bar:not(.is-zero) {
    filter: brightness(1.16);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
  .cs-portal-chart__bar-wrap:hover .cs-portal-chart__bar.is-zero,
  .cs-portal-chart__bar-wrap:focus-visible .cs-portal-chart__bar.is-zero {
    opacity: 0.5;
  }
  .cs-portal-chart__xaxis {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    margin-top: 0.4rem;
    padding: 0 0.35rem;
    overflow: visible;
    font-size: 0.58rem;
    color: var(--cs-portal-muted-dim);
    font-variant-numeric: tabular-nums;
  }
  .cs-portal-chart__xlabel {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    text-align: center;
    overflow: visible;
    line-height: 1.1;
    white-space: nowrap;
    opacity: 1;
  }
  .cs-portal-chart__xlabel.is-muted { opacity: 0; }
  .cs-portal-chart__xlabel.is-today {
    color: #ffb4b8;
    font-weight: 650;
  }
  .cs-portal-chart__xaxis--months {
    justify-content: flex-start;
    gap: 3px;
    overflow: visible;
    font-size: 0.65rem;
  }
  .cs-portal-chart__xaxis--months .cs-portal-chart__xlabel {
    max-width: none;
    font-size: 0.72rem;
    opacity: 1;
  }
  @media (max-width: 720px) {
    .cs-portal-chart__xaxis:not(.cs-portal-chart__xaxis--months) {
      font-size: 0.5rem;
      margin-top: 0.55rem;
      min-height: 1.35rem;
    }
    .cs-portal-chart__xaxis:not(.cs-portal-chart__xaxis--months) .cs-portal-chart__xlabel {
      transform: rotate(-40deg);
      transform-origin: center top;
      padding-top: 0.15rem;
    }
  }
  .cs-portal-chart__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 9rem;
    color: var(--cs-portal-muted-dim);
    font-size: 0.88rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
  }
  .cs-portal-chart-tip {
    position: fixed;
    z-index: 100000;
    min-width: 9.5rem;
    max-width: 16rem;
    padding: 0.65rem 0.8rem;
    background: #1a1c22;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
  }
  .cs-portal-chart-tip.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .cs-portal-chart-tip__date {
    font-size: 0.82rem;
    font-weight: 650;
    color: #f3f4f6;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }
  .cs-portal-chart-tip__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cs-portal-chart-tip__metric {
    font-size: 0.68rem;
    color: var(--cs-portal-muted-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .cs-portal-chart-tip__value {
    font-size: 1.05rem;
    font-weight: 650;
    color: #fca5a5;
    font-variant-numeric: tabular-nums;
  }
  .cs-portal-month-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
  }
  .cs-portal-month-nav select {
    min-width: 11.75rem;
    white-space: nowrap;
  }
  .cs-portal-month-nav--year select {
    min-width: 5.5rem;
  }
  .cs-portal-month-nav__select {
    display: inline-block;
    vertical-align: middle;
  }
  .cs-portal-month-nav .cs-select-wrap {
    display: inline-block;
    width: auto;
    min-width: 11.75rem;
    max-width: none;
    vertical-align: middle;
  }
  .cs-portal-month-nav--year .cs-select-wrap {
    min-width: 5.5rem;
  }
  .cs-portal-month-nav .cs-select-trigger,
  .cs-portal-month-nav .cs-select-option {
    white-space: nowrap;
  }
  .cs-portal-month-nav .cs-select-trigger {
    width: auto;
    min-width: 11.75rem;
  }
  .cs-portal-month-nav--year .cs-select-trigger {
    min-width: 5.5rem;
  }
  /* Getting started / Help â€” mini cards match section-nested soft panels (.cs-portal-stat) */
  .cs-portal-help-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
    gap: 1.15rem;
  }
  .cs-portal-help-steps li {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 100%;
    padding: 1.05rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    background: var(--cs-portal-panel-strong);
    box-shadow: none;
  }
  .cs-portal-help-steps__num {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(225, 29, 46, 0.18);
    border: 1px solid rgba(225, 29, 46, 0.4);
    color: #ffb4b8;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cs-portal-help-steps__copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .cs-portal-help-steps__title {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
  }
  .cs-portal-help-steps__desc {
    display: block;
    color: var(--cs-portal-ink-soft);
    font-size: 0.86rem;
    line-height: 1.5;
  }
  /* Help Go/Done â€” same Purge/ghost gray (neutral hover, no red outline). */
  .cs-portal-help-steps__go {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #3a3d45;
    background: #1c1e24;
    color: #f0f0f0 !important;
    font-size: 0.8rem;
    font-weight: 600;
  }
  .cs-portal-help-steps__go:hover {
    filter: none;
    border-color: #4a4d55;
    color: #fff !important;
    background: #252830;
  }
  .cs-portal-faq details {
    border: 1px solid var(--cs-portal-line);
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
  }
  .cs-portal-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #ececec;
    font-size: 0.92rem;
  }
  .cs-portal-faq details[open] summary { margin-bottom: 0.45rem; }
  .cs-portal-faq p {
    margin: 0;
    color: #a8a8a8;
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .cs-portal-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--cs-portal-hint-gap); }
  .cs-portal-chip {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--cs-portal-line);
    font-size: 0.78rem;
    color: #c4c4c4;
    background: rgba(255,255,255,0.03);
  }
  .cs-portal-chip--ok { border-color: rgba(62, 207, 142, 0.45); color: #b8f5d4; }
  /* Status / filter chips (All, New, Contactedâ€¦) â€” idle + soft-red selected from shared chrome */
  .cs-portal-chips--filters a.cs-portal-chip {
    cursor: pointer;
    text-decoration: none;
  }
  /* Knowledge clear-cache ops: compact recovery tools (tighter than major soft panels) */
  .cs-portal-section.cs-portal-cache-ops-section {
    margin-bottom: 1rem;
    padding: 0.7rem 0.95rem 0.75rem;
  }
  .cs-portal-section.cs-portal-cache-ops-section > .cs-portal-section__title {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
  }
  .cs-portal-section.cs-portal-cache-ops-section > .cs-portal-section__lead {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .cs-portal-cache-ops {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
  }
  @media (min-width: 720px) {
    .cs-portal-cache-ops {
      flex-direction: row;
      align-items: stretch;
      gap: 0.65rem;
    }
    .cs-portal-cache-ops__item {
      flex: 1 1 0;
      min-width: 0;
    }
  }
  .cs-portal-cache-ops__item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--cs-portal-line-soft);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
  }
  /* Beat .cs-portal-form .cs-portal__actions { margin-top: form-action-gap } on nested forms */
  .cs-portal-cache-ops-section.cs-portal-form .cs-portal-cache-ops__item .cs-portal__actions,
  .cs-portal-cache-ops__item .cs-portal__actions {
    margin-top: 0;
    margin-bottom: 0;
  }
  .cs-portal-cache-ops__item .cs-portal-btn-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
  }
  /* Look â†’ Embed: shortcode / CSS class custom triggers */
  .cs-portal-embed-guide {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  @media (min-width: 900px) {
    .cs-portal-embed-guide {
      display: grid;
      grid-template-columns: 1.35fr 1fr;
      gap: 0.85rem;
      align-items: start;
    }
  }
  .cs-portal-embed-snippet {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--cs-portal-line-soft);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
  }
  .cs-portal-embed-snippet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
  }
  .cs-portal-embed-snippet__head strong {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 650;
  }
  .cs-portal-embed-code {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--cs-portal-line);
    background: #080808;
    color: #f0f0f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-all;
    white-space: pre-wrap;
  }
  .cs-portal-embed-fields {
    display: grid;
    gap: 0.7rem;
  }
  .cs-portal-embed-fields .cs-portal__field {
    margin-bottom: 0;
  }
  .cs-portal-embed-fields .cs-portal__hint {
    margin-top: 0.35rem;
  }
  .cs-portal-section p.cs-portal-embed-both-note,
  .cs-portal-embed-both-note {
    margin: 0 0 0.85rem;
    color: var(--cs-portal-muted-soft);
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .cs-portal-embed-example {
    margin: 0.45rem 0 0;
  }
  .cs-portal-embed-example code {
    display: inline;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    font-size: 0.78rem;
  }
  /* Dashboard Plan card â€” focused allotment summary + CTAs
   * (p.* selectors beat .cs-portal-section p { margin:0 }) */
  .cs-portal-section p.cs-portal-dash-plan__name,
  .cs-portal-dash-plan__name {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.25;
  }
  .cs-portal-section p.cs-portal-dash-plan__summary,
  .cs-portal-dash-plan__summary {
    margin: 0;
    color: var(--cs-portal-muted);
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .cs-portal-section p.cs-portal-dash-plan__site,
  .cs-portal-dash-plan__site {
    margin: var(--cs-portal-hint-gap) 0 0;
    color: var(--cs-portal-muted-dim);
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-all;
  }
  .cs-portal-dash-plan__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.65rem;
    margin-top: var(--cs-portal-form-action-gap);
  }
  .cs-portal-dash-plan__meters + .cs-portal-dash-plan__site {
    margin-top: 0.85rem;
  }
  .cs-portal-dash-plan__meters + .cs-portal-dash-plan__actions {
    margin-top: var(--cs-portal-form-action-gap);
  }
  .cs-portal-dash-plan__actions .cs-portal__btn {
    width: auto;
  }
  /* Secondary / quick-link buttons â€” Purge/ghost gray (neutral hover, no red outline) */
  .cs-portal-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--cs-portal-hint-gap); }
  .cs-portal-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    min-height: 2.35rem;
    border-radius: 8px;
    border: 1px solid #3a3d45;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f0f0f0 !important;
    background: #1c1e24;
  }
  .cs-portal-links a:hover {
    filter: none;
    border-color: #4a4d55;
    color: #fff !important;
    background: #252830;
  }
  .cs-portal-leads-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  @media (min-width: 900px) {
    .cs-portal-leads-layout.is-split {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
      align-items: start;
    }
  }
  .cs-portal-leads-table td,
  .cs-portal-leads-table td a {
    color: var(--cs-portal-ink-soft);
    word-break: break-word;
  }
  .cs-portal-leads-table td a {
    font-weight: 500;
    text-decoration: none;
  }
  .cs-portal-leads-table td a:hover {
    color: #fff;
  }
  .cs-portal-leads-table tr.is-selected td { background: rgba(225, 29, 46, 0.08); }
  .cs-portal-leads-table tr.is-selected td a { color: #fff; }
  .cs-portal-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin: 0 0 0.85rem;
  }
  /*
   * Leads / picker toolbar: search, Rows (native + enhanced select), Search btn
   * share one computed height via --cs-portal-control-h. Higher specificity beats
   * .cs-portal__btn--sm (2.35rem) and field select padding rules.
   */
  .cs-portal-table-toolbar > .cs-portal-table-search,
  .cs-portal-table-toolbar > .cs-portal-table-size,
  .cs-portal-table-toolbar > .cs-portal__btn,
  .cs-portal-table-toolbar > .cs-portal__btn.cs-portal__btn--sm,
  .cs-portal-table-toolbar > .cs-portal-filter-count {
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
    box-sizing: border-box;
  }
  .cs-portal-table-toolbar > .cs-portal-table-search,
  .cs-portal-table-toolbar > .cs-portal-table-size,
  .cs-portal-table-toolbar > .cs-portal__btn,
  .cs-portal-table-toolbar > .cs-portal__btn.cs-portal__btn--sm {
    height: var(--cs-portal-control-h);
    min-height: var(--cs-portal-control-h);
    max-height: var(--cs-portal-control-h);
  }
  .cs-portal-table-toolbar > .cs-portal__btn,
  .cs-portal-table-toolbar > .cs-portal__btn.cs-portal__btn--sm {
    width: auto;
    padding: 0 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: 1px;
    border-style: solid;
  }
  /* Primary red in toolbars: keep contrasting light-red edge (do not zero border). */
  .cs-portal-table-toolbar > .cs-portal__btn:not(.cs-portal__btn--ghost):not(.cs-portal__btn--secondary),
  .cs-portal-table-toolbar > .cs-portal__btn.cs-portal__btn--sm:not(.cs-portal__btn--ghost):not(.cs-portal__btn--secondary) {
    border-color: #ff6b78;
  }
  /* Ghost/secondary in toolbars keep 1px border + purge-style hover (no red). */
  .cs-portal-table-toolbar > .cs-portal__btn--ghost,
  .cs-portal-table-toolbar > .cs-portal__btn--secondary,
  .cs-portal-table-toolbar > .cs-portal__btn.cs-portal__btn--sm.cs-portal__btn--ghost,
  .cs-portal-table-toolbar > .cs-portal__btn.cs-portal__btn--sm.cs-portal__btn--secondary {
    border-width: 1px;
    border-style: solid;
    border-color: #3a3d45;
    background: #1c1e24;
    color: #f0f0f0;
  }
  .cs-portal-table-toolbar > .cs-portal__btn--ghost:hover,
  .cs-portal-table-toolbar > .cs-portal__btn--secondary:hover,
  .cs-portal-table-toolbar > .cs-portal__btn.cs-portal__btn--sm.cs-portal__btn--ghost:hover,
  .cs-portal-table-toolbar > .cs-portal__btn.cs-portal__btn--sm.cs-portal__btn--secondary:hover {
    border-color: #4a4d55;
    color: #fff;
    background: #252830;
    transform: none;
    box-shadow: none;
  }
  .cs-portal-table-search {
    flex: 1 1 12rem;
    min-width: 10rem;
    max-width: 22rem;
    width: auto;
    height: var(--cs-portal-control-h);
    min-height: var(--cs-portal-control-h);
    max-height: var(--cs-portal-control-h);
    padding: 0 0.75rem;
    line-height: 1.25;
    border-radius: 8px;
    border: 1px solid #3a3d45;
    background: #121316;
    color: #f3f4f6;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    box-shadow: none;
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
  }
  .cs-portal-table-search:hover {
    border-color: #4a4d55;
  }
  .cs-portal-table-search:focus {
    outline: none;
    border-color: rgba(225, 29, 46, 0.75);
    box-shadow: 0 0 0 2px rgba(225, 29, 46, 0.22);
  }
  .cs-portal-table-search::placeholder {
    color: var(--cs-portal-muted-dim);
    opacity: 1;
  }
  .cs-portal-table-size {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: var(--cs-portal-control-h);
    min-height: var(--cs-portal-control-h);
    max-height: var(--cs-portal-control-h);
    font-size: 0.78rem;
    line-height: 1;
    color: var(--cs-portal-muted);
  }
  .cs-portal-table-toolbar .cs-portal-table-size select,
  .cs-portal-table-toolbar .cs-portal-table-size .cs-select-wrap,
  .cs-portal-table-toolbar .cs-portal-table-size .cs-select-trigger {
    height: var(--cs-portal-control-h);
    min-height: var(--cs-portal-control-h);
    max-height: var(--cs-portal-control-h);
    box-sizing: border-box;
    margin: 0;
  }
  .cs-portal-table-size select {
    width: auto;
    min-width: 4.75rem;
    height: var(--cs-portal-control-h);
    min-height: var(--cs-portal-control-h);
    max-height: var(--cs-portal-control-h);
    padding: 0 32px 0 12px;
    line-height: 1.25;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  .cs-portal-table-toolbar .cs-portal-table-size .cs-select-wrap {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 4.75rem;
    max-width: 6.5rem;
  }
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-type-filter) .cs-select-wrap,
  .cs-portal-table-toolbar .cs-portal-table-size .cs-portal-type-filter {
    min-width: 8.5rem;
    max-width: 12rem;
  }
  /* Status / type filter menus: fit longest label (e.g. Not connected), never wrap. */
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-type-filter) .cs-select-menu {
    left: 0;
    right: auto;
    width: max-content;
    min-width: 100%;
    max-width: min(100vw - 2rem, 18rem);
  }
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-type-filter) .cs-select-trigger,
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-type-filter) .cs-select-option {
    white-space: nowrap;
  }
  /* Account filter (admin): full names; Status/Rows stay compact. */
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-account-filter) select.cs-portal-account-filter,
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-account-filter) .cs-select-wrap {
    min-width: 14rem;
    max-width: min(100vw - 2rem, 22rem);
  }
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-account-filter) .cs-select-trigger {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-account-filter) .cs-select-menu {
    left: 0;
    right: auto;
    width: max-content;
    min-width: 100%;
    max-width: min(100vw - 2rem, 28rem);
  }
  .cs-portal-table-toolbar .cs-portal-table-size:has(.cs-portal-account-filter) .cs-select-option {
    white-space: nowrap;
  }
  .cs-portal-picker__action-hints {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: var(--cs-portal-btn-hint-gap) 0 0.85rem;
    font-size: 0.75rem;
    color: var(--cs-portal-muted-dim);
    line-height: 1.45;
    max-width: 42rem;
  }
  .cs-portal-picker__action-hints strong {
    color: var(--cs-portal-ink-soft);
    font-weight: 600;
  }
  .cs-portal-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--cs-portal-muted);
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    padding: 0.2rem 0.3rem;
    margin: -0.2rem -0.3rem;
    border-radius: 5px;
    border: 1px solid transparent;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  }
  .cs-portal-sort:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .cs-portal-sort.is-active,
  .cs-portal-sort.is-active .cs-portal-sort-ind {
    color: #ff8a90 !important;
  }
  .cs-portal-sort.is-active {
    background: rgba(225, 29, 46, 0.12);
    border-color: rgba(225, 29, 46, 0.28);
  }
  .cs-portal-sort-ind {
    font-size: 0.7em;
    opacity: 0.8;
    margin-left: 0.1rem;
  }
  .cs-portal-table-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.85rem;
  }
  .cs-portal-table-pager[hidden] {
    display: none !important;
  }
  .cs-portal-table-pager-info {
    font-size: 0.78rem;
    color: var(--cs-portal-muted);
  }
  .cs-portal__btn.is-disabled,
  .cs-portal__btn--ghost.is-disabled,
  .cs-portal__btn--secondary.is-disabled {
    opacity: 0.4;
    pointer-events: none;
  }
  .cs-portal-app.is-account-disabled .cs-portal-form:not(.cs-portal-support-form) input:not([type="hidden"]),
  .cs-portal-app.is-account-disabled .cs-portal-form:not(.cs-portal-support-form) select,
  .cs-portal-app.is-account-disabled .cs-portal-form:not(.cs-portal-support-form) textarea,
  .cs-portal-app.is-account-disabled .cs-portal-form:not(.cs-portal-support-form) button[type="submit"] {
    opacity: 0.55;
    pointer-events: none;
  }
  .cs-portal-filter-count {
    font-size: 0.78rem;
    color: var(--cs-portal-muted);
  }
  .cs-portal-lead-msg {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--cs-portal-line);
    background: rgba(255,255,255,0.03);
    color: #c4c4c4;
    white-space: pre-wrap;
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .cs-portal-privacy {
    margin: var(--cs-portal-status-gap) 0 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(225, 29, 46, 0.28);
    background: rgba(225, 29, 46, 0.08);
    color: #ffc9c9;
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .cs-portal-section-nav + .cs-portal-privacy,
  .cs-portal-sub + .cs-portal-privacy {
    margin-top: var(--cs-portal-status-gap);
  }
  .cs-portal-privacy + .cs-portal-flash,
  .cs-portal-privacy + .cs-portal__error {
    margin-top: 0;
  }
  .cs-portal-privacy + .cs-portal-section-stack,
  .cs-portal-privacy + .cs-portal-section,
  .cs-portal-privacy + form.cs-portal-section {
    margin-top: 0;
  }
  .cs-portal-form .cs-portal__field { margin-bottom: var(--cs-portal-field-gap); }
  .cs-portal-form .cs-portal__actions { margin-top: var(--cs-portal-form-action-gap); }
  .cs-portal-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 0.75rem; }
  .cs-portal-table-wrap > .cs-portal-table { margin-top: 0; }
  .cs-portal-table th,
  .cs-portal-table td {
    text-align: left;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid var(--cs-portal-line);
    vertical-align: top;
  }
  .cs-portal-table th:first-child,
  .cs-portal-table td:first-child { padding-left: 1rem; }
  .cs-portal-table th:last-child,
  .cs-portal-table td:last-child { padding-right: 1rem; }
  .cs-portal-table td { color: var(--cs-portal-ink-soft); }
  .cs-portal-table th { color: var(--cs-portal-muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .cs-portal-table th.cs-portal-col-action,
  .cs-portal-table td.cs-portal-col-action {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    text-align: left;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    overflow: visible;
    position: relative;
  }
  .cs-portal-table td.cs-portal-col-action form {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
  .cs-portal-table td.cs-portal-col-action .cs-portal__btn {
    margin: 0;
  }
  .cs-portal-table a:not(.cs-portal-sort):not(.cs-portal__btn) { color: var(--cs-portal-link); word-break: break-all; }
  .cs-portal-table a:not(.cs-portal-sort):not(.cs-portal__btn):hover { color: var(--cs-portal-link-hover); }
  .cs-portal-display-pages[hidden] { display: none !important; }
  .cs-portal-color-row { display: flex; gap: 0.75rem; align-items: center; }
  .cs-portal-color-row input[type="text"] { flex: 1; }
  .cs-portal-color-row input[type="color"] { width: 3rem; flex: 0 0 auto; }
  .cs-portal-url-list { max-height: 14rem; overflow: auto; margin: 0.75rem 0 0; padding: 0; list-style: none; }
  .cs-portal-url-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--cs-portal-line);
    font-size: 0.82rem;
    color: #c4c4c4;
    word-break: break-all;
  }
  .cs-portal-look-panel[hidden] { display: none !important; }
  .cs-portal-look-panel.cs-portal-section {
    margin-bottom: var(--cs-portal-section-gap);
  }
  .cs-portal-look-panel > h2,
  .cs-portal-look-panel > .cs-portal-section__title { margin-top: 0; }
  .cs-portal-look-panel > .cs-portal__hint-block,
  .cs-portal-look-panel > .cs-portal-section__lead {
    margin: -0.35rem 0 1.15rem;
    color: var(--cs-portal-muted);
    font-size: 0.88rem;
    line-height: 1.45;
  }
  /* Brand tab: soft subsection panels for scan hierarchy */
  .cs-portal-look-group {
    margin: 0 0 1.1rem;
    padding: 0.95rem 1.05rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
  }
  .cs-portal-look-group:last-child {
    margin-bottom: 0;
  }
  .cs-portal-look-group__title {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ececec;
  }
  .cs-portal-look-group__hint {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--cs-portal-muted-dim);
  }
  .cs-portal-look-group > .cs-portal__field:last-child {
    margin-bottom: 0.55rem;
  }
  .cs-portal-look-group .cs-portal__field > .cs-portal__hint {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--cs-portal-muted-dim);
  }
  /* Brand Colors: logical pairs / trio on one row; stack when narrow */
  .cs-portal-color-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 0.35rem;
  }
  .cs-portal-color-row-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    align-items: start;
  }
  .cs-portal-color-row-grid--trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cs-portal-color-row-grid > .cs-portal__field {
    margin: 0;
    min-width: 0;
  }
  .cs-portal-color-row-grid .cs-portal-color-row input[type="text"] {
    min-width: 0;
  }
  .cs-portal-color-row-grid .cs-portal__field > .cs-portal__hint {
    margin-top: 0.4rem;
    margin-bottom: 0;
  }
  @media (max-width: 720px) {
    .cs-portal-color-row-grid--trio {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 520px) {
    .cs-portal-color-row-grid,
    .cs-portal-color-row-grid--trio {
      grid-template-columns: 1fr;
    }
  }
  .cs-portal-display-list {
    max-height: 16rem;
    overflow: auto;
    margin: 0.5rem 0 0;
    border: 1px solid var(--cs-portal-line);
    border-radius: 8px;
  }
  .cs-portal-display-list label {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--cs-portal-line);
    color: #ececec;
    font-size: 0.86rem;
    cursor: pointer;
  }
  .cs-portal-display-list label:last-child { border-bottom: 0; }
  .cs-portal-display-list .meta { color: #8e8e8e; font-size: 0.75rem; word-break: break-all; }
  .cs-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0.5rem 0;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--cs-portal-accent), var(--cs-portal-accent-deep));
  }
  .cs-portal-badge.is-bad {
    background: rgba(225, 29, 46, 0.22);
    color: #ff8a90;
    border: 1px solid rgba(225, 29, 46, 0.35);
  }
  .cs-portal-page-users .cs-portal-team-table-wrap {
    max-width: 100%;
  }
  .cs-portal-page-users .cs-portal-table-wrap {
    overflow-x: auto;
    max-width: 100%;
  }
  .cs-portal-page-users .cs-portal-team-table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
  }
  .cs-portal-page-users .cs-portal-team-table .cs-portal-col-user {
    width: 20%;
  }
  .cs-portal-page-users .cs-portal-team-table .cs-portal-col-email {
    width: 24%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .cs-portal-page-users .cs-portal-team-table .cs-portal-col-role {
    width: 7.5rem;
    white-space: nowrap;
  }
  .cs-portal-page-users .cs-portal-team-table .cs-portal-col-bots {
    width: 8.5rem;
    min-width: 7.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cs-portal-page-users .cs-portal-col-action,
  .cs-portal-page-users .cs-portal-team-table th.cs-portal-col-action,
  .cs-portal-page-users .cs-portal-team-table td.cs-portal-col-action {
    width: 9rem;
    min-width: 9rem;
    max-width: 10rem;
    white-space: nowrap;
    overflow: visible;
    vertical-align: middle;
  }
  .cs-portal-page-users .cs-portal-col-action .cs-admin-actions-menu {
    max-width: none;
  }
  .cs-portal-page-users .cs-portal-col-action .cs-admin-actions-menu > summary {
    min-height: 2.35rem;
    padding: 0 1.1rem;
    font-size: 0.88rem;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
  }
  .cs-portal-invite-pre {
    margin: 0 0 0.75rem;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid var(--cs-portal-line);
    border-radius: 8px;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    max-width: 40rem;
    color: var(--cs-portal-ink-soft);
  }
  .cs-portal-team-bots {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
  }
  .cs-portal-field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cs-portal-muted);
  }
  /* Actions menu chrome lives in portal-shared-chrome.css (+ fixed portal script). */
  /*
   * Look/Settings editor: form is the in-flow height driver, with a min-height
   * that always fits the live preview (chat + launcher FAB + caption). Preview
   * is position:absolute with top+bottom:0 so it cannot inflate scrollHeight
   * beyond that min-height. Overflow stays visible so the FAB is not clipped.
   *
   * Wheel scroll: preview-col must NOT be a nested scrollport. overflow-y:auto +
   * overscroll-behavior:contain on the full-height absolute column ate wheel events
   * over the sticky card and empty space below. Pass wheel through empty space
   * (pointer-events:none on col) and keep only the sticky card interactive.
   */
  /*
   * Look: document scroll + visible overflow so a short Display form cannot
   * clip the absolute live-preview stack (chat ~720px + chrome).
   */
  html:has(#cs-portal-look-editor),
  html:has(#cs-portal-look-editor) body {
    height: auto;
    max-height: none;
    min-height: 100%;
    overflow: auto;
  }
  .cs-portal-app:has(#cs-portal-look-editor) {
    overflow: visible;
    height: auto;
    max-height: none;
  }
  .cs-portal-app:has(#cs-portal-look-editor) .cs-portal-main {
    overflow: visible;
    height: auto;
    max-height: none;
  }
  .cs-portal-editor {
    --cs-preview-w: min(380px, 34vw);
    /* Chat widget is ~720px; 640px cropped the composer / accent line. */
    --cs-preview-frame-h: 720px;
    /* Frame + LIVE PREVIEW head + padding + note. Absolute preview does not
     * inflate editor height, so this min-height must cover the full stack even
     * when the left column is short (Display radios only). */
    --cs-preview-stack-h: calc(var(--cs-preview-frame-h) + 14rem);
    display: block;
    position: relative;
    padding-right: calc(var(--cs-preview-w) + 1.25rem);
    margin-bottom: 1rem;
    min-width: 0;
    min-height: var(--cs-preview-stack-h);
    overflow: visible;
  }
  .cs-portal-editor > .cs-portal-form,
  .cs-portal-editor > form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .cs-portal-preview-col {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--cs-preview-w);
    min-width: 0;
    min-height: var(--cs-preview-stack-h);
    overflow: visible;
    overscroll-behavior: auto;
    pointer-events: none;
  }
  /* If markup omits .cs-portal-preview-col, still pin the preview in the right gutter. */
  .cs-portal-editor > .cs-portal-live-preview {
    position: absolute;
    top: 1rem;
    right: 0;
    width: var(--cs-preview-w);
    max-width: var(--cs-preview-w);
  }
  @media (max-width: 960px) {
    .cs-portal-editor {
      padding-right: 0;
    }
    .cs-portal-preview-col {
      position: static;
      width: 100%;
      top: auto;
      right: auto;
      bottom: auto;
      overflow: visible;
      pointer-events: auto;
      margin-top: 1rem;
      min-height: 0;
    }
    .cs-portal-editor > .cs-portal-live-preview {
      position: static;
      width: 100%;
      max-width: none;
      margin-top: 1rem;
    }
    .cs-portal-live-preview { position: static; max-height: none; }
  }
  .cs-portal-live-preview {
    position: sticky;
    top: 1rem;
    width: 100%;
    border: 1px solid var(--cs-portal-line);
    border-radius: 12px;
    background: var(--cs-portal-panel);
    padding: 0.75rem;
    min-width: 0;
    overflow: visible;
    overscroll-behavior: auto;
    pointer-events: auto;
  }
  .cs-portal-live-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
  }
  .cs-portal-live-preview__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cs-portal-muted);
  }
  .cs-portal-live-preview__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
  }
  .cs-portal-preview-modes {
    display: inline-flex;
    border: 1px solid var(--cs-portal-line);
    border-radius: 6px;
    overflow: hidden;
  }
  .cs-portal-preview-modes button {
    background: transparent;
    border: 0;
    color: #8e8e8e;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
  }
  .cs-portal-preview-modes button.is-active {
    background: rgba(225, 29, 46, 0.22);
    color: #fff;
  }
  .cs-portal-live-preview__reload {
    background: transparent;
    border: 1px solid var(--cs-portal-line);
    color: #c4c4c4;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    cursor: pointer;
  }
  .cs-portal-live-preview__reload:hover {
    border-color: var(--cs-portal-accent);
    color: #fff;
  }
  .cs-portal-live-preview__frame-wrap.is-refreshing,
  .cs-portal-live-preview.is-refreshing .cs-portal-live-preview__frame-wrap {
    animation: cs-portal-preview-refresh 0.28s ease;
  }
  @keyframes cs-portal-preview-refresh {
    0% { opacity: 0.35; }
    100% { opacity: 1; }
  }
  .cs-portal-live-preview__frame-wrap {
    border-radius: 10px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0a0a0a;
    min-height: var(--cs-preview-frame-h, 720px);
    height: var(--cs-preview-frame-h, 720px);
    max-height: none;
    position: relative;
  }
  .cs-portal-live-preview__frame-wrap.is-open-mode {
    overflow: hidden;
  }
  .cs-portal-live-preview__frame-wrap.is-launcher-mode,
  .cs-portal-live-preview__frame-wrap.is-consent-mode {
    overflow: visible;
    min-height: var(--cs-preview-frame-h, 720px);
    height: auto;
    max-height: none;
  }
  /* Launcher: host FAB on a light site mock. Never dim or show open chat under the FAB. */
  .cs-portal-live-preview__frame-wrap.is-launcher-mode {
    background:
      linear-gradient(180deg, #ffffff 0 52px, transparent 52px),
      linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
      linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
      #f3f5f7;
    background-size: auto, 28px 28px, 28px 28px, auto;
    border-color: rgba(15, 23, 42, 0.12);
  }
  .cs-portal-live-preview__frame-wrap.is-launcher-mode::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 16px;
    width: 88px;
    height: 10px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.12);
    z-index: 1;
    pointer-events: none;
  }
  .cs-portal-live-preview__frame-wrap.is-launcher-mode iframe {
    display: none !important;
  }
  .cs-portal-live-preview__frame-wrap.is-consent-mode {
    background:
      linear-gradient(180deg, #ffffff 0 52px, transparent 52px),
      linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
      linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
      #f3f5f7;
    background-size: auto, 28px 28px, 28px 28px, auto;
    border-color: rgba(15, 23, 42, 0.12);
  }
  .cs-portal-live-preview__frame-wrap.is-consent-mode iframe {
    display: none !important;
  }
  .cs-portal-live-preview__frame-wrap.is-open-mode iframe {
    display: block;
    opacity: 1;
  }
  .cs-portal-live-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: var(--cs-preview-frame-h, 720px);
    border: 0;
    background: #0a0a0a;
  }
  .cs-portal-fab-preview {
    position: absolute;
    z-index: 3;
    bottom: 18px;
    right: 18px;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: var(--cs-preview-launcher-size, 56px);
    height: var(--cs-preview-launcher-size, 56px);
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: default;
    box-shadow: 0 10px 18px rgba(0,0,0,0.35);
    --cs-preview-launcher-bg: #e11d2e;
  }
  .cs-portal-fab-preview.is-left { left: 18px; right: auto; }
  .cs-portal-fab-preview.is-pill {
    border-radius: 999px;
    padding: 0 16px 0 12px;
    width: auto;
  }
  .cs-portal-fab-preview.is-image { background: transparent; }
  .cs-portal-fab-preview.is-brand {
    overflow: hidden;
  }
  /* Soft attention pulse ring must not be clipped by brand circular overflow. */
  .cs-portal-fab-preview.is-pulse,
  .cs-portal-fab-preview.is-brand.is-pulse {
    overflow: visible;
  }
  .cs-portal-fab-preview.is-brand .cs-portal-fab-preview__face {
    width: 100%;
    height: 100%;
  }
  .cs-portal-fab-preview.is-brand img {
    width: 98%;
    height: 98%;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
  }
  .cs-portal-fab-preview.is-pill.is-brand img {
    width: calc(var(--cs-preview-launcher-size, 56px) * 0.78);
    height: calc(var(--cs-preview-launcher-size, 56px) * 0.78);
    border-radius: 50%;
  }
  .cs-portal-fab-preview[hidden] { display: none !important; }
  .cs-portal-fab-preview__chrome {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--cs-preview-launcher-bg);
    z-index: 0;
  }
  .cs-portal-fab-preview.is-image .cs-portal-fab-preview__chrome { display: none; }
  .cs-portal-fab-preview__face {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
  .cs-portal-fab-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
  }
  .cs-portal-fab-preview svg { display: block; }
  .cs-portal-media-picker {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }
  .cs-portal-media-picker__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
  }
  .cs-portal-media-picker__row input[type="url"] {
    flex: 1 1 12rem;
    min-width: 0;
  }
  .cs-portal-media-picker__preview {
    min-height: 1.5rem;
  }
  .cs-portal-media-picker__preview img {
    max-width: 64px;
    max-height: 64px;
    border-radius: 10px;
    border: 1px solid var(--cs-portal-line);
    background: #12141a;
    display: block;
    object-fit: cover;
  }
  .cs-portal-media-picker__status {
    margin: 0;
    font-size: 0.78rem;
    color: var(--cs-portal-muted);
  }
  .cs-portal-media-picker__row button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
  .cs-portal-media-picker__status.is-error { color: #ff8f8f; }
  .cs-portal-media-picker__status.is-ok { color: #9ae6b4; }
  .cs-portal-fab-preview__label {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
  }
  /*
   * Soft attention pulse â€” match live customer embed (frontend.css csLauncherPulseRing):
   * ::after ring on chrome, solid launcher color + opacity fade, 2.4s ease-out, 14px spread.
   */
  .cs-portal-fab-preview.is-pulse .cs-portal-fab-preview__chrome {
    overflow: visible;
  }
  .cs-portal-fab-preview.is-pulse .cs-portal-fab-preview__chrome::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 var(--cs-preview-launcher-bg, #e11d2e);
    opacity: 0.55;
    animation: cs-portal-fab-pulse 2.4s ease-out infinite;
    pointer-events: none;
    will-change: box-shadow, opacity;
  }
  .cs-portal-fab-preview.is-hover:hover {
    transform: scale(1.06);
  }
  @media (prefers-reduced-motion: reduce) {
    .cs-portal-fab-preview.is-pulse .cs-portal-fab-preview__chrome::after {
      animation: none !important;
      opacity: 0 !important;
    }
  }
  .cs-portal-consent-preview {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.42);
  }
  .cs-portal-consent-preview[hidden] { display: none !important; }
  .cs-portal-consent-preview__card {
    width: min(100%, 320px);
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    padding: 1.15rem 1.2rem 1.05rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .cs-portal-consent-preview__card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    color: #0f172a;
  }
  .cs-portal-consent-preview__card p {
    margin: 0 0 0.55rem;
    color: #334155;
  }
  .cs-portal-consent-preview__note {
    font-size: 0.74rem;
    color: #64748b !important;
  }
  .cs-portal-consent-preview__bullets {
    margin: 0 0 0.55rem;
    padding-left: 1.1rem;
    color: #334155;
  }
  .cs-portal-consent-preview__bullets[hidden] { display: none !important; }
  .cs-portal-consent-preview__bullets li {
    margin: 0 0 0.25rem;
  }
  .cs-portal-media-browser {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(3, 3, 3, 0.78);
  }
  .cs-portal-media-browser[hidden] { display: none !important; }
  .cs-portal-media-browser__panel {
    width: min(100%, 720px);
    max-height: min(86vh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  }
  .cs-portal-media-browser__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cs-portal-media-browser__head h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
  }
  .cs-portal-media-browser__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cs-portal-media-browser__search-wrap {
    flex: 1 1 12rem;
    min-width: 0;
    display: flex;
    gap: 0.4rem;
    align-items: center;
  }
  .cs-portal-media-browser__tools input[type="search"] {
    flex: 1;
    min-width: 0;
  }
  .cs-portal-media-browser__view {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: auto;
  }
  .cs-portal-media-browser__view-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #a8a8a8;
    border-radius: 7px;
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
  }
  .cs-portal-media-browser__view-btn.is-active {
    color: #fff;
    border-color: rgba(225, 29, 46, 0.45);
    background: rgba(225, 29, 46, 0.18);
  }
  .cs-portal-media-browser__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 1rem 0;
    color: #8e8e8e;
    font-size: 0.78rem;
  }
  .cs-portal-media-browser__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }
  .cs-portal-media-browser__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem 1rem 1rem;
  }
  .cs-portal-media-browser__grid.is-list {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .cs-portal-media-browser__item {
    appearance: none;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0a;
    border-radius: 10px;
    padding: 0.4rem;
    cursor: pointer;
    text-align: left;
    color: #c9cdd6;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  }
  .cs-portal-media-browser__grid.is-list .cs-portal-media-browser__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.55rem;
  }
  .cs-portal-media-browser__item:hover,
  .cs-portal-media-browser__item:focus {
    border-color: rgba(225, 29, 46, 0.55);
    outline: none;
    background: #121212;
  }
  .cs-portal-media-browser__item:focus-visible {
    box-shadow: 0 0 0 2px rgba(225, 29, 46, 0.35);
  }
  .cs-portal-media-browser__item.is-selected {
    border-color: var(--cs-portal-accent, #e11d2e);
    box-shadow: 0 0 0 2px rgba(225, 29, 46, 0.35);
    background: rgba(225, 29, 46, 0.12);
  }
  .cs-portal-media-browser__item.is-selected::after {
    content: "";
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--cs-portal-accent, #e11d2e);
    box-shadow: inset 0 0 0 2px #0a0a0a;
    pointer-events: none;
  }
  .cs-portal-media-browser__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 6px;
    background:
      linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
      linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
      linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    background-color: #0e0e0e;
  }
  .cs-portal-media-browser__grid.is-list .cs-portal-media-browser__thumb {
    width: 64px;
    height: 64px;
    aspect-ratio: auto;
  }
  .cs-portal-media-browser__item span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #a8a8a8;
  }
  .cs-portal-media-browser__grid.is-list .cs-portal-media-browser__item span {
    margin-top: 0;
    font-size: 0.82rem;
    color: #d0d0d0;
  }
  .cs-portal-media-browser__empty,
  .cs-portal-media-browser__status,
  .cs-portal-media-browser__loading {
    padding: 1.35rem 1rem;
    color: #8e8e8e;
    font-size: 0.85rem;
    text-align: center;
  }
  .cs-portal-media-browser__empty strong,
  .cs-portal-media-browser__status strong {
    display: block;
    color: #d4d4d4;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
  }
  .cs-portal-media-browser__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }
  .cs-portal-media-browser__spinner {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--cs-portal-accent, #e11d2e);
    animation: cs-portal-media-spin 0.7s linear infinite;
  }
  @keyframes cs-portal-media-spin {
    to { transform: rotate(360deg); }
  }
  .cs-portal-media-browser__foot {
    display: flex;
    justify-content: center;
    padding: 0 1rem 1rem;
  }
  .cs-portal-media-browser__foot[hidden] { display: none !important; }
  @media (prefers-reduced-motion: reduce) {
    .cs-portal-media-browser__spinner { animation: none; }
  }
  .cs-portal-consent-preview__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.85rem;
  }
  .cs-portal-consent-preview__decline {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: default;
  }
  .cs-portal-consent-preview__agree {
    border: 0;
    background: var(--cs-preview-consent-bg, #ff3300);
    color: #fff;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: default;
  }
  @keyframes cs-portal-fab-pulse {
    0% {
      box-shadow: 0 0 0 0 var(--cs-preview-launcher-bg, #e11d2e);
      opacity: 0.55;
    }
    70% {
      box-shadow: 0 0 0 14px var(--cs-preview-launcher-bg, #e11d2e);
      opacity: 0;
    }
    100% {
      box-shadow: 0 0 0 0 var(--cs-preview-launcher-bg, #e11d2e);
      opacity: 0;
    }
  }
  .cs-portal-live-preview__note {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    color: #8e8e8e;
    line-height: 1.4;
  }
  .cs-portal-preview-empty {
    display: none;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 0.9rem;
    text-align: center;
    border-radius: 12px;
    background: rgba(12, 12, 12, 0.92);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e8e8e8;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  }
  .cs-portal-live-preview__frame-wrap.is-disconnected.is-open-mode .cs-portal-preview-empty,
  .cs-portal-live-preview__frame-wrap.is-disconnected.is-settings-empty .cs-portal-preview-empty {
    display: flex;
  }
  .cs-portal-live-preview__frame-wrap.is-disconnected.is-settings-empty .cs-portal-preview-empty {
    inset: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: rgba(10, 10, 10, 0.88);
  }
  .cs-portal-preview-empty__msg {
    margin: 0;
    max-width: 16rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #f2f2f2;
    font-weight: 600;
  }
  .cs-portal-preview-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
  }
  .cs-portal-preview-empty__actions a.cs-portal__btn {
    text-decoration: none;
  }
  .cs-portal-open-mock {
    display: none;
    position: absolute;
    inset: 12px;
    z-index: 2;
    pointer-events: none;
  }
  .cs-portal-live-preview__frame-wrap.is-disconnected.is-open-mode .cs-portal-open-mock {
    display: block;
  }
  .cs-portal-live-preview__frame-wrap.is-disconnected.is-open-mode iframe {
    display: none !important;
  }
  .cs-portal-open-mock__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: #111;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  }
  .cs-portal-open-mock__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    background: var(--cs-mock-header, #0a0a0a);
    color: var(--cs-mock-header-text, #fff);
    min-height: 3.1rem;
  }
  .cs-portal-open-mock__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.12);
  }
  .cs-portal-open-mock__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .cs-portal-open-mock__name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
  }
  .cs-portal-open-mock__sub {
    font-size: 0.72rem;
    opacity: 0.85;
    line-height: 1.2;
  }
  .cs-portal-open-mock__body {
    flex: 1 1 auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: #0c0c0c;
  }
  .cs-portal-open-mock__bot,
  .cs-portal-open-mock__user {
    max-width: 82%;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .cs-portal-open-mock__bot {
    align-self: flex-start;
    background: #1c1c1c;
    color: #e8e8e8;
  }
  .cs-portal-open-mock__user {
    align-self: flex-end;
    background: var(--cs-mock-bubble, #0a0a0a);
    color: var(--cs-mock-bubble-text, #fff);
  }
  .cs-portal-open-mock__chip {
    align-self: flex-start;
    display: inline-flex;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--cs-mock-accent, #e11d2e);
    color: var(--cs-mock-accent, #e11d2e);
    font-size: 0.7rem;
    font-weight: 600;
  }
  .cs-portal-open-mock__composer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #101010;
  }
  .cs-portal-open-mock__input {
    flex: 1 1 auto;
    height: 2rem;
    border-radius: 999px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .cs-portal-open-mock__send {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    flex: 0 0 auto;
    background: var(--cs-mock-send, #e11d2e);
  }
  .cs-portal-health {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: flex-start;
  }
  .cs-portal-health__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--cs-portal-line);
  }
  .cs-portal-health__badge.is-ok {
    border-color: rgba(62, 207, 142, 0.45);
    color: #b8f5d4;
    background: rgba(62, 207, 142, 0.12);
  }
  .cs-portal-health__badge.is-missing {
    border-color: rgba(255, 180, 80, 0.4);
    color: #ffd9a8;
    background: rgba(255, 180, 80, 0.1);
  }
  .cs-portal-health__badge.is-error {
    border-color: rgba(225, 29, 46, 0.45);
    color: #ffc9c9;
    background: rgba(225, 29, 46, 0.12);
  }
  .cs-portal-meter {
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin: 0.45rem 0 0.3rem;
  }
  .cs-portal-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cs-portal-accent), var(--cs-portal-accent-deep));
  }
  .cs-portal-meter.is-ok > span { background: linear-gradient(90deg, #3ecf8e, #2aa86e); }
  .cs-portal-meter.is-warn > span { background: linear-gradient(90deg, #e8a317, #c47f0a); }
  .cs-portal-meter.is-bad > span { background: linear-gradient(90deg, var(--cs-portal-accent), #8a0d18); }
  .cs-portal-meter.is-uncapped > span {
    width: 100%;
    opacity: 0.28;
    background: linear-gradient(90deg, #3ecf8e, #2aa86e);
  }
  .cs-portal-meter-block {
    margin-top: 0.55rem;
  }
  .cs-portal-meter-block + .cs-portal-meter-block {
    margin-top: 0.85rem;
  }
  .cs-portal-section p.cs-portal-meter-block__label,
  .cs-portal-meter-block__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cs-portal-muted);
  }
  .cs-portal-section p.cs-portal-meter-caption,
  .cs-portal-meter-caption {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--cs-portal-muted);
    line-height: 1.35;
  }
  .cs-portal-section p.cs-portal-meter-meta,
  .cs-portal-meter-meta {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: var(--cs-portal-muted-dim);
    line-height: 1.35;
  }
  .cs-portal-stat .cs-portal-meter-block {
    margin-top: 0.65rem;
  }
  .cs-portal-dash-plan .cs-portal-meter-block {
    margin-top: 0.75rem;
  }
  .cs-portal-dash-plan .cs-portal-meter-block + .cs-portal-meter-block {
    margin-top: 0.7rem;
  }
  .cs-portal-dash-plan__meters {
    margin: 0.85rem 0 0;
  }
  .cs-portal-flash + .cs-portal-section-stack,
  .cs-portal-flash + .cs-portal-section {
    margin-top: 0;
  }
  .cs-portal-picker {
    max-height: 22rem;
    overflow: auto;
    margin: 0.75rem 0 0;
    border: 1px solid var(--cs-portal-line);
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
  }
  .cs-portal-picker--table { max-height: 28rem; }
  .cs-portal-picker--table .cs-portal-table {
    margin-top: 0;
    table-layout: fixed;
  }
  .cs-portal-picker--table th.cs-portal-picker__col-check,
  .cs-portal-picker--table td.cs-portal-picker__col-check {
    width: 4.15rem;
    text-align: center;
  }
  /* Gap between Index/Core and Show/Title so active-sort red backgrounds clearly separate. */
  .cs-portal-picker--table th.cs-portal-picker__col-check + th.cs-portal-picker__col-check,
  .cs-portal-picker--table td.cs-portal-picker__col-check + td.cs-portal-picker__col-check,
  .cs-portal-picker--table th.cs-portal-picker__col-check + th.cs-portal-picker__col-title,
  .cs-portal-picker--table td.cs-portal-picker__col-check + td.cs-portal-picker__col-title {
    padding-left: 1.15rem;
  }
  .cs-portal-picker--table th.cs-portal-picker__col-check:has(+ th.cs-portal-picker__col-check),
  .cs-portal-picker--table td.cs-portal-picker__col-check:has(+ td.cs-portal-picker__col-check),
  .cs-portal-picker--table th.cs-portal-picker__col-check:has(+ th.cs-portal-picker__col-title),
  .cs-portal-picker--table td.cs-portal-picker__col-check:has(+ td.cs-portal-picker__col-title) {
    padding-right: 1.15rem;
  }
  /* Sort pills use negative margins for hit-area; kill horizontal bleed so red backgrounds stay apart. */
  .cs-portal-picker--table th.cs-portal-picker__col-check .cs-portal-sort,
  .cs-portal-picker--table th.cs-portal-picker__col-title .cs-portal-sort {
    margin-left: 0;
    margin-right: 0;
  }
  .cs-portal-picker--table th.cs-portal-picker__col-title,
  .cs-portal-picker--table td.cs-portal-picker__col-title {
    width: auto;
  }
  .cs-portal-picker--table td.cs-portal-picker__col-title label {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .cs-portal-picker--table th.cs-portal-picker__col-type,
  .cs-portal-picker--table td.cs-portal-picker__col-type {
    width: 4.5rem;
    text-align: center;
  }
  .cs-portal-picker--table td.cs-portal-picker__col-type .cs-portal-picker__type {
    margin-left: 0;
  }
  .cs-portal-picker--table th.cs-portal-picker__col-url,
  .cs-portal-picker--table td.cs-portal-picker__col-url {
    width: 32%;
    max-width: 16rem;
  }
  .cs-portal-picker--table .cs-portal-picker__meta {
    margin-top: 0;
    word-break: break-all;
    font-size: 0.75rem;
    color: #8e8e8e;
  }
  .cs-portal-picker__url-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    max-width: 100%;
    color: var(--cs-portal-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(225, 29, 46, 0.35);
    font-size: 0.75rem;
    line-height: 1.35;
    word-break: normal;
  }
  .cs-portal-picker__url-link:hover {
    color: var(--cs-portal-link-hover);
    text-decoration-color: rgba(225, 29, 46, 0.7);
  }
  .cs-portal-picker__url-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cs-portal-picker__url-ext {
    flex: 0 0 auto;
    font-size: 0.72em;
    opacity: 0.65;
    text-decoration: none;
  }
  .cs-portal-table a.cs-portal-picker__url-link {
    word-break: normal;
  }
  .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .cs-portal-picker__row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.65rem 0.75rem;
    align-items: start;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--cs-portal-line);
    font-size: 0.84rem;
  }
  tr.cs-portal-picker__row {
    display: table-row;
    padding: 0;
  }
  .cs-portal-picker__row:last-child { border-bottom: 0; }
  .cs-portal-picker__row label { color: #ececec; cursor: pointer; }
  .cs-portal-picker__meta { color: #8e8e8e; font-size: 0.75rem; word-break: break-all; margin-top: 0.2rem; }
  .cs-portal-picker__type {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(225,29,46,0.18);
    color: #ffb4ba;
  }
  .cs-portal-picker__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
  }
  .cs-portal-picker__toolbar button[type="button"] {
    background: #1c1e24;
    border: 1px solid #3a3d45;
    color: #f0f0f0;
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    font-size: 0.78rem;
  }
  .cs-portal-picker__toolbar button[type="button"]:hover {
    border-color: #4a4d55;
    color: #fff;
    background: #252830;
  }
  details.cs-portal-fallback {
    margin: 0 0 var(--cs-portal-section-gap);
    padding: var(--cs-portal-section-pad-y) var(--cs-portal-section-pad-x);
    background: var(--cs-portal-panel);
    border: 1px solid var(--cs-portal-line-soft);
    border-radius: 12px;
    box-shadow: none;
  }
  details.cs-portal-fallback summary {
    cursor: pointer;
    color: #fff;
    font-weight: 650;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
  }
