:root {
  color-scheme: dark;
  --bg: #090a12;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --text: #f6f2ff;
  --muted: #a9a2bd;
  --opal: #9ee8c7;
  --violet: #9ee8c7;
  --pink: #c8f7df;
  --opal-green: #9ee8c7;
  --opal-mint: #9ee8c7;
  --opal-soft: #c8f7df;
  --border: rgba(255, 255, 255, 0.13);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(158, 232, 199, 0.18), transparent 35%),
    radial-gradient(circle at 70% 10%, rgba(158, 232, 199, 0.20), transparent 34%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.45 !important;
  filter: grayscale(1) saturate(0.25) !important;
  box-shadow: none !important;
}
button:disabled:hover,
button[aria-disabled="true"]:hover {
  transform: none !important;
}

.shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
html[dir="ltr"] body { text-align: left; }
html[dir="rtl"] body { text-align: right; }
html[dir="ltr"] .shell { direction: ltr; }
html[dir="rtl"] .shell { direction: rtl; }
html[dir="ltr"] .sidebar { border-left: 0; border-right: 1px solid var(--border); }
html[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid var(--border); }
html[dir="ltr"] .brand,
html[dir="ltr"] .hero,
html[dir="ltr"] .section-title,
html[dir="ltr"] .tool-card-main,
html[dir="ltr"] .chat-composer { direction: ltr; }
html[dir="rtl"] .brand,
html[dir="rtl"] .hero,
html[dir="rtl"] .section-title,
html[dir="rtl"] .tool-card-main,
html[dir="rtl"] .chat-composer { direction: rtl; }
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  border-inline-end: 1px solid var(--border);
  padding: 28px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; }
.logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
nav { display: grid; gap: 10px; }
.sidebar-user {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.logout-button { text-align: center; text-decoration: none; }
.nav, .section-title button, #refreshAgents, #refreshRuns {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
}
.nav { text-align: start; text-decoration: none; }
.nav-link { display: block; }
.brand-link { color: inherit; text-decoration: none; }
.nav.active, .nav:hover { background: var(--panel-strong); border-color: rgba(158, 232, 199, 0.35); }

main { padding: 34px; max-width: 1180px; width: 100%; }
.hero {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  margin-bottom: 28px;
}
.language-toggle {
  position: fixed;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}
.eyebrow { color: var(--opal); margin: 0 0 8px; font-weight: 700; letter-spacing: 0.04em; }
h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 12px; line-height: 1.02; }
h2 { margin: 0; }
p { color: var(--muted); }
.primary {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  color: #090a12;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(135deg, var(--opal), var(--violet));
  box-shadow: 0 12px 36px rgba(158, 232, 199, 0.18);
}
.view { display: none; }
.view.active { display: block; }
.section-title { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  background: var(--panel);
}
.agent-card { position: relative; }
.agent-card h3 { margin: 0 0 8px; }
.agent-card-header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.icon-button {
  width: 34px; height: 34px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}
.context-hint { font-size: 12px; opacity: 0.8; margin-top: 14px; }
.meta { color: var(--muted); font-size: 13px; margin: 8px 0; word-break: break-word; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag { border: 1px solid var(--border); color: var(--opal); border-radius: 999px; padding: 4px 9px; font-size: 12px; }
.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; color: var(--muted); }
.field { display: grid; gap: 7px; }
.field > label { color: var(--muted); }
.knowledge-field {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: 1px solid rgba(158, 232, 199, 0.18);
  border-radius: 18px;
  background: rgba(158, 232, 199, 0.045);
}
.knowledge-textarea {
  position: relative;
  z-index: 2;
  min-height: 170px;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}
.file-upload-control {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(158, 232, 199, 0.4);
  border-radius: 12px;
  color: var(--opal);
  background: rgba(158, 232, 199, 0.08);
  cursor: pointer;
}
.knowledge-files-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.knowledge-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  color: var(--text);
  font-size: 13px;
}
.knowledge-file-row a { color: var(--opal); }
.knowledge-file-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.knowledge-delete-button {
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 12px;
}
.tools-picker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}
.tools-picker h3 { margin: 0; }
.tool-sections { display: grid; gap: 16px; }
.tool-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(0,0,0,0.12);
}
.tool-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.tool-section-head h4 { margin: 0; color: var(--text); font-size: 17px; }
.tool-section-head .meta { margin: 0; max-width: 680px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.compact-tool-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.app-tool-grid { grid-template-columns: minmax(260px, 520px); }
.channel-tool-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tool-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  color: var(--text);
}
.connected-tool-card {
  grid-template-columns: 1fr;
  align-content: space-between;
}
.featured-tool-card {
  border-color: rgba(180, 140, 255, 0.55);
  background: linear-gradient(135deg, rgba(115,87,255,0.18), rgba(0,0,0,0.16));
}
.tool-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}
.tool-logo {
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background-color: rgba(255,255,255,0.92);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 25px 25px;
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.85);
  flex: 0 0 auto;
}
.logo-gmail { background-image: url('/assets/tool-icons/gmail.svg'); }
.logo-drive { background-image: url('/assets/tool-icons/drive.svg'); }
.logo-docs { background-image: url('/assets/tool-icons/docs.svg'); }
.logo-sheets { background-image: url('/assets/tool-icons/sheets.svg'); }
.logo-slides { background-image: url('/assets/tool-icons/slides.svg'); }
.logo-calendar { background-image: url('/assets/tool-icons/calendar.svg'); }
.logo-meet { background-image: url('/assets/tool-icons/meet.svg'); }
.logo-zoom { background-image: url('/assets/tool-icons/zoom.svg'); }
.logo-microsoft { background-image: url('/assets/tool-icons/microsoft.svg'); }
.logo-meta { background-image: url('/assets/tool-icons/meta.svg'); }
.logo-whatsapp { background-image: url('/assets/tool-icons/whatsapp.svg'); }
.logo-youtube { background-image: url('/assets/tool-icons/youtube.svg'); }
.logo-canva { background-image: url('/assets/tool-icons/canva.svg'); }
.logo-github { background-image: url('/assets/tool-icons/github.svg'); }
.logo-airtable { background-image: url('/assets/tool-icons/airtable.svg'); }
.logo-linkedin { background-image: url('/assets/tool-icons/linkedin.svg'); }
.logo-opal { background-image: url('/assets/tool-icons/opal.svg'); }
.tool-copy { min-width: 0; }
.tool-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.tool-card-actions button {
  white-space: nowrap;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11.5px;
}
.tool-card-actions button[hidden] { display: none !important; }
.tool-card-actions button[data-waiting-for-agent="true"] {
  background: rgba(148, 163, 184, 0.22) !important;
  color: #94a3b8 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}
.tool-card-actions button.is-loading,
.tool-card-actions button:disabled.is-loading {
  position: relative;
  opacity: 0.78;
  cursor: wait;
  pointer-events: none;
}
.tool-card-actions button.is-loading::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-end: 6px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  vertical-align: -1px;
  animation: toolButtonSpin 0.8s linear infinite;
}
@keyframes toolButtonSpin { to { transform: rotate(360deg); } }
.tool-status {
  color: var(--opal);
  min-height: 0;
  margin-inline-end: auto;
  font-size: 12px;
  opacity: 0.9;
}
.tool-card:has(input:checked) {
  border-color: rgba(158, 232, 199, 0.55);
  background: rgba(158, 232, 199, 0.10);
}
.tool-card input { width: auto; margin-top: 3px; }
.green-api-card {
  min-width: 0;
  overflow: hidden;
}
.green-api-card .tool-card-main,
.green-api-card .tool-copy,
.green-api-card small {
  max-width: 100%;
  min-width: 0;
}
.green-api-card .green-api-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
}
.green-api-card .green-api-actions input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.green-api-card .green-api-actions button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.green-api-card .green-api-actions .tool-status {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.whatsapp-business-card {
  min-width: 0;
  overflow: hidden;
}
.whatsapp-business-card .tool-card-main,
.whatsapp-business-card .tool-copy,
.whatsapp-business-card small {
  max-width: 100%;
  min-width: 0;
}
.whatsapp-business-card .whatsapp-business-actions {
  display: grid !important;
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
}
.whatsapp-waba-field {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}
.whatsapp-waba-field span {
  color: var(--muted);
  line-height: 1.3;
}
.whatsapp-business-card .whatsapp-waba-field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.whatsapp-business-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.whatsapp-business-card .whatsapp-business-buttons button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whatsapp-business-card .whatsapp-business-actions > .tool-status {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.internal-tool-toggle { cursor: pointer; }
.toggle-control { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; }
.toggle-control input { margin: 0; }
.tool-card strong { display: block; color: var(--text); margin-bottom: 4px; }
.tool-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.connection-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(158, 232, 199, 0.24);
  border-radius: 18px;
  background: rgba(158, 232, 199, 0.07);
}
.connection-panel h3 { margin: 0; }
.connection-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.connection-actions button { white-space: nowrap; }
@media (max-width: 760px) { .connection-panel { display: grid; } }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  color: var(--text);
  padding: 12px 13px;
}
textarea { min-height: 110px; resize: vertical; }
.result, .chat-output, .runs {
  white-space: pre-wrap;
  color: var(--text);
}
.result { margin: 0; color: var(--opal); }
.settings-alert { border-color: rgba(255, 180, 200, 0.45); color: #ffb4c8; background: rgba(255, 180, 200, 0.08); }
.chat-output { margin-top: 14px; display: grid; gap: 10px; }
.bubble { padding: 14px; border-radius: 16px; background: rgba(158, 232, 199, 0.09); border: 1px solid rgba(159,243,255,0.2); }
.run { margin-bottom: 12px; }
.project-toolbar { margin-bottom: 14px; }
.project-list { display: grid; gap: 16px; }
.project-card { display: grid; gap: 16px; }
.project-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.project-card h3 { margin: 0; font-size: 26px; }
.embedded-panel {
  border: 1px solid rgba(158, 232, 199, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(158, 232, 199, 0.05);
}
.embedded-panel h4 { margin: 0 0 10px; }
.embedded-agent-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.embedded-agent-row:first-of-type { border-top: 0; }
.builder-note {
  border: 1px solid rgba(158, 232, 199, 0.25);
  border-radius: 18px;
  padding: 14px;
  background: rgba(158, 232, 199, 0.07);
}
.builder-note p { margin-bottom: 0; }
.agent-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.secondary {
  border: 1px solid rgba(158, 232, 199, 0.32);
  background: rgba(158, 232, 199, 0.08);
  color: var(--text);
  border-radius: 13px;
  padding: 9px 12px;
}
.checkbox { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }
.checkbox input { width: auto; }
.status-card { margin-bottom: 14px; color: var(--muted); }
.context-menu {
  position: fixed;
  z-index: 1000;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 18, 32, 0.98);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
}
.context-title {
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.context-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  border-radius: 10px;
  padding: 10px;
}
.context-menu button:hover { background: var(--panel-strong); }
.context-menu .danger-action { color: #ff9ab5; }
.context-menu .danger-action:hover { background: rgba(255, 80, 120, 0.14); }
.empty { color: var(--muted); border: 1px dashed var(--border); border-radius: 18px; padding: 18px; }
.site-footer {
  margin-top: 34px;
  padding: 18px 0 4px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}
.site-footer a { color: var(--opal); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    min-height: auto;
    max-height: none;
    overflow: visible;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  nav { grid-template-columns: repeat(2, 1fr); }
  main { padding: 18px; }
  .hero, .section-title { align-items: stretch; flex-direction: column; }
  .row { grid-template-columns: 1fr; }
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(158, 232, 199, 0.14), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(200, 247, 223, 0.12), transparent 30%),
    var(--bg);
}
.login-card {
  width: min(460px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.login-card .logo {
  width: 86px;
  height: 86px;
  border-radius: 18px;
}
.login-card h1 { font-size: 34px; margin: 4px 0; }
.login-button { display: inline-block; text-decoration: none; margin-top: 6px; }
.login-error { color: #ff9ab5; }
.login-form {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 8px;
  text-align: start;
}
.login-form .secondary { width: 100%; }
.login-card a { color: var(--opal); }
.login-form .primary, .login-form .secondary { width: 100%; }
.login-success { color: #9fffc5; }
.reset-link-box { word-break: break-word; line-height: 1.6; }

@media (max-width: 520px) {
  .login-page {
    min-height: 100svh;
    align-items: center;
    padding: 22px 14px max(22px, env(safe-area-inset-bottom));
  }
  .login-card {
    width: 100%;
    gap: 9px;
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.075);
    box-shadow: 0 18px 54px rgba(0,0,0,0.28);
    transform: translateY(-4vh);
  }
  .login-card .logo {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    margin-bottom: 2px;
  }
  .login-card h1 {
    font-size: 25px;
    line-height: 1.1;
    margin: 0;
  }
  .login-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
  }
  .login-form {
    gap: 9px;
    margin-top: 4px;
  }
  .login-form label {
    gap: 5px;
    font-size: 13px;
  }
  .login-form input {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .login-form .primary,
  .login-form .secondary {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 13px;
    font-size: 15px;
  }
  .login-card .meta {
    font-size: 12px;
    line-height: 1.35;
  }
  .legal-links {
    margin-top: 2px !important;
  }
}
.telegram-grid { grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr); }
.steps-list { color: var(--muted); line-height: 1.8; margin: 0; padding-inline-start: 22px; }
code {
  direction: ltr;
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1px 6px;
}
.agent-actions a.secondary { text-decoration: none; }
@media (max-width: 900px) { .telegram-grid { grid-template-columns: 1fr; } }
body[data-view="chat"] .landing-hero,
body[data-view="chat"] .landing-showcase,
body[data-view="chat"] #agents,
body[data-view="chat"] #projects,
body[data-view="chat"] #runs,
body[data-view="chat"] .site-footer {
  display: none !important;
}
body[data-view="chat"] {
  background:
    radial-gradient(circle at top left, rgba(158, 232, 199, 0.12), transparent 34%),
    linear-gradient(135deg, #090a12, #090a12 62%, #12091a);
}
body[data-view="chat"] main {
  display: grid;
  align-items: stretch;
}
body[data-view="chat"] #chat.active {
  display: grid;
  min-height: calc(100vh - 68px);
}
.agent-chat-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  min-height: 620px;
  border-radius: 24px;
  background: rgba(8, 14, 23, 0.72);
}
.chat-toolbar { display: grid; grid-template-columns: 1fr minmax(180px, 240px) auto; gap: 12px; align-items: end; }
.chat-thread {
  min-height: 520px;
  max-height: 68vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    rgba(5, 10, 16, 0.55);
  background-size: 28px 28px;
}
.chat-message { display: grid; gap: 5px; margin: 10px 0; max-width: min(680px, 84%); }
.chat-message.from-user { margin-right: auto; }
.chat-message.from-agent { margin-left: auto; }
.chat-message .bubble {
  border-radius: 18px;
  padding: 11px 13px;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}
.chat-message.from-user .bubble {
  background: linear-gradient(135deg, #1f2a44, #111827);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-end-end-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.chat-message.from-agent .bubble { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.12); border-end-start-radius: 6px; }
.chat-meta { color: var(--muted); font-size: 12px; padding: 0 6px; }
.chat-composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.chat-composer textarea {
  min-height: 46px;
  max-height: 160px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
}
.chat-composer .primary { border-radius: 999px; min-width: 74px; }
.attach-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--opal);
  background: rgba(159,243,255,0.10);
  border: 1px solid rgba(159,243,255,0.22);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
}
.attach-button input { display: none; }
.attachment-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(159,243,255,0.10);
  border: 1px solid rgba(159,243,255,0.20);
  color: var(--text);
  font-size: 13px;
}
.attachment-pill small { color: var(--muted); }
.attachment-pill button { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.message-attachments { display: grid; gap: 7px; margin-top: 8px; }
.message-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0,0,0,0.12);
  color: inherit;
  text-decoration: none;
}
.message-attachment:hover { background: rgba(0,0,0,0.20); }
.message-attachment strong { display: block; font-size: 13px; }
.message-attachment small { display: block; opacity: 0.7; font-size: 12px; }
.typing { color: var(--muted); }
@media (max-width: 760px) {
  .chat-toolbar { grid-template-columns: 1fr; }
  .agent-chat-card { min-height: 520px; }
}
.public-home { text-align: left; }
.public-home-card { max-width: 820px; }
.public-home-card h1 { font-size: 44px; margin: 6px 0; }
.public-home-card .lead { font-size: 19px; color: var(--text); }
.public-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.public-actions a { text-decoration: none; }

/* Dopamine-inspired Opal landing */
.landing-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 26px;
  align-items: center;
  min-height: 520px;
  padding: clamp(28px, 5vw, 62px);
  margin-bottom: 22px;
  border: 1px solid rgba(200, 247, 223, 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(200, 247, 223, 0.32), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(158, 232, 199, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
  box-shadow: 0 26px 90px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.landing-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}
.landing-hero-content, .landing-product-card { position: relative; z-index: 1; }
.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(200, 247, 223, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #d9ffe9;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.landing-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 7vw, 86px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 20px;
}
.landing-hero h1::first-line { color: #fff; }
.landing-hero p {
  max-width: 680px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  color: #d8eee2;
  margin: 0;
}
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.landing-primary, .landing-secondary {
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
}
.landing-primary {
  color: #090a12;
  background: linear-gradient(135deg, #c8f7df, #9ee8c7);
  box-shadow: 0 18px 42px rgba(200, 247, 223, 0.24);
}
.landing-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.landing-product-card {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  background: rgba(6, 18, 13, 0.58);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  padding: 18px;
  transform: rotate(-1.5deg);
}
.mini-window-bar { display: flex; gap: 7px; margin-bottom: 14px; }
.mini-window-bar span { width: 10px; height: 10px; border-radius: 99px; background: #c8f7df; opacity: .9; }
.mini-window-bar span:nth-child(2) { background: #ffd166; }
.mini-window-bar span:nth-child(3) { background: #9ee8c7; }
.agent-builder-preview {
  min-height: 310px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,143,207,0.22), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}
.agent-builder-preview h3 { font-size: 30px; margin: 0; }
.preview-chip {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(200, 247, 223, 0.18);
  color: #d4ffe6;
}
.preview-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.preview-flow span {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(158, 232, 199, 0.11);
  border: 1px solid rgba(158, 232, 199, 0.20);
  color: #ddfff1;
  font-size: 13px;
  font-weight: 800;
}
.preview-flow b { color: var(--pink); }
.landing-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.45;
  pointer-events: none;
  animation: floatOrb 9s ease-in-out infinite;
}
.orb-a { width: 180px; height: 180px; left: 8%; bottom: 12%; background: #c8f7df; }
.orb-b { width: 140px; height: 140px; right: 14%; top: 16%; background: #9ee8c7; animation-delay: -3s; }
@keyframes floatOrb { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.05); } }
.landing-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.landing-showcase article {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
}
.landing-showcase strong { display: block; font-size: 18px; margin-bottom: 8px; }
.landing-showcase span { color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) {
  .landing-hero { grid-template-columns: 1fr; min-height: auto; }
  .landing-product-card { transform: none; }
  .landing-showcase { grid-template-columns: 1fr; }
}

.public-landing-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}
.public-landing-nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(6, 18, 13, 0.58);
  backdrop-filter: blur(18px);
}
.public-nav-actions { display: flex; gap: 10px; align-items: center; }
.public-landing-hero { margin-top: 10px; }
.public-showcase { margin-top: 18px; }
.public-landing-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  margin-top: 30px;
}
.public-landing-footer a { color: var(--muted); }

.pricing-page { max-width: 1180px; }
.pricing-hero {
  position: relative;
  overflow: hidden;
  margin: 12px 0 22px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(158, 232, 199, 0.24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 18%, rgba(158, 232, 199, 0.22), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(200, 247, 223, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
  box-shadow: 0 26px 90px rgba(0,0,0,0.28);
}
.pricing-hero h1 {
  max-width: 880px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0 0 18px;
}
.pricing-hero p {
  max-width: 720px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: #d8eee2;
  margin: 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  background: rgba(255,255,255,0.065);
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}
.pricing-card-featured {
  border-color: rgba(158, 232, 199, 0.45);
  background:
    radial-gradient(circle at 12% 0%, rgba(158, 232, 199, 0.14), transparent 34%),
    rgba(255,255,255,0.09);
  transform: translateY(-8px);
}
.pricing-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--opal), var(--violet));
  color: #090a12;
  font-size: 12px;
  font-weight: 900;
}
.pricing-card-head { display: grid; gap: 8px; padding-inline-end: 76px; }
.pricing-card-head h2 { font-size: 30px; margin: 0; }
.pricing-card-head p { margin: 0; line-height: 1.5; }
.pricing-kicker {
  width: fit-content;
  color: var(--opal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price { display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.price span { font-size: 42px; font-weight: 950; letter-spacing: -0.04em; }
.price small { color: var(--muted); font-weight: 700; }
.pricing-features {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e9e2f7;
}
.pricing-features li { display: flex; gap: 9px; align-items: start; line-height: 1.45; }
.pricing-features li:before { content: '✓'; color: var(--opal); font-weight: 900; }
.pricing-cta { margin-top: auto; text-align: center; }
.pricing-note {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(200, 247, 223, 0.22);
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.pricing-note strong { color: var(--text); }

.business-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(158, 232, 199, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(158, 232, 199, 0.14), transparent 36%),
    rgba(255,255,255,0.07);
}
.business-contact-card h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.business-contact-card p { color: var(--muted); line-height: 1.55; margin: 0; }
.business-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.business-contact-form label { color: var(--muted); }
.business-contact-message,
.business-contact-form button,
.business-contact-result { grid-column: 1 / -1; }
.business-contact-form textarea { min-height: 96px; }
.business-contact-result { min-height: 20px; color: var(--muted); }
.business-contact-result[data-type="success"] { color: var(--opal); }
.business-contact-result[data-type="error"] { color: #ffb4c8; }
@media (max-width: 820px) {
  .business-contact-card { grid-template-columns: 1fr; }
  .business-contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-card-featured { transform: none; }
}
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .public-landing-nav { align-items: flex-start; flex-direction: column; }
  .public-nav-actions { width: 100%; }
  .public-nav-actions a { flex: 1; text-align: center; }
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select,
html[dir="ltr"] .bubble,
html[dir="ltr"] .chat-meta,
html[dir="ltr"] .result {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .bubble,
html[dir="rtl"] .chat-meta,
html[dir="rtl"] .result {
  direction: rtl;
  text-align: right;
}
html[dir="ltr"] .chat-message.from-user { margin-left: auto; margin-right: 0; }
html[dir="ltr"] .chat-message.from-agent { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .chat-message.from-user { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .chat-message.from-agent { margin-left: auto; margin-right: 0; }

/* Public Agent Page + Embed Preview */
.public-agent-body{min-height:100vh;background:radial-gradient(circle at top left,rgba(159,243,255,.28),transparent 34%),linear-gradient(135deg,#f8fbff,#f6f1ff);}
.public-agent-page{min-height:100vh;display:grid;place-items:center;padding:32px;--public-agent-color:#9ee8c7;}
.public-agent-card{width:min(760px,100%);background:rgba(255,255,255,.88);border:1px solid rgba(15,23,42,.1);box-shadow:0 30px 90px rgba(31,45,90,.16);border-radius:34px;padding:30px;}
.public-agent-brand{display:flex;align-items:center;gap:10px;color:#64748b;font-weight:800;margin-bottom:18px}.public-agent-brand img{width:34px;height:34px;border-radius:12px}.public-agent-card h1{font-size:clamp(30px,5vw,54px);margin:0 0 8px}.public-agent-card>p{color:#64748b;margin:0 0 22px;font-size:18px}.public-chat-shell{border:1px solid rgba(15,23,42,.1);border-radius:26px;background:#fff;overflow:hidden}.public-chat-messages{height:360px;overflow:auto;background:#f8fafc;padding:18px;display:flex;flex-direction:column;gap:12px}.public-chat-message{max-width:82%;border-radius:20px;padding:12px 14px;line-height:1.45;white-space:pre-wrap}.public-chat-message.assistant{align-self:flex-start;background:#fff;border:1px solid #e2e8f0}.public-chat-message.user{align-self:flex-end;background:#111827;color:#fff}.public-chat-message.loading{color:#64748b}.public-agent-lead{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 14px;border-top:1px solid #e2e8f0;background:#fff}.public-agent-lead input,.public-chat-form textarea{border:1px solid #cbd5e1;border-radius:14px;padding:11px;font:inherit}.public-chat-form{display:flex;gap:10px;padding:14px;border-top:1px solid #e2e8f0;background:#fff}.public-chat-form textarea{flex:1;resize:none}.public-chat-form button{border:0;border-radius:16px;background:var(--public-agent-color);color:#08111f;font-weight:800;padding:0 20px;cursor:pointer}.public-agent-powered{text-align:center;color:#94a3b8;font-size:12px;margin:0;padding:0 0 12px}.web-chat-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:18px;align-items:start}.web-chat-preview{border:1px solid #dbe4ef;border-radius:24px;padding:18px;background:#f8fafc;position:sticky;top:18px}.web-chat-preview-card{border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.08);overflow:hidden}.web-chat-preview-head{padding:16px;background:linear-gradient(135deg,var(--preview-color,#9ee8c7),#f4f7ff)}.web-chat-preview-head strong{display:block}.web-chat-preview-body{padding:14px;display:grid;gap:10px}.web-chat-preview-bubble{padding:10px 12px;border-radius:16px;background:#f1f5f9}.web-chat-preview-bubble.user{background:#111827;color:#fff;margin-left:auto}.copy-row{display:flex;gap:8px;align-items:center}.copy-row input,.copy-row textarea{flex:1;min-width:0}.copy-row textarea{min-height:90px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.inline-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.switch-line{display:flex;align-items:center;gap:10px;font-weight:700}.switch-line input{width:auto}.lead-toggle-row{display:flex;flex-wrap:wrap;gap:12px}.lead-toggle-row label{display:flex;align-items:center;gap:6px;margin:0}.lead-toggle-row input{width:auto}.web-chat-status{min-height:20px;color:#64748b}@media(max-width:860px){.web-chat-grid{grid-template-columns:1fr}.web-chat-preview{position:static}.public-agent-lead{grid-template-columns:1fr}.public-agent-page{padding:16px}.public-agent-card{padding:20px}.public-chat-messages{height:320px}}

/* Polish public web chat settings: RTL, contrast and long text wrapping */
.web-chat-settings{direction:rtl;text-align:right}.web-chat-settings input,.web-chat-settings textarea,.web-chat-settings select{max-width:100%;box-sizing:border-box}.web-chat-settings input[dir="auto"],.web-chat-settings textarea[dir="auto"]{unicode-bidi:plaintext;text-align:start}.web-chat-settings input[dir="ltr"],.web-chat-settings textarea[dir="ltr"]{direction:ltr;text-align:left}.web-chat-settings input[type="color"]{height:46px;padding:4px;inline-size:86px;border-radius:14px;cursor:pointer}.web-chat-settings input[type="checkbox"]{inline-size:18px;block-size:18px;accent-color:#111827;flex:0 0 auto}.web-chat-preview{direction:rtl;text-align:right;background:#fff}.web-chat-preview-head{color:#0f172a!important;background:linear-gradient(135deg,color-mix(in srgb,var(--preview-color,#9ee8c7) 72%,#ffffff),#f8fbff)!important;border-bottom:1px solid rgba(15,23,42,.08)}.web-chat-preview-head strong,.web-chat-preview-head span{display:block;color:#0f172a;overflow-wrap:anywhere;word-break:break-word;unicode-bidi:plaintext;text-align:start}.web-chat-preview-head span{margin-top:4px;color:#475569;line-height:1.45}.web-chat-preview-bubble{max-width:88%;overflow-wrap:anywhere;word-break:break-word;unicode-bidi:plaintext;text-align:start;line-height:1.45}.web-chat-preview-bubble.user{margin-right:auto;margin-left:0}.copy-row{direction:rtl}.copy-row input[dir="ltr"],.copy-row textarea[dir="ltr"]{direction:ltr;text-align:left}.public-chat-message{unicode-bidi:plaintext;text-align:start;overflow-wrap:anywhere}.public-chat-form textarea{unicode-bidi:plaintext;text-align:start}

.advanced-web-chat-fields{border:1px solid rgba(148,163,184,.25);border-radius:18px;padding:12px 14px;background:rgba(248,250,252,.65)}.advanced-web-chat-fields summary{cursor:pointer;font-weight:800;color:#e5e7eb}.advanced-web-chat-fields[open] summary{margin-bottom:10px}.advanced-web-chat-fields .meta{margin-top:0}

.web-chat-copy-note{border:1px solid rgba(148,163,184,.22);border-radius:16px;padding:12px 14px;background:rgba(15,23,42,.18)}

.web-chat-master-note{margin-top:-8px;margin-bottom:4px;color:#cbd5e1}.master-web-chat-toggle{font-size:1.02rem}

/* Website chat publishing UX */
.publish-hero-card{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid rgba(159,243,255,.28);border-radius:28px;padding:20px;background:linear-gradient(135deg,rgba(159,243,255,.14),rgba(215,184,255,.12));box-shadow:0 18px 50px rgba(15,23,42,.14)}.publish-hero-main{display:flex;gap:14px;align-items:center}.publish-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:20px;background:rgba(255,255,255,.12);font-size:26px}.publish-hero-card h4{margin:2px 0 4px;font-size:1.45rem}.publish-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;user-select:none;white-space:nowrap}.publish-toggle input{position:absolute;opacity:0;pointer-events:none}.publish-toggle-ui{width:74px;height:40px;border-radius:999px;background:#334155;border:1px solid rgba(255,255,255,.16);padding:4px;transition:.18s ease;box-shadow:inset 0 2px 8px rgba(0,0,0,.18)}.publish-toggle-ui span{display:block;width:30px;height:30px;border-radius:999px;background:#fff;box-shadow:0 6px 14px rgba(0,0,0,.25);transition:.18s ease}.publish-toggle input:checked+.publish-toggle-ui{background:linear-gradient(135deg,#33f0a4,#9ee8c7)}.publish-toggle input:checked+.publish-toggle-ui span{transform:translateX(-34px)}.publish-toggle-text{min-width:48px;color:#e2e8f0}.web-chat-settings.is-enabled .publish-toggle-text{color:#86efac}.web-chat-settings.is-enabled .publish-toggle-text::before{content:'פעיל';font:inherit}.web-chat-settings.is-enabled .publish-toggle-text{font-size:0}.publish-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.publish-flow div{border:1px solid rgba(148,163,184,.18);border-radius:20px;padding:13px;background:rgba(15,23,42,.18)}.publish-flow strong{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:10px;background:rgba(159,243,255,.16);color:#9ee8c7;margin-left:8px}.publish-flow span{font-weight:900;color:#f8fafc}.publish-flow small{display:block;margin-top:6px;color:#cbd5e1;line-height:1.4}.publish-settings-panel{border:1px solid rgba(148,163,184,.18);border-radius:26px;padding:18px;background:rgba(15,23,42,.12)}.publish-off-hint{margin:0 0 12px;padding:12px 14px;border-radius:16px;background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.2);color:#fde68a}.web-chat-settings.is-enabled .publish-off-hint{background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.22);color:#bbf7d0}.web-chat-settings.is-enabled .publish-off-hint::before{content:'החיבור פעיל. אחרי שמירה אפשר להעתיק את הקישור או קוד ההטמעה.'}.web-chat-settings.is-enabled .publish-off-hint{font-size:0}.web-chat-settings.is-enabled .publish-off-hint::before{font-size:.95rem}.settings-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.subtle-switch{opacity:.9}.publish-actions .primary{font-size:1rem;padding:13px 18px}.publish-output-card{border:1px solid rgba(159,243,255,.18);border-radius:22px;padding:14px;background:rgba(2,6,23,.18)}.publish-output-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.publish-output-head strong{color:#f8fafc}.publish-output-head span{color:#94a3b8;font-size:.9rem}.web-chat-settings:not(.is-enabled) .publish-output-card{opacity:.62}.web-chat-settings:not(.is-enabled) .publish-output-head strong::after{content:' — יופיע אחרי הפעלה ושמירה';color:#fbbf24;font-weight:600}@media(max-width:860px){.publish-hero-card{align-items:flex-start;flex-direction:column}.publish-flow{grid-template-columns:1fr}.settings-two-columns{grid-template-columns:1fr}.publish-toggle{align-self:stretch;justify-content:space-between}}

.web-chat-settings:not(.is-enabled) .publish-settings-panel label,.web-chat-settings:not(.is-enabled) .publish-settings-panel details,.web-chat-settings:not(.is-enabled) .publish-output-card{filter:grayscale(.25);opacity:.48}.web-chat-settings:not(.is-enabled) .publish-actions,.web-chat-settings:not(.is-enabled) .publish-off-hint{filter:none;opacity:1}.web-chat-settings:not(.is-enabled) .publish-settings-panel input:disabled,.web-chat-settings:not(.is-enabled) .publish-settings-panel textarea:disabled,.web-chat-settings:not(.is-enabled) .publish-settings-panel select:disabled{cursor:not-allowed;background:rgba(15,23,42,.35);color:#94a3b8}.web-chat-settings:not(.is-enabled) .copy-row button:disabled{cursor:not-allowed;opacity:.55}

/* Lead capture polish */
.lead-capture-settings{background:linear-gradient(135deg,rgba(15,23,42,.24),rgba(30,41,59,.18));border-color:rgba(159,243,255,.18)}.lead-capture-settings summary{display:flex;align-items:center;gap:8px;color:#f8fafc}.lead-capture-settings summary::before{content:'👤';font-size:1.05rem}.lead-capture-settings .meta{color:#cbd5e1;line-height:1.55}.lead-toggle-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.lead-toggle-row label{justify-content:center;min-height:44px;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:rgba(255,255,255,.06);color:#f8fafc;font-weight:800}.lead-toggle-row input{inline-size:18px!important;block-size:18px!important;accent-color:#9ee8c7}.web-chat-settings:not(.is-enabled) .lead-capture-settings{opacity:.72!important;filter:none!important}.web-chat-settings:not(.is-enabled) .lead-capture-settings summary,.web-chat-settings:not(.is-enabled) .lead-capture-settings .meta,.web-chat-settings:not(.is-enabled) .lead-toggle-row label{color:#e2e8f0}.web-chat-settings:not(.is-enabled) .lead-toggle-row label{background:rgba(15,23,42,.24);border-color:rgba(148,163,184,.2)}.web-chat-settings:not(.is-enabled) .lead-toggle-row input:disabled{opacity:.65;accent-color:#64748b}@media(max-width:560px){.lead-toggle-row{grid-template-columns:1fr}.lead-toggle-row label{justify-content:flex-start;padding-inline:14px}}

.web-chat-settings:not(.has-connection) .publish-output-head strong{color:#fde68a}.web-chat-settings:not(.has-connection) .publish-output-card{border-color:rgba(251,191,36,.24)}.web-chat-settings:not(.has-connection) .copy-row input,.web-chat-settings:not(.has-connection) .copy-row textarea{background:rgba(15,23,42,.35)}.web-chat-settings:not(.has-connection) .publish-output-head strong::after{content:''!important}

/* Public page brand ownership + calmer colors */
.public-agent-body{background:radial-gradient(circle at 20% 0%,color-mix(in srgb,var(--public-agent-color,#9ee8c7) 18%,transparent),transparent 34%),linear-gradient(145deg,#f7faff,#eef4fb)!important;color:#0f172a}.public-agent-card{background:rgba(255,255,255,.94)!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 26px 80px rgba(15,23,42,.12)!important}.public-agent-brand.brand-owned{display:inline-flex;margin-bottom:22px;padding:8px 12px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#0f172a}.public-agent-brand.brand-owned img{width:34px;height:34px;object-fit:contain;border-radius:999px;background:#fff}.public-agent-brand-mark{display:grid!important;place-items:center;width:34px;height:34px;border-radius:999px;background:linear-gradient(135deg,var(--public-agent-color,#9ee8c7),#e9d5ff);color:#0f172a;font-weight:900}.public-chat-shell{box-shadow:0 16px 42px rgba(15,23,42,.08);border-color:#e2e8f0!important}.public-chat-messages{background:linear-gradient(180deg,#f8fafc,#f1f5f9)!important}.public-chat-message.assistant{box-shadow:0 8px 20px rgba(15,23,42,.05)}.public-chat-message.user{background:#172033!important}.public-chat-form button{background:#172033!important;color:#fff!important}.web-chat-settings input#webChatBrandLogoUrl{direction:ltr;text-align:left}.web-chat-preview-head{background:linear-gradient(135deg,color-mix(in srgb,var(--preview-color,#9ee8c7) 35%,#ffffff),#f8fafc)!important}

/* Brand logo upload */
.brand-logo-upload-field{border:1px solid rgba(148,163,184,.18);border-radius:18px;padding:12px;background:rgba(15,23,42,.12)}.brand-logo-upload-field input[type="file"]{margin-top:8px;padding:10px;border:1px dashed rgba(159,243,255,.35);border-radius:14px;background:rgba(255,255,255,.05);cursor:pointer}.brand-logo-preview-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.brand-logo-preview-empty{color:#cbd5e1;font-size:.92rem}.brand-logo-preview-thumb{display:flex;align-items:center;gap:8px;color:#e2e8f0;font-size:.92rem}.brand-logo-preview-thumb img{width:38px;height:38px;border-radius:12px;object-fit:contain;background:#fff;padding:3px}.brand-logo-preview-thumb.pending{color:#bfdbfe}.web-chat-settings:not(.is-enabled) .brand-logo-upload-field{opacity:.55;filter:grayscale(.25)}
.brand-logo-preview-row{align-items:flex-start}.brand-logo-preview-row button{white-space:nowrap}.brand-logo-preview-row{flex-wrap:wrap}.brand-logo-preview-row .secondary{padding:8px 10px;font-size:.86rem}

.public-agent-card>p:empty,.web-chat-preview-head span:empty{display:none}.public-agent-card>p:empty{margin:0}.web-chat-preview-head span:empty{margin:0}.opal-ai-widget-root p:empty{display:none}


/* Make selected brand color drive the real public chat UI */
.public-agent-page{--public-agent-accent:var(--public-agent-color,#9ee8c7)}
.public-agent-card{border-color:color-mix(in srgb,var(--public-agent-accent) 24%,#e2e8f0)!important}
.public-agent-brand.brand-owned{border-color:color-mix(in srgb,var(--public-agent-accent) 34%,#e2e8f0)!important;background:color-mix(in srgb,var(--public-agent-accent) 10%,#ffffff)!important}
.public-chat-shell{border-color:color-mix(in srgb,var(--public-agent-accent) 28%,#e2e8f0)!important}
.public-chat-message.user{background:linear-gradient(135deg,color-mix(in srgb,var(--public-agent-accent) 24%,#1f2a44),#111827)!important;color:#fff!important;font-weight:650;border:1px solid rgba(15,23,42,.10);box-shadow:0 8px 18px rgba(15,23,42,.16)}
.public-chat-form button{background:color-mix(in srgb,var(--public-agent-accent) 78%,#ffffff)!important;color:#0f172a!important;font-weight:700;box-shadow:0 8px 18px color-mix(in srgb,var(--public-agent-accent) 18%,transparent)}
.public-chat-form textarea:focus,.public-agent-lead input:focus{border-color:color-mix(in srgb,var(--public-agent-accent) 70%,#94a3b8)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--public-agent-accent) 20%,transparent);outline:none}
.public-agent-powered{color:color-mix(in srgb,var(--public-agent-accent) 45%,#64748b)!important}
.web-chat-preview-bubble.user{background:linear-gradient(135deg,color-mix(in srgb,var(--preview-color,#9ee8c7) 24%,#1f2a44),#111827)!important;color:#fff!important;font-weight:650;box-shadow:0 8px 18px rgba(15,23,42,.14)}

.public-agent-brand-mark.is-logo-fallback-hidden{display:none!important}


.public-chat-form{align-items:center}
.public-chat-form textarea{min-height:44px;max-height:120px}
.public-chat-form button{align-self:center;min-height:44px;padding:0 18px!important;line-height:1!important;display:inline-flex;align-items:center;justify-content:center}


.web-chat-design-card{border:1px solid rgba(159,243,255,.18);border-radius:20px;padding:14px;background:linear-gradient(135deg,rgba(159,243,255,.08),rgba(255,255,255,.035));display:grid;gap:8px}
.web-chat-design-card label{margin:0}.web-chat-design-card textarea{min-height:112px;line-height:1.45;font-size:1rem}.web-chat-design-card .meta{margin:0;color:#aeb9ca;line-height:1.45}
.web-chat-compact-row{display:grid;grid-template-columns:minmax(180px,260px);justify-content:end}.web-chat-compact-row label{margin:0}.web-chat-compact-row select{min-height:52px;font-size:1rem}
.embed-domains-field{min-height:96px;line-height:1.5}
@media(max-width:700px){.web-chat-compact-row{grid-template-columns:1fr}}

html[dir="ltr"] .web-chat-settings{direction:ltr;text-align:left}
html[dir="ltr"] .web-chat-settings .copy-row{direction:ltr}
html[dir="ltr"] .web-chat-settings .publish-flow strong{margin-left:0;margin-right:8px}
html[dir="ltr"] .web-chat-settings .publish-toggle input:checked+.publish-toggle-ui span{transform:translateX(34px)}
html[dir="ltr"] .web-chat-compact-row{justify-content:start}
html[dir="ltr"] .web-chat-preview{direction:ltr;text-align:left}
html[dir="ltr"] .web-chat-preview-bubble.user{margin-left:auto;margin-right:0}


.web-chat-knowledge-summary{display:grid;gap:3px;border:1px solid rgba(34,197,94,.22);border-radius:16px;padding:12px 14px;background:rgba(34,197,94,.10);color:#dcfce7;line-height:1.4}
.web-chat-knowledge-summary strong{color:#f0fdf4}.web-chat-knowledge-summary span{color:#bbf7d0;font-size:.92rem}.web-chat-knowledge-summary.is-empty{border-color:rgba(251,191,36,.28);background:rgba(251,191,36,.10);color:#fef3c7}.web-chat-knowledge-summary.is-empty strong{color:#fef3c7}.web-chat-knowledge-summary.is-empty span{color:#fde68a}

.creation-mode-panel { display: grid; gap: 16px; margin-bottom: 18px; }
.template-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.template-card {
  text-align: start;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  background: rgba(0,0,0,0.18);
  color: var(--text);
  display: grid;
  gap: 7px;
}
.template-card strong { color: var(--text); font-size: 16px; }
.template-card small { color: var(--muted); line-height: 1.45; }
.template-card.active,
.template-card:hover {
  border-color: rgba(158, 232, 199, 0.55);
  background: rgba(158, 232, 199, 0.10);
}
.template-summary {
  border: 1px solid rgba(158, 232, 199, 0.2);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--opal);
  background: rgba(158, 232, 199, 0.06);
  font-size: 14px;
}
.roadmap-page { display: grid; gap: 24px; }
.roadmap-hero h1 { max-width: 760px; }
.roadmap-grid,
.template-roadmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.roadmap-card,
.template-roadmap-card,
.roadmap-next { display: grid; gap: 12px; }
.roadmap-card h2,
.roadmap-next h2 { margin: 0; }
.roadmap-card ul,
.roadmap-next ol { margin: 0; color: var(--muted); line-height: 1.75; padding-inline-start: 22px; }
.roadmap-focus { border-color: rgba(158, 232, 199, 0.35); background: rgba(158, 232, 199, 0.08); }
.roadmap-kicker { width: fit-content; border: 1px solid rgba(158, 232, 199, 0.3); color: var(--opal); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.template-list { display: flex; flex-wrap: wrap; gap: 8px; }
.template-list span { border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; color: var(--opal); background: rgba(0,0,0,0.18); font-size: 13px; }
.template-roadmap-card strong { color: var(--text); font-size: 18px; }
.template-roadmap-card small { color: var(--opal); line-height: 1.5; }
.roadmap-section-title { margin-top: 8px; }
@media (max-width: 760px) {
  .template-picker { grid-template-columns: 1fr; }
}
.roadmap-card h3,
.roadmap-next h3,
.template-roadmap-card h3 {
  margin: 8px 0 0;
  color: var(--opal);
  font-size: 15px;
}
.template-roadmap-card ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  padding-inline-start: 22px;
}
.bug-report-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
}
.bug-report-hero { margin-top: 18px; }
.bug-report-form { margin-top: 20px; }
.bug-report-list { display: grid; gap: 16px; }
.bug-report-card { display: grid; gap: 10px; }
.bug-report-card h3 { margin: 0; }
.bug-report-card h4 { margin: 6px 0 0; color: var(--opal); }
.bug-report-card p { margin: 0; white-space: pre-wrap; }
.bug-report-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
@media (max-width: 760px) { .bug-report-head { display: grid; } }
.bug-treatment-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(158, 232, 199, 0.18);
  border-radius: 16px;
  background: rgba(158, 232, 199, 0.05);
}
.bug-treatment-panel textarea { min-height: 80px; }
.bug-report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bug-history { display: grid; gap: 8px; margin-top: 8px; }

.template-preview {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(158, 232, 199, 0.22);
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(158, 232, 199, 0.13), transparent 30%),
    rgba(158, 232, 199, 0.045);
}
.template-preview-empty {
  display: grid;
  gap: 6px;
  color: var(--muted);
  line-height: 1.55;
}
.template-preview-empty strong { color: var(--opal); font-size: 16px; }
.template-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.template-preview-header h3 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 28px);
}
.template-preview-header p {
  margin: 0;
  max-width: 780px;
  line-height: 1.55;
}
.template-preview-kicker {
  color: var(--opal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.template-preview-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  min-width: 210px;
}
.template-preview-counts span,
.template-tool-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.14);
}
.template-preview-counts .is-required,
.importance-required .template-tool-badge { color: #fecaca; background: rgba(239, 68, 68, 0.14); border-color: rgba(248, 113, 113, 0.28); }
.template-preview-counts .is-recommended,
.importance-recommended .template-tool-badge { color: #bfdbfe; background: rgba(59, 130, 246, 0.14); border-color: rgba(96, 165, 250, 0.28); }
.template-preview-counts .is-optional,
.importance-optional .template-tool-badge { color: #d8f8e8; background: rgba(158, 232, 199, 0.14); border-color: rgba(158, 232, 199, 0.28); }
.template-tool-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
}
.template-tool-preview-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 100%;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}
.template-tool-preview-card strong { color: var(--text); font-size: 17px; }
.template-tool-preview-card small { color: var(--opal); font-weight: 800; }
.template-tool-preview-card p { margin: 0; line-height: 1.45; }
.template-tool-preview-card em {
  color: #e9e2f7;
  font-style: normal;
  line-height: 1.45;
}
.template-tool-setup {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.template-next-steps {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.10);
}
.template-next-steps strong { color: #dcfce7; }
.template-next-steps span { color: #bbf7d0; line-height: 1.5; }
@media (max-width: 760px) {
  .template-preview-header { display: grid; }
  .template-preview-counts { justify-content: flex-start; min-width: 0; }
}

.template-setup-banner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(158, 232, 199, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(158, 232, 199, 0.12), rgba(158, 232, 199, 0.10));
}
.template-setup-banner div { display: grid; gap: 5px; }
.template-setup-banner strong { color: var(--text); }
.template-setup-banner span { color: var(--muted); line-height: 1.5; }
.tool-card.is-template-tool {
  border-color: rgba(158, 232, 199, 0.55);
  background: rgba(158, 232, 199, 0.10);
  box-shadow: 0 0 0 1px rgba(158, 232, 199, 0.12), 0 18px 40px rgba(0,0,0,0.16);
}
.tool-card.is-template-tool::before {
  content: 'מומלץ לטמפלייט';
  width: fit-content;
  grid-column: 1 / -1;
  border-radius: 999px;
  padding: 4px 8px;
  color: #090a12;
  background: linear-gradient(135deg, var(--opal), var(--violet));
  font-size: 11px;
  font-weight: 900;
}
.tool-card.is-not-template-tool { opacity: .46; }
.tool-card.is-not-template-tool:hover { opacity: 1; }
@media (max-width: 760px) {
  .template-setup-banner { display: grid; }
}
html[lang="en"] .tool-card.is-template-tool::before { content: 'Recommended for template'; }

.knowledge-guide {
  border: 1px solid rgba(158, 232, 199, 0.22);
  border-radius: 16px;
  padding: 11px 13px;
  background: rgba(158, 232, 199, 0.06);
}
.knowledge-guide summary {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.knowledge-guide-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #090a12;
  background: linear-gradient(135deg, var(--opal), var(--violet));
  font-weight: 950;
}
.knowledge-guide p { margin: 10px 0 8px; line-height: 1.5; }
.knowledge-guide ul {
  margin: 0;
  padding-inline-start: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.create-connections-step {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border-color: rgba(158, 232, 199, 0.28);
  background: rgba(158, 232, 199, 0.06);
}
.create-connections-step[hidden] { display: none; }
.create-connect-card .primary { text-align: center; }

.create-connections-step {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border-color: rgba(158, 232, 199, 0.28);
  background: rgba(158, 232, 199, 0.06);
}
.create-connections-step[hidden] { display: none; }
.create-connect-card .primary { text-align: center; }
.create-connect-card .tool-card-actions .primary {
  min-width: 96px;
  padding-inline: 14px;
  text-align: center;
}

/* Opal AI marketing subdomain */
.opal-marketing-body {
  min-height: 100vh;
  margin: 0;
  color: #f7fbff;
  background:
    radial-gradient(circle at 18% 18%, rgba(94, 234, 212, 0.22), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgba(158, 232, 199, 0.26), transparent 30rem),
    linear-gradient(135deg, #07111f 0%, #0c1324 48%, #111827 100%);
}

.opal-marketing-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.opal-marketing-nav,
.opal-marketing-footer,
.opal-marketing-panel,
.opal-marketing-grid article,
.opal-marketing-hero {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.opal-marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 24px;
}

.opal-marketing-brand,
.opal-marketing-link {
  color: inherit;
  text-decoration: none;
}

.opal-marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.opal-marketing-brand img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.opal-marketing-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #07111f;
  background: #9ee8c7;
  font-weight: 800;
}

.opal-marketing-hero {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(34px, 7vw, 82px);
  border-radius: 36px;
}

.opal-marketing-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 9vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.opal-marketing-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(247, 251, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.opal-marketing-kicker {
  margin: 0 0 14px;
  color: #9ee8c7;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.opal-marketing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.opal-marketing-grid article {
  min-height: 255px;
  padding: 24px;
  border-radius: 28px;
}

.opal-marketing-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #07111f;
  background: #9ee8c7;
  font-weight: 900;
}

.opal-marketing-grid h2,
.opal-marketing-panel h2 {
  margin: 20px 0 10px;
  color: #ffffff;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.opal-marketing-grid p,
.opal-marketing-panel p,
.opal-marketing-footer {
  color: rgba(247, 251, 255, 0.74);
  line-height: 1.65;
}

.opal-marketing-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 32px;
  margin-top: 18px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 32px;
}

.opal-marketing-panel h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.opal-marketing-panel p {
  margin: 0;
  font-size: 1.08rem;
}

.opal-marketing-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .opal-marketing-grid,
  .opal-marketing-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .opal-marketing-page {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .opal-marketing-nav,
  .opal-marketing-footer,
  .opal-marketing-panel,
  .opal-marketing-grid {
    grid-template-columns: 1fr;
  }

  .opal-marketing-nav,
  .opal-marketing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .opal-marketing-hero {
    border-radius: 26px;
  }
}

.opal-marketing-team {
  margin-top: 18px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.opal-marketing-section-head {
  max-width: 760px;
}

.opal-marketing-section-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.opal-marketing-section-head p:not(.opal-marketing-kicker) {
  margin: 18px 0 0;
  color: rgba(247, 251, 255, 0.74);
  font-size: 1.06rem;
  line-height: 1.65;
}

.opal-marketing-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.opal-marketing-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(7, 17, 31, 0.32);
}

.opal-marketing-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  color: #07111f;
  background: linear-gradient(135deg, #9ee8c7, #c8f7df);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.opal-marketing-person h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.opal-marketing-role {
  margin: 5px 0 10px;
  color: #9ee8c7;
  font-size: 0.92rem;
  font-weight: 800;
}

.opal-marketing-person p:not(.opal-marketing-role) {
  margin: 0;
  color: rgba(247, 251, 255, 0.72);
  line-height: 1.6;
}

.opal-marketing-person a {
  display: inline-flex;
  margin-top: 14px;
  color: #9ee8c7;
  font-weight: 800;
  text-decoration: none;
}

.opal-marketing-person a:hover {
  color: #ffffff;
}

@media (max-width: 960px) {
  .opal-marketing-team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .opal-marketing-person {
    grid-template-columns: 1fr;
  }
}

.opal-marketing-photo {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(135deg, rgba(158, 232, 199, 0.85), rgba(200, 247, 223, 0.75));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 14px 34px rgba(0, 0, 0, 0.22);
}

.opal-marketing-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opal-marketing-photo-ran img {
  object-position: center 18%;
}

.opal-marketing-photo-ran img {
  object-fit: contain;
  padding: 7px;
  box-sizing: border-box;
  transform: translateY(-8px);
}

.inbound-webhook-settings {
  margin-top: 16px;
}
.webhook-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.webhook-settings-grid .full-row {
  grid-column: 1 / -1;
}
.toggle-row {
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
}


.whatsapp-inbound-copy {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 0;
  border: 1px solid rgba(158, 232, 199, 0.35);
  border-radius: 14px;
  background: rgba(158, 232, 199, 0.08);
  overflow: visible;
}
.whatsapp-inbound-copy[hidden] {
  display: none;
}
.whatsapp-inbound-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
}
.accordion-chevron {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.18s ease;
}
.whatsapp-inbound-copy.is-open .accordion-chevron {
  transform: rotate(90deg);
}
.whatsapp-inbound-panel {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}
.whatsapp-inbound-panel[hidden] {
  display: none;
}
.whatsapp-inbound-panel label {
  display: grid;
  gap: 6px;
}
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  margin-inline-start: 2px;
}
.tooltip-trigger {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(158, 232, 199, 0.5);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.tooltip-panel {
  position: absolute;
  z-index: 20;
  inset-inline-start: 50%;
  bottom: calc(100% + 8px);
  width: min(300px, 80vw);
  padding: 10px 12px;
  border: 1px solid rgba(158, 232, 199, 0.35);
  border-radius: 12px;
  background: #111827;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.tooltip-wrap:hover .tooltip-panel,
.tooltip-wrap:focus-within .tooltip-panel {
  opacity: 1;
  transform: translate(-50%, 0);
}

.opal-marketing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.how-to-page { max-width: 1180px; }
.how-to-hero {
  position: relative;
  overflow: hidden;
  margin: 12px 0 22px;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid rgba(158, 232, 199, 0.24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 18%, rgba(158, 232, 199, 0.22), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(200, 247, 223, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
  box-shadow: 0 26px 90px rgba(0,0,0,0.28);
}
.how-to-hero h1 {
  max-width: 860px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0 0 18px;
}
.how-to-hero p {
  max-width: 780px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  color: #d8eee2;
  margin: 0;
}
.how-to-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.how-to-steps,
.how-to-use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.how-to-steps article,
.how-to-use-case-grid article,
.how-to-panel {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  background: rgba(255,255,255,0.065);
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}
.how-to-steps article,
.how-to-use-case-grid article { padding: 24px; }
.how-to-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(158, 232, 199, 0.12);
  color: var(--opal);
  font-weight: 950;
}
.how-to-steps h2,
.how-to-use-case-grid h3 {
  margin: 0 0 10px;
  line-height: 1.15;
}
.how-to-steps p,
.how-to-use-case-grid p,
.how-to-panel p {
  margin: 0;
  line-height: 1.6;
}
.how-to-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  margin-top: 18px;
  padding: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(158, 232, 199, 0.14), transparent 36%),
    rgba(255,255,255,0.07);
}
.how-to-panel h2,
.how-to-section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}
.how-to-checklist {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e9e2f7;
}
.how-to-checklist li { display: flex; gap: 9px; align-items: start; line-height: 1.55; }
.how-to-checklist li:before { content: '✓'; color: var(--opal); font-weight: 900; }
.how-to-use-cases { margin-top: 18px; }
.how-to-section-head { margin-bottom: 14px; }
.how-to-support-panel {
  align-items: center;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
}
@media (max-width: 980px) {
  .how-to-steps,
  .how-to-use-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-to-panel,
  .how-to-support-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .how-to-steps,
  .how-to-use-case-grid { grid-template-columns: 1fr; }
  .how-to-actions a { flex: 1; text-align: center; }
}

.language-switcher {
  position: fixed;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 1000;
  direction: ltr;
}
.language-switcher-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 72px;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(6, 18, 13, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.24);
  font-weight: 900;
}
.language-switcher-button strong { font-size: 12px; letter-spacing: 0.04em; }
.language-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  display: none;
  min-width: 148px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background: rgba(6, 18, 13, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.32);
}
.language-switcher.open .language-switcher-menu { display: grid; gap: 5px; }
.language-switcher-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  color: var(--text);
  background: transparent;
  text-align: start;
}
.language-switcher-menu button:hover,
.language-switcher-menu button.active {
  background: rgba(158, 232, 199, 0.12);
  color: var(--opal);
}
.language-switcher-menu span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
[data-lang-section][hidden] { display: none !important; }
@media (max-width: 640px) {
  .language-switcher { top: 10px; inset-inline-end: 10px; }
  .language-switcher-button { min-width: 60px; padding: 8px 9px; }
}

html[lang="en"] [data-lang-section="he"],
html[lang="he"] [data-lang-section="en"] {
  display: none !important;
}
