/* Nexo design contract. Scoped: the standalone console keeps its current layout. */
@font-face {font-family:Outfit;font-style:normal;font-weight:400;font-display:swap;src:url('/console/outfit-400.ttf') format('truetype');}
@font-face {font-family:Outfit;font-style:normal;font-weight:500;font-display:swap;src:url('/console/outfit-500.ttf') format('truetype');}
@font-face {font-family:Outfit;font-style:normal;font-weight:600;font-display:swap;src:url('/console/outfit-600.ttf') format('truetype');}
@font-face {font-family:Outfit;font-style:normal;font-weight:700;font-display:swap;src:url('/console/outfit-700.ttf') format('truetype');}
/* Values arrive from Nexo's canonical design system; fallbacks support older hosts. */
@font-face {font-family: NexoOutfit; font-style: normal; font-weight: 400; font-display: swap; src: url('/console/outfit-400.ttf') format('truetype');}
@font-face {font-family: NexoOutfit; font-style: normal; font-weight: 500; font-display: swap; src: url('/console/outfit-500.ttf') format('truetype');}
@font-face {font-family: NexoOutfit; font-style: normal; font-weight: 600; font-display: swap; src: url('/console/outfit-600.ttf') format('truetype');}
@font-face {font-family: NexoOutfit; font-style: normal; font-weight: 700; font-display: swap; src: url('/console/outfit-700.ttf') format('truetype');}
.nexo-embedded {
  --ink: #0f172a; --muted: #64748b; --border: #e2e8f0; --accent: #4f46e5; --canvas: #f1f5f9;
  --nexo-surface: #fff; --nexo-subtle: #f8fafc; --nexo-selected: #eef2ff;
  font-family: NexoOutfit, Outfit, Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 14px; letter-spacing: normal; background: var(--canvas); color: var(--ink); color-scheme: light;
}
.nexo-embedded body { min-width: 0; background: var(--canvas); }
.nexo-embedded button, .nexo-embedded input, .nexo-embedded textarea, .nexo-embedded summary, .nexo-embedded select {font-family: inherit;}
.nexo-embedded .app-sidebar, .nexo-embedded .app-header > div:first-child, .nexo-embedded .account, .nexo-embedded #login, .nexo-embedded #pageDescription, .nexo-embedded #notice {display: none !important;}
.nexo-embedded .nexo-page-actions {display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; margin:0 0 16px;}
.nexo-embedded .nexo-page-actions[hidden] {display:none;}
.nexo-embedded #workspace > main {margin:0; padding:0; width:100%; max-width:none; min-width:0;}
.nexo-embedded body:has(#flows:not([hidden])) #workspace > main {padding:0;}
.nexo-embedded :is(#versions,#operation) > .section-heading h3 {display: none;}
.nexo-embedded #operation > .section-heading {justify-content: flex-end;}
.nexo-embedded .panel {padding: 14px; max-width: none; width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--nexo-surface); box-shadow: none;}
.nexo-embedded p {color: var(--muted);}
.nexo-embedded h3 {color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: normal;}
.nexo-embedded h4 {font-size: 14px; font-weight: 600;}
.nexo-embedded .section-heading {gap: 14px; padding-bottom: 14px; margin-bottom: 16px; border-color: var(--border); flex-wrap: wrap;}
.nexo-embedded .section-heading h3 {font-size: 16px;}
.nexo-embedded .section-heading .eyebrow {display: none;}
.nexo-embedded label {min-width: 0; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 500;}
.nexo-embedded .hint, .nexo-embedded .section-heading p {color: var(--muted); font-size: 13px; line-height: 1.6;}
.nexo-embedded .fields {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 16px;}
.nexo-embedded input:not([type='checkbox']), .nexo-embedded textarea {min-width: 0; background: var(--nexo-surface); border: 1px solid #cbd5e1; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 400; padding: 10px 12px;}
.nexo-embedded input:not([type='checkbox']) {min-height: 42px;}
.nexo-embedded input[type='checkbox'] {accent-color: var(--accent);}
.nexo-embedded textarea {line-height: 1.6;}
.nexo-embedded button {min-height: 38px; border-radius: 10px; padding: 9px 13px; color: var(--ink); border-color: #cbd5e1; background: var(--nexo-surface); font-size: 14px; font-weight: 500;}
.nexo-embedded button:hover {border-color: #c7d2fe; background: var(--nexo-selected);}
.nexo-embedded button:disabled {cursor: not-allowed; opacity: .55;}
.nexo-embedded .primary {background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: none;}
.nexo-embedded .primary:hover {background: #4338ca; border-color: #4338ca;}
.nexo-embedded :is(input,textarea,button,summary):focus-visible {outline: 2px solid #818cf8; outline-offset: 2px;}
.nexo-embedded .badge {background: var(--nexo-selected); color: #4338ca; border-radius: 999px; padding: 5px 10px; font-size: 12px; line-height: 1.5; font-weight: 500;}
.nexo-embedded .segmented {gap: 8px;}
.nexo-embedded .behavior-switch {background: var(--nexo-subtle); border-color: var(--border); padding: 4px; gap: 4px;}
.nexo-embedded .behavior-switch button {border: 0; min-height: 32px; padding: 6px 12px; font-size: 13px;}
.nexo-embedded .behavior-switch .active {color: var(--accent) !important; background: var(--nexo-surface) !important;}
.nexo-embedded details {border-color: var(--border); border-radius: 10px;}
.nexo-embedded .advanced-settings {background: var(--nexo-subtle); padding: 14px; margin-bottom: 16px;}
.nexo-embedded .advanced-settings > summary {font-size: 14px; color: var(--ink);}
.nexo-embedded .advanced-settings > summary span {font-size: 12px; color: var(--muted);}
.nexo-embedded .tool-fieldset {margin: 16px 0; padding: 14px; border-color: var(--border);}
.nexo-embedded .tool-fieldset legend {font-size: 14px;}
.nexo-embedded .tool-grid {gap: 14px;}
.nexo-embedded .form-footer {margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); gap: 12px; flex-wrap: wrap; font-size: 13px;}
.nexo-embedded .table-scroll {max-width: 100%; border: 1px solid var(--border); border-radius: 10px; overflow: auto;}
.nexo-embedded table {font-size: 14px; background: var(--nexo-surface);}
.nexo-embedded th {padding: 12px 14px; background: var(--nexo-subtle); font-size: 12px; color: var(--muted); font-weight: 600;}
.nexo-embedded td {padding: 12px 14px; border-color: var(--border); color: var(--ink);}
.nexo-embedded .row-actions {gap: 8px;}
.nexo-embedded .row-actions button {font-size: 13px; padding: 7px 10px; min-height: 34px;}
.nexo-embedded :is(.release-summary,.metric-grid) {gap: 14px; margin: 16px 0;}
.nexo-embedded .release-card {padding: 14px; border-color: var(--border); background: var(--nexo-subtle);}
.nexo-embedded .release-card small {font-size: 13px; color: var(--muted);}
.nexo-embedded .release-card strong {font-size: 22px; color: var(--ink);}
.nexo-embedded .inline-form {grid-template-columns: 180px minmax(0,1fr) auto; gap: 14px; margin: 16px 0;}
.nexo-embedded :is(.subheading,#operation > h3) {margin: 24px 0 14px;}
.nexo-embedded #operation .section-heading h3 {margin: 0;}
.nexo-embedded pre {border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--nexo-subtle); color: var(--ink); font-size: 12px;}
.nexo-embedded .conversation-filters {gap: 14px; flex-wrap: wrap; margin-bottom: 16px;}
.nexo-embedded .conversation-filters label {min-width: min(240px,100%); flex: 1;}
.nexo-embedded .conversation-layout {grid-template-columns: minmax(260px,320px) minmax(0,1fr); border-radius: 10px; border-color: var(--border); background: var(--nexo-surface);}
.nexo-embedded .conversation-list {background: var(--nexo-subtle); border-color: var(--border);}
.nexo-embedded .conversation-item {border-radius: 0; padding: 14px; border: 0; border-bottom: 1px solid var(--border); background: transparent;}
.nexo-embedded .conversation-item.active {background: var(--nexo-selected);}
.nexo-embedded .conversation-item strong {font-size: 14px; color: var(--ink);}
.nexo-embedded .conversation-item small {font-size: 12px; color: var(--muted); line-height: 1.5;}
.nexo-embedded :is(.conversation-detail,.list-heading) {padding: 14px; min-width: 0;}
.nexo-embedded .lab-layout {grid-template-columns: minmax(260px,320px) minmax(0,1fr); gap: 16px;}
.nexo-embedded .lab-layout aside {padding-right: 14px; border-color: var(--border);}
.nexo-embedded .demo-lab-status {padding: 14px; border-color: var(--border); background: var(--nexo-subtle);}
.nexo-embedded .demo-lab-status time {color: var(--ink);}
.nexo-embedded #messages {padding: 14px; border-color: var(--border); background: var(--nexo-subtle);}
.nexo-embedded .bubble {padding: 12px 14px; font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--nexo-surface); border-color: var(--border);}
.nexo-embedded .bubble.user {background: var(--nexo-selected); border-color: #c7d2fe;}
.nexo-embedded .bubble small {font-size: 12px; color: var(--muted);}
.nexo-embedded .empty, .nexo-embedded .empty-state {padding: 40px 20px; font-size: 14px;}
.nexo-embedded #workspace :is(.dropdown, label>details:not(.advanced-settings)) > summary {border-color: #cbd5e1; border-radius: 10px; min-height: 42px; padding: 10px 12px; font-size: 14px; color: var(--ink); background: var(--nexo-surface);}
.nexo-embedded .dropdown-menu,.nexo-embedded .dropdown-options {padding: 6px; border-color: var(--border); border-radius: 12px; background: var(--nexo-surface); box-shadow: 0 18px 46px #0f172a24;}
.nexo-embedded :is(.dropdown-menu,.dropdown-options) button {color: var(--ink); border-radius: 8px; font-size: 14px; background: transparent;}
.nexo-embedded :is(.dropdown-menu,.dropdown-options) button:hover {background: var(--nexo-selected); color: var(--accent);}
.nexo-embedded #workspace :is(.dropdown, label>details:not(.advanced-settings)) > summary::after {content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -3px 2px 0 8px;}
.nexo-embedded :is(.editor-toolbar,.editor-actions,.editor-variables) {padding: 14px; border-color: var(--border); background: var(--nexo-surface); border-radius: 10px;}
.nexo-embedded .editor-toolbar {gap: 12px;}
.nexo-embedded .flow-sections {gap: 6px; margin: 16px 0; padding: 0 0 10px; border-color: var(--border); flex-wrap: wrap;}
.nexo-embedded #flows .flow-sections button {font-size: 14px; min-height: 38px;}
.nexo-embedded #flows .flow-sections [aria-pressed='true'], .nexo-embedded .editor-view-toggle [aria-pressed='true'] {background: var(--nexo-selected); color: var(--accent);}
.nexo-embedded .editor-layout {border-color: var(--border); border-radius: 10px;}
.nexo-embedded :is(.editor-properties,.node-library) {padding: 14px; background: var(--nexo-surface); border-color: var(--border);}
.nexo-embedded :is(.editor-properties,.editor-variables) label {font-size: 13px; color: var(--ink);}
.nexo-embedded :is(.editor-properties,.editor-variables) .hint {font-size: 12px;}
.nexo-embedded .graph-node {background: var(--nexo-surface); border-color: #cbd5e1;}
.nexo-embedded .graph-node-head strong {color: var(--ink); font-weight: 600;}
.nexo-embedded .graph-node-head small {color: var(--accent);}
.nexo-embedded .graph-port {background: var(--nexo-subtle) !important; border-color: var(--border) !important;}
.nexo-embedded .editor-status {font-size: 12px; color: var(--muted);}
.nexo-embedded .scenario-card {border-color: var(--border); border-radius: 10px;}
.nexo-embedded .scenario-card > summary {padding: 14px; background: var(--nexo-subtle); font-size: 14px;}
.nexo-embedded .scenario-body {padding: 14px;}
.nexo-embedded .nexo-ui-icon {display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; flex-shrink: 0;}
.nexo-dark {--ink: #e2e8f0; --muted: #94a3b8; --border: #334155; --canvas: #0f172a; --nexo-surface: #1e293b; --nexo-subtle: #172033; --nexo-selected: #312e81; color-scheme: dark;}
.nexo-dark :is(input:not([type='checkbox']),textarea,button,#workspace .dropdown>summary,#workspace label>details:not(.advanced-settings)>summary) {border-color: var(--border);}
.nexo-dark .badge {color: #c7d2fe;}
.nexo-dark .editor-canvas {background-color: #172033;}
@media(max-width:1000px){
  .nexo-embedded .lab-layout {grid-template-columns: 260px minmax(0,1fr);}
  .nexo-embedded .conversation-layout {grid-template-columns: 260px minmax(0,1fr);}
  .nexo-embedded .tool-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .nexo-embedded .nexo-page-actions {justify-content:flex-start; width:100%; gap:8px;}
  .nexo-embedded .fields,.nexo-embedded .lab-layout,.nexo-embedded .conversation-layout,.nexo-embedded .inline-form {grid-template-columns: minmax(0,1fr);}
  .nexo-embedded .conversation-list {border-right: 0; border-bottom: 1px solid var(--border);}
  .nexo-embedded #conversationRows {max-height: 300px;}
  .nexo-embedded .lab-layout aside {padding-right: 0; border-right: 0;}
  .nexo-embedded .section-heading {align-items: flex-start;}
  .nexo-embedded .advanced-settings > summary span {display: none;}
  .nexo-embedded .metric-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
  .nexo-embedded #chatForm {flex-wrap: wrap;}
  .nexo-embedded #chatForm textarea {flex-basis: 100%;}
  .nexo-embedded #chatForm button {margin-left: auto;}
}
@media(max-width:420px){.nexo-embedded .tool-grid {grid-template-columns: minmax(0,1fr);}.nexo-embedded .nexo-page-actions #agentPicker {flex: 1;}}

.ai-dashboard-toolbar {display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap;}
.ai-dashboard-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px;}
.ai-dashboard-stat {display:flex;flex-direction:column;gap:8px;}
.ai-dashboard-stat > strong {font-size:30px;line-height:1.2;font-weight:600;}
.ai-dashboard-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px;}
.ai-dashboard-columns .panel {margin:0;min-width:0;}
.ai-dashboard-line {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--border);}
.ai-dashboard-line > div {display:flex;flex-direction:column;gap:4px;min-width:0;}
.ai-dashboard-line strong {font-weight:500;overflow-wrap:anywhere;}
.ai-governance .ai-dashboard-line {align-items:flex-start;}
.ai-governance .ai-dashboard-line > span {flex:1;min-width:0;}
.ai-governance .ai-dashboard-line > strong {flex:1;min-width:0;text-align:right;}
.ai-governance h4 {margin:18px 0 6px;font-size:13px;}
.ai-dashboard-line time {font-size:12px;color:var(--muted);text-align:right;}
.ai-dashboard-shortcuts {display:flex;flex-wrap:wrap;gap:10px;}
.ai-dashboard-columns h3 {margin:0 0 16px;}
.ai-dashboard-columns > .panel > button {margin-top:16px;}
@media(max-width:900px){.ai-dashboard-stats {grid-template-columns:repeat(2,minmax(0,1fr));}.ai-dashboard-columns{grid-template-columns:minmax(0,1fr);}}
@media(max-width:420px){.ai-dashboard-stats{gap:10px;}.ai-dashboard-line{align-items:flex-start;flex-wrap:wrap;}}

/* Shared chrome only. Canvas geometry, connection handles and chat rendering stay specialized. */
.nexo-embedded *, .nexo-embedded *::before,.nexo-embedded *::after {box-sizing:border-box;}
.nexo-embedded :is(h3,.section-heading h3) {font-size:15px;line-height:1.5;font-weight:600;}
.nexo-embedded #workspace label {font-size:13px;align-content:start;gap:8px;min-width:0;}
.nexo-embedded #groupingFields > label {display:flex;align-items:center;gap:10px;}
.nexo-embedded input[type=checkbox],.nexo-embedded input[type=radio] {width:18px;height:18px;flex:none;}
.nexo-embedded summary::after {content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);flex-shrink:0;}
.nexo-embedded .fields {align-items:start;gap:20px;}
.nexo-embedded #title {height:var(--ui-control-height,40px);}
.nexo-embedded #workspace :is(.dropdown,label>details:not(.advanced-settings)) > summary {min-height:var(--ui-control-height,40px);padding:9px 12px;font-size:13px;border-radius:var(--ui-radius-sm,8px);border-color:var(--border);}
.nexo-embedded :is(.advanced-settings,#groupingFields,.nexo-form-section) {border:1px solid var(--border);border-radius:var(--ui-radius,12px);background:var(--nexo-surface);margin:0;padding:0;min-width:0;}
.nexo-embedded :is(.advanced-settings,#groupingFields,.nexo-form-section) > summary {padding:16px 20px;font-size:13px;line-height:1.5;cursor:pointer;font-weight:600;}
.nexo-embedded :is(.advanced-settings,#groupingFields) > :not(summary) {margin:16px 20px;}
.nexo-embedded .nexo-section-body {padding:4px 0 8px;display:grid;gap:20px;}
.nexo-embedded #versionForm {display:grid;gap:20px;}
.nexo-embedded .tool-fieldset {min-width:0;padding:16px;border-radius:var(--ui-radius-sm,8px);border-color:var(--border);display:grid;gap:16px;margin:0;}
.nexo-embedded #customerSettingFields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:440px;overflow:auto;}
.nexo-embedded #customerSettingFields label {padding:12px;border:1px solid var(--border);border-radius:var(--ui-radius-sm,8px);}
.nexo-embedded :is(.release-card,.scenario-card) {padding:20px;border-radius:var(--ui-radius,12px);border-color:var(--border);background:var(--nexo-surface);}
.nexo-embedded .nexo-workspace-tabs {margin:20px 0;}
.nexo-embedded .nexo-dialog {width:min(620px,calc(100vw - 32px));padding:0;background:var(--nexo-surface);color:var(--ink);border:1px solid var(--border);border-radius:var(--ui-radius-lg,16px);max-height:calc(100dvh - 32px);overflow:auto;}
.nexo-embedded .nexo-dialog::backdrop {background:rgb(15 23 42 / 45%);}
.nexo-embedded .nexo-dialog-header {display:flex;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--border);align-items:center;}
.nexo-embedded .nexo-dialog-header h3 {font-size:18px;}
.nexo-embedded .nexo-dialog-body {padding:24px;}
.nexo-embedded .nexo-dialog-footer {display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;border-top:1px solid var(--border);}
.nexo-embedded .nexo-dialog .inline-form {grid-template-columns:1fr 1fr;margin:0;}
.nexo-embedded .nexo-dialog .n-numeric-range-limits {display:none;}
@media(max-width:720px){.nexo-embedded .nexo-dialog .inline-form {grid-template-columns:1fr;}.nexo-embedded .nexo-dialog-body {padding:16px;}.nexo-embedded .nexo-dialog-footer {flex-wrap:wrap;}}
.nexo-embedded .nexo-workspace-tabs [aria-selected=true] {background:var(--nexo-selected);color:var(--accent);}
.nexo-embedded .nexo-operation-panel {display:grid;gap:20px;min-width:0;}
.nexo-embedded .nexo-operation-panel > h3 {margin:0;}
.nexo-embedded .nexo-table-filter {display:flex;gap:12px;align-items:center;margin:16px 0;}
.nexo-embedded .nexo-table-filter input {flex:1;min-width:0;}
.nexo-embedded .nexo-table-filter .hint {flex-shrink:0;}
.nexo-embedded .row-actions {white-space:nowrap;}
.nexo-embedded .nexo-version-menu {display:inline-block;vertical-align:middle;margin-left:8px;}
.nexo-embedded .nexo-version-menu .dropdown-menu {min-width:220px;}
.nexo-embedded #versionRows td:first-child {min-width:220px;}
.nexo-embedded .version-pack {font-size:12px;margin-top:8px;}
.nexo-embedded .version-pack summary {cursor:pointer;color:var(--muted);}
.nexo-embedded .nexo-lab-mode {padding:14px;border:1px solid var(--border);border-radius:var(--ui-radius-sm,8px);background:var(--nexo-subtle);}
.nexo-embedded .nexo-lab-mode-status {padding:12px;font-size:12px;border:1px solid var(--border);border-radius:var(--ui-radius-sm,8px);}
.nexo-embedded .nexo-lab-mode-status[data-real=true] {background:var(--nexo-selected);color:var(--ink);}
.nexo-embedded .lab-layout {grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:24px;}
.nexo-embedded :is(.lab-layout,.conversation-layout,.editor-layout) > * {min-width:0;}
.nexo-embedded .editor-actions {gap:8px;flex-wrap:wrap;padding:12px;}
.nexo-embedded .editor-toolbar {gap:12px;padding:16px;}
.nexo-embedded .editor-properties {width:100%;max-width:100%;padding:20px;}
.nexo-embedded .step-card.n-card[aria-pressed=true],.nexo-embedded .conversation-item.n-card.active {border-color:var(--accent);background:var(--nexo-selected);}
.nexo-embedded .bubble {font-size:13px;max-width:90%;overflow-wrap:anywhere;}
.nexo-embedded .ai-dashboard-line {align-items:flex-start;}
.nexo-embedded .ai-dashboard-line>strong {overflow-wrap:anywhere;}
.nexo-embedded .n-numeric-range {display:grid;gap:10px;}
.nexo-embedded .n-numeric-range input[aria-invalid=true] {border-color:var(--ui-danger);}
.nexo-embedded .n-numeric-range-limits {color:var(--muted);}
.nexo-embedded .n-numeric-unit input {width:100%;}
.nexo-embedded .empty,.nexo-embedded .empty-state {font-size:13px;color:var(--muted);}
.nexo-embedded [hidden] {display:none!important;}
@media(max-width:1000px){.nexo-embedded .lab-layout {grid-template-columns:280px minmax(0,1fr);}}
@media(max-width:760px){.nexo-embedded .lab-layout,.nexo-embedded #customerSettingFields {grid-template-columns:minmax(0,1fr);}.nexo-embedded .nexo-table-filter {flex-wrap:wrap;}.nexo-embedded .nexo-table-filter input {flex-basis:100%;}.nexo-embedded .editor-properties {width:auto;}.nexo-embedded .nexo-workspace-tabs button {flex:1;}.nexo-embedded .nexo-version-menu {margin:8px 0 0;}.nexo-embedded .row-actions {white-space:normal;}}
.nexo-embedded.nexo-dark {--ui-text:#e2e8f0;--ui-muted:#94a3b8;--ui-border:#334155;--ui-primary:#a5b4fc;--ui-on-primary:#1e1b4b;--ui-surface:#111827;--ui-subtle:#172033;--ui-primary-soft:#252c4a;}
.nexo-embedded, .nexo-embedded.nexo-dark {
 --ink:var(--ui-text,#0f172a); --muted:var(--ui-muted,#64748b); --border:var(--ui-border,#e2e8f0);
 --accent:var(--ui-primary,#6366f1); --nexo-surface:var(--ui-surface,#fff); --nexo-subtle:var(--ui-subtle,#f8fafc); --nexo-selected:var(--ui-primary-soft,#eef2ff);
 font-family:NexoOutfit,var(--ui-font,Outfit),system-ui,sans-serif; font-size:13px;
}
.nexo-embedded .panel {padding:var(--ui-space-5,20px); border-radius:var(--ui-radius,12px); box-shadow:var(--ui-shadow,0 1px 2px rgb(15 23 42 / 4%));}
.nexo-embedded :is(input:not([type='checkbox']),textarea,button,summary.dropdown-trigger) {font-size:13px; border-radius:var(--ui-radius-sm,8px); border-color:var(--border);}
.nexo-embedded input:not([type='checkbox']), .nexo-embedded button:not([class*='graph-']):not([class*='flow-']) {min-height:var(--ui-control-height,40px);}
.nexo-embedded .primary {color:var(--ui-on-primary,#fff);}
.nexo-embedded .primary:hover {background:var(--accent); border-color:var(--accent); filter:brightness(.97);}
.nexo-embedded :is(input,textarea,button,summary):focus-visible {outline-color:var(--ui-focus,#a5b4fc);}
.nexo-embedded table {font-size:13px;}
.nexo-embedded :is(th,td) {padding:12px 16px;}
.nexo-embedded .table-scroll {border-radius:var(--ui-radius-sm,8px);}
@media(max-width:720px){.nexo-embedded .panel {padding:var(--ui-space-4,16px);}.nexo-embedded input:not([type='checkbox']),.nexo-embedded textarea {font-size:16px;}}

/* Configuration geometry is supplied by Nexo's shared React components. */
.nexo-embedded.nexo-config-page,.nexo-embedded.nexo-config-page body {overflow:hidden;}
.nexo-embedded.nexo-config-page #workspace > main {min-height:0;}
.nexo-embedded #configure.nexo-config-workspace {background:transparent;border:0;box-shadow:none;padding:0;}
.nexo-embedded .nexo-config-editor {display:grid;gap:20px;}
.nexo-embedded .premium-modal .nexo-modal-fields {border:0;background:transparent;margin:0;padding:0;}
.nexo-embedded .premium-modal .nexo-modal-fields > summary {display:none;}
.nexo-embedded .premium-modal .nexo-modal-fields > :not(summary) {margin:0 0 20px;}
.nexo-embedded .premium-modal .nexo-modal-fields > :last-child {margin-bottom:0;}
.nexo-embedded .premium-modal .nexo-modal-fields > h3 {display:none;}
.nexo-embedded .premium-modal .nexo-modal-fields label:has(> input[type=checkbox]) {display:flex;align-items:center;gap:10px;}
.nexo-embedded .premium-modal #presentationFields {padding:0;border:0;}
.nexo-embedded .premium-modal #presentationFields > legend {display:none;}
.nexo-embedded .premium-modal textarea {min-height:100px;max-height:360px;resize:vertical;}
.nexo-embedded .premium-modal #prompt {height:280px;}
.nexo-embedded .premium-modal #responseTemplates {display:grid;gap:24px;}
.nexo-embedded .premium-modal #customerSettingFields {max-height:none;}
.nexo-embedded .premium-modal .n-numeric-range-limits {display:none;}
.nexo-embedded .n-settings-scope .nexo-page-actions {margin:0;justify-content:flex-start;}
.nexo-embedded .n-settings-render-root .n-settings-heading .segmented {gap:12px;}
.nexo-embedded .n-settings-render-root .form-footer {padding:16px 20px;background:var(--nexo-surface);border:1px solid var(--border);border-radius:var(--ui-radius,12px);}
@media(max-width:720px){.nexo-embedded .premium-modal .fields {grid-template-columns:minmax(0,1fr);}}
.nexo-embedded #establishmentRows td>small{display:block;margin-top:var(--ui-space-1,4px)}
