:root {
  --background: 248 244 238;
  --foreground: 15 23 42;
  --panel: 255 255 255;
  --border: 226 216 203;
  --accent: 245 166 35;
  --accent-2: 217 107 43;
  --muted: 87 96 111;
  --sidebar-width: 240px;
  color: rgb(var(--foreground));
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(245,166,35,.18), transparent 30%), radial-gradient(circle at 85% 10%, rgba(217,107,43,.14), transparent 24%), linear-gradient(180deg, rgb(var(--background)), #fffaf3);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, p { margin-top: 0; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Same shell geometry and navigation language as Auria Ads. */
.auria-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column; width: var(--sidebar-width); border-right: 1px solid #e2e8f0; background: #fff; box-shadow: 12px 0 40px rgba(15,23,42,.04); transition: width .2s ease, transform .2s ease; }
.sidebar-header { display: flex; flex: none; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px; border-bottom: 1px solid #f1f5f9; }
.sidebar-brand { display: flex; min-width: 0; align-items: center; overflow: hidden; }
.brand-horizontal { display: block; width: auto; max-width: 165px; height: 36px; object-fit: contain; object-position: left center; }
.brand-symbol { display: none; width: 36px; height: 36px; object-fit: contain; }
.sidebar-toggle, .mobile-close { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #64748b; }
.sidebar-toggle:hover, .mobile-close:hover { background: #f1f5f9; color: #020617; }
.expand-icon, .mobile-close { display: none; }
.sidebar-nav { min-height: 0; flex: 1; overflow-y: auto; padding: 16px 8px 48px; }
.nav-group + .nav-group { margin-top: 16px; }
.nav-label { margin: 0 12px 4px; color: #94a3b8; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nav-item { display: flex; min-height: 40px; align-items: center; gap: 10px; margin: 0 0 4px; padding: 8px 10px; border-radius: 8px; color: #475569; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover { background: #f1f5f9; color: #0f172a; }
.nav-item.active { background: #0f172a; color: #fff; }
.nav-item.section-active { background: #fff7e8; color: #9a560e; }
.nav-subitem { display: flex; min-height: 34px; align-items: center; gap: 10px; margin: 0 0 4px 30px; padding: 7px 10px; border-radius: 8px; color: #64748b; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.nav-subitem::before { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #cbd5e1; content: ""; }
.nav-subitem:hover { background: #f1f5f9; color: #0f172a; }
.nav-subitem.active { background: #fff1d8; color: #9a560e; font-weight: 700; }
.nav-subitem.active::before { background: #f5a623; }
.account-menu { position: relative; flex: none; margin-top: auto; padding: 8px 0 40px; border-top: 1px solid #f1f5f9; }
.account-menu summary { display: flex; align-items: center; gap: 10px; margin: 0 8px; padding: 8px 4px; border-radius: 12px; list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: rgba(248,244,238,.8); }
.account-avatar { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: #f5a623; color: #fff; font-size: 12px; font-weight: 700; }
.account-label { display: block; min-width: 0; flex: 1; }
.account-label strong, .account-label small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-label strong { color: #1e293b; font-size: 12px; }
.account-label small { margin-top: 2px; color: #94a3b8; font-size: 12px; }
.account-chevron { width: 16px; height: 16px; color: #94a3b8; transition: transform .2s; }
.account-menu[open] .account-chevron { transform: rotate(180deg); }
.account-popover { position: absolute; bottom: 100%; left: 8px; z-index: 60; display: flex; width: min(310px, calc(100vw - 16px)); flex-direction: column; overflow: hidden; margin-bottom: 8px; border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; box-shadow: 0 24px 80px rgba(15,23,42,.16); }
.account-popover-head { display: grid; gap: 4px; padding: 16px; border-bottom: 1px solid #f1f5f9; }
.account-popover-head strong { font-size: 14px; }
.account-popover-head small { color: #64748b; font-size: 12px; }
.account-popover button { display: flex; align-items: center; gap: 12px; margin: 8px; padding: 12px; border: 0; border-radius: 16px; background: #fff; color: #334155; text-align: left; font-size: 14px; font-weight: 600; }
.account-popover button:hover { background: #fef2f2; color: #b91c1c; }
.sidebar-collapsed { --sidebar-width: 64px; }
.sidebar-collapsed .sidebar-header { height: 96px; flex-direction: column; justify-content: center; gap: 4px; padding: 0; }
.sidebar-collapsed .brand-horizontal, .sidebar-collapsed .collapse-icon, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-item span, .sidebar-collapsed .account-label, .sidebar-collapsed .account-chevron { display: none; }
.sidebar-collapsed .brand-symbol, .sidebar-collapsed .expand-icon { display: block; }
.sidebar-collapsed .nav-group + .nav-group { padding-top: 8px; border-top: 1px solid #f1f5f9; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 8px; }
.sidebar-collapsed .nav-subitem { display: none; }
.sidebar-collapsed .account-menu summary { justify-content: center; }
.sidebar-collapsed .account-popover { left: 56px; bottom: 12px; }
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .2s ease; }
.auria-app-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.7); background: rgba(248,244,238,.85); backdrop-filter: blur(24px); }
.status-banner-slot { padding: 0 max(16px, calc((100vw - var(--sidebar-width) - 1180px)/2)) 12px; }
.status-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid #bae6fd; border-radius: 16px; background: #f0f9ff; color: #075985; box-shadow: 0 10px 22px rgba(12,74,110,.08); font-size: 14px; font-weight: 650; line-height: 24px; }
.status-banner-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; box-shadow: 0 10px 22px rgba(127,29,29,.05); }
.status-banner-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; box-shadow: 0 10px 22px rgba(6,95,70,.05); }
.status-banner-icon { display: grid; width: 18px; height: 18px; flex: none; place-items: center; margin-top: 3px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1; }
.status-banner-running .status-banner-icon { border-style: dashed; font-size: 0; animation: status-banner-spin 1s linear infinite; }
.status-banner-message { min-width: 0; flex: 1; margin: 0; overflow-wrap: anywhere; }
.status-banner-close { display: grid; width: 28px; height: 28px; flex: none; place-items: center; margin: -2px -4px -2px 0; border: 0; border-radius: 12px; background: transparent; color: inherit; font-size: 22px; font-weight: 400; line-height: 1; opacity: .7; }
.status-banner-close:hover { background: rgba(255,255,255,.7); opacity: 1; }
.status-banner-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#users-feedback, #communication-feedback, #activation-feedback, #contact-search-feedback { display: none; }
@keyframes status-banner-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status-banner-running .status-banner-icon { animation: none; } }
.header-shell { width: 100%; padding: 12px 16px; }
.header-card { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid rgba(226,232,240,.8); border-radius: 32px; background: rgba(255,255,255,.85); box-shadow: 0 20px 70px rgba(15,23,42,.07); }
.header-title { display: flex; min-width: 0; align-items: center; gap: 12px; color: #334155; font-size: 14px; font-weight: 600; }
.header-badge { padding: 8px 12px; border: 1px solid rgb(var(--border)); border-radius: 999px; background: #fff9ef; color: #95530c; font-size: 11px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.mobile-menu, .mobile-overlay { display: none; }
.auria-shell { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 30px max(16px, calc((100vw - var(--sidebar-width) - 1180px)/2)) 28px; }
.auria-card { border: 1px solid rgba(var(--border),.9); border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: 0 24px 80px rgba(15,23,42,.06); backdrop-filter: blur(18px); }
.hero { position: relative; min-height: 340px; overflow: hidden; padding: clamp(32px,5vw,64px); }
.hero::after { position: absolute; top: -150px; right: -90px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle,#f9daa0,transparent 69%); content: ""; opacity: .75; pointer-events: none; }
.eyebrow { color: #b56818; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(38px,5vw,64px); letter-spacing: -.055em; line-height: 1.05; }
.hero em { background: linear-gradient(90deg,rgb(var(--accent)),rgb(var(--accent-2))); background-clip: text; color: transparent; font-style: normal; }
.hero p { max-width: 550px; color: rgb(var(--muted)); font-size: 17px; line-height: 1.6; }
.hero-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.pill { padding: 10px 14px; border: 1px solid rgb(var(--border)); border-radius: 999px; background: rgba(255,255,255,.65); font-size: 12px; font-weight: 650; }
.pill i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: rgb(var(--accent)); }
.hero-footer a { color: #b56818; font-size: 13px; font-weight: 750; }
main section:not(.hero) { padding-top: 34px; }
.page-heading { margin: 4px 0 28px; }
.page-heading h1 { margin: 9px 0 8px; font-size: clamp(32px,3.5vw,44px); letter-spacing: -.05em; line-height: 1.12; }
.page-heading p { max-width: 640px; margin: 0; color: rgb(var(--muted)); font-size: 15px; line-height: 1.55; }
.overview-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.overview-link { display: flex; min-height: 220px; flex-direction: column; padding: 26px; transition: transform .15s, box-shadow .15s; }
.overview-link:hover { transform: translateY(-3px); box-shadow: 0 28px 65px rgba(15,23,42,.1); }
.overview-icon { color: #b56818; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.overview-link h2 { margin: 22px 0 8px; font-size: 22px; }
.overview-link p { color: rgb(var(--muted)); font-size: 13px; line-height: 1.5; }
.overview-arrow { margin-top: auto; color: #aa6115; font-size: 13px; font-weight: 750; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.heading h1, .heading h2 { margin: 8px 0 0; font-size: 26px; letter-spacing: -.04em; }
.heading > span { color: rgb(var(--muted)); font-size: 12px; }
.journey { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.step { min-height: 192px; padding: 22px; }
.step small { color: #c27623; font-size: 11px; font-weight: 800; }
.step h3 { margin: 32px 0 7px; font-size: 17px; }
.step p, .foundation p { margin: 0; color: rgb(var(--muted)); font-size: 13px; line-height: 1.5; }
.foundation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.foundation article { min-height: 172px; padding: 25px; }
.foundation article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #fff1d8; color: #ba6917; font-size: 20px; }
.foundation h3 { margin: 17px 0 7px; font-size: 17px; }
.architecture-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 40px 0 16px; }
.architecture-heading h3 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.03em; }
.architecture-heading p { margin: 0; color: rgb(var(--muted)); font-size: 13px; }
.architecture-gallery { display: grid; gap: 20px; }
.architecture-figure { overflow: hidden; margin: 0; }
.architecture-figure figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 18px 22px; }
.architecture-figure figcaption strong { font-size: 16px; }
.architecture-figure figcaption span { color: rgb(var(--muted)); font-size: 13px; }
.architecture-figure a { display: block; border-top: 1px solid rgba(var(--border),.9); background: #fff; }
.architecture-figure a:focus-visible { outline: 3px solid rgb(var(--accent)); outline-offset: -3px; }
.architecture-figure img { display: block; width: 100%; height: auto; }
footer { padding: 44px 0 6px; color: #8d938e; font-size: 12px; text-align: center; }
.communication-page { padding-top: 0 !important; padding-bottom: 128px; }
.communication-organizations { margin-bottom: 20px; padding: 24px 30px; background: #fff; }
.communication-organizations-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.communication-organizations-heading h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.02em; }
.communication-organizations-heading p { margin: 0; color: rgb(var(--muted)); font-size: 13px; }
.communication-organizations-heading > span { color: #64748b; font-size: 12px; white-space: nowrap; }
.communication-table-wrap { overflow-x: auto; }
.communication-organizations table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.communication-organizations th,.communication-organizations td { padding: 14px 12px; border-top: 1px solid #e8e4df; vertical-align: middle; }
.communication-organizations thead th { color: #64748b; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.communication-organizations tbody th { color: #172033; font-weight: 700; }
.communication-organizations td { color: #475569; overflow-wrap: anywhere; }
.communication-organizations td:last-child { white-space: nowrap; }
.communication-organizations .communication-status { display: inline-block; }
.communication-edit { padding: 8px 12px; border: 1px solid #dbe2e8; border-radius: 9px; background: #fff; color: #263345; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.communication-edit:hover { background: #f8fafc; }
.communication-edit:focus-visible { outline: 3px solid #eaa23b; outline-offset: 2px; }
#configured-organizations-empty { margin: 0; padding: 8px 0 2px; color: #64748b; font-size: 13px; }
.communication-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,320px); align-items: start; gap: 20px; }
.communication-card { min-width: 0; padding: 30px; background: #fff; }
.communication-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #e8e4df; }
.communication-top > div { display: flex; align-items: center; gap: 12px; }
.channel-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; background: #fff1d8; color: #a75e13; font-size: 20px; }
.communication-top h2 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.03em; }
.communication-top p { margin: 0; color: rgb(var(--muted)); font-size: 13px; }
#email-configuration-form { margin-top: 24px; }
.communication-status { padding: 8px 12px; border-radius: 99px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700; white-space: nowrap; }
.communication-status.active { background:#dcfce7; color:#166534; }
.communication-status.pending { background:#fef3c7; color:#92400e; }
.communication-card label { display: grid; gap: 8px; color: #334155; font-size: 13px; font-weight: 650; }
.communication-card select,.communication-card input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #d8dee5; border-radius: 10px; outline: 0; background: #fff; color: #0f172a; font: inherit; font-size: 14px; font-weight: 400; }
.communication-card select:focus,.communication-card input:focus { border-color: #eaa23b; box-shadow: 0 0 0 3px rgba(245,166,35,.16); }
.communication-card input::placeholder { color: #a0a7b1; }
.organization-field { max-width: 480px; margin: 24px 0 28px; }
.communication-card > .organization-app-section { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid #e8e4df; }
.organization-app-section h3 { margin: 0 0 16px; font-size: 16px; }
.organization-app-section > label { max-width: 100%; }
.organization-app-section .communication-help { margin-top: 9px; }
.communication-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.communication-grid .full-width { grid-column: 1 / -1; }
.communication-grid .full-width input { max-width: 480px; }
.optional { color: #8b95a2; font-weight: 400; }
.communication-help { margin: 20px 0 0; color: rgb(var(--muted)); font-size: 13px; line-height: 1.5; }
.communication-floating-actions { position: fixed; z-index: 40; left: calc(var(--sidebar-width) + 20px); right: 20px; bottom: 16px; max-width: 1180px; margin-inline: auto; pointer-events: none; }
.communication-floating-actions-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid #dbe2e8; border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 18px 60px rgba(15,23,42,.18); backdrop-filter: blur(12px); pointer-events: auto; }
.communication-actions-title { color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.communication-action-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.communication-action-buttons button { min-height: 44px; padding: 9px 16px; border: 1px solid #0f172a; border-radius: 12px; background: #0f172a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.communication-action-buttons button.secondary { border-color: #dbe2e8; background: #fff; color: #334155; }
.communication-action-buttons button:not(:disabled):hover { filter: brightness(.94); }
.communication-action-buttons button:focus-visible { outline: 3px solid #eaa23b; outline-offset: 2px; }
.communication-action-buttons button:disabled { opacity: .5; cursor: not-allowed; }
.communication-preview { min-width: 0; padding: 26px; background: #fff; }
.communication-preview h2 { margin: 9px 0 24px; font-size: 19px; line-height: 1.3; }
.preview-line { padding: 16px 0; border-top: 1px solid #e8e4df; }
.preview-line small { display: block; margin-bottom: 10px; color: #8b95a2; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.preview-line strong { display: block; overflow-wrap: anywhere; color: #263345; font-size: 14px; font-weight: 650; line-height: 1.5; }
.communication-preview > p { margin: 18px 0 0; padding: 9px 12px; border-radius: 9px; background: #f1f5f9; color: #64748b; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.communication-records { margin-top:20px; padding:16px; border:1px solid #fde68a; border-radius:12px; background:#fffbeb; font-size:12px; overflow-wrap:anywhere; }
.communication-records p { margin:10px 0 0; color:#475569; }
.communication-card > .dns-panel { margin-top: 28px; padding-top: 26px; border-top: 1px solid #e8e4df; }
.dns-panel[hidden] { display: none; }
.dns-heading,.dns-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dns-heading h3 { margin: 0 0 4px; color: #172033; font-size: 19px; }
.dns-heading p,.dns-intro,.dns-group > p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.dns-intro { margin: 16px 0 20px; }
.dns-group { padding: 18px 0; border-top: 1px solid #ece8e1; }
.dns-group-heading { margin-bottom: 14px; }
.dns-group-heading h4 { margin: 0; color: #172033; font-size: 15px; }
.dns-state { display: inline-block; padding: 6px 10px; border-radius: 99px; background: #fff4d9; color: #92570e; font-size: 11px; font-weight: 700; line-height: 1.3; }
.dns-state.ok { background: #dcfce7; color: #166534; }
.dns-state.pending { background: #fef3c7; color: #92400e; }
.dns-record { margin-top: 12px; padding: 15px; border: 1px solid #e8e4df; border-radius: 12px; background: #faf9f7; }
.dns-record-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.dns-record-fields > .dns-field:nth-child(n+3) { grid-column: 1 / -1; }
.dns-field { min-width: 0; }
.dns-field small { display: block; margin-bottom: 5px; color: #64748b; font-size: 11px; font-weight: 700; }
.dns-field-line { display: flex; align-items: stretch; min-height: 37px; border: 1px solid #dbe2e8; border-radius: 8px; background: #fff; }
.dns-field-line code { flex: 1; min-width: 0; padding: 9px 10px; color: #263345; font-size: 12px; overflow-wrap: anywhere; user-select: all; }
.dns-field-line button { flex: none; padding: 0 10px; border: 0; border-left: 1px solid #dbe2e8; border-radius: 0 8px 8px 0; background: #f8fafc; color: #334155; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.dns-field-line button:hover { background: #eef2f7; }
.dns-field-line button:focus-visible { outline: 3px solid #eaa23b; outline-offset: 2px; }
.dns-group > p { margin-top: 10px; }
#dns-feedback { min-height: 18px; margin: 6px 0 0; color: #64748b; font-size: 12px; }
#communication-feedback { min-height: 18px; margin: 16px 0 0; color: #475569; font-size: 13px; }
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1180px) { .communication-layout { grid-template-columns: 1fr; } .communication-preview { max-width: none; } }
@media (max-width: 1100px) {
  .communication-floating-actions-inner { display: block; }
  .communication-action-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 9px; }
  .communication-action-buttons button { width: 100%; }
  .communication-page { padding-bottom: 175px; }
}
@media (max-width: 767px) {
  .auria-sidebar { width: 240px; transform: translateX(-100%); }
  .mobile-nav-open .auria-sidebar { transform: translateX(0); }
  .sidebar-collapsed { --sidebar-width: 240px; }
  .sidebar-collapsed .sidebar-header { height: 64px; flex-direction: row; justify-content: space-between; gap: 0; padding: 0 12px; }
  .sidebar-collapsed .brand-horizontal, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-item span, .sidebar-collapsed .account-label, .sidebar-collapsed .account-chevron { display: block; }
  .sidebar-collapsed .brand-symbol, .sidebar-toggle { display: none; }
  .sidebar-collapsed .nav-item { justify-content: flex-start; padding: 8px 10px; }
  .sidebar-collapsed .nav-subitem { display: flex; }
  .sidebar-collapsed .account-menu summary { justify-content: flex-start; }
  .sidebar-collapsed .account-popover { left: 8px; bottom: 100%; }
  .mobile-close { display: grid; }
  .mobile-overlay { position: fixed; inset: 0; z-index: 45; display: block; width: 100%; border: 0; background: rgba(2,6,23,.4); }
  .mobile-overlay[hidden] { display: none; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #334155; }
  .auria-shell { padding: 20px 16px 28px; }
  .journey, .foundation { grid-template-columns: 1fr; }
  .overview-links { grid-template-columns: 1fr; }
  .overview-link { min-height: 0; }
  .step { min-height: 0; }
  .step h3 { margin-top: 18px; }
  .heading { display: block; }
  .heading > span { display: block; margin-top: 8px; }
  .architecture-heading { display: block; }
  .architecture-heading p { margin-top: 8px; }
  .communication-grid { grid-template-columns:1fr; }
  .communication-grid .full-width { grid-column: auto; }
  .communication-card,.communication-preview { padding: 20px; }
  .communication-organizations { padding: 20px; }
  .communication-organizations-heading { align-items: flex-start; flex-wrap: wrap; }
  .communication-top { flex-wrap:wrap; }
  .dns-record-fields { grid-template-columns: 1fr; }
  .communication-page { padding-bottom: 210px; }
  .communication-floating-actions { left: 12px; right: 12px; bottom: 12px; }
  .communication-floating-actions-inner { padding: 12px; }
  .communication-action-buttons button { width: 100%; padding-inline: 7px; white-space: normal; }
}

/* Login styles live in the stylesheet already served to the login page. */
.activation-card { padding: 28px; background: #fff; }
.activation-intro { margin: 0 0 22px; color: rgb(var(--muted)); font-size: 14px; line-height: 1.6; }
.activation-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) auto; align-items: end; gap: 14px; }
.activation-form label { display: grid; gap: 8px; color: #334155; font-size: 13px; font-weight: 650; }
.activation-form select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #d8dee5; border-radius: 10px; background: #fff; color: #0f172a; font: inherit; font-size: 14px; }
.activation-form select:focus { outline: 0; border-color: #eaa23b; box-shadow: 0 0 0 3px rgba(245,166,35,.16); }
.activation-condo-field { position: relative; display: grid; gap: 8px; min-width: 0; color: #334155; font-size: 13px; font-weight: 650; }
.activation-condo-field input[type="text"] { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #d8dee5; border-radius: 10px; background: #fff; color: #0f172a; font: inherit; font-size: 14px; }
.activation-condo-field input[type="text"]:focus { outline: 0; border-color: #eaa23b; box-shadow: 0 0 0 3px rgba(245,166,35,.16); }
.activation-condo-field input[type="text"]:disabled { background: #f8fafc; color: #64748b; }
.activation-condo-options { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 240px; overflow-y: auto; margin-top: 4px; padding: 5px; border: 1px solid #d8dee5; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px #0f172a20; }
.activation-condo-option { padding: 10px 9px; border-radius: 7px; color: #0f172a; font-size: 14px; font-weight: 500; cursor: pointer; }
.activation-condo-option:hover, .activation-condo-option[aria-selected="true"] { background: #fff1dc; }
.activation-condo-empty { margin: 0; padding: 10px 9px; color: #64748b; font-size: 13px; font-weight: 400; }
.activation-form button,.activation-start { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 10px; background: #0f172a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.activation-form button:disabled,.activation-start:disabled { opacity: .5; cursor: not-allowed; }
.activation-feedback { min-height: 20px; margin: 18px 0 0; color: #475569; font-size: 13px; }
.activation-feedback.error { color: #b91c1c; }
#activation-preview { margin-top: 26px; padding-top: 24px; border-top: 1px solid #e8e4df; }
.activation-preview-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.activation-preview-head h3 { margin: 8px 0 0; font-size: 21px; letter-spacing: -.03em; }
.activation-preview-head > span { color: #64748b; font-size: 12px; }
.activation-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.activation-count { min-height: 94px; padding: 15px; border: 1px solid #ece8e1; border-radius: 14px; background: #fffaf3; text-align: left; cursor: pointer; }
.activation-count:hover, .activation-count:focus-visible { border-color: #e5ad63; outline: 0; box-shadow: 0 0 0 3px rgba(245,166,35,.13); }
.activation-count.active { border-color: #d98928; background: #fff1d8; box-shadow: inset 0 0 0 1px #d98928; }
.activation-count.active span::after { content: " · ver lista"; color: #a85f12; font-weight: 700; }
.activation-counts strong { display: block; color: #a85f12; font-size: 25px; line-height: 1.2; }
.activation-counts span { display: block; margin-top: 8px; color: #475569; font-size: 12px; line-height: 1.4; }
.activation-explore-hint { margin: -8px 0 16px; color: #64748b; font-size: 12px; }
.activation-contact-section { padding-top: 0 !important; margin: 22px 0 26px; border: 1px solid #e8e4df; border-radius: 14px; overflow: hidden; background: #fff; }
.activation-contact-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px; }
.activation-contact-toolbar h4 { margin: 0 0 4px; color: #0f172a; font-size: 17px; }
.activation-contact-toolbar p { margin: 0; color: #64748b; font-size: 12px; }
.activation-contact-toolbar label { display: grid; gap: 6px; min-width: min(100%, 310px); color: #475569; font-size: 12px; font-weight: 650; }
.activation-contact-toolbar input { min-height: 38px; padding: 8px 11px; border: 1px solid #d8dee5; border-radius: 8px; color: #0f172a; font-size: 13px; }
.activation-contact-toolbar input:focus { outline: 2px solid #e5ad63; outline-offset: 1px; }
.activation-table-scroll { overflow-x: auto; }
.activation-contact-table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; font-size: 13px; }
.activation-contact-table th { padding: 10px 14px; border-block: 1px solid #e8e4df; background: #faf7f2; color: #64748b; font-size: 11px; font-weight: 750; }
.activation-contact-table td { padding: 12px 14px; border-bottom: 1px solid #f0ece6; color: #334155; vertical-align: top; overflow-wrap: anywhere; }
.activation-contact-table tbody tr:last-child td { border-bottom: 0; }
.activation-contact-table td strong, .activation-contact-table td small { display: block; }
.activation-contact-table td small { margin-top: 3px; color: #64748b; font-size: 11px; }
.activation-contact-table .issue { color: #a63d28; font-weight: 650; }
.activation-contact-table .missing { color: #a63d28; }
.activation-contacts-empty { margin: 0; padding: 18px; color: #64748b; font-size: 13px; }
.activation-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 18px; border-top: 1px solid #e8e4df; color: #64748b; font-size: 12px; }
.activation-pagination button { padding: 7px 10px; border: 1px solid #d8dee5; border-radius: 8px; background: #fff; color: #334155; font-size: 12px; }
.activation-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.contact-search-card { padding: 28px; background: #fff; }
.contact-search-form label { display: block; margin-bottom: 8px; color: #334155; font-size: 13px; font-weight: 650; }
.contact-search-controls { display: flex; gap: 10px; }
.contact-search-controls input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid #d8dee5; border-radius: 10px; color: #0f172a; font-size: 14px; }
.contact-search-controls input:focus { outline: 2px solid #e5ad63; outline-offset: 1px; }
.contact-search-controls button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 10px; background: #0f172a; color: #fff; font-size: 13px; font-weight: 700; }
.contact-search-controls button:disabled { opacity: .55; cursor: wait; }
.contact-search-help { margin: 11px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.contact-search-results { display: grid; gap: 16px; margin-top: 18px; }
.contact-search-results[hidden] { display: none; }
.contact-result { padding: 22px; background: #fffaf3; }
.contact-result-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.contact-result-head h3 { margin: 7px 0 3px; font-size: 20px; }
.contact-result-head p { margin: 0; color: #64748b; font-size: 12px; }
.contact-journey-status { padding: 8px 11px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.contact-journey-status.completed { background: #dcfce7; color: #166534; }
.contact-journey-status.blocked { background: #fee2e2; color: #991b1b; }
.contact-journey-status.not-started { background: #f1f5f9; color: #475569; }
.contact-search-details { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 22px; padding: 18px 0; border-block: 1px solid #e8e4df; }
.contact-search-detail small, .contact-search-detail span { display: block; overflow-wrap: anywhere; }
.contact-search-detail small { margin-bottom: 5px; color: #8b95a2; font-size: 11px; }
.contact-search-detail span { color: #263345; font-size: 13px; font-weight: 600; }
.contact-journey-progress { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.contact-journey-progress li { padding: 9px 7px; border-radius: 8px; background: #f1f5f9; color: #64748b; text-align: center; font-size: 11px; font-weight: 650; }
.contact-journey-progress li.done { background: #dcfce7; color: #166534; }
.contact-journey-progress li.current { background: #fff1d8; color: #a85f12; }
.contact-result-meta, .contact-result-event { margin: 14px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.contact-result-event { color: #334155; }
.contact-timeline-section { margin-top: 20px; border-top: 1px solid #e8e4df; padding-top: 18px; }
.contact-timeline-toggle { min-height: 40px; padding: 9px 13px; border: 1px solid #d8dee5; border-radius: 9px; background: #fff; color: #263345; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.contact-timeline-toggle:hover { border-color: #c98a3c; color: #9a5814; }
.contact-timeline-toggle:disabled { opacity: .6; cursor: wait; }
.contact-timeline-panel { margin-top: 18px; }
.contact-timeline-panel[hidden] { display: none; }
.contact-timeline-summary { margin-bottom: 22px; padding: 18px; border: 1px solid #dce7f4; border-radius: 13px; background: #f8fbff; }
.contact-timeline-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.contact-timeline-summary-head strong { color: #172033; font-size: 15px; }
.contact-timeline-next-action { margin: 0 0 16px; padding: 11px 13px; border: 1px solid #cbdcf0; border-radius: 9px; background: #eef5ff; color: #24415f; font-size: 13px; line-height: 1.5; }
.contact-timeline-summary-status { padding: 5px 9px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 750; }
.contact-timeline-summary-status.active { background: #dbeafe; color: #1d4ed8; }
.contact-timeline-summary-status.completed { background: #dcfce7; color: #166534; }
.contact-timeline-summary-status.blocked { background: #fee2e2; color: #991b1b; }
.contact-timeline-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px 18px; }
.contact-timeline-summary-grid .contact-search-detail { padding: 0; }
.contact-timeline-metrics { width: 100%; margin-top: 20px; border: 1px solid #dce7f4; border-collapse: separate; border-spacing: 0; border-radius: 10px; background: #fff; overflow: hidden; font-size: 12px; }
.contact-timeline-metrics caption { padding: 0 0 9px; color: #172033; font-size: 13px; font-weight: 750; text-align: left; }
.contact-timeline-metrics thead { background: #edf4fc; color: #526276; }
.contact-timeline-metrics th, .contact-timeline-metrics td { padding: 9px 12px; border-bottom: 1px solid #e8eef5; text-align: left; }
.contact-timeline-metrics thead th { font-size: 11px; font-weight: 700; }
.contact-timeline-metrics tbody th { color: #526276; font-weight: 600; }
.contact-timeline-metrics tbody td { width: 38%; color: #263345; font-weight: 700; }
.contact-timeline-metrics tbody tr:nth-child(even) { background: #fafcff; }
.contact-timeline-metrics tbody tr:last-child th, .contact-timeline-metrics tbody tr:last-child td { border-bottom: 0; }
.contact-timeline-history-title { margin: 0 0 16px; color: #172033; font-size: 14px; }
.contact-timeline-list { margin: 0; padding: 0; list-style: none; }
.contact-timeline-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; position: relative; }
.contact-timeline-item:not(:last-child)::before { content: ""; position: absolute; top: 22px; bottom: 0; left: 10px; width: 2px; background: #e7e0d7; }
.contact-timeline-marker { position: relative; z-index: 1; width: 13px; height: 13px; margin: 5px 0 0 4px; border: 3px solid #fffaf3; border-radius: 50%; background: #718096; box-shadow: 0 0 0 1px #d8dee5; }
.contact-timeline-item.message .contact-timeline-marker { background: #2563eb; }
.contact-timeline-item.draft .contact-timeline-marker { background: #c9852b; }
.contact-timeline-item.decision .contact-timeline-marker { background: #7c3aed; }
.contact-timeline-item.delivery .contact-timeline-marker { background: #16a34a; }
.contact-timeline-item.import .contact-timeline-marker { background: #0d9488; }
.contact-timeline-content { min-width: 0; padding: 0 0 22px; }
.contact-timeline-entry-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.contact-timeline-entry-head strong { color: #172033; font-size: 13px; }
.contact-timeline-entry-head time { color: #64748b; font-size: 11px; white-space: nowrap; }
.contact-timeline-detail, .contact-timeline-cost { margin: 6px 0 0; color: #5f6b7b; font-size: 12px; line-height: 1.5; }
.contact-timeline-badge { display: inline-block; margin-top: 7px; padding: 3px 8px; border-radius: 999px; background: #e8edf5; color: #3d4d65; font-size: 10px; font-weight: 750; }
.contact-timeline-badge.preview { background: #fff1d8; color: #965d13; }
.contact-timeline-badge.webhook { background: #e0f2fe; color: #075985; }
.contact-timeline-badge.sent, .contact-timeline-badge.delivered { background: #dcfce7; color: #166534; }
.contact-timeline-badge.failed { background: #fee2e2; color: #991b1b; }
.contact-timeline-message { margin-top: 9px; border: 1px solid #e8e4df; border-radius: 9px; background: #fff; padding: 9px 11px; }
.contact-timeline-message summary { color: #31516e; font-size: 12px; font-weight: 700; cursor: pointer; }
.contact-timeline-message strong { display: block; margin-top: 11px; font-size: 12px; color: #263345; }
.contact-timeline-message p { margin: 9px 0 0; color: #334155; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-timeline-empty, .contact-timeline-warning, .contact-timeline-error { margin: 0; font-size: 12px; line-height: 1.5; color: #64748b; }
.contact-timeline-warning { margin-top: 12px; }
.contact-timeline-error { color: #a63d28; }
@media (max-width: 767px) { .contact-search-card { padding: 20px; } .contact-search-controls { flex-direction: column; } .contact-search-details { grid-template-columns: repeat(2, minmax(0,1fr)); } .contact-result-head { flex-wrap: wrap; } .contact-journey-progress { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .contact-timeline-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 480px) { .contact-timeline-summary-grid { grid-template-columns: 1fr; } }
.activation-note { color: #64748b; font-size: 13px; line-height: 1.6; }
.activation-confirm { display: flex; align-items: center; gap: 9px; margin: 20px 0 16px; color: #334155; font-size: 13px; font-weight: 600; }
.activation-confirm input { width: 17px; height: 17px; accent-color: #f59e0b; }
@media (max-width: 900px) { .activation-form { grid-template-columns: 1fr 1fr; } .activation-form button { grid-column: 1 / -1; } .activation-counts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .activation-card { padding: 20px; } .activation-form,.activation-counts { grid-template-columns: 1fr; } .activation-preview-head { display: block; } .activation-preview-head > span { display: block; margin-top: 8px; } }
[hidden] { display: none !important; }
.users-page .page-heading { margin-bottom: 22px; }
#users-feedback { min-height: 20px; margin: 0 0 14px; color: #166534; font-size: 13px; }
#users-feedback.error { color: #b91c1c; }
.users-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 20px; padding: 22px; background: #fff; }
.users-summary > div { padding: 3px 20px; border-right: 1px solid #e8e4df; }
.users-summary > div:last-child { border-right: 0; }
.users-summary small,.users-summary strong { display: block; }
.users-summary small { color: #64748b; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.users-summary strong { margin-top: 7px; color: #0f172a; font-size: 26px; }
.users-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,340px); align-items: start; gap: 20px; }
.users-card { min-width: 0; padding: 25px; background: #fff; }
.users-card h2 { margin: 0 0 5px; font-size: 20px; letter-spacing: -.02em; }
.users-card p { margin: 0 0 20px; color: #64748b; font-size: 13px; line-height: 1.55; }
.users-card-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.users-card-head label { min-width: min(100%,230px); }
.users-card label,.users-form label { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 650; }
.users-card select,.users-form select,.users-form input,.users-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d8dee5; border-radius: 9px; background: #fff; color: #0f172a; font: inherit; font-weight: 400; }
.users-form { display: grid; gap: 16px; }
.users-form button[type="submit"] { min-height: 42px; border: 0; border-radius: 9px; background: #0f172a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.users-form button:disabled { opacity: .5; cursor: wait; }
.users-table-wrap { overflow-x: auto; }
.users-card table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; font-size: 13px; }
.users-card th,.users-card td { padding: 13px 10px; border-top: 1px solid #e8e4df; vertical-align: middle; }
.users-card thead th { color: #64748b; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.users-card td strong,.users-card td small { display: block; }
.users-card td strong { color: #0f172a; }
.users-card td small { margin-top: 3px; color: #64748b; overflow-wrap: anywhere; }
.users-badge { display: inline-block; padding: 6px 9px; border-radius: 99px; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.users-badge.active { background: #dcfce7; color: #166534; }
.users-badge.suspended { background: #fee2e2; color: #991b1b; }
.users-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.users-secondary { padding: 7px 9px; border: 1px solid #dbe2e8; border-radius: 8px; background: #fff; color: #334155; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.users-secondary:hover { background: #f8fafc; }
.users-card .users-note { margin: 18px 0 0; font-size: 12px; }
.users-card .users-empty { margin: 10px 0 0; }
.users-dialog { width: min(450px,calc(100% - 24px)); padding: 25px; border: 1px solid #e8e4df; border-radius: 16px; box-shadow: 0 20px 60px #0f172a40; }
.users-dialog::backdrop { background: #0f172a80; }
.users-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.users-dialog h2 { margin: 0; }
.users-dialog p { margin: 0; color: #64748b; font-size: 13px; }
@media (max-width: 1050px) { .users-layout { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .users-summary { grid-template-columns: repeat(2,1fr); } .users-summary > div:nth-child(2) { border-right: 0; } .users-summary > div:nth-child(n+3) { margin-top: 14px; } .users-card { padding: 20px; } }
.auth-shell { display: flex; width: min(1120px, calc(100% - 2rem)); min-height: 100vh; align-items: center; margin: 0 auto; padding: 40px 0; }
main.auth-shell section.auth-card { width: min(100%, 512px); margin: 0 auto; padding: 32px; }
.auth-logo { display: block; width: 240px; max-width: 100%; height: auto; margin-bottom: 28px; object-fit: contain; object-position: left center; }
.auth-kicker { margin-bottom: 8px; color: #64748b; font-size: 14px; font-weight: 600; letter-spacing: .22em; }
.auth-card h1 { margin: 0; color: #0f172a; font-size: 36px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; }
.auth-description { margin: 12px 0 24px; color: #475569; font-size: 16px; line-height: 1.75; }
.auth-card form { display: grid; gap: 20px; }
.auth-card label { display: block; color: #334155; font-size: 14px; font-weight: 600; }
.auth-card label > span:first-child { display: block; margin-bottom: 8px; }
.input-wrap { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.input-wrap:focus-within { border-color: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
.input-wrap .icon { width: 16px; height: 16px; color: #94a3b8; }
.input-wrap input { width: 100%; min-width: 0; border: 0; background: transparent; color: #0f172a; font-size: 15px; outline: none; }
.auth-submit { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 14px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 700; }
.auth-submit:hover { background: #1e293b; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-link { display: block; margin: 20px auto 0; padding: 4px; border: 0; background: transparent; color: #475569; font-size: 13px; font-weight: 700; }
.auth-link:hover { color: #0f172a; }
.auth-message { margin: 0; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 16px; background: #fef2f2; color: #b91c1c; font-size: 13px; line-height: 1.5; }
.auth-message.success { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
@media (max-width: 600px) { .auth-shell { padding: 24px 0; } main.auth-shell section.auth-card { padding: 24px; } .auth-card h1 { font-size: 30px; } }
.history-nav { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 0 26px; padding: 4px; border: 1px solid #e8e4df; border-radius: 13px; background: #fff; }
.history-nav a, .history-nav span { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 14px; border-radius: 9px; color: #475569; font-size: 13px; font-weight: 650; white-space: nowrap; }
.history-nav a:hover { background: #f8fafc; color: #0f172a; }
.history-nav [aria-current="page"] { background: #fff1d8; color: #94500e; font-weight: 750; }
.history-page .page-heading { margin-bottom: 24px; }
.history-page .page-heading p { max-width: 720px; }
.history-page .history-panel { min-width: 0; margin: 0 0 20px; padding: 28px 30px; background: #fff; }
.history-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #e8e4df; }
.history-section-heading h2 { margin: 7px 0 5px; color: #172033; font-size: 21px; letter-spacing: -.03em; }
.history-section-heading p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.history-step { flex: none; padding: 7px 10px; border-radius: 999px; background: #fff7e8; color: #9a560e; font-size: 11px; font-weight: 750; }
.history-source-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.45fr); align-items: end; gap: 24px; margin-bottom: 24px; }
.history-field { display: grid; gap: 8px; color: #334155; font-size: 13px; font-weight: 650; }
.history-field select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #d8dee5; border-radius: 10px; background: #fff; color: #0f172a; font: inherit; font-size: 14px; font-weight: 400; }
.history-field select:focus-visible, #history-file:focus-visible + .history-file-trigger { outline: 3px solid rgba(245,166,35,.45); outline-offset: 2px; }
.history-source-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 14px 16px; border: 1px solid #e8e4df; border-radius: 12px; background: #faf9f7; }
.history-source-summary small { display: block; margin-bottom: 5px; color: #8b95a2; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.history-source-summary strong { color: #263345; font-size: 12px; font-weight: 700; }
.history-field-title { display: block; margin-bottom: 9px; color: #334155; font-size: 13px; font-weight: 650; }
.history-file-box { display: flex; min-height: 78px; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px; border: 1px dashed #c9d2dd; border-radius: 12px; background: #fbfcfd; }
.history-file-box:hover { border-color: #eaa23b; background: #fffdf8; }
.history-file-box input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.history-file-trigger { display: inline-flex; min-height: 40px; align-items: center; padding: 9px 14px; border: 1px solid #d8dee5; border-radius: 9px; background: #fff; color: #263345; font-size: 13px; font-weight: 700; cursor: pointer; }
.history-file-trigger:hover { border-color: #aab7c5; background: #f8fafc; }
#history-file-name { min-width: 0; color: #64748b; font-size: 13px; overflow-wrap: anywhere; }
.history-upload-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.history-upload-footer p { margin: 0; color: #64748b; font-size: 12px; }
#history-submit, #history-batch-details button { min-height: 42px; padding: 9px 16px; border: 1px solid #0f172a; border-radius: 10px; background: #0f172a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#history-submit:not(:disabled):hover, #history-batch-details button:hover { background: #263345; }
#history-submit:disabled { opacity: .48; cursor: not-allowed; }
#history-feedback { display: none; margin: 18px 0 0; padding: 11px 14px; border: 1px solid #bae6fd; border-radius: 10px; background: #f0f9ff; color: #075985; font-size: 13px; line-height: 1.5; }
#history-feedback:not(:empty) { display: block; }
#history-feedback[data-tone="error"] { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
#history-feedback[data-tone="success"] { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.history-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.history-metrics p { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 14px; border: 1px solid #e8e4df; border-radius: 12px; background: #faf9f7; color: #172033; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.history-metrics strong { color: #64748b; font-size: 11px; font-weight: 700; }
.history-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e8e4df; }
.history-preview-actions button { min-height: 44px; padding: 10px 18px; border: 1px solid #0f172a; border-radius: 10px; background: #0f172a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.history-preview-actions button.secondary { border-color: #d8dee5; background: #fff; color: #334155; }
.history-preview-actions button:not(:disabled):hover { filter: brightness(.94); }
.history-preview-actions button:focus-visible { outline: 3px solid #eaa23b; outline-offset: 2px; }
.history-preview-actions button:disabled { opacity: .5; cursor: not-allowed; }
.history-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.history-table th, .history-table td { padding: 14px 12px; border-top: 1px solid #e8e4df; vertical-align: middle; }
.history-table thead th { color: #64748b; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.history-table tbody td { color: #475569; }
.history-table tbody td:nth-child(3) { max-width: 230px; overflow-wrap: anywhere; }
.history-table tbody td:last-child { white-space: nowrap; }
.history-table .communication-status { display: inline-block; }
#history-batch-details { margin-top: 20px; padding: 18px; border: 1px solid #e8e4df; border-radius: 12px; background: #faf9f7; }
#history-batch-details p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 8px 0; border-bottom: 1px solid #e8e4df; color: #263345; font-size: 13px; overflow-wrap: anywhere; }
#history-batch-details p:last-of-type { border: 0; }
#history-batch-details strong { color: #64748b; }
#history-batch-details button { margin-top: 16px; }
@media (max-width: 1100px) { .history-source-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .history-page .history-panel { padding: 20px; }
  .history-section-heading { flex-wrap: wrap; }
  .history-source-summary { grid-template-columns: 1fr 1fr; }
  .history-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-nav { overflow-x: auto; }
}
@media (max-width: 480px) { .history-source-summary, .history-metrics { grid-template-columns: 1fr; } .history-upload-footer #history-submit { width: 100%; } }
@media (max-width: 480px) { .history-preview-actions { display: grid; grid-template-columns: 1fr; } .history-preview-actions button { width: 100%; } }
.nba-feedback-open { margin-top: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: #173b56; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.nba-feedback-dialog { width: min(680px,calc(100% - 24px)); max-height: 88vh; padding: 22px; border: 1px solid #dbe2e8; border-radius: 15px; box-shadow: 0 20px 60px #0f172a40; }
.nba-feedback-dialog::backdrop { background: #0f172a80; }
.nba-feedback-head, .nba-feedback-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nba-feedback-head h2 { margin: 0; font-size: 19px; }
.nba-feedback-dialog button.secondary, .nba-feedback-close { padding: 8px 11px; border: 1px solid #d8dee5; border-radius: 8px; background: #fff; color: #334155; cursor: pointer; }
.nba-version { margin-top: 17px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 10px; }
.nba-version h3 { margin: 0 0 10px; font-size: 13px; }
.nba-version > strong { display: block; font-size: 13px; }
.nba-version > p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.nba-version-feedback { margin-top: 16px; color: #526276; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.nba-regenerate-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.nba-regenerate { min-height: 40px; padding: 9px 16px; border: 0; border-radius: 10px; background: #173b56; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.nba-regenerate:hover { background: #24516f; }
.nba-regenerate:focus-visible { outline: 3px solid #eaa23b; outline-offset: 2px; }
.nba-regenerate:disabled { opacity: .65; cursor: wait; }
.nba-regenerate-progress { margin-right: auto; color: #526276; font-size: 13px; line-height: 1.4; }
.nba-regenerate-footer.is-generating .nba-regenerate-progress::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; border: 2px solid #b7c8d6; border-top-color: #173b56; border-radius: 50%; vertical-align: -3px; animation: nba-spin .8s linear infinite; }
.nba-regenerate-footer.has-error .nba-regenerate-progress { color: #a63d28; }
@keyframes nba-spin { to { transform: rotate(360deg); } }
.nba-feedback-actions { justify-content: flex-start; }
.nba-feedback-actions button, .nba-negative-form button { padding: 8px 11px; border: 0; border-radius: 8px; background: #173b56; color: #fff; cursor: pointer; }
.nba-negative-form { display: grid; gap: 12px; margin-top: 15px; }
.nba-negative-form fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; border: 1px solid #e2e8f0; border-radius: 8px; }
.nba-negative-form legend { font-size: 13px; font-weight: 700; }
.nba-negative-form label { display: flex; gap: 7px; align-items: center; font-size: 12px; }
.nba-negative-form label:has(textarea) { display: grid; }
.nba-negative-form textarea { width: 100%; padding: 9px; border: 1px solid #d8dee5; border-radius: 8px; font: inherit; }
.nba-feedback-status { color: #a63d28; font-size: 12px; }
.nba-preflight { margin: 12px 0; padding: 12px 14px; border: 1px solid #dbe2e8; border-radius: 10px; background: #f8fafc; }
.nba-preflight h3 { margin: 0 0 8px; font-size: 15px; }
.nba-preflight p { margin: 6px 0; font-size: 12px; line-height: 1.5; }
.nba-feedback-status:empty { display: none; }
.nba-voice-control { min-width: 0; }
.nba-voice-recording, .nba-voice-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #fee2e2; border-radius: 18px; background: #fff8f8; }
.nba-voice-info { display: grid; gap: 4px; min-width: 0; }
.nba-voice-listening { display: inline-flex; align-items: center; gap: 10px; color: #b91c1c; font-size: 14px; }
.nba-voice-dot { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.nba-voice-timer { color: #334155; font-size: 12px; font-weight: 700; }
.nba-voice-note { color: #64748b; font-size: 11px; }
.nba-voice-actions { display: flex; gap: 10px; }
.nba-negative-form .nba-voice-cancel, .nba-negative-form .nba-voice-complete, .nba-negative-form .nba-voice-start { min-height: 42px; padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.nba-negative-form .nba-voice-cancel, .nba-negative-form .nba-voice-start { border: 1px solid #dbe2e8; background: #fff; color: #0f172a; }
.nba-negative-form .nba-voice-complete { border: 1px solid #0f172a; background: #0f172a; color: #fff; }
.nba-negative-form .nba-voice-start:disabled { color: #94a3b8; cursor: not-allowed; }
.nba-negative-form .nba-voice-start { display: inline-flex; align-items: center; gap: 9px; }
.nba-voice-start-icon { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M12 17v5M8 22h8'/%3E%3C/svg%3E") center / contain no-repeat; }
.nba-voice-processing { display: inline-flex; min-height: 42px; align-items: center; padding: 10px 18px; border: 1px solid #dbe2e8; border-radius: 999px; background: #fff; color: #334155; font-size: 13px; font-weight: 700; }
.nba-voice-error p { margin: 0; color: #b91c1c; font-size: 12px; }
.nba-voice-added { margin-left: 10px; color: #047857; font-size: 12px; font-weight: 700; }
.nba-preferences-card { margin-top: 22px; padding: 24px; }
.nba-preferences-card h2 { margin: 0 0 8px; font-size: 20px; }
.nba-preferences-card p { font-size: 13px; color: #64748b; }
#nba-preference-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
#nba-preference-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
#nba-preference-form input, #nba-preference-form select, #nba-preference-form textarea { width: 100%; padding: 9px; border: 1px solid #d8dee5; border-radius: 8px; font: inherit; }
#nba-preference-form .nba-preference-instruction { grid-column: 1 / -1; }
#nba-preference-form button[type="submit"] { grid-column: 1 / -1; justify-self: start; min-height: 44px; padding: 10px 18px; border: 1px solid #0f172a; border-radius: 12px; background: #0f172a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#nba-preference-form button[type="submit"]:hover { background: #1e293b; }
#nba-preference-form button[type="submit"]:focus-visible { outline: 3px solid #eaa23b; outline-offset: 2px; }
#nba-preference-form button[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
#nba-preferences-list { padding-left: 20px; font-size: 13px; }
#nba-preferences-list li { margin: 10px 0; }
#nba-preferences-list button { min-height: 32px; margin-left: 10px; padding: 5px 10px; border: 1px solid #dbe2e8; border-radius: 9px; background: #fff; color: #334155; font-size: 12px; font-weight: 700; }
@media (max-width: 600px) { #nba-preference-form, .nba-negative-form fieldset { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .nba-voice-actions { width: 100%; } .nba-voice-actions button { flex: 1; } }
@media (max-width: 600px) { .nba-regenerate-footer { align-items: stretch; } .nba-regenerate-progress:not(:empty), .nba-regenerate { width: 100%; } }
.cta-card { margin-top: 22px; padding: 24px; }
.cta-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.cta-heading h2 { margin: 0; font-size: 20px; }
.cta-heading p { color: #64748b; font-size: 13px; }
.cta-heading button, .cta-dialog-actions button { padding: 10px 16px; border: 0; border-radius: 10px; background: #0f172a; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.cta-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.cta-filters label, .cta-dialog label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.cta-filters input, .cta-filters select, .cta-dialog input, .cta-dialog select, .cta-dialog textarea { width: 100%; padding: 9px; border: 1px solid #d8dee5; border-radius: 8px; font: inherit; }
.cta-dialog { width: min(720px,calc(100% - 24px)); max-height: 90vh; border: 1px solid #dbe2e8; border-radius: 15px; box-shadow: 0 20px 60px #0f172a40; }
.cta-dialog::backdrop { background: #0f172a80; }
.cta-dialog form { display: grid; gap: 14px; }
.cta-dialog h3 { margin: 0; }
.cta-dialog fieldset { border: 1px solid #dbe2e8; border-radius: 8px; }
.cta-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 180px; overflow-y: auto; }
.cta-options label { display: flex; align-items: center; font-weight: 400; }
.cta-options input { width: auto; }
.cta-dialog-actions { display: flex; justify-content: end; gap: 10px; }
.cta-dialog-actions .secondary { background: #e2e8f0; color: #0f172a; }
#cta-list button { margin: 2px 4px 2px 0; padding: 5px 8px; border: 1px solid #dbe2e8; border-radius: 8px; background: white; cursor: pointer; }
@media (max-width: 700px) { .cta-filters, .cta-options { grid-template-columns: 1fr; } .cta-heading { flex-wrap: wrap; } }

:root { --analytics-orange: #e97831; }
.analytics-ask { padding: 22px; margin-top: 20px; }
.analytics-ask h2 { margin: 5px 0 7px; color: #172840; font-size: 21px; }
.analytics-ask > p { margin: 0 0 16px; color: rgb(var(--muted)); font-size: 13px; }
#analytics-ask-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
#analytics-ask-form label { width: 100%; font-size: 12px; font-weight: 700; color: #26354a; }
#analytics-ask-form textarea { flex: 1 1 360px; min-height: 58px; resize: vertical; border: 1px solid rgb(var(--border)); border-radius: 12px; padding: 12px; font: inherit; color: rgb(var(--foreground)); }
#analytics-ask-form button { min-height: 50px; padding: 10px 18px; border: 0; border-radius: 12px; background: #172840; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
#analytics-ask-form button:disabled { opacity: .6; cursor: wait; }
.analytics-ask-examples, .analytics-answer-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; font-size: 12px; color: rgb(var(--muted)); }
.analytics-ask-examples button, .analytics-answer-feedback button, #analytics-question-history button { border: 1px solid rgb(var(--border)); border-radius: 999px; padding: 7px 11px; background: #fff; color: #26354a; font: inherit; cursor: pointer; }
#analytics-ask-status { min-height: 18px; margin: 12px 0 0; color: rgb(var(--muted)); font-size: 12px; }
#analytics-answer { border: 1px solid #dce5eb; border-radius: 14px; background: #f9fbfc; padding: 17px; margin-top: 8px; }
.analytics-answer-text { margin: 0 0 10px; color: #172840; font-size: 15px; font-weight: 700; line-height: 1.5; }
.analytics-answer-meta { margin: 10px 0 0; color: rgb(var(--muted)); font-size: 11px; }
.analytics-answer-chart { display: grid; gap: 9px; padding: 8px 0; }
.analytics-answer-bar { display: grid; grid-template-columns: minmax(100px, 180px) minmax(50px, 1fr) 72px; gap: 10px; align-items: center; font-size: 12px; }
.analytics-answer-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-answer-bar > div { height: 10px; border-radius: 999px; background: #e9edf2; overflow: hidden; }
.analytics-answer-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f3ac32, #e97831); }
.analytics-answer-bar strong { text-align: right; font-size: 11px; }
.analytics-ask-history { margin-top: 14px; font-size: 12px; color: #26354a; }
.analytics-ask-history summary { cursor: pointer; font-weight: 700; }
#analytics-question-history { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.analytics-ask :focus-visible { outline: 3px solid rgba(233,120,49,.45); outline-offset: 2px; }
.analytics-page { max-width: 1440px; }
.analytics-filters { display: grid; grid-template-columns: repeat(7, minmax(125px, 1fr)); gap: 12px; padding: 18px; margin: 22px 0 12px; }
.analytics-filters label { display: grid; gap: 7px; min-width: 0; color: rgb(var(--muted)); font-size: 12px; font-weight: 700; }
.analytics-filters select, .analytics-filters input { width: 100%; min-width: 0; border: 1px solid rgb(var(--border)); border-radius: 10px; background: #fff; color: rgb(var(--foreground)); padding: 10px 9px; font: inherit; font-size: 13px; }
.analytics-feedback { min-height: 20px; color: rgb(var(--muted)); font-size: 13px; }
.analytics-updated { color: rgb(var(--muted)); font-size: 12px; margin: 0 0 20px; }
.analytics-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 22px 0; padding-bottom: 4px; }
.analytics-tabs button { flex: 0 0 auto; border: 1px solid rgb(var(--border)); border-radius: 999px; padding: 10px 16px; background: #fff; color: rgb(var(--muted)); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.analytics-tabs button[aria-selected="true"] { color: #fff; border-color: #172840; background: #172840; }
.analytics-tabs button:focus-visible, .analytics-filters :focus-visible { outline: 3px solid rgba(233,120,49,.45); outline-offset: 2px; }
.analytics-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.analytics-kpi { padding: 20px; min-width: 0; }
.analytics-kpi small { display: block; text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 800; color: rgb(var(--muted)); }
.analytics-kpi strong { display: block; margin-top: 12px; color: #172840; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.analytics-kpi p { margin: 9px 0 0; font-size: 12px; line-height: 1.5; color: rgb(var(--muted)); }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; }
.analytics-panel { padding: 20px; min-width: 0; }
.analytics-panel h2 { margin: 7px 0 18px; font-size: 20px; }
.analytics-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.analytics-legend { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 12px; color: rgb(var(--muted)); }
.analytics-legend i { width: 15px; height: 4px; border-radius: 4px; }
.analytics-chart { position: relative; min-height: 265px; display: grid; place-items: center; color: rgb(var(--muted)); font-size: 13px; }
.analytics-chart svg { width: 100%; height: auto; touch-action: none; }
.analytics-gridline { stroke: #e9edf2; stroke-width: 1; }
.analytics-axis-label { fill: #7b8797; font-size: 11px; font-weight: 600; }
.analytics-hover-guide { stroke: #a9b5c3; stroke-width: 1.5; stroke-dasharray: 4 4; }
.analytics-tooltip { position: absolute; top: 16px; transform: translateX(-50%); white-space: nowrap; border: 1px solid #d8e0e8; border-radius: 10px; background: #fff; padding: 10px 12px; color: #172840; box-shadow: 0 8px 25px rgba(23,40,64,.1); pointer-events: none; font-size: 12px; font-weight: 700; }
.analytics-stage { margin: 0 0 18px; }
.analytics-stage-head { display: flex; justify-content: space-between; gap: 10px; color: #26354a; font-size: 13px; }
.analytics-stage-track { height: 9px; overflow: hidden; border-radius: 999px; background: #f0eee9; margin-top: 8px; }
.analytics-stage-track i { display: block; height: 100%; background: linear-gradient(90deg, #f3ac32, #e97831); border-radius: inherit; }
.analytics-stage small { display: block; margin-top: 5px; color: rgb(var(--muted)); font-size: 11px; }
.analytics-table-panel { margin-top: 16px; }
.analytics-table-wrap { width: 100%; overflow-x: auto; }
.analytics-table-panel table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.analytics-table-panel th, .analytics-table-panel td { padding: 12px; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
.analytics-table-panel th { color: rgb(var(--muted)); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 1100px) { .analytics-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .analytics-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .analytics-kpis { grid-template-columns: 1fr; } }
.activation-contact-table .activation-action { white-space: nowrap; text-align: right; }
.activation-contact-table th:last-child { text-align: right; }
.activation-contact-start { padding: 8px 11px; border: 1px solid #a85c10; border-radius: 8px; background: #fff8eb; color: #96500b; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.activation-contact-start:hover:not(:disabled) { background: #ffefd0; }
.activation-contact-start:focus-visible { outline: 3px solid #eaa23b; outline-offset: 2px; }
.activation-contact-start:disabled { opacity: .5; cursor: not-allowed; }
.activation-scope { padding: 16px 18px; border: 1px solid #e5ad63; border-radius: 12px; background: #fffaf3; color: #334155; font-size: 13px; line-height: 1.55; }
.activation-scope strong { display: block; margin-bottom: 7px; color: #0f172a; font-size: 14px; }
.activation-scope p { margin: 5px 0 0; }
