/* =============================================================
   theme.css — Zoho Creator Design System theme
   SAP Inside Track Chennai 2026 — Extension Hub

   To retheme the entire app, edit ONLY this file.
   All colors, fonts, radii, and spacing reference --zc-* tokens.
   Component classes follow the Creator DS zc- naming convention.
   ============================================================= */

/* ── Font ─────────────────────────────────────────────────── */
/* ZohoPuvi only ships a single Regular woff2 — don't declare a weight range
   or the browser will synthesize bold, making all text look distorted.
   For weights above 400, system-ui (SF Pro / Segoe UI) is used instead. */
@font-face {
  font-family: 'ZohoPuvi';
  src: url('ZohoPuvi-Regular.c2e46049e60d2c38e7a85780ebbaa116.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Creator DS tokens ────────────────────────────────────── */
:root {
  /* Brand */
  --zc-primary:          #295BF9;
  --zc-primary-hover:    #4379FF;
  --zc-primary-dark:     #3F40E2;
  --zc-primary-soft:     #F7FAFF;

  /* Secondary surfaces */
  --zc-secondary-bg:     #F6F7F8;
  --zc-secondary-hover:  #EEEFF1;
  --zc-bg-canvas:        #fafbff;
  --zc-bg-section:       #F8F8FB;
  --zc-bg-card:          #FFFFFF;
  --zc-bg-hover:         #EDEDFF;
  --zc-bg-disabled:      #E5E7ED;
  --zc-bg-sidebar:       #F4F5F9;

  /* Text */
  --zc-text-primary:     #0D0E1F;
  --zc-text-secondary:   #1E1F4A;
  --zc-text-tertiary:    #3A4260;
  --zc-text-disabled:    #9BA5BB;
  --zc-text-placeholder: #8E96AD;
  --zc-text-muted:       #4A5568;

  /* Borders */
  --zc-border:           #CBCBDC;
  --zc-border-2:         #DCDCE7;
  --zc-border-3:         #E7E7EE;
  --zc-border-4:         #F0F0F6;
  --zc-border-sidebar:   #E2E3EC;

  /* Semantic */
  --zc-error:            #E61F1F;
  --zc-error-bg:         #FFF3F3;
  --zc-success:          #2E844A;
  --zc-success-bg:       #EFFBF4;
  --zc-warning:          #C97A00;
  --zc-warning-bg:       #FFF7E6;
  --zc-info:             #295BF9;
  --zc-info-bg:          #F2F6FF;

  /* Radius */
  --zc-radius-sm:        4px;
  --zc-radius-md:        6px;
  --zc-radius-lg:        8px;

  /* Shadows */
  --zc-shadow-card:      0 1px 4px rgba(18,19,43,0.08);
  --zc-shadow-modal:     0 8px 32px rgba(18,19,43,0.18);
  --zc-shadow-topbar:    0 1px 0 var(--zc-border-3);

  /* Layout */
  --zc-form-height:      36px;
  --zc-topbar-h:         56px;
  --zc-tabbar-h:         46px;
  --zc-sidebar-w:        260px;

  /* Typography */
  --zc-font:             'ZohoPuvi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --zc-font-bold:        'ZohoPuvi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --zc-font-size-12:     12px;
  --zc-font-size-13:     13px;
  --zc-font-size-14:     14px;
  --zc-font-size-15:     15px;
  --zc-font-size-16:     16px;
  --zc-font-size-18:     18px;
  --zc-font-size-20:     20px;
  --zc-font-size-24:     24px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
@media (max-width: 600px) { html, body { overflow: auto; height: auto; } .app-shell { overflow: auto; } }
body {
  font-family: var(--zc-font);
  font-size: var(--zc-font-size-14);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--zc-bg-canvas);
  color: var(--zc-text-primary);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Topbar ───────────────────────────────────────────────── */
.app-topbar {
  height: var(--zc-topbar-h);
  background: #0B1340;
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  z-index: 100;
}
.app-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-topbar__logo-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-topbar__zoho {
  font-size: 17px;
  font-weight: 800;
  color: #7BA4FF;
  letter-spacing: -0.025em;
}
.app-topbar__sep {
  font-size: 17px;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  margin: 0 4px;
}
.app-topbar__sap {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.app-topbar__divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px;
}
.app-topbar__label {
  font-size: var(--zc-font-size-13);
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.app-topbar__event {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.app-topbar__theme-toggle {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.6) !important;
}
.app-topbar__theme-toggle:hover {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}

/* ── Tab bar — pill/capsule active pattern ────────────────── */
.app-tabbar {
  height: var(--zc-tabbar-h);
  background: var(--zc-bg-card);
  border-bottom: 1px solid var(--zc-border-3);
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 2px;
}
.zc-tab-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 14px;
  font-size: var(--zc-font-size-14);
  font-weight: 600;
  font-family: var(--zc-font);
  color: var(--zc-text-tertiary);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
  line-height: 1;
}
.zc-tab-btn:hover {
  color: var(--zc-text-primary);
  background: var(--zc-bg-section);
}
.zc-tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 91, 249, 0.2);
}
.zc-tab-btn.active {
  color: #fff;
  background: var(--zc-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(41, 91, 249, 0.35);
}

/* ── Tabbar search button ─────────────────────────────────── */
.tabbar__spacer { flex: 1; }
.tabbar__search-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px 0 9px;
  margin: auto 0;
  background: var(--zc-bg-section);
  border: 1px solid var(--zc-border-2);
  border-radius: var(--zc-radius-sm);
  color: var(--zc-text-placeholder);
  font-size: var(--zc-font-size-13);
  font-family: var(--zc-font);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
}
.tabbar__search-btn:hover {
  border-color: var(--zc-primary);
  color: var(--zc-text-tertiary);
}
.tabbar__search-btn kbd {
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  font-size: 11px;
}

/* ── Spotlight overlay ────────────────────────────────────── */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.spotlight__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 30, 0.45);
  backdrop-filter: blur(2px);
}
.spotlight__panel {
  position: relative;
  width: 600px;
  max-width: calc(100vw - 48px);
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-2);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(10, 12, 30, 0.22), 0 4px 16px rgba(10, 12, 30, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.spotlight__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--zc-border-4);
  flex-shrink: 0;
}
.spotlight__icon { color: var(--zc-text-tertiary); flex-shrink: 0; }
.spotlight__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--zc-font);
  color: var(--zc-text-primary);
  background: transparent;
  line-height: 1.4;
}
.spotlight__input::placeholder { color: var(--zc-text-placeholder); }
.spotlight__esc-hint {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--zc-bg-section);
  border: 1px solid var(--zc-border-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--zc-text-tertiary);
  font-family: var(--zc-font);
  flex-shrink: 0;
}
.spotlight__results {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.spotlight__results:empty::after {
  content: '';
  display: none;
}
.spotlight__empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--zc-text-disabled);
  font-size: var(--zc-font-size-14);
}
.spotlight__group-label {
  font-size: var(--zc-font-size-11);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zc-text-disabled);
  padding: 8px 16px 4px;
}
.spotlight__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 6px;
  margin: 0 6px;
  border-left: 2px solid transparent;
  transition: background 0.08s;
}
.spotlight__item:hover,
.spotlight__item.active {
  background: var(--zc-primary-soft);
  border-left-color: var(--zc-primary);
}
.spotlight__item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--zc-primary);
  opacity: 0.4;
  flex-shrink: 0;
  margin-top: 6px;
}
.spotlight__item-body { flex: 1; min-width: 0; }
.spotlight__item-name {
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  color: var(--zc-text-primary);
  margin-bottom: 2px;
}
.spotlight__item:hover .spotlight__item-name,
.spotlight__item.active .spotlight__item-name { color: var(--zc-primary); }
.spotlight__item-desc {
  font-size: var(--zc-font-size-13);
  color: var(--zc-text-tertiary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.spotlight__item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.spotlight__item-ind {
  font-size: var(--zc-font-size-11);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zc-text-disabled);
}
.spotlight__item-arrow {
  font-size: var(--zc-font-size-14);
  color: var(--zc-text-disabled);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.08s;
}
.spotlight__item:hover .spotlight__item-arrow,
.spotlight__item.active .spotlight__item-arrow { opacity: 1; color: var(--zc-primary); }
.spotlight__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--zc-border-4);
  background: var(--zc-bg-section);
  flex-shrink: 0;
}
.spotlight__footer span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--zc-font-size-12);
  color: var(--zc-text-disabled);
}

/* ── Spotlight open/close animation ──────────────────────── */
@keyframes spotlight-in {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.spotlight.open .spotlight__panel {
  animation: spotlight-in 0.15s ease;
}

/* ── Shell + panels ───────────────────────────────────────── */
.app-shell {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.tab-panel {
  display: none;
  height: 100%;
}
.tab-panel.active { display: flex; width: 100%; }

/* ── Sidebar — zc-nav left pattern ───────────────────────── */
.app-sidebar {
  width: var(--zc-sidebar-w);
  flex-shrink: 0;
  background: var(--zc-bg-sidebar);
  border-right: 1px solid var(--zc-border-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar__head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--zc-border-sidebar);
}
.sidebar__head-label {
  font-size: var(--zc-font-size-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zc-text-primary);
  margin-bottom: 2px;
}
.sidebar__head-meta {
  font-size: var(--zc-font-size-13);
  font-weight: 500;
  color: var(--zc-text-tertiary);
}
.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.sidebar__nav::-webkit-scrollbar { width: 3px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: var(--zc-border-2); border-radius: 2px; }

/* ── Nav items ────────────────────────────────────────────── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.12s;
  position: relative;
  text-decoration: none;
}
.nav-item:hover { background: var(--zc-bg-hover); }
.nav-item.active {
  border-left-color: var(--zc-primary);
  background: rgba(41, 91, 249, 0.05);
}
.nav-item__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--zc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--zc-font-size-13);
  font-weight: 700;
  flex-shrink: 0;
  background: var(--zc-border-4);
  letter-spacing: -0.01em;
  color: var(--zc-text-tertiary);
}
.nav-item__icon--grid {
  width: 28px;
  height: 28px;
  border-radius: var(--zc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--zc-border-4);
}
.nav-item__text { flex: 1; min-width: 0; }
.nav-item__label {
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  color: var(--zc-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item.active .nav-item__label {
  color: var(--zc-primary);
  font-weight: 700;
}
.nav-item__sub {
  font-size: var(--zc-font-size-12);
  color: var(--zc-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.nav-item__count {
  font-size: var(--zc-font-size-13);
  font-weight: 600;
  color: var(--zc-text-tertiary);
  flex-shrink: 0;
  min-width: 18px;
  text-align: right;
}
.nav-item.active .nav-item__count {
  color: var(--zc-primary);
  font-weight: 700;
}

/* ── Main area + content ──────────────────────────────────── */
.main-area {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--zc-bg-card);
}
.content {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
  transition: max-width 0.25s ease;
}
.main-area.viewer-open .content {
  max-width: 340px;
  flex-shrink: 0;
  flex: none;
}
.content::-webkit-scrollbar { width: 4px; }
.content::-webkit-scrollbar-thumb { background: var(--zc-border-2); border-radius: 2px; }

/* ── Viewer pane ──────────────────────────────────────────── */
.viewer-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--zc-border-3);
  background: var(--zc-bg-card);
  position: relative;
}
.viewer-pane.open { display: flex; }
.resize-handle {
  position: absolute;
  left: -3px; top: 0; bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 10;
}
.resize-handle:hover { background: rgba(41, 91, 249, 0.1); }

.viewer-topbar {
  height: var(--zc-tabbar-h);
  border-bottom: 1px solid var(--zc-border-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  background: var(--zc-bg-section);
}
.viewer-topbar__name {
  font-size: var(--zc-font-size-13);
  font-weight: 600;
  color: var(--zc-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.viewer-topbar__actions { display: flex; align-items: center; gap: 8px; }
.viewer-try-btn,
.viewer-try-btn:link,
.viewer-try-btn:visited,
.viewer-try-btn:hover,
.viewer-try-btn:active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--zc-font-size-13);
  font-family: var(--zc-font);
  font-weight: 600;
  color: #fff;
  background: var(--zc-primary);
  border: 1px solid var(--zc-primary);
  border-radius: var(--zc-radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, opacity 0.12s;
}
.viewer-try-btn:hover { background: #1a4ae8; border-color: #1a4ae8; }
[data-theme="dark"] .viewer-try-btn { background: rgba(41,91,249,0.85); border-color: rgba(41,91,249,0.6); }

.viewer-open-btn {
  font-size: var(--zc-font-size-13);
  font-family: var(--zc-font);
  font-weight: 500;
  color: var(--zc-primary);
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border);
  border-radius: var(--zc-radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.viewer-open-btn:hover {
  background: var(--zc-primary-soft);
  border-color: var(--zc-primary);
}
.viewer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--zc-text-tertiary);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--zc-radius-sm);
  transition: background 0.12s;
}
.viewer-close-btn:hover { background: var(--zc-bg-hover); color: var(--zc-text-primary); }
.viewer-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.viewer-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--zc-text-disabled);
}
.viewer-placeholder p { font-size: var(--zc-font-size-14); }
.viewer-body object {
  flex: 1;
  border: none;
  width: 100%;
  display: block;
}

.viewer-body.has-zia object { flex: 6 1 0; min-height: 0; }

/* ── Zia prompt panel ─────────────────────────────────────── */
.viewer-zia-prompt__drag {
  position: relative;
  height: 5px;
  cursor: row-resize;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}
.viewer-zia-prompt__drag::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--zc-border-2);
  transition: background 0.15s;
}
.viewer-zia-prompt__drag:hover::after,
.viewer-zia-prompt__drag.dragging::after {
  background: var(--zc-primary);
}
.viewer-zia-prompt {
  flex: 4 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--zc-primary);
  background: #f0f4ff;
  overflow: hidden;
  box-shadow: 0 -2px 10px rgba(41, 91, 249, 0.08);
}
.viewer-zia-prompt__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 7px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: #f0f4ff;
  z-index: 1;
  border-bottom: 1px solid rgba(41, 91, 249, 0.15);
}
.viewer-zia-prompt__header svg { color: var(--zc-primary); flex-shrink: 0; }
.viewer-zia-prompt__header > span {
  font-size: var(--zc-font-size-11);
  font-weight: 700;
  color: var(--zc-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1;
}
.viewer-zia-prompt__copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--zc-font-size-11);
  font-family: var(--zc-font);
  font-weight: 600;
  color: var(--zc-primary);
  background: #fff;
  border: 1px solid rgba(41, 91, 249, 0.3);
  border-radius: var(--zc-radius-sm);
  padding: 3px 9px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.viewer-zia-prompt__copy:hover {
  background: var(--zc-primary);
  color: #fff;
  border-color: var(--zc-primary);
  box-shadow: 0 2px 6px rgba(41, 91, 249, 0.3);
}
.viewer-zia-prompt__text {
  font-size: var(--zc-font-size-13);
  color: #2d3a6b;
  line-height: 1.65;
  padding: 9px 14px 14px;
  overflow-y: auto;
  flex: 1 1 0;
  min-height: 0;
}
[data-theme="dark"] .viewer-zia-prompt {
  background: rgba(41, 91, 249, 0.08);
  border-top-color: var(--zc-primary);
  box-shadow: 0 -2px 10px rgba(41, 91, 249, 0.12);
}
[data-theme="dark"] .viewer-zia-prompt__header {
  background: rgba(41, 91, 249, 0.08);
  border-bottom-color: rgba(41, 91, 249, 0.2);
}
[data-theme="dark"] .viewer-zia-prompt__copy {
  background: rgba(41, 91, 249, 0.15);
  border-color: rgba(41, 91, 249, 0.35);
}
[data-theme="dark"] .viewer-zia-prompt__text { color: rgba(255,255,255,0.75); }

/* ── Home view ────────────────────────────────────────────── */
.home-view {
  padding: 28px 36px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.home-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.home-header__left {
  flex: 1;
  min-width: 0;
}
.home-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zc-text-disabled);
  margin-bottom: 5px;
}
.home-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--zc-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 5px;
  white-space: nowrap;
}
.home-sub {
  font-size: var(--zc-font-size-13);
  font-weight: 500;
  color: var(--zc-text-tertiary);
  line-height: 1.4;
}
.home-stats {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  margin-left: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--zc-border-3);
}
.home-stat {
  text-align: center;
  padding: 0 20px;
}
.home-stat + .home-stat {
  border-left: 1px solid var(--zc-border-4);
}
.home-stat__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--zc-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}
.home-stat__label {
  font-size: 11px;
  color: var(--zc-text-disabled);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
}

/* 3-column grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
  align-content: start;
  overflow-y: auto;
  padding: 6px 4px 16px;
}

/* ── Industry card — App Store card style ────────────────── */
.home-ind-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-3);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: visible;
  outline: none;
}
.home-ind-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(18,19,43,0.12), 0 2px 8px rgba(18,19,43,0.06);
  border-color: var(--zc-border-2);
}
.home-ind-card:focus-visible {
  border-color: var(--zc-primary);
  box-shadow: 0 0 0 3px rgba(41,91,249,0.18);
}

/* Colored header strip */
.home-ind-card__header {
  padding: 14px 16px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: color-mix(in srgb, var(--accent, #295BF9) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent, #295BF9) 14%, transparent);
  position: relative;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
}
.home-ind-card__header::after {
  content: '';
  position: absolute;
  bottom: -24px; right: -16px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #295BF9) 8%, transparent);
  pointer-events: none;
}

/* Avatar — SVG icon container */
.home-ind-sq {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent, #295BF9) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #295BF9) 20%, transparent);
}
.home-ind-sq svg {
  display: block;
  flex-shrink: 0;
}

/* Count pill in header */
.home-ind-count {
  font-size: 11px;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent, #295BF9) 100%, black);
  background: color-mix(in srgb, var(--accent, #295BF9) 14%, white);
  border: 1px solid color-mix(in srgb, var(--accent, #295BF9) 20%, transparent);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

/* Card body — text below the header */
.home-ind-card__body {
  padding: 12px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Text column */
.home-ind-card__text { display: contents; }

/* Industry name */
.home-ind-name {
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  color: var(--zc-text-primary);
  transition: color 0.15s;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.home-ind-card:hover .home-ind-name { color: var(--zc-primary); }

/* Description */
.home-ind-desc {
  font-size: 11.5px;
  color: var(--zc-text-tertiary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Arrow + accent div — not used */
.home-ind-card__footer { display: none; }
.home-ind-arrow { display: none; }
.home-ind-card__accent { display: none; }

/* ── Content hero ─────────────────────────────────────────── */
.content-hero {
  padding: 22px 28px 20px;
  border-bottom: 1px solid var(--zc-border-4);
  background: var(--zc-bg-card);
  border-left: 3px solid var(--accent, var(--zc-primary));
}
.content-hero__title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.content-hero__title-row .content-hero__title {
  margin-bottom: 0;
}
.content-hero__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.content-hero__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--zc-text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.content-hero__sub {
  font-size: var(--zc-font-size-14);
  color: var(--zc-text-tertiary);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 560px;
}
.hero-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-pill {
  font-size: var(--zc-font-size-12);
  color: var(--zc-text-tertiary);
  background: var(--zc-bg-section);
  padding: 3px 8px;
  border: 1px solid var(--zc-border-3);
  border-radius: 999px;
}

/* ── Module tags (used inline on cards) ───────────────────── */
.module-tag {
  display: inline-block;
  background: var(--zc-info-bg);
  color: var(--zc-primary);
  padding: 2px 6px;
  font-size: var(--zc-font-size-12);
  font-weight: 600;
  border-radius: var(--zc-radius-sm);
  border: 1px solid #CFDCFF;
  white-space: nowrap;
}

/* ── Use case section ─────────────────────────────────────── */
.uc-section { padding: 20px 24px 28px; }
.uc-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.uc-section-head h2 {
  font-size: var(--zc-font-size-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zc-text-tertiary);
}
.uc-count-badge {
  font-size: var(--zc-font-size-12);
  color: var(--zc-text-tertiary);
  background: var(--zc-bg-section);
  padding: 2px 7px;
  border: 1px solid var(--zc-border-3);
  border-radius: 999px;
}

/* ── Use case cards ───────────────────────────────────────── */
.uc-list {
  counter-reset: uc-counter;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: transparent;
}
/* When viewer is open, content is narrow — drop to 1 column */
.main-area.viewer-open .uc-list {
  grid-template-columns: 1fr;
}
.uc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-3);
  border-radius: var(--zc-radius-lg);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  position: relative;
  overflow: hidden;
  counter-increment: uc-counter;
  box-shadow: 0 1px 4px rgba(18,19,43,0.05), inset 3px 0 0 transparent;
}
/* Faint index number */
.uc-card::after {
  content: counter(uc-counter, decimal-leading-zero);
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 32px;
  font-weight: 800;
  color: var(--zc-text-primary);
  opacity: 0.04;
  pointer-events: none;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: opacity 0.12s;
}
.uc-card:hover {
  background: var(--zc-primary-soft);
  border-color: rgba(41,91,249,0.22);
  box-shadow: 0 4px 16px rgba(41,91,249,0.1), inset 3px 0 0 var(--zc-primary);
  transform: translateY(-1px);
}
.uc-card:hover::after { opacity: 0.07; }
.uc-card:hover .card-name { color: var(--zc-primary); }
.uc-card.active-card {
  background: var(--zc-info-bg);
  border-color: rgba(41,91,249,0.25);
  box-shadow: 0 4px 16px rgba(41,91,249,0.1), inset 3px 0 0 var(--zc-primary);
}
.card-dot { display: none; } /* replaced by border-left accent on card */
.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.card-name {
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  color: var(--zc-text-primary);
  transition: color 0.1s;
  line-height: 1.4;
  flex: 1;
}
.card-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.card-desc {
  font-size: var(--zc-font-size-13);
  color: var(--zc-text-tertiary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-industry {
  font-size: var(--zc-font-size-12);
  color: var(--zc-text-disabled);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.card-zia-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  border-radius: var(--zc-radius-xs);
  color: var(--zc-text-disabled);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
  padding: 0;
}
.uc-card:hover .card-zia-copy { opacity: 1; }
.card-zia-copy:hover { color: var(--zc-primary); background: var(--zc-info-bg); }
.card-zia-copy.copied { color: #16a34a; background: #dcfce7; opacity: 1; }
[data-theme="dark"] .card-zia-copy.copied { background: rgba(22,163,74,0.15); }

.card-arrow {
  font-size: 16px;
  color: var(--zc-text-disabled);
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}
.uc-card:hover .card-arrow { color: var(--zc-primary); }

/* ── Try in Creator CTA ───────────────────────────────────── */
.card-try-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 9px 3px 7px;
  font-size: 11px;
  font-weight: 600;
  font-family: system-ui, sans-serif;
  color: var(--zc-primary);
  background: rgba(41, 91, 249, 0.07);
  border: 1px solid rgba(41, 91, 249, 0.18);
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.card-try-btn:hover {
  background: rgba(41, 91, 249, 0.14);
  border-color: rgba(41, 91, 249, 0.35);
  color: var(--zc-primary-dark);
}
[data-theme="dark"] .card-try-btn {
  color: #7ca4ff;
  background: rgba(41, 91, 249, 0.12);
  border-color: rgba(41, 91, 249, 0.28);
}
[data-theme="dark"] .card-try-btn:hover {
  background: rgba(41, 91, 249, 0.22);
  border-color: rgba(41, 91, 249, 0.45);
  color: #a8c2ff;
}

/* ── Search results ───────────────────────────────────────── */
.search-header { padding: 20px 28px 14px; border-bottom: 1px solid var(--zc-border-4); }
.search-header__cat {
  font-size: var(--zc-font-size-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zc-text-tertiary);
  margin-bottom: 4px;
}
.search-header__title {
  font-size: var(--zc-font-size-18);
  font-weight: 700;
  color: var(--zc-text-primary);
  margin-bottom: 2px;
}
.search-header__sub { font-size: var(--zc-font-size-13); color: var(--zc-text-tertiary); }
mark { background: #fef3cd; color: #7c4a00; padding: 0 2px; border-radius: 2px; }

/* ── Empty state ──────────────────────────────────────────── */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 300px;
  color: var(--zc-text-disabled);
}
.empty p { font-size: var(--zc-font-size-14); }

/* ── Presentations tab ────────────────────────────────────── */
#tab-presentation { background: var(--zc-bg-card); }
.pres-layout { display: flex; height: 100%; width: 100%; }
.pres-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--zc-bg-sidebar);
  border-right: 1px solid var(--zc-border-sidebar);
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.pres-sidebar__head {
  font-size: var(--zc-font-size-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zc-text-tertiary);
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--zc-border-sidebar);
  margin-bottom: 6px;
}
.pres-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.1s;
}
.pres-item:hover { background: var(--zc-bg-hover); }
.pres-item.active {
  border-left-color: var(--zc-primary);
  background: rgba(41, 91, 249, 0.05);
}
.pres-item__icon {
  width: 28px; height: 28px;
  border-radius: var(--zc-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--zc-font-size-13);
  font-weight: 700;
  flex-shrink: 0;
}
.pres-item__name {
  font-size: var(--zc-font-size-14);
  font-weight: 600;
  color: var(--zc-text-secondary);
  line-height: 1.3;
}
.pres-item.active .pres-item__name { color: var(--zc-primary); font-weight: 700; }
.pres-item__type { display: none; }
.pres-viewer { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.pres-viewer__bar {
  height: var(--zc-tabbar-h);
  border-bottom: 1px solid var(--zc-border-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--zc-bg-section);
  flex-shrink: 0;
}
.pres-viewer__title {
  font-size: var(--zc-font-size-13);
  color: var(--zc-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pres-viewer__body { flex: 1; overflow: hidden; }
.pres-viewer__body object { width: 100%; height: 100%; border: none; display: block; }
.pres-open-btn {
  font-size: var(--zc-font-size-13);
  font-family: var(--zc-font);
  font-weight: 500;
  color: var(--zc-primary);
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border);
  border-radius: var(--zc-radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.pres-open-btn:hover { background: var(--zc-primary-soft); border-color: var(--zc-primary); }

/* ── Demo tab ─────────────────────────────────────────────── */
#tab-demo {
  background: var(--zc-bg-canvas);
  overflow: hidden;
}
.demo-shell {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Video list sidebar */
.demo-list {
  width: 260px;
  flex-shrink: 0;
  background: var(--zc-bg-sidebar);
  border-right: 1px solid var(--zc-border-sidebar);
  overflow-y: auto;
  padding: 20px 0;
}
.demo-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.demo-list-item:hover {
  background: var(--zc-secondary-hover);
}
.demo-list-item.active {
  background: var(--zc-bg-hover);
  border-left-color: var(--zc-primary);
}
.demo-list-item__num {
  font-size: var(--zc-font-size-11);
  font-weight: 700;
  color: var(--zc-text-disabled);
  letter-spacing: 0.05em;
  width: 22px;
  flex-shrink: 0;
}
.demo-list-item.active .demo-list-item__num {
  color: var(--zc-primary);
}
.demo-list-item__info {
  flex: 1;
  min-width: 0;
}
.demo-list-item__title {
  font-size: var(--zc-font-size-13);
  font-weight: 600;
  color: var(--zc-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.demo-list-item__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.demo-list-item__tags span {
  font-size: 10px;
  font-weight: 600;
  color: var(--zc-text-tertiary);
  background: var(--zc-border-4);
  border-radius: 3px;
  padding: 1px 6px;
}
.demo-list-item__play {
  color: var(--zc-text-disabled);
  flex-shrink: 0;
  transition: color 0.15s;
}
.demo-list-item:hover .demo-list-item__play,
.demo-list-item.active .demo-list-item__play {
  color: var(--zc-primary);
}

/* Player area */
.demo-player-area {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-player-wrap {
  border: 1px solid var(--zc-border-3);
  border-radius: var(--zc-radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--zc-shadow-card);
  height: calc(100vh - var(--zc-topbar-h) - var(--zc-tabbar-h) - 180px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.demo-player-bar {
  height: 36px;
  flex-shrink: 0;
  background: var(--zc-primary);
  display: flex;
  align-items: center;
  padding: 0 18px;
}
.demo-player-bar__title {
  font-size: var(--zc-font-size-12);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-player-body {
  flex: 1;
  min-height: 0;
  height: 0; /* forces flex child to respect parent height */
  display: flex;
  align-items: stretch;
  background: #000;
}
.demo-player-body video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.demo-embed-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Meta below player */
.demo-meta {
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-3);
  border-radius: var(--zc-radius-lg);
  padding: 24px 28px;
  box-shadow: var(--zc-shadow-card);
}
.demo-meta__title {
  font-size: var(--zc-font-size-16);
  font-weight: 700;
  color: var(--zc-text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.demo-meta__desc {
  font-size: var(--zc-font-size-14);
  color: var(--zc-text-tertiary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.demo-meta__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-tag {
  font-size: var(--zc-font-size-12);
  font-weight: 600;
  color: var(--zc-primary);
  background: var(--zc-primary-soft);
  border: 1px solid #d0dcff;
  border-radius: 4px;
  padding: 3px 10px;
}

/* ── Feedback tab ─────────────────────────────────────────── */
#tab-feedback {
  background: var(--zc-bg-section);
  overflow-y: auto;
  justify-content: center;
  align-items: flex-start;
}
.feedback-layout {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 0;
  overflow: hidden;
}

/* Left: info/context panel */
.fb-info {
  background: linear-gradient(160deg, #0f1535 0%, #1a2060 100%);
  padding: 52px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  overflow-y: auto;
}
.fb-info__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.fb-info__title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.fb-info__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.fb-info__points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fb-info__point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.fb-info__point-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
}
.fb-info__point-text {
  padding-top: 4px;
}
.fb-info__point-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2px;
}
.fb-info__point-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.fb-info__stat-row {
  display: flex;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.fb-info__stat { text-align: center; }
.fb-info__stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.fb-info__stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* Right: form panel */
.fb-panel {
  background: var(--zc-bg-card);
  border-left: 1px solid var(--zc-border-3);
  padding: 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

/* Mode header row */
.fb-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.fb-eyebrow {
  font-size: var(--zc-font-size-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zc-primary);
  margin-bottom: 4px;
}
.fb-title {
  font-size: var(--zc-font-size-20);
  font-weight: 700;
  color: var(--zc-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

/* Mode pills (Smart / Fields) */
.fb-mode-pills {
  display: flex;
  gap: 4px;
  background: var(--zc-bg-section);
  border: 1px solid var(--zc-border-3);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}
.fb-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: var(--zc-font-size-12);
  font-weight: 600;
  font-family: var(--zc-font);
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--zc-text-tertiary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.fb-mode-pill:hover { color: var(--zc-text-primary); }
.fb-mode-pill.active {
  background: var(--zc-bg-card);
  color: var(--zc-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Smart mode ── */
.fb-smart-mode, .fb-basic-mode {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fb-smart-hint {
  font-size: var(--zc-font-size-13);
  color: var(--zc-text-tertiary);
  line-height: 1.6;
  margin: 0 0 14px;
}
.fb-smart-input-wrap {
  position: relative;
  margin-bottom: 4px;
}
.fb-smart-textarea {
  min-height: 148px;
  resize: vertical;
  padding-bottom: 48px; /* room for mic button */
  font-size: var(--zc-font-size-14);
  line-height: 1.6;
}

/* Mic button */
.fb-mic-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--zc-bg-section);
  border: 1px solid var(--zc-border);
  border-radius: 20px;
  font-size: var(--zc-font-size-12);
  font-weight: 600;
  font-family: var(--zc-font);
  color: var(--zc-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  line-height: 1;
}
.fb-mic-btn:hover {
  background: var(--zc-primary-soft);
  border-color: var(--zc-primary);
  color: var(--zc-primary);
}
.fb-mic-btn.recording {
  background: #fff0f0;
  border-color: var(--zc-error);
  color: var(--zc-error);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
  animation: mic-pulse 1.5s ease-in-out infinite;
}
[data-theme="dark"] .fb-mic-btn.recording { background: rgba(220,53,69,0.12); }
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.06); }
}
.fb-mic-label { white-space: nowrap; }

/* Recording bar below textarea */
.fb-mic-recording-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 12px;
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  border-radius: var(--zc-radius-sm);
  font-size: var(--zc-font-size-12);
}
[data-theme="dark"] .fb-mic-recording-bar {
  background: rgba(220,53,69,0.08);
  border-color: rgba(220,53,69,0.2);
}
.fb-mic-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zc-error);
  flex-shrink: 0;
  animation: pulse-dot 1s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.fb-mic-status-text { color: var(--zc-error); font-weight: 600; flex: 1; }
.fb-mic-stop {
  background: none;
  border: 1px solid var(--zc-error);
  color: var(--zc-error);
  border-radius: 4px;
  font-size: var(--zc-font-size-11);
  font-family: var(--zc-font);
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.fb-mic-stop:hover { background: rgba(220,53,69,0.08); }

/* Thank you state */
.fb-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 48px 24px;
  animation: fb-fadein 0.4s ease;
}
@keyframes fb-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fb-thankyou__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.1);
  border: 1.5px solid rgba(5, 150, 105, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  margin-bottom: 4px;
}
.fb-thankyou__title {
  font-size: var(--zc-font-size-24);
  font-weight: 700;
  color: var(--zc-text-primary);
  letter-spacing: -0.02em;
}
.fb-thankyou__sub {
  font-size: var(--zc-font-size-14);
  color: var(--zc-text-secondary);
  line-height: 1.6;
  max-width: 300px;
}
.fb-thankyou__countdown {
  font-size: var(--zc-font-size-12);
  color: var(--zc-text-disabled);
  margin-top: 8px;
}

/* Smart mode actions row */
.fb-smart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.fb-sub {
  font-size: var(--zc-font-size-12);
  color: var(--zc-text-tertiary);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Two-column grid for name/company and designation/email */
.fb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* zc-formcontrol fields */
.zc-formcontrol { display: block; margin-bottom: 18px; }
.zc-label {
  display: block;
  font-size: var(--zc-font-size-13);
  font-weight: 600;
  color: var(--zc-text-secondary);
  margin-bottom: 5px;
}
.fb-required { color: var(--zc-error); margin-left: 2px; }
.fb-optional { font-weight: 400; color: var(--zc-text-disabled); font-size: var(--zc-font-size-12); }
.zc-input, .zc-textarea, .zc-select {
  width: 100%;
  height: var(--zc-form-height);
  padding: 0 12px;
  font-size: var(--zc-font-size-14);
  font-family: var(--zc-font);
  color: var(--zc-text-primary);
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border);
  border-radius: var(--zc-radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.zc-input::placeholder { color: var(--zc-text-placeholder); }
.zc-input:hover, .zc-select:hover { border-color: var(--zc-text-tertiary); }
.zc-input:focus, .zc-select:focus {
  border-color: var(--zc-primary);
  box-shadow: 0 0 0 3px rgba(41, 91, 249, 0.12);
}
.zc-textarea {
  height: auto;
  min-height: 76px;
  padding: 8px 12px;
  line-height: 1.5;
  resize: vertical;
}
.zc-textarea::placeholder { color: var(--zc-text-placeholder); }
.zc-textarea:hover { border-color: var(--zc-text-tertiary); }
.zc-textarea:focus {
  border-color: var(--zc-primary);
  box-shadow: 0 0 0 3px rgba(41, 91, 249, 0.12);
}
.zc-select { cursor: pointer; }
.zc-error-msg {
  display: block;
  margin-top: 4px;
  font-size: var(--zc-font-size-12);
  color: var(--zc-error);
}

/* Inline error banner */
.fb-error-banner {
  font-size: var(--zc-font-size-13);
  color: var(--zc-error);
  background: var(--zc-error-bg);
  border: 1px solid #F5BEBE;
  border-radius: var(--zc-radius-sm);
  padding: 9px 12px;
  margin-bottom: 4px;
}

/* zc-button */
.zc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: var(--zc-font-size-13);
  font-weight: 600;
  font-family: var(--zc-font);
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--zc-radius-sm);
  cursor: pointer;
  outline: none;
  transition: background 0.15s, border-color 0.15s;
}
.zc-button:focus-visible { box-shadow: 0 0 0 3px rgba(41, 91, 249, 0.25); }
.zc-button-primary {
  color: #fff;
  background: var(--zc-primary);
  border-color: var(--zc-primary);
}
.zc-button-primary:hover { background: var(--zc-primary-hover); border-color: var(--zc-primary-hover); }
.zc-button-primary:disabled {
  background: var(--zc-bg-disabled) !important;
  border-color: var(--zc-bg-disabled) !important;
  color: var(--zc-text-disabled) !important;
  cursor: not-allowed;
}
.zc-button-outline {
  color: var(--zc-primary);
  background: var(--zc-bg-card);
  border-color: var(--zc-primary);
}
.zc-button-outline:hover { background: var(--zc-primary-soft); }

/* Token section */
.fb-token-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--zc-border-4);
}
.fb-token-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: var(--zc-font-size-13);
  font-family: var(--zc-font);
  color: var(--zc-text-tertiary);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.fb-token-toggle:hover { color: var(--zc-primary); }
.fb-token-note {
  font-size: var(--zc-font-size-13);
  color: var(--zc-text-tertiary);
  line-height: 1.6;
  margin-top: 10px;
}
.fb-token-note code {
  font-family: monospace;
  background: var(--zc-bg-section);
  padding: 1px 5px;
  border-radius: var(--zc-radius-sm);
  font-size: var(--zc-font-size-12);
  color: var(--zc-primary);
}
.fb-token-row { display: flex; gap: 8px; margin-top: 8px; }
.fb-token-row .zc-input { flex: 1; }
.fb-token-status { font-size: var(--zc-font-size-12); color: var(--zc-text-tertiary); margin-top: 6px; }

/* ── Toast — zalertbanner style ───────────────────────────── */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 260px;
  max-width: 420px;
  background: var(--zc-text-primary);
  color: #fff;
  font-size: var(--zc-font-size-13);
  font-family: var(--zc-font);
  padding: 11px 18px;
  border-radius: var(--zc-radius-md);
  box-shadow: var(--zc-shadow-modal);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.app-toast--error { background: var(--zc-error); }
.app-toast--success { background: var(--zc-success); }

/* ── Inline shortcut hints ───────────────────────────────── */

/* Tab bar key chip */
.tab-key-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 7px;
  background: rgba(41,91,249,0.1);
  border: 1px solid rgba(41,91,249,0.2);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--zc-primary);
  line-height: 1;
  opacity: 0.7;
}
.zc-tab-btn.active .tab-key-hint {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  opacity: 1;
}

/* Sidebar search hint — hidden until search is focused */
.sidebar__search-hint {
  margin-top: 5px;
  font-size: 11px;
  color: var(--zc-text-tertiary);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}
.sidebar__search:focus-within .sidebar__search-hint {
  max-height: 24px;
  opacity: 1;
}
.sidebar__search-hint kbd {
  min-width: 20px;
  height: 17px;
  font-size: 10px;
  padding: 0 4px;
  background: var(--zc-bg-canvas);
  border-color: var(--zc-border-2);
  color: var(--zc-text-secondary);
}


/* Search results Esc hint in sub-text */
.search-header__sub kbd {
  min-width: 20px;
  height: 18px;
  font-size: 10px;
  padding: 0 4px;
  background: var(--zc-bg-section);
  border-color: var(--zc-border-2);
  color: var(--zc-text-secondary);
  vertical-align: middle;
}

/* ── Keyboard shortcut hint (topbar) ─────────────────────── */
.kb-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--zc-font-size-12);
  font-weight: 600;
  font-family: var(--zc-font);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--zc-radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-right: 12px;
}
.kb-hint:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── Keyboard shortcut overlay ───────────────────────────── */
.kb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,13,30,0.55);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kb-modal {
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-2);
  border-radius: var(--zc-radius-lg);
  box-shadow: var(--zc-shadow-modal);
  width: 380px;
  overflow: hidden;
}
.kb-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--zc-border-3);
  background: var(--zc-bg-section);
}
.kb-modal__title {
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  color: var(--zc-text-primary);
  letter-spacing: -0.01em;
}
.kb-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--zc-font-size-14);
  color: var(--zc-text-tertiary);
  padding: 2px 6px;
  border-radius: var(--zc-radius-sm);
  transition: background 0.12s;
}
.kb-modal__close:hover { background: var(--zc-secondary-hover); color: var(--zc-text-primary); }
.kb-modal__body {
  padding: 8px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kb-group {
  margin-top: 14px;
}
.kb-group__label {
  font-size: var(--zc-font-size-11);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zc-text-tertiary);
  margin-bottom: 8px;
}
.kb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.kb-row span {
  font-size: var(--zc-font-size-13);
  color: var(--zc-text-secondary);
  margin-left: 4px;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  background: var(--zc-bg-section);
  border: 1px solid var(--zc-border-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: var(--zc-font-size-12);
  font-weight: 700;
  font-family: var(--zc-font);
  color: var(--zc-text-primary);
  line-height: 1;
}

/* ── Theme toggle button ──────────────────────────────────── */
.app-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-topbar__theme-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--zc-border-3);
  background: var(--zc-secondary-bg);
  color: var(--zc-text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.app-topbar__theme-toggle:hover {
  background: var(--zc-bg-hover);
  border-color: var(--zc-primary);
  color: var(--zc-primary);
}
.theme-icon { display: block; }
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun  { display: block; }

/* ── Dark theme tokens ────────────────────────────────────── */
[data-theme="dark"] {
  --zc-primary:          #4F7CFF;
  --zc-primary-hover:    #6690FF;
  --zc-primary-dark:     #3A60E0;
  --zc-primary-soft:     #141A2E;

  --zc-secondary-bg:     #1A1B2E;
  --zc-secondary-hover:  #21233A;
  --zc-bg-canvas:        #0F1021;
  --zc-bg-section:       #13152A;
  --zc-bg-card:          #181A2F;
  --zc-bg-hover:         #1E2040;
  --zc-bg-disabled:      #2A2C44;
  --zc-bg-sidebar:       #141628;

  --zc-text-primary:     #EEEEFF;
  --zc-text-secondary:   #CDD0F0;
  --zc-text-tertiary:    #8B92C4;
  --zc-text-disabled:    #4A5070;
  --zc-text-placeholder: #555A80;
  --zc-text-muted:       #7C84B0;

  --zc-border:           #2E3160;
  --zc-border-2:         #272A55;
  --zc-border-3:         #21244A;
  --zc-border-4:         #1C1F42;
  --zc-border-sidebar:   #222546;

  --zc-error:            #FF6B6B;
  --zc-error-bg:         #2A1A1A;
  --zc-success:          #4ADE80;
  --zc-success-bg:       #102018;
  --zc-warning:          #FBBF24;
  --zc-warning-bg:       #221A08;
  --zc-info:             #4F7CFF;
  --zc-info-bg:          #141A2E;

  --zc-shadow-card:      0 1px 6px rgba(0,0,0,0.4);
  --zc-shadow-modal:     0 12px 48px rgba(0,0,0,0.6);
  --zc-shadow-topbar:    0 1px 0 var(--zc-border-4);
}

/* ── Overview page ────────────────────────────────────────── */
.ov-page {
  flex: 1;
  overflow-y: auto;
  background: var(--zc-bg-canvas);
}

/* === HERO === */
.ov-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 60px 60px;
  background: var(--zc-bg-canvas);
  border-bottom: 1px solid var(--zc-border-4);
}
/* Radial glow — uses primary color so adapts to dark mode */
.ov-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -40px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41,91,249,0.09) 0%, transparent 65%);
  pointer-events: none;
}
/* Dot grid — masks out toward edges */
.ov-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--zc-border-2) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 75% 80% at 65% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 65% 40%, black 20%, transparent 75%);
}
.ov-hero-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Eyebrow pill */
.ov-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--zc-primary);
  background: rgba(41,91,249,0.07);
  border: 1px solid rgba(41,91,249,0.18);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 24px;
}
.ov-eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--zc-primary);
  flex-shrink: 0;
  animation: ov-pulse 2.4s ease-in-out infinite;
}
@keyframes ov-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.7); }
}

/* Hero title */
.ov-hero__title {
  font-size: 48px;
  font-weight: 800;
  color: var(--zc-text-primary);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.ov-hero__title em {
  font-style: normal;
  color: var(--zc-primary);
}
.ov-hero__sub {
  font-size: var(--zc-font-size-16);
  color: var(--zc-text-tertiary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

/* Pills with inline SVG icon */
.ov-hero__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ov-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: 0.01em;
}
.ov-pill svg { flex-shrink: 0; }
.ov-pill--blue   { color: var(--zc-primary); border-color: rgba(41,91,249,0.22); background: rgba(41,91,249,0.07); }
.ov-pill--green  { color: #059669; border-color: rgba(5,150,105,0.22); background: rgba(5,150,105,0.07); }
.ov-pill--amber  { color: #D97706; border-color: rgba(217,119,6,0.22);  background: rgba(217,119,6,0.07); }
[data-theme="dark"] .ov-pill--green { color: #4ADE80; border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.07); }
[data-theme="dark"] .ov-pill--amber { color: #FBB924; border-color: rgba(251,185,36,0.25); background: rgba(251,185,36,0.07); }

/* Diagram card — glassy treatment */
.ov-hero__diagram {
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-3);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 8px 32px rgba(41,91,249,0.07), 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .ov-hero__diagram {
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ov-diag-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--zc-text-disabled);
  text-align: center;
  margin-bottom: 18px;
}
.ov-diag-nodes {
  display: flex;
  align-items: center;
  gap: 0;
}
.ov-diag-node {
  flex: 1;
  padding: 14px 10px;
  background: var(--zc-bg-section);
  border: 1px solid var(--zc-border-3);
  border-radius: 10px;
  text-align: center;
}
.ov-diag-node--sap {
  border-color: rgba(97,136,208,0.35);
  background: rgba(15,37,87,0.06);
}
[data-theme="dark"] .ov-diag-node--sap {
  background: rgba(15,37,87,0.55);
  border-color: rgba(97,136,208,0.3);
}
.ov-diag-node--creator {
  border-color: rgba(41,91,249,0.3);
  background: rgba(41,91,249,0.04);
}
[data-theme="dark"] .ov-diag-node--creator {
  background: rgba(41,91,249,0.1);
}
.ov-diag-node__icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
}
.ov-diag-node--sap    .ov-diag-node__icon { background: rgba(97,136,208,0.12); }
.ov-diag-node--creator .ov-diag-node__icon { background: rgba(41,91,249,0.12); }
.ov-diag-node--users  .ov-diag-node__icon { background: rgba(5,150,105,0.10); }
[data-theme="dark"] .ov-diag-node--users .ov-diag-node__icon { background: rgba(74,222,128,0.10); }
.ov-diag-node__name {
  font-size: 11px;
  font-weight: 800;
  color: var(--zc-text-primary);
  margin-bottom: 2px;
}
.ov-diag-node__sub {
  font-size: 10px;
  color: var(--zc-text-disabled);
}
.ov-diag-conn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  flex-shrink: 0;
}
.ov-diag-conn__badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(41,91,249,0.09);
  border: 1px solid rgba(41,91,249,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-diag-conn__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--zc-text-disabled);
  text-align: center;
  line-height: 1.4;
}

/* === STATS BAR === */
.ov-stats {
  border-bottom: 1px solid var(--zc-border-4);
  background: var(--zc-bg-section);
}
.ov-stats-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 36px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ov-stat {
  padding: 0 28px;
  border-right: 1px solid var(--zc-border-3);
}
.ov-stat:first-child { padding-left: 0; }
.ov-stat:last-child  { border-right: none; }
.ov-stat__num {
  font-size: 40px;
  font-weight: 800;
  color: var(--zc-primary);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 6px;
}
.ov-stat__num--dim {
  color: var(--zc-text-tertiary);
}
.ov-stat__label {
  font-size: var(--zc-font-size-13);
  color: var(--zc-text-tertiary);
  line-height: 1.5;
}

/* === SECTIONS === */
.ov-section {
  padding: 60px 60px;
  border-bottom: 1px solid var(--zc-border-4);
}
.ov-section--tinted { background: var(--zc-bg-section); }
.ov-section-inner { max-width: 1020px; margin: 0 auto; }
.ov-section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--zc-primary);
  margin-bottom: 12px;
}
.ov-section__title {
  font-size: 30px;
  font-weight: 800;
  color: var(--zc-text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.18;
}
.ov-section__sub {
  font-size: var(--zc-font-size-15);
  color: var(--zc-text-tertiary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

/* === PROBLEM CARDS === */
.ov-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ov-problem-card {
  padding: 26px;
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-3);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}
.ov-problem-card:hover {
  border-color: rgba(239,68,68,0.4);
  transform: translateY(-2px);
}
/* Thin top accent line */
.ov-problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(239,68,68,0.7);
  border-radius: 14px 14px 0 0;
}
.ov-problem-card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(239,68,68,0.09);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
[data-theme="dark"] .ov-problem-card__icon { background: rgba(239,68,68,0.12); color: #F87171; }
.ov-problem-card__title {
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  color: var(--zc-text-primary);
  margin-bottom: 8px;
}
.ov-problem-card__body {
  font-size: var(--zc-font-size-13);
  color: var(--zc-text-tertiary);
  line-height: 1.65;
}

/* === FLOW DIAGRAM === */
.ov-flow {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: stretch;
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-3);
  border-radius: 16px;
  overflow: hidden;
}
.ov-flow-node { padding: 26px 22px; }
.ov-flow-node--sap {
  background: rgba(15,37,87,0.04);
  border-right: 1px solid var(--zc-border-4);
}
[data-theme="dark"] .ov-flow-node--sap { background: rgba(15,37,87,0.45); }
.ov-flow-node--creator { border-right: 1px solid var(--zc-border-4); }
.ov-flow-conn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 8px;
  background: var(--zc-bg-section);
  border-right: 1px solid var(--zc-border-4);
}
.ov-flow-conn:last-of-type { border-right: none; }
.ov-flow-conn__badge {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-flow-conn__badge--api {
  background: rgba(41,91,249,0.09);
  border: 1px solid rgba(41,91,249,0.22);
}
.ov-flow-conn__badge--serve {
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.2);
}
[data-theme="dark"] .ov-flow-conn__badge--serve {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.2);
}
.ov-flow-conn__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--zc-text-disabled);
  text-align: center;
  line-height: 1.4;
}
.ov-flow-node__badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ov-flow-node__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ov-flow-node--sap .ov-flow-node__badge    { color: #6188D0; }
.ov-flow-node--creator .ov-flow-node__badge { color: var(--zc-primary); }
.ov-flow-node--users .ov-flow-node__badge   { color: #059669; }
[data-theme="dark"] .ov-flow-node--users .ov-flow-node__badge { color: #4ADE80; }
.ov-flow-node__title {
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  color: var(--zc-text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.ov-flow-item {
  font-size: 12px;
  color: var(--zc-text-tertiary);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.ov-flow-item::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--zc-border);
  flex-shrink: 0;
}

/* === CAPABILITY CARDS === */
.ov-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ov-cap-card {
  padding: 26px;
  background: var(--zc-bg-card);
  border: 1px solid var(--zc-border-3);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.ov-cap-card:hover {
  border-color: rgba(41,91,249,0.25);
  transform: translateY(-2px);
  background: var(--zc-primary-soft);
}
.ov-cap-card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ov-cap-card__content { min-width: 0; }
.ov-cap-card__title {
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  color: var(--zc-text-primary);
  margin-bottom: 6px;
}
.ov-cap-card__body {
  font-size: var(--zc-font-size-13);
  color: var(--zc-text-tertiary);
  line-height: 1.65;
}

/* === CTA STRIP === */
.ov-cta {
  padding: 60px 60px;
  background: linear-gradient(135deg, #0A1560 0%, #1A2A8C 40%, #295BF9 75%, #4F7CFF 100%);
  position: relative;
  overflow: hidden;
}
.ov-cta::before {
  content: '';
  position: absolute;
  top: -70px; right: -50px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.ov-cta::after {
  content: '';
  position: absolute;
  bottom: -90px; right: 220px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.ov-cta-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.ov-cta__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.ov-cta__title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 7px;
  line-height: 1.22;
}
.ov-cta__sub {
  font-size: var(--zc-font-size-14);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.ov-cta__btn {
  flex-shrink: 0;
  padding: 14px 28px;
  background: #fff;
  color: #0A1560;
  border: none;
  border-radius: 9px;
  font-size: var(--zc-font-size-14);
  font-weight: 700;
  font-family: var(--zc-font);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}
.ov-cta__btn:hover { background: #EEF2FF; transform: translateY(-1px); }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

/* ── Tablet (≤900px) ──────────────────────────────────────── */
@media (max-width: 900px) {
  /* Topbar — hide decorative items */
  .app-topbar__divider,
  .app-topbar__label,
  .app-topbar__event,
  .kb-hint { display: none; }

  /* Tabbar — scrollable, hide key hints */
  .app-tabbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-key-hint { display: none; }
  .tabbar__search-btn span { display: none; }
  .tabbar__search-btn { padding: 0 10px; min-width: 36px; }

  /* Sidebar — narrower */
  :root { --zc-sidebar-w: 200px; }
  .nav-item__sub { display: none; }

  /* Use case tab — stack viewer below content */
  .main-area { flex-direction: column; }
  .viewer-pane { width: 100% !important; max-width: 100% !important; border-left: none; border-top: 1px solid var(--zc-border-3); height: 55vh; }
  .resize-handle { display: none; }

  /* Use case cards stay 3-col at 900px, drop to 2 below 700px */
  .uc-card { gap: 10px; }

  /* Content hero */
  .content-hero { padding: 20px; }

  /* Presentations — stack sidebar horizontal */
  .pres-layout { flex-direction: column; }
  .pres-sidebar { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; border-right: none; border-bottom: 1px solid var(--zc-border-3); width: 100%; max-width: 100%; padding: 8px; gap: 8px; }
  .pres-sidebar__head { display: none; }
  .pres-item { flex-shrink: 0; padding: 8px 12px; }
  .pres-viewer { flex: 1; min-height: 320px; }

  /* Demo — stack list horizontal above player */
  .demo-shell { flex-direction: column; }
  .demo-list { width: 100%; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; border-right: none; border-bottom: 1px solid var(--zc-border-3); padding: 8px; gap: 8px; max-height: 80px; }
  .demo-list-item { flex-shrink: 0; flex-direction: row; align-items: center; padding: 6px 12px; min-width: 160px; }
  .demo-player-area { min-height: 0; flex: 1; }
  .demo-player-wrap { height: 40vh; min-height: 220px; }
  .demo-meta { padding: 16px 20px; }

  /* Feedback — single column, info panel on top */
  .feedback-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .fb-info { padding: 32px 28px; flex-direction: row; align-items: center; gap: 32px; justify-content: flex-start; min-height: auto; }
  .fb-info__title { font-size: 24px; margin-bottom: 6px; white-space: normal; }
  .fb-info__sub { font-size: 13px; }
  .fb-info__points { flex-direction: row; gap: 16px; flex-wrap: wrap; }
  .fb-panel { border-left: none; border-top: 1px solid var(--zc-border-3); padding: 28px; justify-content: flex-start; overflow-y: auto; }
  .fb-mode-header { flex-wrap: wrap; }

  /* Home grid — 2 columns */
  .home-grid { grid-template-columns: repeat(2, 1fr); }

  /* Overview — hero stacks, reduce section padding */
  .ov-hero { padding: 40px 32px; }
  .ov-hero-inner { flex-direction: column; gap: 32px; }
  .ov-hero__content { max-width: 100%; }
  .ov-hero__diagram { width: 100%; max-width: 100%; }
  .ov-stats-inner { padding: 28px 32px; }
  .ov-section { padding: 40px 32px; }
  /* Flow diagram — stack vertically on tablet */
  .ov-flow { grid-template-columns: 1fr; }
  .ov-flow-node--sap,
  .ov-flow-node--creator { border-right: none; border-bottom: 1px solid var(--zc-border-4); }
  .ov-flow-conn { flex-direction: row; justify-content: center; padding: 12px 20px; border-right: none; border-bottom: 1px solid var(--zc-border-4); transform: none; }
  .ov-flow-conn:last-of-type { border-bottom: none; }
  .ov-caps { grid-template-columns: repeat(2, 1fr); }
  .ov-problems { grid-template-columns: repeat(2, 1fr); }
  .ov-cta { padding: 40px 32px; }
  .ov-cta-inner { gap: 28px; }
  .ov-section__title { font-size: 24px; }
}

/* ── Narrow tablet / large phone (≤700px) ────────────────── */
@media (max-width: 700px) {
  .uc-list { grid-template-columns: repeat(2, 1fr); }
  .uc-card:nth-child(3n) { border-right: 1px solid var(--zc-border-4); }
  .uc-card:nth-child(2n) { border-right: none; }
}

/* ── Mobile (≤600px) ──────────────────────────────────────── */
@media (max-width: 600px) {
  /* Topbar — compact */
  .app-topbar { padding: 0 12px; gap: 8px; }
  .app-topbar__zoho { font-size: 13px; }
  .app-topbar__sap  { font-size: 13px; }
  .app-topbar__sep  { font-size: 13px; }
  .app-topbar__logo-group { gap: 4px; }

  /* Tabbar — tight */
  .app-tabbar { padding: 0 4px; gap: 0; }
  .zc-tab-btn { font-size: 12px; padding: 0 10px; }

  /* Sidebar — hide, full width browse via home cards */
  .app-sidebar { display: none !important; }
  :root { --zc-sidebar-w: 0px; }

  /* Use case cards — single column on mobile */
  .content { padding: 10px; }
  .uc-list { grid-template-columns: 1fr; }
  .uc-card:nth-child(2n) { border-right: none; }
  .uc-card:nth-child(3n) { border-right: none; }
  .uc-card { padding: 12px 14px; gap: 8px; border-right: none; }
  .card-name { font-size: 13px; }
  .card-desc { display: none; }
  .card-try-btn { font-size: 11px; padding: 5px 10px; }

  /* Content hero */
  .content-hero { padding: 14px; }
  .content-hero__title { font-size: 15px; }
  .hero-pills { flex-wrap: wrap; gap: 6px; }

  /* Viewer — taller on small screens */
  .viewer-pane { height: 60vh; }

  /* Home grid — single column */
  .home-grid { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .home-header { flex-direction: column; gap: 12px; padding: 14px 12px; }
  .home-ind-card { padding: 16px; }
  .home-stats { gap: 14px; flex-wrap: wrap; }
  .home-stat__num { font-size: 22px; }

  /* Presentations */
  .pres-viewer { min-height: 280px; }
  .pres-viewer__bar { padding: 8px 12px; }

  /* Demo */
  .demo-player-wrap { height: 35vh; min-height: 200px; }
  .demo-player-bar { padding: 8px 12px; }
  .demo-meta { padding: 12px 14px; }
  .demo-meta__title { font-size: 14px; }
  .demo-meta__desc { font-size: 12px; }
  .demo-list-item { min-width: 140px; }

  /* Feedback — compact single column */
  .feedback-layout { overflow-y: auto; }
  .fb-info { flex-direction: column; padding: 24px 20px; gap: 16px; align-items: flex-start; min-height: auto; }
  .fb-info__title { font-size: 22px; }
  .fb-info__sub { font-size: 13px; }
  .fb-info__points { flex-direction: column; gap: 12px; }
  .fb-panel { padding: 20px; overflow-y: visible; }
  .fb-title { font-size: 17px; }
  .zc-formcontrol { margin-bottom: 14px; }
  .zc-input, .zc-textarea { font-size: 14px; }

  /* Overview — mobile scale */
  .ov-hero { padding: 28px 16px 24px; }
  .ov-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .ov-hero__title { font-size: 30px; letter-spacing: -0.02em; word-break: break-word; hyphens: auto; }
  .ov-hero__sub { font-size: 14px; max-width: 100%; }
  .ov-hero__pills { flex-wrap: wrap; gap: 6px; }
  .ov-eyebrow { font-size: 10px; padding: 4px 10px; }

  /* Diagram card — remove rotated connectors, show simple vertical stack */
  .ov-hero__diagram { padding: 16px; }
  .ov-diag-nodes { flex-direction: column; align-items: stretch; gap: 0; }
  .ov-diag-node { border-radius: 8px; padding: 10px 12px; }
  .ov-diag-conn { display: none; }

  /* Stats — 2×2 grid with cell borders */
  .ov-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 0; padding: 0; }
  .ov-stat { padding: 20px 16px; border-bottom: 1px solid var(--zc-border-3); border-right: none; }
  .ov-stat:nth-child(odd) { border-right: 1px solid var(--zc-border-3); }
  .ov-stat:nth-child(3),
  .ov-stat:nth-child(4) { border-bottom: none; }
  .ov-stat:first-child { padding-left: 16px; }
  .ov-stat__num { font-size: 28px; }

  /* Sections */
  .ov-section { padding: 28px 16px; }
  .ov-section__title { font-size: 22px; }
  .ov-section__sub { font-size: 13px; margin-bottom: 20px; max-width: 100%; }
  .ov-section__label { font-size: 10px; }

  /* Flow diagram — simple vertical stack, no rotation */
  .ov-flow { grid-template-columns: 1fr; }
  .ov-flow-node { padding: 18px 16px; }
  .ov-flow-node--sap { border-right: none; border-bottom: 1px solid var(--zc-border-4); }
  .ov-flow-node--creator { border-right: none; border-bottom: 1px solid var(--zc-border-4); }
  .ov-flow-conn { flex-direction: row; justify-content: center; padding: 10px 16px; border-right: none; border-bottom: 1px solid var(--zc-border-4); transform: none; }
  .ov-flow-conn:last-of-type { border-bottom: none; }

  /* Problem / capability cards */
  .ov-problems { grid-template-columns: 1fr; gap: 10px; }
  .ov-problem-card { padding: 18px; }
  .ov-caps { grid-template-columns: 1fr; gap: 10px; }
  .ov-cap-card { padding: 16px; gap: 12px; }

  /* CTA */
  .ov-cta { padding: 28px 16px; }
  .ov-cta-inner { flex-direction: column; gap: 20px; text-align: center; }
  .ov-cta__btn { align-self: stretch; justify-content: center; }
  .ov-cta__title { font-size: 20px; }

  /* Spotlight */
  .spotlight__panel { width: calc(100vw - 24px); max-height: 80vh; }
  .spotlight__input { font-size: 14px; }

  /* Keyboard overlay */
  .kb-modal { width: calc(100vw - 32px); max-height: 80vh; overflow-y: auto; }

  /* Toast */
  .app-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
