:root {
  --bg: #fef7ff;
  --wash: #f5f3ff;
  --surface: #fffaff;
  --surface-2: #f3eaff;
  --line: #e7ddf4;
  --line-strong: #cfc3dd;
  --text: #18112b;
  --muted: #6e647f;
  --primary: #6d28d9;
  --primary-dark: #2a1d46;
  --primary-soft: #eee4ff;
  --green: #087a36;
  --green-soft: #d7f8e3;
  --yellow: #996a00;
  --yellow-soft: #fff1be;
  --red: #a31313;
  --red-soft: #ffdeda;
  --shadow-sm: 0 4px 20px rgba(31, 22, 53, 0.04);
  --shadow-md: 0 10px 30px rgba(31, 22, 53, 0.08);
  --sidebar: 280px;
  --content-max: 1170px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-toast {
  position: fixed;
  top: 74px;
  right: 24px;
  z-index: 5000;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  width: min(430px, calc(100vw - 32px));
  padding: 15px 14px;
  border: 1px solid #b8d1ee;
  border-radius: 9px;
  color: #123158;
  background: #f8fbff;
  box-shadow: 0 16px 35px rgba(21, 47, 83, 0.18);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.app-toast.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.app-toast[hidden] { display: none; }
.app-toast[data-tone="success"] { border-color: #9bd9bd; color: #075d3a; background: #f0fff7; }
.app-toast[data-tone="warning"] { border-color: #ebcf8a; color: #7a5100; background: #fffaf0; }
.app-toast[data-tone="error"] { border-color: #e7a6a6; color: #8d1d1d; background: #fff5f5; }
.app-toast[data-tone="info"] { border-color: #a9c8f3; color: #0752a8; background: #f1f7ff; }
.app-toast-icon { font-size: 22px; line-height: 1; }
.app-toast strong { font-size: 13px; line-height: 1.45; }
.app-toast-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; color: currentColor; background: transparent; cursor: pointer; }
.app-toast-close:hover { background: rgba(7, 91, 216, 0.08); }

/* Mobile navigation starts at the top of the viewport and the first workspace item. */
@media (max-width: 900px) {
  .app-page { height: 100dvh; min-height: 100dvh; overflow: hidden; }
  .app-page .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(306px, calc(100vw - 42px)); height: 100dvh; max-height: 100dvh; margin: 0; overflow: hidden; transform: translate3d(-105%, 0, 0); transition: transform 180ms ease; }
  .app-page.nav-open .app-sidebar { transform: translate3d(0, 0, 0); }
  .app-page .sidebar-scrim { position: fixed; inset: 0; z-index: 55; display: block; opacity: 0; pointer-events: none; background: rgba(31, 22, 53, .42); transition: opacity 180ms ease; }
  .app-page.nav-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .app-page .side-menu { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; }
  .app-page .app-main { height: 100dvh; min-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

html:not(.icons-ready) .material-symbols-outlined { visibility: hidden; }

/* Marketing site */
.marketing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 8%, rgba(109, 40, 217, 0.12), transparent 25rem),
    linear-gradient(180deg, #fff9ff 0%, #fbf5ff 52%, #f4ecff 100%);
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 250, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wordmark,
.marketing-links,
.hero-actions,
.channel-cards,
.price-cards,
.cta-panel div {
  display: flex;
  align-items: center;
}

.wordmark {
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
}

.wordmark span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

.marketing-links {
  gap: 22px;
  font-size: 14px;
}

.marketing-links a {
  color: #3f3650;
  font-weight: 500;
}

.marketing-links .login-link {
  color: var(--primary);
}

.nav-cta,
.primary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.25);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero-section {
  width: min(1240px, calc(100% - 48px));
  min-height: 700px;
  margin: 0 auto;
  padding: 72px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 72px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  color: var(--text);
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  color: #342b4b;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.secondary-action,
.dark-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: #dee0e2;
  color: #50545a;
  font-weight: 700;
}

.hero-monitor {
  min-height: 500px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(31, 22, 53, 0.05), rgba(109, 40, 217, 0.1)),
    #e9e5df;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.monitor-frame {
  width: min(91%, 650px);
  aspect-ratio: 1.55;
  display: grid;
  grid-template-columns: 82px 1fr;
  overflow: hidden;
  border-radius: 8px;
  border: 11px solid #161820;
  background: #fff;
  box-shadow: 0 30px 60px rgba(31, 22, 53, 0.18);
}

.mini-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 14px;
  background: #241935;
}

.mini-sidebar i {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.mini-dashboard {
  padding: 18px;
  background: #fbf8ff;
}

.mini-top {
  height: 26px;
  border-radius: 8px;
  background: #f1ebff;
  margin-bottom: 14px;
}

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

.mini-stats span,
.mini-chart,
.mini-table {
  border: 1px solid #ece3f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mini-stats span {
  padding: 12px;
}

.mini-stats b,
.mini-stats em {
  display: block;
}

.mini-stats em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.mini-chart {
  height: 150px;
  margin: 14px 0;
  padding: 14px;
  display: flex;
  align-items: end;
  gap: 10px;
}

.mini-chart i {
  flex: 1;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #d3bbff, var(--primary));
}

.mini-table {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.mini-table span {
  height: 12px;
  border-radius: 999px;
  background: #eee4ff;
}

.channels-section,
.developer-band,
.pricing-section-new,
.cta-panel {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.channels-section {
  padding: 86px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 46px;
}

.section-title h2,
.developer-band h2,
.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-title p,
.developer-band p,
.marketing-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.channel-cards {
  gap: 34px;
}

.channel-cards article,
.price-cards article {
  flex: 1;
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.channel-cards h3,
.price-cards h3 {
  margin: 24px 0 16px;
}

.channel-cards p {
  color: var(--muted);
  line-height: 1.65;
}

.channel-cards a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 700;
}

.icon-chip {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.icon-chip.purple {
  color: var(--primary);
  background: var(--primary-soft);
}

.icon-chip.green {
  color: var(--green);
  background: var(--green-soft);
}

.developer-band {
  padding: 88px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.product-story,
.workflow-section,
.analytics-showcase,
.use-cases-section,
.trust-section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0;
}

.product-story,
.analytics-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.product-story.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.section-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-story h2,
.analytics-showcase h2 {
  margin: 14px 0;
  font-size: clamp(26px, 3vw, 38px);
}

.product-story p,
.analytics-showcase p,
.feature-list {
  color: var(--muted);
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 9px;
  padding-left: 18px;
}

.profile-mockup,
.contact-group-builder,
.form-event-card,
.campaign-table-mini {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.profile-mockup,
.contact-group-builder,
.form-event-card {
  padding: 24px;
}

.profile-head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.profile-head span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}

.profile-head small,
.profile-fields b {
  display: block;
  color: var(--muted);
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.profile-fields p {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f7f0ff;
}

.timeline-mini {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
}

.timeline-mini i {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.contact-group-builder {
  display: grid;
  gap: 12px;
}

.rule-row {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f0ff;
}

.rule-row span {
  color: var(--muted);
}

.audience-count {
  padding: 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.audience-count small,
.audience-count b {
  display: block;
}

.audience-count b {
  font-size: 24px;
}

.workflow-steps,
.trust-grid,
.use-case-grid,
.analytics-metrics {
  display: grid;
  gap: 16px;
}

.workflow-steps {
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: 20px;
}

.workflow-steps span,
.trust-grid span {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaff;
  color: var(--primary);
  font-weight: 800;
  text-align: center;
}

.campaign-table-mini {
  overflow: hidden;
}

.campaign-table-mini div {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr repeat(3, 0.8fr);
}

.campaign-table-mini div > * {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.campaign-table-mini div:first-child {
  background: var(--wash);
}

.analytics-showcase {
  padding: 36px;
  border-radius: 8px;
  background: #201536;
  color: #fff;
}

.analytics-showcase p {
  color: #d8cced;
}

.analytics-metrics {
  grid-template-columns: repeat(2, 1fr);
}

.analytics-metrics span,
.use-case-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.analytics-metrics span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.analytics-metrics b {
  display: block;
  font-size: 28px;
}

.form-event-card {
  display: grid;
  gap: 12px;
}

.form-event-card label {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.event-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.event-stats span {
  padding: 12px;
  border-radius: 8px;
  background: var(--primary-soft);
}

.event-stats b {
  display: block;
}

.use-case-grid {
  grid-template-columns: repeat(4, 1fr);
}

.use-case-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.trust-grid {
  grid-template-columns: repeat(4, 1fr);
}

.developer-band p {
  max-width: 540px;
}

.dark-action {
  margin-top: 24px;
  background: var(--primary-dark);
  color: #fff;
}

.code-window {
  padding: 22px;
  border-radius: 8px;
  background: #1e1e20;
  color: #dff2ff;
  box-shadow: var(--shadow-md);
}

.window-dots {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff605c;
}

.window-dots span:nth-child(2) {
  background: #ffbd44;
}

.window-dots span:nth-child(3) {
  background: #00ca4e;
}

pre,
code {
  font-family: "Geist Mono", Consolas, monospace;
}

pre {
  margin: 20px 0 0;
  overflow-x: auto;
  line-height: 1.55;
}

.pricing-section-new {
  padding: 40px 0 88px;
}

.price-cards {
  gap: 24px;
}

.price-cards article {
  min-height: 220px;
}

.price-cards span,
.price-cards strong {
  display: block;
}

.price-cards span {
  color: var(--primary);
  font-weight: 800;
}

.price-cards strong {
  margin: 18px 0;
  font-size: 42px;
}

.price-cards .featured {
  background: var(--primary);
  color: #fff;
}

.price-cards .featured span,
.price-cards .featured p {
  color: #f2eaff;
}

.cta-panel {
  margin-bottom: 92px;
  padding: 48px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #7528e8, var(--primary));
  box-shadow: var(--shadow-md);
}

.cta-panel h2 {
  max-width: 650px;
  margin: 0 auto 30px;
}

.cta-panel div {
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.inverse {
  background: #fff;
  color: var(--primary) !important;
}

.secondary-action.inverse {
  background: transparent;
  border: 1px solid #fff;
  color: #fff !important;
}

.marketing-footer {
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 42px;
  background: #eaddff;
}

.marketing-footer div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.marketing-footer a,
.marketing-footer p {
  font-size: 14px;
}

/* App shell */
.app-page {
  height: 100vh;
  overflow: hidden;
  background: #fbf7ff;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: #201536;
  color: #f1e8ff;
  z-index: 30;
  box-shadow: 8px 0 30px rgba(31, 22, 53, 0.1);
}

.tenant {
  min-height: 104px;
  padding: 26px 24px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tenant-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5edff;
  color: var(--primary);
}

.tenant-thumb {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #201536 0 28%, #f8f4ff 28% 100%);
}

.tenant-thumb span,
.tenant-thumb i,
.tenant-thumb b {
  position: absolute;
  display: block;
  border-radius: 2px;
}

.tenant-thumb span {
  left: 18px;
  top: 9px;
  width: 16px;
  height: 8px;
  background: #d3bbff;
}

.tenant-thumb i {
  left: 18px;
  top: 21px;
  width: 18px;
  height: 10px;
  background: #6d28d9;
}

.tenant-thumb b {
  left: 6px;
  top: 7px;
  width: 7px;
  height: 28px;
  background: rgba(255, 255, 255, 0.55);
}

.tenant strong,
.tenant span {
  display: block;
}

.tenant-switcher {
  display: none;
  max-width: 170px;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  font-size: 11px;
}
.tenant-switcher:not([hidden]) { display: block; }

.tenant strong {
  font-size: 24px;
  line-height: 1.1;
}

.tenant span {
  color: rgba(241, 232, 255, 0.72);
}

.side-menu,
.side-bottom {
  display: grid;
  gap: 3px;
  padding: 0 8px;
}

.side-menu {
  overflow-y: auto;
}

.side-bottom {
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.side-label {
  display: block;
  margin: 12px 14px 3px;
  color: rgba(241, 232, 255, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.side-more { margin-top: 3px; }
.side-more { display: contents; }
.side-more summary {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-left: 4px solid transparent;
  border-radius: 0 8px 8px 0;
  color: rgba(241, 232, 255, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.side-more summary::-webkit-details-marker { display: none; }
.side-more summary::after { content: "expand_more"; margin-left: auto; font-family: "Material Symbols Outlined"; font-size: 18px; }
.side-more[open] summary::after { content: "expand_less"; }
.side-more summary:hover { color: #fff; background: rgba(109, 40, 217, 0.2); }
.side-more[open] > summary { display: none; }
.side-more > div { display: contents; margin: 0; }
.side-more summary { display: none; }
.side-more button { min-height: 50px; padding-left: 20px; font-size: 15px; }

.side-menu button,
.side-bottom button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0 8px 8px 0;
  padding: 0 20px;
  color: rgba(241, 232, 255, 0.72);
  background: transparent;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.side-menu button:hover,
.side-bottom button:hover,
.side-menu button.active,
.side-bottom button.active {
  color: #fff;
  background: rgba(109, 40, 217, 0.31);
  border-left-color: #d3bbff;
}

.app-sidebar { overflow: hidden; }
.side-menu { flex: 1 1 auto; min-height: 0; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }

.app-main {
  height: 100vh;
  margin-left: var(--sidebar);
  overflow-y: auto;
  padding: 36px 40px 48px;
}

.mobile-appbar {
  display: none;
}

.app-view {
  display: none;
  max-width: var(--content-max);
  margin: 0 auto;
}

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

.view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.view-head.compact {
  align-items: center;
  margin-top: 28px;
}

.module-page-content { display: grid; gap: 16px; min-width: 0; }
.module-page-content > .module-shell,
.module-page-content > .operations-workspace,
.module-page-content > .analytics-workspace,
.module-page-content > .email-composer,
.module-page-content > .channel-workspace,
.module-page-content > .campaign-workspace,
.module-page-content > .wallet-workspace,
.module-page-content > .campaign-report-workspace { margin-top: 0; }

.view-head h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.03;
}

.view-head.compact h1 {
  margin: 0;
  font-size: 38px;
}

.view-head p {
  margin: 0;
  max-width: 760px;
  color: #3f3650;
  font-size: 16px;
  line-height: 1.6;
}

.outline-button,
.solid-button,
.soft-button,
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
}

.outline-button {
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
}

.solid-button {
  color: #fff;
  border: 1px solid var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.18);
}

.soft-button {
  color: var(--primary);
  border: 0;
  background: var(--primary-soft);
}

.icon-button {
  width: 44px;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
}

.outline-button.small {
  min-height: 38px;
  padding: 0 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-card,
.panel,
.table-shell,
.modal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  position: relative;
  min-height: 142px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

.metric-card-main {
  min-width: 0;
}

.metric-card-label,
.metric-card b,
.metric-card small {
  display: block;
}

.metric-card-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.metric-card b {
  margin: 18px 0 12px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.metric-card small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #087443;
  font-size: 10px;
  line-height: 1.25;
}

.metric-card small.flat {
  color: var(--muted);
}

.metric-card-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--primary);
  background: #eadcff;
  font-style: normal;
  font-size: 19px;
}

.metric-card:nth-child(2) .metric-card-icon { color: #087443; background: #e5f8ed; }
.metric-card:nth-child(3) .metric-card-icon { color: #0964cc; background: #e5f0ff; }
.metric-card:nth-child(4) .metric-card-icon { color: #9a5b00; background: #fff1d6; }
.metric-trend-icon { font-size: 13px; }

@media (max-width: 1000px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .metric-card { min-height: 118px; padding: 13px; }
  .metric-card b { margin: 14px 0 8px; font-size: 25px; }
  .metric-card-label { font-size: 10px; }
  .metric-card small { font-size: 9px; }
  .metric-card-icon { width: 30px; height: 30px; font-size: 16px; }
}

/* Searchable event picker for workspaces with many events. */
.event-selector { position: relative; z-index: 20; }
.event-picker { position: relative; min-width: 0; }
.event-picker-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.event-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 36px; padding: 0 30px 0 11px; border: 1px solid #aeb5cb; border-radius: 7px; color: var(--text); background: #fff; font: inherit; font-size: 11px; font-weight: 700; text-align: left; position: relative; }
.event-picker-trigger::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-65%) rotate(45deg); }
.event-picker-trigger[aria-expanded="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 40, 217, .12); }
.event-picker-trigger:disabled { cursor: not-allowed; opacity: .65; }
.event-picker-menu { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 50; display: grid; gap: 8px; padding: 9px; border: 1px solid #c7d1e2; border-radius: 9px; background: #fff; box-shadow: 0 16px 32px rgba(31, 48, 78, .18); }
.event-picker-menu[hidden] { display: none; }
.event-picker-search { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid #c7d1e2; border-radius: 6px; color: var(--text); background: #f8faff; font: inherit; font-size: 11px; }
.event-picker-search:focus { outline: 3px solid rgba(109, 40, 217, .12); border-color: var(--primary); }
.event-picker-options { display: grid; gap: 3px; max-height: 230px; overflow-y: auto; }
.event-picker-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 36px; padding: 7px 8px; border: 1px solid transparent; border-radius: 6px; color: var(--text); background: #fff; font: inherit; font-size: 11px; font-weight: 700; text-align: left; }
.event-picker-option:hover, .event-picker-option[aria-selected="true"] { border-color: #bfd3ef; background: #f1f6ff; }
.event-picker-option span { min-width: 0; overflow-wrap: anywhere; }
.event-picker-option small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: capitalize; }
.event-picker-empty { margin: 2px 4px; color: var(--muted); font-size: 10px; }
@media (max-width: 620px) {
  .event-picker-menu { right: 0; left: 0; }
}

/* duit HQ control-centre shell */
.app-page {
  --bg: #f6f8fb;
  --wash: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f4ff;
  --line: #e3e7ef;
  --line-strong: #cbd3df;
  --text: #172033;
  --muted: #667085;
  --primary: #6427d8;
  --primary-dark: #21163d;
  --primary-soft: #f0eaff;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, .08);
  --sidebar: 248px;
  background: var(--bg);
}

.app-sidebar {
  width: var(--sidebar);
  background: #171226;
  box-shadow: 1px 0 0 rgba(255,255,255,.06);
}

.tenant {
  min-height: 92px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.tenant strong { font-size: 17px; letter-spacing: -.01em; }
.tenant span { font-size: 11px; }
.tenant-logo { width: 36px; height: 36px; }
.side-menu { gap: 1px; padding: 10px 8px 14px; }
.side-label { margin: 13px 12px 5px; color: rgba(255,255,255,.42); font-size: 9px; }
.side-menu button, .side-bottom button {
  min-height: 40px;
  gap: 11px;
  padding: 0 12px;
  border-left-width: 3px;
  border-radius: 6px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 650;
}
.side-menu button .material-symbols-outlined, .side-bottom button .material-symbols-outlined { font-size: 18px; }
.side-menu button:hover, .side-bottom button:hover, .side-menu button.active, .side-bottom button.active {
  color: #fff;
  background: rgba(111, 70, 220, .28);
  border-left-color: #b99aff;
}

.app-main {
  padding: 26px 32px 44px;
  background: var(--bg);
}
.app-view { max-width: 1240px; }
.view-head { margin-bottom: 18px; }
.view-head h1 { color: var(--text); font-size: 28px; letter-spacing: -.035em; }
.view-head p { color: var(--muted); font-size: 12px; }
#overview .view-head, #developers .view-head {
  min-height: 70px;
  padding: 0 0 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.live-date { min-height: 36px; border-color: var(--line); background: #fff; font-size: 10px; }
.metric-grid { gap: 12px; margin-bottom: 14px; }
.metric-card {
  min-height: 105px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.metric-card b { margin: 12px 0 5px; color: var(--text); font-size: 30px; }
.metric-card i { width: 30px; height: 30px; background: var(--primary-soft); color: var(--primary); font-size: 17px; }
.panel { padding: 15px; border-color: var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.panel-head h2, .panel h2 { color: var(--text); font-size: 16px; letter-spacing: -.02em; }
.panel-head p { color: var(--muted); font-size: 11px; }
.overview-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 12px; }
.chart-panel { min-height: 250px; background: #fff; }
.volume-chart { min-height: 198px; }
.quick-actions { gap: 8px; }
.quick-actions button { min-height: 36px; border-radius: 6px; font-size: 11px; }
.activity-list { gap: 10px; }
.activity-item { grid-template-columns: 28px 1fr; gap: 9px; font-size: 11px; }
.activity-item > span { width: 28px; height: 28px; font-size: 16px; }
.overview-detail-grid { gap: 12px; }
.outline-button, .solid-button, .soft-button { min-height: 38px; border-radius: 6px; font-size: 12px; }
.solid-button { box-shadow: 0 5px 12px rgba(100,39,216,.16); }
.top-search-row { margin-top: 0; margin-bottom: 18px; padding-bottom: 0; }
.search-box { min-height: 38px; border-radius: 6px; background: #fff; }
.table-shell, .table-wrap { border-color: var(--line); border-radius: 8px; background: #fff; }
table th { background: #f8fafc; color: #667085; font-size: 10px; }
table td { border-top-color: var(--line); font-size: 11px; }

@media (max-width: 900px) {
  .app-main { padding: 18px; }
}

@media (max-width: 620px) {
  .app-main { padding: 14px; }
  #overview .view-head { min-height: auto; padding-bottom: 12px; }
  .view-head h1 { font-size: 24px; }
  .metric-card b { font-size: 25px; }
}

/* Glossy comfort theme */
.app-page {
  --bg: #f1f0f8;
  --wash: #e8e7f2;
  --surface: rgba(255,255,255,.78);
  --surface-2: #f2efff;
  --line: rgba(117, 105, 156, .16);
  --line-strong: rgba(117, 105, 156, .3);
  --text: #211d35;
  --muted: #746f86;
  --primary: #7456d8;
  --primary-dark: #2a2146;
  --primary-soft: #eeeaff;
  --green: #138a73;
  --green-soft: #ddf7ef;
  --shadow-sm: 0 8px 22px rgba(53, 45, 87, .07);
  --shadow-md: 0 18px 48px rgba(53, 45, 87, .12);
  background: #f1f0f8;
}

.app-page .app-sidebar {
  background: linear-gradient(165deg, #221a39 0%, #171326 68%, #12101f 100%);
  box-shadow: 8px 0 32px rgba(33, 27, 58, .14);
}
.app-page .tenant {
  border-bottom-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.025);
}
.app-page .tenant-logo {
  background: linear-gradient(145deg, #a78bfa, #6842cf);
  color: #fff;
  box-shadow: 0 8px 18px rgba(116, 86, 216, .26);
}
.app-page .side-menu button,
.app-page .side-bottom button { border-radius: 8px; }
.app-page .side-menu button:hover,
.app-page .side-bottom button:hover,
.app-page .side-menu button.active,
.app-page .side-bottom button.active {
  background: linear-gradient(90deg, rgba(132,104,231,.34), rgba(132,104,231,.15));
  border-left-color: #c8baff;
}

.app-page .app-main {
  background:
    radial-gradient(circle at 82% 0%, rgba(197, 185, 255, .25), transparent 26rem),
    radial-gradient(circle at 8% 92%, rgba(156, 224, 209, .16), transparent 22rem),
    #f1f0f8;
}
.app-page .view-head,
.app-page #overview .view-head,
.app-page #developers .view-head {
  border-bottom-color: rgba(117,105,156,.18);
}
.app-page .view-head h1 { color: #211d35; letter-spacing: -.045em; }
.app-page .view-head p { color: #746f86; }
.app-page .panel,
.app-page .metric-card,
.app-page .table-shell,
.app-page .table-wrap {
  border-color: rgba(117,105,156,.17);
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.68));
  box-shadow: 0 8px 22px rgba(53,45,87,.07), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
}
.app-page .metric-card {
  min-height: 110px;
  border-radius: 8px;
}
.app-page .metric-card:nth-child(2) i { color: #0b8b76; background: #def7ef; }
.app-page .metric-card:nth-child(3) i { color: #3379ca; background: #e2f0ff; }
.app-page .metric-card:nth-child(4) i { color: #b27314; background: #fff0d0; }
.app-page .metric-card b { color: #211d35; }
.app-page .chart-panel,
.app-page .overview-detail-grid .panel { background: rgba(255,255,255,.73); }
.app-page .live-date,
.app-page .search-box,
.app-page input,
.app-page select,
.app-page textarea {
  border-color: rgba(117,105,156,.24);
  background: rgba(255,255,255,.86);
  color: #211d35;
}
.app-page input:focus,
.app-page select:focus,
.app-page textarea:focus {
  border-color: #8b6fe6;
  box-shadow: 0 0 0 3px rgba(116,86,216,.12);
}
.app-page .solid-button {
  border-color: transparent;
  background: linear-gradient(135deg, #805ee1, #6240c5);
  box-shadow: 0 9px 18px rgba(106,74,203,.23), inset 0 1px 0 rgba(255,255,255,.25);
}
.app-page .outline-button,
.app-page .soft-button {
  border-color: rgba(116,86,216,.36);
  background: rgba(255,255,255,.58);
  color: #5b3cc0;
}
.app-page .outline-button:hover,
.app-page .soft-button:hover { background: #f0ebff; border-color: #8b6fe6; }
.app-page .stage,
.app-page .status-pill { border-radius: 999px; }
.app-page .table-shell,
.app-page .table-wrap { overflow: hidden; }
.app-page table th { background: rgba(244,242,251,.78); }
.app-page .quick-actions button { border-radius: 8px; }
.app-page .quick-actions .solid-button { color: #fff; }

@media (max-width: 620px) {
  .app-page .app-main { background: #f1f0f8; }
  .app-page .panel, .app-page .metric-card { backdrop-filter: none; }
}

/* Pearl workspace direction: a full visual reset for the product shell */
.app-page {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-2: #f2f6fa;
  --line: #dce5ec;
  --line-strong: #b9cbd7;
  --text: #1d2935;
  --muted: #6d7c89;
  --primary: #2e6f82;
  --primary-dark: #1c4254;
  --primary-soft: #e3f2f4;
  --green: #138a73;
  --green-soft: #dcf5ec;
  --shadow-sm: 0 5px 16px rgba(35, 58, 71, .06);
  --shadow-md: 0 18px 45px rgba(35, 58, 71, .11);
  background: var(--bg);
}
.app-page .app-sidebar {
  background: rgba(255,255,255,.96);
  color: #354452;
  border-right: 1px solid #dce5ec;
  box-shadow: 5px 0 24px rgba(35,58,71,.05);
}
.app-page .tenant {
  min-height: 96px;
  border-bottom: 1px solid #e4ebf0;
  background: #fff;
}
.app-page .tenant strong { color: #1d2935; }
.app-page .tenant span { color: #7a8a96; }
.app-page .tenant-logo {
  background: linear-gradient(145deg, #8d72e5, #5f47bd);
  box-shadow: 0 8px 18px rgba(95,71,189,.2);
}
.app-page .tenant-switcher {
  border-color: #d7e1e8;
  background: #f8fafc;
  color: #31414f;
}
.app-page .side-menu { padding: 12px 10px 16px; }
.app-page .side-label { color: #94a2ad; }
.app-page .side-menu button,
.app-page .side-bottom button {
  color: #70808d;
  border-left-color: transparent;
  border-radius: 8px;
  font-weight: 650;
}
.app-page .side-menu button:hover,
.app-page .side-bottom button:hover {
  color: #245c70;
  background: #f0f7f8;
  border-left-color: #9bcbd0;
}
.app-page .side-menu button.active,
.app-page .side-bottom button.active {
  color: #1e6276;
  background: linear-gradient(90deg, #e3f2f4, #f0f8f8);
  border-left-color: #2e8796;
}
.app-page .side-menu button .material-symbols-outlined,
.app-page .side-bottom button .material-symbols-outlined { color: currentColor; }

.app-page .app-main {
  background:
    radial-gradient(circle at 90% -10%, rgba(175, 222, 228, .32), transparent 25rem),
    radial-gradient(circle at -5% 105%, rgba(210, 199, 255, .22), transparent 22rem),
    #eef3f7;
}
.app-page .view-head,
.app-page #overview .view-head,
.app-page #developers .view-head {
  padding-bottom: 19px;
  border-bottom: 1px solid #d9e3ea;
}
.app-page .view-head h1 { color: #1d2935; font-weight: 750; }
.app-page .view-head p { color: #71808d; }
.app-page .panel,
.app-page .metric-card,
.app-page .table-shell,
.app-page .table-wrap {
  border: 1px solid rgba(208,222,231,.95);
  background: rgba(255,255,255,.9);
  box-shadow: 0 7px 18px rgba(35,58,71,.055), inset 0 1px 0 rgba(255,255,255,.95);
}
.app-page .metric-card {
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f7fafc);
}
.app-page .metric-card i { color: #2e6f82; background: #e2f2f4; }
.app-page .metric-card:nth-child(2) i { color: #8a5fba; background: #f0e9fa; }
.app-page .metric-card:nth-child(3) i { color: #2c73b8; background: #e5f0fc; }
.app-page .metric-card:nth-child(4) i { color: #b67c28; background: #fff2d8; }
.app-page .panel-head h2, .app-page .panel h2 { color: #22323e; }
.app-page .panel-head p { color: #778692; }
.app-page .solid-button {
  background: linear-gradient(135deg, #347f91, #245f73);
  box-shadow: 0 8px 16px rgba(39,104,124,.2), inset 0 1px 0 rgba(255,255,255,.25);
}
.app-page .outline-button,
.app-page .soft-button {
  color: #286b7e;
  border-color: #a9c8d0;
  background: rgba(255,255,255,.75);
}
.app-page .outline-button:hover,
.app-page .soft-button:hover { color: #1e596d; border-color: #6faab5; background: #ecf7f8; }
.app-page .search-box,
.app-page input,
.app-page select,
.app-page textarea {
  border-color: #cbdbe4;
  background: rgba(255,255,255,.94);
}
.app-page input:focus,
.app-page select:focus,
.app-page textarea:focus {
  border-color: #5d9eab;
  box-shadow: 0 0 0 3px rgba(62,139,154,.13);
}
.app-page .live-date { color: #627481; background: rgba(255,255,255,.92); border-color: #d2e0e7; }
.app-page .live-date .material-symbols-outlined { color: #2e6f82; }
.app-page .stage, .app-page .status-pill { border-radius: 999px; }
.app-page table th { color: #71818c; background: #f4f8fa; }
.app-page table td { border-top-color: #e1e9ee; }

/* Command-rail template: structural reset, not just a palette change */
@media (min-width: 901px) {
  .app-page { --sidebar: 84px; }
  .app-page .app-sidebar {
    width: 84px;
    align-items: stretch;
  }
  .app-page .tenant {
    min-height: 78px;
    justify-content: center;
    padding: 16px 8px;
  }
  .app-page .tenant > div:last-child,
  .app-page .side-label,
  .app-page .tenant-switcher { display: none !important; }
  .app-page .tenant-logo { width: 42px; height: 42px; }
  .app-page .side-menu {
    gap: 8px;
    padding: 16px 10px;
    align-content: start;
  }
  .app-page .side-menu button,
  .app-page .side-bottom button {
    position: relative;
    width: 64px;
    min-height: 48px;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    font-size: 0;
  }
  .app-page .side-menu button .material-symbols-outlined,
  .app-page .side-bottom button .material-symbols-outlined { font-size: 21px; }
  .app-page .side-menu button.active,
  .app-page .side-bottom button.active {
    border: 0;
    background: #e3f2f4;
    box-shadow: inset 0 0 0 1px #c1e0e3;
  }
  .app-page .side-menu button:hover::after,
  .app-page .side-bottom button:hover::after {
    content: attr(data-page);
    position: absolute;
    z-index: 50;
    left: 72px;
    top: 8px;
    min-width: max-content;
    padding: 8px 10px;
    border-radius: 7px;
    color: #fff;
    background: #22323e;
    box-shadow: 0 8px 20px rgba(22,39,49,.2);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
  }
  .app-page .app-main {
    margin-left: 84px;
    padding: 0 38px 48px;
  }
  .app-page .mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    min-height: 68px;
    margin: 0 -38px 28px;
    padding: 0 38px;
    border-bottom: 1px solid #dce5ec;
    background: rgba(241,243,247,.86);
    backdrop-filter: blur(16px);
  }
  .app-page .mobile-appbar .icon-button { display: none; }
  .app-page .mobile-appbar strong { color: #23333f; font-size: 13px; letter-spacing: .01em; }
  .app-page .mobile-appbar .small-link { margin-left: auto; color: #2e6f82; font-size: 11px; font-weight: 700; }
  .app-page .app-view { max-width: 1320px; }
  .app-page .view-head { padding-top: 0; }
  .app-page .view-head h1 { font-size: 32px; }
  .app-page .metric-card { min-height: 122px; padding: 18px; }
  .app-page .overview-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
}

/* Super Admin follows the same Stitch control-console language */
.platform-page {
  background: #faf8ff;
  color: #131b2e;
  font-family: Geist, Inter, system-ui, sans-serif;
}
.platform-page .platform-sidebar {
  background: #fff;
  color: #131b2e;
  border-right: 1px solid #c2c6d6;
  padding: 14px 10px 12px;
}
.platform-page .platform-nav { gap: 2px; margin-top: 16px; }
.platform-page .platform-nav button,
.platform-page .platform-sidebar-bottom button,
.platform-page .platform-site-link {
  min-height: 42px;
  border-radius: 6px;
  color: #596276;
  font-size: 13px;
}
.platform-page .platform-nav button:hover,
.platform-page .platform-nav button.active,
.platform-page .platform-sidebar-bottom button:hover,
.platform-page .platform-site-link:hover {
  color: #0058be;
  background: #e8edff;
}
.platform-page .platform-nav button.active { box-shadow: inset 3px 0 #0058be; }
.platform-page .platform-main { padding: 28px clamp(22px, 3vw, 48px) 44px; background: #faf8ff; }
.platform-page .platform-header,
.platform-page .platform-view-head,
.platform-page .platform-panel,
.platform-page .provider-card,
.platform-page .platform-metric {
  border-color: #c2c6d6;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(19,27,46,.03);
}
.platform-page .platform-header { border-bottom: 1px solid #c2c6d6; }
.platform-page .platform-metric,
.platform-page .provider-card,
.platform-page .platform-panel { background: #fff; }
.platform-page .solid-button { background: #0058be; border-radius: 4px; box-shadow: none; }
.platform-page .outline-button { border-radius: 4px; color: #0058be; border-color: #aeb5cb; background: #fff; }
.platform-page input, .platform-page select { border-radius: 4px; border-color: #aeb5cb; background: #fff; }

@media (max-width: 900px) {
  .app-page .mobile-appbar { display: flex; }
}

/* Stitch operations console: shared desktop template */
.app-page {
  --bg: #faf8ff;
  --surface: #ffffff;
  --surface-2: #f2f3ff;
  --line: #c2c6d6;
  --line-strong: #aeb5cb;
  --text: #131b2e;
  --muted: #687083;
  --primary: #0058be;
  --primary-dark: #003c82;
  --primary-soft: #e8edff;
  --green: #006c49;
  --green-soft: #d9f9e9;
  --red: #b90538;
  --shadow-sm: 0 1px 2px rgba(19,27,46,.03);
  --shadow-md: 0 10px 26px rgba(19,27,46,.08);
  font-family: Geist, Inter, system-ui, sans-serif;
  background: #faf8ff;
}
@media (min-width: 901px) {
  .app-page { --sidebar: 306px; }
  .app-page .app-sidebar {
    width: 306px;
    background: #fff;
    color: var(--text);
    border-right: 1px solid var(--line);
    box-shadow: none;
  }
  .app-page .tenant {
    min-height: 68px;
    padding: 15px 20px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  .app-page .tenant > div:last-child { display: block !important; }
  .app-page .tenant-logo { width: 29px; height: 29px; border-radius: 7px; }
  .app-page .tenant strong { color: var(--text); font-size: 14px; }
  .app-page .tenant span { color: var(--muted); font-size: 9px; }
  .app-page .tenant-switcher { display: none !important; }
  .app-page .side-menu { padding: 10px 10px 16px; gap: 2px; }
  .app-page .side-label {
    margin: 11px 12px 4px;
    color: #8890a1;
    font-size: 9px;
    letter-spacing: .08em;
  }
  .app-page .side-menu button,
  .app-page .side-bottom button {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    gap: 13px;
    padding: 0 13px;
    border: 0;
    border-radius: 6px;
    color: #465063;
    font-size: 13px;
    font-weight: 500;
  }
  .app-page .side-menu button .material-symbols-outlined,
  .app-page .side-bottom button .material-symbols-outlined { font-size: 19px; color: #586278; }
  .app-page .side-menu button:hover,
  .app-page .side-bottom button:hover { color: var(--text); background: #f2f3ff; }
  .app-page .side-menu button.active,
  .app-page .side-bottom button.active {
    color: #004da8;
    background: #e8edff;
    box-shadow: none;
  }
  .app-page .side-menu button.active .material-symbols-outlined { color: #0058be; }
  .app-page .side-menu button:hover::after,
  .app-page .side-bottom button:hover::after { display: none; }
  .app-page .app-main {
    margin-left: 306px;
    padding: 0 28px 40px;
    background: #faf8ff;
  }
  .app-page .mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 68px;
    margin: 0 -28px 28px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(250,248,255,.95);
    backdrop-filter: blur(12px);
  }
  .app-page .mobile-appbar .icon-button { display: none; }
  .app-page .mobile-appbar strong { color: var(--text); font-size: 14px; }
  .app-page .mobile-appbar .small-link { margin-left: auto; color: var(--primary); font-size: 11px; font-weight: 600; }
  .app-page .app-view { max-width: 1200px; }
  .app-page .view-head,
  .app-page #overview .view-head,
  .app-page #developers .view-head { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
  .app-page .view-head h1 { font-size: 27px; letter-spacing: -.03em; }
  .app-page .view-head p { font-size: 12px; }
  .app-page .panel,
  .app-page .metric-card,
  .app-page .table-shell,
  .app-page .table-wrap {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
  .app-page .metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
  .app-page .metric-card { min-height: 116px; padding: 15px; }
  .app-page .metric-card b { color: var(--text); font-size: 30px; }
  .app-page .metric-card i { width: 29px; height: 29px; color: var(--primary); background: var(--primary-soft); }
  .app-page .overview-grid { grid-template-columns: minmax(0,1fr) 318px; gap: 14px; }
  .app-page .panel-head h2, .app-page .panel h2 { font-size: 17px; }
  .app-page .solid-button { background: var(--primary); border-radius: 4px; box-shadow: none; }
  .app-page .outline-button, .app-page .soft-button { border-radius: 4px; color: var(--primary); border-color: var(--line-strong); background: #fff; }
  .app-page .outline-button:hover, .app-page .soft-button:hover { background: var(--surface-2); border-color: var(--primary); }
  .app-page input, .app-page select, .app-page textarea, .app-page .search-box { border-radius: 4px; border-color: var(--line-strong); background: #fff; }
  .app-page .table-shell, .app-page .table-wrap { overflow: hidden; }
  .app-page table th { color: #596276; background: #f2f3ff; }
  .app-page table td { border-top-color: #dfe2ec; }
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 22px;
}

.panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-head h2,
.panel h2 {
  margin: 0;
  font-size: 22px;
}

.panel-head a {
  color: var(--primary);
  font-weight: 700;
}

.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text);
}

.legend span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.sms {
  background: var(--primary);
}

.email {
  background: #d3bbff;
}

.wa {
  background: #5c5f60;
}

.volume-chart {
  display: grid;
  grid-template-columns: 46px 1fr;
  min-height: 300px;
}

.chart-panel {
  min-height: 350px;
}

.axis {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.week-bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: end;
  padding: 22px 12px 30px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%;
}

.week-bars div {
  height: 228px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  position: relative;
}

.week-bars i {
  width: 13px;
  border-radius: 6px 6px 0 0;
}

.week-bars span {
  position: absolute;
  bottom: -24px;
  color: #3f3650;
  font-size: 14px;
}
.volume-chart-empty { grid-column: 1 / -1; align-self: center; justify-self: center; }

.stacked-aside {
  display: grid;
  gap: 22px;
}

.quick-actions {
  display: grid;
  gap: 14px;
}

.quick-actions button {
  width: 100%;
}

.activity-list {
  display: grid;
  gap: 20px;
}

.activity-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
}

.activity-item > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.activity-item:nth-child(2) > span {
  color: var(--primary);
  background: var(--primary-soft);
}

.activity-item:nth-child(3) > span {
  color: #0964cc;
  background: #dfeeff;
}

.activity-item b,
.activity-item small {
  display: block;
}

.activity-item p {
  margin: 4px 0 8px;
  line-height: 1.45;
}

.activity-item small {
  color: var(--muted);
}

.overview-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(220px, .72fr); gap: 14px; margin-top: 14px; }
.overview-detail-grid .panel { min-width: 0; padding: 16px; }
.overview-detail-grid .panel-head { margin-bottom: 12px; }
.overview-detail-grid .panel-head h2 { font-size: 15px; }
.overview-detail-grid .panel-head p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.overview-detail-grid .panel-head a { color: var(--primary); font-size: 10px; font-weight: 700; white-space: nowrap; }
.overview-channel-list, .overview-campaign-list, .overview-usage { display: grid; gap: 7px; }
.overview-channel-row, .overview-campaign-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.overview-channel-row { color: var(--text); text-decoration: none; }
.overview-channel-row:hover b { color: var(--primary); }
.overview-channel-row:last-child, .overview-campaign-row:last-child { border-bottom: 0; }
.overview-channel-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--primary); background: var(--primary-soft); }
.overview-channel-icon.wa { color: #087443; background: var(--green-soft); }
.overview-channel-icon.email { color: #7255c9; background: #eee7ff; }
.overview-channel-icon .material-symbols-outlined, .overview-campaign-row > .material-symbols-outlined { font-size: 16px; }
.overview-channel-row b, .overview-channel-row small, .overview-channel-row strong, .overview-channel-row strong small, .overview-campaign-row b, .overview-campaign-row small { display: block; }
.overview-channel-row b, .overview-campaign-row b { font-size: 11px; }
.overview-channel-row small, .overview-campaign-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.overview-channel-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.overview-channel-meta span { white-space: nowrap; }
.overview-channel-row strong { color: var(--text); font-size: 12px; text-align: right; }
.overview-channel-row strong small { color: var(--muted); font-size: 9px; font-weight: 400; }
.overview-channel-row strong small .material-symbols-outlined { font-size: 11px; vertical-align: -2px; }
.overview-campaign-row { grid-template-columns: 20px minmax(0, 1fr) auto; color: var(--text); text-decoration: none; }
.overview-campaign-row > .material-symbols-outlined { color: var(--primary); }
.overview-campaign-row:hover b { color: var(--primary); }
.overview-campaign-row .stage { font-size: 8px; }
.overview-usage-total { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.overview-usage-total > .material-symbols-outlined { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); font-size: 15px; }
.overview-usage-total small, .overview-usage-total b { display: block; }
.overview-usage-total small { color: var(--muted); font-size: 9px; }
.overview-usage-total b { margin-top: 2px; font-size: 14px; }
.overview-usage-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--primary); font-size: 10px; font-weight: 700; text-decoration: none; }
.overview-usage-link .material-symbols-outlined { font-size: 14px; }

.top-search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(5, max-content);
  gap: 16px;
  align-items: center;
  margin: -10px 0 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.contacts-toolbar { margin-bottom: 14px; padding-bottom: 14px; }
.contacts-toolbar .compact-filter { justify-self: end; }

.inline-feedback {
  min-height: 20px;
  margin: -10px 0 12px;
  color: var(--green);
  font-size: 12px;
}
.inline-feedback[data-tone="warning"] { color: #9a6700; }
.inline-feedback[data-tone="error"] { color: #b42318; }
.app-view#contacts > .inline-feedback:not(:empty) {
  min-height: 0;
  margin: -6px 0 12px;
  padding: 9px 11px;
  border: 1px solid #b9e5ca;
  border-radius: 6px;
  background: #effbf3;
  color: #087443;
  font-size: 11px;
  font-weight: 650;
}
.app-view#contacts > .inline-feedback[data-tone="warning"] { border-color: #f0d38a; background: #fff9e8; color: #8a5a00; }
.app-view#contacts > .inline-feedback[data-tone="error"] { border-color: #f0b8b8; background: #fff2f2; color: #b42318; }
.contact-tag-summary {
  display: grid;
  gap: 10px;
  margin: -2px 0 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfaff 100%);
}
.contact-tag-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.contact-tag-summary-head > div:first-child { flex: 0 0 190px; min-width: 0; }
.contact-tag-summary-head h2 { margin: 2px 0 2px; font-size: 15px; }
.contact-tag-summary-head p { margin: 0; color: var(--muted); font-size: 11px; }
.contact-summary-tools { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; }
.contact-summary-tools > * { flex: 0 0 auto; }
.contact-summary-tools .search-box { width: 170px; min-height: 34px; }
.contact-summary-tools .search-box input { min-width: 0; }
.contact-summary-tools .contact-tag-search { width: 150px; }
.contact-summary-tools .contact-export-select { min-height: 34px; max-width: 150px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--text); font: inherit; font-size: 10px; }
.contact-summary-tools .outline-button, .contact-summary-tools .solid-button { min-height: 34px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
.contact-tag-search { display: flex; align-items: center; gap: 7px; width: min(240px, 100%); min-height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.contact-tag-search .material-symbols-outlined { color: var(--muted); font-size: 17px; }
.contact-tag-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 11px; }
.contact-tag-summary-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 84px; overflow: auto; }
.contact-tag-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid #d7d3ee; border-radius: 5px; background: #f7f5ff; color: var(--text); font-size: 11px; }
.contact-tag-chip b { min-width: 22px; padding: 2px 5px; border-radius: 4px; background: #e7ddff; color: var(--primary); text-align: center; }
.contact-tag-summary-list .empty-state { width: 100%; margin: 0; padding: 4px 0; color: var(--muted); font-size: 11px; }
.required-label { color: #b42318; font-size: 11px; font-weight: 650; }
@media (max-width: 720px) {
  .contact-tag-summary-head { align-items: stretch; flex-direction: column; }
  .contact-tag-summary-head > div:first-child { flex-basis: auto; }
  .contact-summary-tools { display: flex; width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .contact-summary-tools::-webkit-scrollbar { display: none; }
  .contact-summary-tools .search-box { width: 128px; }
  .contact-summary-tools .contact-tag-search { width: 112px; }
  .contact-summary-tools .contact-export-select { width: 126px; }
  .contact-summary-tools .outline-button, .contact-summary-tools .solid-button { width: 36px; padding: 0; font-size: 0; justify-content: center; }
  .contact-summary-tools .material-symbols-outlined { margin: 0; font-size: 17px; }
}
.compact-filter { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.compact-filter select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--text); }
@media (max-width: 1180px) {
  .top-search-row { grid-template-columns: minmax(220px, 1fr) repeat(3, max-content); }
  .contacts-toolbar .compact-filter { grid-column: 1 / -1; justify-self: start; }
}
.table-empty { height: 180px; text-align: center; white-space: normal; }
.table-empty > * { display: block; margin: 6px auto; }
.table-empty .material-symbols-outlined { color: var(--primary); font-size: 28px; }
.table-empty small { color: var(--muted); }
.modal-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.optional-label { color: var(--muted); font-size: 11px; font-weight: 500; }
.modal form { display: grid; gap: 14px; }
.modal select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.form-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.modal code { font-family: "Geist Mono", monospace; font-size: 11px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.endpoint-preview { min-height: 80px; max-height: 180px; overflow: auto; margin: 0; padding: 12px; border-radius: 7px; background: #191329; color: #d9c9ff; font: 11px/1.5 "Geist Mono", monospace; white-space: pre-wrap; }
.import-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.import-summary div { padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #faf7ff; }
.import-summary b, .import-summary span { display: block; }
.import-summary b { font-size: 20px; }
.import-summary span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.import-issues { max-height: 100px; overflow: auto; color: #9a6700; font-size: 12px; line-height: 1.5; }
.import-modal { width: min(620px, calc(100% - 32px)); gap: 18px; padding: 26px; background: #fffaff; }
.import-modal-head { align-items: flex-start; margin: -2px 0 0; }
.import-modal-head h2 { margin: 8px 0 5px; color: var(--text); font-size: 24px; line-height: 1.12; }
.import-modal-head .section-kicker { margin: 0; }
.import-modal-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid #e0d1ff; border-radius: 8px; background: #f5efff; color: #5b4382; font-size: 11px; line-height: 1.45; }
.import-modal-note .material-symbols-outlined { flex: 0 0 auto; color: var(--primary); font-size: 17px; }
.import-batch-field { gap: 6px !important; color: var(--text) !important; font-size: 11px; }
.import-batch-field input { min-height: 46px; border-radius: 7px; background: #fff; }
.import-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.import-summary div { min-height: 76px; display: flex; flex-direction: column; justify-content: center; padding: 11px 12px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(61, 35, 104, .05); }
.import-summary div:nth-child(2) { border-color: #bdebd0; background: #f3fff7; }
.import-summary div:nth-child(3) { border-color: #ead7a0; background: #fffaf0; }
.import-summary div:nth-child(4) { border-color: #f0c7c7; background: #fff7f7; }
.import-summary b { color: var(--text); font-size: 22px; line-height: 1; }
.import-issues-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.import-issues-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbf8ff; color: var(--text); font-size: 11px; }
.import-issues-head span { color: var(--muted); font-size: 10px; }
.import-issues { min-height: 34px; max-height: 112px; padding: 10px 12px; color: #8a5c00; font-size: 11px; }
.import-modal-actions { padding-top: 2px; }

.search-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f8f1ff;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.contacts-table {
  min-width: 1380px;
}

th,
td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #f0e8f7;
  white-space: nowrap;
}

th {
  background: #f5f3ff;
  color: #30263f;
  font-weight: 500;
}

td {
  color: #211931;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.person-cell span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: #ebe4ff;
  font-weight: 800;
  font-size: 18px;
}

.person-cell b {
  display: block;
  max-width: 140px;
  white-space: normal;
}

.stage,
.tags span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.stage.success,
.status-pill.success {
  color: var(--green);
  background: var(--green-soft);
}

.stage.warning {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.stage.danger,
.status-pill.danger {
  color: var(--red);
  background: var(--red-soft);
}

.tags {
  display: flex;
  gap: 8px;
}

.tags span {
  color: #42364f;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.engagement b {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.engagement i {
  display: block;
  width: 120px;
  height: 7px;
  border-radius: 999px;
  background: #ececef;
  overflow: hidden;
}

.engagement em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

tr:nth-child(2) .engagement em {
  background: #8b4a0c;
}

tr:nth-child(3) .engagement em {
  background: var(--red);
}

.table-footer {
  min-height: 66px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pager {
  display: flex;
}

.pager button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
}

.pager button.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.developer-head h1 {
  font-size: clamp(44px, 5vw, 62px);
}

.developer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

.usage-panel {
  min-height: 360px;
}

.usage-panel select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 0;
  padding: 0 12px;
}

.api-chart {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 270px;
  color: var(--muted);
}

.api-chart > span {
  grid-column: 1;
}

.api-chart > span:nth-child(1) {
  align-self: start;
}

.api-chart > span:nth-child(2) {
  align-self: center;
}

.api-chart > span:nth-child(3) {
  align-self: end;
}

.api-bars {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-strong);
}

.api-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #e8e3f8;
}

.api-bars i.hot {
  background: var(--primary);
}

.api-days {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
}

.api-days b {
  font-weight: 400;
}

.webhook-panel {
  min-height: 360px;
}

.webhook-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  margin-bottom: 16px;
}

.webhook-card strong,
.webhook-card p {
  display: block;
  margin: 0;
}

.webhook-card p {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #3f3650;
}

.keys-panel {
  margin-bottom: 30px;
  padding: 0;
}

.keys-panel .panel-head {
  padding: 24px 30px;
  margin: 0;
}

.table-shell.embedded {
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.endpoint-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.endpoint-panel > div {
  padding: 38px;
}

.endpoint-panel pre {
  height: 100%;
  min-height: 230px;
  margin: 0;
  padding: 38px;
  background: #211733;
  color: #fff;
}

.endpoint-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.endpoint-panel h2 {
  margin-top: 24px;
  font-size: 36px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.placeholder-grid .panel {
  min-height: 210px;
}

.placeholder-grid .material-symbols-outlined {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  margin-bottom: 28px;
}

.module-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-shell .panel {
  min-height: 148px;
}

.module-shell .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  margin-bottom: 16px;
}

.module-shell h2 {
  font-size: 18px;
}

.module-shell p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.email-composer { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.35fr); gap: 16px; margin-top: 16px; }
.email-controls, .email-preview-panel { min-width: 0; }
.email-tool-icon { color: var(--primary); font-size: 24px; }
.email-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.email-field-grid label { display: grid; gap: 5px; color: var(--text); font-size: 11px; font-weight: 700; }
.email-field-grid input { width: 100%; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 10px; color: var(--text); background: #fff; }
.email-block-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 9px; color: var(--text); font-size: 11px; }
.email-block-heading small { color: var(--muted); font-weight: 500; }
.email-block-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.email-block-tools button { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: 1fr 1fr; column-gap: 7px; align-items: center; min-height: 54px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #fff; text-align: left; cursor: pointer; }
.email-block-tools button:hover { border-color: var(--primary); background: var(--primary-soft); }
.email-block-tools button[draggable="true"] { cursor: grab; }
.email-block-tools button[draggable="true"]:active { cursor: grabbing; }
.email-block-tools .material-symbols-outlined { grid-row: span 2; color: var(--primary); font-size: 19px; }
.email-block-tools b { font-size: 11px; }
.email-block-tools small { color: var(--muted); font-size: 9px; }
.email-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.email-actions button { min-height: 38px; }
.email-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.email-preview-bar b, .email-preview-bar small { display: block; }
.email-preview-bar b { font-size: 13px; }
.email-preview-bar small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.email-preview-bar .stage { display: inline-flex; align-items: center; gap: 4px; }
.email-preview-bar .stage .material-symbols-outlined { font-size: 14px; }
.email-preview-frame { max-width: 590px; margin: 16px auto 0; overflow: hidden; border: 1px solid #e7e1ef; border-radius: 7px; background: #f3f1f7; box-shadow: 0 10px 28px rgba(37, 22, 65, .08); }
.email-preview-meta { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #e7e1ef; color: var(--muted); background: #fff; }
.email-preview-meta small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.email-preview-content { margin: 22px auto; width: calc(100% - 32px); max-width: 520px; padding: 25px 24px 20px; color: #263044; background: #fff; }
.email-drop-zone { min-height: 90px; padding: 4px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fbfcff; transition: border-color .16s ease, background .16s ease; }
.email-drop-zone:has(.is-drop-target), .email-drop-zone:hover { border-color: var(--primary); background: #f8faff; }
.email-drop-empty { display: grid; place-items: center; gap: 5px; min-height: 120px; padding: 20px; color: var(--muted); text-align: center; }
.email-drop-empty .material-symbols-outlined { color: var(--primary); font-size: 25px; }
.email-drop-empty b { color: var(--text); font-size: 12px; }
.email-drop-empty small { font-size: 10px; }
.email-live-preview-content { min-height: 120px; }
.email-editable-block { position: relative; margin: 8px 0; padding: 9px; border: 1px solid #dbe3ef; border-radius: 7px; background: #fff; box-shadow: 0 4px 12px rgba(27, 45, 80, .05); transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.email-editable-block:hover, .email-editable-block.is-drop-target { border-color: var(--primary); box-shadow: 0 8px 18px rgba(44, 91, 184, .12); }
.email-editable-block.is-dragging { opacity: .45; }
.email-editable-head { display: flex; align-items: center; gap: 5px; min-height: 25px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #edf1f7; color: var(--text); }
.email-editable-head b { flex: 1; font-size: 10px; }
.email-drag-handle { color: var(--primary); cursor: grab; font-size: 17px; }
.email-editable-head .icon-button { width: 27px; height: 27px; min-height: 27px; color: #b42318; }
.email-block-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 8px; }
.email-block-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
.email-block-fields label:first-child:last-child, .email-block-fields label:has(textarea) { grid-column: 1 / -1; }
.email-block-fields input, .email-block-fields textarea { width: 100%; min-height: 30px; border: 1px solid #d5deeb; border-radius: 5px; padding: 6px 8px; color: var(--text); background: #fff; font: inherit; font-size: 10px; }
.email-block-fields .email-media-upload { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 6px 8px; padding: 7px 8px; border: 1px dashed #b7c8e2; border-radius: 5px; color: var(--primary); background: #f8fbff; }
.email-block-fields .email-media-upload input { min-height: 28px; padding: 3px; color: var(--text); background: #fff; font-size: 9px; }
.email-block-fields .email-media-upload small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 500; }
.email-block-fields textarea { min-height: 52px; resize: vertical; }
.email-media-empty { display: grid; place-items: center; min-height: 70px; border: 1px dashed #cbd5e1; border-radius: 5px; color: var(--muted); background: #f8fafc; font-size: 10px; }
.email-block-video { display: block; width: 100%; max-height: 230px; border-radius: 5px; background: #111827; }
.email-block-audio { display: block; width: 100%; margin: 12px 0 4px; }
.email-media-caption { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.email-brand-lockup { display: flex; align-items: center; gap: 8px; padding-bottom: 18px; color: #152b59; font-size: 12px; }
.email-brand-lockup span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; background: var(--primary); font-weight: 800; }
.email-block-text h2 { margin: 5px 0 8px; color: #152b59; font-size: 24px; line-height: 1.15; }
.email-block-text p { margin: 0; color: #536078; font-size: 13px; line-height: 1.65; }
.email-block-image { display: block; width: 100%; max-height: 220px; margin: 18px 0; object-fit: cover; border-radius: 6px; }
.email-block-button { padding: 12px 0; text-align: center; }
.email-block-button a { display: inline-block; padding: 10px 18px; border-radius: 5px; color: #fff; background: var(--primary); font-size: 11px; font-weight: 700; text-decoration: none; }
.email-block-divider { margin: 18px 0; border: 0; border-top: 1px solid #e4e8ef; }
.email-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.email-block-columns > div { padding: 13px; border: 1px solid #e7ebf2; border-radius: 5px; background: #f8fafc; }
.email-block-columns b { color: #152b59; font-size: 11px; }
.email-block-columns p { margin: 7px 0 0; color: #64748b; font-size: 10px; line-height: 1.45; }
.email-unsubscribe { display: block; padding-top: 16px; color: #8a94a6; font-size: 9px; text-align: center; }
.saved-email-templates { display: grid; gap: 6px; }
.saved-email-template-row { display: flex; align-items: stretch; gap: 4px; }
.saved-email-template-row > button:first-child { flex: 1; min-width: 0; }
.saved-email-template-row > .icon-button { flex: 0 0 32px; min-height: 32px; color: #b42318; }
.saved-email-templates button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: #fff; text-align: left; cursor: pointer; }
.saved-email-templates button:hover { border-color: var(--primary); background: var(--primary-soft); }
.saved-email-templates .material-symbols-outlined { color: var(--primary); font-size: 18px; }
.saved-email-templates b, .saved-email-templates small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-email-templates b { font-size: 10px; }
.saved-email-templates small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.channel-workspace { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 16px; margin-top: 16px; }
.channel-compose, .channel-summary, .inbox-list, .conversation-panel, .whatsapp-preview { min-width: 0; }
.channel-accent { color: var(--primary); font-size: 24px; }
.whatsapp-accent { color: #087443; }
.channel-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.channel-form-grid label, .channel-compose > label { display: grid; gap: 5px; color: var(--text); font-size: 11px; font-weight: 700; }
.channel-form-grid input, .channel-form-grid select, .channel-compose > label textarea, .reply-box textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px; color: var(--text); background: #fff; font: inherit; }
.channel-form-grid input, .channel-form-grid select { min-height: 36px; padding: 0 10px; }
.channel-compose > label textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.channel-form-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.channel-compose-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.channel-compose-actions button { min-height: 36px; }
.campaign-email-composer { margin-top: 12px; padding: 12px; border: 1px solid #e5dcf6; border-radius: 7px; background: #faf8ff; }
.campaign-email-template-picker { display: grid; gap: 6px; margin: 12px 0; padding: 14px; border: 1px solid #e5dcf6; border-radius: 7px; background: #faf8ff; }
.campaign-email-template-picker[hidden], #campaignForm label[hidden] { display: none !important; }
.campaign-email-template-picker label { display: grid; gap: 5px; color: var(--text); font-size: 11px; font-weight: 700; }
.campaign-email-template-picker select { width: 100%; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 10px; color: var(--text); background: #fff; font: inherit; }
.campaign-email-template-picker > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.campaign-email-template-picker .form-message { margin: 0; }
.campaign-email-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.campaign-email-fields label { display: grid; gap: 5px; color: var(--text); font-size: 10px; font-weight: 700; }
.campaign-email-fields input { min-height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 9px; color: var(--text); background: #fff; }
.campaign-email-layout { display: grid; grid-template-columns: minmax(140px, .65fr) minmax(200px, 1.35fr); gap: 10px; margin-top: 12px; }
.campaign-email-tools { display: grid; align-content: start; gap: 6px; }
.campaign-email-tools b { font-size: 11px; }
.campaign-email-tools small { margin-bottom: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.campaign-email-tools button { display: flex; align-items: center; gap: 6px; min-height: 32px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: #fff; font-size: 10px; text-align: left; cursor: pointer; }
.campaign-email-tools button:hover { border-color: var(--primary); color: var(--primary); background: #f1ebff; }
.campaign-email-tools .material-symbols-outlined { color: var(--primary); font-size: 16px; }
.campaign-email-preview > small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.campaign-email-preview article { min-height: 150px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
.campaign-email-preview article > b { color: var(--primary); font-size: 10px; }
.campaign-email-preview h3 { margin: 12px 0 5px; color: #152b59; font-size: 16px; line-height: 1.2; }
.campaign-email-preview article > small { color: var(--muted); font-size: 9px; }
.campaign-email-preview p { color: #536078; font-size: 10px; line-height: 1.5; }
.campaign-email-preview a { display: inline-block; padding: 7px 10px; border-radius: 4px; color: #fff; background: var(--primary); font-size: 9px; font-weight: 700; }
.campaign-email-image { display: grid; place-items: center; min-height: 34px; margin-top: 8px; color: var(--muted); background: #f2f5f8; font-size: 9px; }
.campaign-email-image .material-symbols-outlined { margin-right: 4px; font-size: 14px; vertical-align: middle; }
.channel-stat-list { display: grid; gap: 3px; }
.channel-stat-list > div { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: 1fr 1fr; column-gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.channel-stat-list > div:last-child { border-bottom: 0; }
.channel-stat-list .material-symbols-outlined { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); font-size: 17px; }
.channel-stat-list b { font-size: 15px; }
.channel-stat-list small { color: var(--muted); font-size: 10px; }
.channel-report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.channel-report-grid > div { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.channel-report-grid span, .channel-report-grid small { color: var(--muted); font-size: 9px; }
.channel-report-grid b { color: var(--text); font-size: 18px; }
.channel-list-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 6px 0 13px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.channel-list-row > .material-symbols-outlined { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); font-size: 16px; }
.channel-list-row b, .channel-list-row small { display: block; }
.channel-list-row b { font-size: 11px; }
.channel-list-row small, .channel-note { color: var(--muted); font-size: 9px; }
.channel-note { display: block; margin-top: 12px; line-height: 1.5; }
.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-dot.active { color: #087443; }
.inbox-workspace { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); }
.inbox-count { color: var(--primary); font-size: 10px; font-weight: 700; }
.conversation-list { display: grid; gap: 2px; }
.conversation-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.conversation-item.active { margin: 0 -10px; padding: 10px; border-radius: 6px; background: var(--primary-soft); }
.conversation-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--primary); background: #ede5ff; font-size: 10px; font-weight: 800; }
.conversation-avatar.green { color: #087443; background: #e3f6eb; }
.conversation-avatar.orange { color: #a64b00; background: #fff0d8; }
.conversation-item b, .conversation-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item b { font-size: 11px; }
.conversation-item small, .conversation-item time { color: var(--muted); font-size: 10px; }
.conversation-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.conversation-head b, .conversation-head small { display: block; }
.conversation-head b { font-size: 13px; }
.conversation-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.conversation-thread { display: grid; gap: 10px; min-height: 220px; align-content: end; padding: 16px 0; }
.message-bubble { max-width: 78%; padding: 10px 12px; border-radius: 8px; font-size: 11px; line-height: 1.45; }
.message-bubble small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.message-bubble.incoming { background: #f4f1f9; }
.message-bubble.outgoing { justify-self: end; color: #fff; background: var(--primary); }
.message-bubble.outgoing small { color: #e8dcff; }
.reply-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.reply-box textarea { min-height: 42px; resize: vertical; }
.reply-box .solid-button { align-self: end; min-height: 42px; }
.whatsapp-template-list { display: grid; gap: 7px; margin: 4px 0 14px; }
.whatsapp-template-list button { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #fff; text-align: left; cursor: pointer; }
.whatsapp-template-list button:hover { border-color: #087443; background: #f0faf4; }
.whatsapp-template-list .material-symbols-outlined { color: #087443; font-size: 18px; }
.whatsapp-template-list b, .whatsapp-template-list small { display: block; }
.whatsapp-template-list b { font-size: 11px; }
.whatsapp-template-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.whatsapp-phone { overflow: hidden; border: 1px solid #d6e7db; border-radius: 8px; background: #edf7f0; }
.wa-phone-head { display: flex; align-items: center; justify-content: space-between; padding: 10px; color: #fff; background: #087443; }
.wa-phone-head b { font-size: 11px; }
.wa-phone-head .material-symbols-outlined { font-size: 16px; }
.wa-chat { display: grid; gap: 10px; min-height: 220px; align-content: end; padding: 14px 10px; background-color: #e7f2e8; background-image: radial-gradient(#c4dfc8 1px, transparent 1px); background-size: 14px 14px; }
.wa-bubble { max-width: 85%; padding: 9px 10px; border-radius: 7px; color: #243528; background: #fff; font-size: 10px; line-height: 1.4; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wa-bubble small { display: block; margin-top: 3px; color: #77907c; font-size: 8px; text-align: right; }
.wa-bubble.wa-reply { justify-self: end; background: #d8f5d9; }
.campaign-report-workspace { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 16px; margin-top: 16px; }
.campaign-report-list, .campaign-report-detail { min-width: 0; }
.report-campaign-items { display: grid; gap: 3px; }
.report-campaign-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 8px; align-items: center; width: 100%; padding: 10px 8px; border: 1px solid transparent; border-radius: 6px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.report-campaign-item:hover, .report-campaign-item.active { border-color: #e2d8f5; background: var(--primary-soft); }
.report-channel-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--primary); background: #eee7ff; font-size: 16px; }
.report-campaign-item b, .report-campaign-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-campaign-item b { font-size: 11px; }
.report-campaign-item small { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.report-campaign-item > .material-symbols-outlined { color: var(--muted); font-size: 17px; }
.report-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.report-metric-grid > div { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.report-metric-grid span, .report-metric-grid small { color: var(--muted); font-size: 9px; }
.report-metric-grid b { font-size: 18px; }
.report-metric-grid-detailed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-specification { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.report-specification h3 { margin: 0 0 10px; font-size: 13px; }
.report-spec-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.report-spec-list > div { display: flex; gap: 8px; align-items: flex-start; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.report-spec-list .material-symbols-outlined { flex: 0 0 auto; color: var(--primary); font-size: 17px; }
.report-spec-list b, .report-spec-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-spec-list b { font-size: 10px; }
.report-spec-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.report-detail-footer { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.report-detail-footer span { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.report-detail-footer .material-symbols-outlined { color: var(--primary); font-size: 16px; }
.report-detail-footer b { font-size: 13px; }
.report-detail-footer small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.report-entry-table { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.report-entry-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.report-entry-heading h3 { margin: 3px 0 2px; font-size: 14px; }
.report-entry-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.report-entry-table .table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.report-entry-table table { min-width: 700px; width: 100%; border-collapse: collapse; font-size: 10px; }
.report-entry-table th, .report-entry-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.report-entry-table th { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
.report-entry-table tr:last-child td { border-bottom: 0; }
.report-entry-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.report-entry-table code { color: var(--primary); font-size: 9px; }
.delivery-status { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; text-transform: capitalize; background: var(--surface-2); color: var(--muted); }
.delivery-status.accepted, .delivery-status.queued { background: #fff3cd; color: #8a5a00; }
.delivery-status.delivered { background: #dcfce7; color: #087443; }
.delivery-status.failed, .delivery-status.rejected { background: #fee2e2; color: #a21caf; }
.report-entry-empty { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2); }
.report-entry-empty .material-symbols-outlined { color: var(--primary); font-size: 20px; }
.report-entry-empty b { font-size: 11px; }
.report-entry-empty p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.report-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.report-pagination > small { color: var(--muted); font-size: 9px; }
.report-pagination > span { display: inline-flex; align-items: center; gap: 8px; }
.report-pagination b { color: var(--text); font-size: 9px; white-space: nowrap; }
.report-pagination .outline-button { min-height: 30px; padding: 0 9px; font-size: 9px; }
.report-empty { display: grid; place-items: center; min-height: 220px; text-align: center; }
.report-empty .material-symbols-outlined { color: var(--primary); font-size: 28px; }
.report-empty h2 { margin: 10px 0 4px; font-size: 16px; }
.report-empty p { color: var(--muted); font-size: 10px; }
.operations-workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; margin-top: 16px; }
.forms-workspace { grid-template-columns: minmax(0, 1fr); }
.forms-workspace .form-builder-panel { grid-column: 1 / -1; width: 100%; }
.forms-workspace .form-builder-panel { min-height: 610px; }
.form-register-workspace { margin-top: 16px; }
.form-register-panel { padding: 22px; }
.form-register-panel > .panel-head { align-items: flex-start; margin-bottom: 18px; }
.form-register-panel > .panel-head h2 { margin: 4px 0 5px; font-size: 20px; }
.form-register-panel > .panel-head p { margin: 0; color: var(--muted); font-size: 12px; }
.form-register-count { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 700; }
.form-register-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 14px; }
.form-register-card { display: flex; min-width: 0; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(150deg, #fff 0%, #f9fbff 100%); box-shadow: 0 3px 12px rgba(23, 48, 83, .04); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.form-register-card:hover { transform: translateY(-2px); border-color: #a8bee1; box-shadow: 0 10px 24px rgba(23, 48, 83, .09); }
.form-register-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.form-register-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 22px; }
.form-register-card h3 { overflow-wrap: anywhere; margin: 15px 0 5px; font-size: 16px; }
.form-register-card > p { min-height: 34px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-register-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.form-register-meta span:first-child { color: var(--text); font-weight: 700; }
.form-register-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.form-register-actions .outline-button { min-height: 36px; }
.form-register-analytics { margin: 0; color: var(--muted); font-size: 10px; }
.form-register-analytics:not([hidden]) { padding: 7px 9px; border-radius: 6px; background: var(--surface-2); }
.form-register-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; }
.form-register-empty > .material-symbols-outlined { color: var(--primary); font-size: 34px; }
.form-register-empty h3, .form-register-empty p { margin: 0; }
.form-register-empty p { max-width: 380px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-register-empty .solid-button { margin-top: 5px; }
.forms-editor-workspace .form-builder-panel { min-height: 0; }
.forms-editor-workspace .form-builder-panel > .panel-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.forms-editor-workspace .form-builder-panel > .panel-head h2 { margin: 5px 0; font-size: 20px; }
.forms-editor-workspace .form-builder-panel > .panel-head p { margin: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .form-register-panel { padding: 15px; }
  .form-register-panel > .panel-head { flex-wrap: wrap; }
  .form-register-grid { grid-template-columns: 1fr; }
  .form-register-card { padding: 14px; }
  .form-register-actions { flex-wrap: wrap; }
  .form-register-analytics { flex-basis: 100%; }
  .forms-editor-workspace .form-builder-panel > .panel-head { align-items: flex-start; flex-wrap: wrap; }
}
.form-modal-open { overflow: hidden; }
.form-performance-button { margin-right: 6px; }
.form-publish-status { align-self: center; margin-right: 8px; color: #087443; font-size: 10px; font-weight: 700; }
.form-builder-panel .solid-button.is-published { background: #087443; }
.form-performance-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(20, 13, 42, .68); }
.form-performance-modal[hidden] { display: none; }
.form-performance-dialog { width: min(760px, 100%); max-height: min(620px, 90vh); overflow: auto; padding: 26px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--canvas); box-shadow: 0 24px 80px rgba(31, 22, 53, .3); }
.form-performance-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-performance-header > div { min-width: 0; }
.form-performance-header .section-kicker { margin-bottom: 9px; }
.form-performance-header h2 { margin: 0 0 5px; font-size: 22px; line-height: 1.15; }
.form-performance-header p { margin: 0; color: var(--muted); font-size: 11px; }
.form-performance-header .icon-button { flex: 0 0 auto; }
.form-performance-dialog .channel-stat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-performance-dialog .channel-stat-list > div { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form-performance-dialog .channel-stat-list .material-symbols-outlined { width: 34px; height: 34px; font-size: 18px; }
.form-performance-dialog .channel-stat-list b { font-size: 18px; }
.form-performance-dialog .channel-stat-list small { grid-column: 2; font-size: 10px; }
.operations-workspace > * { min-width: 0; }
.journey-flow { display: grid; gap: 5px; margin: 12px 0 16px; }
.journey-flow > div { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.journey-flow > div > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); font-size: 16px; }
.journey-flow b, .journey-flow small { display: block; }
.journey-flow b { font-size: 11px; }
.journey-flow small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.journey-flow > i { justify-self: center; color: var(--muted); font-size: 17px; }
.module-action-message { display: block; min-height: 15px; margin-top: 9px; color: var(--primary); font-size: 10px; }
.form-builder-grid { display: grid; grid-template-columns: minmax(220px, .82fr) minmax(330px, 1.18fr); gap: 20px; margin-top: 18px; }
.form-element-list { display: grid; align-content: start; gap: 6px; }
.form-element-list > b { font-size: 13px; }
.form-element-list button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #fff; font-size: 12px; text-align: left; cursor: pointer; }
.form-element-list button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.form-element-list .material-symbols-outlined { color: var(--primary); font-size: 16px; }
.form-copy-settings { display: grid; gap: 6px; margin: 4px 0 8px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.form-copy-settings label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.form-copy-settings input, .form-copy-settings textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 5px; padding: 8px 9px; color: var(--text); background: #fff; font: inherit; font-size: 12px; resize: vertical; }
.form-field-settings { display: grid; gap: 6px; margin-top: 6px; }
.form-field-settings > b { color: var(--text); font-size: 12px; }
.form-field-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 30px; gap: 8px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.form-field-row > .material-symbols-outlined { color: var(--muted); font-size: 15px; }
.form-field-row > div { display: grid; gap: 3px; min-width: 0; }
.form-field-row small { color: var(--muted); font-size: 10px; }
.form-field-row input:not([type="checkbox"]) { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 7px 8px; color: var(--text); font: inherit; font-size: 11px; }
.form-required { grid-column: 2 / -1; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.form-required input { accent-color: var(--primary); }
.form-field-row .icon-button { width: 30px; height: 30px; padding: 0; }
.form-live-preview > small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.form-preview-card { min-height: 420px; padding: 26px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.form-preview-brand { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.form-preview-card h3 { margin: 12px 0 6px; color: #152b59; font-size: 23px; }
.form-preview-card p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-preview-fields { display: grid; gap: 14px; }
.form-preview-field { display: grid; gap: 6px; color: var(--text); font-size: 11px; }
.form-preview-field > span { font-weight: 700; }
.form-preview-field input, .form-preview-field textarea, .form-preview-field select { display: block; width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--text); background: #fff; font: inherit; font-size: 12px; }
.form-preview-field textarea { min-height: 82px; resize: vertical; }
.form-preview-consent { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }
.form-preview-consent input { accent-color: var(--primary); }
.form-preview-copy { padding: 10px 12px; border-left: 3px solid var(--primary); color: #152b59; background: var(--primary-soft); font-size: 12px; }
.form-preview-card button { width: 100%; min-height: 42px; margin-top: 4px; border: 0; border-radius: 6px; color: #fff; background: var(--primary); font-size: 12px; font-weight: 700; }
.form-preview-message { display: block; min-height: 16px; margin-top: 10px; color: var(--primary); font-size: 10px; line-height: 1.4; }
.landing-page-list { display: grid; gap: 7px; margin: 4px 0 12px; }
.landing-page-list button { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #fff; text-align: left; cursor: pointer; }
.landing-page-list button:hover { border-color: var(--primary); background: var(--primary-soft); }
.landing-page-list button.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.landing-page-list .material-symbols-outlined { color: var(--primary); font-size: 17px; }
.landing-page-list b, .landing-page-list small { display: block; }
.landing-page-list b { font-size: 11px; }
.landing-page-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.event-attendee-list { display: grid; gap: 4px; margin-top: 12px; }
.event-selector { display: grid; grid-template-columns: auto minmax(220px, 340px); align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fbf9ff; font-size: 10px; font-weight: 700; }
.event-selector select { min-height: 36px; border: 2px solid var(--primary); border-radius: 7px; padding: 0 34px 0 11px; color: var(--text); appearance: none; background-color: #fff; background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.event-attendee-list > div { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.event-attendee-list b, .event-attendee-list small { display: block; }
.event-attendee-list b { font-size: 10px; }
.event-attendee-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.event-checkin-action { min-height: 28px; padding: 0 9px; font-size: 9px; }
.event-create-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(20, 13, 42, .68); }
.events-loading-panel { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.events-loading-panel h2, .events-loading-panel p { margin: 0; }
.events-loading-panel p { color: var(--muted); font-size: 12px; }
.events-loading-panel > .material-symbols-outlined { margin-top: 8px; color: var(--primary); font-size: 28px; }
.event-create-dialog { width: min(680px, 100%); max-height: min(780px, 92vh); overflow: auto; padding: 24px; border: 1px solid #d7c9ee; border-radius: 10px; background: #fff; opacity: 1; box-shadow: 0 24px 80px rgba(31, 22, 53, .38); }
.event-create-dialog > .panel-head { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.event-create-dialog > .panel-head > div { min-width: 0; }
.event-create-dialog .section-kicker { margin-bottom: 9px; }
.event-create-dialog .panel-head h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; }
.event-create-dialog .panel-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.event-create-dialog form { display: grid; gap: 12px; }
.event-create-dialog form > label, .event-create-grid label { display: grid; gap: 5px; color: var(--text); font-size: 11px; font-weight: 700; }
.event-create-dialog input { width: 100%; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 10px; color: var(--text); background: #fff; font: inherit; }
.event-create-dialog textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 10px; color: var(--text); background: #fff; font: inherit; resize: vertical; }
.event-create-dialog select { width: 100%; min-height: 38px; border: 2px solid #b99be7; border-radius: 6px; padding: 0 32px 0 10px; color: var(--text); background-color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.event-create-dialog select:focus, .event-create-dialog input:focus, .event-create-dialog textarea:focus, .event-selector select:focus { outline: 3px solid rgba(109, 40, 217, .16); border-color: var(--primary); }
.event-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.event-create-section { display: grid; gap: 3px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.event-create-section b { color: var(--text); font-size: 12px; }
.event-create-section small { color: var(--muted); font-size: 10px; }
.event-notification-options { display: grid; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fbf9ff; }
.event-notification-options label { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 10px; font-weight: 500; }
.event-notification-options input { width: auto; min-height: auto; accent-color: var(--primary); }
.invite-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.invite-sample-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--primary); font-size: 10px; font-weight: 700; text-decoration: none; }
.invite-sample-link .material-symbols-outlined { font-size: 14px; }
.invite-manual-form { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.invite-manual-form > div { display: grid; gap: 6px; }
.invite-manual-form input { width: 100%; min-height: 32px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 8px; font: inherit; font-size: 10px; }
.invite-manual-form button { justify-content: center; min-height: 31px; font-size: 10px; }
.invite-manual-added { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; color: #087443; font-size: 10px; font-weight: 700; }
.invite-manual-added .material-symbols-outlined { font-size: 14px; }
.event-attendee-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.event-attendee-pagination small { flex: 0 0 auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.event-attendee-pagination > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.event-attendee-pagination b { color: var(--text); font-size: 10px; white-space: nowrap; }
.event-attendee-pagination button { min-height: 28px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
.event-attendee-pagination button:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 520px) { .event-attendee-pagination { align-items: stretch; flex-direction: column; gap: 8px; } .event-attendee-pagination > span { justify-content: space-between; } }
.invite-method { display: grid; gap: 5px; min-height: 108px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: #fbf9ff; text-align: left; cursor: pointer; }
.invite-method:hover { border-color: var(--primary); background: var(--primary-soft); }
.invite-method > .material-symbols-outlined { color: var(--primary); font-size: 21px; }
.invite-method b { font-size: 12px; }
.invite-method small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.invite-method input { margin-top: 2px; min-height: auto; border: 0; padding: 0; font-size: 10px; }
.invite-preview { max-height: 270px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.invite-preview-head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.invite-preview-head b { font-size: 11px; }
.invite-preview-head small, .invite-more { color: var(--muted); font-size: 9px; }
.invitee-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.invitee-row:last-child { border-bottom: 0; }
.invitee-row b, .invitee-row small { display: block; }
.invitee-row b { font-size: 10px; }
.invitee-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.invite-more { display: block; padding-top: 8px; }
.event-header-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.events-table-panel > .panel-head { align-items: flex-start; margin-bottom: 14px; }
.events-table-panel > .panel-head h2 { max-width: 360px; }
.events-table-panel > .panel-head p { max-width: 430px; }
.event-mysql-side { min-width: 0; align-self: start; }
.event-mysql-side .panel-head { align-items: flex-start; }
.event-mysql-side .panel-head h2 { margin: 4px 0; font-size: 17px; }
.event-mysql-side .panel-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.event-access-summary { padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.event-access-summary h3 { margin: 10px 0 4px; font-size: 15px; }
.event-access-summary p { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.event-access-summary dl { display: grid; gap: 7px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.event-access-summary dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.event-access-summary dt { color: var(--muted); }
.event-access-summary dd { margin: 0; color: var(--text); font-weight: 700; text-align: right; }
.event-tabs { display: flex; gap: 4px; margin: 16px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.event-tabs button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font: inherit; font-size: 10px; white-space: nowrap; cursor: pointer; }
.event-tabs button:hover, .event-tabs button.active { border-color: var(--line-strong); color: var(--primary); background: var(--primary-soft); }
.event-tabs .material-symbols-outlined { font-size: 15px; }
.event-tabs button { transition: background .15s ease, border-color .15s ease, color .15s ease; }
.event-tab-panel { display: none; min-height: 180px; }
.event-tab-panel.active { display: block; }
.event-panel-toolbar, .event-setup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.event-setup-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.event-panel-toolbar h3, .event-setup-head h3, .event-ticket-summary h3 { margin: 0; font-size: 14px; }
.event-panel-toolbar p, .event-setup-head p, .event-ticket-summary p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.event-panel-toolbar select, .event-rules-grid select { min-height: 30px; border: 1px solid var(--line); border-radius: 5px; padding: 0 7px; color: var(--text); background: #fff; font: inherit; font-size: 10px; }
.event-form-fields { display: grid; gap: 6px; margin-bottom: 14px; }
.event-branding-settings { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 12px; align-items: end; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fbf9ff; }
.event-branding-settings label { display: grid; gap: 5px; color: var(--text); font-size: 10px; font-weight: 700; }
.event-branding-settings label small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.4; }
.event-branding-settings input { width: 100%; min-height: 34px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 9px; color: var(--text); background: #fff; font: inherit; font-size: 10px; }
.event-branding-settings img { width: 160px; height: 76px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.event-form-field { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(94px, 120px) auto 30px; gap: 7px; align-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.event-form-field > .material-symbols-outlined { color: var(--primary); font-size: 16px; }
.event-form-field label { display: grid; gap: 2px; min-width: 0; color: var(--muted); font-size: 9px; }
.event-form-field label input:not([type="checkbox"]) { min-height: 28px; border: 1px solid var(--line); border-radius: 4px; padding: 0 7px; color: var(--text); font: inherit; font-size: 10px; }
.event-form-field label select { width: 100%; min-height: 28px; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--text); background: #fff; font: inherit; font-size: 10px; }
.event-field-required { display: flex !important; align-items: center; gap: 4px; white-space: nowrap; }
.event-field-required input { accent-color: var(--primary); }
.event-form-field .icon-button { width: 28px; height: 28px; }
.events-workspace button:disabled { opacity: .5; cursor: not-allowed; }
.event-rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.event-rules-grid label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
.event-ticket-summary { display: flex; align-items: center; gap: 12px; margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.event-ticket-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); }
.event-ticket-icon .material-symbols-outlined { font-size: 25px; }
.event-ticket-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.event-qr-info { display: grid; gap: 3px; margin: 0 auto 14px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--primary-soft); }
.event-qr-info b { color: var(--primary); font-size: 11px; letter-spacing: .06em; }
.event-qr-info small { color: var(--muted); font-size: 9px; }
.event-side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding-top: 12px; border-top: 1px solid var(--line); }
.event-side-stats span { text-align: center; }
.event-side-stats b, .event-side-stats small { display: block; }
.event-side-stats b { font-size: 14px; }
.event-side-stats small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.event-side-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.event-readiness-panel { min-width: 0; }
.event-readiness-list { display: grid; gap: 2px; }
.event-readiness-list > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.event-readiness-list > div:last-child { border-bottom: 0; }
.event-readiness-list > div > .material-symbols-outlined { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); font-size: 16px; }
.event-readiness-list b, .event-readiness-list small { display: block; }
.event-readiness-list b { font-size: 11px; }
.event-readiness-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.event-readiness-list strong { font-size: 8px; }
.event-analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.event-analytics-grid > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.event-analytics-grid > div > .material-symbols-outlined { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); font-size: 16px; }
.event-analytics-grid b, .event-analytics-grid small { display: block; }
.event-analytics-grid b { font-size: 16px; line-height: 1.1; }
.event-analytics-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.event-analytics-filters { display: flex; align-items: end; gap: 9px; margin: 14px 0 10px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: #fbf9ff; }
.event-analytics-filters > div { display: grid; gap: 3px; margin-right: auto; }
.event-analytics-filters b { font-size: 11px; }
.event-analytics-filters small { color: var(--muted); font-size: 9px; }
.event-analytics-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
.event-analytics-filters input { min-height: 30px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 7px; color: var(--text); background: #fff; font: inherit; font-size: 10px; }
.event-payment-status { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 6px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.event-payment-status.paid { color: #087443; background: #e5f8ed; }
.event-payment-status.pending { color: #8a5c00; background: #fff2c7; }
.event-payment-status.free { color: #64577a; background: #f0ebf8; }
.qr-ticket-panel { text-align: center; }
.qr-placeholder { display: grid; place-items: center; width: 132px; aspect-ratio: 1; margin: 8px auto 14px; border: 7px solid #152b59; color: var(--primary); background: #fff; }
.qr-placeholder .material-symbols-outlined { font-size: 80px; }
.qr-ticket-panel h2 { font-size: 15px; }
.qr-ticket-panel p { color: var(--muted); font-size: 10px; }
.analytics-workspace { display: grid; gap: 16px; margin-top: 16px; }
.analytics-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.analytics-toolbar h2 { margin: 4px 0; font-size: 17px; }
.analytics-toolbar p { margin: 0; color: var(--muted); font-size: 10px; }
.analytics-period { display: flex; gap: 4px; }
.analytics-period button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; font-size: 10px; cursor: pointer; }
.analytics-period button.active, .analytics-period button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.analytics-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.analytics-metric-grid .panel { display: grid; gap: 6px; min-height: 100px; padding: 13px; }
.analytics-metric-grid .material-symbols-outlined { color: var(--primary); font-size: 19px; }
.analytics-metric-grid small { color: var(--muted); font-size: 10px; }
.analytics-metric-grid b { font-size: 20px; }
.analytics-metric-grid em { color: #087443; font-size: 9px; font-style: normal; }
.analytics-bars { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14px; min-height: 220px; padding: 18px 20px 5px; border-top: 1px solid var(--line); }
.analytics-bars > div { display: grid; grid-template-rows: 1fr auto auto; gap: 5px; height: 180px; align-items: end; text-align: center; }
.analytics-bars i { display: block; width: 58%; justify-self: center; border-radius: 5px 5px 0 0; background: var(--primary); }
.analytics-bars > div:nth-child(2) i { background: #16a06a; }
.analytics-bars > div:nth-child(3) i { background: #8b72e6; }
.analytics-bars small { color: var(--muted); font-size: 10px; }
.analytics-bars b { font-size: 11px; }
.analytics-campaign-panel { overflow: hidden; }
.analytics-table-shell { overflow-x: auto; }
.analytics-table-shell table { min-width: 720px; }
.analytics-table-shell th, .analytics-table-shell td { white-space: nowrap; }
.analytics-campaign-name { display: inline-flex; align-items: center; gap: 7px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.analytics-campaign-name .material-symbols-outlined { color: var(--primary); font-size: 16px; }
.analytics-campaign-name b { overflow: hidden; text-overflow: ellipsis; }
.analytics-rate { margin-left: 4px; color: var(--muted); font-size: 9px; }
.analytics-live-metric { display: grid; gap: 5px; min-height: 104px; padding: 13px; }
.analytics-live-metric .material-symbols-outlined { color: var(--primary); font-size: 19px; }
.analytics-live-metric small { color: var(--muted); font-size: 10px; }
.analytics-live-metric b { font-size: 20px; line-height: 1.15; }
.analytics-live-metric em { color: var(--muted); font-size: 9px; font-style: normal; }
.analytics-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.analytics-controls select, .analytics-controls input { min-height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: #fff; font: inherit; font-size: 10px; }
.analytics-controls input { width: 150px; }
.analytics-date-range { display: flex; align-items: end; gap: 6px; }
.analytics-date-range label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
.analytics-date-range input { width: 132px; }
.analytics-date-range .solid-button, .analytics-controls > .outline-button { min-height: 30px; padding: 0 9px; font-size: 10px; }
.analytics-last-updated { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.analytics-dashboard-grid, .analytics-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 12px; }
.analytics-detail-grid { align-items: start; }
.analytics-detail-panel { min-width: 0; overflow: hidden; }
.analytics-series { display: flex; align-items: end; gap: 5px; min-height: 212px; padding: 18px 18px 12px; border-top: 1px solid var(--line); overflow-x: auto; }
.analytics-series-day { display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: 4px; min-width: 24px; height: 170px; text-align: center; }
.analytics-series-day i { display: block; width: 15px; min-height: 3px; justify-self: center; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #326bd7, #7b5fe2); }
.analytics-series-day b { color: var(--text); font-size: 9px; }
.analytics-series-day small { color: var(--muted); font-size: 8px; transform: rotate(-45deg); transform-origin: center; white-space: nowrap; }
.analytics-funnel { display: grid; gap: 8px; padding: 18px; }
.analytics-funnel-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 10px 12px; border-left: 4px solid var(--primary); border-radius: 6px; background: #f6f8ff; }
.analytics-funnel-step span { color: var(--muted); font-size: 10px; }
.analytics-funnel-step b { font-size: 17px; }
.analytics-funnel-step small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.analytics-subsection { padding: 0 14px 14px; }
.analytics-subsection h3 { margin: 0 0 7px; font-size: 12px; }
.analytics-wallet-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px; }
.analytics-wallet-summary > div { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcff; }
.analytics-wallet-summary small { color: var(--muted); font-size: 9px; }
.analytics-wallet-summary b { font-size: 14px; }
.analytics-activity-list { display: grid; gap: 0; padding: 0 14px; }
.analytics-activity-item { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.analytics-activity-item:last-child { border-bottom: 0; }
.analytics-activity-item > .material-symbols-outlined { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); font-size: 14px; }
.analytics-activity-item strong, .analytics-activity-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-activity-item strong { font-size: 10px; text-transform: capitalize; }
.analytics-activity-item small, .analytics-activity-item time { color: var(--muted); font-size: 8px; }
.analytics-unavailable { color: var(--muted); font-size: 9px; font-style: italic; }
.analytics-quality { display: grid; gap: 5px; }
.analytics-quality-item { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #d7e4f4; border-radius: 6px; color: #355269; background: #f6faff; font-size: 10px; }
.analytics-quality-item.warning { border-color: #f0d8a0; color: #7a5b16; background: #fffaf0; }
.analytics-quality-item .material-symbols-outlined { font-size: 15px; }
.analytics-workspace.is-loading { opacity: .72; }
@media (max-width: 1000px) { .analytics-dashboard-grid, .analytics-detail-grid { grid-template-columns: 1fr; } .analytics-controls { justify-content: flex-start; } }
@media (max-width: 620px) { .analytics-controls { align-items: stretch; } .analytics-date-range { display: grid; grid-template-columns: 1fr 1fr auto; width: 100%; } .analytics-date-range input { width: 100%; } .analytics-controls select, .analytics-controls input[data-real-search] { flex: 1 1 100%; width: 100%; } .analytics-controls > button { flex: 1; } }
@media print {
  body * { visibility: hidden !important; }
  #analyticsWorkspace, #analyticsWorkspace * { visibility: visible !important; }
  #analyticsWorkspace { position: absolute !important; inset: 0 auto auto 0 !important; z-index: 99999; width: 100% !important; margin: 0 !important; padding: 0 !important; background: #fff !important; }
  #analyticsWorkspace .analytics-controls { display: none !important; }
  #analyticsWorkspace .analytics-series { overflow: visible !important; flex-wrap: wrap !important; }
  #analyticsWorkspace .panel { break-inside: avoid; box-shadow: none !important; }
  #analyticsWorkspace .table-shell { overflow: visible !important; }
  #analyticsWorkspace table { min-width: 0 !important; width: 100% !important; font-size: 8pt !important; }
  #analyticsWorkspace th, #analyticsWorkspace td { white-space: normal !important; }
}

@media (max-width: 1000px) { .email-composer { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .email-field-grid, .email-actions { grid-template-columns: 1fr; } .email-preview-content { width: calc(100% - 20px); padding: 18px 14px; } .email-block-text h2 { font-size: 20px; } .email-preview-bar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 1000px) { .channel-workspace, .inbox-workspace { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .channel-form-grid, .reply-box { grid-template-columns: 1fr; } .channel-compose-actions { flex-direction: column; } .channel-compose-actions button { width: 100%; } }
@media (max-width: 620px) { .channel-report-grid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .campaign-report-workspace { grid-template-columns: 1fr; } .report-metric-grid-detailed, .report-spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .report-metric-grid-detailed, .report-spec-list { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .report-metric-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .report-pagination { align-items: stretch; flex-direction: column; } .report-pagination > span { justify-content: space-between; } }
@media (max-width: 1000px) { .operations-workspace { grid-template-columns: 1fr; } .analytics-metric-grid { grid-template-columns: repeat(2, 1fr); } .overview-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .overview-spend-panel { grid-column: span 2; } }
@media (max-width: 620px) { .form-performance-modal { padding: 12px; } .form-performance-dialog .channel-stat-list { grid-template-columns: 1fr; } .event-create-modal { padding: 12px; } .event-create-dialog { padding: 18px; } .event-create-dialog > .panel-head { gap: 12px; } .event-create-dialog > .panel-head .icon-button { flex: 0 0 auto; } .event-create-grid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .event-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .event-header-actions { width: 100%; } .event-header-actions button { flex: 1; } .event-panel-toolbar, .event-setup-head { flex-direction: column; } .event-panel-toolbar select { width: 100%; } .event-setup-actions { width: 100%; justify-content: stretch; } .event-setup-actions button { flex: 1; } .event-rules-grid { grid-template-columns: 1fr; } .event-branding-settings { grid-template-columns: 1fr; } .event-branding-settings img { width: 100%; height: 120px; } .event-selector { grid-template-columns: 1fr; gap: 6px; } .event-selector select { width: 100%; } .event-form-field { grid-template-columns: 22px minmax(0, 1fr) 28px; } .event-form-field label:nth-of-type(2) { grid-column: 2; } .event-field-required { grid-column: 2; } .event-form-field .icon-button { grid-column: 3; grid-row: 1 / span 3; } .event-analytics-grid { grid-template-columns: 1fr 1fr; } .event-analytics-filters { align-items: stretch; flex-direction: column; } .event-analytics-filters > div { margin-right: 0; } .event-analytics-filters button { width: 100%; } }
@media (max-width: 620px) { .invite-method-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form-builder-grid { grid-template-columns: 1fr; } .form-field-row { grid-template-columns: 16px minmax(0, 1fr) 24px; } .form-required { grid-column: 2 / -1; } .analytics-toolbar { align-items: flex-start; flex-direction: column; } .analytics-period { width: 100%; } .analytics-period button { flex: 1; } .analytics-metric-grid { grid-template-columns: 1fr 1fr; } .analytics-table-shell table { min-width: 680px; } .overview-detail-grid { grid-template-columns: 1fr; } .overview-spend-panel { grid-column: auto; } }

/* Database-backed form and landing-page builders. Keep field controls readable at every width. */
.databaseFormEditor, .databasePageEditor, #databaseFormEditor, #databasePageEditor { display: grid; gap: 16px; }
#databaseFormEditor .form-copy-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#databaseFormEditor .form-copy-settings label:nth-child(2) { grid-column: span 2; }
#databaseFormEditor .form-field-settings { display: grid; gap: 12px; }
#databaseFormEditor .form-field-settings > .panel-head { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
#databaseFormEditor #databaseFormFields { display: grid; gap: 10px; }
#databaseFormEditor .form-field-row { display: grid; grid-template-columns: 20px minmax(110px, .65fr) minmax(160px, 1fr) minmax(160px, 1fr) auto 34px; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
#databaseFormEditor .form-field-row > label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
#databaseFormEditor .form-field-row input, #databaseFormEditor .form-field-row select { width: 100%; min-width: 0; box-sizing: border-box; }
#databaseFormEditor .form-field-row > .material-symbols-outlined { align-self: center; color: var(--muted); }
#databaseFormEditor .form-required { display: flex !important; align-items: center; gap: 5px; white-space: nowrap; padding-bottom: 9px; }
#databaseFormEditor .form-required input { width: auto; }
#databaseFormEditor .icon-button { width: 34px; height: 34px; }
#databasePageEditor { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
#databasePageEditor label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
#databasePageEditor label:nth-child(4), #databasePageEditor label:nth-child(5), #databasePageEditor .form-message, #databasePageEditor .modal-actions { grid-column: 1 / -1; }
#databasePageEditor textarea { min-height: 86px; resize: vertical; }
.landing-workspace { align-items: start; }
.landing-workspace .landing-list-panel, .landing-workspace .channel-summary { min-width: 0; }
.builder-analytics-output { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8ff; color: var(--muted); font-size: 12px; line-height: 1.6; }
.builder-analytics-output[hidden] { display: none !important; }
.builder-analytics-output b { color: var(--text); font-size: 17px; }
@media (max-width: 820px) { #databaseFormEditor .form-copy-settings, #databasePageEditor { grid-template-columns: 1fr; } #databaseFormEditor .form-copy-settings label:nth-child(2), #databasePageEditor label:nth-child(4), #databasePageEditor label:nth-child(5), #databasePageEditor .form-message, #databasePageEditor .modal-actions { grid-column: auto; } #databaseFormEditor .form-field-row { grid-template-columns: 18px 1fr 1fr; } #databaseFormEditor .form-field-row .form-required { grid-column: 2; } #databaseFormEditor .form-field-row .icon-button { grid-column: 3; justify-self: end; } }
@media (max-width: 620px) { .campaign-email-fields, .campaign-email-layout { grid-template-columns: 1fr; } }

/* Landing-page builder polish: compact workspace, clearer editing zones, and a calm glass surface. */
.landing-workspace { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; margin-top: 0; }
.landing-workspace .landing-list-panel,
.landing-workspace .channel-summary { padding: 18px; border-color: #d6deeb; border-radius: 12px; background: rgba(255, 255, 255, .84); box-shadow: 0 14px 34px rgba(42, 62, 96, .08); }
.landing-workspace .landing-list-panel { background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%); }
.landing-workspace .channel-summary { background: linear-gradient(145deg, #ffffff 0%, #f3f7ff 100%); }
.landing-workspace .panel-head { align-items: flex-start; gap: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #e3e9f1; }
.landing-workspace .panel-head h2 { margin-top: 5px; letter-spacing: -.01em; }
.landing-workspace .panel-head p { max-width: 440px; line-height: 1.5; }
.landing-workspace .section-kicker { color: #075985; background: #e3f3fb; border-color: #b9dff0; }
#databasePageEditor { gap: 14px; padding: 16px; border: 1px solid #dfe7f0; border-radius: 10px; background: rgba(255, 255, 255, .78); }
#databasePageEditor label { color: #526276; font-size: 11px; letter-spacing: .02em; }
#databasePageEditor input,
#databasePageEditor select,
#databasePageEditor textarea { border-color: #ccd8e6; border-radius: 7px; background: #fbfdff; color: #182536; box-shadow: inset 0 1px 2px rgba(31, 52, 77, .04); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
#databasePageEditor input,
#databasePageEditor select { min-height: 40px; }
#databasePageEditor textarea { min-height: 92px; }
#databasePageEditor input:focus,
#databasePageEditor select:focus,
#databasePageEditor textarea:focus { border-color: #1684a8; background: #fff; box-shadow: 0 0 0 3px rgba(22, 132, 168, .12); outline: 0; }
#databasePageEditor .modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 2px; padding-top: 14px; border-top: 1px solid #e3e9f1; }
.landing-workspace .channel-summary .panel-head { align-items: center; }
.landing-workspace .channel-summary .panel-head > .material-symbols-outlined { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #0e7490; background: #dff5fa; font-size: 19px; }
.landing-workspace .landing-page-list { min-height: 210px; }
.landing-workspace .landing-page-list:has(.empty-state) { display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px 16px; border: 1px dashed #cbd7e5; border-radius: 10px; background: rgba(247, 250, 253, .72); }
.landing-workspace .landing-page-list:has(.empty-state)::before { content: "web"; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #0e7490; background: #dff5fa; font-family: "Material Symbols Outlined"; font-size: 22px; }
.landing-workspace .landing-page-list .empty-state { max-width: 220px; margin: 0; color: #64748b; font-size: 11px; line-height: 1.55; text-align: center; }
.landing-workspace .landing-page-list > button { border-color: #d6e0eb; border-radius: 9px; background: rgba(255, 255, 255, .84); }
.landing-workspace .landing-page-list > button:hover { border-color: #1684a8; background: #f0fbfd; }
@media (max-width: 1000px) { .landing-workspace { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .landing-workspace .landing-list-panel, .landing-workspace .channel-summary { padding: 14px; } #databasePageEditor { padding: 13px; } .landing-workspace .panel-head { flex-direction: column; } .landing-workspace .panel-head > button, .page-editor-actions { width: 100%; } .page-editor-actions > button { flex: 1; } #databasePageEditor .modal-actions { flex-direction: column; } #databasePageEditor .modal-actions button { width: 100%; } }

/* Visual landing-page composition builder. */
#landing-pages .module-page-content { opacity: 0; transition: opacity .16s ease; }
#landing-pages .module-page-content:has(#databasePageComposer) { opacity: 1; }
.landing-composer-workspace { grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); align-items: start; }
.landing-composer-workspace .page-editor-panel { padding: 20px; }
.page-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.page-editor-actions .outline-button { white-space: nowrap; }
.page-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #e3e9f1; }
.page-settings-grid label, .page-block-fields label { display: grid; gap: 6px; color: #526276; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.page-settings-grid label small { color: #7b8a9d; font-size: 9px; font-weight: 500; line-height: 1.4; }
.page-settings-grid .page-setting-wide, .page-block-fields .block-field-wide { grid-column: 1 / -1; }
.page-settings-grid input, .page-settings-grid select, .page-settings-grid textarea, .page-block-fields input, .page-block-fields select, .page-block-fields textarea { width: 100%; min-width: 0; border: 1px solid #ccd8e6; border-radius: 7px; background: #fbfdff; color: #182536; }
.page-settings-grid input, .page-settings-grid select, .page-block-fields input, .page-block-fields select { min-height: 40px; }
.page-settings-grid textarea, .page-block-fields textarea { resize: vertical; }
.page-settings-grid input:focus, .page-settings-grid select:focus, .page-settings-grid textarea:focus, .page-block-fields input:focus, .page-block-fields select:focus, .page-block-fields textarea:focus { border-color: #1684a8; box-shadow: 0 0 0 3px rgba(22, 132, 168, .12); outline: 0; }
.page-content-builder { display: grid; gap: 14px; padding-top: 18px; }
.page-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-section-head h3 { margin: 4px 0 3px; font-size: 16px; }
.page-section-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.page-component-count { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #b9dff0; border-radius: 999px; color: #075985; background: #e3f3fb; font-size: 10px; font-weight: 800; }
.page-block-toolbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px; border: 1px solid #dbe5ef; border-radius: 9px; background: #f5f9fc; }
.page-add-component { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 0 9px; border: 1px solid #cbd8e5; border-radius: 7px; color: #345269; background: #fff; font-size: 10px; font-weight: 700; }
.page-add-component:hover { border-color: #1684a8; color: #075985; background: #effafd; }
.page-add-component .material-symbols-outlined { color: #1684a8; font-size: 16px; }
#landingPageBlocks { display: grid; gap: 10px; }
.page-block-card { display: grid; gap: 13px; padding: 13px; border: 1px solid #d6e0eb; border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(42, 62, 96, .05); }
.page-block-card-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #e8eef4; }
.page-block-grip { color: #94a3b8; font-size: 17px; }
.page-block-type { display: inline-flex; align-items: center; gap: 6px; color: #1d3b51; font-size: 11px; font-weight: 800; }
.page-block-type .material-symbols-outlined { color: #1684a8; font-size: 17px; }
.page-block-card-head .icon-button { width: 30px; height: 30px; margin-left: auto; color: #8b3a4a; }
.page-block-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.page-preview-panel { position: sticky; top: 16px; }
.page-preview-canvas { display: grid; gap: 12px; min-height: 260px; padding: 22px; border: 1px solid #dbe5ef; border-radius: 10px; background: linear-gradient(160deg, #f9fdff 0%, #f2f7fb 100%); overflow: hidden; }
.page-preview-block { max-width: 100%; margin: 0; color: #182536; }
.page-preview-block.block-width-narrow { width: 58%; }
.page-preview-block.block-width-medium { width: 78%; }
.page-preview-block.block-width-wide { width: 92%; }
.page-preview-block.block-width-full { width: 100%; }
.page-preview-block.align-left { justify-self: start; text-align: left; }
.page-preview-block.align-center { justify-self: center; text-align: center; }
.page-preview-block.align-right { justify-self: end; text-align: right; }
.page-preview-canvas h1, .page-preview-canvas h2, .page-preview-canvas h3 { line-height: 1.12; letter-spacing: -.02em; }
.page-preview-canvas h1 { font-size: 30px; }
.page-preview-canvas h2 { font-size: 22px; }
.page-preview-canvas h3 { font-size: 17px; }
.page-preview-canvas p { color: #597084; font-size: 12px; line-height: 1.6; }
.page-preview-canvas .text-style-subheading { color: #355269; font-size: 15px; }
.page-preview-canvas .text-style-bold { color: #182536; font-weight: 800; }
.page-preview-canvas blockquote { padding-left: 12px; border-left: 3px solid #55b5c8; color: #456175; font-size: 13px; font-style: italic; line-height: 1.55; }
.page-preview-canvas img, .page-preview-canvas video { display: block; max-width: 100%; max-height: 230px; object-fit: cover; }
.page-preview-canvas img.media-square, .page-preview-canvas img.media-rounded, .page-preview-canvas img.media-circle { aspect-ratio: 16 / 9; width: 100%; }
.page-preview-canvas img.media-square { border-radius: 2px; }
.page-preview-canvas img.media-rounded { border-radius: 12px; }
.page-preview-canvas img.media-circle { border-radius: 50%; aspect-ratio: 1; }
.page-preview-canvas audio { width: 100%; }
.page-preview-divider { height: 1px; margin-block: 8px; }
.page-preview-divider.divider-soft { background: #dbe5ef; }
.page-preview-divider.divider-solid { height: 2px; background: #7aaabd; }
.page-preview-divider.divider-dashed { border-top: 1px dashed #7aaabd; }
.media-placeholder, .page-preview-empty { display: grid; place-items: center; gap: 5px; min-height: 110px; padding: 20px; border: 1px dashed #b9cddd; border-radius: 10px; color: #7890a2; background: rgba(255, 255, 255, .58); text-align: center; }
.media-placeholder .material-symbols-outlined, .page-preview-empty .material-symbols-outlined { color: #1684a8; font-size: 28px; }
.page-preview-form { display: grid; gap: 7px; padding: 16px; border: 1px solid #b9dff0; border-radius: 10px; background: #eaf8fb; }
.page-preview-form .material-symbols-outlined { color: #0e7490; font-size: 22px; }
.page-preview-form small, .page-preview-empty small { color: #668096; font-size: 10px; }
.page-preview-form button { justify-self: start; min-height: 31px; padding: 0 11px; border: 0; border-radius: 6px; color: #fff; background: #0e7490; font-size: 10px; font-weight: 800; }
.saved-pages-section { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e3e9f1; }
.saved-pages-section .page-section-head { align-items: flex-start; }
.saved-pages-section .page-section-head .material-symbols-outlined { color: #0e7490; }
@media (max-width: 1000px) { .landing-composer-workspace { grid-template-columns: 1fr; } .page-preview-panel { position: static; } }
@media (max-width: 620px) { .landing-composer-workspace .page-editor-panel { padding: 14px; } .page-settings-grid, .page-block-fields { grid-template-columns: 1fr; } .page-settings-grid .page-setting-wide, .page-block-fields .block-field-wide { grid-column: auto; } .page-block-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-add-component { justify-content: flex-start; } .page-preview-block.block-width-narrow, .page-preview-block.block-width-medium, .page-preview-block.block-width-wide { width: 100%; } }

/* Visual builder finish: a compact, glossy studio surface with clearer editing hierarchy. */
#landing-pages .module-page-content { background: radial-gradient(circle at 90% 0%, rgba(111, 92, 255, .08), transparent 32%), #f6f8fc; }
.landing-composer-workspace { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 20px; }
.landing-composer-workspace .page-editor-panel,
.landing-composer-workspace .page-preview-panel { position: relative; overflow: hidden; border: 1px solid rgba(157, 174, 202, .46); border-radius: 18px; background: rgba(255, 255, 255, .86); box-shadow: 0 20px 50px rgba(42, 61, 105, .12), 0 2px 8px rgba(42, 61, 105, .04); backdrop-filter: blur(16px); }
.landing-composer-workspace .page-editor-panel::before,
.landing-composer-workspace .page-preview-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #0a67d1, #6d5dfc 52%, #44d7ad); }
.landing-composer-workspace .page-editor-panel { padding: 22px; }
.landing-composer-workspace .page-editor-panel > .panel-head,
.landing-composer-workspace .page-preview-panel > .panel-head { margin: -22px -22px 20px; padding: 24px 22px 18px; border-bottom: 1px solid rgba(157, 174, 202, .32); background: linear-gradient(135deg, rgba(239, 247, 255, .92), rgba(247, 244, 255, .82)); }
.landing-composer-workspace .panel-head h2 { color: #101c35; font-size: 20px; letter-spacing: -.025em; }
.landing-composer-workspace .panel-head p { color: #6a7891; }
.landing-composer-workspace .section-kicker { border: 0; border-radius: 999px; color: #075fc2; background: #e8f1ff; letter-spacing: .08em; }
.page-settings-grid { gap: 14px; padding: 0 0 20px; border-bottom-color: #e2e8f2; }
.page-seo-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 17px; border: 1px solid #d6e2f0; border-radius: 13px; background: linear-gradient(135deg, #f3f9fc, #f5f7ff); }
.page-seo-settings > div { grid-column: 1 / -1; }
.page-seo-settings h3 { margin: 4px 0; color: #182536; font-size: 15px; letter-spacing: -.02em; }
.page-seo-settings p { margin: 0; color: #6b7a90; font-size: 11px; line-height: 1.5; }
.page-seo-settings label { min-width: 0; }
.page-seo-settings label:last-child { grid-column: 1 / -1; }
.page-seo-settings label small { color: #7b8a9d; font-size: 9px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.page-settings-grid label, .page-block-fields label { gap: 7px; color: #64728a; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.page-settings-grid input, .page-settings-grid select, .page-settings-grid textarea, .page-block-fields input, .page-block-fields select, .page-block-fields textarea { border-color: #d6dfed; border-radius: 10px; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 5px rgba(44, 67, 105, .035); font-size: 12px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.page-settings-grid input, .page-settings-grid select, .page-block-fields input, .page-block-fields select { min-height: 42px; }
.page-settings-grid textarea, .page-block-fields textarea { min-height: 92px; padding-top: 12px; }
.page-settings-grid input:focus, .page-settings-grid select:focus, .page-settings-grid textarea:focus, .page-block-fields input:focus, .page-block-fields select:focus, .page-block-fields textarea:focus { border-color: #4c83ee; box-shadow: 0 0 0 4px rgba(76, 131, 238, .12), 0 4px 12px rgba(76, 131, 238, .08); transform: translateY(-1px); }
.slug-helper { margin-top: -2px; color: #8290a6; font-size: 10px; letter-spacing: 0; text-transform: none; }
.page-content-builder { gap: 16px; padding-top: 21px; }
.page-section-head h3 { color: #15223b; font-size: 17px; letter-spacing: -.02em; }
.page-section-head p { color: #8290a6; }
.page-component-count { padding: 7px 10px; border: 0; border-radius: 999px; color: #235dbb; background: #eaf2ff; box-shadow: inset 0 0 0 1px rgba(85, 130, 218, .12); }
.page-block-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; border: 1px solid #e1e8f3; border-radius: 14px; background: #f3f6fb; }
.page-add-component { justify-content: center; min-height: 42px; padding: 0 8px; border: 1px solid #e0e7f1; border-radius: 10px; color: #52637d; background: rgba(255, 255, 255, .88); box-shadow: 0 2px 5px rgba(45, 66, 103, .04); transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.page-add-component:hover { border-color: #6e8fe0; color: #155abd; background: #fff; box-shadow: 0 7px 16px rgba(49, 95, 180, .12); transform: translateY(-2px); }
.page-add-component .material-symbols-outlined { color: #286bd1; font-size: 18px; }
#landingPageBlocks { gap: 12px; }
.page-block-card { position: relative; gap: 15px; padding: 15px; border: 1px solid #dce5f1; border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 7px 20px rgba(47, 68, 106, .06); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.page-block-card::before { content: ""; position: absolute; inset: 14px auto 14px 0; width: 3px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #2878dd, #7d65ef); opacity: .8; }
.page-block-card:hover { border-color: #b9cbea; box-shadow: 0 12px 26px rgba(47, 68, 106, .1); transform: translateY(-1px); }
.page-block-card-head { gap: 9px; padding: 0 0 11px 4px; border-bottom-color: #edf1f6; }
.page-block-grip { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #8090a7; background: #f2f5fa; font-size: 16px; }
.page-block-type { color: #243754; font-size: 11px; letter-spacing: .01em; }
.page-block-type .material-symbols-outlined { color: #286bd1; font-size: 17px; }
.page-block-card-head .icon-button { width: 30px; height: 30px; border-color: #e7d5dd; border-radius: 9px; color: #b14b64; background: #fff8fa; }
.page-block-card-head .icon-button:hover { border-color: #d8778e; color: #fff; background: #c85670; }
.page-block-fields { gap: 12px; }
.page-preview-panel { padding: 0 18px 18px; position: sticky; top: 18px; }
.landing-composer-workspace .page-preview-panel > .panel-head { align-items: center; margin: 0 -18px 18px; padding: 24px 18px 17px; }
.page-preview-panel > .panel-head > .material-symbols-outlined { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #1267c9; background: #e8f2ff; box-shadow: inset 0 0 0 1px rgba(63, 122, 215, .12); }
.page-preview-canvas { position: relative; gap: 15px; min-height: 330px; padding: 28px 24px; border: 1px solid #d7e3f2; border-radius: 16px; background: radial-gradient(circle at 100% 0, rgba(103, 92, 242, .1), transparent 38%), linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 7px 18px rgba(51, 72, 110, .06); }
.page-preview-canvas::after { content: "LIVE"; position: absolute; top: 12px; right: 14px; padding: 4px 7px; border: 1px solid #bdebdc; border-radius: 999px; color: #087b59; background: #e9fff6; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.page-preview-block { color: #10213d; }
.page-preview-canvas h1 { font-size: 32px; letter-spacing: -.04em; }
.page-preview-canvas h2 { font-size: 23px; letter-spacing: -.03em; }
.page-preview-canvas h3 { font-size: 18px; letter-spacing: -.02em; }
.page-preview-canvas p { color: #64758e; line-height: 1.7; }
.page-preview-canvas .text-style-subheading { color: #405570; font-size: 15px; }
.page-preview-form { border-color: #c7ddfa; border-radius: 13px; background: linear-gradient(135deg, #edf7ff, #f5f1ff); box-shadow: 0 8px 18px rgba(56, 103, 180, .08); }
.page-preview-form .material-symbols-outlined { color: #236dd1; }
.page-preview-form button { border-radius: 8px; background: #1468cc; box-shadow: 0 5px 12px rgba(20, 104, 204, .22); }
.saved-pages-section { gap: 13px; margin-top: 18px; padding-top: 18px; border-top-color: #e4ebf4; }
.landing-workspace .landing-page-list:has(.empty-state) { min-height: 145px; padding: 18px; border: 1px dashed #c8d7ea; border-radius: 14px; background: #f7faff; }
.landing-workspace .landing-page-list:has(.empty-state)::before { width: 38px; height: 38px; border-radius: 11px; color: #286bd1; background: #e6f1ff; }
.landing-workspace .landing-page-list .empty-state { color: #8190a4; }
.landing-composer-workspace .modal-actions { margin-top: 2px; padding-top: 16px; border-top: 1px solid #e3eaf3; }
.landing-composer-workspace .modal-actions .solid-button { min-height: 42px; border-radius: 10px; background: linear-gradient(135deg, #1267c9, #5d56d9); box-shadow: 0 8px 18px rgba(43, 87, 183, .2); }
.landing-composer-workspace .modal-actions .outline-button { min-height: 42px; border-radius: 10px; }
@media (max-width: 1000px) { .landing-composer-workspace { grid-template-columns: 1fr; } .landing-composer-workspace .page-preview-panel { position: static; } }
@media (max-width: 620px) { .landing-composer-workspace .page-editor-panel { padding: 16px; } .landing-composer-workspace .page-editor-panel > .panel-head { margin: -16px -16px 18px; padding: 20px 16px 16px; } .page-block-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-add-component { justify-content: flex-start; } .page-preview-canvas { padding: 24px 18px; } }

/* Keep the preview, share link, and saved pages together as one studio surface. */
.page-preview-share { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: -5px 0 14px; padding: 10px 11px; border: 1px solid #cfe1f6; border-radius: 12px; background: linear-gradient(135deg, #f2f8ff, #f8f5ff); }
.page-preview-share > .material-symbols-outlined { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #1769c2; background: #e0efff; font-size: 17px; }
.page-preview-share.is-locked { border-color: #e1e7f0; background: #f8fafc; }
.page-preview-share.is-locked > .material-symbols-outlined { color: #7a8ba3; background: #edf1f6; }
.page-preview-share-copy { display: grid; min-width: 0; gap: 3px; }
.page-preview-share-copy b { color: #1b2b45; font-size: 10px; }
.page-preview-share-copy small { color: #718198; font-size: 9px; line-height: 1.35; }
.page-preview-share-copy code { overflow: hidden; color: #2463b2; font: 10px/1.3 \"Geist Mono\", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.page-preview-share-actions { display: flex; align-items: center; gap: 6px; }
.page-link-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 0 9px; border: 1px solid #b8d1ee; border-radius: 8px; color: #145eb1; background: #fff; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.page-link-button:hover { border-color: #286bd1; color: #0c4d99; background: #f5f9ff; }
.page-link-button .material-symbols-outlined { font-size: 15px; }
.page-preview-share .page-copy-link { width: 30px; height: 30px; border-color: #b8d1ee; color: #145eb1; background: #fff; }
.page-preview-share .page-copy-link[data-copied=\"true\"], .saved-page-row-actions .page-copy-link[data-copied=\"true\"] { color: #087b59; border-color: #a7e3cc; background: #effff8; }
.saved-pages-section .landing-page-list { min-height: 0; margin-bottom: 0; }
.saved-page-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: stretch; padding: 6px; border: 1px solid #d6e2ef; border-radius: 12px; background: rgba(255, 255, 255, .78); }
.saved-page-row:hover { border-color: #aec7e5; background: #fbfdff; }
.saved-page-select { min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.saved-page-select:hover { border-color: transparent !important; background: #f0f7ff !important; }
.saved-page-row-actions { display: flex; align-items: center; gap: 5px; padding-right: 3px; }
.page-link-button-compact { min-height: 28px; padding: 0 8px; font-size: 9px; }
.saved-page-row-actions .page-copy-link { width: 28px; height: 28px; }
.saved-page-row-actions .page-copy-link { width: auto; min-width: 74px; padding: 0 8px; }
.saved-page-row-actions .page-copy-link::after { content: "Copy link"; font-size: 9px; font-weight: 800; }
.saved-page-row-actions .material-symbols-outlined { font-size: 15px; }
.page-draft-note { display: inline-flex; align-items: center; gap: 4px; padding: 0 5px; color: #8a6d22; font-size: 9px; white-space: nowrap; }
.page-draft-note .material-symbols-outlined { color: #b78a22; font-size: 14px; }
.saved-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: stretch; padding: 6px; border: 1px solid #d6e2ef; border-radius: 12px; background: rgba(255, 255, 255, .78); }
.saved-form-row:hover { border-color: #aec7e5; background: #fbfdff; }
.saved-form-row > [data-form-edit] { min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.saved-form-row > [data-form-edit]:hover { border-color: transparent !important; background: #f0f7ff !important; }
.saved-form-row-actions { display: flex; align-items: center; gap: 5px; padding-right: 3px; }
.saved-item-analytics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-column: 1 / -1; gap: 0; padding: 0; border-top: 1px solid #e4ebf4; color: #60718a; background: #f6f9fd; }
.saved-item-analytics-metric { display: grid; gap: 2px; min-width: 0; padding: 9px 12px; border-right: 1px solid #e4ebf4; }
.saved-item-analytics-metric:last-child { border-right: 0; }
.saved-item-analytics-metric b { color: #1f5fb5; font-size: 14px; line-height: 1.1; }
.saved-item-analytics-metric small { color: #718198; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 620px) { .page-preview-share { grid-template-columns: 28px minmax(0, 1fr); } .page-preview-share-actions { grid-column: 2; justify-content: flex-start; } .saved-page-row { grid-template-columns: 1fr; } .saved-page-row-actions { justify-content: flex-end; padding: 0 3px 3px; } }
@media (max-width: 620px) { .saved-item-analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .saved-item-analytics-metric:nth-child(2) { border-right: 0; } .saved-item-analytics-metric:nth-child(-n + 2) { border-bottom: 1px solid #e4ebf4; } }

/* Saved landing pages: give each record a clear identity row and a separate action row. */
.saved-page-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-color: #cbd9e8;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}
.saved-page-select {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px !important;
  border-radius: 9px !important;
}
.saved-page-select > span:nth-child(2) { min-width: 0; }
.saved-page-select b { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.saved-page-select small { line-height: 1.35; overflow-wrap: anywhere; }
.saved-page-select .stage { justify-self: end; align-self: start; }
.saved-page-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  padding: 9px 0 0;
  border-top: 1px solid #e4ebf4;
}
.saved-page-row-actions > a,
.saved-page-row-actions > button { min-width: 92px; justify-content: center; }
.saved-page-row-actions .page-copy-link { min-width: 92px; }
.saved-pages-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  color: #718198;
  font-size: 10px;
}
.saved-pages-pagination > small { white-space: nowrap; }
.saved-pages-pagination > span { display: inline-flex; align-items: center; gap: 7px; }
.saved-pages-pagination b { color: #24344b; font-size: 10px; white-space: nowrap; }
.saved-pages-pagination button { min-height: 28px; padding: 0 9px; font-size: 9px; }
.saved-pages-pagination button:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 620px) {
  .saved-page-select { grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
  .saved-page-select .stage { grid-column: 2; justify-self: start; margin-top: -2px; }
  .saved-page-row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .saved-page-row-actions > a,
  .saved-page-row-actions > button { width: 100%; min-width: 0; }
  .saved-page-row-actions > .page-draft-note { grid-column: 1 / -1; justify-self: start; }
  .saved-pages-pagination { align-items: stretch; flex-direction: column; }
  .saved-pages-pagination > span { justify-content: space-between; }
}

/* Super-admin platform console */
.platform-page { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); background: #f7f8fc; color: #17152a; }
.platform-sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 22px 14px 16px; background: #151226; color: #f8f6ff; }
.platform-sidebar-scrim, .platform-mobile-toggle { display: none; }
.platform-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 24px; color: #fff; font-weight: 800; text-decoration: none; }
.platform-brand b { display: block; color: #aea7c7; font-size: 10px; font-weight: 500; margin-top: 2px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #6d28d9; color: #fff; font-size: 18px; }
.platform-user { display: flex; align-items: center; gap: 10px; padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.platform-user > .material-symbols-outlined { color: #c6a7ff; font-size: 24px; }
.platform-user strong, .platform-user small { display: block; }
.platform-user strong { font-size: 12px; }
.platform-user small { margin-top: 3px; color: #a7a0bd; font-size: 10px; }
.platform-nav { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 22px; }
.platform-nav button, .platform-sidebar-bottom button, .platform-site-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #b9b1ce; font: inherit; font-size: 12px; text-align: left; text-decoration: none; cursor: pointer; }
.platform-nav button:hover, .platform-nav button.active, .platform-sidebar-bottom button:hover, .platform-site-link:hover { background: #2b1d50; color: #fff; }
.platform-nav button.active { box-shadow: inset 3px 0 #a66cff; }
.platform-nav .material-symbols-outlined, .platform-sidebar-bottom .material-symbols-outlined { font-size: 19px; }
.platform-sidebar-bottom { display: grid; gap: 4px; margin-top: auto; }
.platform-main { min-width: 0; padding: 34px clamp(22px, 4vw, 54px) 50px; }
.platform-header, .platform-view-head, .platform-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.platform-header { margin-bottom: 24px; }
.platform-header h1 { margin: 3px 0 5px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.03em; }
.platform-header p, .platform-view-head p, .platform-panel-head p { margin: 0; color: #716d80; font-size: 12px; }
.eyebrow { color: #6d28d9; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.platform-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #ddd3fa; border-radius: 6px; background: #f3edff; color: #5c20c5; font-size: 11px; font-weight: 700; white-space: nowrap; }
.platform-badge .material-symbols-outlined { font-size: 16px; }
.platform-message { min-height: 17px; color: #b42318; font-size: 12px; }
.platform-view { display: none; }
.platform-view.active { display: block; }
.platform-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.platform-metric, .platform-panel { border: 1px solid #e8e4ef; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(31, 23, 55, .04); }
.platform-metric { position: relative; min-height: 100px; padding: 14px; }
.platform-metric > span { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #f1eaff; color: #6d28d9; font-size: 17px; }
.platform-metric small, .platform-metric strong { display: block; }
.platform-metric small { color: #716d80; font-size: 11px; }
.platform-metric strong { margin-top: 15px; font-size: 24px; letter-spacing: -.03em; }
.platform-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 16px; }
.platform-panel { min-width: 0; padding: 18px; }
.platform-panel h2, .platform-view-head h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.02em; }
.platform-panel-head { align-items: center; margin-bottom: 15px; }
.platform-icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ded7eb; border-radius: 6px; background: #fff; color: #6d28d9; cursor: pointer; }
.platform-table-wrap { overflow-x: auto; }
.platform-table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: 11px; }
.platform-table th { padding: 9px 10px; background: #faf9fd; color: #726d80; font-size: 10px; font-weight: 700; text-align: left; white-space: nowrap; }
.platform-table td { padding: 12px 10px; border-top: 1px solid #eeeaf4; color: #4e4a5d; white-space: nowrap; }
.platform-table td strong, .platform-table td small { display: block; }
.platform-table td strong { color: #222035; }
.platform-table td small { margin-top: 3px; color: #8b8795; font-size: 10px; }
.platform-status { display: inline-flex; padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: capitalize; }
.platform-status.active { background: #e5f8ed; color: #087443; }
.platform-status.paused { background: #fff0ee; color: #b42318; }
.muted-cell { color: #8b8795 !important; font-size: 10px; }
.empty-cell { padding: 22px !important; color: #8b8795 !important; text-align: center; }
.platform-activity-list { display: grid; gap: 2px; }
.platform-activity { display: grid; grid-template-columns: 30px 1fr; gap: 9px; padding: 10px 0; border-bottom: 1px solid #eeeaf4; }
.platform-activity:last-child { border-bottom: 0; }
.platform-activity > .material-symbols-outlined { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f1eaff; color: #6d28d9; font-size: 16px; }
.platform-activity strong, .platform-activity p, .platform-activity small { display: block; }
.platform-activity strong { font-size: 11px; }
.platform-activity p { margin: 3px 0; color: #686376; font-size: 10px; }
.platform-activity small { color: #9b96a6; font-size: 10px; }
.platform-activity .platform-activity-alert { margin-top: 6px; padding: 7px 9px; border: 1px solid #f4c7c3; border-radius: 7px; background: #fff6f5; color: #9d241b; line-height: 1.45; }
.platform-activity-alert b { display: inline; font-size: inherit; }
.audit-operation-tag { display: inline-flex; margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: #eee6ff; color: #6d28d9; font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.platform-view-head { align-items: center; margin-bottom: 16px; }
.platform-audit-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.platform-audit-tools select { min-height: 36px; border: 1px solid #ddd7e8; border-radius: 6px; padding: 0 9px; color: #272237; background: #fff; font: inherit; font-size: 11px; }
.audit-date-filter, .audit-time-filter { display: flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 7px; border: 1px solid #ddd7e8; border-radius: 6px; background: #fff; color: #817b90; font-size: 10px; }
.audit-date-filter input, .audit-time-filter input { border: 0; color: #272237; font: inherit; font-size: 10px; outline: 0; }
.audit-time-filter input { width: 74px; }
.audit-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid #eeeaf4; color: #726d80; font-size: 10px; }
.audit-pagination button { min-height: 30px; padding: 0 9px; }
.audit-pagination button:disabled { cursor: not-allowed; opacity: .5; }
.platform-search { display: flex; align-items: center; gap: 7px; min-width: 220px; height: 36px; padding: 0 9px; border: 1px solid #ddd7e8; border-radius: 6px; background: #fff; color: #817b90; }
.platform-search input { width: 100%; border: 0; outline: 0; color: #272237; font: inherit; font-size: 11px; }
.platform-search .material-symbols-outlined { font-size: 17px; }
@media (max-width: 900px) { .platform-page { grid-template-columns: 190px minmax(0, 1fr); } .platform-grid { grid-template-columns: 1fr; } .platform-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .platform-page { display: block; min-height: 100vh; overflow-x: hidden; }
  .platform-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(286px, calc(100vw - 42px)); min-height: 100vh; overflow-y: auto; padding: 16px 12px; transform: translateX(-105%); transition: transform 180ms ease; box-shadow: 14px 0 36px rgba(21, 18, 38, .25); }
  .platform-nav-open .platform-sidebar { transform: translateX(0); }
  .platform-sidebar-scrim { position: fixed; inset: 0; z-index: 40; display: block; background: rgba(21, 18, 38, .5); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
  .platform-nav-open .platform-sidebar-scrim { opacity: 1; pointer-events: auto; }
  .platform-brand { padding: 0 8px 18px; }
  .platform-user { padding: 12px 8px; }
  .platform-nav { grid-template-columns: 1fr; margin-top: 14px; }
  .platform-nav button, .platform-sidebar-bottom button, .platform-site-link { min-height: 44px; padding: 0 8px; font-size: 11px; }
  .platform-sidebar-bottom { display: grid; grid-template-columns: 1fr; margin-top: 12px; }
  .platform-main { width: 100%; min-height: 100vh; padding: 16px 14px 38px; }
  .platform-header { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 10px; margin-bottom: 20px; }
  .platform-header > div { min-width: 0; }
  .platform-header h1 { font-size: 28px; }
  .platform-header p { line-height: 1.4; }
  .platform-header > .platform-badge { grid-column: 2; justify-self: start; }
  .platform-mobile-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ded7eb; border-radius: 7px; background: #fff; color: #6d28d9; cursor: pointer; }
  .platform-view-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .platform-audit-tools { width: 100%; flex-direction: column; align-items: stretch; }
  .platform-audit-tools .platform-search, .platform-audit-tools select { width: 100%; }
  .platform-metrics { gap: 8px; }
  .platform-metric { min-height: 88px; padding: 11px; }
  .platform-metric strong { margin-top: 13px; font-size: 20px; }
  .platform-search { width: 100%; }
  .platform-panel { padding: 14px; }
  .platform-grid { gap: 12px; }
}

.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.provider-guidance { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid #ddd3fa; border-radius: 7px; background: #f6f1ff; color: #4d3b70; }
.provider-guidance > .material-symbols-outlined { color: #6d28d9; font-size: 18px; }
.provider-guidance strong, .provider-guidance p { display: block; }
.provider-guidance strong { font-size: 11px; }
.provider-guidance p { margin: 3px 0 0; font-size: 10px; line-height: 1.4; }
.provider-card { min-width: 0; padding: 16px; border: 1px solid #e8e4ef; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(31, 23, 55, .04); }
.provider-card-head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid #eeeaf4; }
.provider-channel { display: inline-flex; align-items: center; gap: 4px; color: #6d28d9; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.provider-channel .material-symbols-outlined { font-size: 14px; }
.provider-card h3 { margin: 7px 0 0; font-size: 14px; }
.provider-hint { min-height: 29px; margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.provider-card form > label, .provider-fields label, .provider-price-row label { display: grid; gap: 5px; color: var(--text); font-size: 10px; font-weight: 600; }
.provider-fields label small { color: var(--muted); font-size: 9px; font-weight: 500; }
.provider-card form > label { margin-top: 14px; }
.provider-card input, .provider-card select { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--text); font: inherit; font-size: 10px; outline: 0; }
.provider-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.provider-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee6f5; }
.provider-price-row { display: flex; align-items: end; gap: 8px; margin-top: 10px; }
.provider-price-row label { flex: 1; }
.provider-price-row > span { padding-bottom: 9px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.provider-form-message { min-height: 14px; margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.provider-form-message[data-tone="success"] { color: #087443; }
.provider-form-message[data-tone="error"] { color: #b42318; }
.provider-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.provider-actions button { min-height: 32px; padding: 0 9px; font-size: 10px; }
.payment-gateway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.payment-gateway-card form { display: grid; gap: 10px; margin-top: 13px; }
.payment-gateway-card form > label { margin-top: 0; }
.payment-active-toggle { display: flex !important; align-items: center; gap: 7px; color: var(--text) !important; font-size: 10px !important; font-weight: 600 !important; }
.payment-active-toggle input { width: 15px !important; min-height: 15px !important; accent-color: var(--primary); }
.payment-log-panel { margin-top: 0; }
.payment-log-panel code { color: var(--primary); font-size: 10px; }
.platform-settings-panel { max-width: 860px; }
.platform-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platform-settings-grid label { display: grid; gap: 6px; color: var(--text); font-size: 11px; font-weight: 700; }
.platform-settings-grid input, .platform-settings-grid select { width: 100%; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 9px; color: var(--text); background: #fff; font: inherit; }
.platform-settings-grid small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.4; }
.platform-settings-panel > form > button { margin-top: 12px; }
.platform-status.pending { color: #875600; background: #fff0c2; }
@media (max-width: 1000px) { .provider-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .provider-fields { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .payment-gateway-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .platform-settings-grid { grid-template-columns: 1fr; } }

/* Campaign workspace */
.campaign-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; margin-top: 16px; }
.campaign-creator, .campaign-list-panel { min-width: 0; }
.campaign-table-panel { grid-column: 1 / -1; min-width: 0; }
.campaign-list-note { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.campaign-table-toolbar { display: grid; grid-template-columns: auto minmax(220px, 420px) 1fr; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.campaign-table-toolbar label { color: var(--text); font-weight: 700; }
.campaign-table-toolbar input { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; color: var(--text); background: var(--surface, #fff); font: inherit; }
.campaign-table-toolbar input:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 14%, transparent); }
.campaign-table-toolbar small { justify-self: end; }
.campaign-data-table { overflow-x: auto; }
.campaign-data-table table { min-width: 980px; }
.campaign-data-table th, .campaign-data-table td { padding: 11px 13px; font-size: 10px; vertical-align: middle; }
.campaign-data-table th { color: var(--muted); background: #f7f5ff; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.campaign-data-table td { color: var(--text); }
.campaign-table-name { display: inline-flex; align-items: center; gap: 6px; max-width: 160px; }
.campaign-table-name .material-symbols-outlined { color: var(--primary); font-size: 16px; }
.campaign-table-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-channel-label { color: var(--primary); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.campaign-table-actions { display: flex; gap: 3px; }
.campaign-table-actions .icon-button { width: 27px; height: 27px; }
.campaign-table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.campaign-table-pagination > span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 640px) { .campaign-table-toolbar { grid-template-columns: 1fr; gap: 6px; } .campaign-table-toolbar small { justify-self: start; } }
.campaign-table-pagination .outline-button { min-height: 28px; padding: 0 8px; font-size: 9px; }
.campaign-table-pagination b { color: var(--text); font-size: 9px; }
.campaign-live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; background: #e8f8ef; color: #087443; font-size: 10px; font-weight: 700; white-space: nowrap; }
.campaign-live-badge .material-symbols-outlined { font-size: 14px; }
.campaign-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.campaign-steps { display: none; }
.campaign-steps span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.campaign-steps b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f0ebfa; color: #70667d; font-size: 10px; }
.campaign-steps .active { color: var(--primary); font-weight: 700; }
.campaign-steps .active b { background: var(--primary); color: #fff; }
.campaign-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 15px; }
.campaign-form-grid label, .campaign-creator > form > label { display: grid; gap: 5px; color: var(--text); font-size: 11px; font-weight: 600; }
.campaign-form-grid input, .campaign-form-grid select, .campaign-creator textarea { width: 100%; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--text); padding: 0 9px; font: inherit; font-size: 11px; outline: none; }
.campaign-form-grid input:focus, .campaign-form-grid select:focus, .campaign-creator textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 40, 217, .1); }
.campaign-audience-hint { display: block; grid-column: 1 / -1; margin-top: -4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.campaign-creator textarea { min-height: 105px; resize: vertical; padding: 9px; margin-top: 12px; line-height: 1.5; }
.campaign-message-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; margin-top: 5px; }
.campaign-review { display: flex; align-items: center; gap: 22px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.campaign-review div { display: grid; gap: 3px; }
.campaign-review small { color: var(--muted); font-size: 10px; }
.campaign-review strong { font-size: 16px; }
.campaign-review .solid-button { margin-left: auto; }
.campaign-count { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.campaign-list { display: grid; gap: 0; }
.campaign-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.campaign-item:last-child { border-bottom: 0; }
.campaign-item-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }
.campaign-item-icon .material-symbols-outlined { font-size: 17px; }
.campaign-item-main { min-width: 0; }
.campaign-item-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.campaign-item-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.campaign-item-main p, .campaign-item-main small { display: block; margin: 4px 0 0; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campaign-item-main small { color: #928c9b; }
.campaign-item-actions { display: flex; gap: 3px; }
.campaign-item-actions .icon-button { width: 28px; height: 28px; }
.campaign-item-actions .icon-button:disabled { opacity: .55; cursor: wait; }
.campaign-view-modal { width: min(760px, calc(100% - 32px)); }
.campaign-view-modal .panel-head { margin-bottom: 0; }
.campaign-view-modal .panel-head h2 { margin-top: 5px; font-size: 20px; }
.campaign-view-modal .panel-head p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.campaign-view-status { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 0 2px; color: var(--muted); font-size: 10px; }
.campaign-view-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; }
.campaign-view-message { display: flex; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.campaign-view-message > .material-symbols-outlined { flex: 0 0 auto; color: var(--primary); font-size: 19px; }
.campaign-view-message b { font-size: 11px; }
.campaign-view-message p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.campaign-view-footer { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
@media (max-width: 680px) { .campaign-view-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .campaign-workspace { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .campaign-form-grid { grid-template-columns: 1fr; } .campaign-steps { overflow-x: auto; grid-template-columns: repeat(5, minmax(75px, 1fr)); } .campaign-message-foot { align-items: flex-start; flex-direction: column; gap: 3px; } .campaign-review { align-items: stretch; flex-wrap: wrap; gap: 12px; } .campaign-review .solid-button { width: 100%; margin-left: 0; } .campaign-table-pagination { align-items: flex-start; flex-direction: column; } }

.sms-composer,
.event-ui {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sms-composer label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.sms-composer input,
.sms-composer textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.sms-composer textarea {
  min-height: 96px;
}

.sms-composer aside {
  padding: 18px;
  border-radius: 8px;
  background: #201536;
  color: #fff;
}

.sms-composer aside span {
  color: #d3bbff;
}

.campaign-pipeline,
.analytics-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.campaign-pipeline span,
.analytics-filters button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  background: #fffaff;
  color: var(--primary);
  font-weight: 800;
}

.qr-ticket {
  width: 160px;
  aspect-ratio: 1;
  border: 12px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #201536 12px, transparent 12px),
    linear-gradient(#201536 12px, transparent 12px),
    #eee4ff;
  background-size: 28px 28px;
  box-shadow: var(--shadow-md);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
}

.module-visual {
  min-height: 132px;
  margin-bottom: 18px;
  padding: 22px;
  display: grid;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background-color: #201536;
  background-image:
    linear-gradient(135deg, rgba(109, 40, 217, 0.72), rgba(32, 21, 54, 0.94)),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  box-shadow: var(--shadow-sm);
}

.module-visual::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 220px;
  height: 78px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22) 18%, transparent 18% 100%),
    linear-gradient(rgba(255,255,255,0.18) 0 0) 48px 18px / 120px 8px no-repeat,
    linear-gradient(rgba(255,255,255,0.12) 0 0) 48px 38px / 150px 8px no-repeat,
    rgba(255, 255, 255, 0.08);
}

.module-visual div {
  display: flex;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.module-visual .material-symbols-outlined {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.module-visual b,
.module-visual small {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.module-visual b {
  font-size: 22px;
}

.module-visual small {
  color: #e9ddff;
  line-height: 1.45;
}

.module-visual.messages {
  background-image:
    linear-gradient(135deg, rgba(76, 29, 149, 0.86), rgba(31, 22, 53, 0.96)),
    radial-gradient(circle at 16px 16px, rgba(255,255,255,0.16) 2px, transparent 3px);
  background-size: auto, 28px 28px;
}

.module-visual.sms {
  background-image:
    linear-gradient(135deg, rgba(109, 40, 217, 0.88), rgba(31, 22, 53, 0.94)),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 16px);
}

.module-visual.whatsapp {
  background-image:
    linear-gradient(135deg, rgba(13, 111, 63, 0.9), rgba(31, 22, 53, 0.96)),
    linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
}

.module-visual.email {
  background-image:
    linear-gradient(135deg, rgba(83, 0, 183, 0.78), rgba(31, 22, 53, 0.95)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 20px);
}

.module-visual.forms,
.module-visual.events {
  background-image:
    linear-gradient(135deg, rgba(87, 61, 163, 0.86), rgba(31, 22, 53, 0.96)),
    linear-gradient(45deg, rgba(255,255,255,0.08) 25%, transparent 25% 50%, rgba(255,255,255,0.08) 50% 75%, transparent 75%);
  background-size: auto, 30px 30px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  background: rgba(31, 22, 53, 0.42);
  backdrop-filter: blur(4px);
  transition: opacity 160ms ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 60;
  width: min(460px, calc(100% - 32px));
  display: grid;
  gap: 16px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.modal input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.contact-modal {
  width: min(600px, calc(100% - 32px));
  gap: 20px;
  padding: 22px;
  border-color: #c9d4e6;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(31, 22, 53, 0.18);
}

.contact-modal-head {
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-modal-head h2 { margin-top: 6px; color: var(--text); font-size: 22px; line-height: 1.1; }
.contact-modal-head .modal-help { margin-top: 6px; }
.contact-modal-head .icon-button { flex: 0 0 auto; width: 36px; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); }
.contact-modal form { gap: 12px; }
.contact-modal label { gap: 6px; color: var(--text); font-size: 11px; line-height: 1.35; }
.contact-modal input, .contact-modal select { min-height: 40px; border-color: #bdc9dc; border-radius: 6px; color: var(--text); font-size: 12px; }
.contact-modal input::placeholder { color: #8b95a7; }
.contact-modal input:focus, .contact-modal select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1); outline: 0; }
.contact-modal-actions { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.contact-modal-actions .solid-button { min-height: 40px; padding-inline: 16px; }

@media (max-width: 560px) {
  .form-grid-two { grid-template-columns: 1fr; }
  .modal { width: calc(100vw - 32px); padding: 18px; }
  .modal-actions > * { flex: 1 1 100%; width: 100%; }
  .import-summary { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .hero-section,
  .developer-band,
  .product-story,
  .product-story.reverse,
  .analytics-showcase,
  .overview-grid,
  .developer-grid,
  .endpoint-panel {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .placeholder-grid,
  .module-shell,
  .use-case-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stacked-aside {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .marketing-links {
    position: absolute;
    top: 72px;
    right: 16px;
    width: min(320px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .marketing-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-section,
  .channels-section,
  .developer-band,
  .pricing-section-new,
  .cta-panel,
  .product-story,
  .workflow-section,
  .analytics-showcase,
  .use-cases-section,
  .trust-section {
    width: min(100% - 32px, 1240px);
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
    gap: 42px;
  }

  .channel-cards,
  .price-cards,
  .marketing-footer,
  .workflow-steps,
  .event-stats,
  .analytics-metrics,
  .module-shell,
  .sms-composer,
  .event-ui {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    width: min(286px, calc(100vw - 42px));
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .nav-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    background: rgba(31, 22, 53, 0.42);
    transition: opacity 180ms ease;
  }

  .nav-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open,
  body.platform-nav-open {
    overflow: hidden;
  }

  .app-main {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 18px;
  }

  .mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 18;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -18px -18px 24px;
    padding: 10px 18px;
    background: rgba(255, 250, 255, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .small-link {
    color: var(--primary);
    font-weight: 800;
  }

  .metric-grid,
  .stacked-aside,
  .top-search-row {
    grid-template-columns: 1fr;
  }

  .view-head,
  .view-head.compact,
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .marketing-nav {
    padding: 0 16px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-actions > *,
  .cta-panel a,
  .top-search-row button {
    width: 100%;
  }

  .monitor-frame {
    width: 96%;
    grid-template-columns: 48px 1fr;
    border-width: 7px;
  }

  .mini-sidebar {
    padding: 18px 9px;
  }

  .mini-dashboard {
    padding: 10px;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .mini-chart {
    height: 110px;
  }

  .cta-panel {
    padding: 32px 20px;
  }

  .metric-grid,
  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .profile-fields,
  .use-case-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .campaign-table-mini {
    overflow-x: auto;
  }

  .campaign-table-mini div {
    min-width: 720px;
  }

  .metric-card {
    min-height: 150px;
  }

  .metric-card b {
    font-size: 42px;
  }

  .panel,
  .metric-card {
    padding: 20px;
  }

  .volume-chart {
    grid-template-columns: 1fr;
  }

  .axis {
    display: none;
  }

  .week-bars {
    gap: 14px;
    padding-left: 0;
    padding-right: 0;
  }

  .week-bars i {
    width: 10px;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .developer-head h1 {
    font-size: 42px;
  }

  .endpoint-panel > div,
  .endpoint-panel pre {
    padding: 24px;
  }
}

/* Smart compact calibration against the supplied reference screens */
.marketing-nav {
  min-height: 58px;
  padding-inline: 20px;
}

.marketing-links {
  gap: 20px;
  font-size: 13px;
}

.nav-cta,
.primary-action,
.secondary-action,
.dark-action {
  min-height: 36px;
  padding-inline: 20px;
  font-size: 13px;
}

.hero-section {
  min-height: 560px;
  padding: 54px 0 66px;
  gap: 58px;
}

.hero-copy h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.62;
}

.hero-actions {
  margin-top: 28px;
}

.hero-monitor {
  min-height: 420px;
}

.monitor-frame {
  width: min(92%, 560px);
}

.channels-section {
  padding: 64px 0;
}

.section-title {
  margin-bottom: 36px;
}

.section-title h2,
.developer-band h2,
.cta-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.channel-cards {
  gap: 26px;
}

.channel-cards article,
.price-cards article {
  min-height: 210px;
  padding: 26px;
}

.channel-cards h3 {
  margin: 18px 0 12px;
  font-size: 17px;
}

.channel-cards p,
.developer-band p,
.section-title p {
  font-size: 13px;
}

.icon-chip {
  width: 42px;
  height: 42px;
}

.developer-band {
  padding: 66px 0;
  gap: 52px;
}

.code-window {
  padding: 18px;
  font-size: 12px;
}

.pricing-section-new {
  padding: 24px 0 64px;
}

.cta-panel {
  margin-bottom: 72px;
  padding: 38px;
}

:root {
  --sidebar: 252px;
  --content-max: 1240px;
}

.app-main {
  padding: 22px 30px 34px;
  background:
    linear-gradient(90deg, rgba(109, 40, 217, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(109, 40, 217, 0.035) 1px, transparent 1px),
    #fbf7ff;
  background-size: 34px 34px;
}

.tenant {
  min-height: 84px;
  padding: 17px 16px 14px;
  gap: 10px;
}

.tenant-logo {
  width: 34px;
  height: 34px;
}

.tenant strong {
  font-size: 18px;
}

.tenant span {
  font-size: 12px;
}

.side-menu,
.side-bottom {
  gap: 2px;
  padding-inline: 6px;
}

.side-menu button,
.side-bottom button {
  min-height: 43px;
  gap: 10px;
  padding: 0 14px;
  font-size: 13px;
}

.side-menu button .material-symbols-outlined,
.side-bottom button .material-symbols-outlined {
  font-size: 20px;
}

.side-bottom {
  padding-top: 12px;
  padding-bottom: 16px;
}

.app-view {
  max-width: 1168px;
}

.view-head {
  margin-bottom: 16px;
}

.overview-date-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-date { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .72); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.live-date .material-symbols-outlined { color: var(--primary); font-size: 17px; }

#overview .view-head,
#developers .view-head {
  min-height: 74px;
  padding: 14px 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 240, 255, 0.9)),
    repeating-linear-gradient(135deg, rgba(109, 40, 217, 0.06) 0 1px, transparent 1px 16px);
  box-shadow: var(--shadow-sm);
}

.view-head h1 {
  font-size: 30px;
}

.developer-head h1 {
  font-size: 44px;
}

.view-head p {
  font-size: 13px;
  line-height: 1.45;
}

.metric-grid {
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 112px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 255, 0.88)),
    linear-gradient(90deg, rgba(109, 40, 217, 0.07) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}

.metric-card b {
  margin: 14px 0 6px;
  font-size: 34px;
}

.metric-card i {
  width: 32px;
  height: 32px;
  font-size: 19px;
}

.panel {
  padding: 16px;
  background: rgba(255, 250, 255, 0.92);
}

.panel-head h2,
.panel h2 {
  font-size: 18px;
}

.outline-button,
.solid-button,
.soft-button {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 14px;
}

.overview-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.chart-panel {
  min-height: 264px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(253, 248, 255, 0.94)),
    linear-gradient(90deg, rgba(109, 40, 217, 0.04) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}

.volume-chart {
  min-height: 212px;
}

.week-bars div {
  height: 152px;
}

.week-bars {
  gap: 18px;
  padding: 14px 10px 26px;
}

.quick-actions {
  gap: 10px;
}

.activity-list {
  gap: 12px;
}

.activity-item {
  grid-template-columns: 30px 1fr;
  gap: 10px;
  font-size: 12px;
}

.activity-item > span {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.top-search-row {
  margin-top: -6px;
  margin-bottom: 22px;
  padding-bottom: 22px;
}

.search-box {
  min-height: 44px;
}

.view-head.compact h1 {
  font-size: 36px;
}

th,
td {
  padding: 14px 18px;
  font-size: 14px;
}

.person-cell span {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

.stage,
.tags span,
.status-pill {
  min-height: 25px;
  font-size: 12px;
}

.table-footer {
  min-height: 58px;
}

.developer-grid {
  gap: 20px;
  margin-bottom: 26px;
}

.usage-panel,
.webhook-panel {
  min-height: 318px;
}

.api-chart {
  min-height: 228px;
}

.webhook-card {
  min-height: 68px;
}

.keys-panel .panel-head {
  padding: 22px 28px;
}

.endpoint-panel h2 {
  font-size: 32px;
}

.endpoint-panel > div,
.endpoint-panel pre {
  padding: 32px;
}

.endpoint-panel pre {
  min-height: 200px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .app-main {
    padding: 16px;
  }

  .mobile-appbar {
    margin: -16px -16px 20px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 38px;
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-monitor {
    min-height: 300px;
  }

  .metric-card b {
    font-size: 36px;
  }

  .developer-head h1,
  .view-head h1 {
    font-size: 32px;
  }
}

/* Africa-inspired landing refresh */
.marketing-page {
  --bg: #f6fbff;
  --wash: #eef7ff;
  --surface: #ffffff;
  --surface-2: #e9f4ff;
  --line: #d9e8f7;
  --line-strong: #b9d2ea;
  --text: #071a36;
  --muted: #52657a;
  --primary: #075bd8;
  --primary-dark: #022b63;
  --primary-soft: #e8f2ff;
  --green: #048a5a;
  --green-soft: #ddf8ee;
  background:
    radial-gradient(circle at 15% 14%, rgba(7, 91, 216, 0.12), transparent 21rem),
    radial-gradient(circle at 88% 8%, rgba(4, 138, 90, 0.1), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #eef6ff 100%);
}

.marketing-page .marketing-nav {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #e0edf8;
}

.marketing-page .wordmark {
  color: var(--primary-dark);
}

.marketing-page .wordmark span {
  background: linear-gradient(135deg, var(--primary), #00a0df);
}

.marketing-page .nav-cta,
.marketing-page .primary-action {
  background: #0a5bd8;
  box-shadow: 0 12px 28px rgba(7, 91, 216, 0.22);
}

.marketing-page .secondary-action {
  color: var(--primary-dark);
  background: #e6eef6;
}

.marketing-page .hero-section {
  min-height: calc(100vh - 142px);
  padding: 58px 0 34px;
  grid-template-columns: minmax(0, 0.86fr) minmax(450px, 1.14fr);
  gap: 64px;
}

.hero-kicker,
.hero-products,
.telco-strip {
  display: flex;
  align-items: center;
}

.hero-kicker {
  width: fit-content;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.hero-kicker i {
  color: var(--primary);
  font-size: 18px;
}

.marketing-page .hero-copy h1 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0;
}

.marketing-page .hero-copy h1 span {
  color: #075bd8;
}

.marketing-page .hero-copy p {
  color: #30445d;
}

.hero-products {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-products span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d7e8f8;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hero-products i {
  color: var(--primary);
  font-size: 18px;
}

.marketing-page .hero-monitor {
  position: relative;
  min-height: 430px;
  justify-items: stretch;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(7, 91, 216, 0.12), rgba(4, 138, 90, 0.08)),
    #eef6ff;
  border: 1px solid #d3e5f6;
}

.hero-product-window {
  position: relative;
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #b8d2eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 58px rgba(7, 26, 54, 0.18);
}

.hero-window-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #63748a;
  background: #f8fbff;
  border-bottom: 1px solid #e3eef8;
  font-size: 12px;
}

.hero-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff6257;
}

.hero-window-bar span:nth-child(2) {
  background: #ffbd42;
}

.hero-window-bar span:nth-child(3) {
  margin-right: 6px;
  background: #2fc26b;
}

.hero-window-bar strong {
  font-weight: 800;
}

.hero-product-window img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  object-position: left top;
}

.delivery-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 170px;
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #c6e8da;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(7, 26, 54, 0.14);
}

.delivery-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
}

.delivery-card b,
.delivery-card small,
.telco-strip b {
  display: block;
}

.delivery-card b {
  font-size: 23px;
}

.delivery-card small {
  color: var(--muted);
}

.telco-strip {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.telco-strip span {
  min-height: 86px;
  padding: 16px;
  border: 1px solid #d8e8f8;
  border-radius: 8px;
  color: #52657a;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}

.telco-strip b {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 16px;
}

.marketing-page .channels-section {
  padding: 54px 0;
}

.marketing-page .section-title {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-page .channel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.marketing-page .channel-cards article {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #ffffff, #f9fcff),
    radial-gradient(circle at 88% 14%, rgba(7, 91, 216, 0.08), transparent 9rem);
}

.marketing-page .channel-cards article a {
  margin-top: auto;
}

.icon-chip.blue {
  color: var(--primary);
  background: var(--primary-soft);
}

.marketing-page .product-story,
.marketing-page .workflow-section,
.marketing-page .use-cases-section,
.marketing-page .trust-section {
  padding: 54px 0;
}

.infrastructure-band {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.infrastructure-band h2 {
  margin: 14px 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
}

.infrastructure-band p {
  color: var(--muted);
  line-height: 1.65;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.infra-grid article {
  min-height: 156px;
  padding: 20px;
  border: 1px solid #d8e8f8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.infra-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
}

.infra-grid b {
  display: block;
  color: var(--primary-dark);
}

.infra-grid p {
  margin: 8px 0 0;
  font-size: 13px;
}

.marketing-page .developer-band {
  padding: 64px 0;
  border-top: 1px solid #d8e8f8;
  border-bottom: 1px solid #d8e8f8;
}

.marketing-page .code-window {
  background: #071a36;
}

.marketing-page .pricing-section-new {
  padding-top: 54px;
}

.marketing-page .price-cards .featured,
.marketing-page .cta-panel {
  background: linear-gradient(135deg, #075bd8, #003c98);
}

.marketing-page .marketing-footer {
  background: #e8f2ff;
}

@media (max-width: 900px) {
  .marketing-page .hero-section,
  .infrastructure-band {
    grid-template-columns: 1fr;
  }

  .marketing-page .hero-section {
    min-height: auto;
  }

  .telco-strip,
  .marketing-page .channel-cards,
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .marketing-page .hero-monitor {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .marketing-page .hero-section,
  .telco-strip,
  .infrastructure-band {
    width: min(100% - 32px, 1240px);
  }

  .marketing-page .hero-copy h1 {
    font-size: 34px;
  }

  .telco-strip,
  .marketing-page .channel-cards,
  .infra-grid {
    grid-template-columns: 1fr;
  }

  .hero-product-window img {
    min-height: 260px;
  }

  .delivery-card {
    position: static;
    margin: 12px;
  }
}

/* Homepage refinement: a calmer, product-led first screen. */
.marketing-page {
  background: #f5f8fc;
  color: #162235;
}
.marketing-page .marketing-nav {
  min-height: 68px;
  padding: 0 max(20px, calc((100% - 1240px) / 2));
  border-bottom-color: #dce5ef;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(20, 44, 76, .03);
}
.marketing-page .wordmark { color: #162235; }
.marketing-page .wordmark strong { font-size: 15px; letter-spacing: -.02em; }
.marketing-page .wordmark span { width: 32px; height: 32px; border-radius: 7px; background: #1267c9; box-shadow: none; }
.marketing-page .marketing-links { gap: 20px; font-size: 12px; }
.marketing-page .marketing-links a { color: #53647a; }
.marketing-page .marketing-links a:hover { color: #075fc3; }
.marketing-page .marketing-links .login-link { color: #075fc3; font-weight: 700; }
.marketing-page .nav-cta, .marketing-page .primary-action { min-height: 40px; border-radius: 7px; background: #075fc3; box-shadow: 0 8px 18px rgba(7, 95, 195, .18); }
.marketing-page .secondary-action { min-height: 40px; border: 1px solid #c6d5e6; border-radius: 7px; color: #174a80; background: #fff; }
.marketing-page .hero-section { min-height: 600px; padding: 48px 0 38px; grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr); gap: 58px; }
.marketing-page .hero-copy, .marketing-page .hero-monitor { min-width: 0; }
.marketing-page .hero-copy { max-width: 610px; }
.marketing-page .hero-kicker { min-height: 32px; padding: 0 10px; border-color: #c9ddec; border-radius: 6px; color: #17578f; background: #eef7ff; font-size: 10px; letter-spacing: .01em; }
.marketing-page .hero-kicker i { font-size: 16px; }
.marketing-page .hero-copy h1 { max-width: 600px; margin: 18px 0 18px; color: #142033; font-size: clamp(40px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.045em; }
.marketing-page .hero-copy h1 span { color: #075fc3; }
.marketing-page .hero-copy p { max-width: 550px; color: #5d6e82; font-size: 15px; line-height: 1.65; }
.marketing-page .hero-actions { gap: 9px; margin-top: 26px; }
.marketing-page .hero-proof { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 23px; color: #68798d; font-size: 10px; }
.marketing-page .hero-proof span { display: inline-flex; align-items: center; gap: 5px; }
.marketing-page .hero-proof i { color: #07845d; font-size: 15px; }
.marketing-page .hero-monitor { min-height: 390px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.marketing-page .hero-product-window { max-width: 720px; border-color: #c5d6e7; border-radius: 10px; box-shadow: 0 24px 50px rgba(24, 57, 91, .14); }
.marketing-page .hero-window-bar { min-height: 38px; padding: 0 12px; font-size: 10px; }
.marketing-page .hero-product-window img { aspect-ratio: 1.22; }
.marketing-page .delivery-card { right: 14px; bottom: 14px; min-width: 150px; min-height: 62px; grid-template-columns: 34px 1fr; gap: 8px; padding: 9px; border-radius: 7px; }
.marketing-page .delivery-card > span { width: 34px; height: 34px; }
.marketing-page .delivery-card b { font-size: 18px; }
.marketing-page .delivery-card small { font-size: 9px; }
.marketing-page .telco-strip { gap: 10px; margin-bottom: 0; }
.marketing-page .telco-strip span { min-height: 72px; padding: 13px; border-color: #d6e1ec; border-radius: 7px; background: #fff; box-shadow: 0 4px 14px rgba(28, 58, 90, .04); font-size: 10px; }
.marketing-page .telco-strip b { margin-bottom: 4px; color: #164e85; font-size: 12px; }
.marketing-page .channels-section { padding-top: 72px; }
@media (max-width: 900px) {
  .marketing-page .marketing-nav { padding: 0 16px; }
  .marketing-page .hero-section { min-height: auto; padding-top: 42px; gap: 34px; grid-template-columns: minmax(0, 1fr); }
  .marketing-page .hero-copy h1 { font-size: clamp(38px, 8vw, 54px); }
  .marketing-page .hero-monitor { min-height: auto; }
  .marketing-page .telco-strip { margin-top: 0; }
}
@media (max-width: 620px) {
  .marketing-page .hero-section { padding-top: 32px; gap: 28px; }
  .marketing-page .hero-copy h1 { font-size: 36px; }
  .marketing-page .hero-copy p { font-size: 14px; }
  .marketing-page .hero-actions { align-items: stretch; flex-direction: column; }
  .marketing-page .hero-actions > * { width: 100%; }
  .marketing-page .hero-proof { display: grid; gap: 8px; }
  .marketing-page .hero-monitor { width: 100%; }
  .marketing-page .delivery-card { right: 9px; bottom: 9px; }
}

/* Phase 2 authentication screens */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #071a36;
  background:
    radial-gradient(circle at 15% 18%, rgba(7, 91, 216, 0.16), transparent 22rem),
    radial-gradient(circle at 90% 12%, rgba(4, 138, 90, 0.12), transparent 20rem),
    linear-gradient(180deg, #ffffff, #eef6ff);
}

.auth-shell {
  width: min(1060px, 100%);
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  overflow: hidden;
  border: 1px solid #d8e8f8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(7, 26, 54, 0.14);
}

.auth-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.auth-copy {
  margin: 48px 0 24px;
}

.auth-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.auth-copy p,
.auth-switch {
  color: #52657a;
  line-height: 1.6;
}

.sample-logins {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.sample-logins button {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #d8e8f8;
  border-radius: 8px;
  text-align: left;
  background: #f8fbff;
}

.sample-logins span,
.sample-logins b,
.sample-logins small {
  display: block;
}

.sample-logins span {
  color: #075bd8;
  margin-bottom: 10px;
}

.sample-logins small {
  margin-top: 4px;
  color: #52657a;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #30445d;
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  padding: 0 13px;
  color: #071a36;
  background: #fff;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #a31313;
  font-size: 13px;
  line-height: 1.45;
}

.form-message:empty { display: none; }

.form-message[data-tone] {
  min-height: 0;
  padding: 9px 11px;
  border: 1px solid #e7a6a6;
  border-radius: 7px;
  background: #fff5f5;
  font-weight: 700;
}

.form-message[data-tone="success"] {
  border-color: #9bd9bd;
  color: #048a5a;
  background: #f0fff7;
}

.form-message[data-tone="info"] {
  border-color: #a9c8f3;
  color: #075bd8;
  background: #f1f7ff;
}

.form-message[data-tone="warning"] {
  border-color: #ebcf8a;
  color: #7a5100;
  background: #fffaf0;
}

#walletMessage {
  min-height: 22px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff6f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

#walletMessage:empty {
  display: none;
}

#walletMessage[data-tone="info"] {
  color: #075bd8;
  background: #eef5ff;
}

#walletMessage[data-tone="success"] {
  color: #087443;
  background: #ecfbf4;
}

.field-hint {
  display: block;
  margin-top: -8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.auth-form .solid-button {
  width: 100%;
  min-height: 46px;
}

.auth-switch {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
}

.auth-switch a {
  color: #075bd8;
  font-weight: 800;
}

.auth-visual {
  min-height: 100%;
  display: grid;
  place-items: end start;
  padding: 40px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 91, 216, 0.92), rgba(2, 43, 99, 0.95)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 22px);
}

.auth-visual div {
  max-width: 430px;
}

.auth-visual span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #075bd8;
  background: #fff;
}

.auth-visual h2 {
  margin: 22px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.auth-visual p {
  color: #dbeaff;
  line-height: 1.7;
}

.wallet-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.wallet-card,
.wallet-history {
  min-width: 0;
}

.wallet-kicker {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wallet-icon {
  color: var(--primary);
  font-size: 25px;
}

.wallet-balance {
  display: grid;
  gap: 5px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #e7def8;
  border-radius: 7px;
  background: #f7f3ff;
}

.wallet-balance > div {
  display: grid;
  gap: 5px;
}

.wallet-balance small,
.wallet-balance span,
.wallet-note {
  color: var(--muted);
  font-size: 10px;
}

.wallet-balance strong {
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -0.03em;
}

.wallet-topup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 9px;
  align-items: end;
}

.wallet-topup label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.wallet-topup input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.wallet-topup label small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.35; }

.wallet-topup .solid-button {
  min-height: 36px;
  white-space: nowrap;
}

.wallet-funding-box {
  display: grid;
  gap: 13px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d5e2f5;
  border-radius: 8px;
  background: linear-gradient(145deg, #f7fbff, #eef5ff);
}

.wallet-funding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wallet-funding-head h3 {
  margin: 4px 0;
  color: var(--ink);
  font-size: 15px;
}

.wallet-funding-head p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.wallet-funding-head > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #087443;
  background: #e5f8ed;
  font-size: 17px;
}

.wallet-note {
  display: block;
  margin-top: 10px;
  line-height: 1.4;
}

.wallet-transactions {
  display: grid;
  gap: 0;
}

.wallet-transaction {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.wallet-transaction:last-child {
  border-bottom: 0;
}

.wallet-transaction > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
}

.wallet-transaction > span.topup {
  color: #087443;
  background: #e8f8ef;
}

.wallet-transaction > span.charge {
  color: #b42318;
  background: #fff0ee;
}

.wallet-transaction strong,
.wallet-transaction small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.wallet-transaction small {
  margin-top: 3px;
  color: var(--muted);
}

.wallet-transaction b {
  font-size: 10px;
  white-space: nowrap;
}

.wallet-transaction b.topup {
  color: #087443;
}

.wallet-transaction b.charge {
  color: #b42318;
}

@media (max-width: 1000px) {
  .wallet-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wallet-topup {
    grid-template-columns: 1fr;
  }

  .wallet-funding-box {
    padding: 12px;
  }

  .wallet-topup .solid-button {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 280px;
    order: -1;
  }
}

@media (max-width: 560px) {
  .auth-page {
    padding: 14px;
  }

  .auth-panel,
  .auth-visual {
    padding: 24px;
  }

  .sample-logins {
    grid-template-columns: 1fr;
  }
}

/* Auth screens: calm, task-first forms with a shared workspace story. */
.auth-page {
  padding: 24px;
  background: #f3f7fc;
}

.auth-shell {
  width: min(1120px, 100%);
  min-height: 680px;
  border-color: #cbd9e9;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(16, 42, 75, .13);
}

.auth-panel {
  min-width: 0;
  padding: 42px clamp(26px, 4vw, 52px);
}

.auth-panel .wordmark {
  align-items: flex-start;
  gap: 11px;
  color: #13233a;
}

.auth-panel .wordmark strong,
.auth-panel .wordmark small {
  display: block;
}

.auth-panel .wordmark strong {
  line-height: 1.15;
}

.auth-panel .wordmark small {
  margin-top: 3px;
  color: #718096;
  font-size: 10px;
  font-weight: 500;
}

.auth-copy {
  max-width: 500px;
  margin: 52px 0 26px;
}

.auth-copy .section-kicker {
  color: #075fc4;
  font-size: 10px;
  letter-spacing: .11em;
}

.auth-copy h1 {
  margin: 12px 0 11px;
  color: #12223a;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -.035em;
}

.auth-copy p {
  max-width: 460px;
  margin: 0;
  color: #63758b;
  font-size: 14px;
  line-height: 1.65;
}

.auth-section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #1c2f49;
  font-size: 11px;
  font-weight: 800;
}

.auth-section-label small {
  color: #8492a5;
  font-size: 10px;
  font-weight: 500;
}

.sample-logins {
  gap: 10px;
  margin-bottom: 22px;
}

.sample-logins button {
  min-height: 84px;
  border-color: #d6e2f0;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.sample-logins button:hover,
.sample-logins button:focus-visible {
  border-color: #77a9e5;
  background: #f0f6ff;
  outline: 0;
  transform: translateY(-1px);
}

.sample-logins button:focus-visible,
.auth-input-action:focus-visible,
.auth-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(7, 95, 196, .18);
}

.auth-form {
  gap: 15px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-form label {
  gap: 7px;
  color: #273b55;
  font-size: 11px;
  letter-spacing: .01em;
}

.auth-form input,
.auth-form select {
  min-height: 46px;
  border-color: #cbd9e9;
  border-radius: 7px;
  color: #14263e;
  background: #fff;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: #1670d1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7, 95, 196, .12);
}

.auth-input-wrap {
  position: relative;
  display: block;
}

.auth-input-wrap input {
  padding-right: 44px;
}

.auth-input-action {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  color: #63758b;
  background: transparent;
  cursor: pointer;
}

.auth-input-action:hover {
  color: #075fc4;
  background: #eef5ff;
}

.auth-input-action .material-symbols-outlined {
  font-size: 18px;
}

.auth-form-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -4px;
  color: #718096;
  font-size: 10px;
  line-height: 1.45;
}

.auth-form-note .material-symbols-outlined {
  color: #087443;
  font-size: 15px;
}

.auth-submit {
  min-height: 48px;
  margin-top: 2px;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(7, 95, 196, .16);
}

#signupForm[hidden],
#signupOtpStage[hidden] { display: none !important; }

.signup-otp-card {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #d6e1ef;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f6faff 100%);
  box-shadow: 0 14px 32px rgba(20, 44, 79, .07);
}

.signup-otp-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #bfe8d1;
  border-radius: 12px;
  color: #087a52;
  background: #edfbf3;
  font-size: 22px;
}

.signup-otp-card .section-kicker { margin: 0; }
.signup-otp-card h2 { margin: -8px 0 0; color: #14263e; font-size: 23px; letter-spacing: -.025em; }
.signup-otp-card > p { margin: 0; color: #5b6c83; font-size: 13px; line-height: 1.6; }
.signup-otp-card > p strong { color: #243b58; overflow-wrap: anywhere; }
.signup-otp-form { gap: 12px; margin-top: 4px; }
.signup-otp-form input { min-height: 54px; font-size: 22px; font-weight: 800; letter-spacing: .32em; text-align: center; }
.signup-otp-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 3px; }
.signup-otp-actions button { min-height: 38px; }
.signup-otp-actions .text-button { padding-inline: 5px; color: #536b88; font-size: 12px; }
@media (max-width: 520px) {
  .signup-otp-card { padding: 19px; }
  .signup-otp-actions { align-items: stretch; flex-direction: column; }
  .signup-otp-actions button { width: 100%; }
}

.auth-switch {
  font-size: 12px;
}

.auth-switch + .auth-switch {
  margin-top: 8px;
  padding-top: 0;
}

.auth-visual {
  min-width: 0;
  padding: clamp(34px, 5vw, 62px);
  background: #075fc4;
}

.auth-visual-content {
  max-width: 450px;
}

.auth-visual .auth-visual-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 12px;
  color: #075fc4;
  background: #fff;
  font-size: 26px;
}

.auth-visual .auth-visual-kicker {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 12px;
  border-radius: 0;
  color: #b9dcff;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.auth-visual h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.035em;
}

.auth-visual p {
  max-width: 420px;
  margin: 0;
  color: #dbeaff;
  font-size: 13px;
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 11px;
  margin: 28px 0 0;
  padding: 0;
  color: #fff;
  list-style: none;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
}

.auth-visual .auth-benefits li > span,
.auth-visual .auth-visual-footer > span {
  display: inline-grid;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  color: #b8f0d1;
  background: transparent;
  font-size: 17px;
}

.auth-visual-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .24);
  color: #cfe5ff;
  font-size: 11px;
}

@media (max-width: 820px) {
  .auth-shell {
    min-height: 0;
  }

  .auth-panel {
    order: -1;
  }

  .auth-visual {
    min-height: 350px;
    order: 0;
  }
}

@media (max-width: 560px) {
  .auth-page {
    padding: 10px;
  }

  .auth-panel,
  .auth-visual {
    padding: 26px 20px;
  }

  .auth-copy {
    margin-top: 38px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 320px;
  }

  .auth-visual h2 {
    font-size: 31px;
  }

  .auth-visual-footer {
    margin-top: 28px;
  }
}

/* Overview metrics finish with a compact mobile treatment after legacy page rules. */
@media (max-width: 620px) {
  #overview .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  #overview .metric-card { min-height: 118px; padding: 13px; }
  #overview .metric-card b { margin: 14px 0 8px; font-size: 25px; }
  #overview .metric-card-label { font-size: 10px; }
  #overview .metric-card small { font-size: 9px; }
  #overview .metric-card-icon { width: 30px; height: 30px; font-size: 16px; }
  #overview .overview-date-tools { width: 100%; align-items: stretch; }
  #overview .overview-date-tools > * { flex: 1; }
  #overview .live-date { justify-content: center; }
}

/* Final Stitch template layer: deliberately last so legacy rules cannot override it. */
.app-page { --bg:#faf8ff; --surface:#fff; --surface-2:#f2f3ff; --line:#c2c6d6; --line-strong:#aeb5cb; --text:#131b2e; --muted:#687083; --primary:#0058be; --primary-dark:#003c82; --primary-soft:#e8edff; --green:#006c49; --green-soft:#d9f9e9; font-family:Geist,Inter,system-ui,sans-serif; background:#faf8ff; }
@media (min-width:901px) {
  .app-page { --sidebar:306px; }
  .app-page .app-sidebar { width:306px; background:#fff; color:#131b2e; border-right:1px solid #c2c6d6; box-shadow:none; }
  .app-page .tenant { min-height:68px; padding:15px 20px; border-bottom:1px solid #c2c6d6; }
  .app-page .tenant > div:last-child { display:block!important; }
  .app-page .tenant-logo { width:29px; height:29px; border-radius:7px; }
  .app-page .tenant strong { color:#131b2e; font-size:14px; }
  .app-page .tenant span { color:#687083; font-size:9px; }
  .app-page .tenant-switcher { display:none!important; }
  .app-page .side-menu { gap:2px; padding:10px 10px 16px; }
  .app-page .side-label { margin:11px 12px 4px; color:#8890a1; font-size:9px; letter-spacing:.08em; }
  .app-page .side-menu button, .app-page .side-bottom button { width:100%; min-height:42px; justify-content:flex-start; gap:13px; padding:0 13px; border:0; border-radius:6px; color:#465063; font-size:13px; font-weight:500; }
  .app-page .side-menu button .material-symbols-outlined, .app-page .side-bottom button .material-symbols-outlined { font-size:19px; color:#586278; }
  .app-page .side-menu button:hover, .app-page .side-bottom button:hover { color:#131b2e; background:#f2f3ff; }
  .app-page .side-menu button.active, .app-page .side-bottom button.active { color:#004da8; background:#e8edff; border:0; box-shadow:none; }
  .app-page .side-menu button:hover::after, .app-page .side-bottom button:hover::after { display:none; }
  .app-page .app-main { margin-left:306px; padding:0 28px 40px; background:#faf8ff; }
  .app-page .mobile-appbar { position:sticky; top:0; z-index:20; display:flex; min-height:68px; margin:0 -28px 28px; padding:0 28px; border-bottom:1px solid #c2c6d6; background:rgba(250,248,255,.95); backdrop-filter:blur(12px); }
  .app-page .mobile-appbar .icon-button { display:none; }
  .app-page .mobile-appbar strong { color:#131b2e; font-size:14px; }
  .app-page .mobile-appbar .small-link { margin-left:auto; color:#0058be; font-size:11px; font-weight:600; }
  .app-page .app-view { max-width:1200px; }
  .app-page .view-head, .app-page #overview .view-head, .app-page #developers .view-head { padding:0 0 18px; border-bottom:1px solid #c2c6d6; background:transparent; box-shadow:none; }
  .app-page .view-head h1 { font-size:27px; letter-spacing:-.03em; }
  .app-page .view-head p { font-size:12px; }
  .app-page .panel, .app-page .metric-card, .app-page .table-shell, .app-page .table-wrap { border:1px solid #c2c6d6; border-radius:6px; background:#fff; box-shadow:0 1px 2px rgba(19,27,46,.03); }
  .app-page .metric-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
  .app-page .metric-card { min-height:116px; padding:15px; }
  .app-page .metric-card b { color:#131b2e; font-size:30px; }
  .app-page .metric-card i { width:29px; height:29px; color:#0058be; background:#e8edff; }
  .app-page .overview-grid { grid-template-columns:minmax(0,1fr) 318px; gap:14px; }
  .app-page .solid-button { background:#0058be; border-radius:4px; box-shadow:none; }
  .app-page .outline-button, .app-page .soft-button { border-radius:4px; color:#0058be; border-color:#aeb5cb; background:#fff; }
  .app-page input, .app-page select, .app-page textarea, .app-page .search-box { border-radius:4px; border-color:#aeb5cb; background:#fff; }
  .app-page table th { color:#596276; background:#f2f3ff; }
  .app-page table td { border-top-color:#dfe2ec; }
}
.platform-page { background:#faf8ff; color:#131b2e; font-family:Geist,Inter,system-ui,sans-serif; }
.platform-page .platform-sidebar { background:#fff; color:#131b2e; border-right:1px solid #c2c6d6; padding:14px 10px 12px; }
.platform-page .platform-nav { gap:2px; margin-top:16px; }
.platform-page .platform-nav button, .platform-page .platform-sidebar-bottom button, .platform-page .platform-site-link { min-height:42px; border-radius:6px; color:#596276; font-size:13px; }
.platform-page .platform-nav button:hover, .platform-page .platform-nav button.active, .platform-page .platform-sidebar-bottom button:hover, .platform-page .platform-site-link:hover { color:#0058be; background:#e8edff; }
.platform-page .platform-nav button.active { box-shadow:inset 3px 0 #0058be; }
.platform-page .platform-main { background:#faf8ff; }
.platform-page .platform-panel, .platform-page .provider-card, .platform-page .platform-metric { border-color:#c2c6d6; border-radius:6px; background:#fff; box-shadow:0 1px 2px rgba(19,27,46,.03); }
.platform-page .solid-button { background:#0058be; border-radius:4px; box-shadow:none; }
.platform-page .outline-button { border-radius:4px; color:#0058be; border-color:#aeb5cb; background:#fff; }
.platform-page input, .platform-page select { border-radius:4px; border-color:#aeb5cb; background:#fff; }

/* Reference dashboard top bar and KPI rhythm */
.app-page .topbar-divider { margin-left: 10px; color: #a8b0bf; font-size: 20px; }
.app-page .topbar-context { margin-left: 10px; color: #4b5669; font-size: 12px; line-height: 1.2; }
.app-page .topbar-live { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-left: 18px; padding: 0 14px; border: 1px solid #9ce2c5; border-radius: 14px; color: #006c49; background: #d9f9e9; font-size: 11px; line-height: 1.2; }
.app-page .topbar-live i, .app-page .topbar-notification i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #006c49; }
.app-page .topbar-search { display: flex; align-items: center; gap: 8px; min-width: 260px; height: 38px; margin-left: auto; padding: 0 8px; border: 1px solid #aeb5cb; border-radius: 4px; background: #fff; color: #687083; }
.app-page .topbar-search input { min-width: 0; height: 32px; flex: 1; border: 0; padding: 0; outline: 0; background: transparent; font-size: 12px; }
.app-page .topbar-search input:focus { box-shadow: none; }
.app-page .topbar-search .material-symbols-outlined { font-size: 18px; }
.app-page .topbar-search kbd { padding: 3px 5px; border: 1px solid #c2c6d6; border-radius: 3px; color: #687083; background: #f2f3ff; font-size: 10px; }
.app-page .topbar-date { display: inline-flex; align-items: center; gap: 6px; height: 38px; margin-left: 10px; padding: 0 9px; border: 1px solid #aeb5cb; border-radius: 4px; color: #596276; background: #fff; font-size: 11px; white-space: nowrap; }
.app-page .topbar-date b { display: block; color: #131b2e; font-size: 10px; font-weight: 600; }
.app-page .topbar-date .material-symbols-outlined { font-size: 17px; }
.app-page .topbar-export { height: 38px; min-height: 38px; margin-left: 10px; padding: 0 10px; }
.app-page .topbar-notification { position: relative; width: 38px; height: 38px; margin-left: 8px; color: #131b2e; }
.app-page .topbar-notification i { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: #b90538; }
.app-page .topbar-create { height: 38px; min-height: 38px; margin-left: 8px; padding: 0 14px; }
.app-page .topbar-page-control { display: none; align-items: center; gap: 6px; height: 38px; margin-left: 10px; padding: 0 8px; border: 1px solid #aeb5cb; border-radius: 4px; color: #687083; background: #fff; }
.app-page.page-contacts .topbar-page-control { display: inline-flex; }
.app-page .topbar-page-control .material-symbols-outlined { font-size: 17px; }
.app-page .topbar-page-control select { min-height: 30px; border: 0; padding: 0 22px 0 0; outline: 0; background: transparent; color: #131b2e; font-size: 11px; }

@media (min-width: 1100px) {
  .app-page .metric-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 1099px) {
  .app-page .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-page .topbar-context, .app-page .topbar-live { display: none; }
  .app-page .topbar-search { min-width: 190px; }
}
@media (max-width: 700px) {
  .app-page .topbar-divider, .app-page .topbar-context, .app-page .topbar-live, .app-page .topbar-search, .app-page .topbar-date, .app-page .topbar-export, .app-page .topbar-notification { display: none; }
  .app-page.page-contacts .topbar-page-control { display: inline-flex; margin-left: auto; height: 32px; }
  .app-page .topbar-page-control select { max-width: 150px; }
  .app-page .topbar-create { margin-left: auto; }
}

/* Compact glossy finish */
.app-page .app-main { background: linear-gradient(135deg, #faf8ff 0%, #f5f7ff 58%, #eef8f7 100%); }
.app-page .mobile-appbar { min-height: 60px; margin-bottom: 20px; }
.app-page .view-head { margin-bottom: 13px; }
.app-page .view-head h1 { font-size: 24px; }
.app-page .view-head p { margin-top: 3px; }
.app-page .metric-grid { gap: 9px; margin-bottom: 12px; }
.app-page .metric-card {
  min-height: 96px;
  padding: 12px;
  border-color: rgba(174,181,203,.78);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,247,255,.84));
  box-shadow: 0 5px 16px rgba(39,57,90,.07), inset 0 1px 0 rgba(255,255,255,.95);
}
.app-page .metric-card b { margin: 8px 0 3px; font-size: 27px; }
.app-page .metric-card small { font-size: 9px; }
.app-page .metric-card i { width: 25px; height: 25px; font-size: 15px; }
.app-page .panel,
.app-page .table-shell,
.app-page .table-wrap {
  padding: 13px;
  border-color: rgba(174,181,203,.8);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,248,255,.88));
  box-shadow: 0 7px 18px rgba(39,57,90,.065), inset 0 1px 0 rgba(255,255,255,.95);
}
.app-page .panel-head { margin-bottom: 9px; }
.app-page .panel-head h2, .app-page .panel h2 { font-size: 15px; }
.app-page .panel-head p { font-size: 10px; }
.app-page .overview-grid { gap: 10px; }
.app-page .overview-detail-grid { gap: 10px; }
.app-page .chart-panel { min-height: 230px; }
.app-page .quick-actions { gap: 6px; }
.app-page .quick-actions button { min-height: 33px; padding-inline: 10px; font-size: 10px; }
.app-page .outline-button, .app-page .solid-button, .app-page .soft-button { min-height: 34px; padding-inline: 11px; font-size: 11px; }
.app-page .topbar-live { min-height: 38px; padding-inline: 10px; border-radius: 10px; }
.app-page .topbar-search, .app-page .topbar-date, .app-page .topbar-export, .app-page .topbar-notification, .app-page .topbar-create { height: 34px; min-height: 34px; }
.app-page .topbar-create { padding-inline: 11px; }
.app-page table th, .app-page table td { padding: 9px 10px; }
.app-page .side-menu button, .app-page .side-bottom button { min-height: 38px; }
.app-page .side-menu { gap: 1px; padding-top: 7px; }

@media (max-width: 700px) {
  .app-page .app-main { background: #f6f7fb; }
  .app-page .metric-grid { gap: 7px; }
  .app-page .metric-card { min-height: 92px; padding: 10px; }
  .app-page .metric-card b { font-size: 23px; }
}

/* Events workspace: compact operations layout with a deliberate empty state. */
.app-page #events .view-head {
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.app-page #events .view-head h1 { font-size: 25px; }
.app-page #events .view-head p { max-width: 680px; }
.app-page #events .events-mysql-host { min-width: 0; }
.app-page #events .events-workspace {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  align-items: start;
  gap: 12px;
  margin-top: 0;
}
.app-page #events .events-table-panel,
.app-page #events .event-mysql-side {
  min-width: 0;
  border: 1px solid #c2c6d6;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 16px rgba(39, 57, 90, .055), inset 0 1px 0 rgba(255, 255, 255, .96);
}
.app-page #events .events-table-panel { padding: 14px; }
.app-page #events .event-mysql-side { padding: 14px; }
.app-page #events .event-panel-toolbar { margin-bottom: 10px; }
.app-page #events .events-table-panel > .event-panel-toolbar:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr);
  align-items: start;
  gap: 14px;
}
.app-page #events .event-panel-toolbar h2 { margin: 2px 0 3px; font-size: 17px; }
.app-page #events .event-panel-toolbar h3 { font-size: 13px; }
.app-page #events .event-panel-toolbar p { max-width: 500px; line-height: 1.35; }
.app-page #events .event-selector {
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  margin: 0;
  padding: 8px 9px;
  border-color: #c2c6d6;
  border-radius: 5px;
  background: #f2f3ff;
}
.app-page #events .event-selector select {
  min-height: 32px;
  border: 1px solid #aeb5cb;
  border-radius: 4px;
  padding-left: 8px;
  font-size: 10px;
  background-image: none;
  appearance: auto;
}
.app-page #events .channel-report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 12px;
}
.app-page #events .channel-report-grid > div {
  min-height: 68px;
  padding: 9px;
  border-color: #d4d8e5;
  border-radius: 5px;
  background: #f8f9ff;
}
.app-page #events .channel-report-grid b { font-size: 17px; }
.app-page #events .event-tabs {
  margin: 0 0 11px;
  padding-bottom: 6px;
}
.app-page #events .event-tabs button { min-height: 29px; }
.app-page #events .event-tab-panel { min-height: 0; }
.app-page #events .event-tab-panel[data-mysql-panel="registrations"] {
  min-height: 180px;
}
.app-page #events .event-attendee-pagination { margin-top: 8px; padding-top: 9px; }
.app-page #events .event-attendee-row {
  min-height: 49px;
  padding: 7px 0;
  border-top: 1px solid #e1e4ed;
}
.app-page #events .empty-state {
  display: grid;
  place-items: center;
  min-height: 112px;
  margin: 0;
  padding: 18px;
  border: 1px dashed #b9c0d2;
  border-radius: 5px;
  color: #687083;
  background: #f6f7ff;
  text-align: center;
  font-size: 11px;
}
.app-page #events .event-mysql-side .panel-head { margin-bottom: 12px; }
.app-page #events .event-mysql-side .panel-head h2 { font-size: 15px; }
.app-page #events .event-access-summary {
  padding: 11px;
  border-color: #d4d8e5;
  border-radius: 5px;
  background: #f8f9ff;
}
.app-page #events .event-access-summary h3 { margin: 8px 0 3px; font-size: 14px; }
.app-page #events .event-access-summary p { margin-bottom: 10px; }
.app-page #events .event-readiness-list { margin-top: 11px; }
.app-page #events .event-readiness-list > div { padding: 9px 0; }
.app-page #events .event-side-note { margin-top: 10px; }
.app-page #events .event-checkin-entry {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid #d4d8e5;
  border-radius: 5px;
  background: #f8f9ff;
}
.app-page #events .event-checkin-entry label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  color: var(--primary);
}
.app-page #events .event-checkin-entry input {
  width: 100%;
  min-height: 31px;
  border: 1px solid #aeb5cb;
  border-radius: 4px;
  padding: 0 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 10px;
}
.app-page #events .event-checkin-entry button { min-height: 31px; padding: 0 9px; font-size: 10px; }
.app-page #events .event-checkin-entry .event-scan-button { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); background: #fff; }
.app-page #events .event-checkin-entry .event-scan-button .material-symbols-outlined { font-size: 16px; }
.app-page #events .event-attendee-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto minmax(96px, auto);
  align-items: center;
  gap: 8px;
}
.app-page #events .event-attendee-row > span:nth-child(2) { min-width: 0; }
.app-page #events .event-attendee-row > span:nth-child(2) b,
.app-page #events .event-attendee-row > span:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-page #events .event-attendee-row > span:nth-child(2) b { font-size: 11px; }
.app-page #events .event-attendee-row > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.app-page #events .event-row-actions { display: inline-flex; justify-content: flex-end; gap: 4px; }
.app-page #events .event-row-actions a { text-decoration: none; }
.app-page #events .module-action-message[data-tone="error"] { color: #b42318; }
.app-page #events .module-action-message[data-tone="success"] { color: #087443; }

.event-qr-scanner-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(20, 13, 42, .68); }
.event-qr-scanner-dialog { width: min(430px, 100%); padding: 20px; border: 1px solid #c8d2e5; border-radius: 10px; background: #fff; box-shadow: 0 22px 60px rgba(13, 31, 70, .24); }
.event-qr-scanner-dialog .panel-head { align-items: flex-start; margin-bottom: 14px; }
.event-qr-scanner-dialog h2 { margin: 5px 0 0; font-size: 17px; }
.event-qr-scanner-dialog p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.event-qr-scanner-frame { position: relative; display: grid; place-items: center; min-height: 260px; overflow: hidden; border-radius: 8px; background: #111827; }
.event-qr-scanner-frame video { display: block; width: 100%; min-height: 260px; max-height: 56vh; object-fit: cover; }
.event-qr-scanner-guide { position: absolute; width: min(68vw, 220px); aspect-ratio: 1; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .2); pointer-events: none; }
.event-qr-scanner-status { min-height: 17px; margin: 11px 0; text-align: center; }
.event-qr-scanner-status[data-tone="error"] { color: #b42318; }
.event-qr-scanner-close { width: 100%; }

@media (max-width: 1000px) {
  .app-page #events .events-workspace { grid-template-columns: 1fr; }
  .app-page #events .event-mysql-side { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
  .app-page #events .event-mysql-side .panel-head { grid-column: 1 / -1; margin-bottom: 0; }
  .app-page #events .event-readiness-list { margin-top: 0; }
}
@media (max-width: 620px) {
  .app-page #events .events-table-panel > .event-panel-toolbar:first-child { grid-template-columns: 1fr; gap: 9px; }
  .app-page #events .channel-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page #events .event-mysql-side { display: block; }
  .app-page #events .event-mysql-side .panel-head { margin-bottom: 10px; }
  .app-page #events .event-checkin-entry { align-items: stretch; flex-direction: column; }
  .app-page #events .event-checkin-entry button { width: 100%; }
  .app-page #events .event-attendee-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .app-page #events .event-attendee-row > .event-payment-status { grid-column: 2; justify-self: start; }
  .app-page #events .event-row-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .event-qr-scanner-modal { padding: 12px; }
  .event-qr-scanner-dialog { padding: 16px; }
  .event-qr-scanner-frame, .event-qr-scanner-frame video { min-height: 230px; }
}

/* Standard product sidebar: brand, workspace identity, then navigation. */
@media (min-width: 901px) {
  .app-page .app-sidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .app-page .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 67px;
    padding: 13px 20px;
    border-bottom: 1px solid #c2c6d6;
  }
  .app-page .sidebar-brand-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #fff;
    background: #1465d8;
    font-size: 17px;
    font-weight: 800;
  }
  .app-page .sidebar-brand strong,
  .app-page .sidebar-brand small { display: block; }
  .app-page .sidebar-brand strong { color: #131b2e; font-size: 14px; line-height: 1.1; letter-spacing: -.02em; }
  .app-page .sidebar-brand strong span { color: #1465d8; font-weight: 500; }
  .app-page .sidebar-brand small { margin-top: 3px; color: #687083; font-size: 9px; }
  .app-page .tenant {
    min-height: 82px;
    padding: 12px 20px 13px;
    gap: 10px;
    border-bottom: 1px solid #c2c6d6;
  }
  .app-page .tenant-logo { flex: 0 0 29px; }
  .app-page .tenant-details { min-width: 0; flex: 1; }
  .app-page .tenant strong { display: block; overflow: hidden; color: #131b2e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .app-page .tenant span { display: block; color: #687083; font-size: 9px; line-height: 1.25; }
  .app-page .side-menu { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 11px 10px 16px; scrollbar-width: thin; scrollbar-color: #c2c6d6 transparent; }
  .app-page .side-label { margin: 12px 12px 4px; }
  .app-page .side-menu button { min-height: 38px; }
}

@media (max-width: 900px) {
  .app-page .sidebar-brand { display: none; }
  .app-page .tenant-details { min-width: 0; }
}

/* Company navigation and channel workspace controls. */
@media (min-width: 901px) {
  .app-page .app-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-right-color: #d6e0ec;
  }
  .app-page .tenant {
    min-height: 86px;
    padding: 15px 18px;
    background: #ffffff;
    border-bottom-color: #dce5ef;
  }
  .app-page .tenant-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(0, 88, 190, .14);
  }
  .app-page .side-menu { padding: 14px 12px 18px; }
  .app-page .side-label {
    margin: 15px 10px 6px;
    color: #8291a4;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .app-page .side-menu > button,
  .app-page .side-nav-disclosure > summary {
    min-height: 40px;
    gap: 10px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    color: #52637a;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
  }
  .app-page .side-menu > button:hover,
  .app-page .side-nav-disclosure > summary:hover {
    color: #075fc3;
    background: #edf4ff;
  }
  .app-page .side-menu > button.active,
  .app-page .side-nav-disclosure > summary.active {
    color: #075fc3;
    background: #e6f0ff;
    box-shadow: inset 3px 0 #075fc3;
  }
  .app-page .side-nav-disclosure > summary { list-style: none; display: flex; align-items: center; }
  .app-page .side-nav-disclosure > summary::-webkit-details-marker { display: none; }
  .app-page .side-nav-disclosure > summary .side-disclosure-icon { margin-left: auto; font-size: 16px; transition: transform 160ms ease; }
  .app-page .side-nav-disclosure[open] > summary .side-disclosure-icon { transform: rotate(180deg); }
  .app-page .side-submenu { margin: 4px 0 5px 20px; padding-left: 10px; border-left: 1px solid #d8e4f1; }
  .app-page .side-submenu button { min-height: 32px; border-radius: 6px; color: #6c7b8e; font-size: 11px; }
  .app-page .side-submenu button.active { color: #075fc3; background: #edf4ff; }
}

.app-page .channel-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 3px;
  border: 1px solid #cfd9e7;
  border-radius: 8px;
  background: #edf3fb;
}
.app-page .channel-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #65758a;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.app-page .channel-view-toggle button.active {
  color: #075fc3;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(34, 63, 98, .12);
}
.app-page .channel-view-toggle .material-symbols-outlined { font-size: 16px; }
.app-page #email .module-page-content[hidden],
.app-page #email .campaign-report-workspace[hidden] { display: none; }
.app-page #email .campaign-report-workspace { margin-top: 0; }
.app-page .campaign-live-badge.is-warning { color: #9a5b00; border-color: #f0cf91; background: #fff7e5; }

@media (max-width: 900px) {
  .app-page .channel-view-toggle { width: 100%; }
  .app-page .channel-view-toggle button { flex: 1; justify-content: center; }
}

/* Quiet top bar: keep navigation context, remove dashboard controls from the chrome. */
@media (min-width: 901px) {
  .app-page .mobile-appbar {
    min-height: 56px;
    margin-bottom: 18px;
    padding: 0 22px;
    border-bottom: 1px solid #c2c6d6;
    background: #faf8ff;
  }
  .app-page .mobile-appbar .topbar-divider,
  .app-page .mobile-appbar .topbar-context,
  .app-page .mobile-appbar .topbar-live,
  .app-page .mobile-appbar .topbar-search,
  .app-page .mobile-appbar .topbar-date,
  .app-page .mobile-appbar .topbar-export,
  .app-page .mobile-appbar .topbar-notification,
  .app-page .mobile-appbar .topbar-create { display: none !important; }
  .app-page .mobile-appbar > #mobileTitle { margin-left: 0; color: #131b2e; font-size: 14px; font-weight: 700; }
  .app-page .app-main { padding-left: 22px; padding-right: 22px; }
  .app-page .view-head,
  .app-page #overview .view-head,
  .app-page #developers .view-head {
    min-height: 0;
    margin: 0 0 16px;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 1px solid #c2c6d6;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .app-page .view-head h1 { margin: 0 0 4px; line-height: 1.15; }
  .app-page .view-head p { margin: 0; }
}

/* Mobile builder chrome: one page action, compact rule rows, no duplicate top action. */
.app-page .topbar-create { display: none !important; }
@media (max-width: 900px) {
  .app-page .mobile-appbar {
    min-height: 54px;
    margin-bottom: 14px;
    padding: 0 16px;
    border-bottom: 1px solid #c2c6d6;
    background: #faf8ff;
  }
  .app-page .mobile-appbar > #mobileTitle { color: #131b2e; font-size: 14px; }
  .app-page .view-head { gap: 10px; }
  .app-page .view-head h1 { font-size: 24px; }
  .app-page .view-head p { font-size: 11px; line-height: 1.35; }
}

/* Campaign studio polish: clearer hierarchy, useful empty state, and calmer form rhythm. */
#campaigns .view-head {
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid #d5dbea;
}
#campaigns .view-head h1 { font-size: 30px; letter-spacing: -0.04em; }
#campaigns .view-head p { max-width: 560px; }
#campaigns .view-head > .solid-button { min-height: 40px; padding-inline: 17px; border-radius: 7px; box-shadow: 0 8px 16px rgba(16, 91, 190, .15); }
.campaign-workspace { grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 18px; align-items: start; }
.campaign-creator,
.campaign-list-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd3e5;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 12px 28px rgba(40, 56, 90, .07);
}
.campaign-creator::before,
.campaign-list-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: #0b5fc4; }
.campaign-creator { padding: 20px; }
.campaign-list-panel { min-height: 365px; padding: 20px; }
.campaign-creator .panel-head,
.campaign-list-panel .panel-head { align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid #e0e5ef; }
.campaign-creator .panel-head h2,
.campaign-list-panel .panel-head h2 { margin-top: 4px; font-size: 18px; letter-spacing: -0.025em; }
.campaign-creator .panel-head p,
.campaign-list-panel .panel-head p { margin-top: 4px; line-height: 1.45; }
.campaign-creator .section-kicker,
.campaign-list-panel .section-kicker { display: block; color: #0b5fc4; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.campaign-live-badge { margin-top: 2px; padding: 7px 9px; border: 1px solid #c5ecd8; border-radius: 7px; background: #eefbf4; font-size: 10px; }
.campaign-channel-switcher { margin-top: 18px; }
.campaign-channel-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 5px; border: 1px solid #d9e2ef; border-radius: 10px; background: #f5f8fd; }
.campaign-channel-tabs [role="tab"] { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border: 1px solid transparent; border-radius: 7px; color: #52627a; background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.campaign-channel-tabs [role="tab"] .material-symbols-outlined { font-size: 18px; }
.campaign-channel-tabs [role="tab"]:hover { color: #075fc4; background: #fff; }
.campaign-channel-tabs [role="tab"][aria-selected="true"] { border-color: #bfd5f4; color: #075fc4; background: #fff; box-shadow: 0 2px 7px rgba(16, 52, 99, .09); }
.campaign-channel-tabs [role="tab"]:focus-visible { outline: 3px solid rgba(11, 95, 196, .22); outline-offset: 2px; }
.campaign-channel-panel { display: flex; align-items: baseline; gap: 8px; padding: 10px 3px 0; }
.campaign-channel-panel strong { flex: 0 0 auto; color: #182841; font-size: 11px; }
.campaign-channel-panel p { margin: 0; color: #6b7890; font-size: 10px; line-height: 1.5; }
.campaign-form-grid { gap: 14px; margin-top: 19px; }
.campaign-form-grid label,
.campaign-creator > form > label { gap: 6px; font-size: 10px; letter-spacing: .01em; }
.campaign-form-grid input,
.campaign-form-grid select,
.campaign-creator textarea { min-height: 41px; border-color: #c3ccdf; border-radius: 7px; padding-inline: 11px; background: #fff; }
.campaign-creator textarea { min-height: 132px; margin-top: 16px; padding: 11px; line-height: 1.55; }
.campaign-form-grid input:hover,
.campaign-form-grid select:hover,
.campaign-creator textarea:hover { border-color: #9daecc; }
.campaign-message-foot { margin-top: 7px; font-size: 10px; }
.campaign-review { position: sticky; bottom: 8px; z-index: 12; gap: 24px; margin-top: 17px; padding: 14px; border: 1px solid #dce3ef; border-radius: 8px; background: #f5f8fd; box-shadow: 0 8px 22px rgba(19, 34, 59, .12); }
.campaign-review strong { color: #0f1b32; font-size: 18px; }
.campaign-review .solid-button { min-height: 39px; padding-inline: 15px; border-radius: 7px; }
.campaign-count { min-width: 29px; height: 29px; border-radius: 8px; background: #e8f0ff; color: #0b5fc4; }
.campaign-empty { display: grid; justify-items: center; gap: 8px; margin-top: 22px; padding: 42px 18px; border: 1px dashed #c8d1e2; border-radius: 9px; background: rgba(255, 255, 255, .55); text-align: center; }
.campaign-empty > .material-symbols-outlined { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 3px; border-radius: 12px; color: #0b5fc4; background: #eaf2ff; font-size: 21px; }
.campaign-empty strong { color: #1a2740; font-size: 13px; }
.campaign-empty p { max-width: 190px; margin: 0; color: #738099; font-size: 10px; line-height: 1.45; }
.campaign-item { padding: 13px 0; }
.campaign-item-icon { width: 34px; height: 34px; border-radius: 8px; background: #eaf2ff; color: #0b5fc4; }
.campaign-item-title strong { font-size: 12px; }
.campaign-item-main p, .campaign-item-main small { font-size: 10px; }
@media (max-width: 620px) {
  #campaigns .view-head h1 { font-size: 25px; }
  .campaign-creator, .campaign-list-panel { padding: 15px; }
  .campaign-creator .panel-head, .campaign-list-panel .panel-head { gap: 10px; }
  .campaign-live-badge { padding: 6px 7px; font-size: 9px; }
  .campaign-channel-switcher { margin-top: 13px; }
  .campaign-channel-tabs { gap: 4px; padding: 4px; }
  .campaign-channel-tabs [role="tab"] { gap: 5px; min-height: 42px; font-size: 11px; }
  .campaign-channel-tabs [role="tab"] .material-symbols-outlined { font-size: 16px; }
  .campaign-channel-panel { display: block; padding-top: 9px; }
  .campaign-channel-panel p { margin-top: 3px; }
  .campaign-review { gap: 13px; }
}

.app-page .side-submenu { display: grid; gap: 2px; margin: 0 0 4px 18px; padding: 3px 0 5px 13px; border-left: 1px solid #d8deeb; }
.app-page .side-submenu button { min-height: 34px; padding-left: 10px; color: #68748a; font-size: 11px; }
.app-page .side-submenu button .material-symbols-outlined { font-size: 16px; }
.app-page .side-submenu button.active { color: #004da8; background: #edf2ff; }
.app-page .side-nav-disclosure { margin: 0; }
.app-page .side-nav-disclosure:not([open]) .side-submenu { display: none; }
.app-page .side-nav-disclosure[open] .side-submenu { display: grid; }
.app-page .side-nav-disclosure > summary { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 42px; padding: 0 13px; border-radius: 6px; color: #465063; cursor: pointer; font-size: 13px; font-weight: 500; list-style: none; }
.app-page .side-nav-disclosure > summary::-webkit-details-marker { display: none; }
.app-page .side-nav-disclosure > summary:hover { color: var(--text); background: #f2f3ff; }
.app-page .side-nav-disclosure > summary.active { color: #004da8; background: #e8edff; }
.app-page .side-nav-disclosure > summary > .material-symbols-outlined:first-child { color: #586278; font-size: 19px; }
.app-page .side-nav-disclosure > summary.active > .material-symbols-outlined:first-child { color: #0058be; }
.app-page .side-disclosure-icon { margin-left: auto; color: #7a8497; font-size: 18px; transition: transform 160ms ease; }
.app-page .side-nav-disclosure[open] .side-disclosure-icon { transform: rotate(180deg); }
.schedule-campaign-modal { gap: 18px; }
.schedule-campaign-modal .panel-head { margin-bottom: 0; }
.schedule-campaign-modal .panel-head h2 { margin-top: 5px; font-size: 18px; }
.schedule-campaign-modal .panel-head p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.schedule-campaign-modal form { gap: 14px; }
.schedule-campaign-modal form > label { color: var(--text); font-size: 11px; }
.schedule-campaign-modal input { width: 100%; }

/* Keep campaign section labels compact so the hierarchy stays clear on narrow screens. */
#campaigns .campaign-creator .section-kicker,
#campaigns .campaign-list-panel .section-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #d4e2f8;
  border-radius: 999px;
  background: #edf4ff;
  color: #0b5fc4;
  line-height: 1;
}
#campaigns .section-kicker .material-symbols-outlined { font-size: 15px; }
#campaigns .campaign-creator .panel-head,
#campaigns .campaign-list-panel .panel-head { min-height: 76px; }
#campaigns .campaign-creator .panel-head h2,
#campaigns .campaign-list-panel .panel-head h2 { margin-top: 8px; line-height: 1.15; }
#campaigns .campaign-creator .panel-head p,
#campaigns .campaign-list-panel .panel-head p { max-width: 420px; }
@media (max-width: 620px) {
  #campaigns .campaign-creator .panel-head,
  #campaigns .campaign-list-panel .panel-head { min-height: 0; }
}

/* Workspace settings */
.settings-view-head { align-items: center; }
.settings-view-head .section-kicker,
.settings-card .section-kicker { display: inline-flex; margin-bottom: 7px; color: #0b5fc4; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.settings-health-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 11px; border: 1px solid #c8d8f4; border-radius: 999px; color: #174b8c; background: #f1f6ff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.settings-health-pill .material-symbols-outlined { font-size: 15px; }
.settings-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 0 0 14px; padding: 4px; border: 1px solid #d9e1ef; border-radius: 8px; background: #eef3fb; }
.settings-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; color: #596a80; background: transparent; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; white-space: nowrap; }
.settings-tab:hover { color: #0a58b8; background: #e3edff; }
.settings-tab.active { color: #0758ba; background: #fff; box-shadow: 0 2px 8px rgba(26, 62, 111, .1); }
.settings-tab .material-symbols-outlined { font-size: 17px; }
.settings-global-message { min-height: 17px; margin: -3px 0 9px; }
.settings-panels { display: grid; gap: 14px; }
.settings-panel[hidden] { display: none; }
.settings-grid-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); gap: 14px; }
.settings-card { min-width: 0; padding: 18px; }
.settings-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid #e5ebf3; }
.settings-card-head h2 { margin: 0 0 5px; color: #172438; font-size: 17px; letter-spacing: -.02em; }
.settings-card-head p { max-width: 530px; margin: 0; color: #78879a; font-size: 10px; line-height: 1.5; }
.settings-card-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: #075fc3; background: #e9f1ff; font-size: 19px; }
.settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.settings-form label { display: grid; gap: 6px; color: #43536a; font-size: 10px; font-weight: 700; }
.settings-form input { width: 100%; min-height: 38px; border: 1px solid #c3d0e2; border-radius: 6px; padding: 0 10px; color: #172438; background: #fff; font: inherit; font-size: 11px; outline: none; }
.settings-form input:focus { border-color: #2d76d4; box-shadow: 0 0 0 3px rgba(45, 118, 212, .11); }
.settings-form input[readonly] { color: #7a8798; background: #f5f7fb; }
.settings-form-foot { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid #e5ebf3; }
.settings-form-foot .solid-button, .settings-form-foot .outline-button { min-height: 35px; }
.settings-health-list { display: grid; gap: 0; margin-bottom: 15px; border: 1px solid #e1e7f0; border-radius: 7px; overflow: hidden; }
.settings-health-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 11px; border-bottom: 1px solid #e8edf4; color: #53637a; font-size: 11px; }
.settings-health-list > div:last-child { border-bottom: 0; }
.settings-health-list b { color: #142033; font-size: 10px; }
.settings-health-list span { display: inline-flex; align-items: center; gap: 7px; }
.settings-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9aa9bc; }
.settings-dot.good { background: #0a8b62; box-shadow: 0 0 0 3px #dcf7eb; }
.settings-inline-link { display: inline-flex; align-items: center; gap: 6px; color: #075fc3; font-size: 11px; font-weight: 700; text-decoration: none; }
.settings-inline-link .material-symbols-outlined { font-size: 17px; }
.settings-channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.settings-channel-card { min-width: 0; padding: 13px; border: 1px solid #dbe3ef; border-radius: 7px; background: linear-gradient(145deg, #fff, #f7faff); }
.settings-channel-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.settings-channel-title > div { display: grid; min-width: 0; gap: 2px; flex: 1; }
.settings-channel-title b { color: #1b2a40; font-size: 12px; text-transform: capitalize; }
.settings-channel-title small { overflow: hidden; color: #7a899b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settings-channel-title .stage { flex: 0 0 auto; }
.settings-channel-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid #c9d9f2; border-radius: 7px; color: #075fc3; background: #eaf2ff; font-size: 10px; font-weight: 800; }
.settings-channel-meta { display: flex; justify-content: space-between; gap: 7px; margin-top: 15px; padding-top: 10px; border-top: 1px solid #e6edf5; color: #7b899c; font-size: 9px; }
.settings-channel-meta b { color: #223149; font-size: 10px; white-space: nowrap; }
.settings-channel-meta b small { color: #8592a2; font-size: 8px; font-weight: 500; }
.settings-table-wrap { overflow-x: auto; }
.settings-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.settings-table th { padding: 9px 10px; border-bottom: 1px solid #dbe3ef; color: #76859a; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.settings-table td { padding: 11px 10px; border-bottom: 1px solid #e9eef5; color: #4c5b70; font-size: 11px; }
.settings-table tr:last-child td { border-bottom: 0; }
.settings-member, .settings-identity-row { display: flex; align-items: center; gap: 9px; }
.settings-member > span:last-child, .settings-identity-row > div { display: grid; gap: 3px; }
.settings-member b, .settings-identity-row b { color: #1d2c41; font-size: 11px; }
.settings-member small, .settings-identity-row small { color: #7a899b; font-size: 9px; }
.settings-team-invite { display: grid; grid-template-columns: minmax(160px, 1.2fr) repeat(3, minmax(130px, 1fr)) auto; align-items: end; gap: 10px; margin: 0 0 18px; padding: 14px; border: 1px solid #dbe5f2; border-radius: 10px; background: linear-gradient(125deg, #f7fbff, #f5f8fd); }
.settings-team-invite[hidden] { display: none; }
.settings-team-invite > div { display: grid; gap: 5px; align-self: center; }
.settings-team-invite > div b { color: #1c2b40; font-size: 12px; }
.settings-team-invite > div small { color: #75859a; font-size: 10px; line-height: 1.4; }
.settings-team-invite label { display: grid; gap: 5px; color: #53647b; font-size: 9px; font-weight: 700; }
.settings-team-invite input, .settings-team-invite select { width: 100%; min-width: 0; height: 36px; padding: 0 9px; border: 1px solid #cbd7e7; border-radius: 6px; background: #fff; color: #1d2b40; font: inherit; font-size: 11px; }
.settings-team-invite .solid-button { min-height: 36px; white-space: nowrap; }
.settings-member-action { min-height: 29px; padding: 0 8px; font-size: 10px; }
.settings-identity { display: grid; gap: 17px; }
.settings-identity dl { display: grid; gap: 0; margin: 0; border: 1px solid #e1e7f0; border-radius: 7px; overflow: hidden; }
.settings-identity dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 11px; border-bottom: 1px solid #e8edf4; font-size: 10px; }
.settings-identity dl > div:last-child { border-bottom: 0; }
.settings-identity dt { color: #7b899b; }
.settings-identity dd { margin: 0; color: #25344a; font-weight: 700; text-align: right; }
.settings-activity-list { display: grid; gap: 0; border: 1px solid #e1e7f0; border-radius: 7px; overflow: hidden; }
.settings-activity-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 54px; padding: 8px 11px; border-bottom: 1px solid #e8edf4; }
.settings-activity-row:last-child { border-bottom: 0; }
.settings-activity-row > .material-symbols-outlined { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: #075fc3; background: #eaf2ff; font-size: 16px; }
.settings-activity-row > div { display: grid; min-width: 0; gap: 3px; }
.settings-activity-row b { overflow: hidden; color: #25344a; font-size: 11px; font-weight: 700; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.settings-activity-row small { overflow: hidden; color: #7c8a9c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settings-activity-row code { color: #738299; font-family: inherit; font-size: 9px; }
.settings-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e8edf4; color: #78879a; font-size: 10px; }
.settings-pagination b { color: #25344a; font-size: 10px; }
.settings-pagination .outline-button { min-height: 28px; padding: 0 9px; font-size: 10px; }
.settings-loading, .settings-empty { padding: 25px 12px; color: #8491a3; font-size: 11px; text-align: center; }
.settings-channel-grid > .settings-loading, .settings-channel-grid > .settings-empty { grid-column: 1 / -1; }
@media (max-width: 820px) { .settings-grid-main, .settings-channel-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .settings-team-invite { grid-template-columns: repeat(2, minmax(0, 1fr)); } .settings-team-invite > div { grid-column: 1 / -1; } }
@media (max-width: 620px) { .settings-view-head { align-items: flex-start; gap: 10px; flex-direction: column; } .settings-tabs { margin-inline: -2px; } .settings-card { padding: 14px; } .settings-form { grid-template-columns: 1fr; } .settings-team-invite { grid-template-columns: 1fr; } .settings-team-invite > div { grid-column: auto; } .settings-team-invite .solid-button { width: 100%; } .settings-form-foot { align-items: stretch; flex-direction: column; } .settings-form-foot button { width: 100%; } .settings-activity-row { grid-template-columns: 28px minmax(0, 1fr); } .settings-activity-row code { display: none; } .settings-pagination { justify-content: space-between; flex-wrap: wrap; } .settings-pagination > span { width: 100%; } }

/* Billing should read as a payment workflow, not a placeholder module. */
.billing-view-head { align-items: center; }
.billing-view-head .section-kicker { display: inline-flex; margin-bottom: 7px; color: #0b5fc4; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.billing-flow-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 11px; border: 1px solid #c5ecd8; border-radius: 999px; color: #087443; background: #eefbf4; font-size: 10px; font-weight: 700; white-space: nowrap; }
.billing-flow-pill .material-symbols-outlined { font-size: 16px; }
.provider-help { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.billing-flow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 9px 11px; border: 1px solid #d9e1ef; border-radius: 7px; color: #8290a2; background: #f4f7fc; font-size: 10px; font-weight: 700; }
.billing-flow span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.billing-flow b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #6d7c90; background: #e0e7f1; font-size: 9px; }
.billing-flow span.active { color: #075fc3; }
.billing-flow span.active b { color: #fff; background: #075fc3; }
.billing-flow i { color: #a0acbc; font-size: 15px; }
@media (max-width: 620px) { .billing-view-head { align-items: flex-start; gap: 10px; flex-direction: column; } .billing-flow { gap: 5px; overflow-x: auto; } .billing-flow i { font-size: 13px; } .billing-flow span { font-size: 9px; } }
/* Automation builder: dense enough for daily operations, with clear run states. */
.automation-workspace-real { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .85fr); gap: 18px; align-items: start; }
.automation-editor-panel, .automation-library-panel { min-width: 0; }
.automation-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line, #dfe4f1); }
.automation-form-grid .automation-description { grid-column: 1 / -1; }
.automation-form-grid label, .automation-step-card label, .automation-test-row label { display: grid; gap: 6px; color: var(--muted, #64748b); font-size: 12px; font-weight: 700; }
.automation-form-grid input, .automation-form-grid select, .automation-form-grid textarea, .automation-step-card input, .automation-step-card select, .automation-test-row input { width: 100%; border: 1px solid var(--line-strong, #b9c5dc); border-radius: 7px; background: #fff; color: var(--ink, #111827); padding: 10px 11px; font: inherit; }
.automation-step-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0 12px; }
.automation-step-head h3 { margin: 0 0 3px; font-size: 15px; }
.automation-step-head p { margin: 0; color: var(--muted, #64748b); font-size: 12px; }
.automation-step-list { display: grid; gap: 10px; }
.automation-step-card { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 13px; border: 1px solid var(--line-strong, #c5cee0); border-radius: 9px; background: linear-gradient(135deg, #fff, #f8faff); }
.automation-step-index { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8f0ff; color: #075cc7; font-weight: 800; font-size: 12px; }
.automation-step-body { min-width: 0; display: grid; gap: 10px; }
.automation-step-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.automation-step-toolbar strong { font-size: 13px; color: var(--ink, #111827); }
.automation-node-config { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.automation-node-config > label:first-child:last-child { grid-column: 1 / -1; }
.automation-node-config small { align-self: end; color: var(--muted, #64748b); line-height: 1.4; }
.automation-editor-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; padding-top: 16px; }
.automation-test-row { display: flex; align-items: end; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #dfe4f1); }
.automation-test-row label { flex: 1; }
.automation-test-row > small { max-width: 260px; color: var(--muted, #64748b); line-height: 1.45; padding-bottom: 10px; }
.automation-empty-steps, .automation-empty-library, .automation-runs-empty { display: grid; place-items: center; gap: 6px; padding: 28px 16px; text-align: center; color: var(--muted, #64748b); border: 1px dashed var(--line-strong, #c5cee0); border-radius: 9px; }
.automation-empty-steps .material-symbols-outlined, .automation-empty-library .material-symbols-outlined, .automation-runs-empty .material-symbols-outlined { color: #1466d8; font-size: 25px; }
.automation-empty-steps b, .automation-empty-library p, .automation-runs-empty b { color: var(--ink, #111827); margin: 0; }
.automation-library { display: grid; gap: 8px; }
.automation-library-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 9px; border: 1px solid var(--line, #dfe4f1); border-radius: 8px; background: #fff; }
.automation-library-item.selected { border-color: #1471df; box-shadow: 0 0 0 2px rgba(20, 113, 223, .1); }
.automation-library-item > button:first-child { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; border: 0; background: transparent; text-align: left; color: inherit; cursor: pointer; }
.automation-library-icon { color: #1466d8; }
.automation-library-item b, .automation-library-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.automation-library-item small { color: var(--muted, #64748b); font-size: 11px; margin-top: 3px; }
.automation-library-actions { display: flex; align-items: center; gap: 3px; }
.automation-runs { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #dfe4f1); }
.automation-runs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.automation-runs-head small { color: var(--muted, #64748b); }
.automation-run-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line, #edf0f7); }
.automation-run-row b, .automation-run-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.automation-run-row small { color: var(--muted, #64748b); font-size: 11px; margin-top: 2px; }
@media (max-width: 900px) { .automation-workspace-real { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .automation-form-grid { grid-template-columns: 1fr; } .automation-form-grid .automation-description { grid-column: auto; } .automation-node-config { grid-template-columns: 1fr; } .automation-test-row { display: grid; } .automation-test-row > small { max-width: none; } }

/* Form builder refinement: clearer sections, compact field cards, and stronger editing hierarchy. */
#databaseFormEditor { gap: 20px; }
#databaseFormEditor .form-copy-settings { gap: 14px; margin: 0; padding: 16px; border-color: #d7dfef; border-radius: 9px; background: #fbfcff; }
#databaseFormEditor .form-copy-settings label { gap: 6px; color: #53647d; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
#databaseFormEditor .form-copy-settings input, #databaseFormEditor .form-copy-settings textarea { min-height: 39px; border-color: #c5d0e3; border-radius: 6px; color: var(--text); background: #fff; font-size: 12px; }
#databaseFormEditor .form-copy-settings textarea { min-height: 72px; line-height: 1.45; }
#databaseFormEditor .form-field-settings { gap: 14px; margin-top: 0; }
#databaseFormEditor .form-field-settings > .panel-head { align-items: center; gap: 12px; margin: 0; padding: 0 0 12px; border-bottom: 1px solid #d9e1ef; }
#databaseFormEditor .form-field-section-copy { margin-right: auto; }
#databaseFormEditor .form-field-section-copy h3 { margin: 0; color: var(--text); font-size: 17px; }
#databaseFormEditor .form-field-section-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
#databaseFormEditor .form-field-count { padding: 5px 9px; border: 1px solid #d9e3f1; border-radius: 999px; color: #53647d; background: #f5f8fc; font-size: 10px; font-weight: 700; white-space: nowrap; }
#databaseFormEditor .form-field-settings > .panel-head .outline-button { order: 3; }
#databaseFormEditor #databaseFormFields { gap: 12px; }
#databaseFormEditor .form-field-row { display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch; overflow: hidden; padding: 0; border-color: #cbd6e8; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(31, 55, 92, .045); transition: border-color .16s ease, box-shadow .16s ease; }
#databaseFormEditor .form-field-row:hover { border-color: #aebfda; box-shadow: 0 6px 16px rgba(31, 55, 92, .08); }
#databaseFormEditor .form-field-row-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-bottom: 1px solid #e5eaf2; background: #f8faff; }
#databaseFormEditor .form-field-index { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid #d5e0f1; border-radius: 8px; color: #075cc7; background: #edf4ff; font-size: 10px; font-weight: 800; }
#databaseFormEditor .form-field-heading { display: grid; gap: 2px; }
#databaseFormEditor .form-field-row-head b { color: var(--text); font-size: 12px; }
#databaseFormEditor .form-field-heading small { color: #728198; font-size: 10px; }
#databaseFormEditor .form-field-type-badge { padding: 5px 9px; border: 1px solid #d6def0; border-radius: 999px; color: #315eaa; background: #edf4ff; font-size: 10px; font-weight: 800; }
#databaseFormEditor .form-field-row-head .icon-button { width: 32px; height: 32px; margin-left: auto; color: #a33b58; border-color: #e9ccd6; background: #fff; }
#databaseFormEditor .form-field-row-grid { display: grid; grid-template-columns: minmax(130px, .72fr) minmax(180px, 1fr) minmax(180px, 1fr); gap: 14px; padding: 16px 15px 12px; }
#databaseFormEditor .form-field-row-grid > label { display: grid; gap: 6px; min-width: 0; color: #53647d; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
#databaseFormEditor .form-field-row-grid input, #databaseFormEditor .form-field-row-grid select { min-height: 42px; padding-inline: 11px; border-color: #c5d0e3; border-radius: 7px; color: var(--text); background: #fff; font-size: 12px; }
#databaseFormEditor .form-field-row-grid input:focus, #databaseFormEditor .form-field-row-grid select:focus, #databaseFormEditor .form-copy-settings input:focus, #databaseFormEditor .form-copy-settings textarea:focus { border-color: #075cc7; box-shadow: 0 0 0 3px rgba(7, 92, 199, .12); outline: 0; }
#databaseFormEditor .form-required { display: flex !important; grid-column: auto; align-items: center; gap: 9px; margin: 0; padding: 0 15px 15px; color: #53647d; font-size: 11px; font-weight: 700; }
#databaseFormEditor .form-required input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: #075cc7; }
#databaseFormEditor .form-required span { display: grid; gap: 2px; }
#databaseFormEditor .form-required b { color: #33445e; font-size: 11px; }
#databaseFormEditor .form-required small { color: #7a879b; font-size: 10px; font-weight: 400; }
#databaseFormEditor > .modal-actions { justify-content: flex-end; gap: 8px; margin-top: 0; padding-top: 15px; border-top: 1px solid #d9e1ef; }
#databaseFormEditor > .modal-actions button { min-height: 40px; padding-inline: 16px; }
@media (max-width: 820px) {
  #databaseFormEditor .form-field-row-grid { grid-template-columns: 1fr 1fr; }
  #databaseFormEditor .form-field-row-grid > label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  #databaseFormEditor .form-field-settings > .panel-head { align-items: center; flex-wrap: wrap; }
  #databaseFormEditor .form-field-count { margin-left: 0; }
  #databaseFormEditor .form-field-row-grid { grid-template-columns: 1fr; }
  #databaseFormEditor .form-field-row-grid > label:last-child { grid-column: auto; }
  #databaseFormEditor > .modal-actions { justify-content: stretch; }
  #databaseFormEditor > .modal-actions button { flex: 1; }
}

/* Keep automation controls readable when the app's icon font is active elsewhere. */
.automation-form-grid select,
.automation-form-grid select option,
.automation-step-card select,
.automation-step-card select option,
.automation-node-config select,
.automation-node-config select option {
  font-family: Geist, Inter, system-ui, sans-serif !important;
  font-style: normal;
  font-weight: 600;
  color: var(--text, #131b2e);
}

/* Mobile form builder: keep each field as one full-width, readable card. */
@media (max-width: 620px) {
  #databaseFormEditor .form-field-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
  }

  #databaseFormEditor .form-field-row-head,
  #databaseFormEditor .form-field-row-grid,
  #databaseFormEditor .form-required {
    grid-column: 1 / -1 !important;
    min-width: 0;
  }

  #databaseFormEditor .form-field-row-head {
    display: flex !important;
    width: 100%;
    box-sizing: border-box;
  }

  #databaseFormEditor .form-field-row-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 14px 8px;
  }

  #databaseFormEditor .form-field-row-grid > label,
  #databaseFormEditor .form-field-row-grid > label:last-child {
    grid-column: auto !important;
    width: 100%;
  }

  #databaseFormEditor .form-required {
    display: flex !important;
    width: 100%;
    box-sizing: border-box;
    padding: 0 14px 14px;
  }

  #databaseFormEditor .form-field-settings > .panel-head {
    min-height: 0;
    height: auto;
    gap: 10px;
    margin-bottom: 0;
  }

  #databaseFormEditor .form-field-settings > .panel-head h3 {
    margin: 0;
  }

  #databaseFormEditor .form-field-settings > .panel-head .outline-button {
    order: 2;
  }

  #databaseFormEditor .form-field-section-copy { flex: 1 1 100%; }
  #databaseFormEditor .form-field-count { order: 2; }
}

/* Duit HQ brand system: official logo assets, palette, and Jost typography. */
@font-face { font-family: Jost; font-style: normal; font-weight: 300; src: url('../brand/Jost-300.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Jost; font-style: normal; font-weight: 400; src: url('../brand/Jost-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Jost; font-style: normal; font-weight: 500; src: url('../brand/Jost-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Jost; font-style: normal; font-weight: 700; src: url('../brand/Jost-700.woff2') format('woff2'); font-display: swap; }

.app-page,
.auth-page,
.platform-page { font-family: Jost, Futura, 'Century Gothic', Arial, sans-serif; }

.app-page {
  --bg: #EAF0FA;
  --wash: #EAF0FA;
  --surface: #FFFFFF;
  --surface-2: #EAF0FA;
  --line: #D9E2F1;
  --line-strong: #B9C9E3;
  --text: #071B47;
  --muted: #5B6B86;
  --primary: #0B2A6F;
  --primary-dark: #071B47;
  --primary-soft: #EAF0FA;
  background: var(--bg);
}
.app-page .app-sidebar { background: #FFFFFF; border-right-color: #D9E2F1; box-shadow: 5px 0 24px rgba(7, 27, 71, .05); }
.app-page .tenant { background: #FFFFFF; border-bottom-color: #D9E2F1; }
.app-page .tenant strong { color: #071B47; }
.app-page .tenant span { color: #5B6B86; }
.app-page .tenant-logo { background: transparent; box-shadow: none; }
.app-page .tenant-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.app-page .side-label { color: #7D8EAA; }
.app-page .side-menu button,
.app-page .side-bottom button { color: #53627A; }
.app-page .side-menu button:hover,
.app-page .side-bottom button:hover,
.app-page .side-menu button.active,
.app-page .side-bottom button.active { color: #0B2A6F; background: #EAF0FA; border-left-color: #3D6FD9; }
.app-page .app-main { background: #EAF0FA; }
.app-page .solid-button,
.app-page .topbar-create { border-color: #0B2A6F; background: #0B2A6F; }
.app-page .solid-button:hover,
.app-page .topbar-create:hover { border-color: #071B47; background: #071B47; }
.app-page .outline-button { color: #0B2A6F; border-color: #B9C9E3; }
.app-page .outline-button:hover { border-color: #3D6FD9; background: #EAF0FA; }

.auth-page { background: #EAF0FA; }
.auth-panel .wordmark { display: inline-flex; flex-wrap: wrap; align-items: center; max-width: 250px; color: #071B47; }
.auth-panel .brand-wordmark { display: block; width: 150px; height: auto; }
.auth-panel .wordmark-caption { flex-basis: 100%; width: auto; height: auto; display: block; margin: 7px 0 0 2px; border-radius: 0; color: #5B6B86; background: transparent; box-shadow: none; font-size: 10px; font-weight: 500; }
.auth-panel .solid-button { border-color: #0B2A6F; background: #0B2A6F; }
.auth-panel .solid-button:hover { border-color: #071B47; background: #071B47; }
.auth-copy .section-kicker { color: #0B2A6F; }

.platform-page { color: #071B47; background: #EAF0FA; }
.platform-sidebar { background: #071B47; }
.platform-brand .brand-wordmark { display: block; width: 140px; height: auto; }
.platform-brand b { color: #B7C8EA; }
.platform-nav button:hover,
.platform-nav button.active,
.platform-sidebar-bottom button:hover,
.platform-site-link:hover { background: rgba(61, 111, 217, .24); }
.platform-nav button.active { box-shadow: inset 3px 0 #3D6FD9; }
