/* ==========================================================================
   App Preview — interactive wireframe of the DataFrugal workspace
   (Dashboard / Shared with me / Restore), used in docs/index.html
   under the "Getting Started" section.
   ========================================================================== */

.app-preview {
  --ap-primary: #3498db;
  --ap-primary-hover: #2980b9;
  --ap-primary-muted: #eaf4fc;
  --ap-border: #dfe3e8;
  --ap-text: #1f2937;
  --ap-muted: #6b7280;
  --ap-surface: #ffffff;
  --ap-rail-bg: #12202a;
  --ap-rail-icon: #9fb4bd;
  --ap-radius: 8px;
  font-family: "IBM Plex Sans", "Open Sans", sans-serif;
  color: var(--ap-text);
  margin: 24px 0 32px;
}

.app-preview-heading {
  margin-bottom: 6px;
}

.app-preview-subtext {
  color: var(--ap-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- Tabs ---------- */

.app-preview-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.app-preview-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ap-border);
  background: var(--ap-surface);
  color: var(--ap-text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.app-preview-tab i {
  font-size: 15px;
  color: var(--ap-muted);
}

.app-preview-tab:hover {
  border-color: var(--ap-primary);
  color: var(--ap-primary);
}

.app-preview-tab.active {
  background: var(--ap-primary);
  border-color: var(--ap-primary);
  color: #fff;
}

.app-preview-tab.active i {
  color: #fff;
}

/* ---------- App shell (sidebar rail + main panel) ---------- */

.app-shell {
  display: flex;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  background: var(--ap-surface);
}

.app-rail {
  flex: 0 0 56px;
  background: var(--ap-rail-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
}

.app-rail-logo {
  color: var(--ap-primary);
  font-size: 20px;
  margin-bottom: 8px;
}

.app-rail-divider {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 6px 0;
}

.app-rail-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ap-rail-icon);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-rail-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-rail-btn.app-rail-nav.active {
  background: color-mix(in srgb, var(--ap-primary), transparent 20%);
  color: #fff;
}

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

.app-panel {
  display: none;
}

.app-panel.active {
  display: block;
}

/* ---------- Panel header (breadcrumb + search/filter) ---------- */

.app-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ap-border);
  gap: 10px;
  flex-wrap: wrap;
}

.app-breadcrumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ap-primary-muted);
  border: 1px solid color-mix(in srgb, var(--ap-primary), transparent 70%);
  color: var(--ap-primary-hover);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
}

.app-breadcrumb i.bi-chevron-down {
  font-size: 11px;
}

.app-breadcrumb-caret {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.app-breadcrumb-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  min-width: 180px;
  padding: 6px;
  z-index: 5;
}

.app-breadcrumb-menu.open {
  display: block;
}

.app-breadcrumb-menu a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ap-text);
  text-decoration: none;
}

.app-breadcrumb-menu a:hover {
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
}

.app-panel-tools {
  display: flex;
  gap: 4px;
}

.app-icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ap-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.app-icon-btn:hover {
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
}

/* ---------- Toolbar ---------- */

.app-toolbar {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ap-border);
  flex-wrap: wrap;
}

.app-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ap-border);
  background: var(--ap-surface);
  color: var(--ap-text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: default;
}

.app-toolbar-btn i {
  color: var(--ap-primary);
  font-size: 14px;
}

/* ---------- Table ---------- */

.app-table-wrap {
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.app-table thead th {
  position: sticky;
  top: 0;
  background: #fafbfc;
  text-align: left;
  padding: 9px 12px;
  font-weight: 600;
  color: var(--ap-muted);
  border-bottom: 1px solid var(--ap-border);
  white-space: nowrap;
}

.app-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #f0f2f4;
  vertical-align: middle;
  white-space: nowrap;
}

.app-table tbody tr:hover {
  background: #fafcfd;
}

.col-name {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.col-name .bi-folder-fill {
  color: #f2b84b;
}

.col-name .bi-file-earmark,
.col-name .bi-file-earmark-pdf,
.col-name .bi-file-earmark-zip,
.col-name .bi-file-earmark-spreadsheet,
.col-name .bi-file-earmark-word,
.col-name .bi-file-earmark-code {
  color: var(--ap-muted);
}

.col-name .bi-lock-fill {
  color: #b45309;
  font-size: 12px;
}

.col-shared {
  text-align: center;
}

.shared-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
  font-size: 13px;
  cursor: default;
}

.col-size {
  text-align: right;
  color: var(--ap-muted);
}

/* Days-before-delete badges (Restore screen) */

.days-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.days-ok {
  background: #eafaf0;
  color: #1a7f4e;
}

.days-warn {
  background: #fff6e6;
  color: #9a6400;
}

.days-critical {
  background: #fdecea;
  color: #c22a2a;
}

/* ---------- Row actions: label popover ---------- */

.row-actions {
  position: relative;
  display: inline-flex;
}

.label-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ap-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.label-btn:hover {
  background: var(--ap-primary-muted);
}

.label-btn.has-label {
  color: var(--ap-primary-hover);
}

.label-popover {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  padding: 10px 12px;
  min-width: 190px;
  z-index: 6;
  text-align: left;
  white-space: normal;
}

.row-actions.open .label-popover {
  display: block;
}

.label-popover-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-muted);
  margin-bottom: 6px;
}

.label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

.label-empty {
  font-size: 12px;
  color: var(--ap-muted);
}

/* ---------- Sample-data banner ---------- */

.app-preview-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ap-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  .app-shell {
    flex-direction: column;
  }

  .app-rail {
    flex: 0 0 auto;
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding: 8px;
    justify-content: flex-start;
  }

  .app-rail-divider {
    width: 1px;
    height: 24px;
    margin: 0 4px;
  }

  .app-rail-logo {
    margin: 0 4px 0 0;
  }

  .app-table {
    min-width: 560px;
  }

  .app-preview-tab span.tab-label {
    display: none;
  }

  .app-preview-tab {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .app-table th.col-type,
  .app-table td.col-type,
  .app-table th.col-modified,
  .app-table td.col-modified {
    display: none;
  }

  .app-toolbar-btn span.toolbar-label {
    display: none;
  }

  .app-table {
    min-width: 460px;
  }
}

/* ==========================================================================
   Settings card — used for the Service Identity & API Credentials
   illustrative preview (matches vite-gui's MachineUsersPage layout).
   ========================================================================== */

.settings-card {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  background: var(--ap-surface);
  padding: 12px;
  font-family: "IBM Plex Sans", "Open Sans", sans-serif;
  color: var(--ap-text);
}

.settings-card__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ap-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}

.settings-card__section + .settings-card__section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f4;
}

.settings-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}

.settings-chip--active {
  background: #eafaf0;
  color: #1a7f4e;
}

.settings-status-date {
  font-size: 10.5px;
  color: var(--ap-muted);
}

.settings-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f4;
  flex-wrap: wrap;
}

.settings-field:last-child {
  border-bottom: none;
}

.settings-field-label {
  flex: 0 0 130px;
  font-size: 11px;
  color: var(--ap-muted);
}

.settings-field-value {
  flex: 1 1 auto;
  font-size: 11.5px;
  font-family: "JetBrains Mono", Consolas, Monaco, monospace;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-icon-btn {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ap-muted);
  border-radius: 6px;
  font-size: 11px;
}

.settings-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--ap-border);
  background: var(--ap-surface);
  color: var(--ap-primary-hover);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
}

.settings-btn--danger {
  color: #c0392b;
  border-color: #f3d3ce;
}

.settings-alert {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff8e6;
  color: #8a5a00;
  font-size: 10.5px;
}

/* ==========================================================================
   URI copy row — replaces the old fake "Generate cURL command" dialog.
   Mirrors the real interaction: a single "Download URI" icon on a file
   row that copies a cURL command to the clipboard.
   ========================================================================== */

.uri-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 10px 12px;
  background: var(--ap-surface);
  font-family: "IBM Plex Sans", "Open Sans", sans-serif;
}

.uri-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  font-size: 13.5px;
  color: var(--ap-text);
  min-width: 0;
}

.uri-row-name i {
  color: var(--ap-muted);
}

.uri-row-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ap-border);
  border-radius: 6px;
  background: var(--ap-surface);
  color: var(--ap-primary-hover);
  flex-shrink: 0;
}

.uri-toast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #eafaf0;
  color: #1a7f4e;
  font-size: 12.5px;
  font-weight: 500;
}

/* ==========================================================================
   Drop zone — the grid's own drag-and-drop empty state (uploads land
   directly on the file table, there is no separate upload dialog).
   ========================================================================== */

.dropzone-mock {
  border: 2px dashed var(--ap-primary);
  border-radius: var(--ap-radius);
  background: var(--ap-primary-muted);
  padding: 28px 16px;
  text-align: center;
  font-family: "IBM Plex Sans", "Open Sans", sans-serif;
}

.dropzone-mock i {
  font-size: 28px;
  color: var(--ap-primary-hover);
}

.dropzone-mock p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ap-text);
  font-weight: 500;
}

.dropzone-mock span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ap-muted);
}

/* ==========================================================================
   Transfer list — the shared Notifications tracking view that both
   uploads and downloads report into (progress, speed, ETA, cancel).
   ========================================================================== */

.transfer-panel {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  background: var(--ap-surface);
  font-family: "IBM Plex Sans", "Open Sans", sans-serif;
  overflow: hidden;
}

.transfer-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ap-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ap-muted);
}

.transfer-panel__header i {
  color: var(--ap-primary-hover);
}

.transfer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f2f4;
}

.transfer-row:last-child {
  border-bottom: none;
}

.transfer-row__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
  font-size: 14px;
}

.transfer-row__info {
  flex: 1 1 auto;
  min-width: 0;
}

.transfer-row__title {
  font-size: 13px;
  color: var(--ap-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-row__meta {
  font-size: 11.5px;
  color: var(--ap-muted);
  margin-top: 3px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.transfer-row__track {
  height: 5px;
  border-radius: 999px;
  background: #eef1f3;
  margin-top: 6px;
  overflow: hidden;
}

.transfer-row__fill {
  height: 100%;
  background: var(--ap-primary);
  border-radius: 999px;
}

.transfer-row__pct {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-muted);
  min-width: 34px;
  text-align: right;
}

.transfer-row__cancel {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ap-muted);
  font-size: 12px;
}

.transfer-row--completed .transfer-row__icon {
  background: #eafaf0;
  color: #1a7f4e;
}

.transfer-row--failed .transfer-row__icon {
  background: #fdecea;
  color: #c22a2a;
}

.transfer-row--queued .transfer-row__icon {
  background: #f2f4f6;
  color: var(--ap-muted);
}

.transfer-zip-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--ap-border);
  font-size: 12px;
  color: var(--ap-muted);
}

.transfer-zip-note .transfer-row__track {
  flex: 1 1 auto;
  margin-top: 0;
}

/* ==========================================================================
   Onboarding flow — step-by-step wireframe of the sign-up / org-setup
   flow (Welcome, Get Started fork, plan & region, org details, payment),
   for the Private (business) vs Public (individual) workspace paths.
   Used in docs/index.html under Getting Started -> Setup DataFrugal.
   ========================================================================== */

.onboard-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.onboard-step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--ap-border);
}

.onboard-step:last-child {
  border-bottom: none;
}

.onboard-step__num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ap-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.onboard-step__body {
  flex: 1 1 auto;
  min-width: 0;
}

.onboard-step__body h5 {
  margin: 0 0 4px;
  font-size: 15px;
}

.onboard-step__body > p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ap-muted, #6b7280);
}

/* ---- generic auth-style controls shared by sign-in / forms ---- */

.onboard-auth-card,
.onboard-fork,
.onboard-redirect {
  max-width: 300px;
  margin: 0 auto;
  font-family: "IBM Plex Sans", "Open Sans", sans-serif;
}

.onboard-auth-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ap-text, #1f2937);
  margin-bottom: 12px;
}

.onboard-auth-logo i {
  color: var(--ap-primary);
}

.onboard-field {
  margin-bottom: 8px;
}

.onboard-field label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ap-muted, #6b7280);
  margin-bottom: 3px;
}

.onboard-input {
  border: 1px solid var(--ap-border);
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--ap-text, #1f2937);
  background: #fff;
}

.onboard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
  border: 1px solid transparent;
  cursor: default;
}

.onboard-btn--primary {
  background: var(--ap-primary);
  color: #fff;
}

.onboard-btn--outline {
  background: #fff;
  border-color: var(--ap-border);
  color: var(--ap-text, #1f2937);
}

.onboard-btn--outline i {
  color: var(--ap-primary-hover);
}

.onboard-divider {
  text-align: center;
  font-size: 10px;
  color: var(--ap-muted, #6b7280);
  margin: 10px 0 7px;
  position: relative;
}

.onboard-divider::before,
.onboard-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  border-top: 1px solid var(--ap-border);
}

.onboard-divider::before {
  left: 0;
}

.onboard-divider::after {
  right: 0;
}

.onboard-hint {
  font-size: 12px;
  color: var(--ap-muted, #6b7280);
  text-align: center;
  margin: 10px 0 0;
}

/* ---- welcome screen: eyebrow + feature tiles + note + CTA ---- */

.onboard-welcome {
  max-width: 560px;
  margin: 0 auto;
  font-family: "IBM Plex Sans", "Open Sans", sans-serif;
  text-align: left;
}

.onboard-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--ap-text, #1f2937);
  margin: 0 0 2px;
}

/* ---- compact feature/provider chips (replaces the old boxed tile grid) ---- */

.onboard-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.onboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--ap-border);
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ap-text, #1f2937);
  white-space: nowrap;
}

.onboard-chip i {
  color: var(--ap-primary-hover);
  font-size: 11px;
}

.onboard-chip--accent {
  background: var(--ap-primary-muted);
  border-color: transparent;
}

.onboard-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.onboard-note {
  font-size: 12px;
  color: var(--ap-text, #1f2937);
  background: var(--ap-primary-muted);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* ---- get-started fork: two choice tiles ---- */

.onboard-fork-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}

.onboard-fork-tile strong {
  display: block;
  font-size: 13.5px;
  color: var(--ap-text, #1f2937);
}

.onboard-fork-tile span {
  display: block;
  font-size: 11.5px;
  color: var(--ap-muted, #6b7280);
  margin-top: 2px;
}

.onboard-fork-tile i {
  color: var(--ap-primary-hover);
  font-size: 16px;
  flex-shrink: 0;
}

/* ---- plan & region selection ---- */

.onboard-select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.onboard-plan-card {
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.onboard-plan-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.onboard-plan-card__head strong {
  font-size: 14px;
  color: var(--ap-text, #1f2937);
}

.onboard-plan-card__head span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-primary-hover);
}

.onboard-plan-card p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ap-muted, #6b7280);
}

.onboard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.onboard-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
}

/* ---- redirect / all-set screen ---- */

.onboard-redirect {
  text-align: center;
  padding: 10px 0 4px;
}

.onboard-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid var(--ap-border);
  border-top-color: var(--ap-primary);
  animation: onboard-spin 0.9s linear infinite;
}

@keyframes onboard-spin {
  to {
    transform: rotate(360deg);
  }
}

.onboard-redirect p {
  font-size: 13.5px;
  color: var(--ap-text, #1f2937);
  margin: 0;
}

.onboard-switch {
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--ap-border);
  flex-shrink: 0;
  position: relative;
}

.onboard-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.onboard-switch.is-on {
  background: var(--ap-primary);
}

.onboard-switch.is-on::after {
  left: auto;
  right: 2px;
}

/* ---- responsive ---- */

@media (max-width: 560px) {
  .onboard-select-row {
    grid-template-columns: 1fr;
  }

  .onboard-step {
    gap: 10px;
  }
}

/* ==========================================================================
   Onboarding flow v2 additions — corrected against real product
   screenshots: Welcome tiles + AWS/Wasabi comparison cards, the plan
   step's info banner, and the org-setup contact form grid.
   ========================================================================== */

.onboard-eyebrow--caps {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ap-primary-hover);
}

.onboard-subtitle {
  font-size: 11px;
  color: var(--ap-muted, #6b7280);
  margin: 0 0 10px;
}

.onboard-cta-row {
  display: flex;
  justify-content: flex-end;
}

.onboard-cta-row .onboard-btn {
  width: auto;
  padding: 6px 16px;
  margin-bottom: 0;
}

/* ---- page header: back arrow + title + subtitle (matches PageTitle) ---- */

.onboard-page-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  text-align: left;
}

.onboard-page-header__back {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.onboard-page-header h6 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ap-text, #1f2937);
}

.onboard-page-header span {
  display: block;
  font-size: 11.5px;
  color: var(--ap-muted, #6b7280);
  margin-top: 2px;
}

/* ---- info banner (left-border accent), used on the plan step ---- */

.onboard-info-banner {
  border-left: 3px solid var(--ap-primary);
  background: var(--ap-primary-muted);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--ap-text, #1f2937);
  text-align: left;
  margin-bottom: 14px;
}

.onboard-info-banner p {
  margin: 0 0 4px;
}

.onboard-info-banner p:last-child {
  margin-bottom: 0;
}

/* ---- form section card (icon + title + subtitle, then a field grid) ---- */

.onboard-form-section {
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  margin-bottom: 14px;
}

.onboard-form-section__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.onboard-form-section__head i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ap-primary-muted);
  color: var(--ap-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.onboard-form-section__head strong {
  display: block;
  font-size: 13px;
  color: var(--ap-text, #1f2937);
}

.onboard-form-section__head span {
  display: block;
  font-size: 11px;
  color: var(--ap-muted, #6b7280);
  margin-top: 1px;
}

.onboard-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.onboard-form-field label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ap-text, #1f2937);
  margin-bottom: 2px;
}

.onboard-form-field label i {
  font-size: 11px;
  color: var(--ap-muted, #6b7280);
}

.onboard-form-field .req {
  color: #c0392b;
}

.onboard-form-field small {
  display: block;
  font-size: 10.5px;
  color: var(--ap-muted, #6b7280);
  margin-bottom: 5px;
}

.onboard-form-field .onboard-input {
  color: var(--ap-muted, #6b7280);
}

.onboard-next-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ap-border);
  background: #fff;
  color: var(--ap-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-left: auto;
}

.onboard-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.onboard-form-actions .onboard-btn {
  width: auto;
  padding: 8px 16px;
  margin-bottom: 0;
}

.onboard-btn--secondary {
  background: #eef1f3;
  color: var(--ap-text, #1f2937);
}

@media (max-width: 640px) {
  .onboard-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Feature-list checkmarks — polish for the bi-check-circle-fill bullets
   used throughout the content sections (RBAC, WORM, Break Glass,
   Integrations, etc.). Scoped here since app-preview.css only loads on
   the docs page, so this can't leak into other pages that reuse
   .service-details for unrelated list content.
   ========================================================================== */

.service-details ul li {
  position: relative;
  padding: 6px 0 6px 26px;
}

.service-details ul i.bi-check-circle-fill {
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 16px;
  margin-right: 0;
  color: #1a9f5c;
}

/* ==========================================================================
   Feature card grid — a lighter, scannable alternative to a wall of
   checklist bullets, used for a few compact summary lists.
   ========================================================================== */

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.feature-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  background: #fafcfd;
}

.feature-card i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf4fc;
  color: var(--accent-color, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 8px;
}

.feature-card strong {
  display: block;
  font-size: 13.5px;
  color: #1f2937;
  margin-bottom: 3px;
}

.feature-card span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* ---- icon-badge section header, for visual parity across Integrations ---- */

.section-icon-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.section-icon-head i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf4fc;
  color: var(--accent-color, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.section-icon-head h4 {
  margin: 0;
}

/* ==========================================================================
   Real CTA buttons in the docs content ("View API Documentation",
   "Request df-agent Access") were falling back to Bootstrap's default
   blue (#0d6efd) since main.css never overrides .btn-primary — a
   different blue than the site's actual accent color / the header's
   "Get Started" pill button. Match that exact look here, scoped to the
   docs page since app-preview.css only loads there.
   ========================================================================== */

.service-details .btn.btn-primary {
  color: var(--contrast-color, #fff);
  background-color: var(--accent-color, #3498db);
  border-color: var(--accent-color, #3498db);
  border-radius: 50px;
  padding: 8px 25px;
  font-size: 14px;
  transition: 0.3s;
}

.service-details .btn.btn-primary:hover,
.service-details .btn.btn-primary:focus,
.service-details .btn.btn-primary:active {
  color: var(--contrast-color, #fff);
  background-color: color-mix(in srgb, var(--accent-color, #3498db), transparent 15%);
  border-color: color-mix(in srgb, var(--accent-color, #3498db), transparent 15%);
}

/* ==========================================================================
   Mockup window chrome — replaces the plain macOS-style traffic-light
   dots with a realistic browser address bar (lock icon + centered pill),
   so the wireframes read as product screenshots rather than a generic
   "window" decoration. Terminal mockups (df-agent CLI) keep a plain
   title instead, since a fake URL wouldn't make sense there.
   ========================================================================== */

.docs-mock__dot {
  display: none;
}

.docs-mock:not(.docs-mock--terminal) .docs-mock__bar {
  justify-content: center;
}

.docs-mock:not(.docs-mock--terminal) .docs-mock__bar-title {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e5e9;
  border-radius: 999px;
  padding: 4px 16px;
  font-weight: 500;
  letter-spacing: normal;
  color: #5a6268;
  max-width: 70%;
}

.docs-mock:not(.docs-mock--terminal) .docs-mock__bar-title::before {
  content: "🔒";
  font-size: 10px;
  color: #8a9099;
  flex-shrink: 0;
}

.docs-mock--terminal .docs-mock__bar {
  justify-content: flex-start;
}
