/* Your Next Customers — authenticated app shell */
[hidden] {
  display: none !important;
}

.ol-surface {
  position: relative;
  background: var(--bg);
}
.ol-surface > .mkt-bg {
  z-index: 0;
}
.ol-surface .app-sidebar {
  z-index: 50;
}
.ol-surface .app-main {
  position: relative;
  z-index: 1;
}
body.sidebar-open {
  overflow: hidden;
}

.app-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  overflow-x: hidden;
}

.app-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 0;
}
.sidebar-brand-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-brand:hover { color: var(--ink); }
.sidebar-brand .brand-mark-only {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar-brand:hover .brand-mark-only {
  transform: scale(1.06);
}
.sidebar-brand .badge-beta {
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.5rem;
  overflow-y: auto;
}
.sidebar-section {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.35rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  margin: 0.1rem 0;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.sidebar-link:hover { background: var(--bg-subtle); color: var(--text); }
.sidebar-link.active {
  background: var(--accent-subtle);
  color: var(--accent-text);
}
.sidebar-link .icon { width: 18px; text-align: center; opacity: 0.85; }

.sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}
.sidebar-user {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 0.5rem 0.5rem;
  word-break: break-all;
}

.app-main {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
html[dir="rtl"] .app-sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}
html[dir="rtl"] .app-main {
  margin-left: 0;
  margin-right: var(--sidebar-w);
}

.app-topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.app-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  gap: 1rem;
}
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.sidebar-toggle:hover {
  background: var(--bg-subtle);
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.35);
  z-index: 45;
  border: none;
  padding: 0;
  cursor: pointer;
}
.sidebar-backdrop.is-visible {
  display: block;
}
.topbar-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.page-content {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
  box-sizing: border-box;
}
.page-content > .block + .block,
.page-content > .block + .dashboard-stats,
.page-content > .dashboard-stats + .block,
.page-content > .path-cards + .dashboard-stats {
  margin-top: 1.25rem;
}
.page-lead {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  max-width: 60ch;
  line-height: 1.5;
}

/* App blocks — consistent surfaces */
.app-body .block {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.app-body .block + .block {
  margin-top: 1.25rem;
}
.app-body .block-header {
  padding: 1.15rem 1.5rem;
}
.app-body .block-header h2,
.app-body .block-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.app-body .block-body {
  padding: 1.5rem;
}
.app-body .block-footer {
  padding: 1rem 1.5rem;
}
.app-body label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.app-body .actions {
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.app-body .upload-zone {
  margin: 1.25rem 0;
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.app-body .upload-zone.dragover {
  border-color: var(--accent-text);
  background: var(--accent-subtle);
}
.app-body .lead-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-body .lead-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Stepper block */
.stepper-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.stepper-block .step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stepper-block .step.active { color: var(--accent-text); font-weight: 600; }
.stepper-block .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: var(--bg-elevated);
}
.stepper-block .step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.stepper-block .step-line {
  width: 2rem;
  height: 1px;
  background: var(--border);
}

/* Campaign / form blocks */
.upload-zone {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
  background: var(--bg-subtle);
}
.upload-title { font-weight: 600; font-size: 0.9rem; margin: 0 0 0.25rem; }
.upload-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.75rem; }

.char-count { font-size: 0.75rem; color: var(--text-muted); }
.char-count.ready { color: var(--success); }
.label-row { display: flex; justify-content: space-between; width: 100%; }

.review-card {
  padding: 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.empty-state-block {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state-block .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.6; }

/* Results / playbooks (app) */
.research-progress {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--accent-subtle);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
}
.research-progress .bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.research-progress .bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s;
}

.rank-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.rank-chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
}
.rank-chip.active { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-text); }

.playbook-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  overflow: hidden;
}
.playbook-head {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  align-items: flex-start;
}
.playbook-score {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-text);
  min-width: 2rem;
}
.score-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.score-breakdown .pill.ok {
  margin-left: 0.5rem;
  vertical-align: middle;
}
.file-extraction-banner {
  background: linear-gradient(160deg, #fff 0%, #f3eeff 100%);
  border: 1px solid rgba(91, 33, 182, 0.12);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.file-extraction-banner .extraction-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.candidate-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}
.candidate-list li { margin-bottom: 0.35rem; }
.playbook-body { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--border); }
.playbook-card:not(.open) .playbook-body { display: none; }

.playbook-section { margin-top: 1rem; }
.playbook-section h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.5rem; }

.message-box {
  white-space: pre-wrap;
  font-size: 0.875rem;
  padding: 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sniper-shot-box, .trigger-box {
  padding: 1rem;
  background: var(--accent-subtle);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.label-meta { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--accent-text); margin: 0 0 0.35rem; }
.sniper-one-liner { font-weight: 600; margin: 0 0 0.5rem; }
.sniper-meta { font-size: 0.8rem; color: var(--text-secondary); margin: 0.25rem 0; }

.warnings { margin-bottom: 1rem; }
.warning-item {
  padding: 0.75rem 1rem;
  background: var(--warn-bg);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.lead-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  margin-bottom: 0.75rem;
}
.lead-card h3 { margin-bottom: 0.25rem; }
.lead-card .meta { font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0 0.75rem; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-block {
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.stat-block:nth-child(1) { background: linear-gradient(160deg, #fff 0%, #f3eeff 100%); }
.stat-block:nth-child(2) { background: linear-gradient(160deg, #fff 0%, #e8faf2 100%); }
.stat-block:nth-child(3) { background: linear-gradient(160deg, #fff 0%, #fff8d6 100%); }
.stat-block .value {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-block .label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* Dashboard path selection */
.dash-intro {
  margin-bottom: 1.75rem;
}
.dash-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}
.dash-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  max-width: 52ch;
}
.path-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 2rem;
}
.path-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
  min-height: 100%;
}
.path-card--own {
  background: linear-gradient(160deg, #fff 0%, rgba(143, 61, 255, 0.07) 100%);
}
.path-card--managed {
  background: linear-gradient(160deg, #fff 0%, rgba(61, 90, 254, 0.06) 100%);
}
.path-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(143, 61, 255, 0.12);
}
.path-card--own .path-cta { color: var(--ync-purple); }
.path-card--managed .path-cta { color: var(--ync-blue); }
.path-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.path-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.path-card > p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 500;
}
.path-benefits {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}
.path-benefits li {
  padding: 0.28rem 0 0.28rem 1rem;
  position: relative;
}
.path-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.path-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.flow-banner {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}
.flow-banner--own {
  background: linear-gradient(160deg, #fff 0%, #f3eeff 100%);
}
.flow-banner--managed {
  background: linear-gradient(160deg, #fff 0%, #e8faf2 100%);
}
.flow-banner strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.wizard-step-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: -0.75rem 0 1.25rem;
  max-width: 52ch;
}

.icp-review {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.icp-block {
  padding: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.icp-block h4 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.icp-block p { margin: 0; line-height: 1.5; }
.icp-block ul { margin: 0; padding-left: 1.1rem; }

.lead-select-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.lead-select-actions { display: flex; gap: 0.35rem; }

.lead-select-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(420px, 55vh);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.lead-select-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  cursor: pointer;
}
.lead-select-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-subtle);
}
.lead-select-card input { margin-top: 0.35rem; flex-shrink: 0; }
.lead-select-body { flex: 1; min-width: 0; }
.lead-select-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lead-select-score {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border-radius: 8px;
  background: var(--accent-subtle);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.8rem;
}
.lead-select-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lead-select-rationale {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.stepper-block .step.done { color: var(--text-secondary); }
.stepper-block .step.done .step-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: inline-flex;
  }
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .app-main {
    margin-left: 0;
    width: 100%;
  }
  html[dir="rtl"] .app-main {
    margin-right: 0;
    width: 100%;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  html[dir="rtl"] .app-sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }
  html[dir="rtl"] .app-sidebar.open {
    transform: translateX(0);
  }
  .page-content {
    padding: 1rem 1.15rem 1.5rem;
  }
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .path-cards {
    grid-template-columns: 1fr;
  }
  .path-card:hover {
    transform: none;
  }
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--bg);
  position: relative;
}
.auth-page > .mkt-bg { z-index: 0; }
.auth-page .auth-card,
.auth-page .auth-home-link { position: relative; z-index: 1; }
.auth-home-link {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.auth-home-link:hover { color: var(--ink); }
html[dir="rtl"] .auth-home-link { left: auto; right: 1.5rem; }
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  animation: auth-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
}
.auth-card .auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}
.auth-card .auth-logo .badge { margin-left: 0; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-google {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 500;
}
.btn-google:hover { background: var(--bg-subtle); }
.btn-google svg { width: 18px; height: 18px; }

.auth-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.25rem; background: var(--bg-subtle); padding: 0.25rem; border-radius: var(--radius-sm); }
.auth-tabs button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
}
.auth-tabs button.active { background: var(--bg-elevated); color: var(--text); box-shadow: var(--shadow-sm); }

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.history-row-main {
  flex: 1;
  min-width: 12rem;
}
.history-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  padding: 1rem 1.15rem 1.15rem;
  margin: 0 0 1.15rem;
  background: var(--bg-elevated, #fff);
}
.profile-section legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 0.35rem;
  color: var(--text);
}
.profile-section .field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.icp-block--user {
  border-left: 3px solid var(--accent, #5b4fcf);
  padding-left: 0.85rem;
  margin-bottom: 1rem;
}
