/* /Components/AccountTwoFactorCard.razor.rz.scp.css */
/* ── Status ──────────── */
.atf-intro[b-1a0ky81d52] {
    font-size: 13px;
    color: #555;
    margin: -4px 0 14px;
    line-height: 1.5;
}

.atf-rows[b-1a0ky81d52] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.atf-row[b-1a0ky81d52] {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 14px;
}

.atf-label[b-1a0ky81d52] {
    width: 150px;
    flex-shrink: 0;
    color: #6b6b6b;
}

.atf-pill[b-1a0ky81d52] {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.atf-pill-on[b-1a0ky81d52] { background: #E5EDD8; color: #3B5525; }
.atf-pill-off[b-1a0ky81d52] { background: #f0f0f0; color: #555; }
.atf-pill-warn[b-1a0ky81d52] { background: #fbeceb; color: #B33C32; }

.atf-actions[b-1a0ky81d52] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Dialog ──────────── */
.atf-modal-text[b-1a0ky81d52] {
    color: #555;
    margin: 0 0 14px;
    line-height: 1.5;
}

.atf-code-input[b-1a0ky81d52] {
    font-family: 'JetBrains Mono', monospace;
    max-width: 240px;
    letter-spacing: 1px;
}

.atf-codes[b-1a0ky81d52] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.atf-codes code[b-1a0ky81d52] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    user-select: all;
}

/* ── Change authenticator app ──────────── */
.atf-change[b-1a0ky81d52] {
    display: grid;
    grid-template-columns: 196px 1fr;
    gap: 20px;
    align-items: start;
}

.atf-qr[b-1a0ky81d52] {
    display: block;
    width: 180px;
    height: 180px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    image-rendering: pixelated;
}

.atf-key[b-1a0ky81d52] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.atf-key code[b-1a0ky81d52] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 10px;
    user-select: all;
    word-break: break-all;
}

/* ── Mobile ──────────── */
@media (max-width: 768px) {
    .atf-row[b-1a0ky81d52] { flex-direction: column; gap: 2px; }
    .atf-label[b-1a0ky81d52] { width: auto; }
    .atf-change[b-1a0ky81d52] { grid-template-columns: 1fr; }
    .atf-qr[b-1a0ky81d52] { margin: 0 auto; }
}
/* /Components/ActionMenu.razor.rz.scp.css */
/* ── Action menu ──────────── */
.action-menu[b-eaosmyp40x] {
    position: relative;
    display: inline-flex;
}

/* Square icon button, the same height as the btn-sm buttons beside it. */
.action-menu-trigger[b-eaosmyp40x] {
    padding-left: 8px;
    padding-right: 8px;
    min-width: 34px;
    justify-content: center;
}

.action-menu.open .action-menu-trigger[b-eaosmyp40x] {
    background: #E5EDD8;
    border-color: #4A6B2E;
    color: #3B5525;
}

/* A click anywhere outside the list closes it (same approach as WorkspaceSwitcher). */
.action-menu-backdrop[b-eaosmyp40x] {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.action-menu-list[b-eaosmyp40x] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    min-width: 200px;
    padding: 4px 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    animation: action-menu-in-b-eaosmyp40x 0.12s ease-out;
}

@keyframes action-menu-in-b-eaosmyp40x {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* /Components/ActionMenuDivider.razor.rz.scp.css */
/* ── Action menu divider ──────────── */
.action-menu-divider[b-vwr3nagzoc] {
    height: 1px;
    margin: 4px 0;
    background: #e0e0e0;
}
/* /Components/ActionMenuItem.razor.rz.scp.css */
/* ── Action menu item ──────────── */
.action-menu-item[b-3hk2bon0o2] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 8px 14px;
    background: none;
    border: none;
    font: inherit;
    font-size: 13px;
    color: #1a1a2e;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.action-menu-item:hover[b-3hk2bon0o2],
.action-menu-item:focus-visible[b-3hk2bon0o2] {
    background: #f8f8f8;
    outline: none;
}

.action-menu-item:focus-visible[b-3hk2bon0o2] {
    box-shadow: inset 3px 0 0 #4A6B2E;
}

.action-menu-icon[b-3hk2bon0o2] {
    display: inline-flex;
    color: #555;
}

.action-menu-item.danger[b-3hk2bon0o2],
.action-menu-item.danger .action-menu-icon[b-3hk2bon0o2] {
    color: #B33C32;
}

.action-menu-item.danger:hover[b-3hk2bon0o2],
.action-menu-item.danger:focus-visible[b-3hk2bon0o2] {
    background: #fdf3f2;
}

.action-menu-item.danger:focus-visible[b-3hk2bon0o2] {
    box-shadow: inset 3px 0 0 #B33C32;
}
/* /Components/AdminScheduleRunsPanel.razor.rz.scp.css */
/* ── Actions column ──────────── */
/* A real table cell, so it centres with the two-line cells beside it; the buttons sit flush
   right like the other tables' action columns. */
.runs-actions[b-ey6wg8bf94] {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.runs-actions .table-actions[b-ey6wg8bf94] {
    justify-content: flex-end;
}
/* /Components/AdminTrialDialog.razor.rz.scp.css */
/* ── Sections ──────────────────────────────────────────────── */
.trial-section-title[b-vsh34yv2ok] {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6b6b;
    margin-bottom: 16px;
}

/* ── Running trial ─────────────────────────────────────────── */
.trial-running[b-vsh34yv2ok] {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f8f8;
    padding: 12px 16px;
}

.trial-running-row[b-vsh34yv2ok] {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 4px 0;
    font-size: 13px;
    color: #1a1a2e;
}

.trial-running-label[b-vsh34yv2ok] {
    color: #555;
}

/* ── New trial ─────────────────────────────────────────────── */
/* More air between fields than the shared 16px, and a little under each label. */
.trial-form .form-group[b-vsh34yv2ok] {
    gap: 8px;
    margin-bottom: 24px;
}

.trial-form .trial-row-pair .form-group[b-vsh34yv2ok] {
    margin-bottom: 0;
}

.trial-form .trial-row-pair[b-vsh34yv2ok] {
    margin-bottom: 24px;
}

/* A note about the row above it: close under that row, clear of the field below. */
.trial-form .trial-hint[b-vsh34yv2ok] {
    margin: -14px 0 24px;
}

.trial-form .validation-message[b-vsh34yv2ok] {
    margin-top: 2px;
}

.trial-features[b-vsh34yv2ok] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 4px 0 2px;
}

.trial-feature[b-vsh34yv2ok] {
    margin: 0;
}

.trial-row-pair[b-vsh34yv2ok] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* The end date with its quick picks beside it. */
.trial-ends[b-vsh34yv2ok] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.trial-ends .form-control[b-vsh34yv2ok] {
    flex: 1 1 220px;
    max-width: 280px;
}

.trial-presets[b-vsh34yv2ok] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 768px) {
    .trial-features[b-vsh34yv2ok],
    .trial-row-pair[b-vsh34yv2ok] {
        grid-template-columns: 1fr;
    }

    .trial-ends .form-control[b-vsh34yv2ok] {
        max-width: none;
    }

    .trial-running-row[b-vsh34yv2ok] {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Stacked, each field of a pair needs the gap the row gave it. */
    .trial-form .trial-row-pair[b-vsh34yv2ok] {
        gap: 24px;
    }
}
/* /Components/AdminWebhookEndpointsPanel.razor.rz.scp.css */
/* ── Endpoint URL ──────────── */
.admin-webhook-url[b-qw5glsug70] {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .admin-webhook-url[b-qw5glsug70] {
        max-width: 200px;
    }
}
/* /Components/ApiKeyEditor.razor.rz.scp.css */
/* ── Access and scopes ──────────── */
.apikeys-access[b-zmu4allsyg] {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.apikeys-scopes[b-zmu4allsyg] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.apikeys-scopes.has-error[b-zmu4allsyg] {
    border-color: #B33C32;
}

/* The .form-group label rule (uppercase, tracked, 12px) outranks the app's .form-check reset,
   so the reset is restated here with a selector that wins. */
.apikeys-scope.form-check[b-zmu4allsyg] {
    gap: 10px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
}

.apikeys-access .form-check[b-zmu4allsyg] {
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
}

/* The box sits on the scope name's line: a 16px box centred in the name's 20px line. */
.apikeys-scope.form-check input[type="checkbox"][b-zmu4allsyg] {
    margin-top: 2px;
}

.apikeys-scope-text[b-zmu4allsyg] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.apikeys-scope-name[b-zmu4allsyg] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    color: #1a1a2e;
}

.apikeys-scope-desc[b-zmu4allsyg] {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: #555;
}

/* ── The new key, shown once ──────────── */
.apikey-created[b-zmu4allsyg] {
    max-width: 720px;
}

.apikey-created-row[b-zmu4allsyg] {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.apikey-created-value[b-zmu4allsyg] {
    flex: 1;
    min-width: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    padding: 8px 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow-wrap: anywhere;
    user-select: all;
}

@media (max-width: 768px) {
    .apikeys-scopes[b-zmu4allsyg] {
        grid-template-columns: 1fr;
    }
}
/* /Components/ApiKeysCard.razor.rz.scp.css */
/* ── Empty state: the page empty state's shape, sized for a card ──────────── */
.apikeys-empty[b-8f6rq09qlz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 28px 24px;
    margin-bottom: 16px;
    border: 1px dashed #d1d1d1;
    border-radius: 10px;
    background: #fafafa;
}

.apikeys-empty-icon[b-8f6rq09qlz] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 4px;
}

.apikeys-empty-title[b-8f6rq09qlz] {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.apikeys-empty-text[b-8f6rq09qlz] {
    max-width: 420px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}

/* ── Which workspace the keys belong to ──────────── */
.apikeys-for[b-8f6rq09qlz] {
    margin: 0 0 12px;
    font-size: 13px;
    color: #555;
}

.apikeys-workspace[b-8f6rq09qlz] {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #E5EDD8;
    color: #3B5525;
    font-size: 11px;
    font-weight: 600;
    vertical-align: 1px;
}

/* ── Key rows: the Connected accounts list's layout, under this component's names ──────────── */
.apikeys-list[b-8f6rq09qlz] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.apikeys-row[b-8f6rq09qlz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    gap: 12px;
}

.apikeys-info[b-8f6rq09qlz] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.apikeys-icon[b-8f6rq09qlz] {
    flex-shrink: 0;
    color: #6b6b6b;
}

.apikeys-name[b-8f6rq09qlz] {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.apikeys-meta[b-8f6rq09qlz] {
    font-size: 12px;
    color: #6b6b6b;
}

.apikeys-row-actions[b-8f6rq09qlz] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.apikeys-actions[b-8f6rq09qlz] {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .apikeys-row[b-8f6rq09qlz] {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .apikeys-row-actions[b-8f6rq09qlz] {
        width: 100%;
        justify-content: flex-start;
    }

    .apikeys-actions[b-8f6rq09qlz] {
        flex-direction: column;
        width: 100%;
    }

    .apikeys-actions .btn[b-8f6rq09qlz] {
        width: 100%;
    }
}
/* /Components/BlockEditor.razor.rz.scp.css */
/* Components/BlockEditor.razor.css

   Styles for the per-block editor form used in the email editor's right pane.
   Values are kept in lockstep with the equivalent ::deep block-editor rules in
   PdfEditor.razor.css so both editors render identical inputs, labels, option
   pills, merge-field chips, and color pickers. If you change a value here,
   update PdfEditor.razor.css's matching ::deep rule too (and vice versa) —
   the two block editors are intentionally visually identical.
*/

.block-editor[b-79qk7k4dnd] {
  display: flex;
  flex-direction: column;
  gap: 0;
}

[b-79qk7k4dnd] .editor-panel-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 14px;
}

/* Form field group (from FieldGroup.razor) */
[b-79qk7k4dnd] .field-group {
  margin-bottom: 14px;
}
[b-79qk7k4dnd] .field-group-label {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  display: block;
  margin-bottom: 5px;
}
[b-79qk7k4dnd] .form-control {
  width: 100%;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  font-size: 13px;
  color: #1a1a2e;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
[b-79qk7k4dnd] .form-control:focus {
  border-color: #4A6B2E;
  box-shadow: 0 0 0 3px #E5EDD8;
  background: #ffffff;
}
[b-79qk7k4dnd] .code-textarea,
[b-79qk7k4dnd] .code-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
  min-height: 80px;
}

/* Option pills (Mode toggle, Size toggle, Alignment toggle, etc.) */
[b-79qk7k4dnd] .option-list {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-wrap: wrap;
}
[b-79qk7k4dnd] .option-item {
  /* Button resets — option items and palette entries are <button> so they can be reached
     by keyboard. Their layout rules below still apply; only the UA button styles that a
     <div> never had need cancelling. */
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  margin: 0;
  appearance: none;

  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  border: 1px solid #d1d1d1;
  background: #f8f8f8;
  white-space: nowrap;
}
[b-79qk7k4dnd] .option-item:hover {
  background: #E5EDD8;
  color: #4A6B2E;
}
[b-79qk7k4dnd] .option-active {
  background: #E5EDD8 !important;
  border-color: #4A6B2E !important;
  color: #4A6B2E !important;
  font-weight: 600;
}

/* Merge-field chip rail at the top of the editor */
[b-79qk7k4dnd] .block-editor-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}
[b-79qk7k4dnd] .block-editor-fields-label {
  font-size: 11px;
  color: #555;
  font-weight: 600;
  margin-right: 4px;
}
[b-79qk7k4dnd] .block-editor-field-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #4A6B2E;
  background: #E5EDD8;
  border: 1px solid #4A6B2E;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.12s;
}
[b-79qk7k4dnd] .block-editor-field-chip:hover {
  background: #ddd5ff;
}

/* Field with inline color picker.

   Stacked layout: the text input gets the full row, and the control row
   (color picker + Bold/Italic toggles) sits directly below it. The
   previous side-by-side layout starved the signature Name/Title/Email
   inputs on the 320px panel — the ColorPicker's swatch (40px) + hex
   input (~90px) left only ~130px for the actual text. */
[b-79qk7k4dnd] .field-with-color {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[b-79qk7k4dnd] .field-with-color .form-control {
  width: 100%;
}
[b-79qk7k4dnd] .field-with-color .color-picker-row {
  align-self: flex-start;
}
[b-79qk7k4dnd] .field-with-color .color-swatch {
  width: 28px;
  height: 28px;
}
[b-79qk7k4dnd] .field-with-color .form-control-sm {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
  max-width: 90px;
}

/* Control row underneath each signature text input: color picker on the
   left, Bold/Italic toggles on the right. Each field gets its own row so the
   user can style Name bold + Title italic + Email plain + Slogan italic etc.
   without affecting other lines. */
[b-79qk7k4dnd] .signature-field-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
[b-79qk7k4dnd] .signature-style-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #f8f8f8;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
[b-79qk7k4dnd] .signature-style-btn:hover {
  background: #E5EDD8;
  color: #4A6B2E;
}
[b-79qk7k4dnd] .signature-style-btn.active {
  background: #E5EDD8;
  border-color: #4A6B2E;
  color: #4A6B2E;
}
[b-79qk7k4dnd] .signature-style-btn strong,
[b-79qk7k4dnd] .signature-style-btn em {
  font-size: 13px;
  line-height: 1;
}

/* Up/down reorder buttons next to each signature row. Same 28×28 footprint as
   the B/I toggles so the control strip stays a single visual unit. Disabled
   state (first row's ↑, last row's ↓) is muted to indicate end of travel. */
[b-79qk7k4dnd] .signature-reorder-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  background: #f8f8f8;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
[b-79qk7k4dnd] .signature-reorder-btn:hover:not(:disabled) {
  background: #E5EDD8;
  color: #4A6B2E;
}
[b-79qk7k4dnd] .signature-reorder-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Color picker (when used standalone in the email editor — match the PDF
   editor's standalone color picker sizing). The .field-with-color version
   above overrides this with smaller dimensions when paired with an input. */
[b-79qk7k4dnd] .color-swatch {
  width: 36px;
  height: 36px;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  padding: 2px;
  background: #f8f8f8;
  cursor: pointer;
  flex-shrink: 0;
}

/* Upload status hints (image / signature image / logo upload) */
[b-79qk7k4dnd] .upload-hint {
  font-size: 11px;
  color: #6b6b6b;
  font-style: italic;
  margin-top: 4px;
  display: block;
}
[b-79qk7k4dnd] .upload-error {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
  display: block;
}

/* Thumbnail + Replace/Remove pair shown for blocks whose image was uploaded
   to our server. The URL input is hidden in this state so users don't see
   localhost: / rowscribe.com proxy URLs that aren't actionable for them. */
[b-79qk7k4dnd] .uploaded-image-preview {
  margin-bottom: 6px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  max-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
}
[b-79qk7k4dnd] .uploaded-image-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
[b-79qk7k4dnd] .uploaded-image-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
[b-79qk7k4dnd] .uploaded-image-replace {
  flex: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Conditional-display collapsible section at the bottom of the editor */
[b-79qk7k4dnd] .block-condition-section {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}
[b-79qk7k4dnd] .block-condition-toggle {
  background: none;
  border: none;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
}
[b-79qk7k4dnd] .block-condition-toggle:hover {
  color: #4A6B2E;
}
[b-79qk7k4dnd] .block-condition-badge {
  background: #E5EDD8;
  color: #4A6B2E;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
[b-79qk7k4dnd] .block-condition-body {
  margin-top: 8px;
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
}
[b-79qk7k4dnd] .btn-ghost-sm {
  background: none;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  color: #555;
  cursor: pointer;
  margin-top: 8px;
}
[b-79qk7k4dnd] .btn-ghost-sm:hover {
  border-color: #B33C32;
  color: #B33C32;
}
[b-79qk7k4dnd] .btn-ghost-sm:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: #d1d1d1;
  color: #555;
}

/* The ✕ that removes a table column or row. Without this the email inspector had no rule for it
   and drew the browser's default bordered button, unlike the PDF inspector beside it. */
[b-79qk7k4dnd] .btn-icon-sm {
  background: none;
  border: none;
  font-size: 12px;
  color: #6b6b6b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
}
[b-79qk7k4dnd] .btn-icon-sm:hover {
  color: #e74c3c;
  background: #fff5f5;
}

/* ── Spacing & Background ────────────────────────────────── */
/* Four padding inputs in one row — Top / Right / Bottom / Left, the CSS shorthand order, so the
   layout reads the way anyone who has written `padding:` expects. */
[b-79qk7k4dnd] .block-padding-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
[b-79qk7k4dnd] .block-padding-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #6b6b6b;
}
[b-79qk7k4dnd] .block-padding-cell .form-control {
  padding: 6px 6px;
  text-align: center;
}

/* ── Social links ────────────────────────────────────────── */
[b-79qk7k4dnd] .social-link-row {
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  margin-bottom: 6px;
}
[b-79qk7k4dnd] .social-link-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
[b-79qk7k4dnd] .social-link-head .form-control {
  flex: 1;
  min-width: 0;
}
/* /Components/CodeBlock.razor.rz.scp.css */
/* ── Code block ──────────── */
.code-block[b-rlscl2vgi4] {
    background: #0f1117;
    border: 1px solid #23262f;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 16px;
    color: #e6e6e6;
}

.code-block-head[b-rlscl2vgi4] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 8px 0 4px;
    border-bottom: 1px solid #23262f;
    background: #161922;
}

.code-block-title[b-rlscl2vgi4] {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #b6bac4;
    letter-spacing: 0.02em;
}

.code-block-tabs[b-rlscl2vgi4] {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.code-block-tab[b-rlscl2vgi4] {
    border: none;
    background: transparent;
    color: #9ba1ad;
    font: 500 12px 'Inter', sans-serif;
    padding: 11px 10px 10px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.code-block-tab:hover[b-rlscl2vgi4] {
    color: #e6e6e6;
}

.code-block-tab.active[b-rlscl2vgi4] {
    color: #fff;
    border-bottom-color: #8fb36a;
}

.code-block-tab:focus-visible[b-rlscl2vgi4],
.code-block-copy:focus-visible[b-rlscl2vgi4] {
    outline: 2px solid #8fb36a;
    outline-offset: -2px;
}

.code-block-badge[b-rlscl2vgi4] {
    margin-left: auto;
    font: 600 11px 'JetBrains Mono', monospace;
    color: #b6bac4;
    background: #23262f;
    border-radius: 4px;
    padding: 2px 6px;
}

.code-block-copy[b-rlscl2vgi4] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    border: 1px solid #2c303b;
    background: transparent;
    color: #b6bac4;
    font: 500 12px 'Inter', sans-serif;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

.code-block-badge + .code-block-copy[b-rlscl2vgi4] {
    margin-left: 0;
}

.code-block-copy:hover[b-rlscl2vgi4] {
    color: #fff;
    border-color: #4a4f5c;
}

.code-block-body[b-rlscl2vgi4] {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    font: 12.5px/1.65 'JetBrains Mono', monospace;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #e6e6e6;
    white-space: pre;
    tab-size: 2;
}

/* ── Token colours ──────────── */
.code-block-body[b-rlscl2vgi4]  .tok-s { color: #a8d8a0; }
.code-block-body[b-rlscl2vgi4]  .tok-k { color: #9ecbff; }
.code-block-body[b-rlscl2vgi4]  .tok-n { color: #f2c97d; }
.code-block-body[b-rlscl2vgi4]  .tok-w { color: #d7a6ff; }
.code-block-body[b-rlscl2vgi4]  .tok-c { color: #8b919c; font-style: italic; }
/* /Components/CookieBanner.razor.rz.scp.css */
.cookie-banner[b-x4v2p1qzk7] {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2000;
    font-size: 13px;
    color: #1a1a2e;
}

.cookie-banner[hidden][b-x4v2p1qzk7] {
    display: none;
}

.cookie-banner-text[b-x4v2p1qzk7] {
    flex: 1;
    line-height: 1.5;
}

.cookie-banner-text a[b-x4v2p1qzk7] {
    color: #4A6B2E;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner-text a:hover[b-x4v2p1qzk7] {
    text-decoration: underline;
}

.cookie-banner-actions[b-x4v2p1qzk7] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner-btn[b-x4v2p1qzk7] {
    min-width: 88px;
}

@media (max-width: 640px) {
    .cookie-banner[b-x4v2p1qzk7] {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        bottom: 8px;
        left: 8px;
        right: 8px;
    }

    .cookie-banner-actions[b-x4v2p1qzk7] {
        justify-content: flex-end;
    }

    /* Compact on phones: it shouldn't cover the page it's asking about. The wording stays
       as it is (it's the consent text /cookies shows too); the box gets tighter, and the
       two buttons share one row at a full 44px touch height. */
    .cookie-banner[b-x4v2p1qzk7] {
        gap: 10px;
        padding: 12px;
        font-size: 12.5px;
    }

    .cookie-banner-text[b-x4v2p1qzk7] {
        line-height: 1.45;
    }

    .cookie-banner-btn[b-x4v2p1qzk7] {
        flex: 1;
        min-height: 44px;
    }
}
/* /Components/CookieSettings.razor.rz.scp.css */
/* ── Cookie settings (on the Cookies page) ──────────────────────────────────── */

.cookie-settings[b-nuyg2u1yrr] {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 20px 0 28px;
    /* The footer's Cookie settings link lands here; keep it clear of the page top. */
    scroll-margin-top: 24px;
}

.cookie-settings-title[b-nuyg2u1yrr] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.cookie-settings-text[b-nuyg2u1yrr] {
    margin: 0 0 10px;
    color: #1a1a2e;
}

.cookie-settings-status[b-nuyg2u1yrr] {
    margin: 0 0 14px;
    font-size: 13px;
    color: #555;
}

.cookie-settings-actions[b-nuyg2u1yrr] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .cookie-settings-actions .btn[b-nuyg2u1yrr] {
        min-width: 96px;
    }
/* /Components/DatasetEditor.razor.rz.scp.css */
/* ── Toolbar ─────────────────────────────────────────────────────────── */

.dataset-toolbar[b-3h137vdi3i] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 20px 0 10px 0;
    flex-wrap: wrap;
}

.dataset-toolbar-title[b-3h137vdi3i] {
    margin: 0;
    font-size: 15px;
}

.dataset-toolbar-actions[b-3h137vdi3i] {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.dataset-toolbar-btn[b-3h137vdi3i] {
    cursor: pointer;
    margin: 0;
}

.dataset-empty[b-3h137vdi3i] {
    color: #6b6b6b;
    font-size: 13px;
    padding: 20px;
    text-align: center;
    border: 1px dashed #d1d1d1;
    border-radius: 8px;
    background: #f8f8f8;
}

/* ── Grid ────────────────────────────────────────────────────────────── */

/* Bounded on purpose even though the editor now lives on a page rather than in
   a 640px modal: `.dataset-grid thead` is sticky against THIS box, so letting
   the wrapper grow to its content height would leave nothing for the header to
   stick to and it would scroll away with the rows. 400px was the modal-era
   cap — on a page that shows about eight rows with the rest of the screen
   empty, so give it the room the page actually has. */
.dataset-grid-wrap[b-3h137vdi3i] {
    max-height: min(58vh, 560px);
    overflow: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.dataset-grid[b-3h137vdi3i] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: inherit;
}

.dataset-grid thead[b-3h137vdi3i] {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f8f8;
}

.dataset-grid th[b-3h137vdi3i],
.dataset-grid td[b-3h137vdi3i] {
    padding: 6px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    vertical-align: middle;
    background: inherit;
}

.dataset-grid th[b-3h137vdi3i] {
    background: #f8f8f8;
    font-weight: 600;
}

.dataset-grid tr:last-child td[b-3h137vdi3i] {
    border-bottom: none;
}

.dataset-grid th:last-child[b-3h137vdi3i],
.dataset-grid td:last-child[b-3h137vdi3i] {
    border-right: none;
}

/* Column-header input + remove button share one flex row */
.dataset-col-header[b-3h137vdi3i] {
    display: flex;
    gap: 4px;
    align-items: center;
}

.dataset-col-input[b-3h137vdi3i],
.dataset-cell-input[b-3h137vdi3i] {
    width: 100%;
    min-width: 120px;
    margin: 0;
}

.dataset-col-input[b-3h137vdi3i] {
    font-weight: 600;
}

/* Narrow action column (remove-row / remove-column) */
.dataset-action-col[b-3h137vdi3i] {
    width: 36px;
    min-width: 36px;
    padding: 4px;
    text-align: center;
}

/* Small × button used on both the column header and the row action cell */
.dataset-remove-btn[b-3h137vdi3i] {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    color: #6b6b6b;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 120ms, color 120ms;
}

.dataset-remove-btn:hover[b-3h137vdi3i] {
    color: #B33C32;
    border-color: #B33C32;
}

/* ── Row key ─────────────────────────────────────────────────────────── */

/* Same footprint as the remove button beside it; filled in the accent when the column is in the key */
.dataset-key-btn[b-3h137vdi3i] {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    color: #6b6b6b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 120ms, color 120ms, background 120ms;
}

.dataset-key-btn:hover[b-3h137vdi3i] {
    color: #4A6B2E;
    border-color: #4A6B2E;
}

.dataset-key-btn.is-key[b-3h137vdi3i] {
    background: #E5EDD8;
    border-color: #4A6B2E;
    color: #4A6B2E;
}

/* Key suggestion and the example-rows note: one quiet line above the grid, with its own buttons */
.dataset-hint[b-3h137vdi3i] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #4A6B2E;
    border-radius: 0;
    font-size: 13px;
    color: #1a1a2e;
}

.dataset-hint-icon[b-3h137vdi3i] {
    display: inline-flex;
    color: #4A6B2E;
    flex-shrink: 0;
}

.dataset-hint-text[b-3h137vdi3i] {
    flex: 1;
    min-width: 0;
}

.dataset-hint .btn[b-3h137vdi3i] {
    flex-shrink: 0;
}

/* ── Update from file ────────────────────────────────────────────────── */

.dataset-update-list[b-3h137vdi3i] {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
}

.dataset-update-add[b-3h137vdi3i] {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    cursor: pointer;
}

.dataset-update-add input[b-3h137vdi3i] {
    margin-top: 3px;
}

/* Under an each-run column's name: whether it starts blank or from last run's value */
.dataset-eachrun-select[b-3h137vdi3i] {
    margin-top: 4px;
    min-height: 30px;
    font-size: 12px;
    padding: 4px 8px;
}

/* ── Active column ───────────────────────────────────────────────────── */

.dataset-active-cell[b-3h137vdi3i] {
    text-align: center;
    min-width: 72px;
}

.dataset-active-cell input[b-3h137vdi3i] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* A row switched off: still editable, but read as set aside */
.dataset-row-off td[b-3h137vdi3i] {
    background: #f8f8f8;
    color: #6b6b6b;
}

.dataset-row-off .dataset-cell-input[b-3h137vdi3i] {
    color: #6b6b6b;
}

.dataset-key-mark[b-3h137vdi3i] {
    display: inline-flex;
    vertical-align: -2px;
    margin-right: 4px;
    color: #4A6B2E;
}

.dataset-no-rows[b-3h137vdi3i] {
    color: #6b6b6b;
    font-size: 13px;
    text-align: center;
    padding: 24px !important;
}

/* Input cells: remove form-control default border so the grid line is the visual divider */
.dataset-grid :deep(.form-control-sm)[b-3h137vdi3i] {
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 6px;
    min-height: 32px;
    border-radius: 4px;
}

.dataset-grid :deep(.form-control-sm:hover)[b-3h137vdi3i] {
    border-color: #e0e0e0;
    background: #fff;
}

.dataset-grid :deep(.form-control-sm:focus)[b-3h137vdi3i] {
    border-color: #4A6B2E;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.12);
}

/* Header inputs get a visible border so the column name is clearly editable */
.dataset-grid thead :deep(.dataset-col-input)[b-3h137vdi3i] {
    border: 1px solid #d1d1d1;
    background: #fff;
}

/* ── Search + row numbers ────────────────────────────────────────────── */

.dataset-filter[b-3h137vdi3i] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dataset-search[b-3h137vdi3i] {
    max-width: 260px;
    min-height: 36px;
}

.dataset-num-col[b-3h137vdi3i] {
    width: 48px;
    min-width: 48px;
    color: #6b6b6b;
    font-size: 12px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ── Locked (read-only) view ─────────────────────────────────────────── */

.dataset-col-text[b-3h137vdi3i] {
    display: block;
    padding: 4px 6px;
    min-width: 120px;
}

.dataset-col-text.has-error[b-3h137vdi3i] {
    color: #B33C32;
}

.dataset-grid-locked td[b-3h137vdi3i],
.dataset-grid-locked th[b-3h137vdi3i] {
    padding: 8px 10px;
}

.dataset-cell-text[b-3h137vdi3i] {
    min-width: 120px;
    max-width: 320px;
    font-size: 13px;
    color: #1a1a2e;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dataset-grid-locked tbody tr:hover td[b-3h137vdi3i] {
    background: #f8f8f8;
}

/* ── Pager ───────────────────────────────────────────────────────────── */

.dataset-pagination[b-3h137vdi3i] {
    padding: 12px 0 0 0;
}

@media (max-width: 768px) {
    .dataset-search[b-3h137vdi3i] {
        max-width: none;
        flex: 1 1 100%;
    }

    /* Buttons drop under the text instead of squeezing it to a word per line */
    .dataset-hint[b-3h137vdi3i] {
        flex-wrap: wrap;
    }

    .dataset-hint-text[b-3h137vdi3i] {
        flex: 1 1 calc(100% - 26px);
    }
}
/* /Components/DeliveryResult.razor.rz.scp.css */
/* ── Box ─────────────────────────────────────────────────────────────── */
.delivery-result[b-yy04ynj5sh] {
    margin: 0 auto 22px;
    max-width: 420px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f8f8;
    text-align: left;
}

.delivery-result-title[b-yy04ynj5sh] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin-bottom: 8px;
}

/* ── Rows (the caller's markup) ──────────────────────────────────────── */
.delivery-result[b-yy04ynj5sh]  .delivery-result-row + .delivery-result-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.delivery-result[b-yy04ynj5sh]  .delivery-result-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.delivery-result[b-yy04ynj5sh]  .delivery-result-host {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #1a1a2e;
    overflow-wrap: anywhere;
}

.delivery-result[b-yy04ynj5sh]  .delivery-result-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #6b6b6b;
    overflow-wrap: anywhere;
}

.delivery-result[b-yy04ynj5sh]  .delivery-result-error {
    margin-top: 4px;
    font-size: 12px;
    color: #B33C32;
    overflow-wrap: anywhere;
}

.delivery-result[b-yy04ynj5sh]  .delivery-result-actions {
    margin-top: 10px;
}
/* /Components/EnvironmentBanner.razor.rz.scp.css */
.env-banner[b-9v2a5sk8ln] {
    width: 100%;
    background: #fff8e1;
    color: #5a4500;
    border-bottom: 1px solid #f0c040;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    justify-content: center;
    /* Stay below the modal backdrop (z-index 1000) so dialogs render in front of
       the banner. Sits above the mobile topbar (z-index 200) so on mobile it
       can overlap the topbar without being obscured. */
    z-index: 210;
    /* Sticky so the banner stays pinned at the top of the viewport instead of
       scrolling away. Important on mobile post-login where the .mobile-topbar
       is `position: fixed; top: var(--env-banner-height)` — if the banner
       scrolled out of flow the area above the topbar (y=0..30) became an
       empty gap. With sticky it stays put on mobile and behaves like
       `position: relative` on desktop (where the body doesn't scroll because
       .app-shell handles its own overflow). */
    position: sticky;
    top: 0;
}

.env-banner-tag[b-9v2a5sk8ln] {
    background: #f0c040;
    color: #1a1a2e;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.env-banner-text[b-9v2a5sk8ln] {
    color: #5a4500;
}

/* Mobile: hide the full banner entirely. The mobile-topbar gets an
   <EnvironmentPill /> instead — same detection logic, small badge next to
   the RowScribe logo. Two reasons:
     1. On phones the iOS toolbar already steals ~50px; stacking banner +
        topbar + status bar leaves very little dvh for the actual page.
     2. Overlapping the banner onto the topbar (the previous attempt)
        clipped the menu button's tap target.
   The pill is a visual cue only — the full "do not enter real customer
   data" sentence isn't legally required, so dropping it on small screens
   is fine. */
@media (max-width: 768px) {
    .env-banner[b-9v2a5sk8ln] {
        display: none;
    }
}
/* /Components/EnvironmentPill.razor.rz.scp.css */
/* Hidden on desktop — the full EnvironmentBanner covers that case. The pill
   only appears at ≤768px where EnvironmentBanner.razor.css collapses the
   full banner. */
.env-pill[b-ix4ugesvi3] {
    display: none;
}

@media (max-width: 768px) {
    .env-pill[b-ix4ugesvi3] {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
        background: #f0c040;
        color: #1a1a2e;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
}
/* /Components/ExternalSignInButtons.razor.rz.scp.css */
/* ── Provider buttons ──────────── */
.external-signin[b-053hez4liv] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.external-signin-btn[b-053hez4liv] {
    min-height: 44px;
    gap: 10px;
    background: #ffffff;
    color: #1a1a2e;
    font-weight: 500;
}

.external-signin-mark[b-053hez4liv] {
    flex-shrink: 0;
}

/* ── "or" divider ──────────── */
.external-signin-divider[b-053hez4liv] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #6b6b6b;
    font-size: 13px;
}

.external-signin-divider[b-053hez4liv]::before,
.external-signin-divider[b-053hez4liv]::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ── Up-front blockers ──────────── */
.external-signin-alert[b-053hez4liv] {
    margin-bottom: 12px;
}

.external-signin-note[b-053hez4liv] {
    margin: 10px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.external-signin-note-top[b-053hez4liv] {
    margin: 0 0 12px;
}
/* /Components/FileDropzone.razor.rz.scp.css */
/* ── File dropzone ─────────────────────────────────────────
   Big rectangle with dotted border, cloud icon, and "Click to
   upload or drag and drop" prompt. The native <input type="file">
   is positioned over the dropzone with opacity:0 so clicks
   anywhere open the picker and native drop-on-input handling
   routes the file into Blazor's InputFile change event. */

.file-dropzone[b-yqohfgpc8d] {
    position: relative;
    border: 2px dashed #d1d1d1;
    border-radius: 10px;
    background: #fafbfc;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .file-dropzone:hover[b-yqohfgpc8d] {
        border-color: #4A6B2E;
        background: #E5EDD8;
    }

    .file-dropzone.dragging[b-yqohfgpc8d] {
        border-style: solid;
        border-color: #4A6B2E;
        background: #E5EDD8;
    }

    .file-dropzone.has-file[b-yqohfgpc8d] {
        border-style: solid;
        border-color: #e0e0e0;
        background: #fff;
        text-align: left;
        padding: 14px 16px;
        min-height: 0;
    }

        .file-dropzone.has-file:hover[b-yqohfgpc8d] {
            border-color: #b8c5d6;
            background: #fafcfe;
        }

    .file-dropzone.has-error[b-yqohfgpc8d],
    .file-dropzone.has-error:hover[b-yqohfgpc8d] {
        border-color: #B33C32;
    }

/* InputFile renders an <input type="file"> as a child component, so
   the scope attribute isn't on it — ::deep targets it without
   scoping. The opacity:0 layer covers the visible content; clicks
   anywhere trigger the picker, and native drag-and-drop on the
   input writes into Blazor's change event automatically. */
[b-yqohfgpc8d] .dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.dropzone-empty[b-yqohfgpc8d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none; /* clicks pass through to the input on top */
    position: relative;
    z-index: 1;
}

.dropzone-cloud[b-yqohfgpc8d] {
    width: 36px;
    height: 36px;
    color: #4A6B2E;
    margin-bottom: 4px;
}

.dropzone-title[b-yqohfgpc8d] {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

    .dropzone-title strong[b-yqohfgpc8d] {
        color: #4A6B2E;
        font-weight: 600;
    }

.dropzone-hint[b-yqohfgpc8d] {
    font-size: 12px;
    color: #6b6b6b;
}

.dropzone-file[b-yqohfgpc8d] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.dropzone-file-icon[b-yqohfgpc8d] {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #E5EDD8;
    color: #4A6B2E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .dropzone-file-icon svg[b-yqohfgpc8d] {
        width: 18px;
        height: 18px;
    }

.dropzone-file-info[b-yqohfgpc8d] {
    flex: 1;
    min-width: 0;
}

.dropzone-file-name[b-yqohfgpc8d] {
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropzone-file-size[b-yqohfgpc8d] {
    font-size: 12px;
    color: #6b6b6b;
}

.dropzone-replace[b-yqohfgpc8d] {
    font-size: 12px;
    color: #4A6B2E;
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
    flex-shrink: 0;
}
/* /Components/GoogleSheetChooser.razor.rz.scp.css */
/* ── Chosen spreadsheet row ──────────── */
.sheet-chooser[b-3rkelyza56] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 8px 6px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    background: #ffffff;
}

.sheet-chooser.has-error[b-3rkelyza56] {
    border-color: #B33C32;
}

.sheet-chooser-name[b-3rkelyza56] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    color: #1a1a2e;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-chooser-icon[b-3rkelyza56] {
    display: inline-flex;
    flex-shrink: 0;
    color: #4A6B2E;
}

.sheet-chooser-empty[b-3rkelyza56] {
    flex: 1;
    color: #6b6b6b;
}

.sheet-chooser .btn[b-3rkelyza56] {
    flex-shrink: 0;
}
/* /Components/JobEditor.razor.rz.scp.css */
/* Delivery method cards + template selection cards now live in
   wwwroot/css/app.css so JobEditor and ScheduleEditor can share them.
   See the "Selection Cards" section there. */

/* ── Field Mapping (imported PDFs) ──────────────────────────────
   Card-style container with grid-aligned rows so long template-field
   names line up with their dropdowns and hint text. */
.field-mapping[b-rwy1f86yps] {
    margin-top: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.field-mapping-header[b-rwy1f86yps] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.field-mapping-title[b-rwy1f86yps] {
    font-weight: 600;
    font-size: 13px;
    color: #1a1a2e;
    line-height: 1.3;
}

.field-mapping-sub[b-rwy1f86yps] {
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 2px;
    line-height: 1.4;
}

.field-mapping-count[b-rwy1f86yps] {
    font-size: 11px;
    font-weight: 600;
    color: #5b4fe5;
    background: #E5EDD8;
    border: 1px solid #d8d0ff;
    border-radius: 10px;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.field-mapping-list[b-rwy1f86yps] {
    display: flex;
    flex-direction: column;
}

.field-mapping-row[b-rwy1f86yps] {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 16px minmax(180px, 1.4fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.field-mapping-row:last-child[b-rwy1f86yps] {
    border-bottom: none;
}

/* Subtle visual cue: unmapped rows look slightly faded so the user can
   spot what's still missing at a glance. */
.field-mapping-row:not(.is-mapped) .field-mapping-token[b-rwy1f86yps] {
    opacity: 0.7;
}

.field-mapping-token[b-rwy1f86yps] {
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.field-mapping-token-brace[b-rwy1f86yps] {
    color: #b0b0b0;
}

.field-mapping-token-name[b-rwy1f86yps] {
    margin: 0 4px;
}

.field-mapping-arrow[b-rwy1f86yps] {
    color: #b0b0b0;
    font-size: 14px;
    text-align: center;
    user-select: none;
}

.field-mapping-select[b-rwy1f86yps] {
    width: 100%;
    /* Keep the select compact so the row height stays consistent across
       fields that have hint text and ones that don't. */
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
}

/* Hint text wraps to a second grid row, aligned under the dropdown column
   so the visual hierarchy reads as "this field, mapped to this column,
   accepts these values". */
.field-mapping-hint[b-rwy1f86yps] {
    grid-column: 3;
    grid-row: 2;
    font-size: 11.5px;
    color: #6b6b6b;
    line-height: 1.4;
}

/* ── Confirm-step errors ──────────────────────────────────────── */

/* Several reasons a job was refused, one per line. Long column lists wrap inside their own line. */
.job-error-list[b-rwy1f86yps] {
    margin: 0;
    padding-left: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.job-error-list li + li[b-rwy1f86yps] {
    margin-top: 6px;
}

@media (max-width: 600px) {
    .field-mapping-header[b-rwy1f86yps] {
        flex-direction: column;
        align-items: stretch;
    }
    .field-mapping-count[b-rwy1f86yps] {
        align-self: flex-start;
    }
    .field-mapping-row[b-rwy1f86yps] {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 6px;
        padding: 12px 14px;
    }
    .field-mapping-arrow[b-rwy1f86yps] {
        display: none;
    }
    .field-mapping-hint[b-rwy1f86yps] {
        grid-column: 1;
        grid-row: 3;
    }
}

/* .form-label-optional lives in app.css — every editor's labels need it, not
   just this one's. */
/* /Components/LegalConsentText.razor.rz.scp.css */
/* ── Sign-up agreement line ──────────── */
.legal-consent[b-eb4m2ah0cw] {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    text-align: center;
}

.legal-consent a[b-eb4m2ah0cw] {
    color: #4A6B2E;
    text-decoration: none;
    font-weight: 500;
}

.legal-consent a:hover[b-eb4m2ah0cw] {
    text-decoration: underline;
}
/* /Components/LegalReacceptanceGate.razor.rz.scp.css */
.reaccept-title[b-urd1dazhuq] {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.reaccept-body[b-urd1dazhuq] {
    font-size: 14px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 16px 0;
}

.reaccept-list[b-urd1dazhuq] {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.reaccept-list li[b-urd1dazhuq] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #ededed;
}

.reaccept-list li:last-child[b-urd1dazhuq] {
    border-bottom: none;
}

.reaccept-list a[b-urd1dazhuq] {
    color: #4A6B2E;
    font-weight: 500;
    text-decoration: none;
}

.reaccept-list a:hover[b-urd1dazhuq] {
    text-decoration: underline;
}

.reaccept-versions[b-urd1dazhuq] {
    color: #6b6b6b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-align: right;
    flex-shrink: 0;
}

.reaccept-versions strong[b-urd1dazhuq] {
    color: #1a1a2e;
}

.reaccept-actions[b-urd1dazhuq] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .reaccept-list li[b-urd1dazhuq] {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .reaccept-versions[b-urd1dazhuq] {
        text-align: left;
    }

    .reaccept-actions[b-urd1dazhuq] {
        flex-direction: column-reverse;
    }

    .reaccept-actions .btn[b-urd1dazhuq] {
        width: 100%;
    }
}
/* /Components/MarketingCampaignEditor.razor.rz.scp.css */
/* ── Campaign editor ────────────────────────────────────────────────────────── */

.mc-presets[b-31wf8xafvt] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mc-tag-grid[b-31wf8xafvt] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 16px;
}

.mc-date-grid[b-31wf8xafvt] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.mc-dates-hint[b-31wf8xafvt] {
    margin: -8px 0 20px;
}

/* ── Rail: link builder ── */

.mc-card[b-31wf8xafvt] {
    margin-top: 16px;
}

.mc-link[b-31wf8xafvt] {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #1a1a2e;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 10px;
    overflow-wrap: anywhere;
    user-select: all;
}

.mc-copy[b-31wf8xafvt] {
    margin-top: 8px;
}

.mc-extra[b-31wf8xafvt] {
    margin-top: 14px;
    margin-bottom: 0;
}

/* The note under the Term box: clear of the field above it. */
.mc-extra-note[b-31wf8xafvt] {
    margin-top: 16px;
}

.mc-note-top[b-31wf8xafvt] {
    margin: 0 0 10px;
}

@media (max-width: 1024px) {
    .mc-tag-grid[b-31wf8xafvt] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mc-date-grid[b-31wf8xafvt] {
        grid-template-columns: 1fr;
    }
}
/* /Components/PageHelp.razor.rz.scp.css */
/* ── Help Icon Button ──────────────────────────────────────── */
.page-help-icon[b-50roszf2l8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(74, 107, 46, 0.12);
    color: #4A6B2E;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-left: 8px;
    vertical-align: middle;
}

    .page-help-icon:hover[b-50roszf2l8] {
        background: rgba(74, 107, 46, 0.22);
        color: #3B5525;
    }

/* ── Modal Backdrop ───────────────────────────────────────── */
.page-help-backdrop[b-50roszf2l8] {
    position: fixed;
    inset: 0;
    /* Matches .modal-backdrop (1000) so the help drawer sits above the mobile
       topbar / env-banner like every other dialog in the app. */
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    /* `safe center` falls back to start-aligned when the help modal grows past
       the viewport, so the header stays reachable instead of clipping above. */
    align-items: safe center;
    justify-content: center;
    backdrop-filter: blur(2px);
    overflow-y: auto;
    /* max() with env(safe-area-inset-*) clears the iOS notch and home indicator
       without shrinking padding on devices that don't have them. */
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

/* ── Modal ────────────────────────────────────────────────── */
.page-help-modal[b-50roszf2l8] {
    /* Hard reset of inherited font-weight. The PageHelp markup is rendered
       INSIDE the consuming page's <h1 class="page-title">, which is
       font-weight: 800 (extra bold). Without this reset, every <p>, <li>,
       and inline text inside the modal inherits that weight and the whole
       help drawer renders as "everything bold" — the actual bug behind the
       complaint, not Arial-vs-Inter fallback. The modal's title, headings,
       and footer buttons all set their own weights explicitly, so resetting
       here doesn't disturb them. */
    font-weight: 400;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    width: 520px;
    max-width: 100%;
    /* Backdrop padding (max(24px, safe-area-inset)) handles the viewport gap;
       the modal itself just caps at the visible viewport. dvh is used so the
       cap reflects the *visible* viewport on mobile (URL bar collapsed/expanded). */
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    /* Without min-height:0 the flex body refuses to shrink below its intrinsic
       content height, which pushes the modal past max-height and clips off the
       header (top) or close button (bottom) on short viewports. */
    min-height: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    animation: page-help-pop-b-50roszf2l8 0.2s ease;
}

@keyframes page-help-pop-b-50roszf2l8 {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.page-help-modal-header[b-50roszf2l8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.page-help-modal-title[b-50roszf2l8] {
    font-size: 17px;
    /* 600 (semibold) instead of 700 (bold) — gives the title presence without
       fighting the body text for visual weight, especially now that the body
       below uses Inter consistently with the rest of the app. */
    font-weight: 600;
    color: #1a1a2e;
}

.page-help-close[b-50roszf2l8] {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b6b6b;
    padding: 2px 4px;
    line-height: 1;
}

    .page-help-close:hover[b-50roszf2l8] {
        color: #1a1a2e;
    }

/* ── Modal Body ───────────────────────────────────────────── */
.page-help-modal-body[b-50roszf2l8] {
    padding: 20px 24px 24px;
    /* min-height:0 + flex:1 1 auto lets this body shrink to whatever space the
       header leaves inside the (capped) modal, then scroll its own content. */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* Inherit Inter from html/body. The previous system-font override
       (-apple-system, Segoe UI, …) made the modal feel uniformly bold on
       Windows because Segoe UI renders noticeably heavier than Inter at the
       same weight — and inconsistent with every other screen in the app. */
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

[b-50roszf2l8] .help-section {
    margin-bottom: 18px;
}

    [b-50roszf2l8] .help-section:last-child {
        margin-bottom: 0;
    }

[b-50roszf2l8] .help-heading {
    /* Inter is the app's global font (html/body in app.css) — no need to set it
       explicitly here; inheriting keeps the modal in lockstep with the rest of
       the platform. Weight 600 instead of 700 gives the section title enough
       hierarchy against the body text without making the whole modal feel
       uniformly bold. Bumped to 15px so the headings still read as "the
       section title here" against 14px body copy. */
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

[b-50roszf2l8] .help-text {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
}

[b-50roszf2l8] .help-steps {
    padding-left: 20px;
    margin: 6px 0 0;
}

    [b-50roszf2l8] .help-steps li {
        margin-bottom: 8px;
        line-height: 1.7;
    }

[b-50roszf2l8] .help-list {
    padding-left: 20px;
    margin: 6px 0 0;
    list-style: disc;
}

    [b-50roszf2l8] .help-list li {
        margin-bottom: 6px;
        line-height: 1.7;
    }

    /* Icons inside a sentence ("the clock badge means…") sit on the text baseline and ride
       high; this drops them to the middle of the lowercase letters. */
    [b-50roszf2l8] .help-list li svg {
        vertical-align: -2px;
    }

[b-50roszf2l8] .help-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f8f6ff;
    border: 1px solid #E5EDD8;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

[b-50roszf2l8] .help-tip-icon {
    flex-shrink: 0;
    font-size: 14px;
}

[b-50roszf2l8] .help-kbd {
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: #1a1a2e;
}

[b-50roszf2l8] .help-code {
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Modal Footer ─────────────────────────────────────────── */
.page-help-modal-footer[b-50roszf2l8] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px 16px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Match the .modal-backdrop mobile treatment: top padding clears the
       fixed 52px mobile-topbar so the help modal isn't pinned to the navbar
       edge, and `safe center` centers short help bodies while falling back
       to top-aligned when content exceeds the viewport (long help articles
       stay scrollable from the header). */
    .page-help-backdrop[b-50roszf2l8] {
        /* Symmetric padding so `safe center` lands the modal at the true viewport
           midpoint — see .modal-backdrop in app.css for the rationale. 64px on top
           still clears the fixed 52px mobile-topbar position when a tall help body
           falls back to start-alignment. */
        padding: max(64px, calc(env(safe-area-inset-top) + 64px)) 12px max(64px, calc(env(safe-area-inset-bottom) + 64px));
        align-items: safe center;
    }

    .page-help-modal[b-50roszf2l8] {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 128px);
        max-height: calc(100dvh - 128px);
    }

    .page-help-modal-header[b-50roszf2l8] { padding: 14px 16px 12px; }
    .page-help-modal-body[b-50roszf2l8] { padding: 14px 16px 18px; }
    .page-help-modal-footer[b-50roszf2l8] { padding: 10px 16px 14px; }
}
/* /Components/PermissionMatrix.razor.rz.scp.css */
/* ── People picker ──────────── */
.pm-people[b-iseehtw01v] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.pm-person[b-iseehtw01v] {
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 16px;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 13px;
    cursor: pointer;
}

    .pm-person:hover[b-iseehtw01v] {
        border-color: #4A6B2E;
    }

    .pm-person.is-selected[b-iseehtw01v] {
        background: #E5EDD8;
        border-color: #4A6B2E;
    }

.pm-person-col[b-iseehtw01v] {
    margin-left: 4px;
    color: #555;
    font-size: 12px;
}

/* ── Matrix ──────────── */
.pm-table th.pm-col[b-iseehtw01v],
.pm-table td.pm-col[b-iseehtw01v] {
    text-align: center;
    min-width: 96px;
}

.pm-table .is-highlighted[b-iseehtw01v] {
    background: #E5EDD8;
}

.pm-group td[b-iseehtw01v] {
    background: #f8f8f8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
}

.pm-yes[b-iseehtw01v] {
    color: #1a9a3a;
    font-size: 16px;
    font-weight: 700;
}

.pm-no[b-iseehtw01v] {
    color: #6b6b6b;
    font-size: 14px;
}
/* /Components/PermissionSetEditor.razor.rz.scp.css */
/* ── Permission groups ──────────── */
.ps-group[b-8lfgff121z] {
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
    margin-top: 16px;
}

    .ps-group .section-heading[b-8lfgff121z] {
        margin-bottom: 12px;
    }

.ps-option[b-8lfgff121z] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    cursor: pointer;
}

    .ps-option.is-locked[b-8lfgff121z],
    .ps-option.is-locked .ps-row[b-8lfgff121z] {
        cursor: not-allowed;
    }

        .ps-option.is-locked .ps-name[b-8lfgff121z] {
            color: #555;
        }

.ps-name[b-8lfgff121z] {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

/* Lined up with the name: the 16px box plus the row's 8px gap. */
.ps-hint[b-8lfgff121z],
.ps-needed[b-8lfgff121z] {
    padding-left: 24px;
}

.ps-needed[b-8lfgff121z] {
    font-size: 12px;
    color: #6b6b6b;
}

/* ── Summary rail ──────────── */
.ps-summary-label[b-8lfgff121z] {
    margin: 14px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.ps-summary-list[b-8lfgff121z] {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

.ps-summary-foot[b-8lfgff121z] {
    margin-top: 12px;
    line-height: 1.5;
}
/* /Components/PricingPlans.razor.rz.scp.css */
/* ── Pricing plans — shared by the home page's #pricing and /pricing ──
   Moved from LandingPage.razor.css with the same selectors, so the home page looks as it did.
   Same hardcoded tokens as the landing page (no CSS variables per CLAUDE.md). The heading
   arrives from the caller through Heading, so rules for it use ::deep. */

/* ── Element defaults and buttons ──────────── */
/* The landing page's element defaults and pill buttons are scoped to it and don't reach in
   here, so this component carries its own copy of what it uses. */
h3[b-4r84cncehe] { margin: 0; }
button[b-4r84cncehe] { font: inherit; cursor: pointer; }

.btn[b-4r84cncehe] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}

.btn:hover[b-4r84cncehe] { text-decoration: none; }
.btn-primary[b-4r84cncehe] { background: #4A6B2E; color: #fff; }
    .btn-primary:hover[b-4r84cncehe] { background: #3B5525; color: #fff; }
.btn-outline[b-4r84cncehe] { background: #fff; color: #1A1A2E; border-color: #D9D5C8; }
    .btn-outline:hover[b-4r84cncehe] { background: #fff; color: #1A1A2E; border-color: #1A1A2E; }
.btn-sm[b-4r84cncehe] { min-height: 38px; padding: 7px 16px; font-size: 14px; }

/* ── Head row: the caller's heading, the billing toggle ──────────── */
.price-head[b-4r84cncehe] { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
    .price-head[b-4r84cncehe]  .lede { margin-top: 14px; }

.toggle[b-4r84cncehe] { display: inline-flex; background: #ECE9DF; border-radius: 999px; padding: 4px; }
    .toggle button[b-4r84cncehe] { border: 0; background: none; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 13.5px; color: #5C5A6E; }
    .toggle button[aria-pressed="true"][b-4r84cncehe] { background: #fff; color: #1A1A2E; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ── Plan cards ──────────── */
.plans[b-4r84cncehe] { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #E2DED2; border-radius: 22px; background: #fff; overflow: hidden; }
.plan[b-4r84cncehe] { padding: 32px 28px; border-right: 1px solid #ECE9DF; display: flex; flex-direction: column; position: relative; }
    .plan:last-child[b-4r84cncehe] { border-right: 0; }
    .plan.feat[b-4r84cncehe] { background: #F6F9F1; }
    .plan.feat[b-4r84cncehe]::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: #4A6B2E; }
    .plan h3[b-4r84cncehe] { font-size: 15px; font-weight: 600; }
    .plan .plan-name[b-4r84cncehe] { display: flex; align-items: center; gap: 8px; }
    /* Sentence case: app.css's global .badge uppercases and tracks out its text. */
    .plan .badge[b-4r84cncehe] { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; background: #4A6B2E; color: #fff; border-radius: 999px; padding: 2px 9px; }
    .plan .price[b-4r84cncehe] { font: 600 46px/1 'Inter', sans-serif; letter-spacing: -0.03em; margin: 18px 0 4px; }
    .plan .price small[b-4r84cncehe] { font: 500 14px 'Inter', sans-serif; letter-spacing: 0; color: #6B6B6B; margin-left: 2px; }
    .plan .docs[b-4r84cncehe] { font-weight: 600; }
    .plan .per[b-4r84cncehe] { font-size: 13px; color: #6B6B6B; min-height: 20px; }
    .plan .save[b-4r84cncehe] { font-size: 13px; font-weight: 600; color: #4A6B2E; min-height: 20px; }
    .plan .adds[b-4r84cncehe] { font-size: 12px; color: #8A877A; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-top: 22px; }
    .plan ul[b-4r84cncehe] { list-style: none; padding: 0; margin: 10px 0 26px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
    .plan li[b-4r84cncehe] { display: flex; gap: 10px; }
    .plan li[b-4r84cncehe]::before { content: ""; flex: none; width: 14px; height: 8px; margin-top: 6px; border-left: 2px solid #4A6B2E; border-bottom: 2px solid #4A6B2E; transform: rotate(-45deg) scale(.8); }
    .plan .btn[b-4r84cncehe] { width: 100%; }

.enterprise[b-4r84cncehe] { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 16px; padding: 22px 28px; border: 1px solid #E2DED2; border-radius: 18px; background: #fff; }
    .enterprise p[b-4r84cncehe] { margin: 4px 0 0; font-size: 14px; color: #5C5A6E; }

/* ── Plan comparison ──────────── */
/* Positioned so the screen-reader labels (.compare-sr, position: absolute) belong to the
   grid. Without it they anchored to the viewport, counted toward the outer document's
   height instead of .main-content's, and scrolling past the footer then carried on into
   the document and showed an empty strip of page background below it. */
.compare[b-4r84cncehe] { position: relative; margin-top: 24px; border: 1px solid #E2DED2; border-radius: 18px; background: #fff; }
    .compare summary[b-4r84cncehe] { padding: 18px 24px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
    .compare summary[b-4r84cncehe]::-webkit-details-marker { display: none; }
    .compare summary[b-4r84cncehe]::after { content: "+"; font-size: 20px; line-height: 1; color: #4A6B2E; }
    .compare[open] summary[b-4r84cncehe]::after { content: "\2013"; }
.compare-body[b-4r84cncehe] { padding: 0 0 8px; }

/* Phones only: picks the one plan column the grid has room for. */
.compare-switch[b-4r84cncehe] { display: none; margin: 0 auto 14px; width: fit-content; background: #ECE9DF; border-radius: 999px; padding: 4px; }
    .compare-switch button[b-4r84cncehe] { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 12.5px; color: #5C5A6E; }
    .compare-switch button[aria-pressed="true"][b-4r84cncehe] { background: #fff; color: #1A1A2E; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.compare-table[b-4r84cncehe] { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
    .compare-table th[b-4r84cncehe], .compare-table td[b-4r84cncehe] { padding: 11px 24px; border-top: 1px solid #F0EDE4; text-align: center; vertical-align: middle; }
    .compare-table thead th[b-4r84cncehe] { font-weight: 600; }
    .compare-table th[scope="row"][b-4r84cncehe] { text-align: left; font-weight: 400; color: #4D4C5C; }
.compare-feature-col[b-4r84cncehe] { width: 36%; }
.compare-table .col-featured[b-4r84cncehe] { background: #F6F9F1; }
.compare-table thead .col-featured[b-4r84cncehe] { color: #3B5525; }
.compare-group th[b-4r84cncehe] { text-align: left; font: 500 11.5px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .04em; color: #4A6B2E; background: #FAF9F4; }
.compare-yes[b-4r84cncehe] { font-weight: 700; color: #4A6B2E; }
.compare-no[b-4r84cncehe] { color: #C2BFB3; }
.compare-value[b-4r84cncehe] { font-weight: 500; }

/* Read by screen readers, not shown — the marks above carry the meaning visually. */
.compare-sr[b-4r84cncehe] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Fine print ──────────── */
.fine[b-4r84cncehe] { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; font-size: 13px; color: #6B6B6B; }
    .fine p[b-4r84cncehe] { margin: 0; }
    .fine strong[b-4r84cncehe] { color: #1A1A2E; }

/* ── Responsive ──────────── */
@media (max-width: 1024px) {
    .plans[b-4r84cncehe] { grid-template-columns: repeat(2, 1fr); }
    .plan:nth-child(2)[b-4r84cncehe] { border-right: 0; }
    .plan:nth-child(-n+2)[b-4r84cncehe] { border-bottom: 1px solid #ECE9DF; }
    .fine[b-4r84cncehe] { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 768px) {
    .plans[b-4r84cncehe] { grid-template-columns: 1fr; }
    .plan[b-4r84cncehe], .plan:nth-child(2)[b-4r84cncehe] { border-right: 0; border-bottom: 1px solid #ECE9DF; }
    .plan:last-child[b-4r84cncehe] { border-bottom: 0; }
    .enterprise[b-4r84cncehe] { flex-direction: column; align-items: flex-start; }
    .compare-switch[b-4r84cncehe] { display: flex; }
    /* One plan column: auto layout lets the hidden columns collapse to nothing (fixed layout
       kept all five, squeezing the labels into a strip), and the label takes most of the row. */
    .compare-table[b-4r84cncehe] { table-layout: auto; }
    .compare-table .col-off[b-4r84cncehe] { display: none; }
    .compare-table th[b-4r84cncehe], .compare-table td[b-4r84cncehe] { padding: 10px 14px; }
    .compare-table th[scope="row"][b-4r84cncehe] { width: 64%; }
}

/* On touch screens the toggles are at least 44px tall, like every other control. */
@media (pointer: coarse) {
    .toggle button[b-4r84cncehe], .compare-switch button[b-4r84cncehe] { min-height: 44px; }
}
/* /Components/RecipientListEditor.razor.rz.scp.css */
/* The heading and its two buttons ("Import CSV / Excel", "+ Add email") don't
   fit on one line inside the modal at phone widths. Without wrapping, the
   nowrap buttons pushed the row past the modal's right edge and "+ Add email"
   was sliced in half. */
.recipient-list-toolbar[b-442h143ult] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 16px 0 8px 0;
}

.recipient-list-toolbar-title[b-442h143ult] {
    font-size: 14px;
    margin: 0;
    color: #1a1a2e;
    flex: 1 1 auto;
    min-width: 0;
}

.recipient-list-toolbar-actions[b-442h143ult] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

@media (max-width: 480px) {
    /* Once the buttons have dropped below the heading there's no reason to
       leave them huddled on the right — give them the full row so neither
       label truncates. */
    .recipient-list-toolbar-actions[b-442h143ult] {
        width: 100%;
    }

        .recipient-list-toolbar-actions > *[b-442h143ult] {
            flex: 1 1 0;
            justify-content: center;
            text-align: center;
        }
}

.recipient-list-empty[b-442h143ult] {
    padding: 16px;
    background: #fafafa;
    border: 1px dashed #d1d1d1;
    border-radius: 4px;
    color: #6b6b6b;
    font-size: 13px;
}

/* Rows are RecipientListEmailRow components (styled in their own .razor.css). No gap here:
   Virtualize puts spacer elements before and after the rendered rows, and a gap would pad
   them too, so each row carries its own bottom margin instead. */
.recipient-list-rows[b-442h143ult] {
    display: flex;
    flex-direction: column;
}

/* ── Find an address ──────────── */
.recipient-list-filter[b-442h143ult] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.recipient-list-filter input[b-442h143ult] {
    flex: 1;
    min-width: 0;
}

.recipient-list-filter-count[b-442h143ult] {
    white-space: nowrap;
}

.recipient-list-filter-clear[b-442h143ult] {
    background: none;
    border: none;
    padding: 0;
    margin-left: 6px;
    color: #4A6B2E;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
/* /Components/RecipientListEmailRow.razor.rz.scp.css */
/* ── Recipient list row ──────────── */
.recipient-list-row[b-alsg32u723] {
    display: grid;
    grid-template-columns: 1fr 32px;
    gap: 6px;
    align-items: center;
    position: relative;
    margin-bottom: 6px;
}

.recipient-list-row-error[b-alsg32u723] {
    grid-column: 1 / 3;
}

.recipient-list-remove-btn[b-alsg32u723] {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #6b6b6b;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipient-list-remove-btn:hover[b-alsg32u723] {
    color: #B33C32;
    border-color: #B33C32;
}
/* /Components/RecipientPicker.razor.rz.scp.css */
.recipient-picker[b-ougau5ihzg] {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 8px;
    align-items: stretch;
}

.recipient-picker-mode select[b-ougau5ihzg] {
    height: 44px;
}

.recipient-picker-value[b-ougau5ihzg] {
    min-width: 0;
}

.recipient-picker-empty[b-ougau5ihzg] {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
}

.recipient-picker-hint[b-ougau5ihzg] {
    margin-top: 6px;
}

@media (max-width: 600px) {
    .recipient-picker[b-ougau5ihzg] {
        grid-template-columns: 1fr;
    }
}
/* /Components/ReconnectPrompt.razor.rz.scp.css */
/* ── Reconnect Prompt ─────────────────────────────────────────── */

.reconnect-prompt[b-on8qgx6n8a] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fdf1f0;
    border: 1px solid #e8b4ae;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0 12px;
    font-size: 13px;
    color: #1a1a2e;
    line-height: 1.5;
}

.reconnect-prompt-icon[b-on8qgx6n8a] {
    color: #B33C32;
    flex: 0 0 auto;
    display: inline-flex;
}

.reconnect-prompt-text[b-on8qgx6n8a] {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.reconnect-prompt-error[b-on8qgx6n8a] {
    display: block;
    color: #B33C32;
    margin-top: 4px;
}

.reconnect-prompt .btn[b-on8qgx6n8a] {
    flex: 0 0 auto;
}

@media (max-width: 480px) {
    .reconnect-prompt[b-on8qgx6n8a] {
        flex-wrap: wrap;
    }
}
/* /Components/SampleLineItems.razor.rz.scp.css */
/* ── Sample line items (editor Sample Data) ──────────── */
/* Sized for the editors' 260px sidebars; inputs match .ped-input / .etb-sample-input, which are
   scoped to their pages and so can't reach this component. */

.sli[b-xem5b97llh] {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f8f8;
}

.sli-head[b-xem5b97llh] {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sli-title[b-xem5b97llh] {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sli-count[b-xem5b97llh] {
  font-size: 11px;
  color: #555;
  flex-shrink: 0;
}

.sli-hint[b-xem5b97llh] {
  margin: 2px 0 6px;
  font-size: 11px;
  color: #555;
}

/* ── One line ──────────── */

.sli-line[b-xem5b97llh] {
  margin-top: 6px;
  padding: 6px 8px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #ffffff;
}

.sli-line-head[b-xem5b97llh] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a2e;
}

.sli-remove[b-xem5b97llh] {
  border: none;
  background: none;
  padding: 2px 4px;
  font-size: 11px;
  line-height: 1;
  color: #6b6b6b;
  cursor: pointer;
  border-radius: 4px;
}

.sli-remove:hover[b-xem5b97llh] { color: #B33C32; background: #f8f8f8; }

.sli-field[b-xem5b97llh] {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.sli-label[b-xem5b97llh] {
  font-size: 11px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sli-input[b-xem5b97llh] {
  width: 100%;
  min-width: 0;
  padding: 4px 7px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  font-size: 12px;
  color: #1a1a2e;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sli-input[b-xem5b97llh]::placeholder { color: #6b6b6b; }

.sli-input:focus[b-xem5b97llh] {
  border-color: #4A6B2E;
  box-shadow: 0 0 0 3px #E5EDD8;
}

/* ── Add / invalid ──────────── */

.sli-add[b-xem5b97llh] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px dashed #d1d1d1;
  border-radius: 5px;
  background: #ffffff;
  font-size: 11px;
  color: #555;
  cursor: pointer;
}

.sli-add:hover[b-xem5b97llh] { border-color: #4A6B2E; color: #4A6B2E; }

.sli-invalid[b-xem5b97llh] {
  font-size: 11px;
  color: #B33C32;
}

.sli-link[b-xem5b97llh] {
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  color: #4A6B2E;
  text-decoration: underline;
  cursor: pointer;
}
/* /Components/SendLimitsBox.razor.rz.scp.css */
/* ── Send Limits Info Box ─────────────────────────────────────────────────── */

.send-limits-box[b-9jbm7tkmc5] {
    background: #fffbeb;
    border: 1px solid #f0c040;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.send-limits-title[b-9jbm7tkmc5] {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 10px;
}

.send-limits-table[b-9jbm7tkmc5] {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 8px;
}

.send-limits-table th[b-9jbm7tkmc5] {
    text-align: left;
    padding: 5px 8px;
    color: #92400e;
    font-weight: 600;
    border-bottom: 1px solid #f0c040;
}

.send-limits-table td[b-9jbm7tkmc5] {
    padding: 5px 8px;
    color: #555;
}

.send-limits-table .send-limits-active[b-9jbm7tkmc5] {
    background: rgba(240, 192, 64, 0.2);
    font-weight: 600;
    color: #1a1a2e;
}

/* The computed lines sit between the table and the note: darker than the note so
   they read as being about *this* job rather than as more reference material, and
   icon-led so they scan as a pair. */
.send-limits-estimate[b-9jbm7tkmc5],
.send-limits-warning[b-9jbm7tkmc5] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 8px;
}

.send-limits-estimate[b-9jbm7tkmc5] {
    color: #1a1a2e;
}

.send-limits-warning[b-9jbm7tkmc5] {
    color: #B33C32;
    font-weight: 500;
}

/* Lucide renders at the font size it inherits unless pinned; without this the
   glyph stretches to the wrapped text's full height on a narrow screen. */
.send-limits-estimate svg[b-9jbm7tkmc5],
.send-limits-warning svg[b-9jbm7tkmc5] {
    flex: 0 0 auto;
    margin-top: 1px;
}

/* 12px, matching .form-hint — this is the same kind of text, and at 11px it was
   the smallest thing on the page for no reason other than being in a box. */
.send-limits-note[b-9jbm7tkmc5] {
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
    margin: 0;
}

/* ── New-account caveat ──────────── */
/* Ruled off from the table's note: that one is about the published figures, this one is
   about why an account can fall short of them. */
.send-limits-new-account[b-9jbm7tkmc5] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0c040;
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
}

.send-limits-new-account svg[b-9jbm7tkmc5] {
    flex: 0 0 auto;
    margin-top: 2px;
}

.send-limits-new-account strong[b-9jbm7tkmc5] {
    color: #1a1a2e;
}

/* /Components/ToastContainer.razor.rz.scp.css */
/* Stack of fixed-position toasts at the bottom-right of the viewport.
   Mounted once in MainLayout so it floats above all page content. */
.toast-stack[b-dfv8eqfvlx] {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column-reverse; /* newest toast at the bottom of the stack */
    gap: 10px;
    z-index: 9999;
    pointer-events: none; /* children re-enable */
    max-width: min(380px, calc(100vw - 48px));
}

.toast[b-dfv8eqfvlx] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid transparent;
    animation: toast-in-b-dfv8eqfvlx 0.2s ease;
    pointer-events: auto; /* re-enable for the toast itself */
    min-width: 0;
}

.toast-leaving[b-dfv8eqfvlx] {
    animation: toast-out-b-dfv8eqfvlx 0.18s ease forwards;
}

/* ── Severity colours mirror the alert-success/error/info palette so a
       persistent inline alert and a transient toast feel like the same
       voice. ────────────────────────────────────────────────────────── */
.toast-success[b-dfv8eqfvlx] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.toast-error[b-dfv8eqfvlx] {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.toast-info[b-dfv8eqfvlx] {
    background: #eff6ff;
    color: #1e3a8a;
    border-color: #bfdbfe;
}

.toast-icon[b-dfv8eqfvlx] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.toast-success .toast-icon[b-dfv8eqfvlx] {
    background: #1a9a3a;
    color: #fff;
}

.toast-error .toast-icon[b-dfv8eqfvlx] {
    background: #B33C32;
    color: #fff;
}

.toast-info .toast-icon[b-dfv8eqfvlx] {
    background: #2563eb;
    color: #fff;
}

.toast-message[b-dfv8eqfvlx] {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.toast-close[b-dfv8eqfvlx] {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    border-radius: 4px;
    transition: opacity 0.15s, background 0.15s;
}

    .toast-close:hover[b-dfv8eqfvlx] {
        opacity: 1;
        background: rgba(0, 0, 0, 0.06);
    }

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .toast-stack[b-dfv8eqfvlx] {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }
}

@keyframes toast-in-b-dfv8eqfvlx {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out-b-dfv8eqfvlx {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}
/* /Components/UrlTokenHelp.razor.rz.scp.css */
/* ── URL Placeholders ─────────────────────────────────────────── */

.url-tokens-table[b-i1vv6mri6r] {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}

.url-tokens-table th[b-i1vv6mri6r] {
    text-align: left;
    padding: 6px 8px;
    color: #555;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.url-tokens-table td[b-i1vv6mri6r] {
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    color: #1a1a2e;
}

.url-tokens-table code[b-i1vv6mri6r] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    word-break: break-all;
}

.url-tokens-meaning[b-i1vv6mri6r] {
    color: #6b6b6b;
    margin-top: 2px;
}

.url-tokens-value[b-i1vv6mri6r] {
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .url-tokens-value[b-i1vv6mri6r] {
        white-space: normal;
    }
}
/* /Components/UseCasesMenu.razor.rz.scp.css */
/* ── Use cases nav menu ──────────────────────────────────────
   Matches the public nav's links (14px, 500, #4D4C5C) and the landing palette. Opens on
   :hover and :focus-within, so it needs no script. The panel is offset by a transparent
   bridge (padding-top), so moving the pointer from the trigger to the panel keeps it open. */

.uc[b-746hwu7ohw] { position: relative; list-style: none; }

.uc-trigger[b-746hwu7ohw] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: 500 14px 'Inter', sans-serif;
    color: #4D4C5C;
    cursor: pointer;
}

.uc-trigger:hover[b-746hwu7ohw],
.uc:focus-within .uc-trigger[b-746hwu7ohw] { color: #1A1A2E; }

/* A small chevron drawn in CSS, turned up while the menu is open. */
.uc-caret[b-746hwu7ohw] {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .15s;
}

.uc:hover .uc-caret[b-746hwu7ohw],
.uc:focus-within .uc-caret[b-746hwu7ohw] { transform: translateY(1px) rotate(-135deg); }

.uc-panel[b-746hwu7ohw] {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px;
    padding-top: 12px;
    z-index: 60;
}

.uc:hover .uc-panel[b-746hwu7ohw],
.uc:focus-within .uc-panel[b-746hwu7ohw] { display: block; }

/* Escape closed it (UseCasesMenu.razor): stays shut while the pointer or focus is still there. */
.uc.uc-dismissed .uc-panel[b-746hwu7ohw] { display: none; }
.uc.uc-dismissed .uc-caret[b-746hwu7ohw] { transform: translateY(-2px) rotate(45deg); }

.uc-list[b-746hwu7ohw] {
    list-style: none;
    margin: 0;
    padding: 8px;
    width: 300px;
    background: #fff;
    border: 1px solid #E2DED2;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.12);
}

.uc-list a[b-746hwu7ohw] {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
}

.uc-list a:hover[b-746hwu7ohw],
.uc-list a:focus-visible[b-746hwu7ohw] { background: #F6F9F1; text-decoration: none; }

.uc-name[b-746hwu7ohw] { display: block; font: 600 14px 'Inter', sans-serif; color: #1A1A2E; }
.uc-blurb[b-746hwu7ohw] { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: #5C5A6E; }

@media (pointer: coarse) {
    .uc-trigger[b-746hwu7ohw] { min-height: 44px; }
    .uc-list a[b-746hwu7ohw] { min-height: 44px; }
}
/* /Components/WebhookEndpointEditor.razor.rz.scp.css */
/* ── Custom headers ──────────── */
.webhook-header-row[b-sc8tzt466u] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 40px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

/* ── Signing secret ──────────── */
/* A second card in the rail, under the summary. */
.webhook-secret[b-sc8tzt466u] {
    margin-top: 12px;
}

.webhook-secret-value[b-sc8tzt466u] {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 8px 10px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow-wrap: anywhere;
    user-select: all;
}

.webhook-secret-actions[b-sc8tzt466u] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.webhook-rotate-confirm[b-sc8tzt466u] {
    margin-top: 10px;
    padding: 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .webhook-header-row[b-sc8tzt466u] {
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .webhook-header-row > :nth-child(2)[b-sc8tzt466u] {
        grid-column: 1;
        grid-row: 2;
    }
}
/* /Components/WebhookEndpointsPanel.razor.rz.scp.css */
/* ── Header ──────────── */
.webhook-panel-header[b-fklbv30g9b] {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.webhook-panel-header .btn[b-fklbv30g9b] {
    flex-shrink: 0;
}

/* ── Endpoint URL ──────────── */
.webhook-panel-url[b-fklbv30g9b] {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .webhook-panel-header[b-fklbv30g9b] {
        flex-direction: column;
    }

    .webhook-panel-url[b-fklbv30g9b] {
        max-width: 180px;
    }
}
/* /Components/WorkspaceSwitcher.razor.rz.scp.css */
/* ── Workspace Switcher ────────────────────────────────────────────────── */

.workspace-switcher[b-li6g61se02] {
    position: relative;
    margin: 4px 12px 16px;
    font-family: 'Inter', sans-serif;
}

/* ── Avatar ──────────────────────────────────────────────────────────── */

.ws-avatar[b-li6g61se02] {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: uppercase;
    background: #4A6B2E;
}

.ws-avatar-sm[b-li6g61se02] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 12px;
}

.ws-avatar-skeleton[b-li6g61se02] {
    background: #e0e0e0;
}

/* ── Trigger / static container ──────────────────────────────────────── */

.workspace-switcher.static[b-li6g61se02],
.ws-trigger[b-li6g61se02] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    text-align: left;
    box-sizing: border-box;
}

.workspace-switcher.static[b-li6g61se02] {
    cursor: default;
}

.ws-trigger[b-li6g61se02] {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ws-trigger:hover[b-li6g61se02] {
    border-color: #d1d1d1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.workspace-switcher.open .ws-trigger[b-li6g61se02] {
    border-color: #4A6B2E;
    box-shadow: 0 0 0 3px rgba(74, 107, 46, 0.12);
}

.workspace-switcher.loading[b-li6g61se02] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #6b6b6b;
}

/* ── Text block ──────────────────────────────────────────────────────── */

.ws-text[b-li6g61se02] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.ws-label[b-li6g61se02] {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.ws-name[b-li6g61se02] {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-chevron[b-li6g61se02] {
    flex-shrink: 0;
    color: #6b6b6b;
    font-size: 11px;
    transition: transform 0.15s ease;
}

.workspace-switcher.open .ws-chevron[b-li6g61se02] {
    transform: rotate(180deg);
    color: #4A6B2E;
}

/* ── Popover ────────────────────────────────────────────────────────── */

.ws-popover[b-li6g61se02] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    animation: ws-fade-in-b-li6g61se02 0.12s ease-out;
}

@keyframes ws-fade-in-b-li6g61se02 {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ws-backdrop[b-li6g61se02] {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.ws-popover-header[b-li6g61se02] {
    padding: 10px 12px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.ws-popover-list[b-li6g61se02] {
    max-height: 280px;
    overflow-y: auto;
    padding: 0 4px 4px;
}

/* ── Workspace items ─────────────────────────────────────────────────── */

.ws-item[b-li6g61se02] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    transition: background 0.1s ease;
    box-sizing: border-box;
}

.ws-item:hover:not(:disabled)[b-li6g61se02] {
    background: #f5f5f5;
}

.ws-item.active[b-li6g61se02] {
    background: #E5EDD8;
    cursor: default;
}

.ws-item:disabled[b-li6g61se02] {
    cursor: default;
}

.ws-item-text[b-li6g61se02] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.ws-item-name[b-li6g61se02] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.ws-item-name-text[b-li6g61se02] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.ws-item.active .ws-item-name[b-li6g61se02] {
    color: #4A6B2E;
}

/* Tiny "main" tag next to the primary workspace's name — signals which one is
   undeletable + holds billing. Same pattern as a status badge but inline. */
.ws-item-primary-tag[b-li6g61se02] {
    flex-shrink: 0;
    display: inline-block;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4A6B2E;
    background: #E5EDD8;
    border-radius: 4px;
    vertical-align: middle;
}

.ws-item-role[b-li6g61se02] {
    font-size: 11px;
    color: #6b6b6b;
    text-transform: capitalize;
}

.ws-item.active .ws-item-role[b-li6g61se02] {
    color: #4A6B2E;
    opacity: 0.85;
}

.ws-item-check[b-li6g61se02] {
    flex-shrink: 0;
    color: #4A6B2E;
    font-size: 14px;
    font-weight: 700;
}

/* ── Invitations ─────────────────────────────────────────────────────── */

/* Count on the trigger, so an invitation is seen without opening the popover. */
.ws-invite-count[b-li6g61se02] {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #4A6B2E;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ws-invites-header[b-li6g61se02] {
    border-top: 1px solid #f0f0f0;
}

.ws-invite[b-li6g61se02] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
}

.ws-invite-meta[b-li6g61se02] {
    font-size: 11px;
    color: #6b6b6b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-invite-join[b-li6g61se02] {
    flex-shrink: 0;
}

/* ── Footer actions ──────────────────────────────────────────────────── */

.ws-error[b-li6g61se02] {
    padding: 8px 12px;
    color: #B33C32;
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
    background: #fff7f7;
}

.ws-add[b-li6g61se02] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fafafa;
    border: none;
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #4A6B2E;
    font-weight: 600;
    transition: background 0.1s ease;
}

.ws-add:hover[b-li6g61se02] {
    background: #E5EDD8;
}

.ws-add-icon[b-li6g61se02] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
/* /LandingPage.razor.rz.scp.css */
/* ── Landing Page — "Ledger" ─────────────────────────────────
   Light and ruled: sections split by hairlines on a warm paper ground, headings in
   Inter semibold with light tracking (Linear / Attio weight, not a heavy display
   cut), JetBrains Mono for column names and small labels. Both fonts are the
   self-hosted ones app.css declares.

   Token reference (hardcoded throughout — no CSS variables per CLAUDE.md):
     #FBFAF6  page ground          #F3F1EA / #F7F5EF  sand panels
     #E7E4DA  hairlines            #E2DED2 / #D9D5C8  card and control borders
     #1A1A2E  text strong          #4D4C5C / #5C5A6E  text body
     #6B6B6B  text muted           #4A6B2E  Green Bar     #3B5525  hover
     #E7EFDB  merge-value tint     #2F4A1A  text on tint
*/

/* ══ PAGE ══ */
.lp[b-o0wkmgb5jo] {
    background: #FBFAF6;
    color: #1A1A2E;
    font: 400 16px/1.6 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Element defaults, wrapped in :where() so they weigh no more than a bare element selector.
   Scoping adds an attribute to every rule, so as ".lp a" these outranked ".btn-primary" and
   the link buttons took the surrounding text colour; any class must still win over them.
   The hover rule also turns off app.css's underline on every link, which the design doesn't
   have; links that want one set it themselves. */
:where(.lp) img[b-o0wkmgb5jo] { max-width: 100%; display: block; }
:where(.lp) a[b-o0wkmgb5jo] { color: inherit; }
:where(.lp) a:hover[b-o0wkmgb5jo] { text-decoration: none; }
:where(.lp) h1[b-o0wkmgb5jo], :where(.lp) h2[b-o0wkmgb5jo], :where(.lp) h3[b-o0wkmgb5jo], :where(.lp) h4[b-o0wkmgb5jo] { margin: 0; }
:where(.lp) button[b-o0wkmgb5jo] { font: inherit; cursor: pointer; }

.rail[b-o0wkmgb5jo] {
    max-width: 1200px;
    margin: 0 auto;
}

.band[b-o0wkmgb5jo] { border-top: 1px solid #E7E4DA; }

/* The nav's links scroll a section to the top of the window, where the sticky 64px nav would
   cover its heading; stop that far short, so the section's own top padding shows above it. */
section[id][b-o0wkmgb5jo] { scroll-margin-top: 64px; }
.pad[b-o0wkmgb5jo] { padding: 44px 56px 72px; }

.display[b-o0wkmgb5jo] {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.1;
}

.h2[b-o0wkmgb5jo] { font-size: clamp(28px, 2.9vw, 40px); }
.lede[b-o0wkmgb5jo] { margin: 0; font-size: 18px; color: #4D4C5C; max-width: 520px; }
.tag[b-o0wkmgb5jo] { font: 500 12px 'JetBrains Mono', monospace; background: #E7EFDB; color: #2F4A1A; border-radius: 4px; padding: 1px 5px; }

/* ══ BUTTONS ══ */
/* The page's own pill buttons over app.css's .btn, which they outrank by scope. */
.btn[b-o0wkmgb5jo] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}

.btn-primary[b-o0wkmgb5jo] { background: #4A6B2E; color: #fff; }
    .btn-primary:hover[b-o0wkmgb5jo] { background: #3B5525; }
.btn-outline[b-o0wkmgb5jo] { background: #fff; color: #1A1A2E; border-color: #D9D5C8; }
    /* Stays white: app.css greys .btn-outline on hover. */
    .btn-outline:hover[b-o0wkmgb5jo] { background: #fff; color: #1A1A2E; border-color: #1A1A2E; }
.btn-sm[b-o0wkmgb5jo] { min-height: 38px; padding: 7px 16px; font-size: 14px; }

/* ══ NAV ══ */
.nav-wrap[b-o0wkmgb5jo] {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 246, 0.86);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid #E7E4DA;
}

.nav[b-o0wkmgb5jo] {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
    padding: 0 28px;
}

/* The wordmark's colours and mark sizing come from app.css; the lockup only sets its size. */
.nav-logo[b-o0wkmgb5jo] {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

    .nav-logo[b-o0wkmgb5jo]  a { display: inline-flex; align-items: center; text-decoration: none; }
    .nav-logo[b-o0wkmgb5jo]  .rowscribe-logo-mark { height: 22px; margin-right: 10px; vertical-align: baseline; }

.nav-links[b-o0wkmgb5jo] { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
    /* Centered, not stretched: on touch screens the Use cases button is 44px tall (UseCasesMenu.razor.css),
       and top-aligned links then sat 13px above its label. */
    .nav-links a[b-o0wkmgb5jo] { text-decoration: none; font-size: 14px; font-weight: 500; color: #4D4C5C; }
    .nav-links a:hover[b-o0wkmgb5jo] { color: #1A1A2E; }
.nav-right[b-o0wkmgb5jo] { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-login[b-o0wkmgb5jo] { text-decoration: none; font-size: 14px; font-weight: 500; color: #4D4C5C; padding: 8px 12px; }

/* Three bars drawn in CSS, not a ☰ glyph that renders at whatever weight the font has. */
.nav-burger[b-o0wkmgb5jo] { display: none; margin-left: auto; background: none; border: 1px solid #D9D5C8; border-radius: 8px; width: 40px; height: 40px; }
    .nav-burger span[b-o0wkmgb5jo], .nav-burger span[b-o0wkmgb5jo]::before, .nav-burger span[b-o0wkmgb5jo]::after { display: block; width: 16px; height: 1.5px; background: #1A1A2E; margin: 0 auto; position: relative; content: ""; }
    .nav-burger span[b-o0wkmgb5jo]::before { position: absolute; top: -5px; }
    .nav-burger span[b-o0wkmgb5jo]::after { position: absolute; top: 5px; }

.drawer[b-o0wkmgb5jo] { border-top: 1px solid #E7E4DA; padding: 16px 20px 20px; }
    .drawer[hidden][b-o0wkmgb5jo] { display: none; }
    .drawer a[b-o0wkmgb5jo] { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid #EFECE3; }
    .drawer-h[b-o0wkmgb5jo] { margin: 16px 0 2px; font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; color: #6B6B6B; }
    .drawer .btn[b-o0wkmgb5jo] { display: flex; margin-top: 14px; width: 100%; border-bottom: 1px solid #D9D5C8; }
    .drawer .btn-primary[b-o0wkmgb5jo] { border-color: transparent; }

/* ══ HERO ══ */
.hero-top[b-o0wkmgb5jo] {
    display: grid;
    gap: 22px;
    padding: 36px 56px 56px;
}

.hero h1[b-o0wkmgb5jo] { font-size: clamp(36px, 4.2vw, 58px); max-width: 920px; text-wrap: balance; letter-spacing: -0.025em; line-height: 1.08; }
.hero-side[b-o0wkmgb5jo] { max-width: 640px; }
    .hero-side p[b-o0wkmgb5jo] { margin: 0 0 26px; font-size: 18px; color: #4D4C5C; }
.hero-ctas[b-o0wkmgb5jo] { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-foot[b-o0wkmgb5jo] { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: #6B6B6B; }
    .hero-foot span[b-o0wkmgb5jo] { display: inline-flex; align-items: center; gap: 7px; }
    .hero-foot span[b-o0wkmgb5jo]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #4A6B2E; }
    .hero-foot strong[b-o0wkmgb5jo] { color: #1A1A2E; font-weight: 600; }

/* ── Row → document demo ── */
.demo[b-o0wkmgb5jo] {
    margin: 8px 56px 72px;
    border: 1px solid #E7E4DA;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 0.9fr);
    background: linear-gradient(#F3F1EA 1px, transparent 1px) 0 0 / 100% 32px, #F7F5EF;
}

.demo-sheet[b-o0wkmgb5jo] { padding: 40px 0 40px 40px; }
.demo-doc[b-o0wkmgb5jo] { padding: 40px 40px 40px 0; display: flex; flex-direction: column; }

.panel-head[b-o0wkmgb5jo] { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; color: #6B6B6B; }
    .panel-head .file[b-o0wkmgb5jo] { font-family: 'JetBrains Mono', monospace; color: #1A1A2E; font-size: 13px; }

.doc-tabs[b-o0wkmgb5jo] { display: flex; gap: 4px; margin-left: auto; background: #ECE9DF; border-radius: 999px; padding: 3px; }
    .doc-tabs button[b-o0wkmgb5jo] { border: 0; background: none; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: #5C5A6E; }
    .doc-tabs button[aria-selected="true"][b-o0wkmgb5jo] { background: #fff; color: #1A1A2E; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.sheet[b-o0wkmgb5jo] { background: #fff; border: 1px solid #E2DED2; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 32px -18px rgba(40,36,20,.25); }
    .sheet table[b-o0wkmgb5jo] { width: 100%; border-collapse: collapse; font-size: 13.5px; }
    .sheet th[b-o0wkmgb5jo] { text-align: left; font: 500 12px 'JetBrains Mono', monospace; color: #4A6B2E; background: #FAF9F4; padding: 11px 14px; border-bottom: 1px solid #ECE9DF; white-space: nowrap; }
    .sheet td[b-o0wkmgb5jo] { padding: 12px 14px; border-bottom: 1px solid #F1EEE6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
    .sheet th:first-child[b-o0wkmgb5jo], .sheet td:first-child[b-o0wkmgb5jo] { width: 36px; text-align: center; color: #A3A093; font: 500 11px 'JetBrains Mono', monospace; padding-left: 8px; padding-right: 8px; }
    .sheet tbody tr[b-o0wkmgb5jo] { cursor: pointer; transition: background .2s; }
    .sheet tbody tr:hover[b-o0wkmgb5jo] { background: #FAF9F4; }
    .sheet tbody tr:last-child td[b-o0wkmgb5jo] { border-bottom: 0; }
    .sheet tbody tr.on[b-o0wkmgb5jo] { background: #EEF3E6; box-shadow: inset 3px 0 0 #4A6B2E; }
    .sheet tbody tr.on td:first-child[b-o0wkmgb5jo] { color: #4A6B2E; }

.sheet-foot[b-o0wkmgb5jo] { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: #6B6B6B; }

/* WCAG 2.2.2 pause control; the bars and triangle are drawn in CSS. */
.pause[b-o0wkmgb5jo] { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #D9D5C8; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
    .pause .bars[b-o0wkmgb5jo] { width: 9px; height: 10px; border-left: 3px solid #1A1A2E; border-right: 3px solid #1A1A2E; }
    .pause .tri[b-o0wkmgb5jo] { width: 0; height: 0; border-left: 9px solid #1A1A2E; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; margin-left: 2px; }

.demo-arrow[b-o0wkmgb5jo] { display: flex; align-items: center; justify-content: center; }
    .demo-arrow svg[b-o0wkmgb5jo] { width: 40px; color: #4A6B2E; }

.doc[b-o0wkmgb5jo] { position: relative; flex: 1; background: #fff; border: 1px solid #E2DED2; border-radius: 6px; padding: 30px 32px; min-height: 330px; box-shadow: 0 30px 50px -30px rgba(40,36,20,.35), 0 2px 4px rgba(0,0,0,.03); font-size: 13px; }
.doc-name[b-o0wkmgb5jo] { margin-top: 12px; font: 500 12px 'JetBrains Mono', monospace; color: #6B6B6B; }
/* One .demo-pick per row of every kind; the chosen one shows and fills the panel as .doc did. */
.demo-out[b-o0wkmgb5jo], .demo-pick[b-o0wkmgb5jo] { display: flex; flex-direction: column; flex: 1; }
.demo [hidden][b-o0wkmgb5jo], .demo-pick[hidden][b-o0wkmgb5jo], .tpl-grid > li[hidden][b-o0wkmgb5jo], .tpl-lede[hidden][b-o0wkmgb5jo], .tpl-more[hidden][b-o0wkmgb5jo] { display: none; }

/* The row's values on the page; each change makes them anew, so the flash plays each time. */
.v[b-o0wkmgb5jo] { background: #E7EFDB; color: #2F4A1A; border-radius: 3px; padding: 0 3px; margin: 0 -3px; animation: lp-flash-b-o0wkmgb5jo .7s ease-out; }

@keyframes lp-flash-b-o0wkmgb5jo {
    from { background: #BFD6A0; }
    to { background: #E7EFDB; }
}

.inv-top[b-o0wkmgb5jo] { display: flex; justify-content: space-between; align-items: flex-start; }
.inv-brand[b-o0wkmgb5jo] { font-weight: 800; letter-spacing: -0.02em; font-size: 15px; }
.inv-title[b-o0wkmgb5jo] { font: 700 20px/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.inv-meta[b-o0wkmgb5jo] { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 18px; }
    .inv-meta small[b-o0wkmgb5jo], .cert small[b-o0wkmgb5jo], .tix small[b-o0wkmgb5jo] { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8A877A; margin-bottom: 2px; }
.inv-lines[b-o0wkmgb5jo] { width: 100%; border-collapse: collapse; }
    .inv-lines td[b-o0wkmgb5jo] { padding: 7px 0; border-bottom: 1px solid #F0EDE4; color: #4D4C5C; }
    .inv-lines td:last-child[b-o0wkmgb5jo] { text-align: right; }
.inv-total[b-o0wkmgb5jo] { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 700; font-size: 15px; }

.cert[b-o0wkmgb5jo] { text-align: center; border: 2px solid #1A1A2E; outline: 1px solid #1A1A2E; outline-offset: -8px; padding: 34px 24px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
    .cert .t[b-o0wkmgb5jo] { font: 600 12px 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6B6B6B; }
    .cert .n[b-o0wkmgb5jo] { font: 600 30px/1.15 'Inter', sans-serif; letter-spacing: -0.02em; margin: 10px 0 6px; }
    .cert .a[b-o0wkmgb5jo] { font-weight: 600; margin-bottom: 22px; }
    .cert .sig[b-o0wkmgb5jo] { display: flex; justify-content: space-around; font-size: 12px; }

.tix[b-o0wkmgb5jo] { display: grid; grid-template-columns: 1fr 120px; height: 100%; border: 1px solid #1A1A2E; border-radius: 10px; overflow: hidden; }
    .tix-main[b-o0wkmgb5jo] { padding: 26px; background: #1A1A2E; color: #fff; }
    .tix-main small[b-o0wkmgb5jo] { color: #A9A8BA; }
    .tix-main .e[b-o0wkmgb5jo] { font: 600 24px/1.15 'Inter', sans-serif; letter-spacing: -0.02em; margin: 6px 0 18px; }
    .tix-main .v[b-o0wkmgb5jo] { background: rgba(167,201,127,.22); color: #D7E8C2; animation: none; }
    .tix-stub[b-o0wkmgb5jo] { padding: 26px 16px; border-left: 2px dashed #1A1A2E; display: flex; flex-direction: column; gap: 12px; justify-content: center; text-align: center; }
    .tix-stub b[b-o0wkmgb5jo] { font-size: 26px; }

/* ── Demo player ── */
.demo-player[b-o0wkmgb5jo] { aspect-ratio: 16 / 10; background: #0f1117; border-radius: 8px; overflow: hidden; }
.demo-player-media[b-o0wkmgb5jo] { display: block; width: 100%; height: 100%; background: #0f1117; }
.demo-player-status[b-o0wkmgb5jo] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; color: #e0e0e0; font-size: 14px; }

/* ══ WORKS WITH ══ */
.works[b-o0wkmgb5jo] { display: grid; grid-template-columns: 260px 1fr; }
.works-intro[b-o0wkmgb5jo] { padding: 32px 28px; border-right: 1px solid #E7E4DA; }
    .works-intro h2[b-o0wkmgb5jo] { font-size: 15px; font-weight: 600; }
    .works-intro p[b-o0wkmgb5jo] { margin: 6px 0 0; font-size: 13px; color: #6B6B6B; }
.works-grid[b-o0wkmgb5jo] { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
    .works-grid li[b-o0wkmgb5jo] { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-right: 1px solid #E7E4DA; border-bottom: 1px solid #E7E4DA; font-size: 14px; font-weight: 500; }
    .works-grid li:nth-child(4n)[b-o0wkmgb5jo] { border-right: 0; }
    .works-grid li:nth-child(n+5)[b-o0wkmgb5jo] { border-bottom: 0; }
    .works-grid img[b-o0wkmgb5jo] { flex: none; width: 26px; height: 26px; object-fit: contain; }
.works-more[b-o0wkmgb5jo] { margin: 1em 0; padding: 16px 28px 28px; font-size: 13px; color: #6B6B6B; grid-column: 1 / -1; }

/* ══ BEFORE AND AFTER ══ */
.ba-intro .lede[b-o0wkmgb5jo] { margin-top: 14px; max-width: 640px; }
.ba[b-o0wkmgb5jo] { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.ba-card[b-o0wkmgb5jo] { position: relative; border: 1px solid #E7E4DA; border-radius: 18px; background: #fff; padding: 28px 30px 26px; display: flex; flex-direction: column; }
    .ba-card h3[b-o0wkmgb5jo] { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
    .ba-card .ba-sub[b-o0wkmgb5jo] { margin: 4px 0 0; font-size: 14px; color: #6B6B6B; }
    .ba-card ol[b-o0wkmgb5jo] { list-style: none; counter-reset: ba; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
    .ba-card li[b-o0wkmgb5jo] { counter-increment: ba; display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: #4D4C5C; }
    .ba-card li[b-o0wkmgb5jo]::before { content: counter(ba); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px 'JetBrains Mono', monospace; background: #F1EFE8; color: #8A877A; transform: translateY(-1px); }
    .ba-card .ba-foot[b-o0wkmgb5jo] { margin: 22px 0 1em; padding-top: 16px; border-top: 1px solid #ECE9DF; font-size: 14px; font-weight: 600; }
.ba-old ol[b-o0wkmgb5jo] { flex: 1; }
.ba-badge[b-o0wkmgb5jo] { position: absolute; top: 24px; right: 26px; font: 600 12.5px 'JetBrains Mono', monospace; border-radius: 999px; padding: 4px 10px; }
.ba-old .ba-badge[b-o0wkmgb5jo] { background: #F6E3E1; color: #B33C32; }
.ba-old .ba-foot[b-o0wkmgb5jo] { color: #B33C32; }
.ba-new[b-o0wkmgb5jo] { background: #F6F9F1; border-color: #CFDDBB; }
    .ba-new .ba-badge[b-o0wkmgb5jo] { background: #4A6B2E; color: #fff; }
    .ba-new li[b-o0wkmgb5jo] { color: #1A1A2E; }
    .ba-new li[b-o0wkmgb5jo]::before { background: #4A6B2E; color: #fff; }
    .ba-new .ba-foot[b-o0wkmgb5jo] { color: #2F4A1A; border-top-color: #DCE7CC; }

/* What the one job made, filling the card the shorter list leaves empty. */
.ba-out[b-o0wkmgb5jo] { margin: 20px 0 auto; border: 1px solid #DCE7CC; border-radius: 12px; background: #fff; overflow: hidden; }
    .ba-out div[b-o0wkmgb5jo] { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid #EEF3E6; font-size: 13px; color: #4D4C5C; }
    .ba-out .ba-file[b-o0wkmgb5jo] { font: 500 12.5px 'JetBrains Mono', monospace; color: #1A1A2E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ba-out b[b-o0wkmgb5jo] { font-size: 12px; font-weight: 600; color: #1a9a3a; }
    .ba-out p[b-o0wkmgb5jo] { margin: 0; padding: 9px 14px; font-size: 12.5px; color: #6B6B6B; }

/* ══ FEATURES ══ */
.feat-head[b-o0wkmgb5jo] { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 48px; }
.bento[b-o0wkmgb5jo] { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.tile[b-o0wkmgb5jo] { position: relative; background: #fff; border: 1px solid #E7E4DA; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.tile-copy[b-o0wkmgb5jo] { padding: 28px 30px 0; }
    .tile-copy .k[b-o0wkmgb5jo] { font: 500 11.5px 'JetBrains Mono', monospace; color: #4A6B2E; text-transform: uppercase; letter-spacing: .05em; }
    .tile-copy h3[b-o0wkmgb5jo] { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 8px 0; }
    .tile-copy p[b-o0wkmgb5jo] { margin: 0; font-size: 14.5px; color: #5C5A6E; }

.t-ai[b-o0wkmgb5jo] { grid-column: span 4; grid-row: span 2; }
.t-mail[b-o0wkmgb5jo] { grid-column: span 2; grid-row: span 2; }
.t-sched[b-o0wkmgb5jo], .t-forms[b-o0wkmgb5jo] { grid-column: span 3; }

/* App crops at 2x, bleeding off the card's right and bottom edges and shown whole at their
   own height, never cover-cropped, so no screen size cuts a different part off. */
.tile-shot[b-o0wkmgb5jo] { margin: 26px 0 0 30px; }
    .tile-shot img[b-o0wkmgb5jo] { width: 100%; height: auto; border: 1px solid #E7E4DA; border-right: 0; border-bottom: 0; }
    .tile-shot img:first-child[b-o0wkmgb5jo] { border-radius: 10px 0 0 0; }
    .tile-shot img + img[b-o0wkmgb5jo] { border-top: 1px solid #E7E4DA; }
/* A picture with a request under it: close its bottom edge instead. */
    .tile-shot.closed img[b-o0wkmgb5jo] { border-bottom: 1px solid #E7E4DA; border-radius: 10px 0 0 10px; }

.prompt[b-o0wkmgb5jo] { margin: 18px 30px 30px; border: 1px solid #E2DED2; border-radius: 12px; padding: 14px 16px; font-size: 14px; background: #FBFAF6; }
    .prompt small[b-o0wkmgb5jo] { display: block; font: 500 11px 'JetBrains Mono', monospace; color: #8A877A; margin-bottom: 6px; }

.mail-list[b-o0wkmgb5jo] { margin: 22px 30px 30px; display: flex; flex-direction: column; gap: 8px; }
    .mail-list div[b-o0wkmgb5jo] { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ECE9DF; border-radius: 10px; font-size: 13px; background: #FBFAF6; }
    .mail-list .av[b-o0wkmgb5jo] { width: 28px; height: 28px; border-radius: 50%; background: #E7EFDB; color: #2F4A1A; display: grid; place-items: center; font-weight: 700; font-size: 11px; flex: none; }
    .mail-list .who[b-o0wkmgb5jo] { flex: 1; min-width: 0; }
    .mail-list .who b[b-o0wkmgb5jo] { display: block; font-weight: 600; }
    .mail-list .who span[b-o0wkmgb5jo] { color: #6B6B6B; font-size: 12px; font-family: 'JetBrains Mono', monospace; }
    .mail-list .st[b-o0wkmgb5jo] { font-size: 11.5px; font-weight: 600; color: #1a9a3a; }
    .mail-list .st.q[b-o0wkmgb5jo] { color: #8A877A; }

.pace[b-o0wkmgb5jo] { margin: auto 30px 28px; font-size: 12.5px; color: #6B6B6B; }
    .pace-bar[b-o0wkmgb5jo] { height: 6px; border-radius: 99px; background: #ECE9DF; overflow: hidden; margin-bottom: 8px; }
    .pace-bar i[b-o0wkmgb5jo] { display: block; width: 75%; height: 100%; background: #4A6B2E; border-radius: 99px; }

.also[b-o0wkmgb5jo] { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 16px; border: 1px solid #E7E4DA; border-radius: 18px; background: #fff; }
    .also div[b-o0wkmgb5jo] { padding: 18px 20px; border-right: 1px solid #E7E4DA; font-size: 14px; font-weight: 600; }
    .also div:last-child[b-o0wkmgb5jo] { border-right: 0; }
    .also small[b-o0wkmgb5jo] { display: block; font-weight: 400; color: #6B6B6B; font-size: 12.5px; margin-top: 2px; }

/* ══ HOW IT WORKS ══ */
.how-lede[b-o0wkmgb5jo] { margin-top: 14px; max-width: 640px; }
.steps[b-o0wkmgb5jo] { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step[b-o0wkmgb5jo] { background: #fff; border: 1px solid #E7E4DA; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
    .step-n[b-o0wkmgb5jo] { margin: 26px 26px 0; width: 32px; height: 32px; border-radius: 50%; background: #4A6B2E; color: #fff; display: grid; place-items: center; font: 600 14px 'JetBrains Mono', monospace; }
    .step h3[b-o0wkmgb5jo] { margin: 14px 26px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
    .step p[b-o0wkmgb5jo] { margin: 6px 26px 0; font-size: 14.5px; color: #5C5A6E; }

/* Each picture is one 4:3 crop shown whole at the card's width: every screen sees the same
   picture, only scaled, and the three line up because they share a shape. */
.step-shot[b-o0wkmgb5jo] { margin: auto 0 0 26px; padding-top: 22px; flex: 0 0 auto; }
    .step-shot img[b-o0wkmgb5jo] { width: 100%; height: auto; aspect-ratio: 4 / 3; border: 1px solid #E7E4DA; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }

/* ══ DATA SOURCES ══ */
/* The dataset leads, in the "after" green; the three other sources stack beside it. */
.data-grid[b-o0wkmgb5jo] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }.data-main[b-o0wkmgb5jo] { grid-row: span 3; background: #F6F9F1; border-color: #CFDDBB; }
    .data-main > .data-plan[b-o0wkmgb5jo] { margin: auto 30px 26px; }
.data-src[b-o0wkmgb5jo] { flex-direction: row; align-items: flex-start; gap: 16px; padding: 24px 26px; }
    .data-src h3[b-o0wkmgb5jo] { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
    .data-src p[b-o0wkmgb5jo] { margin: 0; font-size: 14px; color: #5C5A6E; }
.data-icon[b-o0wkmgb5jo] { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #E7EFDB; color: #2F4A1A; display: grid; place-items: center; }
    .data-icon img[b-o0wkmgb5jo] { width: 22px; height: 22px; object-fit: contain; }
.data-plan[b-o0wkmgb5jo], .data-src p.data-plan[b-o0wkmgb5jo] { margin-top: 10px; font: 500 11.5px 'JetBrains Mono', monospace; color: #4A6B2E; }

/* A dataset drawn as the editor shows it, one cell being edited. */
.ds[b-o0wkmgb5jo] { margin: 22px 30px 18px; background: #fff; border: 1px solid #DCE7CC; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px -18px rgba(40,36,20,.25); }
    .ds-head[b-o0wkmgb5jo] { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #EEF3E6; font-size: 13px; }
    .ds-name[b-o0wkmgb5jo] { font-weight: 600; }
    .ds-meta[b-o0wkmgb5jo] { font-size: 12px; color: #6B6B6B; }
    .ds table[b-o0wkmgb5jo] { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
    .ds th[b-o0wkmgb5jo] { text-align: left; font: 500 12px 'JetBrains Mono', monospace; color: #4A6B2E; background: #FAF9F4; padding: 9px 12px; border-bottom: 1px solid #ECE9DF; }
    .ds td[b-o0wkmgb5jo] { padding: 9px 12px; border-bottom: 1px solid #F1EEE6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ds th:first-child[b-o0wkmgb5jo], .ds td:first-child[b-o0wkmgb5jo] { width: 34px; padding-left: 6px; padding-right: 6px; text-align: center; color: #A3A093; font: 500 11px 'JetBrains Mono', monospace; }
    .ds td.ds-edit[b-o0wkmgb5jo] { background: #EEF3E6; box-shadow: inset 0 0 0 2px #4A6B2E; }
    .ds-add[b-o0wkmgb5jo] { padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: #4A6B2E; }

/* Approval before a run: copy on the left, the fill-in page in miniature on the right */
.approve-tile[b-o0wkmgb5jo] { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
    .approve-tile .tile-copy[b-o0wkmgb5jo] { padding-bottom: 28px; }
    .approve-tile .data-plan[b-o0wkmgb5jo] { margin: 18px 0 0; }
.approve-points[b-o0wkmgb5jo] { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #5C5A6E; }
    .approve-points li[b-o0wkmgb5jo] { position: relative; padding-left: 20px; }
    .approve-points li[b-o0wkmgb5jo]::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #4A6B2E; }
    .approve-points b[b-o0wkmgb5jo] { color: #1a1a2e; font-weight: 600; }
.ds-approve[b-o0wkmgb5jo] { margin: 28px 30px 28px 0; }
    .approve-due[b-o0wkmgb5jo] { font-size: 12px; color: #6B6B6B; }
    .ds-approve th:last-child[b-o0wkmgb5jo] { width: 72px; }
    .ds td.approve-fill[b-o0wkmgb5jo] { background: #FBF8EC; font-weight: 600; }
    .ds td.approve-fill.ds-edit[b-o0wkmgb5jo] { background: #EEF3E6; }
.approve-who[b-o0wkmgb5jo] { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-top: 1px solid #ECE9DF; font-size: 13px; }
    .approve-who div[b-o0wkmgb5jo] { display: flex; align-items: center; gap: 8px; }
    .approve-who svg[b-o0wkmgb5jo] { display: block; }
    .approve-ok[b-o0wkmgb5jo] { color: #1a9a3a; }
    .approve-wait[b-o0wkmgb5jo] { color: #6B6B6B; }
.approve-btn[b-o0wkmgb5jo] { margin: 0 14px 14px; padding: 10px; border-radius: 8px; background: #4A6B2E; color: #fff; text-align: center; font-size: 13px; font-weight: 600; }

/* ── Approaches compared ── */
/* The pricing comparison's frame, with written answers in place of ticks. Positioned for the
   same reason as .compare: its screen-reader label is absolute. */
.vs[b-o0wkmgb5jo] { position: relative; border: 1px solid #E2DED2; border-radius: 18px; background: #fff; overflow: hidden; }
.vs-table[b-o0wkmgb5jo] { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; }
    .vs-table th[b-o0wkmgb5jo], .vs-table td[b-o0wkmgb5jo] { padding: 16px 22px; border-top: 1px solid #F0EDE4; text-align: left; vertical-align: top; }
    .vs-table thead th[b-o0wkmgb5jo] { border-top: 0; font-size: 14px; font-weight: 600; }
    .vs-table th:first-child[b-o0wkmgb5jo] { width: 20%; }
    .vs-table th[scope="row"][b-o0wkmgb5jo] { font-weight: 600; }
    .vs-table td[b-o0wkmgb5jo] { color: #5C5A6E; }
    .vs-table .vs-us[b-o0wkmgb5jo] { background: #F6F9F1; }
    .vs-table td.vs-us[b-o0wkmgb5jo] { color: #1A1A2E; font-weight: 500; }
    .vs-table thead .vs-us[b-o0wkmgb5jo] { color: #3B5525; }
.vs-plan[b-o0wkmgb5jo] { display: block; margin-top: 6px; font: 500 11.5px 'JetBrains Mono', monospace; color: #4A6B2E; }
.vs-note[b-o0wkmgb5jo] { margin: 14px 0 0; font-size: 13px; color: #6B6B6B; }

/* ══ API ══ */
/* Copy on the left, one request on the right, in the docs' own dark code panel. */
.api-band[b-o0wkmgb5jo] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.api-k[b-o0wkmgb5jo] { font: 500 11.5px 'JetBrains Mono', monospace; color: #4A6B2E; text-transform: uppercase; letter-spacing: .05em; }
.api-copy h2[b-o0wkmgb5jo] { margin: 10px 0 14px; }
.api-points[b-o0wkmgb5jo] { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
    .api-points li[b-o0wkmgb5jo] { position: relative; padding-left: 28px; font-size: 15px; color: #4D4C5C; }
    .api-points li[b-o0wkmgb5jo]::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #E7EFDB; }
    .api-points li[b-o0wkmgb5jo]::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3px; border-left: 1.6px solid #4A6B2E; border-bottom: 1.6px solid #4A6B2E; transform: rotate(-45deg); }
    .api-points b[b-o0wkmgb5jo] { color: #1A1A2E; font-weight: 600; }
.api-ctas[b-o0wkmgb5jo] { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.api-ref[b-o0wkmgb5jo] { font-weight: 600; font-size: 15px; color: #4A6B2E; text-decoration: none; }
    .api-ref:hover[b-o0wkmgb5jo] { text-decoration: underline; }
.api-plan[b-o0wkmgb5jo] { margin: 14px 0 0; font-size: 13px; color: #6B6B6B; }
.api-code[b-o0wkmgb5jo] { min-width: 0; }
.api-note[b-o0wkmgb5jo] { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -4px 0 0; font-size: 13px; color: #6B6B6B; }
.api-status[b-o0wkmgb5jo] { font: 600 12px 'JetBrains Mono', monospace; color: #1a7a33; background: #E8F5EC; border-radius: 999px; padding: 3px 10px; }

/* ══ TEMPLATES ══ */
.tpl-head[b-o0wkmgb5jo] { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
    .tpl-head p[b-o0wkmgb5jo] { margin: 10px 0 0; max-width: 560px; color: #4D4C5C; font-size: 17px; }
    .tpl-head a[b-o0wkmgb5jo] { font-weight: 600; font-size: 15px; color: #4A6B2E; text-decoration: none; white-space: nowrap; }
    .tpl-head a:hover[b-o0wkmgb5jo] { text-decoration: underline; }

.tpl-tabs[b-o0wkmgb5jo] { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
    .tpl-tabs button[b-o0wkmgb5jo] { border: 1px solid #D9D5C8; background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: #4D4C5C; }
    .tpl-tabs button:hover[b-o0wkmgb5jo] { border-color: #1A1A2E; }
    .tpl-tabs button[aria-selected="true"][b-o0wkmgb5jo] { background: #1A1A2E; border-color: #1A1A2E; color: #fff; }

.tpl-lede[b-o0wkmgb5jo] { margin: 18px 0 0; font-size: 16px; color: #4D4C5C; max-width: 640px; }
.tpl-grid[b-o0wkmgb5jo] { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.tpl[b-o0wkmgb5jo] { display: block; text-decoration: none; color: inherit; }
    .tpl-frame[b-o0wkmgb5jo] { position: relative; height: 250px; border-radius: 14px; background: #F3F1EA; border: 1px solid #E7E4DA; display: grid; place-items: center; padding: 18px; overflow: hidden; transition: border-color .2s; }
    .tpl-frame img[b-o0wkmgb5jo] { max-height: 100%; max-width: 100%; width: auto; height: auto; border-radius: 3px; background: #fff; box-shadow: 0 16px 30px -16px rgba(40,36,20,.45), 0 0 0 1px rgba(0,0,0,.05); transition: transform .25s; }
    .tpl-use[b-o0wkmgb5jo] { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); opacity: 0; background: #1A1A2E; color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 6px 12px; white-space: nowrap; transition: opacity .2s, transform .2s; }
    .tpl:hover .tpl-frame[b-o0wkmgb5jo], .tpl:focus-visible .tpl-frame[b-o0wkmgb5jo] { border-color: #4A6B2E; }
    .tpl:hover .tpl-frame img[b-o0wkmgb5jo] { transform: translateY(-4px); }
    .tpl:hover .tpl-use[b-o0wkmgb5jo], .tpl:focus-visible .tpl-use[b-o0wkmgb5jo] { opacity: 1; transform: translate(-50%, 0); }
    .tpl b[b-o0wkmgb5jo] { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 600; }
    .tpl small[b-o0wkmgb5jo] { display: block; font-size: 12.5px; color: #6B6B6B; }

.tpl-more[b-o0wkmgb5jo] { margin: 22px 0 1em; font-size: 14px; color: #6B6B6B; }
    .tpl-more strong[b-o0wkmgb5jo] { color: #1A1A2E; font-weight: 600; }

/* ══ SECURITY ══ */
.proof[b-o0wkmgb5jo] { background: #F3F1EA; border-top: 1px solid #E7E4DA; border-bottom: 1px solid #E7E4DA; }
/* The band after it would draw a second hairline against that bottom border. */
.proof + .band[b-o0wkmgb5jo] { border-top: 0; }
.proof-sec[b-o0wkmgb5jo] { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 44px 56px 56px; }
    .proof-sec h2[b-o0wkmgb5jo] { font-size: 34px; margin: 0 0 12px; }
    .proof-sec a[b-o0wkmgb5jo] { color: #4A6B2E; font-weight: 600; font-size: 14px; text-decoration: none; }
    .proof-sec a:hover[b-o0wkmgb5jo] { text-decoration: underline; }
.sec-grid[b-o0wkmgb5jo] { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
    .sec-grid h3[b-o0wkmgb5jo] { font-size: 16px; font-weight: 600; }
    .sec-grid p[b-o0wkmgb5jo] { margin: 6px 0 0; font-size: 14px; color: #5C5A6E; }

/* ══ PRICING ══ */
/* The plans, toggle, comparison and fine print are PricingPlans (PricingPlans.razor.css). */
.inline-link[b-o0wkmgb5jo] { color: #4A6B2E; text-decoration: underline; text-underline-offset: 2px; }

/* ══ FAQ ══ */
.faq[b-o0wkmgb5jo] { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
    .faq .lede[b-o0wkmgb5jo] { margin-top: 14px; font-size: 16px; }
.faq-list details[b-o0wkmgb5jo] { border-bottom: 1px solid #E7E4DA; }
    .faq-list details:first-child[b-o0wkmgb5jo] { border-top: 1px solid #E7E4DA; }
    .faq-list details[open][b-o0wkmgb5jo] { padding-bottom: 8px; }
    .faq-list summary[b-o0wkmgb5jo] { padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
    .faq-list summary[b-o0wkmgb5jo]::-webkit-details-marker { display: none; }
    .faq-list summary[b-o0wkmgb5jo]::after { content: "+"; font: 400 24px/1 'Inter', sans-serif; color: #4A6B2E; transition: transform .2s; }
    .faq-list details[open] summary[b-o0wkmgb5jo]::after { transform: rotate(45deg); }
    .faq-list p[b-o0wkmgb5jo] { margin: 0 0 14px; font-size: 15px; color: #4D4C5C; }
    .faq-list p a[b-o0wkmgb5jo] { color: #4A6B2E; text-decoration: underline; text-underline-offset: 2px; }

/* ══ FOOTER ══ */
.footer[b-o0wkmgb5jo] { background: #1A1A2E; color: #A9A8BA; font-size: 14px; }
/* Brand, then Product, Use cases, Guides and Legal, each a single list. */
.foot[b-o0wkmgb5jo] { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .85fr); gap: 32px; padding: 56px 56px 40px; }
    .foot p[b-o0wkmgb5jo] { margin: 12px 0 0; max-width: 300px; }
    .foot h4[b-o0wkmgb5jo] { color: #fff; font-size: 13px; margin: 0 0 12px; }
    .foot h4.foot-h-next[b-o0wkmgb5jo] { margin-top: 24px; }
    .foot ul[b-o0wkmgb5jo] { list-style: none; padding: 0; margin: 0; columns: 2; }
    .foot ul.one[b-o0wkmgb5jo] { columns: 1; }
    .foot li[b-o0wkmgb5jo] { margin-bottom: 8px; }
    .foot a[b-o0wkmgb5jo] { text-decoration: none; }
    .foot a:hover[b-o0wkmgb5jo] { color: #fff; }

/* The wordmark on a dark ground: same root/tail device, lifted values so the ink root
   doesn't vanish and the green keeps its contrast. */
.foot-logo[b-o0wkmgb5jo] { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.logo-row-light[b-o0wkmgb5jo] { color: #fff; }
.logo-scribe-light[b-o0wkmgb5jo] { color: #A7C97F; }

.foot-bottom[b-o0wkmgb5jo] { padding: 18px 56px; border-top: 1px solid #2E2E46; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
    .foot-bottom a[b-o0wkmgb5jo] { text-decoration: none; }
    .foot-bottom a:hover[b-o0wkmgb5jo] { color: #fff; }
.foot-tm[b-o0wkmgb5jo] { margin: 1em 0; padding: 0 56px 26px; font-size: 11.5px; line-height: 1.6; color: rgba(255,255,255,.55); }

/* ══ RESPONSIVE ══ */
/* The links fold into the menu button below the width the full row needs (about 885px for the
   six links); Log in and Start free stay beside it until phone width. */
@media (max-width: 920px) {
    .nav-links[b-o0wkmgb5jo] { display: none; }
    .nav-burger[b-o0wkmgb5jo] { display: block; margin-left: 0; }
}

@media (max-width: 1024px) {
    .pad[b-o0wkmgb5jo] { padding: 32px 36px 60px; }
    .foot[b-o0wkmgb5jo] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
    .foot > div:first-child[b-o0wkmgb5jo] { grid-column: 1 / -1; }
    .hero-top[b-o0wkmgb5jo] { gap: 28px; padding: 32px 36px 44px; }

    .demo[b-o0wkmgb5jo] { grid-template-columns: minmax(0, 1fr); margin: 0 36px 56px; }
    .demo-sheet[b-o0wkmgb5jo] { padding: 32px 32px 0; }
    .demo-doc[b-o0wkmgb5jo] { padding: 0 32px 32px; }
    .demo-arrow[b-o0wkmgb5jo] { padding: 14px 0; }
    .demo-arrow svg[b-o0wkmgb5jo] { transform: rotate(90deg); width: 30px; }

    .works[b-o0wkmgb5jo] { grid-template-columns: 1fr; }
    .works-intro[b-o0wkmgb5jo] { border-right: 0; border-bottom: 1px solid #E7E4DA; }

    .feat-head[b-o0wkmgb5jo] { grid-template-columns: 1fr; gap: 16px; }
    .vs-table th[b-o0wkmgb5jo], .vs-table td[b-o0wkmgb5jo] { padding: 14px 14px; }
    .t-ai[b-o0wkmgb5jo], .t-mail[b-o0wkmgb5jo], .t-sched[b-o0wkmgb5jo], .t-forms[b-o0wkmgb5jo] { grid-column: span 6; grid-row: auto; }
    .also[b-o0wkmgb5jo] { grid-template-columns: repeat(2, 1fr); }
    .also div[b-o0wkmgb5jo] { border-bottom: 1px solid #E7E4DA; }

    /* Tablets and phones on their side: one step per row, its text beside its picture. */
    .steps[b-o0wkmgb5jo] { grid-template-columns: 1fr; }
    .step[b-o0wkmgb5jo] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto 1fr; column-gap: 8px; }
    .step-n[b-o0wkmgb5jo], .step h3[b-o0wkmgb5jo], .step p[b-o0wkmgb5jo] { grid-column: 1; }
    .step p[b-o0wkmgb5jo] { margin-bottom: 26px; }
    .step-shot[b-o0wkmgb5jo] { grid-column: 2; grid-row: 1 / 4; align-self: end; margin: 0; padding: 26px 0 0; }

    .tpl-grid[b-o0wkmgb5jo] { grid-template-columns: repeat(3, 1fr); }

    .proof-sec[b-o0wkmgb5jo] { grid-template-columns: 1fr; gap: 28px; padding: 48px 36px; }


    .faq[b-o0wkmgb5jo] { grid-template-columns: 1fr; gap: 24px; }

    .data-grid[b-o0wkmgb5jo] { grid-template-columns: 1fr; }
    .data-main[b-o0wkmgb5jo] { grid-row: auto; }
    .approve-tile[b-o0wkmgb5jo] { grid-template-columns: 1fr; }
    .ds-approve[b-o0wkmgb5jo] { margin: 0 30px 28px; }
    .api-band[b-o0wkmgb5jo] { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav[b-o0wkmgb5jo] { padding: 0 20px; }
    .nav-right[b-o0wkmgb5jo] { display: none; }
    .nav-burger[b-o0wkmgb5jo] { margin-left: auto; }

    .pad[b-o0wkmgb5jo] { padding: 28px 20px 48px; }
    .hero-top[b-o0wkmgb5jo] { padding: 28px 20px 36px; }

    .demo[b-o0wkmgb5jo] { margin: 0 16px 44px; border-radius: 18px; }
    .demo-sheet[b-o0wkmgb5jo] { padding: 24px 16px 0; }
    .demo-doc[b-o0wkmgb5jo] { padding: 0 16px 24px; }
    .panel-head[b-o0wkmgb5jo] { flex-wrap: wrap; }
    .doc-tabs[b-o0wkmgb5jo] { margin-left: 0; }
    .sheet th[b-o0wkmgb5jo], .sheet td[b-o0wkmgb5jo] { padding-left: 8px; padding-right: 8px; }
    .sheet td:nth-child(5)[b-o0wkmgb5jo], .sheet th:nth-child(5)[b-o0wkmgb5jo] { display: none; }
    .doc[b-o0wkmgb5jo] { padding: 22px 20px; min-height: 0; }

    .works-grid[b-o0wkmgb5jo] { grid-template-columns: repeat(2, 1fr); }
    .works-grid li[b-o0wkmgb5jo], .works-grid li:nth-child(n+5)[b-o0wkmgb5jo] { border-bottom: 1px solid #E7E4DA; }
    .works-grid li:nth-child(odd)[b-o0wkmgb5jo] { border-right: 1px solid #E7E4DA; }
    .works-grid li:nth-child(even)[b-o0wkmgb5jo] { border-right: 0; }
    .works-grid li:nth-child(n+7)[b-o0wkmgb5jo] { border-bottom: 0; }

    .ba[b-o0wkmgb5jo] { grid-template-columns: 1fr; }
    .ba-card[b-o0wkmgb5jo] { padding: 24px 22px 22px; }
    .ba-badge[b-o0wkmgb5jo] { top: 20px; right: 20px; }
    .ba-out div[b-o0wkmgb5jo] { grid-template-columns: minmax(0, 1fr) auto; }
    .ba-out div span:nth-child(2)[b-o0wkmgb5jo] { display: none; }

    /* One block per row: its three answers stacked, each under its column's name. */
    .vs-table thead[b-o0wkmgb5jo] { display: none; }
    .vs-table tr[b-o0wkmgb5jo] { display: block; padding: 16px 16px 12px; border-top: 1px solid #F0EDE4; }
    .vs-table tbody tr:first-child[b-o0wkmgb5jo] { border-top: 0; }
    .vs-table th[b-o0wkmgb5jo], .vs-table td[b-o0wkmgb5jo] { display: block; padding: 0; border-top: 0; }
    .vs-table th:first-child[b-o0wkmgb5jo] { width: auto; }
    .vs-table th[scope="row"][b-o0wkmgb5jo] { margin-bottom: 10px; font-size: 15px; }
    .vs-table td[b-o0wkmgb5jo] { margin-bottom: 10px; font-size: 14px; }
    .vs-table td[b-o0wkmgb5jo]::before { content: attr(data-col); display: block; margin-bottom: 2px; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .04em; text-transform: uppercase; color: #6B6B6B; }
    .vs-table td.vs-us[b-o0wkmgb5jo] { margin-bottom: 4px; padding: 10px 12px; border-radius: 10px; }
    .vs-table td.vs-us[b-o0wkmgb5jo]::before { color: #4A6B2E; }

    .tile-copy[b-o0wkmgb5jo] { padding: 24px 22px 0; }
    .tile-shot[b-o0wkmgb5jo] { margin-left: 22px; }
    .prompt[b-o0wkmgb5jo] { margin: 16px 22px 24px; }
    .mail-list[b-o0wkmgb5jo] { margin-left: 22px; margin-right: 22px; }

    .data-src[b-o0wkmgb5jo] { padding: 22px 20px; }
    .ds[b-o0wkmgb5jo] { margin-left: 22px; margin-right: 22px; }
    .ds th:nth-child(3)[b-o0wkmgb5jo], .ds td:nth-child(3)[b-o0wkmgb5jo] { display: none; }
    .ds-approve[b-o0wkmgb5jo] { margin-left: 22px; margin-right: 22px; }
    .data-main > .data-plan[b-o0wkmgb5jo] { margin-left: 22px; }

    .tpl-grid[b-o0wkmgb5jo] { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tpl-frame[b-o0wkmgb5jo] { height: 200px; padding: 14px; }
    .tpl-use[b-o0wkmgb5jo] { display: none; }

    .proof-sec[b-o0wkmgb5jo] { padding: 44px 20px; }
    .sec-grid[b-o0wkmgb5jo] { grid-template-columns: 1fr; }

    .foot[b-o0wkmgb5jo] { grid-template-columns: 1fr; padding: 44px 20px 28px; }
    .foot-bottom[b-o0wkmgb5jo], .foot-tm[b-o0wkmgb5jo] { padding-left: 20px; padding-right: 20px; }
}

/* Phones held upright: each step stacks again, picture under its text. */
@media (max-width: 560px) {
    .step[b-o0wkmgb5jo] { display: flex; }
    .step p[b-o0wkmgb5jo] { margin-bottom: 0; }
    .step-shot[b-o0wkmgb5jo] { margin: auto 0 0 26px; padding: 22px 0 0; }
}

@media (max-width: 480px) {
    .hero h1[b-o0wkmgb5jo] { font-size: 34px; }
    .h2[b-o0wkmgb5jo] { font-size: 28px; }
    .also[b-o0wkmgb5jo] { grid-template-columns: 1fr; }
    .also div[b-o0wkmgb5jo] { border-right: 0; }
    .doc-tabs button[b-o0wkmgb5jo] { padding: 5px 9px; }
    .panel-head .file[b-o0wkmgb5jo], .panel-head .each[b-o0wkmgb5jo] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .v[b-o0wkmgb5jo] { animation: none; }
    .tpl-frame img[b-o0wkmgb5jo], .tpl-use[b-o0wkmgb5jo] { transition: none; }
}

/* ══ TOUCH TARGETS ══
   On touch screens every control is at least 44px each way (WCAG 2.5.5, Apple's HIG). A mouse
   keeps the compact sizes above, so desktop looks the same. */
@media (pointer: coarse) {
    .nav-burger[b-o0wkmgb5jo] { width: 44px; height: 44px; }
    .nav-login[b-o0wkmgb5jo] { display: inline-flex; align-items: center; min-height: 44px; }
    .nav-right .btn[b-o0wkmgb5jo] { min-height: 44px; }
    .doc-tabs button[b-o0wkmgb5jo] { min-height: 44px; }
    .pause[b-o0wkmgb5jo] { width: 44px; height: 44px; }
}
/* /Layout/DevelopersLayout.razor.rz.scp.css */
/* ── Shell ──────────── */
.dev-shell[b-cst6yjump6] {
    min-height: 100vh;
    background: #fff;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
}

/* ── Top bar ──────────── */
.dev-topbar[b-cst6yjump6] {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 60px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e0e0e0;
    backdrop-filter: saturate(1.4) blur(6px);
}

.dev-brand[b-cst6yjump6] {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.dev-brand-divider[b-cst6yjump6] {
    width: 1px;
    height: 22px;
    background: #d1d1d1;
}

.dev-brand-section[b-cst6yjump6] {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
}

.dev-brand-section:hover[b-cst6yjump6] {
    color: #1a1a2e;
}

.dev-topnav[b-cst6yjump6] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dev-topnav a[b-cst6yjump6] {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
}

.dev-topnav a:hover[b-cst6yjump6] {
    background: #f0f0f0;
    color: #1a1a2e;
}

.dev-topnav a.active[b-cst6yjump6] {
    color: #4A6B2E;
    background: #E5EDD8;
}

.dev-topbar-actions[b-cst6yjump6] {
    margin-left: auto;
}

.dev-menu-btn[b-cst6yjump6] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #1a1a2e;
    font-size: 18px;
    cursor: pointer;
}

.dev-menu-btn:hover[b-cst6yjump6] {
    background: #f0f0f0;
}

/* ── Body: sidebar + page ──────────── */
.dev-body[b-cst6yjump6] {
    display: flex;
    align-items: flex-start;
}

.dev-sidebar[b-cst6yjump6] {
    position: sticky;
    top: 60px;
    flex: 0 0 260px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 24px 16px 40px 24px;
    border-right: 1px solid #e0e0e0;
    background: #f8f8f8;
    box-sizing: border-box;
}

.dev-nav-group[b-cst6yjump6] {
    margin-bottom: 24px;
}

.dev-nav-heading[b-cst6yjump6] {
    margin: 0 0 6px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.dev-nav-link[b-cst6yjump6] {
    display: block;
    padding: 6px 10px;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    line-height: 1.4;
}

.dev-nav-link:hover[b-cst6yjump6] {
    color: #1a1a2e;
    background: #f0f0f0;
}

.dev-nav-link.active[b-cst6yjump6] {
    color: #4A6B2E;
    font-weight: 600;
    background: #E5EDD8;
    border-left-color: #4A6B2E;
}

.dev-main[b-cst6yjump6] {
    flex: 1;
    min-width: 0;
    outline: none;
}

.dev-drawer-backdrop[b-cst6yjump6] {
    display: none;
}

/* The menu icon's wrapper takes no space of its own, so the button lays out as when it held the
   icon directly. */
.dev-menu-icon[b-cst6yjump6] {
    display: contents;
}

.dev-menu-icon[hidden][b-cst6yjump6] {
    display: none;
}

/* ── Footer ──────────── */
.dev-footer[b-cst6yjump6] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding: 24px 48px 32px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #6b6b6b;
}

.dev-footer-links[b-cst6yjump6] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.dev-footer .dev-footer-links a[b-cst6yjump6],
.dev-footer > span a[b-cst6yjump6] {
    color: #555;
    text-decoration: none;
}

.dev-footer .dev-footer-links a:hover[b-cst6yjump6],
.dev-footer > span a:hover[b-cst6yjump6] {
    color: #4A6B2E;
    text-decoration: underline;
}

/* ── Tablet: sidebar becomes a drawer ──────────── */
@media (max-width: 1024px) {
    .dev-menu-btn[b-cst6yjump6] {
        display: inline-flex;
    }

    .dev-topnav[b-cst6yjump6] {
        display: none;
    }

    .dev-sidebar[b-cst6yjump6] {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        z-index: 35;
        width: 280px;
        height: auto;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    }

    .dev-sidebar.open[b-cst6yjump6] {
        transform: translateX(0);
    }

    .dev-drawer-backdrop[b-cst6yjump6] {
        display: block;
        position: fixed;
        inset: 60px 0 0 0;
        z-index: 30;
        background: rgba(26, 26, 46, 0.35);
    }

    .dev-drawer-backdrop[hidden][b-cst6yjump6] {
        display: none;
    }

    .dev-footer[b-cst6yjump6] {
        padding: 24px;
    }
}

/* ── Mobile ──────────── */
@media (max-width: 768px) {
    .dev-topbar[b-cst6yjump6] {
        gap: 12px;
        padding: 0 16px;
    }

    .dev-brand[b-cst6yjump6] {
        font-size: 17px;
        gap: 8px;
    }

    .dev-footer[b-cst6yjump6] {
        padding: 20px 16px 28px;
    }
}

@media (max-width: 480px) {
    .dev-brand-divider[b-cst6yjump6],
    .dev-brand-section[b-cst6yjump6] {
        display: none;
    }
}

/* ── Docs typography ──────────────────────────────────────────
   Shared by the guide and the reference, so the two read as one site. Lives on the layout
   (with ::deep) for the same reason LegalLayout keeps the legal pages' typography: copies in
   each page drift. */
.dev-main[b-cst6yjump6]  .dev-doc {
    max-width: 780px;
    padding: 40px 48px 8px;
    line-height: 1.7;
    font-size: 15px;
    color: #1a1a2e;
}

.dev-main[b-cst6yjump6]  .dev-doc section {
    scroll-margin-top: 76px;
    padding-top: 8px;
    margin-bottom: 40px;
}

.dev-main[b-cst6yjump6]  [id] {
    scroll-margin-top: 76px;
}

.dev-main[b-cst6yjump6]  .dev-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #E5EDD8;
    color: #3B5525;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* A quickstart's eyebrow starts with its breadcrumb back to the API guide. */
.dev-main[b-cst6yjump6]  .dev-eyebrow a { color: inherit; text-decoration: none; }
.dev-main[b-cst6yjump6]  .dev-eyebrow a:hover { text-decoration: underline; }

.dev-main[b-cst6yjump6]  .dev-title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dev-main[b-cst6yjump6]  .dev-lead {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.65;
    color: #555;
}

/* The page's own freshness date; the sitemap's lastmod reads the same constant. */
.dev-main[b-cst6yjump6]  .dev-updated {
    margin: -8px 0 20px;
    font-size: 13px;
    color: #6b6b6b;
}

.dev-main[b-cst6yjump6]  .dev-h2 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dev-main[b-cst6yjump6]  .dev-h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}

.dev-main[b-cst6yjump6]  .dev-h4 {
    margin: 20px 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.dev-main[b-cst6yjump6]  p {
    margin: 0 0 14px;
}

/* Prose links only: cards and buttons are links too, and set their own colours. */
.dev-main[b-cst6yjump6]  a:not([class]) {
    color: #4A6B2E;
}

.dev-main[b-cst6yjump6]  a:not([class]):hover {
    color: #3B5525;
}

.dev-main[b-cst6yjump6]  :not(pre) > code {
    padding: 1px 6px;
    border-radius: 4px;
    background: #f0f0f0;
    border: 1px solid #e6e6e6;
    font: 0.86em 'JetBrains Mono', monospace;
    color: #1a1a2e;
    white-space: nowrap;
}

.dev-main[b-cst6yjump6]  .dev-code-strong {
    font-weight: 600;
}

.dev-main[b-cst6yjump6]  .dev-muted {
    color: #555;
    font-size: 14px;
}

.dev-main[b-cst6yjump6]  .dev-list {
    margin: 0 0 16px;
    padding-left: 22px;
}

.dev-main[b-cst6yjump6]  .dev-list li {
    margin-bottom: 8px;
}

.dev-main[b-cst6yjump6]  .dev-table-wrap {
    margin: 4px 0 20px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.dev-main[b-cst6yjump6]  .dev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.55;
}

.dev-main[b-cst6yjump6]  .dev-table th {
    padding: 10px 14px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
}

.dev-main[b-cst6yjump6]  .dev-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.dev-main[b-cst6yjump6]  .dev-table tr:last-child td {
    border-bottom: none;
}

.dev-main[b-cst6yjump6]  .dev-callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 8px 0 20px;
    padding: 14px 16px;
    border: 1px solid #d5e2c4;
    border-radius: 8px;
    background: #f4f8ee;
    font-size: 14px;
    line-height: 1.6;
}

.dev-main[b-cst6yjump6]  .dev-callout-icon {
    flex: none;
    margin-top: 2px;
    color: #4A6B2E;
}

/* ── Status and method badges ──────────── */
.dev-main[b-cst6yjump6]  .dev-status {
    display: inline-block;
    min-width: 34px;
    padding: 1px 6px;
    border-radius: 4px;
    font: 600 12px 'JetBrains Mono', monospace;
    text-align: center;
}

.dev-main[b-cst6yjump6]  .dev-status-2xx { background: #E5EDD8; color: #3B5525; }
.dev-main[b-cst6yjump6]  .dev-status-4xx { background: #F5EAD3; color: #7F5A12; }
.dev-main[b-cst6yjump6]  .dev-status-5xx { background: #F6E2DC; color: #9A3F2C; }

.dev-main[b-cst6yjump6]  .dev-method {
    display: inline-block;
    min-width: 52px;
    padding: 2px 6px;
    border-radius: 4px;
    font: 700 11px 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
    text-align: center;
}

.dev-main[b-cst6yjump6]  .dev-method-get    { background: #DCECE9; color: #2C6660; }
.dev-main[b-cst6yjump6]  .dev-method-post   { background: #E5EDD8; color: #3B5525; }
.dev-main[b-cst6yjump6]  .dev-method-put,
.dev-main[b-cst6yjump6]  .dev-method-patch  { background: #F5EAD3; color: #7F5A12; }
.dev-main[b-cst6yjump6]  .dev-method-delete { background: #F6E2DC; color: #9A3F2C; }

@media (max-width: 1024px) {
    .dev-main[b-cst6yjump6]  .dev-doc {
        padding: 32px 32px 8px;
    }
}

@media (max-width: 768px) {
    .dev-main[b-cst6yjump6]  .dev-doc {
        padding: 24px 16px 8px;
        font-size: 15px;
    }

    .dev-main[b-cst6yjump6]  .dev-title {
        font-size: 28px;
    }

    .dev-main[b-cst6yjump6]  .dev-lead {
        font-size: 16px;
    }

    .dev-main[b-cst6yjump6]  .dev-h2 {
        font-size: 21px;
    }

    .dev-main[b-cst6yjump6]  :not(pre) > code {
        white-space: normal;
        word-break: break-word;
    }
}

/* ── Touch targets ────────────────────────────────
   At least 44px each way on touch screens; a mouse keeps the compact sizes. */
@media (pointer: coarse) {
    .dev-menu-btn[b-cst6yjump6] { width: 44px; height: 44px; }
    .dev-nav-link[b-cst6yjump6] { display: flex; align-items: center; min-height: 44px; }
    .dev-topbar-actions .btn[b-cst6yjump6] { min-height: 44px; }
}
/* /Layout/LegalLayout.razor.rz.scp.css */
.legal-shell[b-nz7p3b3xmg] {
    min-height: 100vh;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.legal-header[b-nz7p3b3xmg] {
    padding: 16px 32px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.legal-logo[b-nz7p3b3xmg] {
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}

.legal-content[b-nz7p3b3xmg] {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 32px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    line-height: 1.7;
    box-sizing: border-box;
}

.legal-footer[b-nz7p3b3xmg] {
    padding: 16px 32px;
    text-align: center;
    color: #6b6b6b;
    font-size: 12px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.legal-footer-links[b-nz7p3b3xmg] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 10px;
}

.legal-footer a[b-nz7p3b3xmg] {
    color: #4A6B2E;
    text-decoration: none;
}

.legal-footer a:hover[b-nz7p3b3xmg],
.legal-footer a:focus-visible[b-nz7p3b3xmg] {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .legal-content[b-nz7p3b3xmg] {
        margin: 16px;
        padding: 24px;
        max-width: calc(100vw - 32px);
    }
    .legal-header[b-nz7p3b3xmg], .legal-footer[b-nz7p3b3xmg] {
        padding: 16px;
    }
}

/* ── Legal document typography ─────────────────────────────────
   Shared by every page rendered in this layout: Terms, Privacy, Cookies,
   Acceptable Use, Refunds, Sub-processors, DPA, Security, Accessibility.

   This lives here rather than in each page's own .razor.css because it used to
   be copy-pasted into six of them, and copies drift: Privacy had lost its `li a`
   rule, so links inside list items rendered as plain text there and green
   everywhere else — and three newer pages had no stylesheet at all, so they
   rendered in browser defaults while looking like a formatting bug.

   `::deep` is required: scoped CSS otherwise applies only to the layout's own
   markup, and the pages render through @Body as child content.

   A page that needs something extra keeps its own file (Terms' conspicuous
   blocks, the tables on Cookies and Sub-processors). Note that these layout
   rules out-specify a plain element selector in a page's scoped file, so a page
   overriding `h2` or `p` here would not take — add a class instead. */

.legal-content[b-nz7p3b3xmg]  .legal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.legal-content[b-nz7p3b3xmg]  .legal-updated {
    color: #6b6b6b;
    font-size: 13px;
    margin-bottom: 32px;
}

.legal-content[b-nz7p3b3xmg]  h2 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.legal-content[b-nz7p3b3xmg]  p {
    color: #555;
    margin-bottom: 12px;
    font-size: 14px;
}

.legal-content[b-nz7p3b3xmg]  ul {
    color: #555;
    font-size: 14px;
    margin: 8px 0 12px 20px;
    padding: 0;
}

.legal-content[b-nz7p3b3xmg]  li {
    margin-bottom: 6px;
}

.legal-content[b-nz7p3b3xmg]  p a,
.legal-content[b-nz7p3b3xmg]  li a {
    color: #4A6B2E;
    text-decoration: none;
}

.legal-content[b-nz7p3b3xmg]  p a:hover,
.legal-content[b-nz7p3b3xmg]  li a:hover {
    text-decoration: underline;
}

.legal-content[b-nz7p3b3xmg]  code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #1a1a2e;
}

/* ── Cross-links at the foot of each document ──────────────────── */

.legal-content[b-nz7p3b3xmg]  .legal-nav-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.legal-content[b-nz7p3b3xmg]  .legal-nav-links a {
    color: #4A6B2E;
    text-decoration: none;
}

.legal-content[b-nz7p3b3xmg]  .legal-nav-links a:hover {
    text-decoration: underline;
}

.legal-content[b-nz7p3b3xmg]  .legal-sep {
    color: #ccc;
}
/* /Layout/MarketingLayout.razor.rz.scp.css */
/* ── Marketing layout — the landing page's "Ledger" look for every marketing page ──
   Same tokens as LandingPage.razor.css (hardcoded, no CSS variables per CLAUDE.md):
     #FBFAF6  page ground          #F3F1EA / #F7F5EF  sand panels
     #E7E4DA  hairlines            #E2DED2 / #D9D5C8  card and control borders
     #1A1A2E  text strong          #4D4C5C / #5C5A6E  text body
     #6B6B6B  text muted           #4A6B2E  Green Bar     #3B5525  hover
     #E7EFDB  merge-value tint     #2F4A1A  text on tint

   The nav and footer are this component's own markup. The shared section styles reach the
   page inside @Body through ::deep, so a page only adds what is particular to it.

   Every shared rule starts at :where(.lp), which adds nothing to its weight: ".lp ::deep h2"
   compiles to ".lp[b-…] h2" and outranked a page's ".cols-h", so pages couldn't space their
   own headings, and the footer's .foot-h lost its margin to it. Scoped, a shared class rule
   weighs the same as a page's single-class rule; a page that changes one (.card, .hero h1,
   .example) adds a class from its own markup. Ties are settled by order in the scoped bundle:
   Components/ come before this file and Pages/ after it, so a component (PricingPlans,
   UseCasesMenu) whose single-class rule must beat a shared one needs a second class too. */

/* ══ PAGE ══ */
.lp[b-g0a7r3mfvc] {
    background: #FBFAF6;
    color: #1A1A2E;
    font: 400 16px/1.6 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

:where(.lp)[b-g0a7r3mfvc]  img { max-width: 100%; display: block; }
:where(.lp)[b-g0a7r3mfvc]  a { color: inherit; }
:where(.lp)[b-g0a7r3mfvc]  a:hover { text-decoration: none; }
:where(.lp)[b-g0a7r3mfvc]  h1, :where(.lp)[b-g0a7r3mfvc]  h2, :where(.lp)[b-g0a7r3mfvc]  h3, :where(.lp)[b-g0a7r3mfvc]  h4 { margin: 0; }
:where(.lp)[b-g0a7r3mfvc]  button { font: inherit; cursor: pointer; }

main[b-g0a7r3mfvc] { outline: none; }

:where(.lp)[b-g0a7r3mfvc]  .rail { max-width: 1200px; margin: 0 auto; }
:where(.lp)[b-g0a7r3mfvc]  .band { border-top: 1px solid #E7E4DA; }
/* Every other section on sand, so each reads as its own block rather than one long page. The
   count includes the hero (always first), so the first band after it stays on the page ground. */
:where(.lp)[b-g0a7r3mfvc]  main > .band:nth-of-type(odd) { background: #F3F1EA; }
:where(.lp)[b-g0a7r3mfvc]  main > .band:nth-of-type(odd) .tpl-shot { background: #FBFAF6; }
:where(.lp)[b-g0a7r3mfvc]  section[id] { scroll-margin-top: 64px; }
:where(.lp)[b-g0a7r3mfvc]  .pad { padding: 64px 56px 72px; }

:where(.lp)[b-g0a7r3mfvc]  .display {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.1;
}

:where(.lp)[b-g0a7r3mfvc]  .h2 { font-size: clamp(28px, 2.9vw, 40px); }
:where(.lp)[b-g0a7r3mfvc]  .lede { margin: 0; font-size: 18px; color: #4D4C5C; max-width: 640px; }
:where(.lp)[b-g0a7r3mfvc]  .tag { font: 500 12px 'JetBrains Mono', monospace; background: #E7EFDB; color: #2F4A1A; border-radius: 4px; padding: 1px 5px; }

/* ══ BUTTONS ══ */
:where(.lp)[b-g0a7r3mfvc]  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}

:where(.lp)[b-g0a7r3mfvc]  .btn-primary { background: #4A6B2E; color: #fff; }
:where(.lp)[b-g0a7r3mfvc]  .btn-primary:hover { background: #3B5525; }
:where(.lp)[b-g0a7r3mfvc]  .btn-outline { background: #fff; color: #1A1A2E; border-color: #D9D5C8; }
:where(.lp)[b-g0a7r3mfvc]  .btn-outline:hover { background: #fff; color: #1A1A2E; border-color: #1A1A2E; }
:where(.lp)[b-g0a7r3mfvc]  .btn-sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }

/* ══ STEPS ══ */
:where(.lp)[b-g0a7r3mfvc]  .steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
:where(.lp)[b-g0a7r3mfvc]  .step { background: #fff; border: 1px solid #E7E4DA; border-radius: 18px; padding: 26px; }
/* Solid, so a step's number is what the eye finds first. Matches LandingPage.razor.css. */
:where(.lp)[b-g0a7r3mfvc]  .step-n { width: 32px; height: 32px; border-radius: 50%; background: #4A6B2E; color: #fff; display: grid; place-items: center; font: 600 14px 'JetBrains Mono', monospace; }
:where(.lp)[b-g0a7r3mfvc]  .step h3 { margin-top: 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
:where(.lp)[b-g0a7r3mfvc]  .step p { margin: 6px 0 0; font-size: 14.5px; color: #5C5A6E; }

/* ══ USE-CASE PAGE PARTS ══
   The pieces every use-case page is built from: hero, cards, screenshots, tick lists and the
   closing call to action. A page's own .razor.css adds only its particular layout. */
:where(.lp)[b-g0a7r3mfvc]  .hero-inner { padding: 64px 56px 56px; }
:where(.lp)[b-g0a7r3mfvc]  .eyebrow { margin: 0 0 14px; font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; color: #4A6B2E; }
/* A guide's eyebrow starts with its breadcrumb back to /guides (the BreadcrumbList data in SeoMetadata matches it). */
:where(.lp)[b-g0a7r3mfvc]  .eyebrow a { color: inherit; text-decoration: none; }
:where(.lp)[b-g0a7r3mfvc]  .eyebrow a:hover { text-decoration: underline; }
:where(.lp)[b-g0a7r3mfvc]  .hero h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 880px; }
:where(.lp)[b-g0a7r3mfvc]  .hero .lede { margin-top: 20px; }
:where(.lp)[b-g0a7r3mfvc]  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
:where(.lp)[b-g0a7r3mfvc]  .hero-foot { margin: 18px 0 0; font-size: 14px; color: #5C5A6E; }
:where(.lp)[b-g0a7r3mfvc]  .hero-foot strong { color: #1A1A2E; }
:where(.lp)[b-g0a7r3mfvc]  .section-lede { margin-top: 14px; }

:where(.lp)[b-g0a7r3mfvc]  .card { background: #fff; border: 1px solid #E7E4DA; border-radius: 18px; padding: 24px 26px; }
:where(.lp)[b-g0a7r3mfvc]  .card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
:where(.lp)[b-g0a7r3mfvc]  .card p { margin: 8px 0 0; font-size: 15px; color: #5C5A6E; }

:where(.lp)[b-g0a7r3mfvc]  .shot { margin: 32px 0 0; }
:where(.lp)[b-g0a7r3mfvc]  .shot img { width: 100%; height: auto; border: 1px solid #E7E4DA; border-radius: 14px; background: #fff; }
:where(.lp)[b-g0a7r3mfvc]  .shot figcaption { margin-top: 10px; font-size: 13px; color: #6B6B6B; }

:where(.lp)[b-g0a7r3mfvc]  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
:where(.lp)[b-g0a7r3mfvc]  .ticks { list-style: none; padding: 0; margin: 22px 0 0; }
:where(.lp)[b-g0a7r3mfvc]  .ticks li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid #E7E4DA; font-size: 15px; color: #4D4C5C; }
:where(.lp)[b-g0a7r3mfvc]  .ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 2px solid #4A6B2E; border-bottom: 2px solid #4A6B2E; transform: rotate(-45deg); }

/* A sample spreadsheet turning into files: a small table, an arrow, the files it makes. */
:where(.lp)[b-g0a7r3mfvc]  .example { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; margin-top: 32px; align-items: start; }
:where(.lp)[b-g0a7r3mfvc]  .example .shot { margin-top: 0; }
:where(.lp)[b-g0a7r3mfvc]  .sheet-card { background: #fff; border: 1px solid #E7E4DA; border-radius: 18px; padding: 22px 24px; }
:where(.lp)[b-g0a7r3mfvc]  .sheet-name { margin: 0 0 12px; font: 500 12px 'JetBrains Mono', monospace; color: #6B6B6B; }
:where(.lp)[b-g0a7r3mfvc]  .sheet { width: 100%; border-collapse: collapse; font-size: 14px; }
:where(.lp)[b-g0a7r3mfvc]  .sheet th { text-align: left; padding: 8px 10px; background: #F3F1EA; font: 500 12px 'JetBrains Mono', monospace; color: #2F4A1A; border-bottom: 1px solid #E2DED2; }
:where(.lp)[b-g0a7r3mfvc]  .sheet td { padding: 9px 10px; border-bottom: 1px solid #EFECE3; color: #4D4C5C; }
:where(.lp)[b-g0a7r3mfvc]  .sheet-note { margin: 12px 0 0; font-size: 13px; color: #6B6B6B; }
:where(.lp)[b-g0a7r3mfvc]  .sheet-arrow { margin: 14px 0 6px; text-align: center; font-size: 22px; color: #4A6B2E; }
:where(.lp)[b-g0a7r3mfvc]  .files { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
:where(.lp)[b-g0a7r3mfvc]  .files li { padding: 8px 12px; border: 1px solid #CFDDBB; background: #F6F9F1; border-radius: 8px; font: 500 13px 'JetBrains Mono', monospace; color: #2F4A1A; }

/* Template cards: the gallery and "related templates". The shot keeps a page's shape, so a
   landscape certificate sits in the same box as a portrait invoice. */
:where(.lp)[b-g0a7r3mfvc]  .gallery { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
:where(.lp)[b-g0a7r3mfvc]  .tpl-card { display: block; text-decoration: none; }
:where(.lp)[b-g0a7r3mfvc]  .tpl-shot { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.25; padding: 14px; background: #F3F1EA; border: 1px solid #E7E4DA; border-radius: 14px; transition: border-color .15s; }
:where(.lp)[b-g0a7r3mfvc]  .tpl-shot img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 1px 3px rgba(26, 26, 46, .12); background: #fff; }
:where(.lp)[b-g0a7r3mfvc]  .tpl-card:hover .tpl-shot { border-color: #4A6B2E; }
:where(.lp)[b-g0a7r3mfvc]  .tpl-name { display: block; margin-top: 12px; font-weight: 600; font-size: 15px; color: #1A1A2E; }
:where(.lp)[b-g0a7r3mfvc]  .tpl-desc { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: #5C5A6E; }

:where(.lp)[b-g0a7r3mfvc]  .inline-link { color: #4A6B2E; text-decoration: underline; text-underline-offset: 2px; }
:where(.lp)[b-g0a7r3mfvc]  .cta .lede { margin-top: 14px; }
:where(.lp)[b-g0a7r3mfvc]  .marks { margin: 40px 0 0; font-size: 12px; line-height: 1.6; color: #6B6B6B; max-width: 760px; }

/* ══ FAQ ══ */
:where(.lp)[b-g0a7r3mfvc]  .faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
:where(.lp)[b-g0a7r3mfvc]  .faq .lede { margin-top: 14px; font-size: 16px; }
:where(.lp)[b-g0a7r3mfvc]  .faq-list details { border-bottom: 1px solid #E7E4DA; }
:where(.lp)[b-g0a7r3mfvc]  .faq-list details:first-child { border-top: 1px solid #E7E4DA; }
:where(.lp)[b-g0a7r3mfvc]  .faq-list details[open] { padding-bottom: 8px; }
:where(.lp)[b-g0a7r3mfvc]  .faq-list summary { padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
:where(.lp)[b-g0a7r3mfvc]  .faq-list summary::-webkit-details-marker { display: none; }
:where(.lp)[b-g0a7r3mfvc]  .faq-list summary::after { content: "+"; font: 400 24px/1 'Inter', sans-serif; color: #4A6B2E; transition: transform .2s; }
:where(.lp)[b-g0a7r3mfvc]  .faq-list details[open] summary::after { transform: rotate(45deg); }
:where(.lp)[b-g0a7r3mfvc]  .faq-list p { margin: 0 0 14px; font-size: 15px; color: #4D4C5C; }

/* ══ GUIDES ══
   A how-to guide (/guides/...): a contents list that stays in view beside one readable column
   of numbered steps, each with its screenshot, then the common problems. */
/* A guide's question is longer than a use-case headline, so it's set smaller. */
:where(.lp)[b-g0a7r3mfvc]  .guide-hero h1 { font-size: clamp(32px, 3.8vw, 50px); }
:where(.lp)[b-g0a7r3mfvc]  .guide-meta { margin: 18px 0 0; font-size: 14px; color: #6B6B6B; }
:where(.lp)[b-g0a7r3mfvc]  .guide { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; align-items: start; }
:where(.lp)[b-g0a7r3mfvc]  .guide-toc { position: sticky; top: 96px; font-size: 14px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-toc-h, :where(.lp)[b-g0a7r3mfvc]  .guide-need-h { margin: 0 0 10px; font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; color: #6B6B6B; }
:where(.lp)[b-g0a7r3mfvc]  .guide-toc ol { margin: 0; padding: 0 0 0 18px; color: #6B6B6B; }
:where(.lp)[b-g0a7r3mfvc]  .guide-toc li { padding: 4px 0; }
:where(.lp)[b-g0a7r3mfvc]  .guide-toc a { color: #4D4C5C; text-decoration: none; }
:where(.lp)[b-g0a7r3mfvc]  .guide-toc a:hover { color: #4A6B2E; }
:where(.lp)[b-g0a7r3mfvc]  .guide-toc-more { display: inline-block; margin-top: 12px; padding-top: 12px; border-top: 1px solid #E7E4DA; }
:where(.lp)[b-g0a7r3mfvc]  .guide-body { max-width: 760px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-need { background: #F7F5EF; border: 1px solid #E7E4DA; border-radius: 18px; padding: 22px 24px 8px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-need .ticks { margin: 0; }
:where(.lp)[b-g0a7r3mfvc]  .guide-need .ticks li:last-child { border-bottom: 0; }
/* Each step opens with a rule, so the steps read as separate units. */
:where(.lp)[b-g0a7r3mfvc]  .guide-step { margin-top: 48px; padding-top: 44px; border-top: 1px solid #E2DED2; }
:where(.lp)[b-g0a7r3mfvc]  .guide-step h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; }
:where(.lp)[b-g0a7r3mfvc]  .guide-step h2 .step-n { flex: none; width: 36px; height: 36px; font-size: 15px; }
/* Common problems: a panel like What you need, so the guide is boxed at both ends. */
:where(.lp)[b-g0a7r3mfvc]  .guide-step.guide-trouble { background: #F7F5EF; border: 1px solid #E7E4DA; border-radius: 18px; padding: 28px 28px 24px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-step > p { margin: 14px 0 0; color: #4D4C5C; }
:where(.lp)[b-g0a7r3mfvc]  .guide-step .sheet-card,
:where(.lp)[b-g0a7r3mfvc]  .guide-step .shot,
:where(.lp)[b-g0a7r3mfvc]  .guide-step .guide-example { margin-top: 22px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-list { margin: 16px 0 0; padding-left: 20px; color: #4D4C5C; }
:where(.lp)[b-g0a7r3mfvc]  .guide-list li { margin-top: 8px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-list strong { color: #1A1A2E; }
:where(.lp)[b-g0a7r3mfvc]  .guide-shot-narrow { max-width: 300px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-example { background: #fff; border: 1px solid #E7E4DA; border-radius: 14px; padding: 8px 20px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-example p { margin: 0; display: flex; align-items: baseline; gap: 16px; padding: 10px 0; font-size: 14px; color: #4D4C5C; }
:where(.lp)[b-g0a7r3mfvc]  .guide-example p + p { border-top: 1px solid #EFECE3; }
:where(.lp)[b-g0a7r3mfvc]  .guide-example-label { flex: none; width: 64px; font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; color: #6B6B6B; }
/* A field-to-column list: the labels are field names, kept as written. */
:where(.lp)[b-g0a7r3mfvc]  .guide-mapping .guide-example-label { width: 150px; text-transform: none; letter-spacing: 0; }
:where(.lp)[b-g0a7r3mfvc]  .guide-problems { margin: 8px 0 0; }
:where(.lp)[b-g0a7r3mfvc]  .guide-problems dt { margin-top: 18px; padding-top: 18px; border-top: 1px solid #E7E4DA; font-weight: 600; color: #1A1A2E; }
:where(.lp)[b-g0a7r3mfvc]  .guide-problems dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
:where(.lp)[b-g0a7r3mfvc]  .guide-problems dd { margin: 6px 0 0; font-size: 15px; color: #4D4C5C; }

/* A step that shows starters uses the gallery's cards, three to a row. */
:where(.lp)[b-g0a7r3mfvc]  .guide-step .guide-gallery { margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* The /guides page: one card per guide, the whole card a link. */
:where(.lp)[b-g0a7r3mfvc]  .guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
:where(.lp)[b-g0a7r3mfvc]  .guide-cards li { display: flex; }
:where(.lp)[b-g0a7r3mfvc]  .guide-card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid #E7E4DA; border-radius: 18px; padding: 24px 26px; text-decoration: none; transition: border-color .15s; }
:where(.lp)[b-g0a7r3mfvc]  .guide-card:hover { border-color: #4A6B2E; }
:where(.lp)[b-g0a7r3mfvc]  .guide-card h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: #1A1A2E; }
:where(.lp)[b-g0a7r3mfvc]  .guide-card p { flex: 1; margin: 8px 0 0; font-size: 15px; color: #5C5A6E; }
:where(.lp)[b-g0a7r3mfvc]  .guide-card-more { margin-top: 18px; font-size: 14px; font-weight: 600; color: #4A6B2E; }

/* ══ COMPARISON PAGES ══
   /compare/...: a side-by-side table (the home page's "How RowScribe compares" look, with the
   other product named), each product's plans, and where each one fits better. */
:where(.lp)[b-g0a7r3mfvc]  .vs { position: relative; margin-top: 32px; border: 1px solid #E2DED2; border-radius: 18px; background: #fff; overflow: hidden; }
/* The empty corner cell's label, for screen readers only. */
:where(.lp)[b-g0a7r3mfvc]  .vs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table th, :where(.lp)[b-g0a7r3mfvc]  .vs-table td { padding: 16px 22px; border-top: 1px solid #F0EDE4; text-align: left; vertical-align: top; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table thead th { border-top: 0; font-size: 14px; font-weight: 600; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table th:first-child { width: 22%; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table th[scope="row"] { font-weight: 600; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table td { color: #5C5A6E; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table .vs-us { background: #F6F9F1; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table td.vs-us { color: #1A1A2E; }
:where(.lp)[b-g0a7r3mfvc]  .vs-table thead .vs-us { color: #3B5525; }
:where(.lp)[b-g0a7r3mfvc]  .vs-plan { display: block; margin-top: 6px; font: 500 11.5px 'JetBrains Mono', monospace; color: #4A6B2E; }
:where(.lp)[b-g0a7r3mfvc]  .vs-note { margin: 14px 0 0; font-size: 13px; color: #6B6B6B; max-width: 760px; }

/* Each product's plans, two tables side by side. */
:where(.lp)[b-g0a7r3mfvc]  .plan-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
:where(.lp)[b-g0a7r3mfvc]  .plan-card { background: #fff; border: 1px solid #E7E4DA; border-radius: 18px; padding: 22px 24px; overflow-x: auto; }
:where(.lp)[b-g0a7r3mfvc]  .plan-card.plan-us { background: #F6F9F1; border-color: #CFDDBB; }
:where(.lp)[b-g0a7r3mfvc]  .plan-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
:where(.lp)[b-g0a7r3mfvc]  .plan-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
:where(.lp)[b-g0a7r3mfvc]  .plan-table th { text-align: left; padding: 8px 10px 8px 0; font: 500 11.5px 'JetBrains Mono', monospace; letter-spacing: 0.03em; text-transform: uppercase; color: #6B6B6B; border-bottom: 1px solid #E2DED2; }
:where(.lp)[b-g0a7r3mfvc]  .plan-table th[scope="row"] { font: 600 14px 'Inter', sans-serif; letter-spacing: 0; text-transform: none; color: #1A1A2E; }
:where(.lp)[b-g0a7r3mfvc]  .plan-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid #EFECE3; color: #4D4C5C; }
:where(.lp)[b-g0a7r3mfvc]  .plan-table tr:last-child th[scope="row"], :where(.lp)[b-g0a7r3mfvc]  .plan-table tr:last-child td { border-bottom: 0; }
:where(.lp)[b-g0a7r3mfvc]  .plan-card p { margin: 12px 0 0; font-size: 13.5px; color: #5C5A6E; }

/* Three cards on what sets the two apart. */
:where(.lp)[b-g0a7r3mfvc]  .diff-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }

/* Reasons to choose RowScribe: four cards, two to a row. */
:where(.lp)[b-g0a7r3mfvc]  .why-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }

/* What's in RowScribe (CompareFeatures): six features, three to a row. */
:where(.lp)[b-g0a7r3mfvc]  .feature-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
:where(.lp)[b-g0a7r3mfvc]  .feature-grid li { background: #fff; border: 1px solid #E7E4DA; border-radius: 18px; padding: 22px 24px; }
:where(.lp)[b-g0a7r3mfvc]  .feature-grid h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
:where(.lp)[b-g0a7r3mfvc]  .feature-grid p { margin: 8px 0 0; font-size: 14.5px; color: #5C5A6E; }

/* The "why sign up" list in the call to action (CompareSignUp). */
:where(.lp)[b-g0a7r3mfvc]  .cta-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 760px; }
:where(.lp)[b-g0a7r3mfvc]  .cta-points li { position: relative; padding-left: 24px; font-size: 15px; color: #4D4C5C; }
:where(.lp)[b-g0a7r3mfvc]  .cta-points li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid #4A6B2E; border-bottom: 2px solid #4A6B2E; transform: rotate(-45deg); }

/* Where each one fits better: two lists side by side. */
:where(.lp)[b-g0a7r3mfvc]  .fit-h { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }

/* ══ NAV ══ */
.nav-wrap[b-g0a7r3mfvc] {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 246, 0.86);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid #E7E4DA;
}

.nav[b-g0a7r3mfvc] {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
    padding: 0 28px;
}

.nav-logo[b-g0a7r3mfvc] { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; flex-shrink: 0; }
    .nav-logo[b-g0a7r3mfvc]  a { display: inline-flex; align-items: center; text-decoration: none; }
    .nav-logo[b-g0a7r3mfvc]  .rowscribe-logo-mark { height: 22px; margin-right: 10px; vertical-align: baseline; }

.nav-links[b-g0a7r3mfvc] { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
    /* Centered, not stretched: on touch screens the Use cases button is 44px tall (UseCasesMenu.razor.css),
       and top-aligned links then sat 13px above its label. */
    .nav-links a[b-g0a7r3mfvc] { text-decoration: none; font-size: 14px; font-weight: 500; color: #4D4C5C; }
    .nav-links a:hover[b-g0a7r3mfvc] { color: #1A1A2E; }
.nav-right[b-g0a7r3mfvc] { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-login[b-g0a7r3mfvc] { text-decoration: none; font-size: 14px; font-weight: 500; color: #4D4C5C; padding: 8px 12px; }

/* Three bars drawn in CSS, not a ☰ glyph that renders at whatever weight the font has. */
.nav-burger[b-g0a7r3mfvc] { display: none; margin-left: auto; background: none; border: 1px solid #D9D5C8; border-radius: 8px; width: 40px; height: 40px; }
    .nav-burger span[b-g0a7r3mfvc], .nav-burger span[b-g0a7r3mfvc]::before, .nav-burger span[b-g0a7r3mfvc]::after { display: block; width: 16px; height: 1.5px; background: #1A1A2E; margin: 0 auto; position: relative; content: ""; }
    .nav-burger span[b-g0a7r3mfvc]::before { position: absolute; top: -5px; }
    .nav-burger span[b-g0a7r3mfvc]::after { position: absolute; top: 5px; }

.drawer[b-g0a7r3mfvc] { border-top: 1px solid #E7E4DA; padding: 16px 20px 20px; }
    .drawer[hidden][b-g0a7r3mfvc] { display: none; }
    .drawer a[b-g0a7r3mfvc] { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid #EFECE3; }
    .drawer-h[b-g0a7r3mfvc] { margin: 16px 0 2px; font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; color: #6B6B6B; }
    .drawer .btn[b-g0a7r3mfvc] { display: flex; margin-top: 14px; width: 100%; border-bottom: 1px solid #D9D5C8; }
    .drawer .btn-primary[b-g0a7r3mfvc] { border-color: transparent; }

/* ══ FOOTER ══ */
.footer[b-g0a7r3mfvc] { background: #1A1A2E; color: #A9A8BA; font-size: 14px; }
/* Brand, then Product, Use cases, Guides and Legal, each a single list. */
.foot[b-g0a7r3mfvc] { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .85fr); gap: 32px; padding: 56px 56px 40px; }
    .foot p[b-g0a7r3mfvc] { margin: 12px 0 0; max-width: 300px; }
    .foot-h[b-g0a7r3mfvc] { color: #fff; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
    .foot-h.foot-h-next[b-g0a7r3mfvc] { margin-top: 24px; }
    .foot ul[b-g0a7r3mfvc] { list-style: none; padding: 0; margin: 0; columns: 2; }
    .foot ul.one[b-g0a7r3mfvc] { columns: 1; }
    .foot li[b-g0a7r3mfvc] { margin-bottom: 8px; }
    .foot a[b-g0a7r3mfvc] { text-decoration: none; }
    .foot a:hover[b-g0a7r3mfvc] { color: #fff; }

.foot-logo[b-g0a7r3mfvc] { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.logo-row-light[b-g0a7r3mfvc] { color: #fff; }
.logo-scribe-light[b-g0a7r3mfvc] { color: #A7C97F; }

.foot-bottom[b-g0a7r3mfvc] { padding: 18px 56px; border-top: 1px solid #2E2E46; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
    .foot-bottom a[b-g0a7r3mfvc] { text-decoration: none; }
    .foot-bottom a:hover[b-g0a7r3mfvc] { color: #fff; }

/* ══ RESPONSIVE ══ */
/* The links fold into the menu button below the width the full row needs (about 885px for the
   six links); Log in and Start free stay beside it until phone width. */
@media (max-width: 920px) {
    .nav-links[b-g0a7r3mfvc] { display: none; }
    .nav-burger[b-g0a7r3mfvc] { display: block; margin-left: 0; }
}

@media (max-width: 1024px) {
    :where(.lp)[b-g0a7r3mfvc]  .pad { padding: 52px 36px 60px; }
    :where(.lp)[b-g0a7r3mfvc]  .hero-inner { padding: 48px 36px 44px; }
    :where(.lp)[b-g0a7r3mfvc]  .two-col { grid-template-columns: 1fr; gap: 40px; }
    :where(.lp)[b-g0a7r3mfvc]  .example { grid-template-columns: 1fr; }
    :where(.lp)[b-g0a7r3mfvc]  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    :where(.lp)[b-g0a7r3mfvc]  .steps { grid-template-columns: 1fr; }
    :where(.lp)[b-g0a7r3mfvc]  .faq { grid-template-columns: 1fr; gap: 24px; }
    /* minmax(0, 1fr), not 1fr: a plain 1fr track grows to its widest child (a sample sheet's
       table), which made five guides 510-686px wide on a 390px phone. The sheet scrolls in its
       own card instead. */
    :where(.lp)[b-g0a7r3mfvc]  .guide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    :where(.lp)[b-g0a7r3mfvc]  .guide-toc { position: static; }
    :where(.lp)[b-g0a7r3mfvc]  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :where(.lp)[b-g0a7r3mfvc]  .plan-pair { grid-template-columns: minmax(0, 1fr); }
    :where(.lp)[b-g0a7r3mfvc]  .diff-cards { grid-template-columns: minmax(0, 1fr); }
    :where(.lp)[b-g0a7r3mfvc]  .why-cards { grid-template-columns: minmax(0, 1fr); }
    :where(.lp)[b-g0a7r3mfvc]  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table th, :where(.lp)[b-g0a7r3mfvc]  .vs-table td { padding: 14px 14px; }
    .foot[b-g0a7r3mfvc] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
    .foot > div:first-child[b-g0a7r3mfvc] { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav[b-g0a7r3mfvc] { padding: 0 20px; }
    .nav-right[b-g0a7r3mfvc] { display: none; }
    .nav-burger[b-g0a7r3mfvc] { margin-left: auto; }
    :where(.lp)[b-g0a7r3mfvc]  .pad { padding: 44px 20px 48px; }
    :where(.lp)[b-g0a7r3mfvc]  .hero-inner { padding: 36px 20px 36px; }
    :where(.lp)[b-g0a7r3mfvc]  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    :where(.lp)[b-g0a7r3mfvc]  .guide-cards { grid-template-columns: 1fr; }
    :where(.lp)[b-g0a7r3mfvc]  .feature-grid { grid-template-columns: minmax(0, 1fr); }
    :where(.lp)[b-g0a7r3mfvc]  .guide-step .guide-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* The side-by-side table stacks: each row's two answers one under the other, each named. */
    :where(.lp)[b-g0a7r3mfvc]  .vs-table thead { display: none; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table tr { display: block; padding: 16px 16px 12px; border-top: 1px solid #F0EDE4; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table tbody tr:first-child { border-top: 0; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table th, :where(.lp)[b-g0a7r3mfvc]  .vs-table td { display: block; padding: 0; border-top: 0; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table th:first-child { width: auto; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table th[scope="row"] { margin-bottom: 10px; font-size: 15px; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table td { margin-bottom: 10px; font-size: 14px; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table td::before { content: attr(data-col); display: block; margin-bottom: 2px; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .04em; text-transform: uppercase; color: #6B6B6B; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table td.vs-us { margin-bottom: 4px; padding: 10px 12px; border-radius: 10px; }
    :where(.lp)[b-g0a7r3mfvc]  .vs-table td.vs-us::before { color: #4A6B2E; }
    .foot[b-g0a7r3mfvc] { grid-template-columns: 1fr; padding: 44px 20px 28px; }
    .foot-bottom[b-g0a7r3mfvc] { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
    :where(.lp)[b-g0a7r3mfvc]  .h2 { font-size: 28px; }
    :where(.lp)[b-g0a7r3mfvc]  .hero h1 { font-size: 34px; }
    :where(.lp)[b-g0a7r3mfvc]  .guide-step h2 { font-size: 22px; }
    :where(.lp)[b-g0a7r3mfvc]  .hero-ctas .btn { flex: 1; }
}

/* A sample sheet scrolls sideways on a phone rather than squeezing its columns. */
@media (max-width: 560px) {
    :where(.lp)[b-g0a7r3mfvc]  .sheet-card { overflow-x: auto; }
    :where(.lp)[b-g0a7r3mfvc]  .sheet { min-width: 440px; }
}

/* ══ TOUCH TARGETS ══
   On touch screens every control is at least 44px each way (WCAG 2.5.5, Apple's HIG). */
@media (pointer: coarse) {
    .nav-burger[b-g0a7r3mfvc] { width: 44px; height: 44px; }
    .nav-login[b-g0a7r3mfvc] { display: inline-flex; align-items: center; min-height: 44px; }
    .nav-right .btn[b-g0a7r3mfvc] { min-height: 44px; }
}
/* /Pages/Account.razor.rz.scp.css */
/* ── Account Cards ──────────────────────────────────────────────────────────── */

.account-card[b-a6zxemh5ry] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.card-title[b-a6zxemh5ry] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

/* ── Profile Header ────────────────────────────────────────────────────────── */

.profile-header[b-a6zxemh5ry] {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar[b-a6zxemh5ry] {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #4A6B2E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.profile-avatar-img[b-a6zxemh5ry] {
    object-fit: cover;
    background: #f0f0f0;
    color: transparent;
}

.profile-avatar-wrap[b-a6zxemh5ry] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.profile-avatar-actions[b-a6zxemh5ry] {
    display: flex;
    gap: 6px;
    align-items: center;
}

.profile-info[b-a6zxemh5ry] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name[b-a6zxemh5ry] {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.profile-email[b-a6zxemh5ry] {
    font-size: 14px;
    color: #555;
}

.profile-meta[b-a6zxemh5ry] {
    font-size: 12px;
    color: #6b6b6b;
}

.profile-badges[b-a6zxemh5ry] {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

/* ── Badges ────────────────────────────────────────────────────────────────── */

.badge[b-a6zxemh5ry] {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-admin[b-a6zxemh5ry] {
    background: #E5EDD8;
    color: #4A6B2E;
}

.badge-verified[b-a6zxemh5ry] {
    background: #f0fdf4;
    color: #166534;
}

.badge-unverified[b-a6zxemh5ry] {
    background: #fef3c7;
    color: #92400e;
}

.badge-suspended[b-a6zxemh5ry] {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Form ──────────────────────────────────────────────────────────────────── */

.form-group[b-a6zxemh5ry] {
    margin-bottom: 16px;
}

.form-label[b-a6zxemh5ry] {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

/* Constrain account-form inputs to a sensible max width — they're labels
   like Full Name and Email, no benefit to stretching across a 24-inch monitor. */
[b-a6zxemh5ry] .form-control {
    max-width: 400px;
}

.form-hint[b-a6zxemh5ry] {
    display: block;
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 4px;
}

.form-actions[b-a6zxemh5ry] {
    margin-top: 20px;
}

/* ── Alerts ────────────────────────────────────────────────────────────────── */

.alert[b-a6zxemh5ry] {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-success[b-a6zxemh5ry] {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error[b-a6zxemh5ry] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Connected Email Accounts ─────────────────────────────────────────────── */

.connected-accounts-list[b-a6zxemh5ry] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.connected-account-row[b-a6zxemh5ry] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    gap: 12px;
}

.connected-account-info[b-a6zxemh5ry] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.connected-account-icon[b-a6zxemh5ry] {
    font-size: 20px;
    flex-shrink: 0;
}

.connected-account-email[b-a6zxemh5ry] {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connected-account-provider[b-a6zxemh5ry] {
    font-size: 12px;
    color: #6b6b6b;
}

.connected-account-sends[b-a6zxemh5ry] {
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}

.connected-account-actions[b-a6zxemh5ry] {
    display: flex;
    gap: 8px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .profile-header[b-a6zxemh5ry] {
        flex-direction: column;
        align-items: flex-start;
    }

    [b-a6zxemh5ry] .form-control {
        max-width: 100%;
    }

    .connected-account-row[b-a6zxemh5ry] {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .connected-account-actions[b-a6zxemh5ry] {
        flex-direction: column;
        width: 100%;
    }

    .connected-account-actions .btn[b-a6zxemh5ry] {
        width: 100%;
    }

}

/* ── Activity card ────────────────────────────────────────────────────────── */
.badge-impersonated[b-a6zxemh5ry] {
    display: inline-block;
    background: #fff8e1;
    color: #8a6d00;
    border: 1px solid #f0c040;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.pagination[b-a6zxemh5ry] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: #555;
}
/* /Pages/Admin/Analytics.razor.rz.scp.css */
/* ── Overview stats ─────────────────────────────────────────────────────────── */

.analytics-stats[b-43j6gxrjp9] {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.a-stat[b-43j6gxrjp9] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    flex: 1;
}

.a-stat-value[b-43j6gxrjp9] {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.a-stat-label[b-43j6gxrjp9] {
    font-size: 10px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.a-stat-purple .a-stat-value[b-43j6gxrjp9] { color: #4A6B2E; }
.a-stat-green .a-stat-value[b-43j6gxrjp9] { color: #059669; }
.a-stat-red .a-stat-value[b-43j6gxrjp9] { color: #dc2626; }

/* ── Needs attention ────────────────────────────────────────────────────── */

.attention-panel[b-43j6gxrjp9] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.attention-head[b-43j6gxrjp9] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.attention-title[b-43j6gxrjp9] {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attention-clear-note[b-43j6gxrjp9] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a9a3a;
    font-size: 13px;
    font-weight: 600;
}

.attention-error[b-43j6gxrjp9] {
    color: #B33C32;
    font-size: 13px;
}

.attention-items[b-43j6gxrjp9] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.attention-item[b-43j6gxrjp9] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #f0c040;
    border-radius: 8px;
    background: #fff;
    color: #1a1a2e;
    text-decoration: none;
    min-width: 0;
}

    .attention-item:hover[b-43j6gxrjp9] {
        background: #f8f8f8;
    }

.attention-urgent[b-43j6gxrjp9] {
    border-left-color: #B33C32;
}

.attention-count[b-43j6gxrjp9] {
    font-size: 20px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.attention-urgent .attention-count[b-43j6gxrjp9] {
    color: #B33C32;
}

.attention-text[b-43j6gxrjp9] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.attention-label[b-43j6gxrjp9] {
    font-size: 13px;
    font-weight: 600;
}

.attention-detail[b-43j6gxrjp9] {
    font-size: 12px;
    color: #6b6b6b;
}

/* ── Overview charts ────────────────────────────────────────────────────────── */

.chart-panel[b-43j6gxrjp9] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    max-height: 280px;
    overflow: hidden;
}

    .chart-panel canvas[b-43j6gxrjp9] {
        max-height: 220px;
    }

.chart-title[b-43j6gxrjp9] {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.chart-row[b-43j6gxrjp9] {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.chart-half[b-43j6gxrjp9] {
    flex: 1;
    margin-bottom: 0;
}

/* ── Range selector (Report tabs) ──────────────────────────────────────────── */

.report-range[b-43j6gxrjp9] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px;
}

.report-range-label[b-43j6gxrjp9] {
    font-size: 12px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 8px;
    font-weight: 700;
}

.report-range-btn[b-43j6gxrjp9] {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

    .report-range-btn:hover[b-43j6gxrjp9] {
        background: #f0f0f0;
        color: #1a1a2e;
    }

    .report-range-btn.active[b-43j6gxrjp9] {
        background: #E5EDD8;
        color: #4A6B2E;
    }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */

.report-tabs[b-43j6gxrjp9] {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .report-tabs[b-43j6gxrjp9]::-webkit-scrollbar {
        display: none;
    }

.report-tab[b-43j6gxrjp9] {
    background: none;
    border: none;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s, border-color 0.15s;
}

    .report-tab:hover[b-43j6gxrjp9] {
        color: #1a1a2e;
    }

    .report-tab.active[b-43j6gxrjp9] {
        color: #4A6B2E;
        border-bottom-color: #4A6B2E;
    }

.report-tab-icon[b-43j6gxrjp9] {
    display: inline-flex;
    align-items: center;
    vertical-align: -0.18em;
}

/* ── Stat tiles (Report tabs) ─────────────────────────────────────────────── */

.report-stats[b-43j6gxrjp9] {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

[b-43j6gxrjp9] .report-stat {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
    flex: 1;
}

[b-43j6gxrjp9] .report-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

[b-43j6gxrjp9] .report-stat-label {
    font-size: 10px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-align: center;
}

[b-43j6gxrjp9] .report-stat-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

[b-43j6gxrjp9] .report-stat-note {
    font-size: 11px;
    color: #6b6b6b;
    margin-top: 2px;
    text-align: center;
}

[b-43j6gxrjp9] .report-stat-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
    text-align: center;
}

[b-43j6gxrjp9] .report-stat-change-good { color: #1a9a3a; }
[b-43j6gxrjp9] .report-stat-change-bad { color: #B33C32; }
[b-43j6gxrjp9] .report-stat-change-flat { color: #6b6b6b; }

[b-43j6gxrjp9] .report-stat-green .report-stat-value {
    color: #059669;
}

[b-43j6gxrjp9] .report-stat-red .report-stat-value {
    color: #dc2626;
}

[b-43j6gxrjp9] .report-stat-purple .report-stat-value {
    color: #4A6B2E;
}

/* ── Cards & grids (Report tabs) ──────────────────────────────────────────── */

.report-grid[b-43j6gxrjp9] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.report-card[b-43j6gxrjp9] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
    /* Grid items default to min-width: auto, which lets the inner table's
       min-content size push the card wider than its track — that bypasses
       the .table-wrapper's overflow-x:auto and the whole page scrolls instead
       of just the table. min-width: 0 lets the card shrink to its track width
       so horizontal scroll happens inside the wrapper where it belongs. */
    min-width: 0;
}

.report-card-title[b-43j6gxrjp9] {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-card-sub[b-43j6gxrjp9] {
    font-size: 11px;
    color: #6b6b6b;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.report-empty[b-43j6gxrjp9] {
    color: #6b6b6b;
    font-size: 13px;
    padding: 12px 0;
    text-align: center;
}

/* ── Campaigns tab ────────────────────────────────────────────────────── */

/* Tags are whatever the link carried, so a long unbroken one wraps instead of
   stretching the table. */
.campaign-name[b-43j6gxrjp9] {
    overflow-wrap: anywhere;
}

.campaign-detail-row > td[b-43j6gxrjp9] {
    background: #f8f8f8;
    padding: 16px 18px;
}

.campaign-detail[b-43j6gxrjp9] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campaign-slices[b-43j6gxrjp9] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

    .campaign-slices > div[b-43j6gxrjp9] {
        min-width: 0;
    }

.campaign-detail-title[b-43j6gxrjp9] {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

    .campaign-detail-title .text-muted[b-43j6gxrjp9] {
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
    }

.campaign-detail-more[b-43j6gxrjp9] {
    margin-top: 4px;
}

/* ── Section headings (Revenue tab) ───────────────────────────────────── */

.report-section-head[b-43j6gxrjp9] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 8px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.report-section-title[b-43j6gxrjp9] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.report-section-sub[b-43j6gxrjp9] {
    font-size: 13px;
    color: #6b6b6b;
}

/* ── Charts (Report tabs) ─────────────────────────────────────────────────── */

.report-chart-panel[b-43j6gxrjp9] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    max-height: 320px;
    overflow: hidden;
}

    .report-chart-panel canvas[b-43j6gxrjp9] {
        max-height: 260px;
    }

.report-chart-title[b-43j6gxrjp9] {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.report-chart-row[b-43j6gxrjp9] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.report-chart-half[b-43j6gxrjp9] {
    margin-bottom: 0;
}

/* ── Table cell layout ────────────────────────────────────────────────────
   `.member-cell` is defined only in Billing.razor.css / Workspaces.razor.css
   (page-scoped). Redefine it here so the two-line "name / sub-line" pattern
   inside table cells renders correctly on the report tabs too. */

[b-43j6gxrjp9] .member-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Subscription-status badges. `.badge-active` is global; the rest are scoped
   to other admin pages. Redefine them here so revenue rows render with the
   right tone regardless of the user's path into the page. */

[b-43j6gxrjp9] .report-status-active {
    background: rgba(40,200,64,0.15);
    color: #1a9a3a;
}

[b-43j6gxrjp9] .report-status-pastdue {
    background: rgba(240,192,64,0.18);
    color: #b07a10;
}

[b-43j6gxrjp9] .report-status-canceled,
[b-43j6gxrjp9] .report-status-incomplete {
    background: rgba(122,132,153,0.18);
    color: #555;
}

/* Neutral badge tone for error-source labels — `.badge-pdf` is blue and reads
   as a PDF-template indicator everywhere else in the app, so reuse would be
   misleading on the errors tab. */
[b-43j6gxrjp9] .report-source-badge {
    background: #f0f0f0;
    color: #555;
}

/* ── Origin pills ─────────────────────────────────────────────────────────── */

.report-pill-row[b-43j6gxrjp9] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-pill[b-43j6gxrjp9] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 6px 14px;
}

.report-pill-label[b-43j6gxrjp9] {
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.report-pill-value[b-43j6gxrjp9] {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 700;
}

/* ── AI spend (Revenue) ───────────────────────────────────────────────── */

.ai-spend-flag[b-43j6gxrjp9] {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #B33C32;
}

.ai-spend-over[b-43j6gxrjp9] {
    color: #B33C32;
    font-weight: 600;
}

/* ── Sign-up funnel (User Activity) ────────────────────────────────────── */

.funnel[b-43j6gxrjp9] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funnel-row[b-43j6gxrjp9] {
    display: grid;
    grid-template-columns: 200px 1fr 64px 170px;
    align-items: center;
    gap: 12px;
}

.funnel-label[b-43j6gxrjp9] {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.funnel-footnote[b-43j6gxrjp9] {
    margin-top: 12px;
}

.funnel-drop[b-43j6gxrjp9] {
    font-size: 11px;
    font-weight: 600;
    color: #B33C32;
}

.funnel-track[b-43j6gxrjp9] {
    background: #f0f0f0;
    border-radius: 4px;
    height: 14px;
    overflow: hidden;
}

.funnel-bar[b-43j6gxrjp9] {
    background: #4A6B2E;
    height: 100%;
    border-radius: 4px;
}

.funnel-count[b-43j6gxrjp9] {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: right;
}

.funnel-rate[b-43j6gxrjp9] {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #555;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .report-grid[b-43j6gxrjp9],
    .report-chart-row[b-43j6gxrjp9] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-stats[b-43j6gxrjp9],
    .report-stats[b-43j6gxrjp9] {
        flex-direction: column;
    }

    .a-stat[b-43j6gxrjp9] {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }

    [b-43j6gxrjp9] .report-stat {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }

    [b-43j6gxrjp9] .report-stat-text {
        align-items: flex-end;
    }

    [b-43j6gxrjp9] .report-stat-label,
    [b-43j6gxrjp9] .report-stat-note,
    [b-43j6gxrjp9] .report-stat-change {
        text-align: right;
    }

    .chart-row[b-43j6gxrjp9] {
        flex-direction: column;
    }

    .chart-half[b-43j6gxrjp9] {
        flex: none;
    }

    .report-tab[b-43j6gxrjp9] {
        padding: 10px 12px;
        font-size: 13px;
    }

    .funnel-row[b-43j6gxrjp9] {
        grid-template-columns: 1fr auto;
        gap: 6px 12px;
    }

    .funnel-track[b-43j6gxrjp9],
    .funnel-rate[b-43j6gxrjp9] {
        grid-column: 1 / -1;
    }

    .funnel-track[b-43j6gxrjp9] {
        order: 3;
    }

    .funnel-rate[b-43j6gxrjp9] {
        order: 4;
    }
}
/* /Pages/Admin/Billing.razor.rz.scp.css */
/* ── Filters ────────────────────────────────────────────────────────────────── */

.filter-bar[b-e8shiw5uys] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-e8shiw5uys] .data-table { background: #fff; }

.table-row[b-e8shiw5uys] { transition: background 0.15s; }
.table-row:hover[b-e8shiw5uys] { background: #f8f8f8; }

.member-cell[b-e8shiw5uys] { display: flex; flex-direction: column; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge-plan[b-e8shiw5uys] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-active[b-e8shiw5uys] {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-suspended[b-e8shiw5uys] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Alerts ─────────────────────────────────────────────────────────────────── */

.alert[b-e8shiw5uys] {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-error[b-e8shiw5uys] {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success[b-e8shiw5uys] {
    background: #d1fae5;
    color: #065f46;
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */

.modal-overlay[b-e8shiw5uys] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    /* `safe center` falls back to start-aligned if the modal exceeds viewport,
       preventing the header from being clipped. Matches .checkout-overlay +
       .modal-backdrop so every modal pattern in the app behaves identically. */
    align-items: safe center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    /* max() with env(safe-area-inset-*) clears the iOS notch and home indicator
       and gives a tall modal scrollable breathing room top/bottom. */
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.modal[b-e8shiw5uys] {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-title[b-e8shiw5uys] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.modal-subtitle[b-e8shiw5uys] {
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 16px;
}

.modal-actions[b-e8shiw5uys] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* ── Form ───────────────────────────────────────────────────────────────────── */

.form-row[b-e8shiw5uys] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}


/* ── Pagination ─────────────────────────────────────────────────────────────── */

.pagination-bar[b-e8shiw5uys] {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* ── Account Overrides modal ─────────────────────────────────────────────────
   Used by the per-row "Overrides" modal on the admin Billing page. Layout
   moved here from UserDetail.razor.css when overrides were re-scoped from
   per-user to per-billing-account. */

.overrides-grid[b-e8shiw5uys] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.override-section-title[b-e8shiw5uys] {
    font-size: 11px;
    font-weight: 700;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0 4px;
}

.override-row[b-e8shiw5uys] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

    .override-row:last-child[b-e8shiw5uys] {
        border-bottom: none;
    }

.override-label[b-e8shiw5uys] {
    font-size: 13px;
    color: #1a1a2e;
    font-weight: 500;
}

.override-control[b-e8shiw5uys] {
    min-width: 180px;
}

@media (max-width: 768px) {
    .override-row[b-e8shiw5uys] { flex-direction: column; align-items: stretch; gap: 4px; }
    .override-control[b-e8shiw5uys] { min-width: 0; width: 100%; }
    /* Clear the fixed 52px .mobile-topbar (64px = bar + a 12px gap), as .modal-backdrop
       does, so the modal's header never starts in the bar's strip. */
    .modal-overlay[b-e8shiw5uys] {
        padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px max(16px, env(safe-area-inset-bottom));
    }
}
/* /Pages/Admin/Campaigns.razor.rz.scp.css */
/* ── Campaign list ──────────────────────────────────────────────────────────── */

/* Tags can be long and unbroken; wrap them instead of widening the table. */
.campaign-tags[b-c7drt56cou] {
    overflow-wrap: anywhere;
}
/* /Pages/Admin/Content.razor.rz.scp.css */
/* ── Stats ──────────────────────────────────────────────────────────────────── */

.content-stats[b-mwgb8wu5w8] {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card-sm[b-mwgb8wu5w8] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.stat-val[b-mwgb8wu5w8] {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-lbl[b-mwgb8wu5w8] {
    font-size: 10px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-green .stat-val[b-mwgb8wu5w8] { color: #059669; }
.stat-red .stat-val[b-mwgb8wu5w8] { color: #dc2626; }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */

.content-tabs[b-mwgb8wu5w8] {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.content-tab[b-mwgb8wu5w8] {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

    .content-tab:hover[b-mwgb8wu5w8] { color: #1a1a2e; }

    .content-tab.active[b-mwgb8wu5w8] {
        color: #4A6B2E;
        border-bottom-color: #4A6B2E;
        font-weight: 600;
    }

/* ── Filters ────────────────────────────────────────────────────────────────── */

.filter-bar[b-mwgb8wu5w8] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-mwgb8wu5w8] .data-table {
    background: #fff;
}

.table-row[b-mwgb8wu5w8] {
    transition: background 0.15s;
}

    .table-row:hover[b-mwgb8wu5w8] {
        background: #f8f8f8;
    }

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge-pdf[b-mwgb8wu5w8] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-email[b-mwgb8wu5w8] {
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-archived[b-mwgb8wu5w8] {
    background: #f0f0f0;
    color: #555;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    margin-left: 6px;
}

.badge-active[b-mwgb8wu5w8] {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-suspended[b-mwgb8wu5w8] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-processing[b-mwgb8wu5w8] {
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-pending[b-mwgb8wu5w8] {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-danger[b-mwgb8wu5w8] {
    background: #dc2626;
    color: #fff;
    border: none;
    cursor: pointer;
}

    .btn-danger:hover[b-mwgb8wu5w8] { background: #b91c1c; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .content-stats[b-mwgb8wu5w8] {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card-sm[b-mwgb8wu5w8] {
        flex: 1;
        min-width: 60px;
    }

    .filter-bar[b-mwgb8wu5w8] {
        flex-direction: column;
    }

    .filter-input[b-mwgb8wu5w8],
    .filter-search[b-mwgb8wu5w8] {
        width: 100%;
        min-width: auto;
    }
}
/* /Pages/Admin/JobDetail.razor.rz.scp.css */
/* ── Summary card (top of page, status + origin + progress at a glance) ──── */

.summary-card[b-koujxx058u] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.summary-grid[b-koujxx058u] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-cell[b-koujxx058u] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label[b-koujxx058u] {
    color: #6b6b6b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.summary-value[b-koujxx058u] {
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
}

.cancelling-hint[b-koujxx058u] {
    color: #6b6b6b;
    font-size: 11px;
    margin-top: 2px;
}

/* ── Live progress card ──────────────────────────────────────────────────── */

.progress-card[b-koujxx058u] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.progress-title[b-koujxx058u] {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.progress-track[b-koujxx058u] {
    height: 14px;
    border-radius: 7px;
    background: #f0f0f0;
    overflow: hidden;
}

.progress-fill[b-koujxx058u] {
    height: 100%;
    background: #4A6B2E;
    transition: width 300ms;
}

.progress-caption[b-koujxx058u] {
    color: #6b6b6b;
    font-size: 12px;
    margin-top: 6px;
}

/* ── Cancellation banner (warning, not error) ────────────────────────────── */

.cancellation-banner[b-koujxx058u] {
    background: #fff3cd;
    border: 1px solid #f0c040;
    color: #5a4500;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ── Back link in the page title ─────────────────────────────────────────── */

.back-link[b-koujxx058u] {
    color: #6b6b6b;
    text-decoration: none;
    margin-right: 6px;
}

    .back-link:hover[b-koujxx058u] {
        color: #4A6B2E;
    }
/* /Pages/Admin/Jobs.razor.rz.scp.css */
/* ── Filters ────────────────────────────────────────────────────────────────── */

.filter-bar[b-0iskihoion] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

/* Wider search input than the global default (240px) — Jobs filter bar
   has more horizontal room and a longer search query is common. */
.filter-search[b-0iskihoion] { min-width: 260px; }

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-0iskihoion] .data-table {
    background: #fff;
}

.table-row:hover[b-0iskihoion] {
    background: #f8f8f8;
}

/* Owner cell (name + muted email below) */
.owner-cell[b-0iskihoion] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-name[b-0iskihoion] {
    font-weight: 500;
    color: #1a1a2e;
    font-size: 13px;
}

.owner-email[b-0iskihoion] {
    font-size: 12px;
    color: #6b6b6b;
}

/* Bulk-actions bar sits above the table when rows are selected */
.bulk-bar[b-0iskihoion] {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #E5EDD8;
    border: 1px solid #4A6B2E;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
}

.bulk-bar-actions[b-0iskihoion] {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* Small "Cancelling..." hint that slots under the status badge while a cancel is honored */
.cancelling-hint[b-0iskihoion] {
    color: #6b6b6b;
    font-size: 11px;
    margin-top: 2px;
}

/* Checkbox column */
.col-check[b-0iskihoion] {
    width: 32px;
}

/* Origin link under the badge (clicking jumps to the schedule's admin page) */
.origin-sub[b-0iskihoion] {
    margin-top: 2px;
    font-size: 12px;
}

    .origin-sub a[b-0iskihoion] {
        color: #4A6B2E;
        text-decoration: none;
    }

        .origin-sub a:hover[b-0iskihoion] {
            text-decoration: underline;
        }
/* /Pages/Admin/Messages.razor.rz.scp.css */
/* ── Stats ──────────────────────────────────────────────────────────────────── */

.content-stats[b-mie0o48itj] {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card-sm[b-mie0o48itj] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.stat-val[b-mie0o48itj] {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-lbl[b-mie0o48itj] {
    font-size: 10px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-green .stat-val[b-mie0o48itj] { color: #059669; }
.stat-red .stat-val[b-mie0o48itj] { color: #dc2626; }

/* ── Filters ────────────────────────────────────────────────────────────────── */

.filter-bar[b-mie0o48itj] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-mie0o48itj] .data-table { background: #fff; }

.table-row[b-mie0o48itj] { transition: background 0.15s; }
.table-row:hover[b-mie0o48itj] { background: #f8f8f8; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge-info[b-mie0o48itj] {
    background: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-warning[b-mie0o48itj] {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-maintenance[b-mie0o48itj] {
    background: #fef2f2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-active[b-mie0o48itj] {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-archived[b-mie0o48itj] {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Alerts ─────────────────────────────────────────────────────────────────── */

.alert[b-mie0o48itj] {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-error[b-mie0o48itj] {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success[b-mie0o48itj] {
    background: #d1fae5;
    color: #065f46;
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */

.modal-overlay[b-mie0o48itj] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    /* `safe center` — see Admin/Billing.razor.css for the reasoning. Keeping
       all .modal-overlay declarations identical across admin pages. */
    align-items: safe center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.modal[b-mie0o48itj] {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    width: 560px;
    max-width: 92vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-title[b-mie0o48itj] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.modal-subtitle[b-mie0o48itj] {
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 16px;
}

.modal-actions[b-mie0o48itj] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* ── Form ───────────────────────────────────────────────────────────────────── */

.form-row[b-mie0o48itj] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.form-row-pair[b-mie0o48itj] {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

    /* min-width: 0 lets flex children shrink below their intrinsic min-content
       — required because <input type="datetime-local"> has a chunky native
       picker whose min-content keeps each column from shrinking to fit a
       narrower modal, which made the right-hand date overflow. */
    .form-row-pair .form-row[b-mie0o48itj] {
        flex: 1 1 0;
        min-width: 0;
    }


/* Checkbox rows use the global .form-check — this page had its own near-copy
   of it, which drifted a size and a colour away from every other form. */

/* ── Quill Editor ──────────────────────────────────────────────────────────── */

.quill-editor-container[b-mie0o48itj] {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-height: 120px;
    background: #fff;
}

    .quill-editor-container:focus-within[b-mie0o48itj] {
        border-color: #4A6B2E;
        box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.12);
    }

.btn-danger[b-mie0o48itj] {
    background: #dc2626;
    color: #fff;
    border: none;
    cursor: pointer;
}

    .btn-danger:hover[b-mie0o48itj] { background: #b91c1c; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .content-stats[b-mie0o48itj] {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card-sm[b-mie0o48itj] {
        flex: 1;
        min-width: 60px;
    }

    .filter-bar[b-mie0o48itj] {
        flex-direction: column;
    }

    .filter-input[b-mie0o48itj],
    .filter-search[b-mie0o48itj] {
        width: 100%;
        min-width: auto;
    }

    .form-row-pair[b-mie0o48itj] {
        flex-direction: column;
    }

    /* Clear the fixed 52px .mobile-topbar (64px = bar + a 12px gap), as .modal-backdrop
       does, so the modal's header never starts in the bar's strip. */
    .modal-overlay[b-mie0o48itj] {
        padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px max(16px, env(safe-area-inset-bottom));
    }
}
/* /Pages/Admin/Notices.razor.rz.scp.css */
/* ── Compliance Cards ───────────────────────────────────────── */

.notice-compliance-grid[b-0ht0ntkqro] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.notice-compliance-card[b-0ht0ntkqro] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* A breach is the one state on this page that has to survive a glance, so it gets the
   left border rather than only a badge. */
.notice-compliance-card--breach[b-0ht0ntkqro] {
    border-left: 3px solid #B33C32;
}

.notice-compliance-head[b-0ht0ntkqro] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.notice-compliance-kind[b-0ht0ntkqro] {
    font-weight: 600;
    color: #1a1a2e;
}

.notice-compliance-text[b-0ht0ntkqro] {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 10px;
}

.notice-fingerprints[b-0ht0ntkqro] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12px;
    color: #6b6b6b;
}

.notice-fingerprints code[b-0ht0ntkqro] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1px 5px;
    color: #1a1a2e;
}

.notice-compliance-actions[b-0ht0ntkqro] {
    margin-top: 12px;
}

/* ── Form Hints ─────────────────────────────────────────────── */

.form-hint[b-0ht0ntkqro] {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.45;
    margin-top: 5px;
}

.form-hint code[b-0ht0ntkqro] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1px 5px;
    color: #1a1a2e;
}

@media (max-width: 1024px) {
    .notice-compliance-grid[b-0ht0ntkqro] { grid-template-columns: 1fr; }
}

/* Mirrors the per-page rule the other admin pages carry; the compliance "Action needed"
   badge and the Withdrawn status are the two red states on this page. */
.badge-suspended[b-0ht0ntkqro] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}
/* /Pages/Admin/Operations.razor.rz.scp.css */
/* ── Page header — Auto-refresh checkbox ─────────────────────────── */

/* Wraps the checkbox so it visually matches the .btn .btn-outline sitting
   next to it — same min-height, padding, border, border-radius, typography,
   colours, and hover treatment. Without this the default filter-input wrapper
   sits 4-6 px shorter than the Refresh button, leaving an obvious lip in the
   header-actions row. */
.auto-refresh-toggle[b-8t7rwrsplo] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    background: #fff;
    color: #555;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.15s;
}

    .auto-refresh-toggle:hover[b-8t7rwrsplo] {
        background: #f8f8f8;
        color: #1a1a2e;
        border-color: #b0b0b0;
    }

    .auto-refresh-toggle input[type="checkbox"][b-8t7rwrsplo] {
        margin: 0;
        cursor: pointer;
    }

/* ── "Last refreshed" meta row ─────────────────────────────────────── */

/* Compact pill instead of a free-standing paragraph — pairs the absolute
   time with the relative hint so admins see how stale the data is at a
   glance. No live-status dot: the explicit "Auto-refresh" checkbox in
   the header is the source of truth for whether polling is running. */
.ops-meta[b-8t7rwrsplo] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: 12px;
}

.ops-meta-label[b-8t7rwrsplo] {
    color: #6b6b6b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ops-meta-value[b-8t7rwrsplo] {
    color: #1a1a2e;
    font-weight: 600;
}

.ops-meta-rel[b-8t7rwrsplo] {
    color: #6b6b6b;
}

/* ── Health-alert banners ────────────────────────────────────────── */

/* Only renders when BuildAlerts() returns at least one item, so the
   common all-green case stays uncluttered. Severity colours follow
   the project's #B33C32 (danger) / #f0c040 (warning) palette. */
.ops-alerts[b-8t7rwrsplo] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.ops-alert[b-8t7rwrsplo] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid;
}

.ops-alert-danger[b-8t7rwrsplo] {
    background: #fff5f5;
    border-color: #B33C32;
    color: #8a1f25;
}

.ops-alert-warning[b-8t7rwrsplo] {
    background: #fff5e0;
    border-color: #f0c040;
    color: #6a4a10;
}

.ops-alert-icon[b-8t7rwrsplo] {
    display: inline-flex;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.ops-alert-body[b-8t7rwrsplo] {
    flex: 1;
    min-width: 0;
}

.ops-alert-title[b-8t7rwrsplo] {
    font-weight: 600;
    margin-bottom: 2px;
}

.ops-alert-detail[b-8t7rwrsplo] {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.85;
}

/* ── Two-column detail grid ──────────────────────────────────────── */

/* Replaces the previous three stacked detail-panels with a 2-up grid:
   Gotenberg saturation meter (visual) on the left, queue table (data)
   on the right. Collapses to single-column at tablet width. */
.ops-grid[b-8t7rwrsplo] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .ops-grid[b-8t7rwrsplo] {
        grid-template-columns: 1fr;
    }
}

/* .detail-panel itself isn't in app.css — every page that uses it owns its
   own scoped rule (UserDetail.razor.css, Workspaces.razor.css). Match that
   convention here so the Gotenberg + Queue panels render with a real card
   background instead of floating naked on the page bg. */
.detail-panel[b-8t7rwrsplo] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* .panel-title is also a per-page scoped class. Mirror the project's
   standard typography for it: small uppercase label sitting above a
   thin divider rule that separates the title from the body content. */
.panel-title[b-8t7rwrsplo] {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.ops-panel-body[b-8t7rwrsplo] {
    padding-top: 16px;
}

/* Saturation meter wrapper — give the meter some vertical room so it
   sits centered against the keyvals below instead of hugging the title. */
.ops-meter-wrap[b-8t7rwrsplo] {
    margin: 0 0 14px;
}

/* Key/value pairs (Circuit / Cap source) — keeps the panel from
   looking sparse without dumping more meters into it. */
.ops-keyvals[b-8t7rwrsplo] {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 14px;
    margin: 0;
    font-size: 13px;
}

    .ops-keyvals dt[b-8t7rwrsplo] {
        color: #6b6b6b;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 11px;
        align-self: center;
    }

    .ops-keyvals dd[b-8t7rwrsplo] {
        margin: 0;
        color: #1a1a2e;
        align-self: center;
    }

    .ops-keyvals dd code[b-8t7rwrsplo] {
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        background: #f0f0f0;
        padding: 2px 6px;
        border-radius: 3px;
    }

/* ── Document job queue grid (Pending / Processing / Scheduled) ──── */

/* Three-up mini-card grid inside the queue panel. Replaces the prior
   data-table that visually floated against the panel border — the cells
   are flush with the panel's interior and share its rounded corners. */
.ops-queue-grid[b-8t7rwrsplo] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 640px) {
    .ops-queue-grid[b-8t7rwrsplo] {
        grid-template-columns: 1fr;
    }
}

.ops-queue-cell[b-8t7rwrsplo] {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    min-width: 0;
}

.ops-queue-label[b-8t7rwrsplo] {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.ops-queue-value[b-8t7rwrsplo] {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 6px;
}

.ops-queue-note[b-8t7rwrsplo] {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.4;
}
/* /Pages/Admin/Quartz.razor.rz.scp.css */
/* ── Tabs ──────────────────────────────────────────────────────────────────── */

.quartz-tabs[b-5hbwo4qxu6] {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quartz-tabs[b-5hbwo4qxu6]::-webkit-scrollbar { display: none; }

.quartz-tab[b-5hbwo4qxu6] {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s, border-color 0.15s;
}

.quartz-tab:hover[b-5hbwo4qxu6] { color: #1a1a2e; }

.quartz-tab.active[b-5hbwo4qxu6] {
    color: #4A6B2E;
    border-bottom-color: #4A6B2E;
}

.quartz-tab-count[b-5hbwo4qxu6] {
    background: #f0f0f0;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 999px;
}

.quartz-tab.active .quartz-tab-count[b-5hbwo4qxu6] {
    background: #E5EDD8;
    color: #4A6B2E;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-5hbwo4qxu6] .data-table { background: #fff; }

[b-5hbwo4qxu6] .table-row:hover { background: #f8f8f8; }

/* ── Section heading (Jobs tab — User schedules vs System jobs) ──────────── */

[b-5hbwo4qxu6] .quartz-section-heading {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

/* ── Class group (unified Jobs view — type header + instance table) ─────── */

[b-5hbwo4qxu6] .quartz-class-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

[b-5hbwo4qxu6] .quartz-class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

[b-5hbwo4qxu6] .quartz-class-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

[b-5hbwo4qxu6] .quartz-class-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

[b-5hbwo4qxu6] .quartz-class-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
}

[b-5hbwo4qxu6] .quartz-class-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* The class group already provides its own card border + bottom-margin; cancel the
   table-wrapper's default top spacing so the table butts cleanly against the header. */
[b-5hbwo4qxu6] .quartz-class-group .table-wrapper {
    margin: 0;
}

[b-5hbwo4qxu6] .quartz-class-group .data-table {
    border-radius: 0;
}

[b-5hbwo4qxu6] .quartz-class-empty {
    padding: 18px 20px;
    text-align: center;
}

@media (max-width: 600px) {
    [b-5hbwo4qxu6] .quartz-class-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    [b-5hbwo4qxu6] .quartz-class-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ── Detail modal ──────────────────────────────────────────────────────────── */

[b-5hbwo4qxu6] .detail-section {
    margin-bottom: 24px;
}

[b-5hbwo4qxu6] .detail-section:last-child { margin-bottom: 0; }

[b-5hbwo4qxu6] .detail-heading {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[b-5hbwo4qxu6] .detail-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 16px;
    margin: 0;
    font-size: 13px;
}

[b-5hbwo4qxu6] .detail-grid dt {
    color: #555;
    font-weight: 600;
    margin: 0;
}

[b-5hbwo4qxu6] .detail-grid dd {
    color: #1a1a2e;
    margin: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 0;
}

[b-5hbwo4qxu6] .detail-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 6px;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
}

[b-5hbwo4qxu6] .run-error {
    color: #b03030;
    font-size: 12px;
    max-width: min(320px, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    [b-5hbwo4qxu6] .detail-grid {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }
    [b-5hbwo4qxu6] .detail-grid dd { margin-bottom: 8px; }
}
/* /Pages/Admin/ScheduleEdit.razor.rz.scp.css */
/* ── Run history ──────────── */
/* Clear of the editor's Save button above it, the way two cards on a page are spaced. */
.schedule-runs[b-x1kem3zjz8] {
    margin-top: 32px;
}

@media (max-width: 768px) {
    .schedule-runs[b-x1kem3zjz8] { margin-top: 24px; }
}
/* /Pages/Admin/Schedules.razor.rz.scp.css */
/* ── Filters ────────────────────────────────────────────────────────────────── */

.filter-bar[b-s8207xtr5w] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

/* Wider search input than the global default (240px) — see Jobs.razor.css. */
.filter-search[b-s8207xtr5w] { min-width: 260px; }

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-s8207xtr5w] .data-table {
    background: #fff;
}

.table-row:hover[b-s8207xtr5w] {
    background: #f8f8f8;
}

/* Owner cell (name + muted email below) */
.owner-cell[b-s8207xtr5w] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-name[b-s8207xtr5w] {
    font-weight: 500;
    color: #1a1a2e;
    font-size: 13px;
}

.owner-email[b-s8207xtr5w] {
    font-size: 12px;
    color: #6b6b6b;
}

/* /Pages/Admin/Tickets.razor.rz.scp.css */
/* Re-use the same ticket-thread / ticket-message styling the user-side
   /support page uses, but locally scope the admin-only "internal note"
   visual treatment so it stands out in the staff view. */

.ticket-meta-row[b-8oyzmwcfd9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 8px;
}

/* Ticket status labels include multi-word values ("Awaiting User",
   "Awaiting Support") that, with the project's UPPERCASE letter-spacing,
   are long enough to wrap inside the badge's pill in a narrow column —
   distorting the rounded shape and pushing the row taller. Keep every
   badge in the queue table + modal meta-row on a single line. Scoped
   via ::deep so it reaches the global .badge class only inside this
   component, leaving badges elsewhere unaffected. */
[b-8oyzmwcfd9] .badge {
    white-space: nowrap;
}

.ticket-thread[b-8oyzmwcfd9] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.ticket-message[b-8oyzmwcfd9] {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
}

.ticket-message-staff[b-8oyzmwcfd9] {
    background: #E5EDD8;
    border-color: #bcdcfb;
}

.ticket-message-user[b-8oyzmwcfd9] {
    background: #fff;
}

.ticket-message-internal[b-8oyzmwcfd9] {
    background: #fff8e1;
    border-color: #f0c040;
}

.ticket-message-header[b-8oyzmwcfd9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.ticket-message-body[b-8oyzmwcfd9] {
    font-size: 13px;
    color: #1a1a2e;
    line-height: 1.55;
}

/* Four triage dropdowns (status / priority / category / assignee). On wide
   viewports they sit on one row with equal share; on tablet they wrap to
   2-up, and on mobile they stack so each label stays readable beside its
   select. */
.admin-ticket-controls[b-8oyzmwcfd9] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .admin-ticket-controls[b-8oyzmwcfd9] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .admin-ticket-controls[b-8oyzmwcfd9] {
        grid-template-columns: 1fr;
    }
}

.ticket-reply-box[b-8oyzmwcfd9] {
    margin-top: 4px;
}

/* Per-page badge-suspended — used for the Closed status and Urgent priority. */
.badge-suspended[b-8oyzmwcfd9] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Attachments ────────────────────────────────────────────── */

.attachment-pending-list[b-8oyzmwcfd9] {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

    .attachment-pending-list li[b-8oyzmwcfd9] {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        margin-bottom: 6px;
    }

.attachment-icon[b-8oyzmwcfd9] {
    display: inline-flex; align-items: center;
    line-height: 1;
}

.attachment-name[b-8oyzmwcfd9] {
    flex: 1;
    font-size: 13px;
    color: #1a1a2e;
    word-break: break-all;
}

.attachment-size[b-8oyzmwcfd9] { flex-shrink: 0; }

.attachment-remove[b-8oyzmwcfd9] {
    background: none;
    border: none;
    color: #6b6b6b;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    line-height: 1;
}

    .attachment-remove:hover[b-8oyzmwcfd9] { color: #B33C32; }

.attachment-chip-list[b-8oyzmwcfd9] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.attachment-chip[b-8oyzmwcfd9] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    color: #1a1a2e;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .attachment-chip:hover[b-8oyzmwcfd9] {
        border-color: #4A6B2E;
        box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.12);
    }

    .attachment-chip .attachment-name[b-8oyzmwcfd9] {
        flex: 0 1 auto;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
/* /Pages/Admin/UserDetail.razor.rz.scp.css */
/* ── Back link ──────────────────────────────────────────────────────────────── */

.back-link[b-t6qr76orxs] {
    font-size: 13px;
    color: #4A6B2E;
    text-decoration: none;
    margin-bottom: 4px;
    display: inline-block;
}

    .back-link:hover[b-t6qr76orxs] {
        text-decoration: underline;
    }

.header-badges[b-t6qr76orxs] {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Stats ──────────────────────────────────────────────────────────────────── */

.user-stats[b-t6qr76orxs] {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card[b-t6qr76orxs] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 20px;
    min-width: 120px;
    text-align: center;
}

.stat-value[b-t6qr76orxs] {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-label[b-t6qr76orxs] {
    font-size: 11px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ── Panels ─────────────────────────────────────────────────────────────────── */

.detail-panel[b-t6qr76orxs] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.panel-title[b-t6qr76orxs] {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

/* ── Edit form ──────────────────────────────────────────────────────────────── */

.edit-form[b-t6qr76orxs] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.form-row[b-t6qr76orxs] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.form-actions[b-t6qr76orxs] {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* ── Action buttons ─────────────────────────────────────────────────────────── */

.action-buttons[b-t6qr76orxs] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-danger[b-t6qr76orxs] {
    background: #dc2626;
    color: #fff;
    border: none;
    cursor: pointer;
}

    .btn-danger:hover[b-t6qr76orxs] {
        background: #b91c1c;
    }

.btn-success[b-t6qr76orxs] {
    background: #059669;
    color: #fff;
    border: none;
    cursor: pointer;
}

    .btn-success:hover[b-t6qr76orxs] {
        background: #047857;
    }

/* ── Alerts ─────────────────────────────────────────────────────────────────── */

.alert[b-t6qr76orxs] {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 12px;
}

.alert-error[b-t6qr76orxs] {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success[b-t6qr76orxs] {
    background: #d1fae5;
    color: #065f46;
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */

.modal-overlay[b-t6qr76orxs] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    /* `safe center` — see Admin/Billing.razor.css for the reasoning. */
    align-items: safe center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.modal[b-t6qr76orxs] {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-title[b-t6qr76orxs] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.modal-actions[b-t6qr76orxs] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge-admin[b-t6qr76orxs] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-active[b-t6qr76orxs] {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-suspended[b-t6qr76orxs] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-audit[b-t6qr76orxs] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Activity ──────────────────────────────────────────────────────────────── */

.activity-list[b-t6qr76orxs] {
    display: flex;
    flex-direction: column;
}

.activity-item[b-t6qr76orxs] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .activity-item:last-child[b-t6qr76orxs] {
        border-bottom: none;
    }

.activity-action[b-t6qr76orxs] {
    display: flex;
    gap: 8px;
    align-items: center;
    /* Long descriptions wrap rather than overflow into the time column. */
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

    .activity-action > span:not(.badge)[b-t6qr76orxs] {
        word-break: break-word;
    }

.activity-time[b-t6qr76orxs] {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Mobile: stack action and time so neither gets squished. */
@media (max-width: 600px) {
    .activity-item[b-t6qr76orxs] {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .activity-action[b-t6qr76orxs] {
        width: 100%;
    }
}

/* Feature Overrides moved to admin Billing — see Billing.razor.css. */

/* ── Sign-up source ─────────────────────────────────────────────────────────── */

.source-list[b-t6qr76orxs] {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-row[b-t6qr76orxs] {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    font-size: 14px;
}

.source-row dt[b-t6qr76orxs] {
    color: #555;
}

.source-row dd[b-t6qr76orxs] {
    margin: 0;
    color: #1a1a2e;
    overflow-wrap: anywhere;
}

.source-note[b-t6qr76orxs] {
    margin: 12px 0 0;
}

.source-note-only[b-t6qr76orxs] {
    margin: 0;
}


/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Clear the fixed 52px .mobile-topbar (64px = bar + a 12px gap), as .modal-backdrop
       does, so the modal's header never starts in the bar's strip. */
    .modal-overlay[b-t6qr76orxs] {
        padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px max(16px, env(safe-area-inset-bottom));
    }

    .user-stats[b-t6qr76orxs] {
        flex-direction: column;
    }

    .source-row[b-t6qr76orxs] {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .stat-card[b-t6qr76orxs] {
        flex-direction: row;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        min-width: auto;
    }

    /* .action-buttons keeps its base `display: flex; flex-wrap: wrap` so the
       buttons sit side-by-side and wrap to the next line when they don't
       fit, instead of stacking one-per-row in a tall column. */
}

/* Page-scoped toast CSS removed — replaced by the global IToastService +
   ToastContainer mounted in MainLayout. */
/* /Pages/Admin/Users.razor.rz.scp.css */
/* ── Filters ────────────────────────────────────────────────────────────────── */

.user-filters[b-vs8r6xzprm] {
    margin-bottom: 20px;
}

.filter-group[b-vs8r6xzprm] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Wider search input than the global default (240px) — see Jobs.razor.css. */
.filter-search[b-vs8r6xzprm] { min-width: 260px; }

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-vs8r6xzprm] .data-table {
    background: #fff;
}

.table-row[b-vs8r6xzprm] {
    cursor: pointer;
    transition: background 0.15s;
}

    .table-row:hover[b-vs8r6xzprm] {
        background: #f8f8f8;
    }

/* ── User cell ──────────────────────────────────────────────────────────────── */

.user-cell[b-vs8r6xzprm] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar[b-vs8r6xzprm] {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-info[b-vs8r6xzprm] {
    display: flex;
    flex-direction: column;
}

.user-name[b-vs8r6xzprm] {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
}

.user-email[b-vs8r6xzprm] {
    font-size: 12px;
    color: #6b6b6b;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge-admin[b-vs8r6xzprm] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-user[b-vs8r6xzprm] {
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.badge-active[b-vs8r6xzprm] {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-suspended[b-vs8r6xzprm] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Anonymized ("deleted") accounts. Deliberately grey rather than red so it
   reads as "gone", not "in trouble" like Suspended. */
.badge-deleted[b-vs8r6xzprm] {
    background: #e8e8e8;
    color: #555;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .filter-group[b-vs8r6xzprm] {
        flex-direction: column;
    }

    .filter-input[b-vs8r6xzprm],
    .filter-search[b-vs8r6xzprm] {
        width: 100%;
        min-width: auto;
    }
}
/* /Pages/Admin/Workspaces.razor.rz.scp.css */
/* ── Filters ────────────────────────────────────────────────────────────────── */

.filter-bar[b-4jz7tionhl] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}


/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-4jz7tionhl] .data-table { background: #fff; }

.table-row[b-4jz7tionhl] { cursor: pointer; transition: background 0.15s; }
.table-row:hover[b-4jz7tionhl] { background: #f8f8f8; }

.member-cell[b-4jz7tionhl] { display: flex; flex-direction: column; }

/* No .table-actions override here — setting display:flex on a <td> drops it out
   of the table-cell layout and offsets its bottom border from the rest of the
   row. .btn already uses display:inline-flex so buttons sit side-by-side with
   natural whitespace spacing, matching every other list page (Schedules,
   Datasets, Jobs). */

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge-plan[b-4jz7tionhl] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-role[b-4jz7tionhl] {
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ── Detail ─────────────────────────────────────────────────────────────────── */

.back-link[b-4jz7tionhl] {
    font-size: 13px;
    color: #4A6B2E;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 4px;
}

    .back-link:hover[b-4jz7tionhl] { text-decoration: underline; }

.header-badges[b-4jz7tionhl] { display: flex; gap: 8px; align-items: center; }

.workspace-stats[b-4jz7tionhl] {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.t-stat[b-4jz7tionhl] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.t-val[b-4jz7tionhl] { font-size: 18px; font-weight: 700; color: #1a1a2e; }
.t-lbl[b-4jz7tionhl] { font-size: 10px; color: #6b6b6b; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Panels ─────────────────────────────────────────────────────────────────── */

.detail-panel[b-4jz7tionhl] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.panel-title[b-4jz7tionhl] {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.panel-header[b-4jz7tionhl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

    .panel-header .panel-title[b-4jz7tionhl] {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.edit-form[b-4jz7tionhl] { display: flex; flex-direction: column; gap: 12px; max-width: 500px; }
.form-row[b-4jz7tionhl] { display: flex; flex-direction: column; gap: 4px; }


.detail-panel .form-input[b-4jz7tionhl] {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    width: 100%;
}

    .detail-panel .form-input:focus[b-4jz7tionhl] {
        outline: none;
        border-color: #4A6B2E;
        box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.12);
    }

.form-actions[b-4jz7tionhl] { display: flex; gap: 8px; margin-top: 4px; align-items: center; }

/* Save button has min-height:40px (.btn); the inline hint uses 13px text and would
   sit on the baseline by default. align-items:center on the row keeps the hint
   visually centered with the button. */
.primary-cant-delete-hint[b-4jz7tionhl] { line-height: 1.2; }
.form-input-sm[b-4jz7tionhl] { padding: 5px 10px; font-size: 13px; }

.alert[b-4jz7tionhl] { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-top: 12px; }
.alert-error[b-4jz7tionhl] { background: #fee2e2; color: #991b1b; }
.alert-success[b-4jz7tionhl] { background: #d1fae5; color: #065f46; }

.btn-danger[b-4jz7tionhl] { background: #dc2626; color: #fff; border: none; cursor: pointer; }
.btn-danger:hover[b-4jz7tionhl] { background: #b91c1c; }

/* ── Add member ─────────────────────────────────────────────────────────────── */

.add-member-row[b-4jz7tionhl] {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

    .add-member-row .form-input[b-4jz7tionhl] {
        padding: 8px 12px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-size: 14px;
        color: #1a1a2e;
        background: #fff;
    }

        .add-member-row .form-input:focus[b-4jz7tionhl] {
            outline: none;
            border-color: #4A6B2E;
            box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.12);
        }

/* ── Modal ──────────────────────────────────────────────────────────────────── */

.modal-overlay[b-4jz7tionhl] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    /* `safe center` — see Admin/Billing.razor.css for the reasoning. */
    align-items: safe center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.modal[b-4jz7tionhl] {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-title[b-4jz7tionhl] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.modal-actions[b-4jz7tionhl] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .filter-bar[b-4jz7tionhl] { flex-direction: column; }
    .filter-input[b-4jz7tionhl], .filter-search[b-4jz7tionhl] { width: 100%; min-width: auto; }
    .workspace-stats[b-4jz7tionhl] { flex-direction: column; }
    .add-member-row[b-4jz7tionhl] { flex-direction: column; }
    /* Clear the fixed 52px .mobile-topbar (64px = bar + a 12px gap), as .modal-backdrop
       does, so the modal's header never starts in the bar's strip. */
    .modal-overlay[b-4jz7tionhl] {
        padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px max(16px, env(safe-area-inset-bottom));
    }
}
/* /Pages/Billing.razor.rz.scp.css */
/* ── Status Banners ────────────────────────────────────────────────────────── */

.billing-warning[b-z3z5x74g1c] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.billing-warning svg[b-z3z5x74g1c] { flex-shrink: 0; margin-top: 1px; color: #f59e0b; }

.billing-info[b-z3z5x74g1c] {
    display: flex;
    /* `center` (not flex-start) so the icon vertically aligns with the CENTER of
       the message — works for both single-line notices ("Subscription has been
       canceled") and the scheduled-cancellation banner whose .banner-text grows
       to ~32px because of the inline Reactivate button. With flex-start the icon
       sat ~5px above the visible text baseline once the button stretched the
       inner box. The 1px margin-top nudge that flex-start needed for baseline
       alignment is dropped — center handles it without the hack. */
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.billing-info svg[b-z3z5x74g1c] { flex-shrink: 0; color: #3b82f6; }

/* Banner row that lays out text + an inline action button alongside each other,
   vertically centered. Used by the scheduled-cancellation banner so the
   Reactivate button doesn't dangle below the message — and so the icon's
   margin-top:1px lines up with the centerline of the text rather than the top
   edge of a wrapped block. Wraps to a column on narrow viewports so the button
   doesn't get pushed off-screen. */
.banner-text[b-z3z5x74g1c] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

/* ── Billing Cards ──────────────────────────────────────────────────────────── */

.billing-cards[b-z3z5x74g1c] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.billing-card[b-z3z5x74g1c] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

/* ── Usage by job ──────────── */
.usage-breakdown[b-z3z5x74g1c] {
    margin-top: 24px;
}

/* The whole header row is the toggle, so it's an easy target on mobile too. */
.usage-breakdown-toggle[b-z3z5x74g1c] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

/* Scoped under the toggle so it outranks .billing-card-header's margin, which is
   declared later; the toggle's own margin handles the gap when expanded. */
.usage-breakdown-toggle .usage-breakdown-title[b-z3z5x74g1c] {
    margin-bottom: 0;
}

.usage-breakdown-chevron[b-z3z5x74g1c] {
    display: inline-flex;
    color: #6b6b6b;
    transition: transform 0.15s ease;
}

.usage-breakdown-chevron-open[b-z3z5x74g1c] {
    transform: rotate(180deg);
}

.usage-breakdown-toggle[aria-expanded="true"][b-z3z5x74g1c] {
    margin-bottom: 12px;
}

.usage-breakdown-intro[b-z3z5x74g1c] {
    margin: 0 0 12px;
}

.usage-col-counted[b-z3z5x74g1c] {
    text-align: right;
}

.usage-job-link[b-z3z5x74g1c] {
    color: #4A6B2E;
    text-decoration: none;
}

.usage-job-link:hover[b-z3z5x74g1c] {
    text-decoration: underline;
}

.billing-card-header[b-z3z5x74g1c] {
    font-size: 13px;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Account-limits grid: 2-up on desktop, single column on mobile so values stay readable. */
.account-limits-grid[b-z3z5x74g1c] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
}

.account-limit-row[b-z3z5x74g1c] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    gap: 12px;
}

.account-limit-label[b-z3z5x74g1c] {
    font-size: 13px;
    color: #555;
}

.account-limit-value[b-z3z5x74g1c] {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    font-family: 'JetBrains Mono', monospace;
}

.plan-name[b-z3z5x74g1c] {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.plan-status[b-z3z5x74g1c] { margin-bottom: 8px; }

.plan-detail[b-z3z5x74g1c] {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}

.plan-actions[b-z3z5x74g1c] {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.balance-value[b-z3z5x74g1c] {
    font-size: 40px;
    font-weight: 700;
    color: #4A6B2E;
    line-height: 1.1;
}

.balance-label[b-z3z5x74g1c] {
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 12px;
}

.balance-breakdown[b-z3z5x74g1c] {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.balance-pool[b-z3z5x74g1c] {
    display: flex;
    flex-direction: column;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 8px 14px;
    flex: 1;
}

.balance-pool-value[b-z3z5x74g1c] {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.balance-pool-label[b-z3z5x74g1c] {
    font-size: 11px;
    color: #6b6b6b;
}

.balance-stats[b-z3z5x74g1c] {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b6b6b;
}

/* ── Usage bars (This Period) ─────────────────────────────────────────────── */
/* The card's markup had these classes with no rules behind them, so each meter
   rendered as a bare line of text and the fill colour (red from 90%) never showed. */
.usage-row[b-z3z5x74g1c] {
    margin-bottom: 14px;
}

.usage-row-header[b-z3z5x74g1c] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.usage-row-label[b-z3z5x74g1c] {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.usage-row-value[b-z3z5x74g1c] {
    font-size: 14px;
    color: #555;
    font-variant-numeric: tabular-nums;
}

.usage-bar[b-z3z5x74g1c] {
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    overflow: hidden;
}

.usage-bar-fill[b-z3z5x74g1c] {
    height: 100%;
    border-radius: 4px;
}

/* Pack balance lines under the Documents bar — the bar itself is the allowance only. */
.usage-row-note[b-z3z5x74g1c] {
    font-size: 13px;
    color: #6b6b6b;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

.usage-from-packs[b-z3z5x74g1c] {
    font-weight: 400;
}

/* ── Document Packs ──────────── */
/* The same spacing as the Plans heading row above it. Doubled up to outrank
   .section-heading's own margin, which comes later in this file. */
.section-heading.packs-heading[b-z3z5x74g1c] {
    margin: 24px 0 20px;
}

/* Heading on the left, the pack balance on the right, like Plans and its interval toggle. */
.packs-head[b-z3z5x74g1c] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
}

.packs-head .section-heading[b-z3z5x74g1c] {
    margin: 0;
}

/* Plain inline text, so on a phone it wraps mid-sentence instead of starting a line with "·". */
.packs-balance[b-z3z5x74g1c] {
    font-size: 13px;
    color: #555;
    font-variant-numeric: tabular-nums;
}

.packs-balance strong[b-z3z5x74g1c] {
    color: #1a1a2e;
}

.packs-balance-icon[b-z3z5x74g1c] {
    display: inline-flex;
    vertical-align: -2px;
    color: #4A6B2E;
    margin-right: 6px;
}

.packs-notice p[b-z3z5x74g1c] {
    margin: 0;
}

.packs-cancel-note[b-z3z5x74g1c] {
    margin-bottom: 16px;
}

/* One card per size, laid out like the tier cards above. */
.packs-grid[b-z3z5x74g1c] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pack-card[b-z3z5x74g1c] {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.pack-card-best[b-z3z5x74g1c] {
    border-color: #4A6B2E;
    box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.15);
}

.pack-card-flag[b-z3z5x74g1c] {
    position: absolute;
    top: -11px;
    left: 20px;
    background: #4A6B2E;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 3px 10px;
    border-radius: 100px;
}

.pack-card-icon[b-z3z5x74g1c] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #E5EDD8;
    color: #4A6B2E;
    margin-bottom: 14px;
}

.pack-card-docs[b-z3z5x74g1c] {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.pack-card-docs span[b-z3z5x74g1c] {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.pack-card-price[b-z3z5x74g1c] {
    margin: 10px 0 2px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.pack-card-rate[b-z3z5x74g1c] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #6b6b6b;
    font-variant-numeric: tabular-nums;
}

.pack-card-save[b-z3z5x74g1c] {
    background: #E5EDD8;
    color: #3B5525;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}

/* Wraps the Buy button under the stepper when a card is too narrow for both (tablet widths). */
.pack-card-actions[b-z3z5x74g1c] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.pack-card-buy[b-z3z5x74g1c] {
    flex: 1 1 80px;
}

.pack-stepper[b-z3z5x74g1c] {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.pack-stepper button[b-z3z5x74g1c] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 38px;
    border: 0;
    background: #f8f8f8;
    color: #1a1a2e;
    cursor: pointer;
}

.pack-stepper button:hover:not(:disabled)[b-z3z5x74g1c] {
    background: #E5EDD8;
    color: #3B5525;
}

.pack-stepper button:focus-visible[b-z3z5x74g1c] {
    outline: 2px solid #4A6B2E;
    outline-offset: -2px;
}

.pack-stepper button:disabled[b-z3z5x74g1c] {
    color: #b8b8b8;
    cursor: default;
}

.pack-stepper span[b-z3z5x74g1c] {
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    font-variant-numeric: tabular-nums;
}

.pack-card-total[b-z3z5x74g1c] {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    font-variant-numeric: tabular-nums;
}

.packs-fine[b-z3z5x74g1c] {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6b6b6b;
}

.packs-fine a[b-z3z5x74g1c] {
    color: #4A6B2E;
    text-decoration: underline;
}

.packs-history[b-z3z5x74g1c] {
    margin-top: 16px;
}

.packs-col-num[b-z3z5x74g1c] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ── Section ───────────────────────────────────────────────────────────────── */

.section-heading[b-z3z5x74g1c] {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 24px 0 12px;
}

/* ── Tier Cards ────────────────────────────────────────────────────────────── */

.tier-grid[b-z3z5x74g1c] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tier-card[b-z3z5x74g1c] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tier-card-active[b-z3z5x74g1c] {
    border-color: #4A6B2E;
    box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.15);
}

/* In the flow above the tier name, not pinned to the corner: "Current plan · billed
   annually" is wider than a narrow card's spare corner and ran over the name on tablets. */
.tier-current-badge[b-z3z5x74g1c],
.tier-scheduled-badge[b-z3z5x74g1c] {
    align-self: flex-start;
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tier-scheduled-badge[b-z3z5x74g1c] {
    background: #f0f0f0;
    color: #555;
}

.tier-scheduled-note[b-z3z5x74g1c] {
    margin-top: auto;
    font-size: 13px;
    color: #555;
}

.tier-name[b-z3z5x74g1c] {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.tier-price[b-z3z5x74g1c] {
    margin-bottom: 4px;
    color: #555;
}

.tier-amount[b-z3z5x74g1c] {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Annual only: what the year saves over paying monthly. */
.tier-saving[b-z3z5x74g1c] {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #E5EDD8;
    color: #3B5525;
    font-size: 12px;
    font-weight: 600;
}

.tier-credits[b-z3z5x74g1c] {
    font-size: 13px;
    color: #4A6B2E;
    font-weight: 600;
    margin-bottom: 8px;
}

.tier-desc[b-z3z5x74g1c] {
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 12px;
}

.tier-features[b-z3z5x74g1c] {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
}

.tier-features li[b-z3z5x74g1c] {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tier-features li:last-child[b-z3z5x74g1c] { border-bottom: none; }

/* ── Renewal Disclosure ────────────────────────────────────────────────────── */

/* Sits directly under the Subscribe button. Muted, but never smaller than the
   plan description above it — a renewal term set in fine print is the thing the
   auto-renewal rules exist to stop. */
.tier-renewal-note[b-z3z5x74g1c] {
    font-size: 13px;
    line-height: 1.45;
    color: #6b6b6b;
    margin: 10px 0 0;
}

.tier-legal-note[b-z3z5x74g1c] {
    font-size: 13px;
    line-height: 1.45;
    color: #6b6b6b;
    margin: 16px 0 0;
}

.tier-legal-note a[b-z3z5x74g1c] {
    color: #4A6B2E;
    text-decoration: underline;
}


/* ── Costs Grid ────────────────────────────────────────────────────────────── */

.costs-grid[b-z3z5x74g1c] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.cost-item[b-z3z5x74g1c] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cost-label[b-z3z5x74g1c] {
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 4px;
}

.cost-value[b-z3z5x74g1c] {
    font-size: 16px;
    font-weight: 700;
    color: #4A6B2E;
}

/* ── Transaction Styling ───────────────────────────────────────────────────── */

[b-z3z5x74g1c] .data-table { background: #fff; }

.text-success[b-z3z5x74g1c] { color: #059669; font-weight: 600; }
.text-danger[b-z3z5x74g1c] { color: #dc2626; font-weight: 600; }

/* ── Embedded Checkout Modal ────────────────────────────────────────────────── */

.checkout-overlay[b-z3z5x74g1c] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    /* `safe center` vertically centers short modals (Cancel, Change Plan,
       Update Payment) but falls back to flex-start when the modal is taller
       than the viewport so the top doesn't get clipped — Stripe's embedded
       checkout iframe can grow to ~1000px once shipping/tax/auth steps appear.
       Without `safe`, plain `center` would hide the modal header off-screen
       on a small laptop viewport. */
    align-items: safe center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    /* max() with env(safe-area-inset-*) clears the iOS notch and home indicator. */
    padding: max(40px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.checkout-modal[b-z3z5x74g1c] {
    background: #fff;
    border-radius: 12px;
    width: 600px;
    max-width: 100%;
    max-height: calc(100dvh - 80px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    /* Clip children to the rounded corners. Without this, Stripe's embedded
       checkout iframe (opaque white background) renders with square corners
       and covers the modal's bottom-left/right radius. The inner
       #stripe-checkout-container handles its own scrolling, so the modal
       itself doesn't need overflow:auto. */
    overflow: hidden;
}

/* Confirm-action variant — narrower than the embedded checkout. Was set inline as
   width:400px which beat the mobile @media override and made the modal overflow
   on phones; using a class lets the mobile rule take over via max-width: 100%. */
.checkout-modal--narrow[b-z3z5x74g1c] { width: 400px; }

.checkout-header[b-z3z5x74g1c] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.checkout-title[b-z3z5x74g1c] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.checkout-close[b-z3z5x74g1c] {
    background: none;
    border: none;
    font-size: 18px;
    color: #6b6b6b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.checkout-close:hover[b-z3z5x74g1c] { background: #f0f0f0; color: #1a1a2e; }

/* Stripe's embedded checkout iframe renders to its own natural height (often
   700–1000px once shipping/tax/auth steps appear). The parent .checkout-modal
   caps at calc(100dvh - 80px), but max-height alone doesn't make a child
   scrollable — without flex:1 + overflow-y:auto + min-height:0, the iframe
   blows past the modal's bottom and runs off-screen. min-height:300px keeps
   the empty/loading state from collapsing flat. */
#stripe-checkout-container[b-z3z5x74g1c] {
    flex: 1 1 auto;
    min-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Body of every non-embedded checkout modal (cancel, reactivate, change plan, update
   payment method). Same reason as #stripe-checkout-container above: .checkout-modal caps
   its height and clips with overflow:hidden, so a body without flex + min-height:0 +
   overflow-y:auto just gets cut off. The Update Payment Method body holds Stripe's Payment
   Element, which grows past the cap on a laptop screen and hid the Save button. */
.checkout-body[b-z3z5x74g1c] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.checkout-footer[b-z3z5x74g1c] {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .packs-grid[b-z3z5x74g1c] { grid-template-columns: 1fr; gap: 20px; }
    .packs-head[b-z3z5x74g1c] { flex-direction: column; align-items: flex-start; gap: 8px; }
    .billing-cards[b-z3z5x74g1c] { grid-template-columns: 1fr; }
    .tier-grid[b-z3z5x74g1c] { grid-template-columns: 1fr; }
    .costs-grid[b-z3z5x74g1c] { grid-template-columns: repeat(2, 1fr); }
    /* Match the desktop rule — `safe center` keeps short confirm modals
       (Cancel, Reactivate, Change Plan) vertically centered on mobile too,
       and falls back to flex-start if the modal exceeds the viewport (Stripe
       checkout iframe). The earlier flex-start override pinned every modal
       to the top, which left a big empty area below short confirm dialogs.
       Top padding clears the fixed 52px .mobile-topbar (64px = bar + a 12px gap),
       the same offset .modal-backdrop uses. At 12px the modal's header sat in the
       bar's strip, and on a phone the ✕ ended up behind the navbar where it
       couldn't be tapped. max-height subtracts both paddings, so a tall Stripe
       checkout scrolls inside #stripe-checkout-container instead of the header
       riding up under the bar. */
    .checkout-overlay[b-z3z5x74g1c] {
        padding: calc(env(safe-area-inset-top, 0px) + 64px) 8px max(12px, env(safe-area-inset-bottom));
        align-items: safe center;
    }
    .checkout-modal[b-z3z5x74g1c],
    .checkout-modal--narrow[b-z3z5x74g1c] {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px) - max(12px, env(safe-area-inset-bottom, 0px)));
        border-radius: 8px;
    }
}
/* /Pages/Compare/Index.razor.rz.scp.css */
/* ── /compare: one card per comparison ───────────────────────
   Shared parts (hero, bands, ticks, call to action) come from MarketingLayout.razor.css. Cards
   name the other product in text only, never with its logo. */

.cmp-cards[b-6qi3jvbzz2] { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cmp-cards li[b-6qi3jvbzz2] { display: flex; }

.cmp-card[b-6qi3jvbzz2] {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #E7E4DA;
    border-radius: 18px;
    padding: 24px 26px;
    text-decoration: none;
    transition: border-color .15s;
}
.cmp-card:hover[b-6qi3jvbzz2] { border-color: #4A6B2E; }

.cmp-card h3[b-6qi3jvbzz2] { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: #1A1A2E; }
.cmp-card p[b-6qi3jvbzz2] { flex: 1; margin: 8px 0 0; font-size: 15px; color: #5C5A6E; }
.cmp-more[b-6qi3jvbzz2] { margin-top: 18px; font-size: 14px; font-weight: 600; color: #4A6B2E; }

@media (max-width: 768px) {
    .cmp-cards[b-6qi3jvbzz2] { grid-template-columns: minmax(0, 1fr); }
}
/* /Pages/Cookies.razor.rz.scp.css */
/* Cookies.razor.css
   Shared legal typography — headings, body copy, lists, links, the footer
   cross-links — comes from LegalLayout.razor.css and is NOT repeated here.
   What remains is the browser-storage table, whose column widths and monospace
   first column are specific to this page. */

/* ── Storage table ──────────── */
.legal-table-wrap[b-c18vlf76ww] {
    overflow-x: auto;
    margin: 12px 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.legal-table[b-c18vlf76ww] {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
    color: #1a1a2e;
}

.legal-table thead th[b-c18vlf76ww] {
    text-align: left;
    padding: 10px 14px;
    background: #f8f8f8;
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.legal-table tbody td[b-c18vlf76ww] {
    padding: 12px 14px;
    border-bottom: 1px solid #ededed;
    vertical-align: top;
    color: #555;
    line-height: 1.5;
}

.legal-table tbody tr:last-child td[b-c18vlf76ww] {
    border-bottom: none;
}

.legal-table tbody td:first-child[b-c18vlf76ww] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #1a1a2e;
    white-space: nowrap;
}
/* /Pages/Datasets/DatasetFill.razor.rz.scp.css */
/* ── Filter bar ──────────────────────────────────────────── */

.fill-filter[b-e9gb91gsj0] {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.fill-search[b-e9gb91gsj0] {
    max-width: 280px;
}

.fill-only-open[b-e9gb91gsj0] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

/* Download / upload sit at the right of the filter bar, and wrap under it when narrow */
.fill-sheet-actions[b-e9gb91gsj0] {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.fill-sheet-actions .btn[b-e9gb91gsj0] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fill-sheet-actions .is-busy[b-e9gb91gsj0] {
    opacity: 0.6;
    pointer-events: none;
}

/* ── Table ───────────────────────────────────────────────── */

.fill-table-wrap[b-e9gb91gsj0] {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.fill-table[b-e9gb91gsj0] {
    width: 100%;
    border-collapse: collapse;
}

.fill-table th[b-e9gb91gsj0],
.fill-table td[b-e9gb91gsj0] {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}

.fill-table th[b-e9gb91gsj0] {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f8f8f8;
    white-space: nowrap;
}

.fill-table tbody tr:last-child td[b-e9gb91gsj0] {
    border-bottom: none;
}

/* Who the row is: read-only, so it reads as context next to the inputs */
.fill-id-col[b-e9gb91gsj0] {
    font-size: 13px;
    color: #1a1a2e;
    white-space: nowrap;
}

.fill-col-note[b-e9gb91gsj0] {
    display: block;
    font-weight: 400;
    color: #6b6b6b;
    font-size: 11px;
}

.fill-input[b-e9gb91gsj0] {
    min-width: 140px;
    margin: 0;
}

/* Still to fill in: a soft tint, not an error — saving part of it is fine */
.fill-input.is-blank[b-e9gb91gsj0] {
    background: #fbf8ec;
    border-color: #e6d9a6;
}

/* ── Approval card ───────────────────────────────────────── */

.fill-approval[b-e9gb91gsj0] {
    margin-bottom: 16px;
    border-left: 3px solid #4A6B2E;
}

.fill-approval-when[b-e9gb91gsj0] {
    margin: 0 0 12px;
    color: #1a1a2e;
}

.fill-hold[b-e9gb91gsj0] {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    cursor: pointer;
}

.fill-hold input[b-e9gb91gsj0] {
    margin-top: 3px;
}

/* Every approver required: who has approved, who hasn't. */
.fill-approvers[b-e9gb91gsj0] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 12px;
    padding: 8px 10px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #1a1a2e;
}

.fill-approvers svg[b-e9gb91gsj0] {
    vertical-align: -2px;
}

.fill-approvers-rule[b-e9gb91gsj0] {
    font-weight: 600;
}

.fill-none[b-e9gb91gsj0] {
    text-align: center;
    color: #6b6b6b;
    font-size: 13px;
    padding: 24px 10px !important;
}

@media (max-width: 768px) {
    .fill-search[b-e9gb91gsj0] {
        max-width: none;
        flex: 1 1 100%;
    }
}
/* /Pages/Developers/Index.razor.rz.scp.css */
/* ── Cards ──────────── */
.developers-card[b-6d96vxn9e6] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.developers-card-title[b-6d96vxn9e6] {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.developers-card-intro[b-6d96vxn9e6] {
    margin: -4px 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}

/* ── API documentation card ──────────── */
/* Sits above the keys: tinted in the accent so it reads as the way in. */
.api-docs-card[b-6d96vxn9e6] {
    background: #f4f8ef;
    border-color: #c9d9b4;
    border-left: 4px solid #4A6B2E;
    padding: 22px 24px;
}

.api-docs-head[b-6d96vxn9e6] {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.api-docs-icon[b-6d96vxn9e6] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #4A6B2E;
    color: #fff;
}

.api-docs-copy[b-6d96vxn9e6] {
    flex: 1;
    min-width: 0;
}

.api-docs-eyebrow[b-6d96vxn9e6] {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4A6B2E;
}

.api-docs-title[b-6d96vxn9e6] {
    margin: 2px 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.api-docs-text[b-6d96vxn9e6] {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}

.api-docs-cta[b-6d96vxn9e6] {
    flex-shrink: 0;
    align-self: center;
    white-space: nowrap;
}

.api-docs-links[b-6d96vxn9e6] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.api-docs-link[b-6d96vxn9e6] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d6e2c6;
    border-radius: 8px;
    color: #1a1a2e;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.api-docs-link:hover[b-6d96vxn9e6] {
    border-color: #4A6B2E;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.api-docs-link:focus-visible[b-6d96vxn9e6] {
    outline: 2px solid #4A6B2E;
    outline-offset: 2px;
}

.api-docs-link-icon[b-6d96vxn9e6] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #E5EDD8;
    color: #4A6B2E;
}

.api-docs-link strong[b-6d96vxn9e6] {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.api-docs-link strong + span[b-6d96vxn9e6] {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6b6b6b;
}

@media (max-width: 768px) {
    .api-docs-links[b-6d96vxn9e6] {
        grid-template-columns: 1fr;
    }

    .api-docs-head[b-6d96vxn9e6] {
        flex-wrap: wrap;
    }

    .api-docs-cta[b-6d96vxn9e6] {
        width: 100%;
    }
}
/* /Pages/DevelopersApi.razor.rz.scp.css */
/* ── Hero ──────────── */
.dev-hero[b-fkhv1zptq7] {
    padding-bottom: 8px;
}

.dev-baseurl[b-fkhv1zptq7] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f8f8;
}

.dev-baseurl-label[b-fkhv1zptq7] {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.dev-baseurl code[b-fkhv1zptq7] {
    font: 600 14px 'JetBrains Mono', monospace;
    color: #1a1a2e;
    word-break: break-all;
}

/* ── Cards ──────────── */
.dev-cards[b-fkhv1zptq7] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dev-card[b-fkhv1zptq7] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #1a1a2e;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dev-card:hover[b-fkhv1zptq7] {
    border-color: #4A6B2E;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.dev-card-title[b-fkhv1zptq7] {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
}

.dev-card-text[b-fkhv1zptq7] {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

/* ── Quickstart steps ──────────── */
.dev-steps[b-fkhv1zptq7] {
    list-style: none;
    counter-reset: step;
    margin: 20px 0 0;
    padding: 0;
}

.dev-steps > li[b-fkhv1zptq7] {
    counter-increment: step;
    position: relative;
    padding: 0 0 8px 44px;
}

.dev-steps > li[b-fkhv1zptq7]::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E5EDD8;
    color: #3B5525;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

.dev-steps > li:not(:last-child)[b-fkhv1zptq7]::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 34px;
    bottom: 6px;
    width: 2px;
    background: #e6e6e6;
}

/* ── Rate-limit figures ──────────── */
.dev-stats[b-fkhv1zptq7] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 4px 0 18px;
}

.dev-stat[b-fkhv1zptq7] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f8f8;
}

.dev-stat-value[b-fkhv1zptq7] {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: #4A6B2E;
}

.dev-stat-label[b-fkhv1zptq7] {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

/* ── What the API covers ──────────── */
.dev-cover[b-fkhv1zptq7] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 4px 0 18px;
}

.dev-cover-item[b-fkhv1zptq7] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #1a1a2e;
    text-decoration: none;
}

.dev-cover-item:hover[b-fkhv1zptq7] {
    border-color: #4A6B2E;
    background: #fafcf7;
}

.dev-cover-title[b-fkhv1zptq7] {
    font-weight: 600;
    font-size: 15px;
}

.dev-cover-text[b-fkhv1zptq7] {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 1024px) {
    .dev-stats[b-fkhv1zptq7] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dev-cards[b-fkhv1zptq7],
    .dev-cover[b-fkhv1zptq7] {
        grid-template-columns: 1fr;
    }

    .dev-steps > li[b-fkhv1zptq7] {
        padding-left: 38px;
    }
}

@media (max-width: 480px) {
    .dev-stats[b-fkhv1zptq7] {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dev-stat-value[b-fkhv1zptq7] {
        font-size: 22px;
    }
}
/* /Pages/DevelopersApiReference.razor.rz.scp.css */
/* ── Reference page ──────────── */
.ref[b-mlffsn330t] {
    padding-bottom: 8px;
    color: #1a1a2e;
    font-size: 15px;
    line-height: 1.65;
}

.ref-intro[b-mlffsn330t] {
    max-width: 780px;
    padding: 40px 48px 8px;
}

.ref-facts[b-mlffsn330t] {
    display: grid;
    gap: 1px;
    margin: 0 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #e0e0e0;
    overflow: hidden;
}

.ref-fact[b-mlffsn330t] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 10px 14px;
    background: #fff;
    font-size: 14px;
}

.ref-fact-label[b-mlffsn330t] {
    width: 120px;
    flex: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b6b6b;
}

/* ── Postman / OpenAPI ───────────────────────────── */
.ref-tools[b-mlffsn330t] {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ref-postman[b-mlffsn330t] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    flex-shrink: 0;
}

.ref-spec[b-mlffsn330t] {
    flex: 1;
    min-width: 240px;
    margin: 0;
}

.ref-postman-error[b-mlffsn330t] {
    margin: 12px 0 0;
}

.ref-loading[b-mlffsn330t] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
}

.ref-skeleton-line[b-mlffsn330t] {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* The Overview link's target: clear of the sticky top bar, as the sections are */
#overview[b-mlffsn330t] {
    scroll-margin-top: 60px;
}

/* ── Section ──────────── */
.ref-section[b-mlffsn330t] {
    padding: 48px 48px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
    scroll-margin-top: 60px;
}

.ref-section-head[b-mlffsn330t] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 40px;
    align-items: start;
    margin-bottom: 8px;
}

.ref-section-head .dev-h2[b-mlffsn330t] {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 28px;
}

.ref-section-text[b-mlffsn330t] {
    color: #555;
    font-size: 16px;
}

.ref-endpoints[b-mlffsn330t] {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f8f8;
    overflow: hidden;
}

.ref-endpoints-title[b-mlffsn330t] {
    padding: 8px 14px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.ref-endpoint[b-mlffsn330t] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 13px;
}

.ref-endpoint:hover[b-mlffsn330t] {
    background: #E5EDD8;
}

.ref-endpoint-path[b-mlffsn330t] {
    font-family: 'JetBrains Mono', monospace;
    overflow-wrap: anywhere;
}

/* ── Operation ──────────── */
.ref-op[b-mlffsn330t] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 40px;
    align-items: start;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 60px;
}

.ref-op:last-child[b-mlffsn330t] {
    border-bottom: none;
}

.ref-op-code[b-mlffsn330t] {
    position: sticky;
    top: 76px;
}

.ref-op-title[b-mlffsn330t] {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.ref-op-anchor[b-mlffsn330t] {
    color: #1a1a2e;
    text-decoration: none;
}

.ref-op-anchor:hover[b-mlffsn330t] {
    color: #4A6B2E;
    text-decoration: underline;
}

.ref-op-line[b-mlffsn330t] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ref-op-path[b-mlffsn330t] {
    font: 600 14px 'JetBrains Mono', monospace;
    overflow-wrap: anywhere;
}

.ref-scope[b-mlffsn330t] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 2px 0 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0f0f0;
    font-size: 13px;
    color: #555;
}

.ref-h4[b-mlffsn330t] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 24px 0 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
}

.ref-h4-type[b-mlffsn330t] {
    font: 400 12px 'JetBrains Mono', monospace;
    letter-spacing: 0;
    text-transform: none;
    color: #6b6b6b;
}

/* ── Fields ──────────── */
.ref-fields[b-mlffsn330t] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ref-field[b-mlffsn330t] {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Fields nested inside another field, indented under it. */
.ref-field-depth-1[b-mlffsn330t],
.ref-field-depth-2[b-mlffsn330t],
.ref-field-depth-3[b-mlffsn330t] {
    padding-left: 14px;
    border-left: 2px solid #e6e6e6;
}

.ref-field-depth-1[b-mlffsn330t] { margin-left: 20px; }
.ref-field-depth-2[b-mlffsn330t] { margin-left: 40px; }
.ref-field-depth-3[b-mlffsn330t] { margin-left: 60px; }

.ref-field-head[b-mlffsn330t] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.ref-field-name[b-mlffsn330t] {
    font: 600 13.5px 'JetBrains Mono', monospace;
    color: #1a1a2e;
}

.ref-field-type[b-mlffsn330t] {
    font-size: 12.5px;
    color: #6b6b6b;
}

.ref-field-required[b-mlffsn330t] {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #B33C32;
}

.ref-field-default[b-mlffsn330t] {
    font-size: 12.5px;
    color: #6b6b6b;
}

.ref-field-desc[b-mlffsn330t] {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.55;
    color: #444;
}

.ref-return[b-mlffsn330t] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 8px 0;
    font-size: 14px;
}

.ref-details[b-mlffsn330t] {
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 14px;
}

.ref-details > summary[b-mlffsn330t] {
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4A6B2E;
}

.ref-details[open] > summary[b-mlffsn330t] {
    border-bottom: 1px solid #e0e0e0;
}

.ref-count[b-mlffsn330t] {
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: #E5EDD8;
    font-size: 12px;
}

.ref-details .ref-field:last-child[b-mlffsn330t] {
    border-bottom: none;
}

/* ── Errors ──────────── */
.ref-errors[b-mlffsn330t] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 14px;
}

.ref-error[b-mlffsn330t] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 2px 2px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fff;
    font: 600 12.5px 'JetBrains Mono', monospace;
    color: #1a1a2e;
    text-decoration: none;
}

.ref-error:hover[b-mlffsn330t] {
    border-color: #B33C32;
}

.ref-error-status[b-mlffsn330t] {
    padding: 1px 5px;
    border-radius: 4px;
    background: #F5EAD3;
    color: #7F5A12;
    font-size: 11px;
}

.ref-errors-common[b-mlffsn330t] {
    color: #555;
}

.ref-file-response[b-mlffsn330t] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f8f8;
    font-size: 14px;
    color: #555;
}

/* ── Narrower screens: code under the text ──────────── */
@media (max-width: 1280px) {
    .ref-op[b-mlffsn330t],
    .ref-section-head[b-mlffsn330t] {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ref-op-code[b-mlffsn330t] {
        position: static;
        max-width: 780px;
    }

    .ref-op-text[b-mlffsn330t],
    .ref-section-head > div:first-child[b-mlffsn330t] {
        max-width: 780px;
    }

    .ref-endpoints[b-mlffsn330t] {
        max-width: 560px;
    }
}

@media (max-width: 1024px) {
    .ref-intro[b-mlffsn330t] {
        padding: 32px 32px 8px;
    }

    .ref-section[b-mlffsn330t] {
        padding: 40px 32px 0;
    }
}

@media (max-width: 768px) {
    .ref-intro[b-mlffsn330t] {
        padding: 24px 16px 8px;
    }

    .ref-section[b-mlffsn330t] {
        padding: 32px 16px 0;
        margin-top: 24px;
    }

    .ref-section-head .dev-h2[b-mlffsn330t] {
        font-size: 24px;
    }

    .ref-op[b-mlffsn330t] {
        padding: 28px 0;
    }

    .ref-fact-label[b-mlffsn330t] {
        width: 100%;
    }

    .ref-field-depth-1[b-mlffsn330t] { margin-left: 8px; }
    .ref-field-depth-2[b-mlffsn330t] { margin-left: 16px; }
    .ref-field-depth-3[b-mlffsn330t] { margin-left: 24px; }
}
/* /Pages/Jobs/GenerateJob.razor.rz.scp.css */
/* Pages/Jobs/GenerateJob.razor.css
   Light-theme scoped styles for the live job generation screen.
   Matches wireframe Screen 9: 3-step header, progress bar, live log, action buttons.
   SignalR pushes RowCompleted / JobProgress / JobDone events to update state.
*/

/* ── Page wrapper ─────────────────────────────────────────── */
.gen-layout[b-5jqmehn3b0] {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── Page title ───────────────────────────────────────────── */
/* ── Step indicator ───────────────────────────────────────── */
.gen-steps[b-5jqmehn3b0] {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.gen-step[b-5jqmehn3b0] { display: flex; align-items: center; gap: 8px; font-size: 12px; }

.gen-step-num[b-5jqmehn3b0] {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.gen-step-done-num[b-5jqmehn3b0]   { background: #4A6B2E; color: #fff; }
.gen-step-active-num[b-5jqmehn3b0] { background: #4A6B2E; color: #fff; }

.gen-step-label-done[b-5jqmehn3b0]   { color: #4A6B2E; font-weight: 600; }
.gen-step-label-active[b-5jqmehn3b0] { color: #4A6B2E; font-weight: 700; }
.gen-step-label-pending[b-5jqmehn3b0] { color: #6b6b6b; }

.gen-step-divider[b-5jqmehn3b0] {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
  margin: 0 12px;
}

/* ── Progress card ────────────────────────────────────────── */
.gen-card[b-5jqmehn3b0] {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.gen-card-icon[b-5jqmehn3b0] {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.gen-job-name[b-5jqmehn3b0] {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.gen-job-sub[b-5jqmehn3b0] {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 22px;
}
/* Sits under .gen-job-sub, so it borrows that line's bottom margin. */
.gen-usage-line[b-5jqmehn3b0] {
  margin: -16px 0 22px;
}
.gen-status-done[b-5jqmehn3b0]  { color: #16a34a; font-weight: 600; }
.gen-status-warn[b-5jqmehn3b0]  { color: #d97706; }
.gen-status-error[b-5jqmehn3b0] { color: #dc2626; font-weight: 600; }

/* ── Progress bar ─────────────────────────────────────────── */
.gen-progress-meta[b-5jqmehn3b0] {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
  text-align: left;
}

.gen-progress-track[b-5jqmehn3b0] {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.gen-progress-fill[b-5jqmehn3b0] {
  height: 100%;
  background: #4A6B2E;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.gen-progress-done[b-5jqmehn3b0] {
  background: #16a34a !important;
}

.gen-progress-pct[b-5jqmehn3b0] {
  font-size: 11px;
  color: #6b6b6b;
  margin-bottom: 20px;
  text-align: right;
}

/* ── Live log ─────────────────────────────────────────────── */
.gen-log[b-5jqmehn3b0] {
  background: #0f1117;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.8;
  max-height: none;
  overflow-y: visible;
  overflow-x: hidden;
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid #1e2030;
  /* min-width: 0 lets this block shrink below its content's intrinsic width
     when the parent is a flex / grid item; without it, long filenames push
     the panel wider than its container on narrow viewports. */
  min-width: 0;
}

/* Scrollbar */
.gen-log[b-5jqmehn3b0]::-webkit-scrollbar { width: 4px; }
.gen-log[b-5jqmehn3b0]::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 2px; }

.gen-log-line[b-5jqmehn3b0] {
  padding: 1px 0;
  /* Long filenames (e.g. "Q3_Customer_Statement_2026_North_America_Region.pdf")
     would otherwise stretch the panel wider than the viewport on mobile.
     overflow-wrap: anywhere is more aggressive than break-word and will break
     mid-token if needed — acceptable for log output. */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gen-log-ok[b-5jqmehn3b0]         { color: #4ade80; }
.gen-log-processing[b-5jqmehn3b0] { color: #60a5fa; }
.gen-log-queued[b-5jqmehn3b0]     { color: #4a4a5a; }
.gen-log-error[b-5jqmehn3b0]      { color: #f87171; }
.gen-log-error-msg[b-5jqmehn3b0]  { opacity: 0.7; font-size: 10px; }

/* ── Action buttons ───────────────────────────────────────── */
.gen-actions[b-5jqmehn3b0] {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.gen-actions-spaced[b-5jqmehn3b0] {
  margin-top: 20px;
}

.gen-btn-outline[b-5jqmehn3b0] {
  background: #ffffff;
  color: #555;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.gen-btn-outline:hover[b-5jqmehn3b0] { background: #f0f0f0; border-color: #6b6b6b; }
.gen-btn-outline:disabled[b-5jqmehn3b0] { opacity: 0.4; cursor: not-allowed; }

.gen-btn-primary[b-5jqmehn3b0] {
  background: #4A6B2E;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(74, 107, 46,0.22);
}
.gen-btn-primary:hover[b-5jqmehn3b0] { background: #3B5525; text-decoration: none; }

.gen-btn-disabled[b-5jqmehn3b0] {
  background: #e0e0e0 !important;
  color: #6b6b6b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.6;
}

.gen-btn-warning[b-5jqmehn3b0] {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(245,158,11,0.22);
}
.gen-btn-warning:hover[b-5jqmehn3b0] { background: #d97706; }
.gen-btn-warning:disabled[b-5jqmehn3b0] { opacity: 0.5; cursor: not-allowed; }

/* ── Error summary ───────────────────────────────────────── */
.gen-error-summary[b-5jqmehn3b0] {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: left;
}

.gen-error-summary-header[b-5jqmehn3b0] {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 6px;
}

.gen-error-summary-item[b-5jqmehn3b0] {
  font-size: 11px;
  color: #7f1d1d;
  line-height: 1.6;
  padding: 2px 0;
}
.gen-error-summary-item strong[b-5jqmehn3b0] {
  color: #991b1b;
}

/* Collapsible per-row failure list. Default <summary> styling has weird marker
   alignment; reset and use a custom indicator that flips on open. */
.gen-error-summary-details > summary[b-5jqmehn3b0] {
  cursor: pointer;
  list-style: none;
  user-select: none;
  margin-bottom: 0;
}
.gen-error-summary-details > summary[b-5jqmehn3b0]::-webkit-details-marker {
  display: none;
}
.gen-error-summary-details > summary[b-5jqmehn3b0]::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.15s ease;
  font-size: 10px;
  color: #dc2626;
}
.gen-error-summary-details[open] > summary[b-5jqmehn3b0]::before {
  transform: rotate(90deg);
}
.gen-error-summary-details[open] > summary[b-5jqmehn3b0] {
  margin-bottom: 6px;
}
/* /Pages/Logs/AiUsageLogs.razor.rz.scp.css */
/* ── Log Tabs ───────────────────────────────────────────────────────────────── */

.log-tabs[b-c7nq6wz5ow] {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.log-tab[b-c7nq6wz5ow] {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

    .log-tab:hover[b-c7nq6wz5ow] {
        color: #1a1a2e;
    }

    .log-tab.active[b-c7nq6wz5ow] {
        color: #4A6B2E;
        border-bottom-color: #4A6B2E;
        font-weight: 600;
    }

/* ── Stats strip ─────────────────────────────────────────────────────────────── */

.ai-stats[b-c7nq6wz5ow] {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ai-stat[b-c7nq6wz5ow] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.ai-stat-value[b-c7nq6wz5ow] {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.ai-stat-label[b-c7nq6wz5ow] {
    font-size: 11px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-cost .ai-stat-value[b-c7nq6wz5ow] {
    color: #4A6B2E;
}

/* ── Filters ────────────────────────────────────────────────────────────────── */

.log-filters[b-c7nq6wz5ow] {
    margin-bottom: 20px;
}

.filter-group[b-c7nq6wz5ow] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Table ───────────────────────────────────────────────────────────────────── */

[b-c7nq6wz5ow] .data-table {
    background: #fff;
}

.text-right[b-c7nq6wz5ow] {
    text-align: right;
}

/* ── Badges ──────────────────────────────────────────────────────────────────── */

.badge-provider[b-c7nq6wz5ow] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-cost[b-c7nq6wz5ow] {
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
}

/* ── Row expansion ──────────────────────────────────────────────────────────── */

.table-row[b-c7nq6wz5ow] {
    cursor: pointer;
    transition: background 0.15s;
}

    .table-row:hover[b-c7nq6wz5ow] {
        background: #f8f8f8;
    }

    .table-row.row-expanded[b-c7nq6wz5ow] {
        background: #fafafa;
    }

.detail-row td[b-c7nq6wz5ow] {
    padding: 0 !important;
    border-bottom: 1px solid #e0e0e0;
}

.usage-detail[b-c7nq6wz5ow] {
    padding: 20px 14px;
    background: #fafafa;
    border-top: 2px solid #E5EDD8;
}

/* ── Detail Sections ────────────────────────────────────────────────────────── */

.detail-section[b-c7nq6wz5ow] {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

    .detail-section:last-child[b-c7nq6wz5ow] {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.detail-section-title[b-c7nq6wz5ow] {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.detail-grid[b-c7nq6wz5ow] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.detail-item[b-c7nq6wz5ow] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label[b-c7nq6wz5ow] {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detail-value[b-c7nq6wz5ow] {
    font-size: 13px;
    color: #1a1a2e;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.mono[b-c7nq6wz5ow] {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 12px;
}

.cost-value[b-c7nq6wz5ow] {
    font-weight: 700;
    color: #4A6B2E;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .ai-stats[b-c7nq6wz5ow] {
        flex-direction: column;
    }

    .ai-stat[b-c7nq6wz5ow] {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }

    .filter-group[b-c7nq6wz5ow] {
        flex-direction: column;
    }

    .filter-input[b-c7nq6wz5ow] {
        width: 100%;
    }

    .detail-grid[b-c7nq6wz5ow] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/Logs/AuditLogs.razor.rz.scp.css */
/* ── Log Tabs ───────────────────────────────────────────────────────────────── */

.log-tabs[b-dffrmgeb1k] {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.log-tab[b-dffrmgeb1k] {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

    .log-tab:hover[b-dffrmgeb1k] {
        color: #1a1a2e;
    }

    .log-tab.active[b-dffrmgeb1k] {
        color: #4A6B2E;
        border-bottom-color: #4A6B2E;
        font-weight: 600;
    }

/* ── Filters ────────────────────────────────────────────────────────────────── */

.log-filters[b-dffrmgeb1k] {
    margin-bottom: 20px;
}

.filter-group[b-dffrmgeb1k] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-dffrmgeb1k] .data-table {
    background: #fff;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge-audit[b-dffrmgeb1k] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-method[b-dffrmgeb1k] {
    background: #f0f0f0;
    color: #555;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-family: monospace;
    margin-right: 4px;
}

.badge-impersonated[b-dffrmgeb1k] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-left: 6px;
    white-space: nowrap;
}

.filter-checkbox[b-dffrmgeb1k] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1a1a2e;
    cursor: pointer;
    user-select: none;
}

    .filter-checkbox input[type="checkbox"][b-dffrmgeb1k] {
        accent-color: #4A6B2E;
        cursor: pointer;
    }

/* ── Row expansion ──────────────────────────────────────────────────────────── */

.table-row[b-dffrmgeb1k] {
    cursor: pointer;
    transition: background 0.15s;
}

    .table-row:hover[b-dffrmgeb1k] {
        background: #f8f8f8;
    }

    .table-row.row-expanded[b-dffrmgeb1k] {
        background: #fafafa;
    }

.detail-row td[b-dffrmgeb1k] {
    padding: 0 !important;
    border-bottom: 1px solid #e0e0e0;
}

.log-detail[b-dffrmgeb1k] {
    padding: 20px 14px;
    background: #fafafa;
    border-top: 2px solid #E5EDD8;
}

/* ── Detail Sections ────────────────────────────────────────────────────────── */

.detail-section[b-dffrmgeb1k] {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

    .detail-section:last-child[b-dffrmgeb1k] {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .detail-section.impersonation[b-dffrmgeb1k] {
        background: #f6f4ff;
        border-left: 3px solid #4A6B2E;
        padding: 12px 14px;
        border-radius: 4px;
        border-bottom-color: #E5EDD8;
    }

.detail-section-title[b-dffrmgeb1k] {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.detail-grid[b-dffrmgeb1k] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.detail-item[b-dffrmgeb1k] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label[b-dffrmgeb1k] {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detail-value[b-dffrmgeb1k] {
    font-size: 13px;
    color: #1a1a2e;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.mono[b-dffrmgeb1k] {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 12px;
}

/* ── Changes panel ──────────────────────────────────────────────────────────── */

.changes-panel[b-dffrmgeb1k] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.change-block[b-dffrmgeb1k] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.json-block[b-dffrmgeb1k] {
    background: #0f1117;
    color: #a8b2c1;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .filter-group[b-dffrmgeb1k] {
        flex-direction: column;
    }

    .filter-input[b-dffrmgeb1k] {
        width: 100%;
    }

    .changes-panel[b-dffrmgeb1k] {
        grid-template-columns: 1fr;
    }

    .detail-grid[b-dffrmgeb1k] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/Logs/ErrorLogs.razor.rz.scp.css */
/* ── Log Tabs ───────────────────────────────────────────────────────────────── */

.log-tabs[b-mxsaqreywv] {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.log-tab[b-mxsaqreywv] {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

    .log-tab:hover[b-mxsaqreywv] {
        color: #1a1a2e;
    }

    .log-tab.active[b-mxsaqreywv] {
        color: #4A6B2E;
        border-bottom-color: #4A6B2E;
        font-weight: 600;
    }

/* ── Stats strip ─────────────────────────────────────────────────────────────── */

.error-stats[b-mxsaqreywv] {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.error-stat[b-mxsaqreywv] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.error-stat-value[b-mxsaqreywv] {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.error-stat-label[b-mxsaqreywv] {
    font-size: 11px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-critical .error-stat-value[b-mxsaqreywv] {
    color: #991b1b;
}

.stat-audit .error-stat-value[b-mxsaqreywv] {
    color: #4A6B2E;
}

/* ── Filters ────────────────────────────────────────────────────────────────── */

.log-filters[b-mxsaqreywv] {
    margin-bottom: 20px;
}

.filter-group[b-mxsaqreywv] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Severity badges ────────────────────────────────────────────────────────── */

.badge-warning[b-mxsaqreywv] {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-error[b-mxsaqreywv] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-critical[b-mxsaqreywv] {
    background: #991b1b;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-method[b-mxsaqreywv] {
    background: #f0f0f0;
    color: #555;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-family: monospace;
    margin-right: 4px;
}

/* ── Table ───────────────────────────────────────────────────────────────────── */

[b-mxsaqreywv] .data-table {
    background: #fff;
}

.table-row[b-mxsaqreywv] {
    cursor: pointer;
    transition: background 0.15s;
}

    .table-row:hover[b-mxsaqreywv] {
        background: #f8f8f8;
    }

    .table-row.row-expanded[b-mxsaqreywv] {
        background: #fafafa;
    }

.message-cell[b-mxsaqreywv] {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-row td[b-mxsaqreywv] {
    padding: 0 !important;
    border-bottom: 1px solid #e0e0e0;
}

/* ── Detail panel ────────────────────────────────────────────────────────────── */

.error-detail[b-mxsaqreywv] {
    padding: 20px 14px;
    background: #fafafa;
    border-top: 2px solid #fee2e2;
}

/* ── Detail Sections ────────────────────────────────────────────────────────── */

.detail-section[b-mxsaqreywv] {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

    .detail-section:last-child[b-mxsaqreywv] {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.detail-section-title[b-mxsaqreywv] {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.detail-grid[b-mxsaqreywv] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.detail-item[b-mxsaqreywv] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label[b-mxsaqreywv] {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detail-value[b-mxsaqreywv] {
    font-size: 13px;
    color: #1a1a2e;
    word-break: break-all;
}

.mono[b-mxsaqreywv] {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 12px;
}

/* ── Code blocks ─────────────────────────────────────────────────────────────── */

.message-block[b-mxsaqreywv] {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 4px 0 0;
    color: #1a1a2e;
}

.stack-trace[b-mxsaqreywv] {
    background: #0f1117;
    color: #e06c75;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    margin: 4px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.json-block[b-mxsaqreywv] {
    background: #0f1117;
    color: #a8b2c1;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    margin: 4px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .error-stats[b-mxsaqreywv] {
        flex-direction: column;
    }

    .error-stat[b-mxsaqreywv] {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }

    .filter-group[b-mxsaqreywv] {
        flex-direction: column;
    }

    .filter-input[b-mxsaqreywv] {
        width: 100%;
    }

    .detail-grid[b-mxsaqreywv] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/Logs/StripeEvents.razor.rz.scp.css */
/* ── Log Tabs ───────────────────────────────────────────────────────────────── */

.log-tabs[b-yv6ge43e2q] {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.log-tab[b-yv6ge43e2q] {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

    .log-tab:hover[b-yv6ge43e2q] {
        color: #1a1a2e;
    }

    .log-tab.active[b-yv6ge43e2q] {
        color: #4A6B2E;
        border-bottom-color: #4A6B2E;
        font-weight: 600;
    }

/* ── Filters ────────────────────────────────────────────────────────────────── */

.log-filters[b-yv6ge43e2q] {
    margin-bottom: 20px;
}

.filter-group[b-yv6ge43e2q] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Status badges ──────────────────────────────────────────────────────────── */

.badge-stripe-processed[b-yv6ge43e2q] {
    background: #d4edda;
    color: #155724;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-stripe-skipped[b-yv6ge43e2q] {
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-stripe-failed[b-yv6ge43e2q] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-stripe-received[b-yv6ge43e2q] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */

[b-yv6ge43e2q] .data-table {
    background: #fff;
}

.table-row[b-yv6ge43e2q] {
    cursor: pointer;
    transition: background 0.15s;
}

    .table-row:hover[b-yv6ge43e2q] {
        background: #f8f8f8;
    }

    .table-row.row-expanded[b-yv6ge43e2q] {
        background: #fafafa;
    }

.detail-row td[b-yv6ge43e2q] {
    padding: 0 !important;
    border-bottom: 1px solid #e0e0e0;
}

/* ── Detail panel ───────────────────────────────────────────────────────────── */

.stripe-detail[b-yv6ge43e2q] {
    padding: 20px 14px;
    background: #fafafa;
    border-top: 2px solid #E5EDD8;
}

/* ── Detail Sections ────────────────────────────────────────────────────────── */

.detail-section[b-yv6ge43e2q] {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

    .detail-section:last-child[b-yv6ge43e2q] {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .detail-section.error-section[b-yv6ge43e2q] {
        background: #fdf2f2;
        border-left: 3px solid #c03030;
        padding: 12px 14px;
        border-radius: 4px;
        border-bottom-color: #fee2e2;
    }

.detail-section-title[b-yv6ge43e2q] {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.detail-grid[b-yv6ge43e2q] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.detail-item[b-yv6ge43e2q] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label[b-yv6ge43e2q] {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detail-value[b-yv6ge43e2q] {
    font-size: 13px;
    color: #1a1a2e;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.mono[b-yv6ge43e2q] {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 12px;
}

/* ── Code blocks ────────────────────────────────────────────────────────────── */

.error-block[b-yv6ge43e2q] {
    background: #fff;
    border: 1px solid #fee2e2;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 4px 0 0;
    color: #991b1b;
}

.json-block[b-yv6ge43e2q] {
    background: #0f1117;
    color: #a8b2c1;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    margin: 4px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .filter-group[b-yv6ge43e2q] {
        flex-direction: column;
    }

    .filter-input[b-yv6ge43e2q] {
        width: 100%;
    }

    .detail-grid[b-yv6ge43e2q] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/NotFound.razor.rz.scp.css */
.notfound-page[b-y4q0xlx2jl] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    padding: 24px;
}

.notfound-card[b-y4q0xlx2jl] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 56px 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.notfound-code[b-y4q0xlx2jl] {
    font-size: 96px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #4A6B2E 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.notfound-title[b-y4q0xlx2jl] {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.notfound-desc[b-y4q0xlx2jl] {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0 0 28px;
}

.notfound-actions[b-y4q0xlx2jl] {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.notfound-footer[b-y4q0xlx2jl] {
    font-size: 16px;
    font-weight: 800;
    color: #ccc;
}

@media (max-width: 480px) {
    .notfound-card[b-y4q0xlx2jl] {
        padding: 40px 24px 32px;
    }

    .notfound-code[b-y4q0xlx2jl] {
        font-size: 72px;
    }

    .notfound-title[b-y4q0xlx2jl] {
        font-size: 18px;
    }
}
/* /Pages/OAuthCallback.razor.rz.scp.css */
/* ── OAuth Callback Page ──────────── */

.oauth-callback-page[b-lqjxi64yok] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f0f0f0;
}

.oauth-callback-card[b-lqjxi64yok] {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
}

.oauth-callback-card h2[b-lqjxi64yok] {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.oauth-callback-icon[b-lqjxi64yok] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(240, 85, 96, 0.1);
    color: #B33C32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}
/* /Pages/OpenSource.razor.rz.scp.css */
/* OpenSource.razor.css
   Shared legal typography — h2, body copy, lists, links, inline code — comes from
   LegalLayout.razor.css. What's here is what the rendered notices file adds on top: h3s,
   tables (styled like the sub-processor table), the licence text blocks and the rules
   between sections. All of it is Markdig output, hence ::deep. */

/* ── Rendered notices ──────────── */
.oss-notices[b-ejcgpirbj0]  h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 20px 0 6px;
}

.oss-notices[b-ejcgpirbj0]  hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 28px 0 0;
}

/* Full width like the sub-processor table. These have three short columns, so they wrap
   rather than scroll on a phone. */
.oss-notices[b-ejcgpirbj0]  table {
    width: 100%;
    margin: 12px 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /* Separate, not collapse: collapsed borders ignore border-radius. */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    color: #1a1a2e;
}

.oss-notices[b-ejcgpirbj0]  thead th:first-child {
    border-top-left-radius: 8px;
}

.oss-notices[b-ejcgpirbj0]  thead th:last-child {
    border-top-right-radius: 8px;
}

.oss-notices[b-ejcgpirbj0]  thead th {
    text-align: left;
    padding: 10px 14px;
    background: #f8f8f8;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.oss-notices[b-ejcgpirbj0]  tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #ededed;
    vertical-align: top;
    color: #555;
    line-height: 1.5;
}

.oss-notices[b-ejcgpirbj0]  tbody tr:last-child td {
    border-bottom: none;
}

.oss-notices[b-ejcgpirbj0]  tbody td:first-child {
    font-weight: 600;
    color: #1a1a2e;
}

/* The licence texts themselves: kept as written, wrapped to the column. */
.oss-notices[b-ejcgpirbj0]  pre {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 8px 0 16px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.oss-notices[b-ejcgpirbj0]  pre code {
    background: none;
    padding: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #555;
}

.oss-notices[b-ejcgpirbj0]  a {
    color: #4A6B2E;
    text-decoration: none;
}

.oss-notices[b-ejcgpirbj0]  a:hover {
    text-decoration: underline;
}

/* File and image names in a cell break where they must, or the column runs off a phone. */
.oss-notices[b-ejcgpirbj0]  td code {
    word-break: break-all;
}

@media (max-width: 768px) {
    /* Scroll sideways rather than overflow the card if a table is still too wide. */
    .oss-notices[b-ejcgpirbj0]  table {
        display: block;
        overflow-x: auto;
    }
}
/* /Pages/PdfTemplates/Index.razor.rz.scp.css */
/* ── Template gallery ─────────────────────────────────────────
   Cards (.gallery, .tpl-card) and section parts come from MarketingLayout.razor.css; this file
   holds the jump links under the heading. */

.jump[b-18wlh0qzug] { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
    .jump a[b-18wlh0qzug] { padding: 7px 14px; border: 1px solid #D9D5C8; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: #4D4C5C; text-decoration: none; }
    .jump a:hover[b-18wlh0qzug] { border-color: #4A6B2E; color: #1A1A2E; text-decoration: none; }

@media (pointer: coarse) {
    .jump a[b-18wlh0qzug] { display: inline-flex; align-items: center; min-height: 44px; }
}
/* /Pages/PdfTemplates/TemplatePage.razor.rz.scp.css */
/* ── Template page ────────────────────────────────────────────
   Cards, steps, the sample sheet and section parts come from MarketingLayout.razor.css; this
   file lays out the top: the rendered page beside the template's details. */

.tpl-top[b-9oosha6tnr] { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }

.tpl-preview[b-9oosha6tnr] { margin: 0; padding: 22px; background: #F3F1EA; border: 1px solid #E7E4DA; border-radius: 18px; }
    .tpl-preview img[b-9oosha6tnr] { width: 100%; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 2px 10px rgba(26, 26, 46, .12); }

/* .tpl-top outweighs the layout's .hero h1 and .hero .lede. */
.tpl-top .tpl-info h1[b-9oosha6tnr] { font-size: clamp(32px, 3.6vw, 48px); }
.tpl-top .tpl-info .lede[b-9oosha6tnr] { margin-top: 16px; }

.crumbs[b-9oosha6tnr] { margin: 0 0 14px; font-size: 13px; color: #6B6B6B; }
    .crumbs a[b-9oosha6tnr] { color: #4A6B2E; text-decoration: none; }
    .crumbs a:hover[b-9oosha6tnr] { text-decoration: underline; }

.cols-h[b-9oosha6tnr] { margin: 26px 0 10px; font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; color: #6B6B6B; }
.cols[b-9oosha6tnr] { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
    /* Block, so each chip is its own height and not a 12px tag in a 16px line's box. */
    .cols .tag[b-9oosha6tnr] { display: block; padding: 4px 9px; line-height: 1.4; }

.aside[b-9oosha6tnr] { margin: 24px 0 0; font-size: 15px; color: #5C5A6E; }

@media (max-width: 1024px) {
    .tpl-top[b-9oosha6tnr] { grid-template-columns: 1fr; gap: 32px; }
    .tpl-preview[b-9oosha6tnr] { max-width: 560px; }
}

.cols-note[b-9oosha6tnr] { margin: 10px 0 0; font-size: 13px; color: #6B6B6B; }

/* ── About this template (TemplateNotes) ──────────── */
.notes-h[b-9oosha6tnr] { margin: 28px 0 8px; font-size: 15px; font-weight: 600; color: #1a1a2e; }
.notes > div > .notes-h:first-child[b-9oosha6tnr] { margin-top: 0; }
.notes p[b-9oosha6tnr] { margin: 0; line-height: 1.6; color: #4D4C5C; }
.notes-cols[b-9oosha6tnr] { margin: 0; }
.notes-cols dt[b-9oosha6tnr] { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.notes-cols dt:first-child[b-9oosha6tnr] { margin-top: 0; }
.notes-cols dd[b-9oosha6tnr] { margin: 6px 0 0; line-height: 1.55; color: #4D4C5C; }
.notes-read[b-9oosha6tnr] { margin: 0; padding-left: 18px; line-height: 1.8; }
/* /Pages/Pricing.razor.rz.scp.css */
/* ── Pricing page ─────────────────────────────────────────────
   The plans and comparison are PricingPlans (its own styles); shared section parts come
   from MarketingLayout.razor.css. This file sizes the page's own heading. */

.pricing-top h1[b-5bafyj6yjh] { font-size: clamp(36px, 4.6vw, 56px); }

/* A touch more room than PricingPlans' 14px, under a page heading this size. */
.pricing-top .lede[b-5bafyj6yjh] { margin-top: 16px; }

@media (max-width: 480px) {
    .pricing-top h1[b-5bafyj6yjh] { font-size: 34px; }
}
/* /Pages/Status.razor.rz.scp.css */
.legal-title[b-hpedyvkri1] {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.legal-updated[b-hpedyvkri1] {
    color: #6b6b6b;
    font-size: 13px;
    margin-bottom: 24px;
}

h2[b-hpedyvkri1] {
    font-size: 17px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

p[b-hpedyvkri1] {
    color: #555;
    margin-bottom: 12px;
    font-size: 14px;
}

p a[b-hpedyvkri1] {
    color: #4A6B2E;
    text-decoration: none;
}

p a:hover[b-hpedyvkri1] {
    text-decoration: underline;
}

ul[b-hpedyvkri1] {
    color: #555;
    font-size: 14px;
    margin: 8px 0 12px 20px;
    padding: 0;
}

li[b-hpedyvkri1] {
    margin-bottom: 6px;
}

/* ── Status card ──────────── */
.status-card[b-hpedyvkri1] {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.status-pill[b-hpedyvkri1] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.status-pill-pending[b-hpedyvkri1] {
    background: #fff8e1;
    color: #8a6d00;
    border: 1px solid #f0c040;
}

.status-pill-pending .status-dot[b-hpedyvkri1] {
    background: #f0c040;
    box-shadow: 0 0 0 4px rgba(240, 192, 64, 0.18);
}

.status-pill-live[b-hpedyvkri1] {
    background: #e8f7ee;
    color: #1a6f33;
    border: 1px solid #2eb85c;
}

.status-pill-live .status-dot[b-hpedyvkri1] {
    background: #2eb85c;
    box-shadow: 0 0 0 4px rgba(46, 184, 92, 0.18);
}

.status-dot[b-hpedyvkri1] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-card-body[b-hpedyvkri1] {
    margin: 14px 0 16px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.status-cta[b-hpedyvkri1] {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.legal-nav-links[b-hpedyvkri1] {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.legal-nav-links a[b-hpedyvkri1] {
    color: #4A6B2E;
    text-decoration: none;
}

.legal-nav-links a:hover[b-hpedyvkri1] {
    text-decoration: underline;
}

.legal-sep[b-hpedyvkri1] {
    color: #ccc;
}
/* /Pages/Subprocessors.razor.rz.scp.css */
/* Subprocessors.razor.css
   Shared legal typography — headings, body copy, lists, links, the footer
   cross-links — comes from LegalLayout.razor.css and is NOT repeated here.
   What remains is the sub-processor table, wider than the Cookies one and with a
   bold rather than monospace first column. */

/* ── Sub-processor table ──────────── */
.legal-table-wrap[b-77f3eyppp3] {
    overflow-x: auto;
    margin: 12px 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.legal-table[b-77f3eyppp3] {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 13px;
    color: #1a1a2e;
}

.legal-table thead th[b-77f3eyppp3] {
    text-align: left;
    padding: 10px 14px;
    background: #f8f8f8;
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.legal-table tbody td[b-77f3eyppp3] {
    padding: 12px 14px;
    border-bottom: 1px solid #ededed;
    vertical-align: top;
    color: #555;
    line-height: 1.5;
}

.legal-table tbody tr:last-child td[b-77f3eyppp3] {
    border-bottom: none;
}

.legal-table tbody td:first-child[b-77f3eyppp3] {
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

.legal-table tbody td:last-child[b-77f3eyppp3] {
    white-space: nowrap;
    color: #1a1a2e;
}
/* /Pages/Support.razor.rz.scp.css */
/* ── Filters / search row ───────────────────────────────────── */

/* Universal search input grows to fill the bar — overrides the global
   .filter-search (which is only min-width: 240px) so the input expands
   on wider viewports. */
.filter-search[b-d5tz2vwp3c] { flex: 1; }

/* Two-column form row used in the create-ticket modal. Stacks on mobile
   so labels stay readable on narrow screens. */
.form-row-2[b-d5tz2vwp3c] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .form-row-2[b-d5tz2vwp3c] {
        grid-template-columns: 1fr;
    }
}

.support-search-empty[b-d5tz2vwp3c] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .support-search-empty p[b-d5tz2vwp3c] {
        margin: 0;
        color: #555;
        font-size: 14px;
    }

/* ── Tickets-tab header (sub-action above the table) ──────── */

.tab-header-actions[b-d5tz2vwp3c] {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

/* ── Tabs ───────────────────────────────────────────────────── */

.support-tabs[b-d5tz2vwp3c] {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.support-tab[b-d5tz2vwp3c] {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s, border-color 0.15s;
}

    .support-tab:hover[b-d5tz2vwp3c] {
        color: #1a1a2e;
    }

.support-tab-active[b-d5tz2vwp3c] {
    color: #4A6B2E;
    border-bottom-color: #4A6B2E;
}

.support-tab-icon[b-d5tz2vwp3c] {
    display: inline-flex;
    align-items: center;
    vertical-align: -0.18em;
}

.support-tab-badge[b-d5tz2vwp3c] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #B33C32;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* ── Tutorial filters (shared with Articles) ───────────────── */

.tutorial-filters[b-d5tz2vwp3c] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tutorial-filter[b-d5tz2vwp3c] {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

    .tutorial-filter:hover[b-d5tz2vwp3c] {
        border-color: #4A6B2E;
        color: #4A6B2E;
    }

.tutorial-filter-active[b-d5tz2vwp3c] {
    background: #E5EDD8;
    border-color: #4A6B2E;
    color: #4A6B2E;
    font-weight: 600;
}

/* ── Tutorial grid (carried over from old Tutorials page) ──── */

.tutorial-grid[b-d5tz2vwp3c] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.tutorial-card[b-d5tz2vwp3c] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
}

    .tutorial-card:hover[b-d5tz2vwp3c] {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
        transform: translateY(-2px);
    }

.tutorial-preview[b-d5tz2vwp3c] {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
    overflow: hidden;
}

/* ── Preview button — opens the modal player ────────────────
   Not a thumbnail of the GIF on purpose: an animated GIF cannot be
   paused from CSS, so showing one here would autoplay every tutorial
   in the grid at once. The card is a play affordance; the modal is
   the only place the tutorial actually runs. */
.tutorial-preview-btn[b-d5tz2vwp3c] {
    width: 100%;
    border: 0;
    background: linear-gradient(160deg, #E5EDD8 0%, #f6fafd 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

    .tutorial-preview-btn:hover[b-d5tz2vwp3c] {
        background: linear-gradient(160deg, #dceaf7 0%, #eef6fc 100%);
    }

    .tutorial-preview-btn:focus-visible[b-d5tz2vwp3c] {
        outline: 2px solid #4A6B2E;
        outline-offset: -3px;
    }

.tutorial-play-badge[b-d5tz2vwp3c] {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #4A6B2E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    box-shadow: 0 4px 14px rgba(74, 107, 46, 0.28);
    transition: transform 0.15s;
}

.tutorial-preview-btn:hover .tutorial-play-badge[b-d5tz2vwp3c] {
    transform: scale(1.06);
}

.tutorial-play-label[b-d5tz2vwp3c] {
    font-size: 12px;
    font-weight: 600;
    color: #4A6B2E;
    letter-spacing: 0.2px;
}

.tutorial-card-clickable:hover[b-d5tz2vwp3c] {
    border-color: #cbd5e1;
}

.tutorial-coming-soon[b-d5tz2vwp3c] {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b6b6b;
    font-size: 13px;
}

.tutorial-info[b-d5tz2vwp3c] {
    padding: 14px 16px;
}

.tutorial-meta[b-d5tz2vwp3c] {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.tutorial-badge[b-d5tz2vwp3c] {
    background: #E5EDD8;
    color: #4A6B2E;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Plan label ──────────── */
/* "Starter and above" on help about a paid feature. Outlined and grey rather than filled, so
   it reads as a note beside the category badge, not a second category. Same size as the badge. */
.plan-label[b-d5tz2vwp3c] {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d1d1d1;
    color: #555;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tutorial-duration[b-d5tz2vwp3c] {
    color: #6b6b6b;
    font-size: 11px;
}

.tutorial-title[b-d5tz2vwp3c] {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.tutorial-desc[b-d5tz2vwp3c] {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ── Modal tutorial player ──────────────────────────────────── */
.tutorial-player[b-d5tz2vwp3c] {
    background: #0b1727;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

/* Recordings are 1440×900. Reserving the shape keeps the dialog from jumping in height
   while the poster and video load. */
.tutorial-player-media[b-d5tz2vwp3c] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    display: block;
}

/* Loading and error states hold the video's shape, so the dialog doesn't change height
   when the player arrives. Light text on the player's dark ground. */
.tutorial-player-status[b-d5tz2vwp3c] {
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    line-height: 1.5;
    text-align: center;
    color: #d1d1d1;
    font-size: 14px;
}

.tutorial-player-desc[b-d5tz2vwp3c] {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    margin: 14px 0 0;
}

/* ── Articles ───────────────────────────────────────────────── */

.article-list[b-d5tz2vwp3c] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.article-card[b-d5tz2vwp3c] {
    text-align: left;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .article-card:hover[b-d5tz2vwp3c] {
        border-color: #4A6B2E;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
        transform: translateY(-2px);
    }

.article-card-header[b-d5tz2vwp3c] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-card-title[b-d5tz2vwp3c] {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.article-card-summary[b-d5tz2vwp3c] {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.article-card-footer[b-d5tz2vwp3c] {
    margin-top: auto;
}

/* ── Article viewer modal body ─────────────────────────────── */

.article-body .article-meta[b-d5tz2vwp3c] {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.article-summary-banner[b-d5tz2vwp3c] {
    background: #f8f8f8;
    border-left: 3px solid #4A6B2E;
    padding: 12px 14px;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.article-prose[b-d5tz2vwp3c] {
    color: #1a1a2e;
    font-size: 14px;
    line-height: 1.7;
}

    .article-prose[b-d5tz2vwp3c]  p {
        margin: 0 0 12px;
    }

    .article-prose[b-d5tz2vwp3c]  ul,
    .article-prose[b-d5tz2vwp3c]  ol {
        margin: 0 0 12px;
        padding-left: 20px;
    }

    .article-prose[b-d5tz2vwp3c]  li {
        margin-bottom: 4px;
    }

    .article-prose[b-d5tz2vwp3c]  code {
        background: #f0f0f0;
        padding: 2px 6px;
        border-radius: 4px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 12px;
    }

    .article-prose[b-d5tz2vwp3c]  strong {
        color: #1a1a2e;
        font-weight: 700;
    }

.article-feedback[b-d5tz2vwp3c] {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #555;
    flex-wrap: wrap;
}

/* ── Tickets ────────────────────────────────────────────────── */

.ticket-meta-row[b-d5tz2vwp3c] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-thread[b-d5tz2vwp3c] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.ticket-message[b-d5tz2vwp3c] {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
}

.ticket-message-staff[b-d5tz2vwp3c] {
    background: #E5EDD8;
    border-color: #bcdcfb;
}

.ticket-message-user[b-d5tz2vwp3c] {
    background: #fff;
}

.ticket-message-header[b-d5tz2vwp3c] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.ticket-message-body[b-d5tz2vwp3c] {
    font-size: 13px;
    color: #1a1a2e;
    line-height: 1.55;
}

.ticket-reply-box[b-d5tz2vwp3c] {
    border-top: 1px solid #e0e0e0;
    padding-top: 14px;
    margin-top: 4px;
}

.ticket-closed-note[b-d5tz2vwp3c] {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 13px;
}

/* Per-page badge-suspended — matches the convention in Account / Admin pages.
   Used for the Closed ticket status and the Urgent priority chip. */
.badge-suspended[b-d5tz2vwp3c] {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Attachments ────────────────────────────────────────────── */

/* Pre-upload list shown in the create / reply modals while files are
   selected but not yet sent. Mirrors the .data-table-ish row aesthetic. */
.attachment-pending-list[b-d5tz2vwp3c] {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

    .attachment-pending-list li[b-d5tz2vwp3c] {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        margin-bottom: 6px;
    }

.attachment-icon[b-d5tz2vwp3c] {
    display: inline-flex; align-items: center;
    line-height: 1;
}

.attachment-name[b-d5tz2vwp3c] {
    flex: 1;
    font-size: 13px;
    color: #1a1a2e;
    word-break: break-all;
}

.attachment-size[b-d5tz2vwp3c] {
    flex-shrink: 0;
}

.attachment-remove[b-d5tz2vwp3c] {
    background: none;
    border: none;
    color: #6b6b6b;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    line-height: 1;
}

    .attachment-remove:hover[b-d5tz2vwp3c] {
        color: #B33C32;
    }

/* Post-send chip list — appears under each ticket message that has files.
   Clicking a chip downloads the attachment. */
.attachment-chip-list[b-d5tz2vwp3c] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.attachment-chip[b-d5tz2vwp3c] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    color: #1a1a2e;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .attachment-chip:hover[b-d5tz2vwp3c] {
        border-color: #4A6B2E;
        box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.12);
    }

    .attachment-chip .attachment-name[b-d5tz2vwp3c] {
        flex: 0 1 auto;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ── Image placeholder ─────────────────────────────────────── */

/* Renders `![alt](placeholder:description)` in article bodies as a clearly
   labelled drop zone, so the maintainer can swap in the real screenshot
   later without losing the alt-text intent. */
.article-prose[b-d5tz2vwp3c]  .article-image-placeholder {
    background: repeating-linear-gradient(
        45deg,
        #f8f8f8,
        #f8f8f8 10px,
        #f0f0f0 10px,
        #f0f0f0 20px
    );
    border: 2px dashed #d1d1d1;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
    text-align: center;
    color: #6b6b6b;
}

.article-prose[b-d5tz2vwp3c]  .article-image-placeholder-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.article-prose[b-d5tz2vwp3c]  .article-image-placeholder-label {
    font-weight: 700;
    color: #555;
    font-size: 13px;
    margin-bottom: 4px;
}

.article-prose[b-d5tz2vwp3c]  .article-image-placeholder-desc {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

.article-prose[b-d5tz2vwp3c]  pre {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    overflow-x: auto;
    margin: 12px 0;
}

/* The block's <code> is inline, so the inline-code chip's left padding indented only the first
   line of every code block. The <pre> already provides the box. */
.article-prose[b-d5tz2vwp3c]  pre code {
    padding: 0;
    background: none;
    border-radius: 0;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .support-tabs[b-d5tz2vwp3c] {
        overflow-x: auto;
        scrollbar-width: none;
    }

        .support-tabs[b-d5tz2vwp3c]::-webkit-scrollbar {
            display: none;
        }

    .support-tab[b-d5tz2vwp3c] {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ── Field hint row (inline error + character counter) ─────── */

.field-hint-row[b-d5tz2vwp3c] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

    .field-hint-row .validation-message[b-d5tz2vwp3c] {
        margin-top: 0;
    }

.char-counter[b-d5tz2vwp3c] {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 12px;
    color: #6b6b6b;
    font-variant-numeric: tabular-nums;
}

.char-counter-over[b-d5tz2vwp3c] {
    color: #B33C32;
    font-weight: 600;
}

/* Captured help article screenshots, scaled to the reading column. */
.article-prose[b-d5tz2vwp3c]  .article-image {
    margin: 16px 0;
}

.article-prose[b-d5tz2vwp3c]  .article-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
}

.article-prose[b-d5tz2vwp3c]  .article-image figcaption {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}
/* /Pages/Templates/EmailEditor.razor.rz.scp.css */
/* Pages/Templates/EmailEditor.razor.css
   Light-theme scoped styles for the Email Template Builder.
   Matches wireframe Screen 6: 3-panel layout — palette | canvas | modal overlay.
   The canvas previews email HTML on a neutral bg; left panel and modals use warm light surfaces.
*/

/* ── Loading overlay ──────────────────────────────────────── */
.etb-loading-overlay[b-zdqmbylths] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}
.etb-loading-spinner[b-zdqmbylths] {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #4A6B2E;
  border-radius: 50%;
  animation: etb-spin-b-zdqmbylths 0.7s linear infinite;
}
@keyframes etb-spin-b-zdqmbylths { to { transform: rotate(360deg); } }

/* ── Full-height editor wrapper ───────────────────────────── */
/* Sized to fit exactly inside `.main-content` so `.main-content` itself
   never scrolls — when it did, the in-flow palette (Template Name field
   at its top) slid up behind the sticky topbar.

   Uses viewport-based calc rather than `100%` because percentage-height
   resolution on flex-item descendants is inconsistent across browsers.
   Subtract:
     - env-banner-height (30px on staging, 0 otherwise — global var)
     - impersonation-banner-height (36px when impersonating, 0 otherwise)
     - mobile-topbar (added in the 768px override below, 52px there only)

   Canvas pixel width is preserved by `.etb-layout`'s own `overflow-x:
   auto`, which scrolls the canvas internally without the page following.

   Critical: NO `overflow-x: hidden` here. Setting any overflow makes the
   wrap a scroll container for `position: sticky` purposes, which would
   anchor the sticky topbar to the wrap (instead of `.main-content`) — and
   since the wrap doesn't actually scroll vertically, the topbar would
   scroll away with `.main-content`'s scroll, leaving a gap at the top. */
.etb-editor-wrap[b-zdqmbylths] {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--env-banner-height, 0px) - var(--impersonation-banner-height, 0px));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Top chrome bar ───────────────────────────────────────── */
/* Pinned to its container's width so it never grows wider than the
   visible area. `width: 100%` not `100vw` — the sidebar lives outside
   `.main-content`, so `100vw` would overshoot by the sidebar width and
   push the page horizontally. Sticky+overflow:hidden lets the right
   section scroll internally when buttons don't fit.
   `top` offsets by the impersonation banner so the two sticky bars stack
   without overlapping. The custom property is 0 when no banner is present. */
.etb-topbar[b-zdqmbylths] {
  position: sticky;
  top: var(--impersonation-banner-height, 0px);
  left: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #4A6B2E;
  padding: 0 16px;
  height: 48px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-sizing: border-box;
  overflow: hidden;
}

.etb-topbar-left[b-zdqmbylths] {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.etb-back-btn[b-zdqmbylths] {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s;
}
.etb-back-btn:hover[b-zdqmbylths] { background: rgba(255,255,255,0.25); text-decoration: none; }

.etb-topbar-logo[b-zdqmbylths] {
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.etb-breadcrumb[b-zdqmbylths] {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.etb-topbar-right[b-zdqmbylths] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  /* Top toolbar can grow beyond viewport when many actions are present
     (Settings / Undo / Redo / ? / AI / Export / Test / Preview tabs /
     History / Save). Allow horizontal scrolling instead of clipping
     Save Template off the right edge.

     Right-alignment comes from the auto margin below, NOT justify-content:
     flex-end. On an overflowing scroll container flex-end pushes the excess
     past the *start* edge, where the scrollable region doesn't reach — on a
     phone that left the first control ("🖥 Desktop") permanently sliced in
     half with no way to scroll back to it. An auto margin on the first item
     right-aligns the row while there's free space and collapses to zero the
     moment there isn't, so overflow spills off the end and stays reachable. */
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.etb-topbar-right[b-zdqmbylths]::-webkit-scrollbar { display: none; }
.etb-topbar-right > *[b-zdqmbylths] { flex-shrink: 0; }
.etb-topbar-right > *:first-child[b-zdqmbylths] { margin-left: auto; }

/* All topbar controls (ghost, primary, preview tabs) share the same fixed
   height + box-sizing so the row is visually even. `inline-flex` +
   `align-items: center` centres content within that fixed box so emoji
   glyphs (✨ in AI Modify, 🖥 in preview tabs) can't push the button
   taller than its peers. */
.etb-btn-ghost[b-zdqmbylths] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Icon-to-label gap. These are flex containers, so the literal space between the inline SVG
     and the label in the markup is stripped as leading whitespace on an anonymous flex item —
     without a gap the icon butts straight against the text. Only applies when a button actually
     has two children, so text-only buttons are untouched. */
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  box-sizing: border-box;
  padding: 0 12px;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.etb-btn-ghost:hover[b-zdqmbylths] { background: rgba(255,255,255,0.22); }
.etb-btn-ghost:disabled[b-zdqmbylths] { opacity: 0.5; cursor: not-allowed; }

.etb-btn-primary[b-zdqmbylths] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Icon-to-label gap. These are flex containers, so the literal space between the inline SVG
     and the label in the markup is stripped as leading whitespace on an anonymous flex item —
     without a gap the icon butts straight against the text. Only applies when a button actually
     has two children, so text-only buttons are untouched. */
  gap: 6px;
  background: #fff;
  color: #4A6B2E;
  border: 1px solid #fff;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 0 14px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.etb-btn-primary:hover[b-zdqmbylths] { background: #E5EDD8; border-color: #E5EDD8; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.etb-btn-primary:disabled[b-zdqmbylths] { opacity: 0.5; cursor: not-allowed; }

/* Preview mode tabs */
.etb-preview-tabs[b-zdqmbylths] { display: flex; gap: 3px; }
.etb-ptab[b-zdqmbylths] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Icon-to-label gap. These are flex containers, so the literal space between the inline SVG
     and the label in the markup is stripped as leading whitespace on an anonymous flex item —
     without a gap the icon butts straight against the text. Only applies when a button actually
     has two children, so text-only buttons are untouched. */
  gap: 6px;
  padding: 0 10px;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.etb-ptab:hover:not(:disabled)[b-zdqmbylths] { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.4); }
.etb-ptab:disabled[b-zdqmbylths] { opacity: 0.4; cursor: not-allowed; }
.etb-ptab-active[b-zdqmbylths] {
  background: #fff !important;
  border-color: #fff !important;
  color: #4A6B2E !important;
  font-weight: 600;
}

/* ── Main 2-panel layout ──────────────────────────────────── */
/* The layout owns its own horizontal scroll: when the natural editor width
   (palette + canvas) exceeds the available space, this element scrolls
   instead of squashing the canvas. The global `.app-shell { overflow: hidden }`
   on desktop would otherwise clip the page silently with no scrollbar. */
.etb-layout[b-zdqmbylths] {
  display: flex;
  flex: 1;
  min-height: 0;
  background: #f0f0f0;
  overflow-x: auto;
  overflow-y: hidden;
}

/* ── Left: palette panel ──────────────────────────────────── */
.etb-palette-toggle[b-zdqmbylths] { display: none; }
.etb-palette-backdrop[b-zdqmbylths] { display: none; }
/* No backdrop for the block-edit drawer: the drawer floats over only the
   right portion of the canvas, so the left palette (Template Name and the
   block palette) stays visible and interactive. The ✕ button in the sidebar
   header is the dismiss affordance — a full-page scrim would hide the
   Template Name field and break the workflow of editing one block while
   referencing settings on the left. */
.etb-block-sidebar-backdrop[b-zdqmbylths] { display: none; }

.etb-settings-inline[b-zdqmbylths] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.etb-palette-panel[b-zdqmbylths] {
  /* Fixed width, matching .ped-sidebar. `min-width` alone let the flex container stretch the
     panel whenever an expanded section held wider content — the old Email Settings grid did exactly
     that — so the panel width shifted as sections opened and closed. Locking `width` +
     `flex-shrink: 0` + `flex-grow: 0` keeps it at 260px regardless of content. */
  width: 260px;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  background: #f8f8f8;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.etb-panel-section[b-zdqmbylths] {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
  min-width: 0;
}
.etb-panel-section:last-child[b-zdqmbylths] { border-bottom: none; }

.etb-panel-section-label[b-zdqmbylths] {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b6b6b;
  margin-bottom: 6px;
}

/* Two-column grid, matching .pbd-palette-grid in the PDF editor — a single column made the
   11 block types a long scroll in a 260px panel, and the two palettes read as different
   controls side by side. */
.etb-palette[b-zdqmbylths] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 4px;
}

.etb-palette-item[b-zdqmbylths] {
  /* Button resets — palette entries are <button> so they can be reached by keyboard. Only the
     UA button styles a <div> never had need cancelling; the layout rules below still apply. */
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  margin: 0;
  appearance: none;

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a2e;
  text-align: left;
  cursor: grab;
  transition: all 0.15s;
  user-select: none;
}
/* #E5EDD8 is the design system's active surface. The PDF palette used to hover to #f8f7ff, a
   violet-tinted white left over from the old accent; both editors now use this. */
.etb-palette-item:hover[b-zdqmbylths] {
  background: #E5EDD8;
  border-color: #4A6B2E;
  color: #4A6B2E;
}
/* Category headings, matching .pbd-palette-category in the PDF editor. */
.etb-palette-category[b-zdqmbylths] {
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0 4px;
}
.etb-palette-category:first-child[b-zdqmbylths] {
  margin-top: 4px;
}

/* Field chips in left panel */
.etb-field-chips[b-zdqmbylths] { display: flex; flex-direction: column; gap: 2px; }
.etb-field-tag[b-zdqmbylths] {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #4A6B2E;
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.etb-field-tag:hover[b-zdqmbylths] { background: #E5EDD8; border-color: #4A6B2E; }
.etb-hint-text[b-zdqmbylths] { font-size: 10px; color: #6b6b6b; font-style: italic; }

/* Template name input */
.etb-tmpl-meta[b-zdqmbylths] { }
.etb-meta-field[b-zdqmbylths] { display: flex; flex-direction: column; gap: 3px; }
.etb-meta-label[b-zdqmbylths] { font-size: 12px; color: #1a1a2e; font-weight: 600; }
.etb-meta-input[b-zdqmbylths] {
  width: 100%;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  font-size: 13px;
  color: #1a1a2e;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.etb-meta-input:focus[b-zdqmbylths] { border-color: #4A6B2E; box-shadow: 0 0 0 3px #E5EDD8; }

/* ── Canvas area ──────────────────────────────────────────── */
/* `min-width: max-content` locks the canvas-area to at least the canvas's
   design pixel width at every screen size — without it the area shrinks when
   the viewport is narrower than the canvas (portrait tablets, phones), which
   distorts block placement coordinates. `.etb-layout` has `overflow-x: auto`
   so the canvas scrolls horizontally inside the layout instead of squashing. */
.etb-canvas-area[b-zdqmbylths] {
  flex: 1;
  min-width: max-content;
  background: #f0f0f0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.etb-canvas-hint[b-zdqmbylths] {
  font-size: 11px;
  color: #6b6b6b;
  margin-bottom: 12px;
  text-align: center;
}

.etb-canvas-scroll[b-zdqmbylths] { width: 100%; display: flex; justify-content: center; }

.etb-canvas[b-zdqmbylths] {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 1px solid #d1d1d1;
  min-height: 200px;
}

/* Matches .pbd-empty-canvas — centred flex column, same padding, and not italic (the PDF
   empty state isn't, and italic read as a different voice across the two editors). */
.etb-canvas-empty[b-zdqmbylths] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #6b6b6b;
  font-size: 13px;
}

/* ── Individual block in canvas ───────────────────────────── */
/* Selection is drawn with outline, not border — matching .pbd-block in the PDF editor. Two
   reasons beyond the visual match: with the global `box-sizing: border-box`, a 2px transparent
   border took 4px off every block's content box (594px inside a 600px canvas, rather than the
   598px the canvas actually offers), so the canvas previewed each block narrower than it renders;
   and a border that only materialises on hover reflowed the block's contents under the cursor.
   Outline is painted outside the box model, so neither happens. */
.etb-block[b-zdqmbylths] {
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
  transition: outline-color 0.15s, box-shadow 0.15s;
}
.etb-block:hover[b-zdqmbylths] {
  outline: 1px solid #d1d1d1;
  outline-offset: -1px;
}
.etb-block-selected[b-zdqmbylths] {
  outline: 2px solid #4A6B2E !important;
  outline-offset: -2px;
  box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.15);
}

/* ── AI Modify: what changed ──────────── */
.etb-block.etb-block-ai-changed[b-zdqmbylths] {
  outline: 2px dashed #4A6B2E;
  outline-offset: -2px;
}
.etb-ai-changes[b-zdqmbylths] {
  margin: 0 auto 12px;
  max-width: 600px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #4A6B2E;
  border-radius: 8px;
  color: #1a1a2e;
  font-size: 13px;
}
.etb-ai-changes-head[b-zdqmbylths] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}
.etb-ai-changes-head span[b-zdqmbylths] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4A6B2E;
}
.etb-ai-changes-close[b-zdqmbylths] {
  border: none;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
}
.etb-ai-changes-close:hover[b-zdqmbylths] { color: #1a1a2e; }
.etb-ai-changes-list[b-zdqmbylths] {
  margin: 6px 0 0;
  padding-left: 18px;
  line-height: 1.5;
}
.etb-ai-changes-hint[b-zdqmbylths] {
  margin: 6px 0 0;
  color: #6b6b6b;
  font-size: 12px;
}

/* Block toolbar — same floating-pill chrome as .pbd-block-toolbar. The PDF editor parks its
   toolbar in the gutter ABOVE the block (`bottom: calc(100% + 4px)`), which works there because
   grid blocks sit in a padded canvas with overflow visible. Email blocks are flush-stacked inside
   a canvas that clips (`.etb-canvas` has overflow:hidden for its rounded corners), so "above"
   would be cut off on the first block and would cover the previous block everywhere else. Kept
   in the block's top-right corner and inset instead, so the 6px radius reads as a pill. */
/* Floats just above the block, as the PDF editor's does, so it never covers what's in the block's
   top-right corner — a logo, a button, the end of a heading. The first block has no room above it
   (the canvas clips at its rounded edge), so its toolbar hangs just below it instead. */
.etb-block-toolbar[b-zdqmbylths] {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 4px;
  width: max-content;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  /* Asymmetric: the PDF toolbar holds nothing but icon buttons, which carry their own 5px of
     side padding, so 4px all round is enough there. This one leads with the block-type label —
     bare text, which would otherwise sit 4px off the pill edge and read as cramped. 8px on the
     left gives the text a proper inset; the right stays at 4px so the icon cluster keeps the
     same rhythm as the PDF editor's. */
  padding: 2px 4px 2px 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  /* Hidden, it sits over the block above; it mustn't catch that block's clicks. */
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
.etb-canvas > .etb-block:first-child .etb-block-toolbar[b-zdqmbylths] {
  bottom: auto;
  top: calc(100% + 4px);
}
/* Selected only, like the PDF editor: outside the block, a hover toolbar would cover its neighbour
   whenever the pointer passed over. */
.etb-block-selected .etb-block-toolbar[b-zdqmbylths] { opacity: 1; pointer-events: auto; }

.etb-block-type-label[b-zdqmbylths] {
  font-size: 10px;
  color: #6b6b6b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* Even 8px either side of the divider rule. The label's own 0.08em tracking already adds a
     sliver of trailing space after its last letter, so text→rule looks slightly wider than
     rule→button even at matched values — which is the right way round. The 2px toolbar gap
     lands on top of margin-right, hence 6px here rather than 8px. */
  padding-right: 8px;
  border-right: 1px solid #e0e0e0;
  margin-right: 6px;
  white-space: nowrap;
}

.etb-block-btn[b-zdqmbylths] {
  background: none;
  border: none;
  font-size: 13px;
  color: #6b6b6b;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 3px;
  transition: all 0.15s;
  line-height: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.etb-block-btn svg[b-zdqmbylths] { display: block; }
.etb-block-btn:hover[b-zdqmbylths] { background: #E5EDD8; color: #4A6B2E; }
.etb-block-btn:disabled[b-zdqmbylths] { opacity: 0.35; cursor: default; background: none; color: #6b6b6b; }
.etb-block-btn-danger:hover[b-zdqmbylths] { background: #fff5f5 !important; color: #e74c3c !important; }

.etb-drag-handle[b-zdqmbylths] {
  cursor: grab;
  color: #6b6b6b;
  padding: 2px 4px;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.etb-drag-handle svg[b-zdqmbylths] { display: block; }
.etb-drag-handle:hover[b-zdqmbylths] { color: #4A6B2E; }
.etb-drag-handle:active[b-zdqmbylths] { cursor: grabbing; }
/* Touch drags start only from the handle (see emailEditor.js), so it must not scroll the page. */
.etb-drag-handle[b-zdqmbylths] { touch-action: none; }

/* ── Block reordering ─────────────────────────────────────── */
/* State classes set by emailEditor.js. Neighbours slide with transforms while a block is dragged;
   the DOM itself is never rearranged, Blazor does that on drop. */
.etb-block[data-draggable="true"][b-zdqmbylths] { cursor: grab; }

.etb-canvas.etb-reordering > .etb-block[b-zdqmbylths] {
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
.etb-canvas.etb-reordering > .etb-block:hover[b-zdqmbylths] { outline: none; }
.etb-canvas.etb-reordering .etb-block-toolbar[b-zdqmbylths] { opacity: 0 !important; }

/* The dragged block's own slot, travelling to where it will land — the drop preview. */
.etb-drag-source[b-zdqmbylths] {
  opacity: 0.35;
  outline: 2px dashed #4A6B2E !important;
  outline-offset: -2px;
  box-shadow: none;
}

/* Applied for one frame on drop, after Blazor has put the blocks in their new order, so the
   transforms clear without every block animating back from its old offset. */
.etb-canvas.etb-reorder-settling > .etb-block[b-zdqmbylths] { transition: none !important; }

/* The copy that follows the pointer. Lives on <body>, so it is positioned fixed. */
.etb-drag-lift[b-zdqmbylths] {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.95;
  outline: 2px solid #4A6B2E;
  outline-offset: -2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: none;
}
.etb-drag-lift .etb-block-toolbar[b-zdqmbylths] { display: none; }
.etb-drag-lift .etb-resize-handle[b-zdqmbylths] { display: none; }

/* ── Height handle ────────────────────────────────────────── */
/* Same green bar as .pbd-resize-s in the PDF editor, on the selected block's bottom edge. It
   straddles the edge so it reads as belonging to the boundary between two blocks; the last block's
   sits just inside, because the canvas clips its overflow. */
.etb-resize-handle[b-zdqmbylths] {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -3px;
  width: 44px;
  height: 6px;
  margin-left: -22px;
  background: #4A6B2E;
  border-radius: 3px;
  box-shadow: 0 0 0 2px #fff;
  cursor: ns-resize;
  touch-action: none;
}
/* A larger invisible hit area — 6px is hard to grab, and harder still on a touch screen. */
.etb-resize-handle[b-zdqmbylths]::before {
  content: "";
  position: absolute;
  inset: -7px -10px;
}
.etb-block:last-child .etb-resize-handle[b-zdqmbylths] { bottom: 0; }
.etb-block.etb-resizing[b-zdqmbylths] { outline: 2px dashed #4A6B2E !important; outline-offset: -2px; }
.etb-canvas.etb-reordering .etb-resize-handle[b-zdqmbylths] { display: none; }

/* ── Preview iframe ───────────────────────────────────────── */
.etb-iframe-wrap[b-zdqmbylths] {
  width: 100%;
  max-width: 640px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.etb-iframe-mobile[b-zdqmbylths] { max-width: 395px; }
.etb-iframe[b-zdqmbylths] {
  width: 100%;
  flex: 1;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d1d1d1;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* Plain text preview */
.etb-plaintext-preview[b-zdqmbylths] {
  width: 100%;
  max-width: 640px;
  flex: 1;
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow-y: auto;
}
.etb-plaintext-preview pre[b-zdqmbylths] {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  color: #555;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Block edit modal ─────────────────────────────────────── */
/* Centering uses `margin: auto` on `.etb-modal` (see the global .modal-backdrop
   note for why). Backdrop stays `align-items: flex-start` so tall modals
   top-pin instead of clipping their header above the viewport. */
.etb-modal-backdrop[b-zdqmbylths] {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Matches the global .modal-backdrop (1000) — above the mobile-topbar / env-
     banner so the block editor sits on top of the page chrome on mobile. */
  z-index: 1000;
  backdrop-filter: blur(2px);
  overflow-y: auto;
  /* max() with env(safe-area-inset-*) keeps the modal clear of the iOS notch
     and home indicator without shrinking padding on devices that don't have them. */
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.etb-modal[b-zdqmbylths] {
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 12px;
  width: 480px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  /* See `.modal { margin: auto }` in app.css — centers when free space
     exists, top-pins (margin collapses to 0) when modal exceeds backdrop. */
  margin: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.etb-modal-header[b-zdqmbylths] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  flex-shrink: 0;
}

.etb-modal-close[b-zdqmbylths] {
  background: none;
  border: none;
  color: #6b6b6b;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.12s;
}
.etb-modal-close:hover[b-zdqmbylths] { background: #f0f0f0; color: #1a1a2e; }

.etb-modal-body[b-zdqmbylths] { padding: 18px; flex: 1 1 auto; overflow-y: auto; min-height: 0; }

/* ── Block edit right sidebar (matches PDF editor) ────────── */
/* On full-size screens (≥1280px wide — room for palette + canvas + sidebar
   side-by-side) the sidebar lives in-flow as a flex child of `.etb-layout`,
   pushing the canvas instead of overlaying it. On narrower screens the
   media query at the bottom of this file swaps to a fixed overlay so the
   canvas doesn't get squashed. */
.etb-block-sidebar[b-zdqmbylths] {
  width: 320px;
  flex-shrink: 0;
  background: #ffffff;
  border-left: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  animation: etb-slide-in-b-zdqmbylths 0.2s ease-out;
}
@keyframes etb-slide-in-b-zdqmbylths {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.etb-block-sidebar-header[b-zdqmbylths] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  flex-shrink: 0;
}
.etb-block-sidebar-body[b-zdqmbylths] {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.etb-block-sidebar-footer[b-zdqmbylths] {
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Below 1280px the editor doesn't have room to fit palette (260) + canvas
   (600+) + sidebar (320) side-by-side without squashing the canvas. Pin the
   sidebar to the viewport's right edge instead so it overlays the canvas
   without affecting its layout. `top` clears the editor topbar + env-banner;
   the @media 768 block below adds the global mobile-topbar to that. Height
   uses `100dvh` so the footer (Done) sits at the visible bottom on browsers
   with floating chrome. */
@media (max-width: 1280px) {
  .etb-block-sidebar[b-zdqmbylths] {
    position: fixed;
    top: calc(48px + var(--env-banner-height, 0px) + var(--impersonation-banner-height, 0px));
    right: 0;
    height: calc(100dvh - 48px - var(--env-banner-height, 0px) - var(--impersonation-banner-height, 0px));
    width: min(360px, 92vw);
    z-index: 500;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  }
}

/* Primary button used inside the white block-sidebar footer + on the white
   modal footers (Send test, Save snippet). Mirrors PdfEditor's .ped-dialog-btn-primary
   so the two editors look the same: blue fill, white text. The other .etb-btn-primary
   (white fill, blue text) is for the colored top toolbar where it sits on a dark bg. */
.etb-dialog-btn-primary[b-zdqmbylths] {
  background: #4A6B2E;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  transition: background 0.15s, box-shadow 0.15s;
  /* Transition the hover glow up from nothing instead of popping it in. */
  box-shadow: 0 0 0 0 transparent;
}
.etb-dialog-btn-primary:hover[b-zdqmbylths] { background: #3B5525; box-shadow: 0 2px 12px rgba(74, 107, 46, 0.25); }
.etb-dialog-btn-primary:disabled[b-zdqmbylths] { opacity: 0.5; cursor: not-allowed; }

.etb-dialog-btn-ghost[b-zdqmbylths] {
  background: transparent;
  color: #555;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  transition: background 0.15s, border-color 0.15s;
}
.etb-dialog-btn-ghost:hover[b-zdqmbylths] { background: #f0f0f0; border-color: #b5b5b5; }

.etb-modal-footer[b-zdqmbylths] {
  padding: 12px 18px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Settings modal ───────────────────────────────────────── */
.etb-settings-field[b-zdqmbylths] { display: flex; flex-direction: column; gap: 4px; }
.etb-settings-label[b-zdqmbylths] {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
}
/* Matched to .ped-input (and to .etb-meta-input / .etb-sample-input, which already were) — these
   were the one input style in the editor still on the panel's own #f8f8f8, so the Email Settings
   fields read as flat labels rather than as text boxes and sat taller than every other field. */
.etb-settings-input[b-zdqmbylths] {
  width: 100%;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  font-size: 13px;
  color: #1a1a2e;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.etb-settings-input:focus[b-zdqmbylths] { border-color: #4A6B2E; box-shadow: 0 0 0 3px #E5EDD8; }
.etb-settings-input.has-error[b-zdqmbylths],
.etb-settings-input.has-error:focus[b-zdqmbylths] { border-color: #B33C32; box-shadow: none; }

/* One muted line under a field: guidance on the left, a character count on the right that turns
   ochre past what inboxes show. The count is advice, not a limit — merge fields make the real
   length differ per row. */
.etb-settings-hint[b-zdqmbylths] {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #555;
}
.etb-settings-count[b-zdqmbylths] {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.etb-settings-count-over[b-zdqmbylths] {
  color: #8a6a00;
  font-weight: 600;
}

/* The shared ColorPicker, sized to the 260px palette and to the inputs around it. */
.etb-settings-field[b-zdqmbylths]  .color-picker-row { gap: 6px; }
.etb-settings-field[b-zdqmbylths]  .color-swatch {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.etb-settings-field[b-zdqmbylths]  .form-control-sm {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 13px;
  max-width: 96px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
}

/* ── Help / Shortcuts panel ───────────────────────────────── */
.etb-shortcuts-dialog[b-zdqmbylths] {
  width: 560px;
  max-width: 92vw;
}

.etb-shortcuts-group-title[b-zdqmbylths] {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b6b;
  margin: 14px 0 4px;
}
.etb-shortcuts-group-title:first-child[b-zdqmbylths] { margin-top: 0; }

.etb-shortcuts-table[b-zdqmbylths] {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}

.etb-shortcuts-table td[b-zdqmbylths] {
  padding: 6px 8px;
  font-size: 12px;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f0f0;
}

.etb-shortcuts-table td:first-child[b-zdqmbylths] {
  white-space: nowrap;
  width: 1%;
  padding-right: 16px;
  vertical-align: top;
}

.etb-shortcuts-table td:last-child[b-zdqmbylths] {
  word-break: break-word;
}

/* Icon cell for the "Block toolbar" group — matched to .etb-kbd chrome so
   icon rows visually align with keyboard rows in the same table. */
.etb-shortcuts-icon[b-zdqmbylths] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  background: #f0f0f0;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  color: #555;
}

.etb-kbd[b-zdqmbylths] {
  display: inline-block;
  padding: 2px 6px;
  background: #f0f0f0;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  line-height: 1.4;
  margin-right: 2px;
  min-width: 20px;
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Subtract the global 52px mobile-topbar so the editor wrap fits exactly
     inside `.main-content`. `.main-content` already accounts for the
     env-banner via `.app-shell`'s height. Impersonation banner is still
     factored in via the same CSS variable as the default rule. */
  .etb-editor-wrap[b-zdqmbylths] {
    height: calc(100dvh - 52px - var(--impersonation-banner-height, 0px));
    min-height: 0;
  }
  /* Topbar stays anchored to viewport (sticky left:0) so it remains usable
     while the editor scrolls horizontally underneath.

     Locked to a single 48px row (no flex-wrap): the palette + block-edit
     drawers are fixed-positioned and would be visually clipped if the topbar
     grew vertically. Right-side buttons that don't fit are reachable by
     swiping the right section horizontally — matches the standard mobile
     editor toolbar pattern. */
  .etb-topbar[b-zdqmbylths] {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 50;
    height: 48px;
    flex-wrap: nowrap;
    padding: 6px 10px;
    gap: 6px;
    width: 100vw;
    overflow: hidden;
  }
  .etb-topbar-left[b-zdqmbylths] {
    gap: 6px;
    flex-shrink: 0;
  }
  .etb-topbar-right[b-zdqmbylths] {
    flex-wrap: nowrap;
    gap: 4px;
    flex-shrink: 1;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    /* Hide the inline scrollbar so the topbar stays visually clean — the
       horizontal swipe gesture is the affordance. */
    scrollbar-width: none;
  }
  .etb-topbar-right[b-zdqmbylths]::-webkit-scrollbar { display: none; }
  .etb-topbar-right > *[b-zdqmbylths] { flex-shrink: 0; }
  .etb-btn-ghost[b-zdqmbylths], .etb-btn-primary[b-zdqmbylths] {
    padding: 4px 8px;
    font-size: 11px;
  }
  .etb-palette-toggle[b-zdqmbylths] { display: inline-block; }
  /* Mobile drawers pin to the viewport (so they don't scroll with the
     canvas). Top offset = global 52px mobile-topbar + 48px editor topbar
     (env-banner is forced to 0 at this breakpoint). Height uses `100dvh`
     instead of `bottom: 0` so the drawer footer stays inside the visible
     viewport on browsers that shrink the viewport with floating chrome. */
  .etb-palette-panel[b-zdqmbylths] {
    display: none;
    position: fixed;
    top: calc(48px + 52px + var(--impersonation-banner-height, 0px));
    left: 0;
    height: calc(100dvh - 48px - 52px - var(--impersonation-banner-height, 0px));
    z-index: 500;
    width: 260px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .etb-palette-panel.etb-palette-open[b-zdqmbylths] {
    display: block;
  }
  .etb-block-sidebar[b-zdqmbylths] {
    top: calc(48px + 52px + var(--impersonation-banner-height, 0px));
    height: calc(100dvh - 48px - 52px - var(--impersonation-banner-height, 0px));
  }
  .etb-palette-backdrop[b-zdqmbylths] {
    display: block;
    position: fixed;
    inset: 0;
    top: calc(48px + 52px + var(--impersonation-banner-height, 0px));
    background: rgba(0,0,0,0.3);
    z-index: 499;
  }
  /* Block-edit drawer / backdrop overlay rules are now defined at the default
     scope (apply at every screen size) — see `.etb-block-sidebar` and
     `.etb-block-sidebar-backdrop` higher in this file. */

  .etb-canvas-area[b-zdqmbylths] {
    padding: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .etb-topbar-logo[b-zdqmbylths], .etb-breadcrumb[b-zdqmbylths] { display: none; }

  /* etb-modal mirrors the global .modal mobile pattern: tighter padding,
     full-width, scroll-on-overflow, footer wrap. Vertical centering is
     handled by `margin: auto` on `.etb-modal` (default scope) so we don't
     need to touch align-items here. Top padding clears the fixed 52px
     .mobile-topbar (64px = bar + a 12px gap), as .modal-backdrop does, so the
     header and ✕ never sit behind the bar; max-height subtracts both paddings. */
  .etb-modal-backdrop[b-zdqmbylths] {
    padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px max(12px, env(safe-area-inset-bottom));
  }
  .etb-modal[b-zdqmbylths] {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px) - max(12px, env(safe-area-inset-bottom, 0px)));
    border-radius: 10px;
  }
  .etb-modal-header[b-zdqmbylths] { padding: 12px 14px; font-size: 12px; }
  .etb-modal-body[b-zdqmbylths] { padding: 14px; }
  .etb-modal-footer[b-zdqmbylths] {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Shortcuts dialog density on a phone — mirrors the same block in the PDF editor, which the
     email editor was missing entirely: the two-column table and the kbd badges kept their
     desktop metrics and pushed the description column into a one-word-per-line ribbon. */
  .etb-shortcuts-table td[b-zdqmbylths] {
    padding: 5px 6px;
    font-size: 11.5px;
  }
  .etb-shortcuts-table td:first-child[b-zdqmbylths] { padding-right: 10px; }
  .etb-shortcuts-group-title[b-zdqmbylths] {
    font-size: 10.5px;
    margin: 12px 0 4px;
  }
  .etb-kbd[b-zdqmbylths] {
    padding: 1px 5px;
    font-size: 10.5px;
    min-width: 18px;
  }

  /* Palette drops to one column in the mobile drawer — two 120px cells put the longer labels
     ("Two-Column", "Signature") onto a second line. */
  .etb-palette[b-zdqmbylths] { grid-template-columns: 1fr; }
}

/* ── Code block textarea ── */

[b-zdqmbylths] .code-textarea {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    background: #1e1e2e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    line-height: 1.5 !important;
}

/* ── Conditional block section ── */

[b-zdqmbylths] .block-condition-section {
    margin-top: 16px;
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
}

[b-zdqmbylths] .block-condition-toggle {
    background: none;
    border: none;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

[b-zdqmbylths] .block-condition-toggle:hover {
    color: #4A6B2E;
}

[b-zdqmbylths] .block-condition-badge {
    font-size: 10px;
    background: #E5EDD8;
    color: #4A6B2E;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}

[b-zdqmbylths] .block-condition-body {
    margin-top: 8px;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 6px;
}

[b-zdqmbylths] .btn-ghost-sm {
    background: none;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    color: #555;
    cursor: pointer;
    margin-top: 8px;
}

[b-zdqmbylths] .btn-ghost-sm:hover {
    border-color: #B33C32;
    color: #B33C32;
}

/* ── Block editor merge field chips ── */

[b-zdqmbylths] .block-editor-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

[b-zdqmbylths] .block-editor-fields-label {
    font-size: 11px;
    color: #555;
    font-weight: 600;
    margin-right: 4px;
}

[b-zdqmbylths] .block-editor-field-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #4A6B2E;
    background: #E5EDD8;
    border: 1px solid #4A6B2E;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: background 0.12s;
}

[b-zdqmbylths] .block-editor-field-chip:hover {
    background: #ddd5ff;
}

/* Quill editor styles were moved to wwwroot/css/app.css so the PDF editor
   inherits them too (its block-editor lives in a different scope). The
   previous ::deep rules here only applied to children of EmailEditor and
   left the PdfBlockEditor's Quill container with no height/border —
   making the text block look broken / invisible.
   See: app.css → "── Quill rich-text editor ─" section. */

/* ── Send test / snippet inline toast ── */

.etb-toast-inline[b-zdqmbylths] {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.etb-toast-inline.etb-toast-error[b-zdqmbylths] {
    background: #fef2f2;
    color: #B33C32;
    border: 1px solid #fecaca;
}

.etb-toast-inline.etb-toast-ok[b-zdqmbylths] {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ── Sample Data section ─────────────────────────────────── */
.etb-section-toggle[b-zdqmbylths] {
  /* Button resets — these are <button> so they can be operated by keyboard. */
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;

    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.etb-section-toggle:hover .etb-panel-section-label[b-zdqmbylths] { color: #4A6B2E; }
.etb-toggle-icon[b-zdqmbylths] {
    font-size: 14px;
    color: #6b6b6b;
    font-weight: 700;
    line-height: 1;
}
.etb-section-body[b-zdqmbylths] {
    padding-top: 4px;
}
.etb-sample-input[b-zdqmbylths] {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    font-size: 11px;
    background: #ffffff;
    color: #1a1a2e;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.etb-sample-input:focus[b-zdqmbylths] {
    border-color: #4A6B2E;
    box-shadow: 0 0 0 3px #E5EDD8;
}
.etb-clear-sample-btn[b-zdqmbylths] {
    flex: 1;
    padding: 4px 8px;
    font-size: 10px;
    color: #6b6b6b;
    background: transparent;
    border: 1px dashed #d1d1d1;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
}
.etb-clear-sample-btn:hover[b-zdqmbylths] {
    color: #4A6B2E;
    border-color: #4A6B2E;
}

/* ── Palette drag cursor ─────────────────────────────────── */

.etb-palette-item[draggable="true"][b-zdqmbylths] {
    cursor: grab;
}
.etb-palette-item[draggable="true"]:active[b-zdqmbylths] {
    cursor: grabbing;
}

/* ── AI Generate modal ───────────────────────────────────── */

.etb-ai-dialog[b-zdqmbylths] {
    width: 540px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
}

.etb-ai-textarea[b-zdqmbylths] {
    margin-top: 12px;
    width: 100%;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 13px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
}

.etb-ai-textarea:focus[b-zdqmbylths] {
    outline: none;
    border-color: #4A6B2E;
    box-shadow: 0 0 0 2px rgba(74, 107, 46, .15);
}

.etb-ai-textarea:disabled[b-zdqmbylths] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* ── AI loading overlay ── */

.etb-ai-loading[b-zdqmbylths] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 220px;
    gap: 20px;
}

.etb-ai-loading-spinner[b-zdqmbylths] {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etb-ai-loading-ring[b-zdqmbylths] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #E5EDD8;
    border-top-color: #4A6B2E;
    border-right-color: #4A6B2E;
    animation: etb-spin-b-zdqmbylths 1s linear infinite;
}

.etb-ai-loading-icon[b-zdqmbylths] {
    font-size: 28px;
    animation: etb-ai-pop-b-zdqmbylths 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
    z-index: 1;
}

.etb-ai-loading-text[b-zdqmbylths] {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    animation: etb-ai-fade-up-b-zdqmbylths 0.3s ease-out;
    text-align: center;
    min-height: 20px;
}

.etb-ai-loading-sub[b-zdqmbylths] {
    font-size: 12px;
    color: #6b6b6b;
    margin: -10px 0 0;
}

@keyframes etb-spin-b-zdqmbylths {
    to { transform: rotate(360deg); }
}

@keyframes etb-ai-pop-b-zdqmbylths {
    0%   { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

@keyframes etb-ai-fade-up-b-zdqmbylths {
    0%   { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0);   opacity: 1; }
}

/* ── AI dialog: header, prompt, starting points ──────────── */
.etb-ai-dialog[b-zdqmbylths] { width: 600px; }
.etb-ai-header[b-zdqmbylths] { align-items: flex-start; padding: 18px 22px 6px; border-bottom: none; }
.etb-ai-head[b-zdqmbylths] { display: flex; align-items: flex-start; gap: 12px; }
.etb-ai-head-icon[b-zdqmbylths] {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #E5EDD8; color: #3B5525;
}
.etb-ai-title[b-zdqmbylths] { font-size: 17px; font-weight: 600; color: #1a1a2e; line-height: 1.3; }
.etb-ai-sub[b-zdqmbylths] { margin: 3px 0 0; font-size: 14px; font-weight: 400; color: #555; line-height: 1.5; }
.etb-ai-body[b-zdqmbylths] { padding: 10px 22px 4px; }
.etb-ai-body .etb-ai-textarea[b-zdqmbylths] {
  margin-top: 0; min-height: 112px; font-size: 15px; line-height: 1.55;
  padding: 12px 14px; border-radius: 10px; color: #1a1a2e;
}
.etb-ai-meta[b-zdqmbylths] { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: #6b6b6b; }
.etb-ai-error[b-zdqmbylths] { margin: 10px 0 0; font-size: 13px; color: #B33C32; }
.etb-ai-label[b-zdqmbylths] { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: #555; }
.etb-ai-chips[b-zdqmbylths] { display: flex; flex-wrap: wrap; gap: 8px; }
.etb-ai-chip[b-zdqmbylths] {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 6px 12px; border: 1px solid #d1d1d1; border-radius: 999px;
  background: #ffffff; color: #1a1a2e; font-family: inherit; font-size: 13px; cursor: pointer;
}
.etb-ai-chip:hover[b-zdqmbylths] { border-color: #4A6B2E; background: #E5EDD8; }
.etb-ai-chip:focus-visible[b-zdqmbylths] { outline: 2px solid #4A6B2E; outline-offset: 1px; }
.etb-ai-chip-icon[b-zdqmbylths] { display: inline-flex; color: #4A6B2E; }
.etb-ai-footer[b-zdqmbylths] { justify-content: space-between; align-items: center; padding: 14px 22px 18px; margin-top: 14px; }
.etb-ai-kbd[b-zdqmbylths] { font-size: 12px; color: #6b6b6b; }
.etb-ai-actions[b-zdqmbylths] { display: flex; gap: 8px; }
.etb-ai-go[b-zdqmbylths] { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
  .etb-ai-header[b-zdqmbylths] { padding: 14px 14px 4px; }
  .etb-ai-body[b-zdqmbylths] { padding: 8px 14px 4px; }
  .etb-ai-footer[b-zdqmbylths] { padding: 10px 14px; }
  .etb-ai-kbd[b-zdqmbylths] { display: none; }
}
/* /Pages/Templates/Index.razor.rz.scp.css */
/* ── Toolbar (search + archived link) ──────────── */
.templates-toolbar[b-etdyc2azd9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.templates-toolbar .search-bar[b-etdyc2azd9] {
    flex: 1;
    margin-bottom: 0;
}

.archived-link[b-etdyc2azd9] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}

.archived-link:hover[b-etdyc2azd9] {
    color: #4A6B2E;
}

/* ── Import button + batch summary ──────────── */
.import-btn[b-etdyc2azd9] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Mirrors .btn:disabled — the label itself can't be disabled, only its input. */
.import-btn.is-busy[b-etdyc2azd9] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* The flex gap already spaces it from the label text. */
.import-spinner[b-etdyc2azd9] {
    margin-right: 0;
}

.import-summary[b-etdyc2azd9] {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.import-summary-header[b-etdyc2azd9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.import-summary-list[b-etdyc2azd9] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.import-summary-item[b-etdyc2azd9] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.import-summary-icon[b-etdyc2azd9] {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 1px;
}

.import-summary-item.is-ok .import-summary-icon[b-etdyc2azd9] {
    color: #1a9a3a;
}

.import-summary-item.is-failed .import-summary-icon[b-etdyc2azd9],
.import-summary-reason[b-etdyc2azd9] {
    color: #B33C32;
}

.import-summary-reason[b-etdyc2azd9] {
    font-size: 12px;
    margin-top: 2px;
}

/* ── Page container ──────────── */
/* app.css gives .page-content `overflow-x: hidden`, which turns overflow-y into `auto`: the page
   became its own scroll box and cut a card's ⋯ menu off below the last row. `clip` still stops
   sideways scroll without making a scroll box. Scoped to this page: elsewhere the change would
   also alter how sticky elements inside .page-content behave. */
.page-content[b-etdyc2azd9] {
    overflow-x: clip;
}

/* ── Card layout + actions ──────────── */
/* Cards in a row differ in height (description, Shared from line), so the action row is
   pinned to the bottom and the rows line up across the grid. */
.template-card[b-etdyc2azd9] {
    display: flex;
    flex-direction: column;
}

.template-card .card-actions[b-etdyc2azd9] {
    margin-top: auto;
    flex-wrap: nowrap;
    align-items: center;
}

.card-actions-more[b-etdyc2azd9] {
    margin-left: auto;
}

/* While its menu is open the card stops clipping (app.css hides overflow for long titles),
   drops the hover lift (a transform would trap the menu's fixed backdrop inside the card)
   and sits above the next row so the menu isn't covered. */
.template-card.menu-open[b-etdyc2azd9] {
    overflow: visible;
    transform: none;
    position: relative;
    z-index: 30;
}

/* ── Shared-from label ──────────── */
.card-shared[b-etdyc2azd9] {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 11px;
    color: #555;
    margin-bottom: 6px;
}

.card-shared > span[b-etdyc2azd9] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-shared[b-etdyc2azd9]  svg {
    flex-shrink: 0;
}

.edit-shared[b-etdyc2azd9] {
    font-size: 13px;
    margin: 0 0 12px;
}

/* ── Replace design modal ──────────── */
.replace-file-row[b-etdyc2azd9] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.replace-file-row > span[b-etdyc2azd9] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.replace-file-row > .btn[b-etdyc2azd9] {
    cursor: pointer;
    flex-shrink: 0;
}

.replace-file-row.has-error > .btn[b-etdyc2azd9] {
    border-color: #B33C32;
}

@media (max-width: 768px) {
    .templates-toolbar[b-etdyc2azd9] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .archived-link[b-etdyc2azd9] {
        align-self: flex-end;
    }
}
/* /Pages/Templates/NewEmailTemplate.razor.rz.scp.css */
.starter-grid[b-leiue9o2s0] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.starter-card[b-leiue9o2s0] {
    /* Button resets — these cards are <button> so they can be reached by keyboard.
       Without them the browser's default button font and sizing override the card look. */
    font: inherit;
    color: inherit;
    width: 100%;
    margin: 0;
    appearance: none;
    text-decoration: none; /* the locked AI card is a link to the plans */

    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
    text-align: center;
}

.starter-card:hover[b-leiue9o2s0] {
    border-color: #4A6B2E;
    box-shadow: 0 2px 12px rgba(74, 107, 46, .12);
}

/* ── Illustration ──────────── */
/* Hand-drawn SVGs in wwwroot/images/starters, resolved by StarterArt. */
.starter-art[b-leiue9o2s0] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 200 / 130;
    border-bottom: 1px solid #e0e0e0;
    transition: transform .2s;
}

.starter-card:hover .starter-art[b-leiue9o2s0] {
    transform: scale(1.04);
}

.starter-text[b-leiue9o2s0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px 12px;
}

.starter-card strong[b-leiue9o2s0] {
    font-size: 14px;
    color: #1a1a2e;
}

.starter-desc[b-leiue9o2s0] {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.4;
}

.starter-ai[b-leiue9o2s0] {
    border-color: #c4b8ff;
    background: linear-gradient(135deg, #f8f6ff 0%, #fff 100%);
}

.starter-ai:hover[b-leiue9o2s0] {
    border-color: #4A6B2E;
    box-shadow: 0 2px 16px rgba(74, 107, 46, .18);
}

@media (max-width: 768px) {
    .starter-grid[b-leiue9o2s0] {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .starter-text[b-leiue9o2s0] {
        padding: 10px 12px 12px;
    }
}

@media (max-width: 480px) {
    .starter-grid[b-leiue9o2s0] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/Templates/NewPdfTemplate.razor.rz.scp.css */
.starter-grid[b-gqbsalath8] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.starter-card[b-gqbsalath8] {
    /* Button resets — these cards are <button> so they can be reached by keyboard.
       Without them the browser's default button font and sizing override the card look. */
    font: inherit;
    color: inherit;
    width: 100%;
    margin: 0;
    appearance: none;
    text-decoration: none; /* the locked AI card is a link to the plans */

    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
    text-align: center;
}

.starter-card:hover[b-gqbsalath8] {
    border-color: #4A6B2E;
    box-shadow: 0 2px 12px rgba(74, 107, 46, .12);
}

/* ── Illustration ──────────── */
/* Hand-drawn SVGs in wwwroot/images/starters, resolved by StarterArt. */
.starter-art[b-gqbsalath8] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 200 / 130;
    border-bottom: 1px solid #e0e0e0;
    transition: transform .2s;
}

.starter-card:hover .starter-art[b-gqbsalath8] {
    transform: scale(1.04);
}

.starter-text[b-gqbsalath8] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px 12px;
}

.starter-card strong[b-gqbsalath8] {
    font-size: 14px;
    color: #1a1a2e;
}

.starter-desc[b-gqbsalath8] {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.4;
}

.starter-ai[b-gqbsalath8] {
    border-color: #c4b8ff;
    background: linear-gradient(135deg, #f8f6ff 0%, #fff 100%);
}

.starter-ai:hover[b-gqbsalath8] {
    border-color: #4A6B2E;
    box-shadow: 0 2px 16px rgba(74, 107, 46, .18);
}

.starter-import[b-gqbsalath8] {
    border-color: #bcd1a3;
    background: linear-gradient(135deg, #f4f8ee 0%, #fff 100%);
}

.starter-import:hover[b-gqbsalath8] {
    border-color: #4A6B2E;
    box-shadow: 0 2px 16px rgba(74, 107, 46, .18);
}

@media (max-width: 768px) {
    .starter-grid[b-gqbsalath8] {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .starter-text[b-gqbsalath8] {
        padding: 10px 12px 12px;
    }
}

@media (max-width: 480px) {
    .starter-grid[b-gqbsalath8] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/Templates/PdfEditor.razor.rz.scp.css */
/* Pages/Templates/PdfEditor.razor.css
   Light-theme scoped styles for the PDF / Document Template Editor.
*/

/* ── Loading overlay ──────────────────────────────────────── */
.ped-loading-overlay[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}
.ped-loading-spinner[b-ozvcyppcg1] {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #4A6B2E;
  border-radius: 50%;
  animation: ped-spin-b-ozvcyppcg1 0.7s linear infinite;
}
@keyframes ped-spin-b-ozvcyppcg1 { to { transform: rotate(360deg); } }

/* ── Top chrome bar ───────────────────────────────────────── */
/* Pinned to its container's width so it never grows wider than the
   visible area. `width: 100%` not `100vw` — the sidebar lives outside
   `.main-content`, so `100vw` would overshoot by the sidebar width and
   push the page horizontally. Sticky+overflow:hidden lets the right
   section scroll internally when buttons don't fit.
   `top` offsets by the impersonation banner so the two sticky bars stack
   without overlapping. The custom property is 0 when no banner is present. */
.ped-topbar[b-ozvcyppcg1] {
  position: sticky;
  top: var(--impersonation-banner-height, 0px);
  left: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #4A6B2E;
  padding: 0 16px;
  height: 48px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-sizing: border-box;
  overflow: hidden;
}

.ped-topbar-left[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ped-back-btn[b-ozvcyppcg1] {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s;
}
.ped-back-btn:hover[b-ozvcyppcg1] { background: rgba(255,255,255,0.25); text-decoration: none; }

.ped-topbar-logo[b-ozvcyppcg1] {
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.ped-breadcrumb[b-ozvcyppcg1] {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.ped-topbar-right[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  /* Top toolbar can grow beyond viewport when many actions are present.
     Allow horizontal scrolling instead of clipping Save Template off the
     right edge.

     Right-alignment is an auto margin on the first item, not
     justify-content: flex-end — on an overflowing scroll container flex-end
     pushes the excess past the start edge, outside the scrollable region, so
     the leftmost control ends up permanently half-cut on a phone. The auto
     margin right-aligns while there's free space and collapses to zero once
     the row overflows. Mirrors the EmailEditor topbar. */
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ped-topbar-right[b-ozvcyppcg1]::-webkit-scrollbar { display: none; }
.ped-topbar-right > *[b-ozvcyppcg1] { flex-shrink: 0; }
.ped-topbar-right > *:first-child[b-ozvcyppcg1] { margin-left: auto; }

/* All topbar controls share a fixed height + inline-flex centring so the
   row is visually even, even when content includes emoji glyphs. Matches
   the EmailEditor topbar treatment exactly. */
.ped-btn-ghost[b-ozvcyppcg1] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Icon-to-label gap. These are flex containers, so the literal space between the inline SVG
     and the label in the markup is stripped as leading whitespace on an anonymous flex item —
     without a gap the icon butts straight against the text. Only applies when a button actually
     has two children, so text-only buttons are untouched. */
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  box-sizing: border-box;
  padding: 0 12px;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.ped-btn-ghost:hover[b-ozvcyppcg1] { background: rgba(255,255,255,0.22); }
.ped-btn-ghost:disabled[b-ozvcyppcg1] { opacity: 0.5; cursor: not-allowed; }

.ped-btn-primary[b-ozvcyppcg1] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Icon-to-label gap. These are flex containers, so the literal space between the inline SVG
     and the label in the markup is stripped as leading whitespace on an anonymous flex item —
     without a gap the icon butts straight against the text. Only applies when a button actually
     has two children, so text-only buttons are untouched. */
  gap: 6px;
  background: #fff;
  color: #4A6B2E;
  border: 1px solid #fff;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 0 14px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.ped-btn-primary:hover[b-ozvcyppcg1] { background: #E5EDD8; border-color: #E5EDD8; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.ped-btn-primary:disabled[b-ozvcyppcg1] { opacity: 0.5; cursor: not-allowed; }

/* ── Editor layout ────────────────────────────────────────── */
/* The layout owns its own horizontal scroll: when the natural editor width
   (260px sidebar + canvas + optional 320px block sidebar) exceeds the
   available space, this element scrolls instead of squashing the canvas.
   We can't rely on `body` scroll because the global `.app-shell { overflow: hidden }`
   on desktop clips the page, and we can't rely on the inner `.pbd-designer-scroll`
   alone because its `justify-content: center` traps the right side of a wider-
   than-container canvas (a long-standing flexbox quirk). Keeping the scroll
   here means the sidebar and canvas slide together, which matches every other
   editor application. */
.ped-layout[b-ozvcyppcg1] {
  display: flex;
  flex: 1;
  min-height: 0;
  background: #f0f0f0;
  /* Sized to exactly fill the remaining space after the 48px sticky topbar
     and the impersonation banner. Uses viewport-based calc rather than
     `100%` because percentage-height resolution on flex-item descendants
     is inconsistent across browsers. Mobile override below subtracts the
     52px global mobile-topbar. */
  height: calc(100dvh - 48px - var(--env-banner-height, 0px) - var(--impersonation-banner-height, 0px));
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.ped-sidebar[b-ozvcyppcg1] {
  /* Fixed width — `min-width` alone lets the flex container stretch the sidebar when a
     section expands with wider inputs (e.g. Page Setup's 2-column margins grid). Locking
     `width` + `flex-shrink: 0` keeps it stable at 260px regardless of content. */
  width: 260px;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  background: #f8f8f8;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.ped-sidebar-section[b-ozvcyppcg1] {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
  min-width: 0;
}
.ped-sidebar-section:last-child[b-ozvcyppcg1] { border-bottom: none; }

.ped-field-label[b-ozvcyppcg1] {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.ped-input[b-ozvcyppcg1] {
  width: 100%;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  font-size: 13px;
  color: #1a1a2e;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ped-input:focus[b-ozvcyppcg1] {
  border-color: #4A6B2E;
  box-shadow: 0 0 0 3px #E5EDD8;
}
.ped-input.has-error[b-ozvcyppcg1] {
  border-color: #B33C32;
}

.ped-input-sm[b-ozvcyppcg1] {
  padding: 3px 6px;
  font-size: 11px;
  height: 28px;
  box-sizing: border-box;
}

/* ── Collapsible section toggle ──────────────────────────── */
.ped-section-toggle[b-ozvcyppcg1] {
  /* Button resets — these are <button> so they can be operated by keyboard. */
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.ped-section-toggle:hover .ped-field-label[b-ozvcyppcg1] { color: #4A6B2E; }
.ped-toggle-icon[b-ozvcyppcg1] {
  font-size: 14px;
  color: #6b6b6b;
  font-weight: 700;
  line-height: 1;
}
.ped-section-body[b-ozvcyppcg1] {
  padding-top: 4px;
}

/* ── Color picker ────────────────────────────────────────── */
.ped-color-picker[b-ozvcyppcg1] {
  width: 100%;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
  background: #fff;
}

/* Output type list */
.ped-type-list[b-ozvcyppcg1] { display: flex; flex-direction: column; gap: 2px; }
.ped-type-item[b-ozvcyppcg1] {
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 11px;
  color: #6b6b6b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s, color 0.12s;
  border: 1px solid transparent;
}
.ped-type-item:hover[b-ozvcyppcg1] { background: #E5EDD8; color: #4A6B2E; }
/* Category divider in the font list. Set in the UI face, in the accent, with a rule running out to
   the edge, so it reads as a section break rather than one more font entry that won't click. */
.ped-type-group[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 0 2px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4A6B2E;
  cursor: default;
  user-select: none;
}
.ped-type-group[b-ozvcyppcg1]::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.ped-type-group:first-child[b-ozvcyppcg1] { margin-top: 0; }
.ped-type-disabled[b-ozvcyppcg1] { opacity: 0.5; cursor: default; pointer-events: none; }
.ped-type-active[b-ozvcyppcg1] {
  background: #E5EDD8 !important;
  border-color: #4A6B2E !important;
  color: #4A6B2E !important;
  font-weight: 600;
}

/* Field chips */
.ped-fields-section .ped-field-chip[b-ozvcyppcg1] {
  display: block;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  padding: 4px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #4A6B2E;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.12s, border-color 0.12s;
}
.ped-field-chip:hover[b-ozvcyppcg1] {
  background: #E5EDD8;
  border-color: #4A6B2E;
}

.ped-add-field-btn[b-ozvcyppcg1] {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 4px 8px;
  border: 1px dashed #d1d1d1;
  border-radius: 5px;
  background: none;
  font-size: 10px;
  color: #6b6b6b;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.ped-add-field-btn:hover[b-ozvcyppcg1] { border-color: #4A6B2E; color: #4A6B2E; }

/* ── Page-margin header / footer band ─────────────────────────────────────── */
/* The strip Gotenberg keeps free at the top and bottom of every page and paints the header or
   footer into. ONE rule for both surfaces — the design canvas and the preview sheet — because two
   near-identical rules is exactly how the editor came to look unlike the preview. `::deep` because
   the preview injects its band as a MarkupString, which never carries the scope attribute.
   White like the paper it is part of; the dashed inner edge is the only thing marking it as page
   furniture rather than a block you could drop something into. */
/* Geometry measured off a real Gotenberg render, not guessed: with a 40pt reserved band the header
   baseline lands 23.3pt down and the footer baseline 23.3pt into the bottom band — 16.8pt of space
   above the text and 16.8pt below. The text is CENTRED in the strip. Horizontal inset is 40pt too,
   matching `padding: 0 40pt` in BuildHeaderFooterHtml (40px would be a quarter short).
   Every layout rule lives here rather than on the -abs modifier, so the canvas and the preview
   cannot drift apart again. Only the band's height is set inline, from HeaderFooterReserveMm. */
[b-ozvcyppcg1] .ped-page-margin {
  display: flex;
  align-items: center;
  /* Vertical only. The horizontal inset and the text alignment arrive inline from
     PdfPageChrome.BandCss — the same call the export makes — so they are settings, not CSS. */
  padding: 0;
  font-size: 9pt;
  line-height: 1.3;
  color: #555;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  /* Same as the export's header/footer body. pre-wrap, not nowrap: the exported band wraps and
     preserves runs of spaces, so anything else here shows the author a line the PDF won't print.
     overflow:hidden still keeps an overlong header inside its strip. */
  white-space: pre-wrap;
}
[b-ozvcyppcg1] .ped-page-margin-top { border-bottom: 1px dashed #e0e0e0; }
[b-ozvcyppcg1] .ped-page-margin-bottom { border-top: 1px dashed #e0e0e0; }

/* Canvas-only: positioning, and nothing else. The preview stacks its bands in flow; every visual
   rule stays in .ped-page-margin above so the two surfaces render identically. */
[b-ozvcyppcg1] .ped-page-margin-abs {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.ped-check-row[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 12px;
  color: #1a1a2e;
  cursor: pointer;
}
.ped-check-row input[b-ozvcyppcg1] { accent-color: #4A6B2E; cursor: pointer; }
.ped-check-row input:disabled[b-ozvcyppcg1] { cursor: default; }

.ped-hint-text[b-ozvcyppcg1] { font-size: 11px; color: #555; font-style: italic; }

/* The same class captions many inputs (page settings, Field Properties). As a caption it reads
   like every other field caption: ink, upright, not a grey italic aside. */
label.ped-hint-text[b-ozvcyppcg1] {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: #1a1a2e;
}
.ped-hint-text code[b-ozvcyppcg1] {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  background: #f0f0f0;
  border-radius: 3px;
  padding: 0 3px;
}

/* Live sample of the line border, at 1:1. The border on the page is a hairline at canvas zoom, so
   switching Solid → Dashed there is easy to miss; this shows the same CSS at full size. */
.ped-border-swatch[b-ozvcyppcg1] {
  height: 30px;
  margin-top: 8px;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
}

/* Small one-click preset buttons — currently the footer page-number presets. */
.ped-chip[b-ozvcyppcg1] {
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid #d1d1d1;
  border-radius: 999px;
  background: #fff;
  color: #1a1a2e;
  cursor: pointer;
}
.ped-chip:hover:not(:disabled)[b-ozvcyppcg1] { border-color: #4A6B2E; color: #4A6B2E; }
.ped-chip:disabled[b-ozvcyppcg1] { opacity: 0.5; cursor: default; }

/* Background-style gallery — clickable thumbnails of each preset, grouped by category */
.ped-bg-cat-label[b-ozvcyppcg1] {
  font-size: 10px;
  font-weight: 600;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 10px 0 2px;
}
.ped-bg-gallery[b-ozvcyppcg1] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.ped-bg-swatch[b-ozvcyppcg1] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.ped-bg-swatch:hover[b-ozvcyppcg1] { background: #E5EDD8; }
.ped-bg-swatch:disabled[b-ozvcyppcg1] { opacity: 0.5; cursor: default; }
.ped-bg-active[b-ozvcyppcg1] {
  border-color: #4A6B2E !important;
  background: #E5EDD8 !important;
}
.ped-bg-thumb[b-ozvcyppcg1] {
  width: 100%;
  height: 34px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ped-bg-none[b-ozvcyppcg1] { color: #b0b0b0; font-size: 14px; }
.ped-bg-name[b-ozvcyppcg1] {
  font-size: 9px;
  color: #555;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ped-bg-active .ped-bg-name[b-ozvcyppcg1] { color: #4A6B2E; font-weight: 600; }

/* ── Main editor area ─────────────────────────────────────── */
/* `min-width: max-content` (instead of `0`) keeps the canvas at its real
   pixel width even when the viewport is narrower than the editor — the
   parent `.ped-layout` scrolls horizontally instead of letting the canvas
   shrink, which would distort drag coordinates. Wide screens are unaffected:
   `flex: 1` still expands main to fill available space when there's slack. */
.ped-main[b-ozvcyppcg1] {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: max-content;
  background: #ffffff;
}

/* Tab bar */
.ped-tabs[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
  padding: 0 16px;
  gap: 0;
  flex-shrink: 0;
}

.ped-tab[b-ozvcyppcg1] {
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.ped-tab:hover[b-ozvcyppcg1] { color: #1a1a2e; }
.ped-tab-active[b-ozvcyppcg1] {
  color: #4A6B2E !important;
  border-bottom-color: #4A6B2E !important;
  font-weight: 600;
}

.ped-tab-meta[b-ozvcyppcg1] {
  margin-left: auto;
  font-size: 11px;
  color: #6b6b6b;
  padding: 10px 0;
  font-style: italic;
}

/* ── Tab panel wrapper (keeps textarea in DOM for undo) ── */
.ped-tab-panel[b-ozvcyppcg1] {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Preview panel */
.ped-preview-panel[b-ozvcyppcg1] {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f0f0f0;
}
.ped-preview-label[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  margin-bottom: 14px;
}
.pbd-export-btn[b-ozvcyppcg1] {
  background: #4A6B2E;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  transition: background 0.15s;
}
.pbd-export-btn:hover[b-ozvcyppcg1] { background: #3B5525; }
.pbd-export-btn:disabled[b-ozvcyppcg1] { opacity: 0.6; cursor: not-allowed; }
.ped-preview-content[b-ozvcyppcg1] {
  /* Flush page-sheet matching .pbd-grid-canvas in the editor. Typography, font,
     padding, and line-height all come from the shared BlocksToHtmlRenderer's
     <style> block emitted inside the fragment — so preview ≡ export pixel-for-pixel.
     Anything we override here would immediately reintroduce drift. */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: width 0.3s ease, min-height 0.3s ease;
}

/* Multi-page preview — one .ped-preview-content per PDF page, stacked vertically
   with a small label between pages so the user can tell where breaks fall. */
.ped-preview-pages-wrap[b-ozvcyppcg1] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ped-preview-page-label[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  margin-top: 4px;
}

.ped-preview-page-label:first-child[b-ozvcyppcg1] {
  margin-top: 0;
}

.ped-preview-page-count[b-ozvcyppcg1] {
  margin-left: 8px;
  color: #6b6b6b;
  font-weight: 500;
}

/* Merge tag highlight in preview */
[b-ozvcyppcg1] .ped-preview-tag {
  background: #fef3c7;
  color: #92400e;
  padding: 0 3px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* Scriban keyword highlight in preview */
[b-ozvcyppcg1] .ped-preview-keyword {
  background: #f0f0f0;
  color: #6b6b6b;
  padding: 0 3px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* ── Block editor right sidebar ────────────────────────── */
/* On full-size screens (≥1280px wide — room for sidebar + canvas + block
   editor side-by-side) this lives in-flow as a flex child of `.ped-layout`,
   pushing the canvas instead of overlaying it. On narrower screens the
   media query below swaps to a fixed overlay so the canvas isn't squashed. */
.ped-block-sidebar[b-ozvcyppcg1] {
  width: 320px;
  flex-shrink: 0;
  background: #ffffff;
  border-left: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  animation: ped-sidebar-slide-in-b-ozvcyppcg1 0.2s ease-out;
}

/* Below 1280px the editor doesn't have room for sidebar + canvas + block
   editor side-by-side. Pin the block editor to the viewport's right edge so
   it overlays the canvas instead of pushing it. `top` clears the editor
   topbar + env-banner; the mobile @media block further down adds the
   global mobile-topbar to that. Height uses `100dvh` so the footer (Done)
   sits at the visible bottom on browsers with floating chrome. */
@media (max-width: 1280px) {
  .ped-block-sidebar[b-ozvcyppcg1] {
    position: fixed;
    top: calc(48px + var(--env-banner-height, 0px) + var(--impersonation-banner-height, 0px));
    right: 0;
    height: calc(100dvh - 48px - var(--env-banner-height, 0px) - var(--impersonation-banner-height, 0px));
    width: min(360px, 92vw);
    z-index: 500;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  }
}

/* Measurement-driven overlay (applied via class from PdfEditor): even on wide screens the
   block editor overlays the canvas when the in-flow layout (left sidebar + canvas sheet +
   block sidebar) wouldn't fit — e.g. a wide landscape sheet — so it never gets pushed
   off-screen behind a horizontal scroll. Mirrors the narrow-screen rule above. */
.ped-block-sidebar.ped-block-sidebar-overlay[b-ozvcyppcg1] {
  position: fixed;
  top: calc(48px + var(--env-banner-height, 0px) + var(--impersonation-banner-height, 0px));
  right: 0;
  height: calc(100dvh - 48px - var(--env-banner-height, 0px) - var(--impersonation-banner-height, 0px));
  width: min(360px, 92vw);
  z-index: 500;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
}

@keyframes ped-sidebar-slide-in-b-ozvcyppcg1 {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.ped-block-sidebar-header[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  flex-shrink: 0;
}

.ped-block-sidebar-body[b-ozvcyppcg1] {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.ped-block-sidebar-footer[b-ozvcyppcg1] {
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ── Image / QR dialog ─────────────────────────────────── */
/* Centering uses `margin: auto` on `.ped-dialog` (see the global .modal-backdrop
   note for why). Backdrop stays `align-items: flex-start` so tall dialogs
   top-pin instead of clipping their header above the viewport. */
.ped-dialog-overlay[b-ozvcyppcg1] {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Matches the global .modal-backdrop (1000) and the Email editor. This was 10000, which put
     an editor dialog above CookieBanner (2000) and above LegalReacceptanceGate (3000) — the two
     overlays app.css documents as intentionally always-on-top — so a gate raised while a dialog
     was open would have rendered behind it. 1000 still clears the mobile topbar (200), the
     env banner (210) and the sidebar drawer (160). */
  z-index: 1000;
  backdrop-filter: blur(2px);
  overflow-y: auto;
  /* max() with env(safe-area-inset-*) keeps the modal clear of the iOS notch
     and home indicator without shrinking padding on devices that don't have them. */
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.ped-dialog[b-ozvcyppcg1] {
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 12px;
  width: 480px;
  max-width: 100%;
  /* See `.modal { margin: auto }` in app.css — centers when free space
     exists, top-pins (margin collapses to 0) when dialog exceeds backdrop. */
  margin: auto;
  /* dvh tracks the live mobile viewport (excludes the dynamic URL bar) so the
     dialog never extends past the visible area; vh fallback for older browsers. */
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.ped-dialog-header[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  flex-shrink: 0;
}

.ped-dialog-close[b-ozvcyppcg1] {
  background: none;
  border: none;
  color: #6b6b6b;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.12s;
}
.ped-dialog-close:hover[b-ozvcyppcg1] { background: #f0f0f0; color: #1a1a2e; }

.ped-dialog-body[b-ozvcyppcg1] {
  padding: 18px;
  flex: 1 1 auto;
  min-height: 0;        /* allow shrinking below content size so overflow-y kicks in */
  overflow-y: auto;     /* body scrolls; header + footer stay pinned */
  -webkit-overflow-scrolling: touch;
}

.ped-dialog-footer[b-ozvcyppcg1] {
  padding: 12px 18px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Dialog buttons (consistent with EmailEditor) */
.ped-dialog-btn-ghost[b-ozvcyppcg1] {
  background: transparent;
  color: #555;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  transition: background 0.15s, border-color 0.15s;
}
.ped-dialog-btn-ghost:hover[b-ozvcyppcg1] { background: #f0f0f0; }

/* Sized to the global .btn in app.css (8px 16px, 13px, min-height 40px→36px here) rather than
   the 6px/12px these used to be. The Email editor's dialog buttons already matched the house
   values, so the two editors were visibly different and this one was the outlier — aligning
   upward keeps the tap target at a sane size instead of shrinking both to the smaller of the two. */
.ped-dialog-btn-primary[b-ozvcyppcg1] {
  background: #4A6B2E;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 0 transparent;
}
.ped-dialog-btn-primary:hover[b-ozvcyppcg1] { background: #3B5525; box-shadow: 0 2px 12px rgba(74, 107, 46, 0.25); }
.ped-dialog-btn-primary:disabled[b-ozvcyppcg1] { opacity: 0.5; cursor: not-allowed; }

/* ── Import PDF: centered upload dropzone ────────────────── */
.ped-pdf-upload-zone[b-ozvcyppcg1] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.ped-pdf-upload-content[b-ozvcyppcg1] { text-align: center; max-width: 380px; }
.ped-pdf-upload-icon[b-ozvcyppcg1] {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  background: #ffffff;
  border: 2px dashed #d1d1d1;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #4A6B2E;
}
/* ── Import PDF: viewer layout ───────────────────────────── */
.ped-pdf-viewer-area[b-ozvcyppcg1] {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.ped-pdf-page-nav[b-ozvcyppcg1] {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.ped-pdf-zoom-controls[b-ozvcyppcg1] {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
}
.ped-pdf-canvas-wrapper[b-ozvcyppcg1] {
  flex: 1; overflow: auto; padding: 20px;
  display: flex; justify-content: center;
  background: #f0f0f0;
}
.ped-pdf-canvas-container[b-ozvcyppcg1] {
  position: relative; display: inline-block;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  background: #fff;
}
.ped-pdf-canvas-container canvas[b-ozvcyppcg1] { display: block; }

/* ── Import PDF: overlay ─────────────────────────────────── */
.ped-pdf-overlay[b-ozvcyppcg1] {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  cursor: default;
}
.ped-pdf-overlay-drawing[b-ozvcyppcg1] { cursor: crosshair; }

/* ── Import PDF: field boxes ─────────────────────────────── */
.ped-pdf-field-box[b-ozvcyppcg1] {
  position: absolute;
  border: 2px dashed #4A6B2E;
  background: rgba(74, 107, 46, 0.08);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}
.ped-pdf-field-acro[b-ozvcyppcg1] { border-color: #4A6B2E; }
.ped-pdf-field-drawn[b-ozvcyppcg1] { border-color: #27ae60; background: rgba(39, 174, 96, 0.08); }
.ped-pdf-field-selected[b-ozvcyppcg1] {
  border-style: solid; border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.10); z-index: 2;
}
.ped-pdf-field-label[b-ozvcyppcg1] {
  font-size: 10px; color: #4A6B2E; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 4px; font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.ped-pdf-field-drawn .ped-pdf-field-label[b-ozvcyppcg1] { color: #27ae60; }
.ped-pdf-field-selected .ped-pdf-field-label[b-ozvcyppcg1] { color: #e74c3c; }

/* ── Field type icon overlay ── */
.ped-field-type-icon[b-ozvcyppcg1] {
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 9px;
  line-height: 1;
  color: #4A6B2E;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  padding: 1px 2px;
  pointer-events: none;
  z-index: 1;
}
.ped-pdf-field-drawn .ped-field-type-icon[b-ozvcyppcg1] { color: #27ae60; }
.ped-pdf-field-selected .ped-field-type-icon[b-ozvcyppcg1] { color: #e74c3c; }

/* ── Drawn field dimension & position labels ─────────────── */
.ped-field-dim[b-ozvcyppcg1] {
  position: absolute;
  bottom: -1px;
  right: -1px;
  font-size: 8px;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 4px;
  border-radius: 3px 0 0 0;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1.3;
}
.ped-field-pos[b-ozvcyppcg1] {
  position: absolute;
  top: -1px;
  left: -1px;
  font-size: 8px;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 4px;
  border-radius: 0 0 3px 0;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1.3;
}

/* ── Drag-to-move cursors ────────────────────────────────── */
.ped-pdf-field-draggable[b-ozvcyppcg1] {
  cursor: grab;
}
.ped-pdf-field-draggable:active[b-ozvcyppcg1],
.ped-pdf-field-grabbing[b-ozvcyppcg1] {
  cursor: grabbing;
}

/* ── Snap alignment guides ──────────────────────────────── */
/* 2px line pre-offset in C# (px - 1, clamped ≥ 0) so the stripe is already centred on the true
   pixel edge without a CSS transform. High z-index so selected field stacking contexts (z:2)
   can't visually cover the guide when the dragged field overlaps the snap target's edge. */
.ped-snap-guide-h[b-ozvcyppcg1] {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #e74c3c;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 0 0 0.5px rgba(231, 76, 60, 0.25);
}
.ped-snap-guide-v[b-ozvcyppcg1] {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e74c3c;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 0 0 0.5px rgba(231, 76, 60, 0.25);
}

/* ── Import PDF: field layout with label ─────────────────── */
.ped-pdf-field-wrapper[b-ozvcyppcg1] {
  display: flex; width: 100%; height: 100%; overflow: hidden;
}
.ped-pdf-field-layout-top[b-ozvcyppcg1] { flex-direction: column; }
.ped-pdf-field-layout-left[b-ozvcyppcg1] { flex-direction: row; align-items: center; }

.ped-pdf-field-label-text[b-ozvcyppcg1] {
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 3px; pointer-events: none; flex-shrink: 0;
  font-size: 9px; color: #333;
}
.ped-pdf-field-layout-left .ped-pdf-field-label-text[b-ozvcyppcg1] { margin-right: 4px; }

.ped-pdf-field-value[b-ozvcyppcg1] {
  font-size: 10px; color: #4A6B2E; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 3px; font-family: 'JetBrains Mono', monospace; font-weight: 600;
  flex: 1; box-sizing: border-box;
}
.ped-pdf-field-drawn .ped-pdf-field-value[b-ozvcyppcg1] { color: #27ae60; }
.ped-pdf-field-selected .ped-pdf-field-value[b-ozvcyppcg1] { color: #e74c3c; }

/* ── Import PDF: style toggle buttons ────────────────────── */
.ped-style-btn[b-ozvcyppcg1] {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px; font-size: 11px; border: 1px solid #d1d1d1;
  border-radius: 4px; background: #fff; color: #555; cursor: pointer;
  transition: all 0.15s; height: 28px; box-sizing: border-box;
}
.ped-style-btn:hover[b-ozvcyppcg1] { border-color: #4A6B2E; color: #4A6B2E; }
.ped-style-btn-active[b-ozvcyppcg1] {
  background: #E5EDD8; border-color: #4A6B2E; color: #4A6B2E; font-weight: 700;
}

/* ── Import PDF: property section heading ────────────────── */
.ped-prop-heading[b-ozvcyppcg1] {
  display: block; margin: 10px 0 4px; font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em; color: #6b6b6b;
}

/* ── Import PDF: draw preview ────────────────────────────── */
.ped-pdf-draw-preview[b-ozvcyppcg1] {
  position: absolute;
  border: 2px solid #27ae60;
  background: rgba(39, 174, 96, 0.12);
  pointer-events: none; box-sizing: border-box;
}

/* ── Import PDF: field list in sidebar ───────────────────── */
.ped-import-field-list[b-ozvcyppcg1] { display: flex; flex-direction: column; gap: 2px; }
.ped-import-field-item[b-ozvcyppcg1] {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px; border-radius: 4px; cursor: pointer;
  font-size: 11px; color: #1a1a2e;
}
.ped-import-field-item:hover[b-ozvcyppcg1] { background: #E5EDD8; }
.ped-import-field-active[b-ozvcyppcg1] {
  background: #E5EDD8;
  border-left: 3px solid #4A6B2E;
  padding-left: 3px;
}
.ped-import-field-icon[b-ozvcyppcg1] {
  width: 16px; height: 16px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0;
  background: #4A6B2E;
}
.ped-import-field-name[b-ozvcyppcg1] {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
}
.ped-import-field-page[b-ozvcyppcg1] { font-size: 10px; color: #6b6b6b; flex-shrink: 0; }

/* ── Import PDF: draw field button ───────────────────────── */
.ped-draw-btn[b-ozvcyppcg1] {
  width: 100%; padding: 7px;
  background: #4A6B2E; color: #fff;
  border: none; border-radius: 5px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.ped-draw-btn:hover[b-ozvcyppcg1] { background: #3B5525; }
.ped-draw-btn-active[b-ozvcyppcg1] { background: #e74c3c; }
.ped-draw-btn-active:hover[b-ozvcyppcg1] { background: #c0392b; }

/* ── Import PDF: detected-field review rows ──────────────── */
.ped-detect-page-label[b-ozvcyppcg1] {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6b6b;
  margin: 12px 0 4px;
}

.ped-detect-row[b-ozvcyppcg1] {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}

.ped-detect-row-main[b-ozvcyppcg1] { flex: 1; min-width: 0; }

/* The crop of the real page behind each candidate. The size is declared here AND as
   width/height attributes on the element, and renderRegion reproduces exactly these
   numbers — every row is the same height from first paint, so the dialog doesn't
   resize under the user once the crops are drawn. */
.ped-detect-preview[b-ozvcyppcg1] {
  display: block;
  width: 300px;
  height: 34px;
  max-width: 100%;
  margin: 5px 0 3px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
}

.ped-detect-row-meta[b-ozvcyppcg1] {
  font-size: 10px;
  color: #6b6b6b;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Mobile sidebar toggle (hidden on desktop) ─────────── */
.ped-sidebar-toggle[b-ozvcyppcg1] { display: none; }
.ped-sidebar-backdrop[b-ozvcyppcg1] { display: none; }
/* No backdrop for the block-edit drawer: the drawer floats over only the
   right portion of the canvas, so the left sidebar (template settings)
   stays visible and interactive. The ✕ button is the dismiss affordance —
   a full-page scrim would hide the template settings field and break the
   workflow of editing one field while referencing settings on the left. */
.ped-block-sidebar-backdrop[b-ozvcyppcg1] { display: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Topbar stays sticky to the viewport so it remains usable while the editor
     canvas scrolls horizontally underneath it. `position: sticky; left: 0`
     anchors it during horizontal scroll; `width: 100vw` keeps it viewport-sized
     instead of stretching with the (wider-than-viewport) editor layout.

     Locked to a single 48px row (no flex-wrap): the sidebar drawer is fixed at
     `top: 48px` and would be visually clipped if the topbar grew vertically.
     Right-side buttons that don't fit are reachable by swiping the right
     section horizontally — matches the standard mobile editor toolbar pattern. */
  .ped-topbar[b-ozvcyppcg1] {
    position: sticky;
    top: 52px;
    left: 0;
    z-index: 50;
    height: 48px;
    flex-wrap: nowrap;
    padding: 6px 10px;
    gap: 6px;
    width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }
  .ped-topbar-left[b-ozvcyppcg1] {
    gap: 6px;
    flex-shrink: 0;
  }
  .ped-topbar-right[b-ozvcyppcg1] {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    /* Hide the inline scrollbar so the topbar stays visually clean — the
       horizontal swipe gesture is the affordance. */
    scrollbar-width: none;
  }
  .ped-topbar-right[b-ozvcyppcg1]::-webkit-scrollbar { display: none; }
  .ped-topbar-right > *[b-ozvcyppcg1] { flex-shrink: 0; }
  .ped-btn-ghost[b-ozvcyppcg1], .ped-btn-primary[b-ozvcyppcg1] {
    padding: 4px 8px;
    font-size: 11px;
  }
  /* Subtract the global 52px mobile-topbar + 48px editor topbar so the
     layout fits exactly inside `.main-content`. env-banner is forced to 0
     at this breakpoint so we omit it. */
  .ped-layout[b-ozvcyppcg1] {
    height: calc(100dvh - 52px - 48px - var(--impersonation-banner-height, 0px));
    min-height: 0;
  }
  .ped-sidebar-toggle[b-ozvcyppcg1] { display: inline-block; }
  .ped-topbar-logo[b-ozvcyppcg1], .ped-breadcrumb[b-ozvcyppcg1] { display: none; }

  /* Mobile drawers pin to the viewport (so they don't scroll with the
     canvas). Top offset = global 52px mobile-topbar + 48px editor topbar
     (env-banner is forced to 0 at this breakpoint). Height uses `100dvh`
     instead of `bottom: 0` so the drawer footer stays inside the visible
     viewport on browsers that shrink the viewport with floating chrome. */
  .ped-sidebar[b-ozvcyppcg1] {
    display: none;
    position: fixed;
    top: calc(48px + 52px + var(--impersonation-banner-height, 0px));
    left: 0;
    height: calc(100dvh - 48px - 52px - var(--impersonation-banner-height, 0px));
    z-index: 500;
    width: 260px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .ped-sidebar.ped-sidebar-open[b-ozvcyppcg1] {
    display: block;
  }
  .ped-block-sidebar[b-ozvcyppcg1] {
    top: calc(48px + 52px + var(--impersonation-banner-height, 0px));
    height: calc(100dvh - 48px - 52px - var(--impersonation-banner-height, 0px));
  }

  .ped-sidebar-backdrop[b-ozvcyppcg1] {
    display: block;
    position: fixed;
    inset: 0;
    top: calc(48px + 52px + var(--impersonation-banner-height, 0px));
    background: rgba(0,0,0,0.3);
    z-index: 499;
  }

  /* Block-edit drawer / backdrop overlay rules are now defined at the default
     scope (apply at every screen size) — see `.ped-block-sidebar` and
     `.ped-block-sidebar-backdrop` higher in this file. */

  /* `.ped-main { min-width: max-content }` is set in the desktop rule and
     applies here too — the parent `.ped-layout` provides the horizontal
     scrollbar. Just trim the canvas padding for mobile. */
  .pbd-designer-scroll[b-ozvcyppcg1] {
    padding: 12px;
    -webkit-overflow-scrolling: touch;
  }

}

/* ── AI Generate modal ──────────────────────────────────── */

.ped-ai-dialog[b-ozvcyppcg1] {
  width: 540px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
}

.ped-ai-textarea[b-ozvcyppcg1] {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  /* Breathing room below the helper text that sits directly above it in the AI dialog. */
  margin-top: 12px;
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
}

.ped-ai-textarea:focus[b-ozvcyppcg1] {
  outline: none;
  border-color: #4A6B2E;
  box-shadow: 0 0 0 2px rgba(74, 107, 46, .15);
}

.ped-ai-textarea:disabled[b-ozvcyppcg1] {
  background: #f5f5f5;
  cursor: not-allowed;
}

/* ── AI loading overlay ── */

.ped-ai-loading[b-ozvcyppcg1] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 220px;
  gap: 20px;
}

.ped-ai-loading-spinner[b-ozvcyppcg1] {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ped-ai-loading-ring[b-ozvcyppcg1] {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #E5EDD8;
  border-top-color: #4A6B2E;
  border-right-color: #4A6B2E;
  animation: ped-spin-b-ozvcyppcg1 1s linear infinite;
}

.ped-ai-loading-icon[b-ozvcyppcg1] {
  font-size: 28px;
  animation: ped-ai-pop-b-ozvcyppcg1 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
  z-index: 1;
}

.ped-ai-loading-text[b-ozvcyppcg1] {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  animation: ped-ai-fade-up-b-ozvcyppcg1 0.3s ease-out;
  text-align: center;
  min-height: 20px;
}

.ped-ai-loading-sub[b-ozvcyppcg1] {
  font-size: 12px;
  color: #6b6b6b;
  margin: -10px 0 0;
}

@keyframes ped-ai-pop-b-ozvcyppcg1 {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

@keyframes ped-ai-fade-up-b-ozvcyppcg1 {
  0%   { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

/* ── Keyboard shortcuts panel ─────────────────────────────── */

.ped-shortcuts-group-title[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b6b;
  margin: 14px 0 4px;
}

.ped-shortcuts-group-title:first-child[b-ozvcyppcg1] {
  margin-top: 0;
}

.ped-shortcuts-table[b-ozvcyppcg1] {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}

.ped-shortcuts-table td[b-ozvcyppcg1] {
  padding: 6px 8px;
  font-size: 12px;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f0f0;
}

.ped-shortcuts-table td:first-child[b-ozvcyppcg1] {
  white-space: nowrap;
  width: 1%;
  padding-right: 16px;
  vertical-align: top;
}

/* Icon cell for the "Block toolbar" group — same kbd-style chrome so the
   icon rows line up with the keyboard-shortcut rows. */
.ped-shortcuts-icon[b-ozvcyppcg1] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  background: #f0f0f0;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  color: #555;
}

.ped-shortcuts-table td:last-child[b-ozvcyppcg1] {
  /* Description column wraps freely on narrow viewports so the kbd column never
     gets squeezed below the badge widths. */
  word-break: break-word;
}

.ped-kbd[b-ozvcyppcg1] {
  display: inline-block;
  padding: 2px 6px;
  background: #f0f0f0;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  line-height: 1.4;
  margin-right: 2px;
  min-width: 20px;
  text-align: center;
}

/* ── Dialogs clear the mobile topbar ──────────────────────────────────────── */
/* The fixed 52px .mobile-topbar shows at 768px and below, so the offset starts
   there rather than at 600px. Top padding = bar + a 12px gap, as .modal-backdrop
   does, so the header and ✕ never sit behind the bar; max-height subtracts both
   paddings so a tall dialog scrolls inside itself. */
@media (max-width: 768px) {
  .ped-dialog-overlay[b-ozvcyppcg1] {
    padding: calc(env(safe-area-inset-top, 0px) + 64px) 8px max(12px, env(safe-area-inset-bottom));
  }
  .ped-dialog[b-ozvcyppcg1] {
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px) - max(12px, env(safe-area-inset-bottom, 0px)));
  }
}

/* ── Mobile / narrow-viewport tweaks for the shortcuts dialog ─────────────── */
@media (max-width: 600px) {
  .ped-dialog[b-ozvcyppcg1] {
    border-radius: 10px;
  }
  .ped-dialog-header[b-ozvcyppcg1] { padding: 12px 14px; font-size: 12px; }
  .ped-dialog-body[b-ozvcyppcg1]   { padding: 12px 14px; }
  .ped-dialog-footer[b-ozvcyppcg1] { padding: 10px 14px; }

  .ped-shortcuts-table td[b-ozvcyppcg1] {
    padding: 5px 6px;
    font-size: 11.5px;
  }
  .ped-shortcuts-table td:first-child[b-ozvcyppcg1] {
    padding-right: 10px;
  }
  .ped-shortcuts-group-title[b-ozvcyppcg1] {
    font-size: 10.5px;
    margin: 12px 0 4px;
  }
  .ped-kbd[b-ozvcyppcg1] {
    padding: 1px 5px;
    font-size: 10.5px;
    min-width: 18px;
  }
}

/* ── Field Presets ── */

.ped-preset-list[b-ozvcyppcg1] {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.ped-preset-item[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ped-preset-apply[b-ozvcyppcg1] {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: #1a1a2e;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.ped-preset-apply:hover:not(:disabled)[b-ozvcyppcg1] {
  background: #f5f3ff;
  border-color: #4A6B2E;
}

.ped-preset-apply:disabled[b-ozvcyppcg1] {
  opacity: 0.5;
  cursor: default;
}

.ped-preset-type-badge[b-ozvcyppcg1] {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: #4A6B2E;
  background: #E5EDD8;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.ped-preset-name[b-ozvcyppcg1] {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ped-preset-delete[b-ozvcyppcg1] {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #6b6b6b;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.ped-preset-delete:hover[b-ozvcyppcg1] {
  color: #e74c3c;
  background: #fff5f5;
  border-color: #fca5a5;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PDF Block Designer (.pbd-*)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Palette grid (sidebar) ────────────────────────────────────────────────── */

.pbd-palette-category[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0 4px;
}

.pbd-palette-category:first-child[b-ozvcyppcg1] {
  margin-top: 4px;
}

.pbd-palette-grid[b-ozvcyppcg1] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.pbd-palette-btn[b-ozvcyppcg1] {
  /* Button resets — option items and palette entries are <button> so they can be reached
     by keyboard. Their layout rules below still apply; only the UA button styles that a
     <div> never had need cancelling. */
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  margin: 0;
  appearance: none;

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a2e;
  /* Part of the button reset above, and the one that was missed: the UA stylesheet sets
     text-align:center on <button>, which the `font: inherit` line does not cancel. It stays
     invisible while a label fits on one line, because the label span is then sized to its own
     content and centring inside it is a no-op. "Custom SVG" — the only label long enough to wrap
     in a 116px grid cell — showed it: each line centred in the span's full width, leaving a gap to
     the left of "Custom" and "SVG" floating under the middle of it. The snippet palette inherits
     this rule and has several labels that wrap, so it was affected too. */
  text-align: left;
  cursor: grab;
  transition: all 0.15s;
  user-select: none;
}

.pbd-palette-btn:active[b-ozvcyppcg1] {
  cursor: grabbing;
}

/* Pre-built snippet buttons insert a whole block group on click (not draggable) — distinguished
   with an accent left edge and a pointer cursor so they don't read as a single draggable block. */
.pbd-palette-btn-snippet[b-ozvcyppcg1] {
  cursor: pointer;
  border-left: 3px solid #4A6B2E;
}
.pbd-palette-btn-snippet:active[b-ozvcyppcg1] {
  cursor: pointer;
}

.pbd-palette-btn:hover[b-ozvcyppcg1] {
  border-color: #4A6B2E;
  background: #E5EDD8;
  color: #4A6B2E;
}

/* ── Designer page navigator (paginator above the canvas) ─────────────────── */

.pbd-page-nav[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.pbd-page-nav-sep[b-ozvcyppcg1] {
  color: #d1d1d1;
  font-size: 14px;
  user-select: none;
}

/* ── Designer scroll wrapper (grey background matching preview panel) ─────── */

.pbd-designer-scroll[b-ozvcyppcg1] {
  flex: 1;
  overflow: auto;
  padding: 24px;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ── Shared page-sheet appearance (white paper on grey) ───────────────────── */

.ped-page-sheet[b-ozvcyppcg1] {
  margin: 0 auto;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  /* Containing block for the page overlays (watermark, border, border art). Without it those
     absolutely-positioned children anchor to whatever ancestor happens to be positioned, which
     spans the whole scroller once a preview has more than one page. */
  position: relative;
}

/* Watermark overlay — mirrors .pdf-watermark in BlocksToHtmlRenderer (72pt, 8% black, -45°).
   Used by BOTH the preview sheet and the design canvas, so a document with a watermark looks the
   same while you build it as it does when it ships. The export's "behind" option is z-index:-1;
   here it is 0, because both surfaces paint their own white background and a negative z-index
   child would disappear behind that — DOM order (overlay before the content) is what keeps it
   under the blocks instead. At 8% alpha the two are visually the same either way.
   `inset:0` covers a single page; the continuous canvas overrides top/height inline to band each
   page separately, which is why height is not fixed here. */
[b-ozvcyppcg1] .pbd-page-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72pt;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.08);
  transform: rotate(-45deg);
  pointer-events: none;
  overflow: hidden;
  /* z-index is set inline per template: 2000 draws over the content, 0 puts it behind (the
     .pdf-canvas rule below lifts the content above it). */
}

/* Preview only: the canvas is normally an unpositioned in-flow box, which a positioned watermark
   would always paint over regardless of z-index. Lifting it into the stacking order lets the
   behind-the-content option actually sit behind — while staying above the page background. */
[b-ozvcyppcg1] .ped-page-sheet .pdf-canvas {
  position: relative;
  z-index: 1;
}

/* ── Block canvas ──────────────────────────────────────────────────────────── */

/* Holds the page at its zoomed width in layout; the page inside scales from its top-left corner. */
.pbd-zoom-box[b-ozvcyppcg1] {
  flex-shrink: 0;
}

.pbd-canvas[b-ozvcyppcg1] {
  /* Editing surface is intentionally flush — no inner padding. Page margins and
     content padding are page chrome, applied only in the Preview tab and the
     exported PDF. This maximises grid space during design. */
  min-height: 300px;
}

.pbd-grid-canvas[b-ozvcyppcg1] {
  display: grid;
  gap: 0;
  position: relative;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* ── Decorative page-border art frame overlay ─────────────────────────────── */
/* Covers the canvas and paints the border-image frame at the page edges. Sits above the
   blocks (like the export's z-index:1000 overlay) but never intercepts clicks. The border-image
   itself is set inline (it carries the per-document pattern + color). */
.pbd-page-border-art[b-ozvcyppcg1],
.pbd-page-border-line[b-ozvcyppcg1] {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  box-sizing: border-box;
}

/* ── Grid cell overlay (visual guide — boxes with center dots) ─────────────── */

.pbd-grid-overlay[b-ozvcyppcg1] {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Inset shadow for edge lines — doesn't affect box model or background width */
  box-shadow: inset 0 0 0 1px rgba(74, 107, 46, 0.13);
  /* Cell borders — percentage-based so 100%/12 always produces exactly 12 equal tiles */
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent calc(100% / var(--grid-cols, 12) - 1px),
      rgba(74, 107, 46, 0.13) calc(100% / var(--grid-cols, 12) - 1px),
      rgba(74, 107, 46, 0.13) calc(100% / var(--grid-cols, 12))
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent calc(var(--grid-row-height, 60px) - 1px),
      rgba(74, 107, 46, 0.13) calc(var(--grid-row-height, 60px) - 1px),
      rgba(74, 107, 46, 0.13) var(--grid-row-height, 60px)
    );
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

/* While a drag is in progress the JS engine adds .pbd-dragging to the canvas. Hide the static
   grid guide lines (cell borders + dots) for the duration so the moving element reads cleanly —
   the lines are only hidden, never removed, and reappear the moment the drag ends. */
.pbd-grid-canvas.pbd-dragging .pbd-grid-overlay[b-ozvcyppcg1] {
  opacity: 0;
}

/* Page-break separator — shown in continuous (scrolling) view at each page boundary so the user
   can see where the document splits onto the next page. Absolutely positioned within the canvas
   padding box at the computed row offset; doesn't intercept clicks. */
.pbd-page-break[b-ozvcyppcg1] {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed #4A6B2E;
  z-index: 2;
  pointer-events: none;
}
.pbd-page-break-label[b-ozvcyppcg1] {
  position: absolute;
  right: 6px;
  top: -9px;
  font-size: 10px;
  font-weight: 600;
  color: #4A6B2E;
  background: #ffffff;
  padding: 0 6px;
  border-radius: 3px;
  line-height: 17px;
}

/* Individual cell dots rendered via a pseudo-element */
.pbd-grid-overlay[b-ozvcyppcg1]::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(74, 107, 46, 0.22) 2px, transparent 2px);
  background-size:
    calc(100% / var(--grid-cols, 12)) var(--grid-row-height, 60px);
  background-position:
    calc(100% / var(--grid-cols, 12) / 2) calc(var(--grid-row-height, 60px) / 2);
}

.pbd-block[b-ozvcyppcg1] {
  position: relative;
  transition: outline-color 0.15s, box-shadow 0.15s;
  z-index: 1;
  /* overflow:hidden moved to .pbd-block-content so the block-content clips to the cell while the
     hover toolbar + resize handles can extend past the block edge without being cut off. This is
     what lets the toolbar always show all of its buttons even on a small/narrow block. */
  overflow: visible;
  min-height: 0;
  box-sizing: border-box;
  margin: 0 3px;
}

.pbd-block:active[b-ozvcyppcg1] {
  cursor: grabbing;
}

.pbd-block:hover[b-ozvcyppcg1] {
  outline: 1px solid #d1d1d1;
  outline-offset: -1px;
}

.pbd-block-selected[b-ozvcyppcg1] {
  outline: 2px solid #4A6B2E !important;
  outline-offset: -2px;
  box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.15);
}

/* ── AI Modify: what changed ──────────── */
.pbd-block.pbd-block-ai-changed[b-ozvcyppcg1] {
  outline: 2px dashed #4A6B2E;
  outline-offset: -2px;
}

.ped-ai-changes[b-ozvcyppcg1] {
  margin: 8px 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #4A6B2E;
  border-radius: 8px;
  color: #1a1a2e;
  font-size: 13px;
}

.ped-ai-changes-head[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}

.ped-ai-changes-head span[b-ozvcyppcg1] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4A6B2E;
}

.ped-ai-changes-close[b-ozvcyppcg1] {
  border: none;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
}

.ped-ai-changes-close:hover[b-ozvcyppcg1] {
  color: #1a1a2e;
}

.ped-ai-changes-list[b-ozvcyppcg1] {
  margin: 6px 0 0;
  padding-left: 18px;
  line-height: 1.5;
}

.ped-ai-changes-hint[b-ozvcyppcg1] {
  margin: 6px 0 0;
  color: #6b6b6b;
  font-size: 12px;
}

/* ── Bulk actions toolbar (visible when 2+ blocks are selected) ────────────── */

.pbd-bulk-toolbar[b-ozvcyppcg1] {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 0 0 8px;
  background: #E5EDD8;
  border: 1px solid #4A6B2E;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(74, 107, 46, 0.12);
  font-size: 13px;
  animation: pbd-bulk-slide-b-ozvcyppcg1 0.15s ease-out;
}

@keyframes pbd-bulk-slide-b-ozvcyppcg1 {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pbd-bulk-count[b-ozvcyppcg1] {
  font-weight: 700;
  color: #3B5525;
  white-space: nowrap;
}

.pbd-bulk-actions[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pbd-bulk-btn[b-ozvcyppcg1] {
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  color: #1a1a2e;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.pbd-bulk-btn:hover[b-ozvcyppcg1] {
  background: #4A6B2E;
  border-color: #4A6B2E;
  color: #ffffff;
}
.pbd-bulk-btn-danger[b-ozvcyppcg1] {
  color: #c0392b;
  border-color: #f5c6c6;
}
.pbd-bulk-btn-danger:hover[b-ozvcyppcg1] {
  background: #B33C32;
  border-color: #B33C32;
  color: #ffffff;
}

.pbd-bulk-input[b-ozvcyppcg1] {
  width: 48px;
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  background: #ffffff;
  color: #1a1a2e;
  text-align: center;
  font-family: inherit;
  outline: none;
}
.pbd-bulk-input:focus[b-ozvcyppcg1] {
  border-color: #4A6B2E;
}

.pbd-bulk-hint[b-ozvcyppcg1] {
  font-size: 11px;
  color: #6b6b6b;
}

.pbd-bulk-sep[b-ozvcyppcg1] {
  color: #4A6B2E;
  font-size: 14px;
  user-select: none;
}

/* ── Block toolbar (appears when the block is selected) ────────────────────── */

/* Floating toolbar that hovers ABOVE the block (not inside it). `bottom: 100% + gap` lifts it just
   off the block's top edge so it reads as a detached, floating bar rather than a strip sitting on
   the block content. It sizes to its buttons (no full-width stretch) and anchors to the block's
   right edge. The block (and canvas) are overflow:visible, so on a narrow block the compact bar
   simply extends past the edge without ever being clipped. */
.pbd-block-toolbar[b-ozvcyppcg1] {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 4px;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 4;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 2px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.pbd-toolbar-action[b-ozvcyppcg1] {
  flex: 0 0 auto;
}

/* Reveal the action bar only once the block is selected (clicked) — not on mere hover. */
.pbd-block-selected .pbd-block-toolbar[b-ozvcyppcg1] {
  opacity: 1;
}

.pbd-toolbar-action[b-ozvcyppcg1] {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: #6b6b6b;
  padding: 2px 5px;
  border-radius: 3px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pbd-toolbar-action svg[b-ozvcyppcg1] {
  display: block;
}

.pbd-toolbar-action:hover[b-ozvcyppcg1] {
  color: #4A6B2E;
  background: #E5EDD8;
}

.pbd-toolbar-delete:hover[b-ozvcyppcg1] {
  color: #e74c3c !important;
  background: #fff5f5 !important;
}

/* ── Block content area ───────────────────────────────────────────────────── */

.pbd-block-content[b-ozvcyppcg1] {
  pointer-events: none;
  user-select: none;
  padding: 8px 12px;
  height: 100%;
  box-sizing: border-box;
  /* Clip the rendered block content to the cell (moved here off .pbd-block — see note there). */
  overflow: hidden;
}

.pbd-block-content :deep(img)[b-ozvcyppcg1] {
  pointer-events: none;
}

/* Force a user-pasted SVG (Custom SVG block) to scale within its capped box so it fits the
   block instead of overflowing — mirrors the .pdf-svg-fit rule in the export renderer. */
.pbd-block-content :deep(.pdf-svg-fit svg)[b-ozvcyppcg1] {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* ── Drag states ──────────────────────────────────────────────────────────── */

.pbd-drag-ghost[b-ozvcyppcg1] {
  opacity: 0.4;
  border: 2px dashed #4A6B2E;
  border-radius: 6px;
}

.pbd-drag-chosen[b-ozvcyppcg1] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pbd-drag-dragging[b-ozvcyppcg1] {
  opacity: 0;
}

/* ── Block seam tags ──────────────────────────────────────────────────────── */
/* Tags about a block — a merge tag that can't run (MergeTagCheck), a condition on when it shows —
   sit in the seam ABOVE the block rather than over it: the block's own content is the thing the
   author is reading, and a band across it (which is where the condition tag used to be) obscures
   exactly what they are trying to check. One row from the left, because the settings panel covers
   the right of the page while a block is open. ::deep because PdfBlockPreview emits them. */
[b-ozvcyppcg1] .pbd-seam-tags {
  position: absolute;
  top: -9px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

[b-ozvcyppcg1] .pbd-tag-problem,
[b-ozvcyppcg1] .pbd-cond-tag {
  min-width: 0;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 600;
  border-radius: 999px;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* .pbd-block-content is pointer-events:none so clicks fall through to the block for dragging.
     The tags opt back in, or the browser never hit-tests them and the title tooltip — the
     fallback for a tag too long to fit — never appears. Clicks still bubble to .pbd-block, so
     selecting and dragging by a tag keep working. */
  pointer-events: auto;
}

/* Comes first and doesn't shrink: it's the one that has to be acted on. */
[b-ozvcyppcg1] .pbd-tag-problem {
  flex-shrink: 0;
  max-width: 100%;
  color: #ffffff;
  background: #B33C32;
  border: 1px solid #B33C32;
}

[b-ozvcyppcg1] .pbd-cond-tag {
  color: #4A6B2E;
  background: #E5EDD8;
  border: 1px solid #cddbb8;
}

/* ── Logic strip (canvas) ─────────────────────────────────────────────────── */
/* In the seam under the block, so it never covers the block's content. Clickable: .pbd-block-content
   is pointer-events:none, but this strip is a sibling of it. */
.pbd-logic-tabs[b-ozvcyppcg1] {
  position: absolute;
  top: calc(100% + 3px);
  left: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100% + 160px);
  background: #fff;
  border: 1px solid #cddbb8;
  border-radius: 999px;
  padding: 2px 3px 2px 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: default;
}

.pbd-logic-tabs-error[b-ozvcyppcg1] {
  border-color: #B33C32;
}

.pbd-logic-label[b-ozvcyppcg1] {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: #4A6B2E;
  margin-right: 3px;
  white-space: nowrap;
}

.pbd-logic-tab[b-ozvcyppcg1] {
  border: none;
  background: none;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  color: #4A6B2E;
  padding: 0 7px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pbd-logic-tab:hover[b-ozvcyppcg1] {
  background: #E5EDD8;
}

.pbd-logic-tab-active[b-ozvcyppcg1],
.pbd-logic-tab-active:hover[b-ozvcyppcg1] {
  background: #4A6B2E;
  color: #fff;
}

/* ── Version switcher (sidebar) ───────────────────────────────────────────── */
/* Editing a version tints the sidebar's header and edge, so it reads differently from editing
   the block as designed at a glance. */
.ped-block-sidebar-header-version[b-ozvcyppcg1] {
  background: #E5EDD8;
  color: #3B5525;
}

.ped-block-sidebar-body-version[b-ozvcyppcg1] {
  box-shadow: inset 3px 0 0 #4A6B2E;
}

/* A fixed band between the sidebar header and its scrolling body: it doesn't shrink or scroll. */
.ped-vswitch[b-ozvcyppcg1] {
  flex-shrink: 0;
  padding: 8px 12px 10px;
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.ped-vswitch-row[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ped-vswitch-step[b-ozvcyppcg1] {
  flex-shrink: 0;
  width: 26px;
  height: 30px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
  color: #555;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ped-vswitch-step:hover:not(:disabled)[b-ozvcyppcg1] {
  border-color: #4A6B2E;
  color: #4A6B2E;
}

.ped-vswitch-step:disabled[b-ozvcyppcg1] {
  opacity: 0.35;
  cursor: default;
}

.ped-vswitch-close[b-ozvcyppcg1] {
  margin-left: 4px;
  font-size: 12px;
}

.ped-vswitch-close:hover[b-ozvcyppcg1] {
  border-color: #B33C32 !important;
  color: #B33C32 !important;
}

/* One row of chips; many versions scroll sideways rather than pushing the settings down. */
.ped-vswitch-tabs[b-ozvcyppcg1] {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 2px;
}

.ped-vswitch-tab[b-ozvcyppcg1] {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
  padding: 0 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ped-vswitch-tab:hover[b-ozvcyppcg1] {
  border-color: #4A6B2E;
}

.ped-vswitch-tab-on[b-ozvcyppcg1],
.ped-vswitch-tab-on:hover[b-ozvcyppcg1] {
  border-color: #4A6B2E;
  background: #E5EDD8;
  box-shadow: 0 0 0 1px #4A6B2E;
}

.ped-vswitch-num[b-ozvcyppcg1] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ped-vswitch-tab-on .ped-vswitch-num[b-ozvcyppcg1] {
  background: #4A6B2E;
  color: #fff;
}

.ped-vswitch-swatch[b-ozvcyppcg1] {
  max-width: 64px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid #d1d1d1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ped-vswitch-current[b-ozvcyppcg1] {
  margin-top: 6px;
  font-size: 12px;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ped-vswitch-note[b-ozvcyppcg1] {
  font-size: 11px;
  color: #6b6b6b;
  line-height: 1.45;
  margin-top: 2px;
}

/* Canvas: which version the page is showing, in the seam above the block. */
.pbd-version-flag[b-ozvcyppcg1] {
  position: absolute;
  top: -19px;
  left: 8px;
  z-index: 4;
  max-width: calc(100% + 80px);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: #4A6B2E;
  border-radius: 4px 4px 0 0;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Canvas strip chips: the same number + swatch as the sidebar switcher. */
.pbd-logic-num[b-ozvcyppcg1] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E5EDD8;
  color: #3B5525;
  font-size: 9px;
  font-weight: 700;
  margin-right: 3px;
}

.pbd-logic-tab-active .pbd-logic-num[b-ozvcyppcg1] {
  background: #fff;
  color: #4A6B2E;
}

.pbd-logic-tab[b-ozvcyppcg1] {
  display: inline-flex;
  align-items: center;
}

.pbd-logic-swatch[b-ozvcyppcg1] {
  max-width: 54px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  padding: 0 5px;
  border-radius: 3px;
  border: 1px solid #d1d1d1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pbd-logic-hidden[b-ozvcyppcg1] {
  font-size: 9px;
  font-weight: 600;
  color: #6b6b6b;
  border: 1px dashed #b5b5b5;
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 2px;
  line-height: 1.5;
  white-space: nowrap;
}

/* ── Conditionals (sidebar) ───────────────────────────────────────────────── */
.ped-logic-hint[b-ozvcyppcg1] {
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.5;
  margin: 4px 0 8px;
}

.ped-cond-done[b-ozvcyppcg1] {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Version gallery: each look drawn for real, scaled down to fit a card. */
.ped-versions[b-ozvcyppcg1] {
  margin-bottom: 12px;
}

.ped-versions-title[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.ped-versions-grid[b-ozvcyppcg1] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ped-version-card[b-ozvcyppcg1] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ped-version-card:hover[b-ozvcyppcg1] {
  border-color: #4A6B2E;
}

.ped-version-card-active[b-ozvcyppcg1] {
  border-color: #4A6B2E;
  box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.18);
}

.ped-version-card-hidden[b-ozvcyppcg1] {
  cursor: default;
  border-style: dashed;
}

.ped-version-card-hidden:hover[b-ozvcyppcg1] {
  border-color: #e0e0e0;
}

.ped-version-label[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a2e;
  max-width: 250px;
  overflow-wrap: anywhere;
}

.ped-version-frame[b-ozvcyppcg1] {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: repeating-conic-gradient(#f3f3f3 0% 25%, #ffffff 0% 50%) 0 0 / 12px 12px;
  pointer-events: none;
}

.ped-version-scale[b-ozvcyppcg1] {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}

.ped-version-scale .pbd-block-content[b-ozvcyppcg1] {
  display: block;
}

.ped-version-empty[b-ozvcyppcg1] {
  font-size: 11px;
  color: #6b6b6b;
  padding: 6px 2px;
}

/* Flow chart: each rule as a step, its outcome to the right, "no" falling to the next. */
.ped-flow[b-ozvcyppcg1] {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.ped-flow-start[b-ozvcyppcg1] {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #555;
  border-radius: 999px;
  padding: 2px 10px;
}

.ped-flow-down[b-ozvcyppcg1] {
  font-size: 10px;
  font-weight: 600;
  color: #6b6b6b;
  padding: 2px 0 2px 14px;
  border-left: 2px solid #d1d1d1;
  margin-left: 12px;
  line-height: 1.6;
}

.ped-flow-step[b-ozvcyppcg1] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 42%);
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px 8px;
}

.ped-flow-hit[b-ozvcyppcg1] {
  border-color: #4A6B2E;
  box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.18);
}

.ped-flow-editing .ped-flow-out[b-ozvcyppcg1] {
  outline: 2px solid #4A6B2E;
  outline-offset: 1px;
}

.ped-flow-test[b-ozvcyppcg1] {
  font-size: 11px;
  line-height: 1.4;
  color: #1a1a2e;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ped-flow-kw[b-ozvcyppcg1] {
  font-weight: 700;
  color: #4A6B2E;
  margin-right: 2px;
}

.ped-flow-yes[b-ozvcyppcg1] {
  font-size: 10px;
  font-weight: 600;
  color: #6b6b6b;
  white-space: nowrap;
}

.ped-flow-out[b-ozvcyppcg1] {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
}

.ped-flow-swatch[b-ozvcyppcg1] {
  display: block;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #d1d1d1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ped-flow-note[b-ozvcyppcg1] {
  font-size: 10px;
  color: #6b6b6b;
}

.ped-flow-hidden[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  border: 1px dashed #b5b5b5;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: default;
}

.ped-flow-foot[b-ozvcyppcg1] {
  font-size: 11px;
  color: #6b6b6b;
  margin-top: 8px;
}

/* Rules */
.ped-rule[b-ozvcyppcg1] {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 10px 10px;
  margin: 8px 0;
}

.ped-rule-active[b-ozvcyppcg1] {
  border-color: #4A6B2E;
  box-shadow: 0 0 0 2px rgba(74, 107, 46, 0.15);
}

.ped-rule-else[b-ozvcyppcg1] {
  background: #fbfbfb;
}

.ped-rule-head[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ped-rule-kw[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4A6B2E;
  white-space: nowrap;
  min-width: 52px;
}

.ped-rule-tools[b-ozvcyppcg1] {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
}

.ped-rule-tool[b-ozvcyppcg1] {
  border: none;
  background: none;
  color: #6b6b6b;
  cursor: pointer;
  font-size: 12px;
  min-width: 24px;
  height: 28px;
  padding: 0 4px;
  border-radius: 4px;
}

.ped-rule-tool:hover:not(:disabled)[b-ozvcyppcg1] {
  color: #1a1a2e;
  background: #f0f0f0;
}

.ped-rule-tool:disabled[b-ozvcyppcg1] {
  opacity: 0.35;
  cursor: default;
}

.ped-rule-delete:hover:not(:disabled)[b-ozvcyppcg1] {
  color: #B33C32;
  background: #fff5f5;
}

/* A group: conditions that must all hold. Groups are joined by OR. */
.ped-group[b-ozvcyppcg1] {
  border-left: 3px solid #cddbb8;
  padding: 2px 0 2px 8px;
}

.ped-and[b-ozvcyppcg1] {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4A6B2E;
  margin: 4px 0;
}

.ped-or[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #B33C32;
}

.ped-or[b-ozvcyppcg1]::before,
.ped-or[b-ozvcyppcg1]::after {
  content: "";
  flex: 1;
  border-top: 1px dashed #d1d1d1;
}

.ped-cond[b-ozvcyppcg1] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ped-cond-row[b-ozvcyppcg1] {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ped-cond-row .form-control[b-ozvcyppcg1] {
  flex: 1 1 0;
  min-width: 0;
}

.ped-cond-between[b-ozvcyppcg1] {
  font-size: 12px;
  color: #6b6b6b;
}

.ped-logic-link[b-ozvcyppcg1] {
  border: none;
  background: none;
  color: #4A6B2E;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 2px;
  margin-right: 10px;
}

.ped-logic-link:hover[b-ozvcyppcg1] {
  text-decoration: underline;
}

.ped-logic-link-sm[b-ozvcyppcg1] {
  font-size: 11px;
  font-weight: 500;
  padding: 0;
  align-self: flex-start;
}

.ped-rule-then[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.ped-rule-then .form-control[b-ozvcyppcg1] {
  flex: 1;
  min-width: 0;
}

.ped-rule-edit[b-ozvcyppcg1] {
  margin-top: 8px;
}

.ped-rule-editing-note[b-ozvcyppcg1] {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #4A6B2E;
}

/* ── Resize handles (shown on selected block) ─────────────────────────────── */

.pbd-resize-handle[b-ozvcyppcg1] {
  position: absolute;
  z-index: 3;
  background: #4A6B2E;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.pbd-block-selected .pbd-resize-handle[b-ozvcyppcg1] {
  opacity: 1;
}

.pbd-resize-e[b-ozvcyppcg1] {
  right: -3px;
  top: 20%;
  bottom: 20%;
  width: 6px;
  cursor: ew-resize;
}

.pbd-resize-s[b-ozvcyppcg1] {
  bottom: -3px;
  left: 20%;
  right: 20%;
  height: 6px;
  cursor: ns-resize;
}

.pbd-resize-se[b-ozvcyppcg1] {
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  cursor: nwse-resize;
  border-radius: 0 0 4px 0;
}

/* ── Mobile nudge d-pad ────────────────────────────────────────────────────
   Touch-friendly arrow buttons that step the currently-selected block one
   grid cell at a time. Drag is unergonomic on touch and the resize handles
   are too small to grab with a finger.

   position: fixed at the bottom of the viewport — NOT inside `.pbd-block`,
   which has overflow:hidden and would clip a wider d-pad on narrow blocks.
   Thumb-reachable on phones and always visible regardless of canvas scroll.

   Gate is `max-width: 1024px` (not the project-default 768px) so a phone
   held in landscape (iPhone 14 Pro Max = 932px CSS width) still surfaces
   the bar. 1024px stays clear of the typical desktop browser window so
   keyboard-arrow-key users on real desktops don't see redundant chrome.

   display:flex carries !important because the d-pad is the *only* way to
   move a block on touch — if a future scoped rule accidentally outranks
   the @media override, the bar must still appear. */
.pbd-nudge-bar[b-ozvcyppcg1] {
  display: none;
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 600; /* above sidebar drawers (500) and modals' backdrops at this level */
  gap: 6px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 1024px) {
  .pbd-nudge-bar[b-ozvcyppcg1] {
    display: flex !important;
  }
}

.pbd-nudge-btn[b-ozvcyppcg1] {
  width: 44px;
  height: 44px;
  border: none;
  background: #f8f8f8;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s, color 0.12s;
}

.pbd-nudge-btn:active[b-ozvcyppcg1] {
  background: #E5EDD8;
  color: #4A6B2E;
}

/* ── Grid drop indicator (shown during drag) ──────────────────────────────── */
/* ::deep needed because JS creates this element dynamically (no Blazor scope attr) */

/* Drop indicator kept hidden: the box that used to track the cursor over the grid during a drag
   is suppressed entirely. The element is still created by the JS engine (drop position is read
   from the pointer, not this box, and a moved block already follows the cursor live) — it's just
   never shown, so the drag stays clean. */
[b-ozvcyppcg1] .pbd-grid-drop-indicator {
  display: none;
}

/* ── Empty canvas state ───────────────────────────────────────────────────── */

.pbd-empty-canvas[b-ozvcyppcg1] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6b6b6b;
  text-align: center;
}

.pbd-empty-icon[b-ozvcyppcg1] {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.pbd-empty-canvas p[b-ozvcyppcg1] {
  margin: 0;
  font-size: 15px;
}

.pbd-empty-hint[b-ozvcyppcg1] {
  font-size: 13px;
  color: #6b6b6b;
  margin-top: 4px;
}

/* ── Preview text in blocks ───────────────────────────────────────────────── */

/* .pbd-preview-inner lives inside the PdfBlockPreview child component, so PdfEditor's scoped
   CSS attribute is never emitted on it. ::deep is required to let the rule cross the component
   boundary — otherwise Blazor rewrites `.pbd-preview-inner` to `.pbd-preview-inner[b-editor]`,
   which matches nothing and the height cascade breaks. */
[b-ozvcyppcg1] .pbd-preview-inner {
  font-size: 14px;
  line-height: 1.5;
  /* Full height propagation so child flex wrappers (e.g. the heading's vertical-center
     container) have something to resolve `height: 100%` against. */
  height: 100%;
  box-sizing: border-box;
}

.pbd-preview-inner :deep(h2)[b-ozvcyppcg1],
.pbd-preview-inner :deep(h3)[b-ozvcyppcg1],
.pbd-preview-inner :deep(h4)[b-ozvcyppcg1] {
  margin: 0;
}

.pbd-preview-text :deep(p)[b-ozvcyppcg1],
.pbd-preview-text :deep(li)[b-ozvcyppcg1] {
  margin: 0 0 4px;
  color: inherit;
}

.pbd-preview-text :deep(ul)[b-ozvcyppcg1],
.pbd-preview-text :deep(ol)[b-ozvcyppcg1] {
  margin: 2px 0;
  padding-left: 20px;
}

/* Safety net for content saved via Quill 2.x, which stores both list types as
   <ol><li data-list="bullet|ordered">. Render the marker from data-list so a bullet list
   shows bullets (not numbers) on the canvas. New saves are normalized in pdfDesigner.js. */
.pbd-preview-text :deep(li[data-list="bullet"])[b-ozvcyppcg1] {
  list-style-type: disc;
}

.pbd-preview-text :deep(li[data-list="ordered"])[b-ozvcyppcg1] {
  list-style-type: decimal;
}

/* ── In-app preview fragment (injected via MarkupString) ─────────────────────
   The preview fragment carries its own <style> from BlocksToHtmlRenderer, but those
   .pdf-* rules can lose the cascade in the live app (the same reason the accent and
   line-height needed inlining), so the browser's UA defaults leak in — e.g. <ul> gets
   the default ~40px indent instead of 20px, and <p> the default 1em margins. Re-assert
   the spacing here, scoped to the preview sheet via ::deep, so the in-app preview matches
   the editor canvas (.pbd-preview-text) and the real export exactly.
   Block padding stays inline (BuildBlockStyleCss) and still wins over the base below. */
.ped-preview-content :deep(.pdf-block-content)[b-ozvcyppcg1] {
  padding: 8px 12px;
}

.ped-preview-content :deep(.pdf-text p)[b-ozvcyppcg1],
.ped-preview-content :deep(.pdf-text li)[b-ozvcyppcg1] {
  margin: 0 0 4px;
}

.ped-preview-content :deep(.pdf-text ul)[b-ozvcyppcg1],
.ped-preview-content :deep(.pdf-text ol)[b-ozvcyppcg1] {
  margin: 2px 0;
  padding-left: 20px;
}

.ped-preview-content :deep(.pdf-text li[data-list="bullet"])[b-ozvcyppcg1] {
  list-style-type: disc;
}

.ped-preview-content :deep(.pdf-text li[data-list="ordered"])[b-ozvcyppcg1] {
  list-style-type: decimal;
}

/* ── Conditional display (inside block editor modal) ──────────────────────── */

[b-ozvcyppcg1] .block-condition-section {
  margin-top: 16px;
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
}

[b-ozvcyppcg1] .block-condition-toggle {
  background: none;
  border: none;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

[b-ozvcyppcg1] .block-condition-toggle:hover {
  color: #4A6B2E;
}

[b-ozvcyppcg1] .block-condition-badge {
  font-size: 10px;
  background: #E5EDD8;
  color: #4A6B2E;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
}

[b-ozvcyppcg1] .block-condition-body {
  margin-top: 8px;
  padding: 8px;
  background: #f8f8f8;
  border-radius: 6px;
}

/* Small advisory inside an inspector section — e.g. the Typography panel telling you that a
   run of rich text carries its own size and is ignoring the block-level one. */
[b-ozvcyppcg1] .alert-inline-note {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fffbeb;
  border: 1px solid #f0c040;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #1a1a2e;
}

[b-ozvcyppcg1] .btn-ghost-sm {
  background: none;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  color: #555;
  cursor: pointer;
  margin-top: 8px;
}

[b-ozvcyppcg1] .btn-ghost-sm:hover {
  border-color: #B33C32;
  color: #B33C32;
}

[b-ozvcyppcg1] .btn-ghost-sm:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: #d1d1d1;
  color: #555;
}

[b-ozvcyppcg1] .btn-icon-sm {
  background: none;
  border: none;
  font-size: 12px;
  color: #6b6b6b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
}

[b-ozvcyppcg1] .btn-icon-sm:hover {
  color: #e74c3c;
  background: #fff5f5;
}

/* ── Block editor form styles (PdfBlockEditor child component) ───────────── */

[b-ozvcyppcg1] .block-editor {
  display: flex;
  flex-direction: column;
  gap: 0;
}

[b-ozvcyppcg1] .editor-panel-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 14px;
}

[b-ozvcyppcg1] .field-group {
  margin-bottom: 14px;
}

[b-ozvcyppcg1] .field-group-label {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  display: block;
  margin-bottom: 5px;
}

[b-ozvcyppcg1] .form-control {
  width: 100%;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  font-size: 13px;
  color: #1a1a2e;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

[b-ozvcyppcg1] .form-control:focus {
  border-color: #4A6B2E;
  box-shadow: 0 0 0 3px #E5EDD8;
  background: #ffffff;
}

[b-ozvcyppcg1] .code-textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
  min-height: 80px;
}

[b-ozvcyppcg1] .option-list {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-wrap: wrap;
}

[b-ozvcyppcg1] .option-item {
  /* Button resets — option items and palette entries are <button> so they can be reached
     by keyboard. Their layout rules below still apply; only the UA button styles that a
     <div> never had need cancelling. */
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  margin: 0;
  appearance: none;

  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  border: 1px solid #d1d1d1;
  background: #f8f8f8;
  white-space: nowrap;
}

[b-ozvcyppcg1] .option-item:hover {
  background: #E5EDD8;
  color: #4A6B2E;
}

[b-ozvcyppcg1] .option-active {
  background: #E5EDD8 !important;
  border-color: #4A6B2E !important;
  color: #4A6B2E !important;
  font-weight: 600;
}

[b-ozvcyppcg1] .block-editor-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

[b-ozvcyppcg1] .block-editor-fields-label {
  font-size: 11px;
  color: #555;
  font-weight: 600;
  margin-right: 4px;
}

[b-ozvcyppcg1] .block-editor-field-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #4A6B2E;
  background: #E5EDD8;
  border: 1px solid #4A6B2E;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.12s;
}

[b-ozvcyppcg1] .block-editor-field-chip:hover {
  background: #ddd5ff;
}

[b-ozvcyppcg1] .block-editor-hint {
  font-size: 11px;
  color: #6b6b6b;
  margin: -6px 0 12px;
}

[b-ozvcyppcg1] .etb-field-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #4A6B2E;
  background: #E5EDD8;
  border: 1px solid #4A6B2E;
  border-radius: 4px;
  padding: 3px 7px;
  cursor: pointer;
  transition: background 0.12s;
}

[b-ozvcyppcg1] .etb-field-tag:hover {
  background: #ddd6de;
}

[b-ozvcyppcg1] .btn-link {
  background: none;
  border: none;
  color: #4A6B2E;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

[b-ozvcyppcg1] .btn-link:hover {
  color: #3B5525;
  text-decoration: underline;
}

[b-ozvcyppcg1] .btn-icon {
  background: none;
  border: none;
  color: #6b6b6b;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
  transition: color 0.12s, background 0.12s;
}

[b-ozvcyppcg1] .btn-icon:hover {
  color: #e74c3c;
  background: #fff5f5;
}

/* ── Icon picker grid (block editor modal) ───────────────────────────────── */

[b-ozvcyppcg1] .pbd-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

[b-ozvcyppcg1] .pbd-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 10px;
  color: #6b6b6b;
  transition: all 0.12s;
}

[b-ozvcyppcg1] .pbd-icon-item:hover {
  background: #f5f3ff;
  border-color: #d1d1d1;
  color: #555;
}

[b-ozvcyppcg1] .pbd-icon-active {
  background: #E5EDD8 !important;
  border-color: #4A6B2E !important;
  color: #4A6B2E !important;
}

/* ── Emoji picker (floating panel from Quill toolbar) ────────────────────── */

.pbd-emoji-picker[b-ozvcyppcg1] {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 280px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
}

.pbd-emoji-tabs[b-ozvcyppcg1] {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 4px;
  overflow-x: auto;
  flex-shrink: 0;
}

.pbd-emoji-tab[b-ozvcyppcg1] {
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #6b6b6b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}

.pbd-emoji-tab:hover[b-ozvcyppcg1] {
  color: #555;
}

.pbd-emoji-tab-active[b-ozvcyppcg1] {
  color: #4A6B2E;
  border-bottom-color: #4A6B2E;
}

.pbd-emoji-grid[b-ozvcyppcg1] {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.pbd-emoji-item[b-ozvcyppcg1] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 18px;
  border: none;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s, transform 0.1s;
}

.pbd-emoji-item:hover[b-ozvcyppcg1] {
  background: #E5EDD8;
  transform: scale(1.2);
}

/* ── Support banner ──────────── */
/* AdminView puts the 36px AdminEditorBanner between the topbar and the layout. */
.ped-layout.ped-layout-admin[b-ozvcyppcg1] {
  height: calc(100dvh - 48px - 36px - var(--env-banner-height, 0px) - var(--impersonation-banner-height, 0px));
}
.ped-layout-admin .ped-block-sidebar.ped-block-sidebar-overlay[b-ozvcyppcg1] {
  top: calc(48px + 36px + var(--env-banner-height, 0px) + var(--impersonation-banner-height, 0px));
  height: calc(100dvh - 48px - 36px - var(--env-banner-height, 0px) - var(--impersonation-banner-height, 0px));
}
@media (max-width: 1280px) {
  .ped-layout-admin .ped-block-sidebar[b-ozvcyppcg1] {
    top: calc(48px + 36px + var(--env-banner-height, 0px) + var(--impersonation-banner-height, 0px));
    height: calc(100dvh - 48px - 36px - var(--env-banner-height, 0px) - var(--impersonation-banner-height, 0px));
  }
}
@media (max-width: 768px) {
  .ped-layout.ped-layout-admin[b-ozvcyppcg1] {
    height: calc(100dvh - 52px - 48px - 36px - var(--impersonation-banner-height, 0px));
  }
  .ped-layout-admin .ped-sidebar[b-ozvcyppcg1],
  .ped-layout-admin .ped-block-sidebar[b-ozvcyppcg1] {
    top: calc(48px + 52px + 36px + var(--impersonation-banner-height, 0px));
    height: calc(100dvh - 48px - 52px - 36px - var(--impersonation-banner-height, 0px));
  }
}

/* ── AI dialog: header, prompt, starting points ──────────── */
.ped-ai-dialog[b-ozvcyppcg1] { width: 600px; }
.ped-ai-header[b-ozvcyppcg1] { align-items: flex-start; padding: 18px 22px 6px; border-bottom: none; }
.ped-ai-head[b-ozvcyppcg1] { display: flex; align-items: flex-start; gap: 12px; }
.ped-ai-head-icon[b-ozvcyppcg1] {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #E5EDD8; color: #3B5525;
}
.ped-ai-title[b-ozvcyppcg1] { font-size: 17px; font-weight: 600; color: #1a1a2e; line-height: 1.3; }
.ped-ai-sub[b-ozvcyppcg1] { margin: 3px 0 0; font-size: 14px; font-weight: 400; color: #555; line-height: 1.5; }
.ped-ai-body[b-ozvcyppcg1] { padding: 10px 22px 4px; }
.ped-ai-body .ped-ai-textarea[b-ozvcyppcg1] {
  margin-top: 0; min-height: 112px; font-size: 15px; line-height: 1.55;
  padding: 12px 14px; border-radius: 10px; color: #1a1a2e;
}
.ped-ai-meta[b-ozvcyppcg1] { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: #6b6b6b; }
.ped-ai-error[b-ozvcyppcg1] { margin: 10px 0 0; font-size: 13px; color: #B33C32; }
.ped-ai-label[b-ozvcyppcg1] { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: #555; }
.ped-ai-chips[b-ozvcyppcg1] { display: flex; flex-wrap: wrap; gap: 8px; }
.ped-ai-chip[b-ozvcyppcg1] {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 6px 12px; border: 1px solid #d1d1d1; border-radius: 999px;
  background: #ffffff; color: #1a1a2e; font-family: inherit; font-size: 13px; cursor: pointer;
}
.ped-ai-chip:hover[b-ozvcyppcg1] { border-color: #4A6B2E; background: #E5EDD8; }
.ped-ai-chip:focus-visible[b-ozvcyppcg1] { outline: 2px solid #4A6B2E; outline-offset: 1px; }
.ped-ai-chip-icon[b-ozvcyppcg1] { display: inline-flex; color: #4A6B2E; }
.ped-ai-footer[b-ozvcyppcg1] { justify-content: space-between; align-items: center; padding: 14px 22px 18px; margin-top: 14px; }
.ped-ai-kbd[b-ozvcyppcg1] { font-size: 12px; color: #6b6b6b; }
.ped-ai-actions[b-ozvcyppcg1] { display: flex; gap: 8px; }
.ped-ai-go[b-ozvcyppcg1] { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
  .ped-ai-header[b-ozvcyppcg1] { padding: 14px 14px 4px; }
  .ped-ai-body[b-ozvcyppcg1] { padding: 8px 14px 4px; }
  .ped-ai-footer[b-ozvcyppcg1] { padding: 10px 14px; }
  .ped-ai-kbd[b-ozvcyppcg1] { display: none; }
}
/* /Pages/Terms.razor.rz.scp.css */
/* Terms.razor.css
   Shared legal typography — headings, body copy, lists, links, the footer
   cross-links — comes from LegalLayout.razor.css and is NOT repeated here.
   What remains is the conspicuous treatment Florida contract law expects for the
   warranty disclaimer and the liability cap. */

/* ── Conspicuous blocks (warranty disclaimer, liability cap) ──────────── */
/* Florida contract law asks that disclaimers and limitations be conspicuous.
   The box, rule and capitals set the two sections apart from body copy
   without shouting the whole page. */
.legal-conspicuous[b-34ugfhssu4] {
    border: 1px solid #d1d1d1;
    border-left: 4px solid #1a1a2e;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 14px 18px 4px;
    margin: 8px 0 16px;
}

.legal-conspicuous p[b-34ugfhssu4] {
    color: #1a1a2e;
}

/* /Pages/TwoFactor.razor.rz.scp.css */
/* ── Card ──────────── */
.tf-card[b-x0dfqqmq6x] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 24px;
    max-width: 760px;
}

.tf-card-narrow[b-x0dfqqmq6x] { max-width: 520px; }

.tf-title[b-x0dfqqmq6x] {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.tf-lead[b-x0dfqqmq6x] {
    color: #555;
    margin: 0 0 16px;
}

/* ── Setup: QR + steps ──────────── */
.tf-setup[b-x0dfqqmq6x] {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.tf-qr[b-x0dfqqmq6x] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f8f8;
}

.tf-qr img[b-x0dfqqmq6x] {
    display: block;
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 4px;
    image-rendering: pixelated;
}

.tf-qr-caption[b-x0dfqqmq6x] {
    font-size: 12px;
    color: #6b6b6b;
    text-align: center;
}

.tf-steps[b-x0dfqqmq6x] {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tf-step[b-x0dfqqmq6x] {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
}

.tf-step-num[b-x0dfqqmq6x] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E5EDD8;
    color: #4A6B2E;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.tf-step-title[b-x0dfqqmq6x] {
    font-weight: 600;
    margin: 3px 0 6px;
}

.tf-step-text[b-x0dfqqmq6x] {
    color: #555;
    margin: 0 0 10px;
}

.tf-key[b-x0dfqqmq6x] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tf-key code[b-x0dfqqmq6x] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.5px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    user-select: all;
    word-break: break-all;
}

.tf-account[b-x0dfqqmq6x] { line-height: 1.5; }

/* ── Code entry ──────────── */
.tf-code-row[b-x0dfqqmq6x] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.tf-code-group[b-x0dfqqmq6x] {
    margin-bottom: 0;
    width: 200px;
}

.tf-code-input[b-x0dfqqmq6x] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
}

/* ABCDE-FGHIJ is eleven characters: wider, with tighter spacing than the six digits. */
.tf-recovery-group[b-x0dfqqmq6x] { width: 240px; }
.tf-recovery-input[b-x0dfqqmq6x] {
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Lines the button up with the input, below the label. */
.tf-code-btn[b-x0dfqqmq6x] {
    margin-top: 24px;
    min-width: 120px;
}

/* ── Mobile ──────────── */
@media (max-width: 768px) {
    .tf-card[b-x0dfqqmq6x] { padding: 18px; }
    .tf-setup[b-x0dfqqmq6x] { grid-template-columns: 1fr; gap: 20px; }
    .tf-qr[b-x0dfqqmq6x] { justify-self: center; }
    .tf-code-group[b-x0dfqqmq6x] { width: 100%; }
    .tf-code-btn[b-x0dfqqmq6x] { margin-top: 0; width: 100%; }
}

/* ── Recovery codes ──────────── */
.tf-codes[b-x0dfqqmq6x] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.tf-codes code[b-x0dfqqmq6x] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    user-select: all;
}

.tf-codes-actions[b-x0dfqqmq6x],
.tf-row[b-x0dfqqmq6x] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* The checkbox and its error as one unit: the error sits right under the box, and the
   gap to the Continue button comes after both. */
.tf-confirm[b-x0dfqqmq6x] { margin-bottom: 16px; }

.tf-check[b-x0dfqqmq6x] {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tf-confirm .validation-message[b-x0dfqqmq6x] { margin-top: 6px; }

.tf-hint[b-x0dfqqmq6x] { margin: 14px 0 0; }
.tf-note[b-x0dfqqmq6x] {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}
/* /Pages/UseCases/CertificateGenerator.razor.rz.scp.css */
/* ── Certificate generator use-case page ──────────────────────
   Shared parts (hero, cards, sample sheet, screenshots, tick lists, steps, FAQ, call to
   action) come from MarketingLayout.razor.css; this file holds only this page's layout. */

/* ── Templates: three starters, then the gift certificate ──────────── */
.cards[b-lsmrknbbza] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.shot-narrow img[b-lsmrknbbza] { max-width: 720px; }

@media (max-width: 1024px) {
    .cards[b-lsmrknbbza] { grid-template-columns: 1fr; }
}
/* /Pages/UseCases/FillPdfForms.razor.rz.scp.css */
/* ── Fill PDF forms use-case page ─────────────────────────────
   Shared parts (hero, cards, screenshots, tick lists, steps, FAQ, call to action) come from
   MarketingLayout.razor.css; this file holds only this page's layout. */

/* ── Fillable or flat: three cards beside the Detect Fields screenshot ──────────── */
.forms-grid[b-r5vi4386r3] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; margin-top: 32px; align-items: start; }
.form-cards[b-r5vi4386r3] { display: flex; flex-direction: column; gap: 16px; }
.card.card-lead[b-r5vi4386r3] { background: #F6F9F1; border-color: #CFDDBB; }
.forms-grid .shot[b-r5vi4386r3] { margin-top: 0; }
.shot-tall img[b-r5vi4386r3] { max-width: 480px; }

@media (max-width: 1024px) {
    .forms-grid[b-r5vi4386r3] { grid-template-columns: 1fr; }
}
/* /Pages/UseCases/GoogleSheetsToPdf.razor.rz.scp.css */
/* ── Google Sheets to PDF use-case page ───────────────────────
   Shared parts (hero, cards, sample sheet, screenshots, tick lists, steps, FAQ, call to
   action) come from MarketingLayout.razor.css; this file holds only this page's layout. */

/* ── Access: three cards, the middle one (what it can open) highlighted ──────────── */
.cards[b-u8ibf63o6o] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card.card-lead[b-u8ibf63o6o] { background: #F6F9F1; border-color: #CFDDBB; }

/* ── One row in, one PDF out: the sample sheet beside links to the other use cases ──────────── */
.example.example-wide[b-u8ibf63o6o] { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.pairs[b-u8ibf63o6o] { background: #F7F5EF; border: 1px solid #E7E4DA; border-radius: 18px; padding: 22px 24px; }
.pairs-h[b-u8ibf63o6o] { margin: 0 0 10px; font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; color: #6B6B6B; }
.pairs-list[b-u8ibf63o6o] { list-style: none; margin: 0; padding: 0; }
    .pairs-list li[b-u8ibf63o6o] { border-bottom: 1px solid #E7E4DA; }
    .pairs-list li:last-child[b-u8ibf63o6o] { border-bottom: 0; }
    .pairs-list a[b-u8ibf63o6o] { display: block; padding: 12px 0; text-decoration: none; }
    .pairs-list a:hover strong[b-u8ibf63o6o] { color: #4A6B2E; }
    .pairs-list strong[b-u8ibf63o6o] { display: block; font-size: 15px; font-weight: 600; color: #1A1A2E; }
    .pairs-list span[b-u8ibf63o6o] { display: block; margin-top: 2px; font-size: 13.5px; color: #5C5A6E; }

/* ── Schedule: the frequency picker sits beside the list ──────────── */
#schedule .shot[b-u8ibf63o6o] { margin-top: 0; align-self: center; }

@media (max-width: 1024px) {
    .cards[b-u8ibf63o6o] { grid-template-columns: 1fr; }
    .example.example-wide[b-u8ibf63o6o] { grid-template-columns: 1fr; }
}
/* /Pages/UseCases/InvoiceGenerator.razor.rz.scp.css */
/* ── Invoice generator use-case page ──────────────────────────
   Shared parts (hero, cards, sample sheet, screenshots, tick lists, steps, FAQ, call to
   action) come from MarketingLayout.razor.css; this file holds only this page's layout. */

/* ── Export to invoices: the portrait invoice sits narrower beside the sample file ──────────── */
.example .shot img[b-jkg39hie1m] { max-width: 420px; }
.files li span[b-jkg39hie1m] { font-family: 'Inter', sans-serif; font-weight: 400; color: #5C5A6E; }
.aside[b-jkg39hie1m] { margin: 24px 0 0; font-size: 15px; color: #5C5A6E; max-width: 760px; }

/* ── Templates: four billing starters in two rows ──────────── */
.cards[b-jkg39hie1m] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }

@media (max-width: 768px) {
    .cards[b-jkg39hie1m] { grid-template-columns: 1fr; }
}
/* /Pages/Workspace/Settings.razor.rz.scp.css */
/* ── Your permissions ──────────── */
.yp-grid[b-tf176ph9e2] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 24px;
    margin-top: 16px;
}

.yp-group-title[b-tf176ph9e2] {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
}

.yp-list[b-tf176ph9e2] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yp-item[b-tf176ph9e2] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
    font-size: 14px;
    color: #1a1a2e;
}

    .yp-item.is-off[b-tf176ph9e2] {
        color: #6b6b6b;
    }

.yp-mark[b-tf176ph9e2] {
    flex: 0 0 14px;
    font-weight: 700;
}

.yp-item.is-on .yp-mark[b-tf176ph9e2] {
    color: #1a9a3a;
}

.yp-item.is-off .yp-mark[b-tf176ph9e2] {
    color: #6b6b6b;
    font-weight: 400;
}

.yp-always[b-tf176ph9e2] {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

/* Read to screen readers only: the tick or cross is decoration. */
.yp-sr[b-tf176ph9e2] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Permission sets ──────────── */
/* Room between the intro line and the table's header row. */
.ps-intro[b-tf176ph9e2] {
    margin-bottom: 16px;
}
