:root {
  --ink: #202936;
  --muted: #788295;
  --border: #e5e8ef;
  --accent: #6954df;
  --canvas: #f5f6fa;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.15px;
}
#greetingPreview { white-space: pre-line; padding-top: 16px; line-height: 1.7; }
#presentationVariables { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#responseTemplates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
#responseTemplates label { min-width: 0; }
@media (max-width: 800px) { #responseTemplates { grid-template-columns: 1fr; } }
.advanced-settings {
  margin: 0 0 24px;
  background: #fafbfd;
  padding: 15px 18px;
  border-color: #e9ecf3;
}
.advanced-settings > summary {
  font-size: 11px;
  font-weight: 600;
  color: #7b8799;
  gap: 20px;
}
.advanced-settings > summary span {
  margin-left: auto;
  font-size: 10px;
  color: #a1aaba;
  font-weight: 400;
}
.advanced-settings[open] > .fields {
  margin-top: 22px;
  margin-bottom: 5px;
}
body {
  min-width: 320px;
}
button,
input,
textarea,
details {
  border-color: var(--border);
}
button {
  font-weight: 600;
  border-radius: 9px;
  padding: 10px 14px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  border-color: #c5baf6;
  background: #f6f3ff;
}
button:disabled {
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 3px 7px #6954df18;
}
.app-sidebar {
  width: 244px;
  background: #171b29;
  color: #d3d5e1;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 30px 18px;
}
.product-brand {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 25px;
  font-weight: 700;
  padding: 0 12px;
}
.lara-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 42px;
  background: #8471ed;
  border-radius: 12px;
  color: white;
  font-family: Georgia, serif;
  font-size: 30px;
  font-style: italic;
}
.product-caption {
  display: block;
  color: #9d9bac;
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-top: 4px;
}
.workspace-label {
  font-size: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  background: #222737;
  border: 1px solid #303647;
  padding: 13px 12px;
  margin: 29px 5px 27px;
  border-radius: 10px;
}
.workspace-dot {
  width: 6px;
  height: 6px;
  background: #a299de;
  border-radius: 100%;
}
.nav-caption {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #7a8198;
  padding: 0 15px;
  margin-bottom: 13px;
}
.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  overflow: visible;
}
.app-sidebar nav button {
  color: #aeb4c8;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
}
.app-sidebar nav button > span:first-child {
  font-size: 19px;
  width: 22px;
  text-align: center;
  color: #7e87a0;
}
.app-sidebar nav button:hover {
  background: #222839;
  color: white;
}
.app-sidebar nav button.active {
  background: #302944;
  color: #ddd6ff;
  box-shadow: inset 3px 0 #a28afb;
}
.app-sidebar nav button.active > span:first-child {
  color: #b7a8f8;
}
.nav-live {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0.7px;
  background: #283843;
  color: #8fbdc0;
  padding: 4px 6px;
  border-radius: 5px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 25px 8px 4px;
  border-top: 1px solid #2a3040;
  display: grid;
  gap: 11px;
}
.sidebar-footer .nav-caption {
  padding: 0;
  margin: 0;
  font-size: 8px;
}
.sidebar-footer .badge {
  font-size: 11px;
  border-radius: 6px;
  background: #272b3b;
  color: #aeb4c8;
}
.sidebar-footer small {
  font-size: 10px;
  color: #798198;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-left: 244px;
  min-height: 101px;
  padding: 22px 38px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.breadcrumb {
  font-size: 10px;
  color: #9299aa;
  display: block;
  margin-bottom: 7px;
}
.breadcrumb span {
  margin: 0 7px;
  color: #bdc3d0;
}
.app-header h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.header-actions {
  display: flex;
  gap: 26px;
  align-items: center;
}
.behavior-switch {
  padding: 4px;
  background: #f4f5f8;
  border: 1px solid #e9ebf1;
  border-radius: 10px;
  gap: 2px;
}
.behavior-switch button {
  border: 0;
  background: transparent;
  color: #858d9d;
  font-size: 11px;
  padding: 8px 12px;
}
.behavior-switch .active {
  background: white !important;
  color: #493c8e !important;
  box-shadow: 0 2px 5px #2029360c;
}
.account {
  font-size: 11px;
  gap: 12px;
}
.account button {
  font-weight: 500;
  font-size: 11px;
}
.account span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header ~ main {
  margin-left: 244px;
  max-width: none;
  padding: 30px 38px 48px;
}
.page-description {
  font-size: 12px;
  margin: 0 0 24px;
  max-width: 840px;
  color: #8590a0;
}
.panel {
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 4px 24px #242c4103;
  max-width: 1500px;
}
.section-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid #eef0f5;
  margin-bottom: 25px;
}
.section-heading h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #9199ab;
  margin-bottom: 8px;
}
.fields {
  gap: 22px 25px;
}
label {
  font-size: 11px;
  color: #6c7788;
  font-weight: 550;
  gap: 9px;
}
input,
textarea {
  color: #354052;
  border-radius: 8px;
  font-size: 13px;
  padding: 12px;
  background: #fff;
}
input:focus,
textarea:focus {
  border-color: #a495ed;
  outline: 3px solid #6954df0c;
  outline-offset: 0;
}
textarea#prompt {
  font-size: 13px;
  line-height: 1.9;
  padding: 20px;
  background: #fbfcff;
  min-height: 250px;
}
.form-footer {
  border-top: 1px solid #eef0f5;
  padding-top: 23px;
  margin-top: 25px;
}
.tool-fieldset {
  border-color: var(--border);
  padding: 21px;
}
.tool-fieldset legend {
  font-size: 12px;
  color: #536075;
}
.tool-grid {
  gap: 17px;
}
.check-label {
  font-size: 12px;
  color: #6c7788;
}
.check-label input {
  accent-color: var(--accent);
}
details {
  position: relative;
  padding: 12px;
  background: #fff;
}
summary {
  display: flex;
  justify-content: space-between;
  list-style: none;
  font-size: 13px;
  color: #354052;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "⌄";
  color: #9da5b4;
  margin-left: 15px;
}
.dropdown-options {
  background: white;
  padding: 9px;
  box-shadow: 0 10px 30px #20293612;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.dropdown-options button {
  border: 0;
  padding: 9px;
  font-size: 12px;
}
.hint {
  color: #8b95a7;
  font-size: 11px;
}
.badge {
  font-size: 10px;
  padding: 6px 10px;
  background: #f0edfc;
  color: #8372c6;
}
.metric-grid {
  gap: 18px;
}
.release-card {
  border-color: var(--border);
  background: #fafbfd;
  padding: 20px;
}
.metric-grid .release-card strong {
  font-size: 27px;
  color: #38425a;
}
.release-card small {
  font-size: 11px;
}
.release-card strong {
  letter-spacing: -0.7px;
}
th {
  font-size: 9px;
  letter-spacing: 0.65px;
  color: #98a1b1;
  padding: 16px 12px;
}
td {
  font-size: 12px;
  padding: 20px 12px;
  border-color: #eef0f5;
}
.row-actions button {
  font-size: 10px;
  border-radius: 6px;
  padding: 7px 9px;
}
.table-scroll {
  border: 1px solid #edf0f5;
  border-radius: 10px;
}
#versionRows td:first-child {
  font-weight: 600;
}
.subheading {
  font-size: 14px;
  margin-top: 30px;
}
#auditRows details {
  font-size: 11px;
  border: 1px solid #edf0f5;
}
#notice {
  font-size: 12px;
}
.lab-layout {
  grid-template-columns: 300px minmax(0,1fr);
  gap: 30px;
}
.demo-lab-status {display:grid;gap:10px;padding:16px;border:1px solid #e5def8;border-radius:12px;background:#faf8ff;}
.demo-lab-status .badge {justify-self:start;}
.demo-lab-status time {font-size:13px;font-variant-numeric:tabular-nums;color:#384362;}
#laboratory .chat {min-width:0;}
#laboratory .lab-layout aside {gap:16px;}
#laboratory #messages {max-height:560px;}
#labResetDialog {width:min(480px,calc(100vw - 32px));border:1px solid #e3dff0;border-radius:18px;padding:28px;color:var(--text);box-shadow:0 24px 80px #18182f30;}
#labResetDialog::backdrop {background:#171b2d66;}
#labResetDialog form {display:grid;gap:20px;}
#labResetDialog .segmented {justify-content:flex-end;}
#laboratory .check-label {align-items:flex-start;line-height:1.6;}
#laboratory .check-label input {margin-top:3px;}
.lab-layout aside {
  padding-right: 25px;
  border-right: 1px solid #eef0f5;
}
.chat {
  min-height: 570px;
}
#messages {
  background: #f7f8fc;
  border: 0;
  border-radius: 12px;
  min-height: 390px;
}
.bubble {
  box-shadow: 0 2px 7px #222e4104;
  font-size: 13px;
  border-color: #edf0f5;
  line-height: 1.7;
}
.bubble.user {
  background: #ede8fc;
  color: #5d4c98;
  border: 0;
}
.bubble small {
  font-size: 9px;
  letter-spacing: 0.4px;
}
.empty {
  color: #9ca5b5;
}
#chatForm {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: white;
}
#chatForm textarea {
  border: 0;
  resize: none;
}
.production-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}
.production-top button {
  margin-left: auto;
  font-size: 11px;
}
.capture-status {
  font-size: 11px;
  padding: 7px 10px;
  background: #edeef4;
  color: #757e91;
  border-radius: 6px;
}
.capture-status.connected {
  background: #e7f5ef;
  color: #32846d;
}
.muted {
  color: #8d97a7;
  font-size: 11px;
}
.conversation-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.conversation-filters label {
  min-width: 225px;
}
.conversation-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  min-height: 610px;
  background: white;
}
.conversation-list {
  border-right: 1px solid var(--border);
  background: #fcfcfe;
  display: flex;
  flex-direction: column;
}
.list-heading {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
#conversationRows {
  flex: 1;
  max-height: 660px;
  overflow: auto;
}
.conversation-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef0f5;
  border-radius: 0;
  padding: 18px 22px;
  text-align: left;
  background: transparent;
}
.conversation-item.active {
  background: #f0ecfc;
  box-shadow: inset 3px 0 var(--accent);
}
.conversation-item strong {
  display: block;
  color: #3d4960;
  font-size: 12px;
}
.conversation-item small {
  display: block;
  font-size: 10px;
  color: #8d96a9;
  margin-top: 8px;
  font-weight: 400;
}
.conversation-item .conv-avatar {
  float: left;
  margin-right: 12px;
  display: grid;
  place-items: center;
  background: #eeedf7;
  color: #877cae;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
}
.list-pagination {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.list-pagination button {
  font-size: 10px;
  padding: 7px 10px;
}
.conversation-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.conversation-heading {
  padding: 22px 27px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.conversation-heading small {
  display: block;
  font-size: 10px;
  color: #939aaa;
  margin-top: 6px;
}
.production-timeline {
  flex: 1;
  background: #f8f9fc;
  padding: 25px;
  max-height: 660px;
  overflow: auto;
}
.production-timeline .bubble {
  max-width: 85%;
}
.event-caption {
  margin: 19px 0 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #919aae;
}
.event-caption span {
  background: white;
  border: 1px solid #e9edf3;
  border-radius: 5px;
  padding: 5px 8px;
}
.delivery-note {
  font-size: 10px;
  padding: 15px 24px;
  border-top: 1px solid var(--border);
  color: #9aa3b2;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 420px;
  text-align: center;
  gap: 17px;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 550;
  color: #697386;
}
.empty-state p {
  font-size: 12px;
  max-width: 340px;
  color: #a0a8b6;
  line-height: 1.8;
}
.empty-symbol {
  width: 62px;
  height: 62px;
  border: 1px solid #e4e0f1;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #a192cc;
  background: #f0edf7;
}
.flow-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 13px 13px 0 0;
}
.flow-toolbar > div {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 13px;
}
.flow-toolbar button {
  font-size: 11px;
}
.flow-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  overflow: hidden;
  min-height: 660px;
}
.flow-canvas {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f6fa;
  background-image: radial-gradient(#cbd0dc 0.8px, transparent 0.8px);
  background-size: 16px 16px;
  overflow: auto;
}
.flow-node {
  width: 265px;
  position: relative;
  text-align: left;
  border: 1px solid #d9deea;
  box-shadow: 0 3px 12px #2d344608;
  padding: 17px 19px;
  border-radius: 10px;
  background: white;
  flex-shrink: 0;
}
.flow-node strong {
  display: block;
  font-size: 12px;
  color: #556079;
}
.flow-node small {
  display: block;
  font-size: 10px;
  color: #949dae;
  margin-top: 6px;
  font-weight: 400;
  line-height: 1.6;
}
.flow-node.active {
  border-color: #9e8bdc;
  box-shadow: 0 0 0 3px #e9e3f7;
}
.flow-node .step-chip {
  float: right;
  font-size: 9px;
  background: #f2effb;
  padding: 3px 6px;
  border-radius: 4px;
  color: #9789b8;
}
.flow-connector {
  height: 33px;
  flex-shrink: 0;
  width: 1px;
  background: #b9c0cf;
  position: relative;
}
.flow-connector:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-right: 1px solid #b9c0cf;
  border-bottom: 1px solid #b9c0cf;
}
.flow-branch-label {
  font-size: 9px;
  color: #9aa2b2;
  margin: 9px 0;
}
.flow-properties {
  padding: 25px;
  background: white;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.flow-properties h3 {
  font-size: 16px;
}
.flow-properties h4 {
  font-size: 11px;
  margin: 10px 0 0;
  color: #8992a5;
}
.flow-properties p,
.flow-properties li {
  font-size: 12px;
  line-height: 1.8;
  color: #8791a3;
}
.flow-properties ul {
  padding-left: 17px;
  margin: 0;
}
.flow-properties .flow-safety {
  font-size: 10px;
  background: #f8f9fc;
  padding: 13px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
}
.flow-properties button {
  width: 100%;
  font-size: 11px;
}
.login {
  background: #f4f5fa;
}
.login-card {
  padding: 42px;
  border: 1px solid #e4e7f0;
  box-shadow: 0 20px 60px #30344b09;
  border-radius: 20px;
}
.login-card h1 {
  color: #38415a;
  font-size: 25px;
}
.login-card .brand {
  font-size: 10px;
}
#productionMessages .bubble:empty {
  display: none;
}
@media (min-width: 1700px) {
  .app-header ~ main {
    padding-left: 48px;
    padding-right: 48px;
  }
  .panel {
    max-width: 1600px;
  }
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .conversation-layout {
    grid-template-columns: 370px 1fr;
  }
  .flow-layout {
    grid-template-columns: 1fr 340px;
  }
}
@media (max-width: 1100px) {
  .app-sidebar {
    width: 205px;
    padding: 25px 10px;
  }
  .app-header,
  .app-header ~ main {
    margin-left: 205px;
    padding-left: 23px;
    padding-right: 23px;
  }
  .account span {
    display: none;
  }
  .header-actions {
    gap: 14px;
  }
  .conversation-layout {
    grid-template-columns: 270px 1fr;
  }
  .flow-layout {
    grid-template-columns: 1fr 240px;
  }
  .lab-layout {
    grid-template-columns: 230px 1fr;
    gap: 20px;
  }
}
@media (max-width: 800px) {
  .app-sidebar {
    position: static;
    width: auto;
    padding: 17px 16px;
  }
  .product-brand {
    font-size: 20px;
    padding: 0;
  }
  .product-caption {
    font-size: 8px;
  }
  .lara-mark {
    width: 32px;
    height: 34px;
    font-size: 23px;
  }
  .workspace-label,
  .nav-caption,
  .sidebar-footer {
    display: none;
  }
  .app-sidebar nav {
    flex-direction: row;
    overflow: auto;
    gap: 3px;
    margin-top: 15px;
    padding-bottom: 3px;
  }
  .app-sidebar nav button {
    white-space: nowrap;
    padding: 10px;
    font-size: 11px;
  }
  .app-sidebar nav button > span:first-child {
    display: none;
  }
  .app-header,
  .app-header ~ main {
    margin-left: 0;
    padding: 20px 16px;
  }
  .app-header h1 {
    font-size: 21px;
  }
  .app-header {
    min-height: 85px;
  }
  .header-actions {
    gap: 10px;
  }
  .account {
    gap: 0;
  }
  .account button {
    padding: 7px 9px;
  }
  .behavior-switch button {
    padding: 6px 8px;
    font-size: 9px;
  }
  .breadcrumb {
    font-size: 8px;
  }
  .page-description {
    font-size: 11px;
  }
  .panel {
    padding: 21px 18px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .lab-layout,
  .flow-layout {
    grid-template-columns: 1fr;
  }
  .lab-layout aside {
    border-right: 0;
    padding: 0;
  }
  .flow-properties {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .flow-canvas {
    min-height: 500px;
  }
  .conversation-layout {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  #conversationRows {
    max-height: 230px;
  }
  .conversation-filters {
    flex-wrap: wrap;
  }
  .conversation-filters label {
    min-width: 0;
    flex: 1;
  }
  .production-top {
    flex-wrap: wrap;
  }
  .production-top .muted {
    font-size: 9px;
  }
  .production-timeline {
    min-height: 350px;
    padding: 15px;
  }
  .conversation-heading {
    padding: 18px;
  }
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-heading {
    gap: 16px;
  }
  .empty-state {
    min-height: 300px;
  }
  .nav-live {
    font-size: 7px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
