/*
 * E10 reusable profiles and composition primitives.
 * Load after e10-tokens.css, styles.css, e10-authentic.css and page recipes.
 * Every primitive is opt-in so existing demos remain unchanged.
 */

/* Profile contract */
.e10-system-root,
.e10-profile-classic,
.e10-profile-admin-center,
.e10-profile-business-workbench,
.e10-profile-focus {
  --e10-profile-primary: #0470c1;
  --e10-profile-primary-hover: #035f9f;
  --e10-profile-primary-soft: #eaf5fd;
  --e10-profile-topbar: #0470c1;
  --e10-profile-topbar-text: #ffffff;
  --e10-profile-nav: #2b2e35;
  --e10-profile-nav-active: #1d1f25;
  --e10-profile-nav-hover: #25282e;
  --e10-profile-nav-text: rgba(255, 255, 255, 0.9);
  --e10-profile-nav-muted: #9da1a8;
  --e10-profile-workspace: #f0f1f4;
  --e10-profile-panel: #ffffff;
  --e10-profile-panel-soft: #f7f8fa;
  --e10-profile-border: #e5e5e5;
  --e10-profile-divider: #ebebeb;
  --e10-profile-text: #222222;
  --e10-profile-text-regular: #666666;
  --e10-profile-text-muted: #999999;
  --e10-profile-success: #36a66a;
  --e10-profile-warning: #e39b26;
  --e10-profile-danger: #e95858;
  --e10-profile-info: #418dcc;
  --e10-profile-radius: 3px;
  --e10-profile-panel-radius: 3px;
  --e10-profile-shadow: 0 2px 10px rgba(28, 43, 54, 0.08);
  --e10-profile-topbar-height: 50px;
  --e10-profile-master-width: 200px;
  --e10-profile-sidebar-width: 220px;
  --e10-profile-secondary-width: 210px;
  --e10-profile-tree-width: 280px;
  --e10-profile-inspector-width: 330px;
  --e10-profile-toolbar-height: 46px;
  --e10-profile-control-height: 30px;
  --e10-profile-row-height: 40px;
  color: var(--e10-profile-text);
  font-family: Arial, PingFangSC-Light, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
}

.e10-profile-classic {
  --e10-profile-primary: #0470c1;
  --e10-profile-primary-hover: #035f9f;
  --e10-profile-primary-soft: #eaf5fd;
  --e10-profile-topbar: #0470c1;
  --e10-profile-nav: #2b2e35;
  --e10-profile-nav-active: #1d1f25;
  --e10-profile-nav-hover: #25282e;
  --e10-profile-panel-radius: 2px;
}

.e10-profile-admin-center {
  --e10-profile-primary: #0561a3;
  --e10-profile-primary-hover: #064f83;
  --e10-profile-primary-soft: #eaf3f9;
  --e10-profile-topbar: #0561a3;
  --e10-profile-nav: #273543;
  --e10-profile-nav-active: #1e2a35;
  --e10-profile-nav-hover: #304253;
  --e10-profile-workspace: #f2f3f5;
  --e10-profile-radius: 2px;
  --e10-profile-panel-radius: 2px;
  --e10-profile-shadow: 0 1px 5px rgba(25, 42, 54, 0.08);
}

.e10-profile-business-workbench {
  --e10-profile-primary: #0b71c2;
  --e10-profile-primary-hover: #075d9d;
  --e10-profile-primary-soft: #ebf5fc;
  --e10-profile-topbar: #0b71c2;
  --e10-profile-nav: #ffffff;
  --e10-profile-nav-active: #eaf5fd;
  --e10-profile-nav-hover: #f5f8fa;
  --e10-profile-nav-text: #45515b;
  --e10-profile-nav-muted: #89939c;
  --e10-profile-workspace: #f1f3f6;
  --e10-profile-radius: 6px;
  --e10-profile-panel-radius: 6px;
  --e10-profile-shadow: 0 2px 10px rgba(32, 60, 78, 0.07);
}

.e10-profile-focus {
  --e10-profile-primary: #0470c1;
  --e10-profile-primary-hover: #035f9f;
  --e10-profile-primary-soft: #edf6fc;
  --e10-profile-topbar: #ffffff;
  --e10-profile-topbar-text: #333333;
  --e10-profile-nav: #ffffff;
  --e10-profile-nav-text: #555555;
  --e10-profile-workspace: #f0f1f4;
  --e10-profile-panel-radius: 2px;
}

.e10-system-root *,
.e10-system-root *::before,
.e10-system-root *::after,
.e10-profile-classic *,
.e10-profile-classic *::before,
.e10-profile-classic *::after,
.e10-profile-admin-center *,
.e10-profile-admin-center *::before,
.e10-profile-admin-center *::after,
.e10-profile-business-workbench *,
.e10-profile-business-workbench *::before,
.e10-profile-business-workbench *::after,
.e10-profile-focus *,
.e10-profile-focus *::before,
.e10-profile-focus *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

/* Shell profiles */
.e10-system-shell {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 320px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--e10-profile-workspace);
}

.e10-system-shell.e10-profile-classic,
.e10-system-shell.e10-profile-business-workbench {
  grid-template: var(--e10-profile-topbar-height) minmax(0, 1fr) /
    var(--e10-profile-sidebar-width) minmax(0, 1fr);
}

.e10-system-shell.e10-profile-admin-center {
  grid-template: var(--e10-profile-topbar-height) minmax(0, 1fr) /
    var(--e10-profile-master-width) var(--e10-profile-secondary-width) minmax(0, 1fr);
}

.e10-system-shell.e10-profile-focus {
  grid-template: var(--e10-profile-topbar-height) minmax(0, 1fr) / minmax(0, 1fr);
}

.e10-system-shell.e10-profile-focus.e10-system-shell--bare {
  grid-template-rows: minmax(0, 1fr);
}

.e10-system-topbar {
  position: relative;
  z-index: 40;
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  height: var(--e10-profile-topbar-height);
  align-items: stretch;
  color: var(--e10-profile-topbar-text);
  background: var(--e10-profile-topbar);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.e10-profile-focus .e10-system-topbar {
  border-bottom-color: var(--e10-profile-border);
}

.e10-system-brand {
  display: flex;
  width: var(--e10-profile-sidebar-width);
  min-width: var(--e10-profile-sidebar-width);
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  overflow: hidden;
  color: inherit;
  white-space: nowrap;
}

.e10-profile-admin-center .e10-system-brand {
  width: var(--e10-profile-master-width);
  min-width: var(--e10-profile-master-width);
}

.e10-system-brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
}

.e10-profile-focus .e10-system-brand-mark {
  color: #ffffff;
  background: var(--e10-profile-primary);
  border-color: var(--e10-profile-primary);
}

.e10-system-brand-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.e10-system-brand-copy strong,
.e10-system-brand-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-brand-copy strong {
  font-size: 14px;
  font-weight: 500;
}

.e10-system-brand-copy small {
  margin-top: 2px;
  color: currentColor;
  font-size: 10px;
  opacity: 0.72;
}

.e10-system-topnav {
  display: flex;
  min-width: 0;
  height: 50px;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.e10-system-topnav::-webkit-scrollbar {
  display: none;
}

.e10-system-topnav-item {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  height: 50px;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
}

.e10-system-topnav-item:hover,
.e10-system-topnav-item.is-active {
  background: rgba(0, 31, 61, 0.16);
}

.e10-profile-focus .e10-system-topnav-item:hover,
.e10-profile-focus .e10-system-topnav-item.is-active {
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
}

.e10-system-topnav-item.is-active::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  content: "";
  background: currentColor;
}

.e10-system-top-actions {
  display: flex;
  min-width: max-content;
  align-items: center;
  margin-left: auto;
}

.e10-system-top-action {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 50px;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.e10-system-top-action:hover {
  background: rgba(0, 31, 61, 0.15);
}

.e10-profile-focus .e10-system-top-action:hover {
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
}

.e10-system-account {
  display: flex;
  min-width: 138px;
  height: 50px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  overflow: hidden;
  color: inherit;
  background: rgba(0, 31, 61, 0.11);
  border: 0;
  cursor: pointer;
}

.e10-profile-focus .e10-system-account {
  background: #f7f7f7;
}

.e10-system-avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: #ffffff;
  background: #5d9cec;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 11px;
}

.e10-system-account-copy {
  min-width: 0;
  overflow: hidden;
  text-align: left;
}

.e10-system-account-copy strong,
.e10-system-account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-account-copy strong {
  font-size: 12px;
  font-weight: 500;
}

.e10-system-account-copy small {
  margin-top: 2px;
  font-size: 10px;
  opacity: 0.7;
}

.e10-system-sidebar,
.e10-system-master-nav,
.e10-system-secondary-nav {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.e10-system-sidebar {
  grid-row: 2;
  grid-column: 1;
  color: var(--e10-profile-nav-text);
  background: var(--e10-profile-nav);
  border-right: 1px solid var(--e10-profile-border);
}

.e10-system-master-nav {
  grid-row: 2;
  grid-column: 1;
  color: var(--e10-profile-nav-text);
  background: var(--e10-profile-nav);
}

.e10-system-secondary-nav {
  grid-row: 2;
  grid-column: 2;
  color: #444444;
  background: #ffffff;
  border-right: 1px solid var(--e10-profile-border);
}

.e10-system-nav-head {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  overflow: hidden;
  color: inherit;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-nav-section {
  min-height: 30px;
  padding: 8px 14px 0;
  overflow: hidden;
  color: var(--e10-profile-nav-muted);
  font-size: 10px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 18px;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.e10-system-nav-item > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-nav-item:hover,
.e10-system-nav-item.is-active {
  color: var(--e10-profile-nav-text);
  background: var(--e10-profile-nav-hover);
}

.e10-system-nav-item.is-active {
  background: var(--e10-profile-nav-active);
}

.e10-system-nav-item.is-active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--e10-profile-primary);
}

.e10-profile-business-workbench .e10-system-nav-item:hover,
.e10-profile-business-workbench .e10-system-nav-item.is-active,
.e10-system-secondary-nav .e10-system-nav-item:hover,
.e10-system-secondary-nav .e10-system-nav-item.is-active {
  color: var(--e10-profile-primary);
}

.e10-system-main {
  grid-row: 2;
  grid-column: 2;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--e10-profile-workspace);
}

.e10-profile-admin-center > .e10-system-main {
  grid-column: 3;
}

.e10-profile-focus > .e10-system-main {
  grid-column: 1;
}

.e10-system-shell--bare > .e10-system-main {
  grid-row: 1;
}

/* Controls shared by every profile */
.e10-system-toolbar {
  display: flex;
  min-width: 0;
  min-height: var(--e10-profile-toolbar-height);
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-border);
}

.e10-system-toolbar-title {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-toolbar-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.e10-system-button,
.e10-system-icon-button {
  height: var(--e10-profile-control-height);
  color: #555555;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: var(--e10-profile-radius);
  cursor: pointer;
}

.e10-system-button {
  display: inline-flex;
  min-width: 62px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-icon-button {
  display: inline-grid;
  width: var(--e10-profile-control-height);
  min-width: var(--e10-profile-control-height);
  padding: 0;
  place-items: center;
}

.e10-system-button:hover,
.e10-system-icon-button:hover,
.e10-system-button:focus-visible,
.e10-system-icon-button:focus-visible {
  color: var(--e10-profile-primary);
  border-color: var(--e10-profile-primary);
  outline: none;
}

.e10-system-button--primary {
  color: #ffffff;
  background: var(--e10-profile-primary);
  border-color: var(--e10-profile-primary);
}

.e10-system-button--primary:hover,
.e10-system-button--primary:focus-visible {
  color: #ffffff;
  background: var(--e10-profile-primary-hover);
  border-color: var(--e10-profile-primary-hover);
}

.e10-system-button--text {
  min-width: auto;
  padding: 0 7px;
  color: var(--e10-profile-primary);
  background: transparent;
  border-color: transparent;
}

.e10-system-button:disabled,
.e10-system-icon-button:disabled,
.e10-system-input:disabled,
.e10-system-select:disabled,
.e10-system-textarea:disabled {
  color: #b8b8b8;
  background: #f5f5f5;
  border-color: #e8e8e8;
  cursor: not-allowed;
}

.e10-system-input,
.e10-system-select,
.e10-system-textarea {
  width: 100%;
  min-width: 0;
  color: #333333;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: var(--e10-profile-radius);
  outline: none;
  font: inherit;
}

.e10-system-input,
.e10-system-select {
  height: var(--e10-profile-control-height);
  padding: 0 9px;
}

.e10-system-textarea {
  min-height: 76px;
  padding: 8px 9px;
  line-height: 1.6;
  resize: vertical;
}

.e10-system-input:focus,
.e10-system-select:focus,
.e10-system-textarea:focus {
  border-color: var(--e10-profile-primary);
  box-shadow: 0 0 0 2px rgba(4, 112, 193, 0.1);
}

.e10-system-input-group {
  display: flex;
  min-width: 0;
  align-items: stretch;
}

.e10-system-input-group > * {
  border-radius: 0;
}

.e10-system-input-group > :first-child {
  border-radius: var(--e10-profile-radius) 0 0 var(--e10-profile-radius);
}

.e10-system-input-group > :last-child {
  border-radius: 0 var(--e10-profile-radius) var(--e10-profile-radius) 0;
}

.e10-system-input-group > * + * {
  margin-left: -1px;
}

.e10-system-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.e10-system-field-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #555555;
  font-size: 12px;
}

.e10-system-field-label.is-required::before {
  color: var(--e10-profile-danger);
  content: "*";
}

.e10-system-field-hint {
  color: var(--e10-profile-text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.e10-system-field-hint.is-error {
  color: var(--e10-profile-danger);
}

.e10-system-badge,
.e10-system-status {
  display: inline-flex;
  max-width: 100%;
  min-height: 20px;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  overflow: hidden;
  color: #66727a;
  background: #f2f4f5;
  border: 1px solid #e1e5e8;
  border-radius: 2px;
  font-size: 10px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  content: "";
  background: #9aa2a8;
  border-radius: 50%;
}

.e10-system-status.is-success {
  color: #287d50;
  background: #edf8f2;
  border-color: #ccebd9;
}

.e10-system-status.is-success::before {
  background: var(--e10-profile-success);
}

.e10-system-status.is-warning {
  color: #9a6618;
  background: #fff7e9;
  border-color: #f4dfb7;
}

.e10-system-status.is-warning::before {
  background: var(--e10-profile-warning);
}

.e10-system-status.is-danger {
  color: #ad3f3f;
  background: #fff0f0;
  border-color: #f2cccc;
}

.e10-system-status.is-danger::before {
  background: var(--e10-profile-danger);
}

.e10-system-panel {
  min-width: 0;
  min-height: 0;
  background: var(--e10-profile-panel);
  border: 1px solid var(--e10-profile-border);
  border-radius: var(--e10-profile-panel-radius);
}

.e10-system-panel-head {
  display: flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-system-panel-title {
  min-width: 0;
  margin: 0 auto 0 0;
  overflow: hidden;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-panel-body {
  min-width: 0;
  min-height: 0;
  padding: 13px;
}

.e10-system-table-wrap {
  width: 100%;
  min-width: 0;
  overflow: auto;
  background: #ffffff;
}

.e10-system-table {
  width: 100%;
  min-width: 680px;
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.e10-system-table th,
.e10-system-table td {
  height: var(--e10-profile-row-height);
  padding: 0 11px;
  overflow: hidden;
  color: #555555;
  border-bottom: 1px solid var(--e10-profile-divider);
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-table th {
  height: 38px;
  color: #666666;
  background: #fafafa;
  font-weight: 500;
}

.e10-system-table tbody tr:hover td {
  background: #f4f9fd;
}

.e10-system-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  color: var(--e10-profile-text-muted);
  text-align: center;
}

.e10-system-empty-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  place-items: center;
  color: #9eaab2;
  background: #f1f4f6;
  border: 1px solid #e2e7ea;
  border-radius: 50%;
  font-size: 20px;
}

/* Admin-center navigation and pane compositions */
.e10-system-admin-layout {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
}

.e10-system-admin-layout--three {
  grid-template-columns: var(--e10-profile-tree-width) minmax(420px, 1fr)
    var(--e10-profile-inspector-width);
}

.e10-system-admin-layout--four {
  grid-template-columns: var(--e10-profile-tree-width) 260px minmax(420px, 1fr)
    var(--e10-profile-inspector-width);
}

.e10-system-admin-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
  border-right: 1px solid var(--e10-profile-border);
}

.e10-system-admin-pane:last-child {
  border-right: 0;
}

.e10-system-admin-layout--three > .e10-system-admin-pane--tree,
.e10-system-admin-layout--four > .e10-system-admin-pane--tree {
  grid-column: 1;
}

.e10-system-admin-layout--four > .e10-system-admin-pane--object {
  grid-column: 2;
}

.e10-system-admin-layout--three > .e10-system-admin-pane--main {
  grid-column: 2;
}

.e10-system-admin-layout--four > .e10-system-admin-pane--main {
  grid-column: 3;
}

.e10-system-admin-layout--three > .e10-system-admin-pane--inspector {
  grid-column: 3;
}

.e10-system-admin-layout--four > .e10-system-admin-pane--inspector {
  grid-column: 4;
}

.e10-system-admin-pane--tree,
.e10-system-admin-pane--inspector {
  background: #fafbfc;
}

.e10-system-admin-pane-head {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 13px;
  background: inherit;
  border-bottom: 1px solid var(--e10-profile-border);
}

.e10-system-admin-pane-head strong {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #3d454b;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-tree {
  padding: 8px 0 14px;
}

.e10-system-tree-row {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 var(--e10-tree-indent, 12px);
  overflow: hidden;
  color: #525c64;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.e10-system-tree-row--level-1 {
  --e10-tree-indent: 28px;
}

.e10-system-tree-row--level-2 {
  --e10-tree-indent: 44px;
}

.e10-system-tree-row--level-3 {
  --e10-tree-indent: 60px;
}

.e10-system-tree-row--level-4 {
  --e10-tree-indent: 76px;
}

.e10-system-tree-row:hover {
  background: #eef5fa;
}

.e10-system-tree-row.is-active {
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
}

.e10-system-tree-row.is-active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: var(--e10-profile-primary);
}

.e10-system-tree-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-object-search {
  position: sticky;
  z-index: 3;
  top: 44px;
  padding: 8px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-system-object-list {
  padding: 6px;
}

.e10-system-object-item {
  display: grid;
  min-width: 0;
  min-height: 50px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: #4e5961;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}

.e10-system-object-item:hover,
.e10-system-object-item.is-active {
  background: #f2f8fc;
  border-color: #d9eaf6;
}

.e10-system-object-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
  border-radius: 3px;
}

.e10-system-object-copy {
  min-width: 0;
}

.e10-system-object-copy strong,
.e10-system-object-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-object-copy strong {
  color: #3f484f;
  font-size: 11px;
  font-weight: 500;
}

.e10-system-object-copy small {
  margin-top: 4px;
  color: #999999;
  font-size: 10px;
}

.e10-system-definition {
  min-width: 0;
  background: #ffffff;
}

.e10-system-definition-section + .e10-system-definition-section {
  border-top: 8px solid var(--e10-profile-workspace);
}

.e10-system-definition-title {
  display: flex;
  min-height: 39px;
  align-items: center;
  padding: 0 14px;
  color: #39434a;
  background: #fafafa;
  border-bottom: 1px solid var(--e10-profile-divider);
  font-size: 12px;
  font-weight: 500;
}

.e10-system-definition-row {
  display: grid;
  min-height: 44px;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-system-definition-row > dt,
.e10-system-definition-row > dd {
  min-width: 0;
  margin: 0;
  padding: 7px 12px;
}

.e10-system-definition-row > dt {
  align-self: stretch;
  display: flex;
  align-items: center;
  color: #777777;
  background: #fbfbfb;
  border-right: 1px solid var(--e10-profile-divider);
}

.e10-system-inspector-tabs {
  position: sticky;
  z-index: 3;
  top: 44px;
  display: flex;
  height: 36px;
  align-items: stretch;
  padding: 0 9px;
  background: #fafbfc;
  border-bottom: 1px solid var(--e10-profile-border);
}

.e10-system-inspector-tab {
  position: relative;
  min-width: 54px;
  padding: 0 9px;
  color: #6b747a;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.e10-system-inspector-tab.is-active {
  color: var(--e10-profile-primary);
}

.e10-system-inspector-tab.is-active::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  content: "";
  background: var(--e10-profile-primary);
}

.e10-system-inspector-form {
  display: grid;
  gap: 12px;
  padding: 12px;
}

/* Service mega menu */
.e10-system-mega-menu {
  display: grid;
  width: min(1080px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 70px));
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  color: #444444;
  background: #ffffff;
  border: 1px solid #dfe4e8;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(24, 43, 57, 0.16);
}

.e10-system-mega-menu--overlay {
  position: absolute;
  z-index: 90;
  top: calc(var(--e10-profile-topbar-height) + 4px);
  left: max(12px, var(--e10-profile-master-width));
}

.e10-system-mega-categories {
  min-width: 0;
  overflow: auto;
  background: #f5f7f9;
  border-right: 1px solid var(--e10-profile-border);
}

.e10-system-mega-category {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  overflow: hidden;
  color: #56616a;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.e10-system-mega-category:hover,
.e10-system-mega-category.is-active {
  color: var(--e10-profile-primary);
  background: #ffffff;
}

.e10-system-mega-content {
  min-width: 0;
  overflow: auto;
}

.e10-system-mega-search {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-system-mega-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px 24px;
  padding: 16px;
}

.e10-system-mega-group {
  min-width: 0;
}

.e10-system-mega-group-title {
  min-height: 31px;
  margin: 0;
  color: #3f4a52;
  font-size: 12px;
  font-weight: 600;
}

.e10-system-mega-service {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  overflow: hidden;
  color: #66727a;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}

.e10-system-mega-service:hover {
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
}

.e10-system-mega-service > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Business workbench */
.e10-system-workbench {
  min-width: 0;
  min-height: 100%;
  padding: 16px;
  background: var(--e10-profile-workspace);
}

.e10-system-workbench-head {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  gap: 16px;
  padding: 0 2px 14px;
}

.e10-system-workbench-title {
  min-width: 0;
  margin-right: auto;
}

.e10-system-workbench-title h1,
.e10-system-workbench-title p {
  margin: 0;
  overflow-wrap: anywhere;
}

.e10-system-workbench-title h1 {
  color: #29343c;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.e10-system-workbench-title p {
  margin-top: 5px;
  color: #8a949b;
  font-size: 11px;
}

.e10-system-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.e10-system-kpi-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 108px;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 15px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: min(8px, var(--e10-profile-panel-radius));
  box-shadow: var(--e10-profile-shadow);
}

.e10-system-kpi-copy {
  min-width: 0;
}

.e10-system-kpi-label,
.e10-system-kpi-value,
.e10-system-kpi-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-kpi-label {
  color: #7f8a92;
  font-size: 11px;
}

.e10-system-kpi-value {
  margin-top: 7px;
  color: #28343c;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.e10-system-kpi-meta {
  margin-top: 7px;
  color: #98a0a6;
  font-size: 10px;
}

.e10-system-kpi-meta.is-up {
  color: var(--e10-profile-success);
}

.e10-system-kpi-meta.is-down {
  color: var(--e10-profile-danger);
}

.e10-system-kpi-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
  border-radius: 6px;
  font-size: 18px;
}

.e10-system-kpi-card[data-tone="success"] .e10-system-kpi-icon {
  color: #2f8c5a;
  background: #edf8f2;
}

.e10-system-kpi-card[data-tone="warning"] .e10-system-kpi-icon {
  color: #a36b14;
  background: #fff6e6;
}

.e10-system-kpi-card[data-tone="coral"] .e10-system-kpi-icon {
  color: #b95751;
  background: #fff0ef;
}

.e10-system-board {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.e10-system-board-span-3 {
  grid-column: span 3;
}

.e10-system-board-span-4 {
  grid-column: span 4;
}

.e10-system-board-span-6 {
  grid-column: span 6;
}

.e10-system-board-span-8 {
  grid-column: span 8;
}

.e10-system-board-span-9 {
  grid-column: span 9;
}

.e10-system-board-span-12 {
  grid-column: span 12;
}

.e10-system-widget {
  min-width: 0;
  min-height: 240px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: min(8px, var(--e10-profile-panel-radius));
  box-shadow: var(--e10-profile-shadow);
}

.e10-system-widget--compact {
  min-height: 184px;
}

.e10-system-widget-head {
  display: flex;
  min-width: 0;
  height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-system-widget-title {
  min-width: 0;
  margin: 0 auto 0 0;
  overflow: hidden;
  color: #334048;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-widget-tabs {
  display: flex;
  height: 46px;
  align-items: stretch;
  gap: 14px;
}

.e10-system-widget-tab {
  position: relative;
  padding: 0 2px;
  color: #8b949a;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.e10-system-widget-tab.is-active {
  color: var(--e10-profile-primary);
}

.e10-system-widget-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--e10-profile-primary);
}

.e10-system-widget-body {
  min-width: 0;
  padding: 12px 14px;
}

.e10-system-list-widget {
  margin: 0;
  padding: 0;
  list-style: none;
}

.e10-system-list-widget-item {
  display: grid;
  min-width: 0;
  min-height: 39px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-system-list-widget-item:last-child {
  border-bottom: 0;
}

.e10-system-list-widget-item > span:first-child {
  min-width: 0;
  overflow: hidden;
  color: #56616a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-list-widget-item > span:last-child {
  color: #9aa1a6;
  font-size: 10px;
  white-space: nowrap;
}

.e10-system-quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 8px;
}

.e10-system-quick-entry {
  display: grid;
  min-width: 0;
  min-height: 84px;
  grid-template-rows: 34px auto;
  place-items: center;
  gap: 7px;
  padding: 10px 6px;
  overflow: hidden;
  color: #58636b;
  background: #f8fafb;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

.e10-system-quick-entry:hover {
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
  border-color: #d8eaf7;
}

.e10-system-quick-entry-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--e10-profile-primary);
  background: #ffffff;
  border: 1px solid #dce6ec;
  border-radius: 5px;
}

.e10-system-quick-entry-label {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-calendar {
  min-width: 0;
}

.e10-system-calendar-head {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.e10-system-calendar-title {
  min-width: 0;
  overflow: hidden;
  color: #3c484f;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-calendar-week,
.e10-system-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(32px, 1fr));
}

.e10-system-calendar-week > span {
  display: grid;
  height: 30px;
  place-items: center;
  color: #90999f;
  font-size: 10px;
}

.e10-system-calendar-day {
  position: relative;
  display: grid;
  min-height: 52px;
  place-items: start center;
  padding: 8px 3px 4px;
  color: #59646c;
  background: #ffffff;
  border-top: 1px solid var(--e10-profile-divider);
  border-right: 1px solid var(--e10-profile-divider);
  cursor: pointer;
}

.e10-system-calendar-day:nth-child(7n) {
  border-right: 0;
}

.e10-system-calendar-day.is-muted {
  color: #c0c5c9;
  background: #fafafa;
}

.e10-system-calendar-day.is-today {
  color: #ffffff;
}

.e10-system-calendar-day.is-today > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: var(--e10-profile-primary);
  border-radius: 50%;
}

.e10-system-calendar-dot {
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  background: var(--e10-profile-warning);
  border-radius: 50%;
}

/* Catalog and state matrices */
.e10-catalog-layout {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  background: var(--e10-profile-workspace);
}

.e10-catalog-sidebar {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
  border-right: 1px solid var(--e10-profile-border);
}

.e10-catalog-sidebar-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  height: 46px;
  align-items: center;
  padding: 0 14px;
  color: #364149;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-divider);
  font-size: 13px;
  font-weight: 500;
}

.e10-catalog-category {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 13px;
  overflow: hidden;
  color: #626d75;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.e10-catalog-category:hover,
.e10-catalog-category.is-active {
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
}

.e10-catalog-category > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-count {
  display: inline-grid;
  min-width: 20px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  color: #929a9f;
  background: #f1f3f4;
  border-radius: 8px;
  font-size: 9px;
}

.e10-catalog-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.e10-catalog-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-border);
}

.e10-catalog-search {
  width: min(320px, 42%);
  min-width: 160px;
}

.e10-catalog-filter-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.e10-catalog-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 12px;
  padding: 12px;
}

.e10-catalog-card {
  display: grid;
  min-width: 0;
  min-height: 260px;
  grid-template-rows: 43px minmax(140px, 1fr) auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: 3px;
}

.e10-catalog-card-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-catalog-card-title {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #3b464e;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-preview {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 140px;
  place-items: center;
  padding: 16px;
  overflow: auto;
  background-color: #fafbfc;
  background-image: linear-gradient(#eef1f3 1px, transparent 1px),
    linear-gradient(90deg, #eef1f3 1px, transparent 1px);
  background-size: 16px 16px;
}

.e10-catalog-card-foot {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 10px 11px;
  border-top: 1px solid var(--e10-profile-divider);
}

.e10-catalog-card-description {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #7d868c;
  font-size: 10px;
  line-height: 1.6;
}

.e10-catalog-variant-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
}

.e10-catalog-chip {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 2px 8px;
  color: #6d767c;
  background: #f6f7f8;
  border: 1px solid #e4e7e9;
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
}

.e10-catalog-chip:hover,
.e10-catalog-chip.is-active {
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
  border-color: #bddbed;
}

.e10-catalog-state-matrix {
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

.e10-catalog-state-matrix th,
.e10-catalog-state-matrix td {
  min-width: 120px;
  height: 58px;
  padding: 10px;
  border: 1px solid var(--e10-profile-border);
  text-align: center;
  vertical-align: middle;
}

.e10-catalog-state-matrix th {
  height: 38px;
  color: #68737a;
  background: #fafafa;
  font-size: 10px;
  font-weight: 500;
}

.e10-catalog-layout-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 14px;
  padding: 14px;
}

.e10-catalog-layout-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: 3px;
}

.e10-catalog-layout-preview {
  display: grid;
  width: 100%;
  min-height: 220px;
  place-items: stretch;
  overflow: hidden;
  background: var(--e10-profile-workspace);
}

.e10-catalog-layout-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid var(--e10-profile-divider);
}

.e10-catalog-layout-meta > div {
  min-width: 0;
  margin-right: auto;
}

.e10-catalog-layout-meta strong,
.e10-catalog-layout-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-layout-meta strong {
  color: #3e4950;
  font-size: 12px;
  font-weight: 500;
}

.e10-catalog-layout-meta small {
  margin-top: 3px;
  color: #92999e;
  font-size: 10px;
}

/* Floating work message */
.e10-system-message-launcher {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  background: var(--e10-profile-primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(7, 73, 122, 0.28);
  cursor: pointer;
}

.e10-system-message-launcher-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  color: #ffffff;
  background: var(--e10-profile-danger);
  border: 2px solid #ffffff;
  border-radius: 9px;
  font-size: 9px;
}

.e10-system-message-window {
  position: fixed;
  z-index: 75;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(780px, calc(100vw - 36px));
  height: min(580px, calc(100vh - 76px));
  min-height: 420px;
  grid-template: 46px minmax(0, 1fr) 54px / 220px minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce2e6;
  border-radius: 6px;
  box-shadow: 0 12px 38px rgba(20, 39, 52, 0.22);
}

.e10-system-message-window-head {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  color: #ffffff;
  background: var(--e10-profile-primary);
}

.e10-system-message-window-head strong {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-message-list {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #f6f8f9;
  border-right: 1px solid var(--e10-profile-border);
}

.e10-system-message-item {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 10px;
  color: #4e5961;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eaedef;
  cursor: pointer;
  text-align: left;
}

.e10-system-message-item:hover,
.e10-system-message-item.is-active {
  background: #ffffff;
}

.e10-system-message-item.is-active {
  box-shadow: inset 2px 0 var(--e10-profile-primary);
}

.e10-system-message-item-copy {
  min-width: 0;
}

.e10-system-message-item-copy strong,
.e10-system-message-item-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-message-item-copy strong {
  color: #3d474e;
  font-size: 11px;
  font-weight: 500;
}

.e10-system-message-item-copy span {
  margin-top: 5px;
  color: #8e969c;
  font-size: 10px;
}

.e10-system-message-thread {
  min-width: 0;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  background: #ffffff;
}

.e10-system-message-bubble {
  width: fit-content;
  max-width: 78%;
  margin: 0 0 12px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  color: #4a555d;
  background: #f1f3f5;
  border-radius: 4px;
  line-height: 1.6;
}

.e10-system-message-bubble.is-mine {
  margin-left: auto;
  color: #244f6c;
  background: #e7f3fb;
}

.e10-system-message-composer {
  grid-column: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  background: #ffffff;
  border-top: 1px solid var(--e10-profile-border);
}

/* AI is a semantic layer and inherits the selected E10 profile. */
.e10-ai-workbench {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  color: var(--e10-profile-text);
  background: var(--e10-profile-workspace);
}

.e10-ai-session-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
  border-right: 1px solid var(--e10-profile-border);
}

.e10-ai-session-head {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-ai-session-list {
  margin: 0;
  padding: 6px;
  list-style: none;
}

.e10-ai-session-item {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  overflow: hidden;
  color: #59646c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
}

.e10-ai-session-item:hover,
.e10-ai-session-item.is-active {
  color: var(--e10-profile-primary);
  background: var(--e10-profile-primary-soft);
  border-color: #d9e9f4;
}

.e10-ai-session-copy {
  min-width: 0;
}

.e10-ai-session-copy strong,
.e10-ai-session-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-session-copy strong {
  font-size: 11px;
  font-weight: 500;
}

.e10-ai-session-copy small {
  margin-top: 5px;
  color: #9aa1a6;
  font-size: 9px;
}

.e10-ai-main {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 50px minmax(0, 1fr) auto;
  overflow: hidden;
}

.e10-ai-header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-border);
}

.e10-ai-header-title {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #334048;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-thread {
  min-width: 0;
  min-height: 0;
  padding: 20px max(18px, calc((100% - 920px) / 2));
  overflow: auto;
  scroll-behavior: smooth;
}

.e10-ai-message {
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
}

.e10-ai-message--user {
  width: fit-content;
  max-width: min(78%, 680px);
  margin-left: auto;
  padding: 11px 13px;
  overflow-wrap: anywhere;
  color: #254f6d;
  background: #e7f3fb;
  border: 1px solid #d5e9f6;
  border-radius: 6px;
  line-height: 1.65;
}

.e10-ai-message--assistant {
  padding: 0;
  color: #414c54;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: 6px;
}

.e10-ai-message-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-ai-message-head strong {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-analysis-state {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #66727a;
  font-size: 10px;
}

.e10-ai-analysis-state::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  content: "";
  background: var(--e10-profile-info);
  border-radius: 50%;
}

.e10-ai-analysis-state.is-complete::before {
  background: var(--e10-profile-success);
}

.e10-ai-message-body {
  min-width: 0;
  padding: 14px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.75;
}

.e10-ai-message-actions {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px 9px;
  border-top: 1px solid var(--e10-profile-divider);
}

.e10-ai-composer-wrap {
  padding: 10px max(18px, calc((100% - 920px) / 2)) 14px;
  background: var(--e10-profile-workspace);
}

.e10-ai-composer {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(58px, auto) 38px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d9e0e5;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(31, 54, 69, 0.08);
}

.e10-ai-composer:focus-within {
  border-color: var(--e10-profile-primary);
  box-shadow: 0 0 0 2px rgba(4, 112, 193, 0.1);
}

.e10-ai-composer textarea {
  width: 100%;
  min-height: 58px;
  padding: 11px 12px;
  color: #3e4951;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
  line-height: 1.6;
  resize: none;
}

.e10-ai-composer-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-top: 1px solid #edf0f2;
}

.e10-ai-composer-tools > :last-child {
  margin-left: auto;
}

.e10-ai-home {
  min-height: 100%;
  padding: 28px max(18px, calc((100% - 1040px) / 2));
}

.e10-ai-home-head {
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: center;
}

.e10-ai-home-head h1,
.e10-ai-home-head p {
  margin: 0;
  overflow-wrap: anywhere;
}

.e10-ai-home-head h1 {
  color: #2e3a42;
  font-size: 22px;
  font-weight: 500;
}

.e10-ai-home-head p {
  margin-top: 9px;
  color: #818c94;
  font-size: 12px;
  line-height: 1.7;
}

.e10-ai-quick-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 12px;
}

.e10-ai-prompt-card {
  display: grid;
  min-width: 0;
  min-height: 128px;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
  color: #4a565e;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.e10-ai-prompt-card:hover {
  border-color: #bcd9ec;
  box-shadow: var(--e10-profile-shadow);
}

.e10-ai-prompt-card strong {
  color: #344149;
  font-size: 12px;
  font-weight: 500;
}

.e10-ai-prompt-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #7b858c;
  font-size: 10px;
  line-height: 1.6;
}

.e10-ai-prompt-card small {
  color: var(--e10-profile-primary);
  font-size: 10px;
}

.e10-ai-plan {
  margin: 12px 0;
  overflow: hidden;
  background: #fafbfc;
  border: 1px solid var(--e10-profile-border);
  border-radius: 4px;
}

.e10-ai-plan-head {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: #46525a;
  background: #f5f7f8;
  border-bottom: 1px solid var(--e10-profile-divider);
  font-size: 11px;
  font-weight: 500;
}

.e10-ai-step {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--e10-profile-divider);
}

.e10-ai-step:last-child {
  border-bottom: 0;
}

.e10-ai-step-index {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #7f8a91;
  background: #ffffff;
  border: 1px solid #d6dde1;
  border-radius: 50%;
  font-size: 9px;
}

.e10-ai-step.is-running .e10-ai-step-index {
  color: #ffffff;
  background: var(--e10-profile-primary);
  border-color: var(--e10-profile-primary);
}

.e10-ai-step.is-complete .e10-ai-step-index {
  color: #ffffff;
  background: var(--e10-profile-success);
  border-color: var(--e10-profile-success);
}

.e10-ai-step.is-error .e10-ai-step-index {
  color: #ffffff;
  background: var(--e10-profile-danger);
  border-color: var(--e10-profile-danger);
}

.e10-ai-step-copy {
  min-width: 0;
}

.e10-ai-step-copy strong,
.e10-ai-step-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-step-copy strong {
  color: #4d5961;
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-step-copy small {
  margin-top: 3px;
  color: #959da2;
  font-size: 9px;
}

.e10-ai-tool-call {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 8px 0;
  padding: 9px 11px;
  color: #56616a;
  background: #f7f9fa;
  border: 1px solid #e1e6e9;
  border-radius: 3px;
}

.e10-ai-tool-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #536c7d;
  background: #ffffff;
  border: 1px solid #dce3e7;
  border-radius: 3px;
}

.e10-ai-tool-copy {
  min-width: 0;
}

.e10-ai-tool-copy strong,
.e10-ai-tool-copy code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-tool-copy strong {
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-tool-copy code {
  margin-top: 3px;
  color: #89939a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}

.e10-ai-citation {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  overflow: hidden;
  color: #316f9a;
  background: #edf6fc;
  border: 1px solid #d4e7f4;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-citation-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.e10-ai-citation-panel {
  min-width: 0;
  padding: 12px;
  color: #556169;
  background: #f8fafb;
  border-left: 3px solid var(--e10-profile-primary);
  line-height: 1.7;
}

.e10-ai-confirmation {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  color: #5f594c;
  background: #fffaf0;
  border: 1px solid #eeddbb;
  border-radius: 4px;
}

.e10-ai-confirmation-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #755d2c;
  font-size: 11px;
  font-weight: 500;
}

.e10-ai-confirmation-body {
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.65;
}

.e10-ai-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.e10-ai-result-card {
  min-width: 0;
  margin: 10px 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border);
  border-radius: 4px;
}

.e10-ai-result-card-head {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: #46525a;
  background: #fafafa;
  border-bottom: 1px solid var(--e10-profile-divider);
  font-size: 11px;
  font-weight: 500;
}

.e10-ai-result-card-body {
  min-width: 0;
  padding: 12px;
  overflow: auto;
}

.e10-ai-embedded-assistant {
  position: fixed;
  z-index: 72;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(420px, calc(100vw - 36px));
  height: min(620px, calc(100vh - 76px));
  min-height: 420px;
  grid-template-rows: 46px minmax(0, 1fr) auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce2e6;
  border-radius: 7px;
  box-shadow: 0 12px 38px rgba(20, 39, 52, 0.22);
}

.e10-ai-embedded-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 13px;
  color: #ffffff;
  background: var(--e10-profile-primary);
}

.e10-ai-embedded-head strong {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-embedded-thread {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: auto;
  background: #f6f8fa;
}

.e10-ai-embedded-composer {
  min-width: 0;
  padding: 9px;
  background: #ffffff;
  border-top: 1px solid var(--e10-profile-border);
}

/* Adaptive compositions */
@media (max-width: 1360px) {
  .e10-system-admin-layout--four {
    grid-template-columns: 240px 230px minmax(380px, 1fr) 290px;
  }

  .e10-catalog-matrix {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }

  .e10-system-kpi-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 1080px) {
  .e10-system-admin-layout--three,
  .e10-system-admin-layout--four {
    grid-template-columns: 220px minmax(380px, 1fr) 280px;
    overflow-x: auto;
  }

  .e10-system-admin-layout--four .e10-system-admin-pane--object {
    display: none;
  }

  .e10-system-admin-layout--four > .e10-system-admin-pane--main {
    grid-column: 2;
  }

  .e10-system-admin-layout--four > .e10-system-admin-pane--inspector {
    grid-column: 3;
  }

  .e10-system-mega-groups {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .e10-system-board-span-3,
  .e10-system-board-span-4,
  .e10-system-board-span-6,
  .e10-system-board-span-8,
  .e10-system-board-span-9 {
    grid-column: span 6;
  }

  .e10-system-board-span-12 {
    grid-column: span 12;
  }

  .e10-system-quick-entry-grid {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
  }

  .e10-ai-quick-prompts {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }
}

@media (max-width: 760px) {
  .e10-system-shell.e10-profile-classic,
  .e10-system-shell.e10-profile-business-workbench {
    grid-template: 50px 42px minmax(0, 1fr) / minmax(0, 1fr);
  }

  .e10-system-shell.e10-profile-admin-center {
    grid-template: 50px 42px 40px minmax(0, 1fr) / minmax(0, 1fr);
  }

  .e10-system-brand,
  .e10-profile-admin-center .e10-system-brand {
    width: 116px;
    min-width: 116px;
    padding: 0 9px;
  }

  .e10-system-brand-copy small,
  .e10-system-topnav-item:not(.is-active),
  .e10-system-top-actions .e10-system-top-action:nth-of-type(n + 2),
  .e10-system-account-copy {
    display: none;
  }

  .e10-system-topnav-item {
    padding: 0 10px;
  }

  .e10-system-account {
    min-width: 44px;
    padding: 0 7px;
  }

  .e10-system-sidebar,
  .e10-system-master-nav,
  .e10-system-secondary-nav {
    display: flex;
    width: 100%;
    height: auto;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--e10-profile-border);
    scrollbar-width: none;
  }

  .e10-system-sidebar::-webkit-scrollbar,
  .e10-system-master-nav::-webkit-scrollbar,
  .e10-system-secondary-nav::-webkit-scrollbar {
    display: none;
  }

  .e10-system-sidebar,
  .e10-system-master-nav {
    grid-row: 2;
    grid-column: 1;
  }

  .e10-system-secondary-nav {
    grid-row: 3;
    grid-column: 1;
  }

  .e10-system-nav-head,
  .e10-system-nav-section {
    display: none;
  }

  .e10-system-nav-item {
    width: auto;
    min-width: max-content;
    height: 100%;
    min-height: 0;
    padding: 0 13px;
  }

  .e10-system-nav-item.is-active::before {
    top: auto;
    right: 8px;
    bottom: 0;
    left: 8px;
    width: auto;
    height: 2px;
  }

  .e10-system-main,
  .e10-profile-admin-center > .e10-system-main {
    grid-row: 3;
    grid-column: 1;
  }

  .e10-profile-admin-center > .e10-system-main {
    grid-row: 4;
  }

  .e10-profile-focus > .e10-system-main {
    grid-row: 2;
  }

  .e10-system-shell--bare > .e10-system-main {
    grid-row: 1;
  }

  .e10-system-toolbar {
    min-height: 46px;
    padding: 7px 9px;
    overflow-x: auto;
  }

  .e10-system-toolbar-title {
    min-width: 120px;
  }

  .e10-system-toolbar-group {
    min-width: max-content;
  }

  .e10-system-admin-layout--three,
  .e10-system-admin-layout--four {
    grid-template-columns: 104px minmax(380px, 1fr);
    overflow-x: auto;
  }

  .e10-system-admin-layout--three .e10-system-admin-pane--inspector,
  .e10-system-admin-layout--four .e10-system-admin-pane--inspector,
  .e10-system-admin-layout--four .e10-system-admin-pane--object {
    display: none;
  }

  .e10-system-admin-layout--three > .e10-system-admin-pane--main,
  .e10-system-admin-layout--four > .e10-system-admin-pane--main {
    grid-column: 2;
  }

  .e10-system-tree-row {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }

  .e10-system-definition-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .e10-system-mega-menu {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 66px);
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .e10-system-mega-menu--overlay {
    top: 54px;
    left: 8px;
  }

  .e10-system-mega-category {
    padding: 7px 8px;
    font-size: 10px;
  }

  .e10-system-mega-groups {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .e10-system-workbench {
    padding: 9px;
  }

  .e10-system-workbench-head {
    min-height: 56px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .e10-system-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .e10-system-kpi-card {
    min-height: 94px;
    grid-template-columns: minmax(0, 1fr) 34px;
    padding: 10px;
  }

  .e10-system-kpi-value {
    font-size: 19px;
  }

  .e10-system-kpi-icon {
    width: 34px;
    height: 34px;
  }

  .e10-system-board-span-3,
  .e10-system-board-span-4,
  .e10-system-board-span-6,
  .e10-system-board-span-8,
  .e10-system-board-span-9,
  .e10-system-board-span-12 {
    grid-column: span 12;
  }

  .e10-system-widget {
    min-height: 210px;
  }

  .e10-system-quick-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .e10-system-calendar-day {
    min-height: 44px;
  }

  .e10-catalog-layout {
    grid-template: 44px minmax(0, 1fr) / minmax(0, 1fr);
  }

  .e10-catalog-sidebar {
    display: flex;
    grid-row: 1;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--e10-profile-border);
  }

  .e10-catalog-sidebar-head {
    display: none;
  }

  .e10-catalog-category {
    width: auto;
    min-width: max-content;
    height: 43px;
  }

  .e10-catalog-main {
    grid-row: 2;
  }

  .e10-catalog-toolbar {
    overflow-x: auto;
  }

  .e10-catalog-search {
    width: 180px;
    min-width: 180px;
  }

  .e10-catalog-filter-group {
    min-width: max-content;
  }

  .e10-catalog-matrix,
  .e10-catalog-layout-gallery {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .e10-catalog-card {
    min-height: 230px;
  }

  .e10-system-message-window {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: min(76vh, 660px);
    min-height: 380px;
    grid-template: 44px minmax(0, 1fr) 52px / 104px minmax(0, 1fr);
    border-radius: 5px;
  }

  .e10-system-message-item {
    min-height: 54px;
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .e10-system-message-item .e10-system-avatar {
    display: none;
  }

  .e10-system-message-bubble {
    max-width: 90%;
  }

  .e10-ai-workbench {
    grid-template: 72px minmax(0, 1fr) / minmax(0, 1fr);
  }

  .e10-ai-session-pane {
    display: flex;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--e10-profile-border);
  }

  .e10-ai-session-head {
    position: static;
    display: flex;
    min-width: 138px;
    align-items: center;
    padding: 8px;
    border-right: 1px solid var(--e10-profile-divider);
    border-bottom: 0;
  }

  .e10-ai-session-head .e10-system-input {
    display: none;
  }

  .e10-ai-session-list {
    display: flex;
    min-width: max-content;
    padding: 7px;
  }

  .e10-ai-session-item {
    width: 132px;
    min-height: 56px;
  }

  .e10-ai-main {
    grid-row: 2;
    grid-template-rows: 46px minmax(0, 1fr) auto;
  }

  .e10-ai-thread {
    padding: 12px 9px;
  }

  .e10-ai-message--user {
    max-width: 88%;
  }

  .e10-ai-composer-wrap {
    padding: 7px 8px 9px;
  }

  .e10-ai-composer {
    grid-template-rows: minmax(50px, auto) 36px;
  }

  .e10-ai-home {
    padding: 18px 9px;
  }

  .e10-ai-home-head {
    margin-bottom: 16px;
  }

  .e10-ai-home-head h1 {
    font-size: 19px;
  }

  .e10-ai-quick-prompts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .e10-ai-prompt-card {
    min-height: 108px;
  }

  .e10-ai-step {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .e10-ai-step > :last-child:not(.e10-ai-step-copy) {
    grid-column: 2;
  }

  .e10-ai-tool-call {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .e10-ai-tool-call > :last-child:not(.e10-ai-tool-copy) {
    grid-column: 2;
  }

  .e10-ai-embedded-assistant {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: min(76vh, 660px);
    min-height: 380px;
  }
}

@media (max-width: 420px) {
  .e10-system-brand-copy {
    display: none;
  }

  .e10-system-brand,
  .e10-profile-admin-center .e10-system-brand {
    width: 48px;
    min-width: 48px;
    padding: 0 9px;
  }

  .e10-system-top-actions .e10-system-top-action {
    display: none;
  }

  .e10-system-kpi-grid {
    grid-template-columns: 1fr;
  }

  .e10-system-kpi-card {
    min-height: 88px;
  }

  .e10-system-quick-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .e10-system-message-window {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .e10-system-message-thread {
    padding: 9px;
  }

  .e10-system-message-item-copy span {
    display: none;
  }

  .e10-ai-session-head {
    min-width: 116px;
  }

  .e10-ai-session-item {
    width: 116px;
  }

  .e10-ai-message-body {
    padding: 11px;
  }

  .e10-ai-composer-tools > :not(:last-child):nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .e10-system-root *,
  .e10-system-root *::before,
  .e10-system-root *::after,
  .e10-profile-classic *,
  .e10-profile-classic *::before,
  .e10-profile-classic *::after,
  .e10-profile-admin-center *,
  .e10-profile-admin-center *::before,
  .e10-profile-admin-center *::after,
  .e10-profile-business-workbench *,
  .e10-profile-business-workbench *::before,
  .e10-profile-business-workbench *::after,
  .e10-profile-focus *,
  .e10-profile-focus *::before,
  .e10-profile-focus *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Showcase compositions: class contract used by ui-showcase.js */
.e10-profile-admin-center {
  --e10-profile-primary: #0561a3;
  --e10-profile-primary-hover: #064f83;
  --e10-profile-primary-soft: #eaf3f9;
  --e10-profile-topbar: #0561a3;
  --e10-profile-nav: #273543;
  --e10-profile-nav-active: #1e2a35;
  --e10-profile-nav-hover: #304253;
  --e10-profile-workspace: #f2f3f5;
  --e10-profile-radius: 2px;
  --e10-profile-panel-radius: 2px;
}

.e10-profile-business-workbench {
  --e10-profile-primary: #0b71c2;
  --e10-profile-primary-hover: #075d9d;
  --e10-profile-primary-soft: #ebf5fc;
  --e10-profile-nav: #ffffff;
  --e10-profile-nav-text: #45515b;
  --e10-profile-workspace: #f1f3f6;
  --e10-profile-radius: 6px;
  --e10-profile-panel-radius: 6px;
}

.e10-system-view,
.e10-view {
  min-width: 0;
  min-height: 0;
  color: var(--e10-profile-text, #222222);
  background: var(--e10-profile-workspace, #f0f1f4);
  letter-spacing: 0;
}

.e10-page-scroll.e10-system-scroll {
  min-width: 0;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  background: var(--e10-profile-workspace, #f0f1f4);
}

.e10-system-toolbar-subtitle {
  display: block;
  max-width: min(520px, 45vw);
  margin-top: 3px;
  overflow: hidden;
  color: #8d9499;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-toolbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.e10-system-intro {
  display: flex;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 3px;
}

.e10-system-intro > div {
  min-width: 0;
  margin-right: auto;
}

.e10-system-intro h1,
.e10-system-intro p {
  margin: 0;
  overflow-wrap: anywhere;
}

.e10-system-intro h1 {
  color: #303b43;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.e10-system-intro p {
  margin-top: 5px;
  color: #7f888e;
  font-size: 11px;
  line-height: 1.6;
}

.e10-system-controlbar {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px 9px;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 3px;
}

.e10-system-segmented {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  padding: 2px;
  overflow-x: auto;
  background: #f2f4f5;
  border: 1px solid #e4e7e9;
  border-radius: 3px;
  scrollbar-width: none;
}

.e10-system-segmented::-webkit-scrollbar {
  display: none;
}

.e10-system-segmented .btn {
  min-width: max-content;
  height: 26px;
  padding: 0 11px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.e10-system-segmented .btn.active,
.e10-profile-option.active {
  color: var(--e10-profile-primary, #0470c1);
  background: #ffffff;
  border-color: #d9dee2;
}

.e10-system-live {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: #38825b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-live-error {
  color: var(--e10-profile-danger, #e95858);
}

.e10-system-eyebrow {
  display: block;
  color: var(--e10-profile-primary, #0470c1);
  font-size: 9px;
  line-height: 18px;
  text-transform: uppercase;
}

.e10-system-search {
  position: relative;
  display: block;
  min-width: 0;
}

.e10-system-search > .icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 9px;
  color: #9aa2a7;
  pointer-events: none;
  transform: translateY(-50%);
}

.e10-system-search > .input {
  width: 100%;
  padding-left: 31px;
}

.e10-system-search-compact {
  margin: 8px 9px;
}

.e10-system-field-inline {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 7px;
  color: #747d83;
  font-size: 10px;
}

.e10-system-field-inline .select {
  min-width: 104px;
}

.e10-system-description-list {
  margin: 0;
  border-top: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-description-list > div {
  display: grid;
  min-width: 0;
  min-height: 38px;
  grid-template-columns: 92px minmax(0, 1fr);
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-description-list dt,
.e10-system-description-list dd {
  display: flex;
  min-width: 0;
  align-items: center;
  margin: 0;
  padding: 7px 9px;
  overflow-wrap: anywhere;
}

.e10-system-description-list dt {
  color: #818a90;
  background: #fafafa;
  border-right: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-description-list dd {
  color: #4d585f;
}

.e10-catalog-config {
  max-width: 100%;
  margin: 12px 0 0;
  padding: 10px 12px;
  overflow: auto;
  color: #dbe7ef;
  background: #273543;
  border: 1px solid #354654;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Layout profile gallery */
.e10-profile-stage {
  display: grid;
  min-width: 0;
  min-height: 392px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 3px;
}

.e10-profile-stage-preview {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background: #e9edf1;
  border-right: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-profile-stage-spec {
  min-width: 0;
  padding: 22px;
  overflow: auto;
  background: #ffffff;
}

.e10-profile-stage-spec h2,
.e10-profile-stage-spec p {
  margin: 0;
  overflow-wrap: anywhere;
}

.e10-profile-stage-spec h2 {
  color: #303b43;
  font-size: 18px;
  font-weight: 500;
}

.e10-profile-stage-spec > p {
  margin: 7px 0 18px;
  color: #7e878d;
  font-size: 11px;
  line-height: 1.65;
}

.e10-profile-mini-shell {
  display: grid;
  width: min(100%, 820px);
  aspect-ratio: 16 / 9;
  grid-template-rows: 34px minmax(0, 1fr);
  overflow: hidden;
  background: #f0f1f4;
  border: 1px solid #cfd6dc;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(32, 50, 63, 0.14);
}

.e10-profile-mini-shell.e10-profile-admin-center {
  grid-template-rows: minmax(0, 1fr);
}

.e10-profile-mini-topbar,
.e10-profile-mini-localbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: #0470c1;
}

.e10-profile-admin-center .e10-profile-mini-topbar {
  background: #0561a3;
}

.e10-profile-mini-topbar b,
.e10-profile-mini-topbar span,
.e10-profile-mini-localbar span {
  display: block;
  height: 7px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 1px;
}

.e10-profile-mini-topbar b {
  width: 74px;
  margin-right: 6px;
}

.e10-profile-mini-topbar span {
  width: 46px;
}

.e10-profile-mini-localbar {
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #dfe4e7;
}

.e10-profile-mini-localbar span {
  width: 92px;
  background: #cdd5da;
}

.e10-profile-mini-body {
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.e10-profile-mini-sidebar,
.e10-profile-mini-secondary,
.e10-profile-mini-tree,
.e10-profile-mini-inspector {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  overflow: hidden;
  border-right: 1px solid #dfe4e7;
}

.e10-profile-mini-sidebar {
  width: 20%;
  flex: 0 0 20%;
  background: #2b2e35;
}

.e10-profile-business-workbench .e10-profile-mini-sidebar {
  background: #ffffff;
}

.e10-profile-mini-secondary {
  width: 16%;
  flex: 0 0 16%;
  background: #273543;
}

.e10-profile-mini-tree {
  width: 20%;
  flex: 0 0 20%;
  background: #fafbfc;
}

.e10-profile-mini-inspector {
  width: 23%;
  flex: 0 0 23%;
  background: #fafbfc;
  border-right: 0;
  border-left: 1px solid #dfe4e7;
}

.e10-profile-mini-sidebar i,
.e10-profile-mini-secondary i,
.e10-profile-mini-tree i,
.e10-profile-mini-inspector i {
  display: block;
  width: 78%;
  height: 7px;
  flex: 0 0 7px;
  background: #cbd2d7;
  border-radius: 1px;
}

.e10-profile-mini-sidebar i,
.e10-profile-mini-secondary i {
  background: rgba(255, 255, 255, 0.34);
}

.e10-profile-business-workbench .e10-profile-mini-sidebar i {
  background: #ccd5db;
}

.e10-profile-mini-sidebar i:nth-child(2),
.e10-profile-mini-secondary i:nth-child(2),
.e10-profile-mini-tree i:nth-child(2) {
  width: 94%;
  background: #5da0d4;
}

.e10-profile-mini-table-canvas,
.e10-profile-mini-admin-canvas,
.e10-profile-mini-widget-canvas,
.e10-profile-mini-focus-canvas {
  display: grid;
  min-width: 0;
  min-height: 0;
  flex: 1;
  gap: 8px;
  padding: 13px;
  overflow: hidden;
  background: #f0f1f4;
}

.e10-profile-mini-table-canvas {
  grid-template-rows: 36px repeat(5, 1fr);
}

.e10-profile-mini-table-canvas i {
  background: #ffffff;
  border: 1px solid #e0e4e7;
}

.e10-profile-mini-table-canvas i:first-child {
  background: #f8fafb;
  border-top: 3px solid #4f98cd;
}

.e10-profile-mini-admin-canvas {
  grid-template: repeat(3, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
  background: #ffffff;
}

.e10-profile-mini-admin-canvas i {
  background: #f7f9fa;
  border: 1px solid #e2e6e8;
}

.e10-profile-mini-admin-canvas i:first-child {
  grid-column: 1 / -1;
  border-top: 3px solid #0561a3;
}

.e10-profile-mini-widget-canvas {
  grid-template: repeat(2, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr));
}

.e10-profile-mini-widget-canvas i {
  background: #ffffff;
  border: 1px solid #dfe5e9;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(30, 54, 70, 0.06);
}

.e10-profile-mini-widget-canvas i:first-child,
.e10-profile-mini-widget-canvas i:nth-child(2) {
  border-top: 3px solid #0b71c2;
}

.e10-profile-mini-focus-canvas {
  grid-template: 1fr 1.4fr / repeat(3, minmax(0, 1fr));
  background: #f0f1f4;
}

.e10-profile-mini-focus-canvas i {
  background: #ffffff;
  border: 1px solid #dfe4e7;
}

.e10-profile-mini-focus-canvas i:first-child {
  grid-column: 1 / -1;
}

.e10-catalog-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}

.e10-catalog-layout-grid .e10-catalog-layout-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(94px, auto);
  padding: 0;
  overflow: hidden;
  color: #465159;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
}

.e10-catalog-layout-grid .e10-catalog-layout-card:hover,
.e10-catalog-layout-grid .e10-catalog-layout-card.active {
  border-color: var(--e10-profile-primary, #0470c1);
  box-shadow: 0 3px 10px rgba(32, 54, 70, 0.09);
}

.e10-catalog-layout-grid .e10-catalog-layout-preview {
  min-height: 160px;
  padding: 14px;
  background: #e9edf1;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-catalog-layout-grid .e10-profile-mini-shell {
  width: 100%;
  box-shadow: none;
}

.e10-catalog-layout-copy {
  display: block;
  min-width: 0;
  padding: 11px 12px;
}

.e10-catalog-layout-copy strong,
.e10-catalog-layout-copy small,
.e10-catalog-layout-copy code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-layout-copy strong {
  color: #364149;
  font-size: 12px;
  font-weight: 500;
}

.e10-catalog-layout-copy small {
  margin-top: 5px;
  color: #858e94;
  font-size: 10px;
}

.e10-catalog-layout-copy code {
  margin-top: 8px;
  color: #49718c;
  font-size: 9px;
}

/* Searchable component catalog */
.e10-catalog-browser {
  display: grid;
  width: 100%;
  min-height: calc(100vh - 132px);
  grid-template-columns: 204px minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 3px;
}

.e10-catalog-browser > .e10-catalog-sidebar {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: auto;
  background: #f8f9fa;
  border-right: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-catalog-browser > .e10-catalog-sidebar h2 {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 46px;
  margin: 0;
  padding: 0 13px;
  color: #3d4850;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
  font-size: 12px;
  font-weight: 500;
  line-height: 46px;
}

.e10-catalog-category-list {
  display: grid;
  gap: 2px;
  padding: 7px;
}

.e10-catalog-category-list .e10-catalog-category {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  color: #616c74;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}

.e10-catalog-category-list .e10-catalog-category span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-category-list .e10-catalog-category small {
  display: grid;
  min-width: 22px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  color: #92999e;
  background: #eceff1;
  border-radius: 8px;
  font-size: 9px;
}

.e10-catalog-category-list .e10-catalog-category:hover,
.e10-catalog-category-list .e10-catalog-category.active {
  color: var(--e10-profile-primary, #0470c1);
  background: var(--e10-profile-primary-soft, #eaf5fd);
}

.e10-catalog-guideline {
  margin: auto 9px 10px;
  padding: 10px;
  color: #6f797f;
  background: #ffffff;
  border: 1px solid #e3e7e9;
  border-radius: 2px;
}

.e10-catalog-guideline strong {
  color: #48545c;
  font-size: 10px;
  font-weight: 500;
}

.e10-catalog-guideline p {
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.6;
}

.e10-catalog-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--e10-profile-workspace, #f0f1f4);
}

.e10-catalog-content > .e10-catalog-controls {
  position: sticky;
  z-index: 5;
  top: 0;
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.e10-catalog-controls .e10-system-search {
  width: min(330px, 38vw);
}

.e10-catalog-controls .e10-catalog-count {
  min-width: max-content;
  height: auto;
  margin-left: auto;
  padding: 0;
  color: #798288;
  background: transparent;
  border: 0;
  font-size: 10px;
}

.e10-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  align-items: start;
  gap: 10px;
  padding: 10px;
}

.e10-catalog-grid > .e10-catalog-card {
  display: grid;
  min-width: 0;
  min-height: 410px;
  grid-template-rows: 150px minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 3px;
}

.e10-catalog-grid > .e10-catalog-card:hover {
  border-color: #bcd7e8;
  box-shadow: 0 3px 10px rgba(32, 54, 70, 0.07);
}

.e10-catalog-grid > .e10-catalog-card.e10-catalog-state-active {
  border-color: var(--e10-profile-primary, #0470c1);
  box-shadow: inset 0 3px var(--e10-profile-primary, #0470c1);
}

.e10-catalog-card-preview {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 12px;
  overflow: hidden;
  background: #f8f9fa;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-catalog-card-preview .e10-profile-mini-shell {
  width: 100%;
  box-shadow: none;
}

.e10-catalog-card-body {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 11px;
}

.e10-catalog-card-body > header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.e10-catalog-card-body > header > div {
  min-width: 0;
  flex: 1;
}

.e10-catalog-card-body h2 {
  margin: 5px 0 0;
  overflow: hidden;
  color: #364149;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-category-tag {
  color: var(--e10-profile-primary, #0470c1);
  font-size: 9px;
}

.e10-catalog-component-id {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #557386;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-card-body > p {
  min-height: 34px;
  margin: 7px 0;
  overflow: hidden;
  color: #7d868c;
  font-size: 10px;
  line-height: 17px;
}

.e10-catalog-card-body > dl {
  margin: 0;
  border-top: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-catalog-card-body > dl > div {
  display: grid;
  min-width: 0;
  min-height: 31px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-catalog-card-body dt,
.e10-catalog-card-body dd {
  min-width: 0;
  margin: 0;
}

.e10-catalog-card-body dt {
  color: #90979c;
  font-size: 9px;
  line-height: 20px;
}

.e10-catalog-card-body dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.e10-catalog-card-body dd > span {
  display: inline-flex;
  max-width: 100%;
  min-height: 20px;
  align-items: center;
  padding: 2px 6px;
  overflow: hidden;
  color: #66727a;
  background: #f3f5f6;
  border: 1px solid #e4e7e9;
  border-radius: 2px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-card-body > footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 9px;
}

.e10-catalog-empty {
  margin: 10px;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-catalog-preview-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.e10-catalog-preview-table th,
.e10-catalog-preview-table td {
  height: 31px;
  padding: 0 6px;
  font-size: 9px;
}

.e10-catalog-calendar {
  width: min(100%, 230px);
  background: #ffffff;
  border: 1px solid #e1e5e8;
}

.e10-catalog-calendar > header {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border-bottom: 1px solid #e7eaec;
}

.e10-catalog-calendar > div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 6px;
}

.e10-catalog-calendar > div > span,
.e10-catalog-calendar > div > i {
  display: grid;
  height: 22px;
  place-items: center;
  color: #788188;
  font-size: 8px;
  font-style: normal;
}

.e10-catalog-calendar > div > i.active {
  color: #ffffff;
  background: var(--e10-profile-primary, #0470c1);
  border-radius: 50%;
}

.e10-catalog-nav-preview,
.e10-catalog-inline-preview {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.e10-catalog-nav-preview {
  min-width: min(100%, 250px);
  height: 40px;
  padding: 0 8px;
  background: #ffffff;
  border: 1px solid #e1e5e8;
}

.e10-catalog-nav-preview button {
  position: relative;
  height: 38px;
  padding: 0 7px;
  color: #69737a;
  background: transparent;
  border: 0;
  font-size: 10px;
}

.e10-catalog-nav-preview button.active {
  color: var(--e10-profile-primary, #0470c1);
}

.e10-catalog-nav-preview button.active::after {
  position: absolute;
  right: 5px;
  bottom: 0;
  left: 5px;
  height: 2px;
  content: "";
  background: var(--e10-profile-primary, #0470c1);
}

.e10-catalog-form-preview {
  display: grid;
  width: min(100%, 250px);
  gap: 8px;
}

.e10-catalog-form-preview label {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: #747d83;
  font-size: 9px;
}

.e10-catalog-dialog-preview {
  width: min(100%, 250px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe4e7;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(25, 43, 55, 0.1);
}

.e10-catalog-dialog-preview header,
.e10-catalog-dialog-preview footer {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 1px solid #e8ebed;
}

.e10-catalog-dialog-preview p {
  margin: 0;
  padding: 9px;
  color: #788188;
  font-size: 9px;
}

.e10-catalog-dialog-preview footer {
  justify-content: flex-end;
  border-top: 1px solid #e8ebed;
  border-bottom: 0;
}

.e10-catalog-kpi-preview {
  width: min(100%, 240px);
  min-height: 92px;
  box-shadow: none;
}

.e10-catalog-message-preview,
.e10-ai-component-preview {
  display: grid;
  width: min(100%, 250px);
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e1e5e8;
  border-radius: 3px;
}

.e10-catalog-message-preview > div,
.e10-ai-component-preview > div {
  min-width: 0;
}

.e10-catalog-message-preview strong,
.e10-catalog-message-preview small,
.e10-catalog-message-preview p,
.e10-ai-component-preview strong,
.e10-ai-component-preview p {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-catalog-message-preview small,
.e10-catalog-message-preview p,
.e10-ai-component-preview p {
  margin-top: 4px;
  color: #899197;
  font-size: 8px;
}

.e10-catalog-message-preview > i {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  background: #e95858;
  border-radius: 50%;
}

.e10-ai-component-preview {
  grid-template-columns: 32px minmax(0, 1fr);
}

.e10-ai-component-preview code {
  display: inline-block;
  margin: 7px 3px 0 0;
  padding: 2px 4px;
  color: #42749a;
  background: #edf6fc;
  border-radius: 2px;
  font-size: 8px;
}

.e10-catalog-generic-preview {
  display: grid;
  min-height: 84px;
  place-items: center;
  gap: 7px;
  color: #859098;
  font-size: 10px;
}

/* Admin showcase */
.e10-system-service-directory {
  margin-bottom: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 2px;
}

.e10-system-service-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.e10-system-service-heading > div {
  min-width: 0;
  margin-right: auto;
}

.e10-system-service-heading h1 {
  margin: 0;
  color: #334048;
  font-size: 15px;
  font-weight: 500;
}

.e10-system-service-heading .e10-system-search {
  width: min(320px, 34vw);
}

.e10-system-service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 8px;
}

.e10-system-service-item {
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 3px 8px;
  padding: 10px;
  overflow: hidden;
  color: #59646c;
  background: #f8fafb;
  border: 1px solid #e4e8ea;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}

.e10-system-service-item:hover,
.e10-system-service-item.active {
  color: var(--e10-profile-primary, #0561a3);
  background: var(--e10-profile-primary-soft, #eaf3f9);
  border-color: #bdd7e8;
}

.e10-system-service-item > span {
  display: grid;
  width: 32px;
  height: 32px;
  grid-row: 1 / 3;
  place-items: center;
  color: var(--e10-profile-primary, #0561a3);
  background: #ffffff;
  border: 1px solid #dbe4e9;
  border-radius: 3px;
}

.e10-system-service-item strong,
.e10-system-service-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-service-item strong {
  align-self: end;
  color: #445159;
  font-size: 11px;
  font-weight: 500;
}

.e10-system-service-item small {
  align-self: start;
  color: #8b949a;
  font-size: 9px;
}

.e10-system-admin-frame {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 620px;
  grid-template-columns: 190px 240px minmax(480px, 1fr) 330px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #dfe3e6;
  border-radius: 2px;
}

.e10-system-module-sidebar,
.e10-system-object-pane,
.e10-system-definition-canvas,
.e10-system-inspector-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
  border-right: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-system-module-sidebar {
  color: rgba(255, 255, 255, 0.9);
  background: #273543;
}

.e10-system-module-sidebar > header,
.e10-system-object-pane > header,
.e10-system-inspector-pane > header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  min-width: 0;
  height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 13px;
  background: inherit;
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}

.e10-system-module-sidebar > header strong,
.e10-system-object-pane > header strong {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-module-sidebar .plain-icon-button {
  color: rgba(255, 255, 255, 0.76);
}

.e10-system-module-sidebar > nav {
  padding: 8px 0;
}

.e10-system-module-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  padding: 7px 14px 7px 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-module-item:hover,
.e10-system-module-item.active {
  color: #ffffff;
  background: #1e2a35;
}

.e10-system-module-item.active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: #2f93d2;
}

.e10-system-object-pane {
  background: #fafbfc;
}

.e10-system-object-pane .e10-system-tree {
  padding-top: 2px;
}

.e10-system-object-pane .e10-system-tree-row.active {
  color: var(--e10-profile-primary, #0561a3);
  background: var(--e10-profile-primary-soft, #eaf3f9);
  box-shadow: inset 2px 0 var(--e10-profile-primary, #0561a3);
}

.e10-system-object-pane .e10-system-tree-row > i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-left: 14px;
  background: #bcc4c9;
  border-radius: 50%;
}

.e10-system-tree-parent {
  color: #3e4951;
  font-weight: 500;
}

.e10-system-tree-parent small {
  margin-left: auto;
  color: #9aa1a6;
  font-size: 9px;
}

.e10-system-definition-canvas {
  background: #ffffff;
}

.e10-system-pane-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-system-pane-toolbar > div:first-child {
  min-width: 0;
  margin-right: auto;
}

.e10-system-pane-toolbar > div:last-child {
  display: flex;
  gap: 6px;
}

.e10-system-pane-toolbar h2,
.e10-system-pane-toolbar span {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-pane-toolbar h2 {
  color: #344149;
  font-size: 14px;
  font-weight: 500;
}

.e10-system-pane-toolbar span {
  margin-top: 3px;
  color: #90989d;
  font-size: 9px;
}

.e10-system-anchor-nav {
  position: sticky;
  z-index: 4;
  top: 54px;
  display: flex;
  height: 38px;
  align-items: stretch;
  gap: 16px;
  padding: 0 13px;
  overflow-x: auto;
  background: #fafafa;
  border-bottom: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-system-anchor-nav button {
  position: relative;
  min-width: max-content;
  padding: 0 2px;
  color: #69737a;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
}

.e10-system-anchor-nav button.active {
  color: var(--e10-profile-primary, #0561a3);
}

.e10-system-anchor-nav button.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--e10-profile-primary, #0561a3);
}

.e10-system-definition-section {
  padding: 14px;
  border-bottom: 8px solid var(--e10-profile-workspace, #f2f3f5);
}

.e10-system-definition-section > h3,
.e10-system-section-heading h3 {
  margin: 0;
  color: #3e4950;
  font-size: 12px;
  font-weight: 500;
}

.e10-system-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px 14px;
  margin-top: 12px;
}

.e10-system-form-grid > label {
  display: grid;
  min-width: 0;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #69737a;
  font-size: 10px;
}

.e10-system-form-grid .e10-system-field-wide {
  grid-column: 1 / -1;
  align-items: start;
}

.e10-system-form-grid textarea.input {
  height: 70px;
  padding: 7px 9px;
  line-height: 1.5;
  resize: vertical;
}

.e10-system-section-heading {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.e10-system-section-heading h3 {
  margin-right: auto;
}

.e10-system-compact-table {
  min-width: 680px;
}

.e10-system-compact-table th,
.e10-system-compact-table td {
  height: 36px;
  padding: 0 8px;
  font-size: 10px;
}

.e10-system-inspector-pane {
  background: #fafbfc;
  border-right: 0;
}

.e10-system-inspector-pane > header > div {
  min-width: 0;
  margin-right: auto;
}

.e10-system-inspector-pane > header strong,
.e10-system-inspector-pane > header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-inspector-pane > header strong {
  color: #39454c;
  font-size: 11px;
  font-weight: 500;
}

.e10-system-inspector-pane > header span {
  margin-top: 2px;
  color: #92999e;
  font-size: 9px;
}

.e10-system-inspector-pane > section {
  padding: 12px;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-inspector-pane > section > h3 {
  margin: 0 0 8px;
  color: #4d585f;
  font-size: 10px;
  font-weight: 500;
}

.e10-system-property-list {
  margin: 0;
  border-top: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-property-list > div {
  display: grid;
  min-height: 36px;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-property-list dt,
.e10-system-property-list dd {
  min-width: 0;
  margin: 0;
  padding: 6px;
  overflow-wrap: anywhere;
}

.e10-system-property-list dt {
  color: #8a9298;
  background: #f4f6f7;
}

.e10-system-setting-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  color: #646f76;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-setting-row > span {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Business workbench showcase */
.e10-system-workbench-welcome {
  display: flex;
  min-width: 0;
  min-height: 104px;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 6px;
}

.e10-system-workbench-welcome > div:first-child {
  min-width: 0;
  margin-right: auto;
}

.e10-system-workbench-welcome h1,
.e10-system-workbench-welcome p,
.e10-system-workbench-welcome span {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.e10-system-workbench-welcome > div:first-child > span {
  color: var(--e10-profile-primary, #0b71c2);
  font-size: 10px;
}

.e10-system-workbench-welcome h1 {
  margin-top: 4px;
  color: #29363e;
  font-size: 20px;
  font-weight: 500;
}

.e10-system-workbench-welcome p {
  margin-top: 4px;
  color: #858e94;
  font-size: 10px;
}

.e10-system-workbench-search {
  display: flex;
  width: min(480px, 46%);
  min-width: 280px;
  align-items: center;
  gap: 8px;
}

.e10-system-workbench-search > label {
  position: relative;
  min-width: 0;
  flex: 1;
}

.e10-system-workbench-search .icon {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 9px;
  color: #9aa2a7;
}

.e10-system-workbench-search .input {
  width: 100%;
  padding-left: 31px;
}

.e10-profile-business-workbench .e10-system-kpi-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.e10-profile-business-workbench .e10-system-kpi-card,
.e10-catalog-kpi-preview.e10-system-kpi-card {
  display: grid;
  min-height: 104px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
}

.e10-profile-business-workbench .e10-system-kpi-card > div,
.e10-catalog-kpi-preview.e10-system-kpi-card > div {
  min-width: 0;
}

.e10-profile-business-workbench .e10-system-kpi-card small,
.e10-profile-business-workbench .e10-system-kpi-card strong,
.e10-profile-business-workbench .e10-system-kpi-card .e10-system-trend,
.e10-catalog-kpi-preview.e10-system-kpi-card small,
.e10-catalog-kpi-preview.e10-system-kpi-card strong,
.e10-catalog-kpi-preview.e10-system-kpi-card .e10-system-trend {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-profile-business-workbench .e10-system-kpi-card small,
.e10-catalog-kpi-preview.e10-system-kpi-card small {
  color: #818b92;
  font-size: 10px;
}

.e10-profile-business-workbench .e10-system-kpi-card strong,
.e10-catalog-kpi-preview.e10-system-kpi-card strong {
  margin-top: 5px;
  color: #2d3941;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.e10-system-trend {
  margin-top: 6px;
  color: #8b949a;
  font-size: 9px;
}

.e10-system-tone-success {
  color: #31855a !important;
}

.e10-system-tone-danger {
  color: #bd4e4e !important;
}

.e10-system-tone-blue {
  color: #237dbb !important;
  background: #eaf5fc !important;
}

.e10-system-tone-green {
  color: #31855a !important;
  background: #edf8f2 !important;
}

.e10-system-tone-cyan {
  color: #278492 !important;
  background: #eaf7f8 !important;
}

.e10-system-tone-amber {
  color: #a56a13 !important;
  background: #fff6e7 !important;
}

.e10-system-tone-violet {
  color: #6f66a8 !important;
  background: #f1effb !important;
}

.e10-system-tone-gray {
  color: #6f7a81 !important;
  background: #f1f3f4 !important;
}

.e10-system-workbench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.e10-system-workbench-grid > .e10-system-widget {
  min-height: 278px;
}

.e10-system-widget-span-two {
  grid-column: span 2;
}

.e10-system-widget-header {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-widget-header > div:first-child {
  min-width: 0;
  margin-right: auto;
}

.e10-system-widget-header > h2,
.e10-system-widget-header > div:first-child > h2 {
  display: inline-block;
  margin: 0;
  color: #354149;
  font-size: 12px;
  font-weight: 500;
}

.e10-system-widget-header > div:first-child > span {
  margin-left: 8px;
  color: #939a9f;
  font-size: 9px;
}

.e10-system-widget-header .e10-system-widget-tabs {
  display: inline-flex;
  height: 48px;
  margin-left: 18px;
  vertical-align: middle;
}

.e10-system-widget-tabs button {
  position: relative;
  min-width: max-content;
  padding: 0 7px;
  color: #838c92;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 9px;
}

.e10-system-widget-tabs button.active {
  color: var(--e10-profile-primary, #0b71c2);
}

.e10-system-widget-tabs button.active::after {
  position: absolute;
  right: 6px;
  bottom: 0;
  left: 6px;
  height: 2px;
  content: "";
  background: var(--e10-profile-primary, #0b71c2);
}

.e10-system-task-list {
  padding: 0 13px;
}

.e10-system-task-list > button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  grid-template-columns: 26px minmax(0, 1fr) auto 7px;
  align-items: center;
  gap: 9px;
  color: #536069;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
  cursor: pointer;
  text-align: left;
}

.e10-system-task-list > button:hover {
  background: #f6fafc;
}

.e10-system-task-type {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 3px;
  font-size: 9px;
}

.e10-system-task-list > button > span:nth-child(2) {
  min-width: 0;
}

.e10-system-task-list strong,
.e10-system-task-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-task-list strong {
  color: #465159;
  font-size: 10px;
  font-weight: 500;
}

.e10-system-task-list small,
.e10-system-task-list time {
  color: #939a9f;
  font-size: 9px;
}

.e10-system-task-list small {
  margin-top: 3px;
}

.e10-system-priority {
  width: 6px;
  height: 6px;
  background: #e3a235;
  border-radius: 50%;
}

.e10-system-priority-high {
  background: #e95858;
}

.e10-system-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 8px;
  padding: 13px;
}

.e10-system-quick-grid > button {
  display: grid;
  min-width: 0;
  min-height: 84px;
  place-items: center;
  gap: 6px;
  padding: 8px 5px;
  overflow: hidden;
  color: #5d6870;
  background: #f8fafb;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 9px;
  text-align: center;
}

.e10-system-quick-grid > button:hover {
  color: var(--e10-profile-primary, #0b71c2);
  border-color: #d7e8f4;
}

.e10-system-quick-grid > button > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
}

.e10-system-chart {
  display: grid;
  min-height: 226px;
  grid-template: minmax(0, 1fr) 38px / 38px minmax(0, 1fr);
  padding: 13px;
}

.e10-system-chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 18px;
  color: #9aa1a6;
  font-size: 8px;
}

.e10-system-chart-bars {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: end;
  justify-content: space-around;
  gap: 8px;
  padding: 9px 10px 20px;
  background-image: linear-gradient(#edf0f2 1px, transparent 1px);
  background-size: 100% 25%;
  border-bottom: 1px solid #dfe4e7;
}

.e10-system-chart-bars > i {
  position: relative;
  width: min(34px, 9%);
  height: 48%;
  background: #57a0d4;
  border-radius: 2px 2px 0 0;
}

.e10-system-chart-bars > i:nth-child(2) {
  height: 62%;
}

.e10-system-chart-bars > i:nth-child(3) {
  height: 43%;
}

.e10-system-chart-bars > i:nth-child(4) {
  height: 71%;
}

.e10-system-chart-bars > i:nth-child(5) {
  height: 58%;
}

.e10-system-chart-bars > i:nth-child(6) {
  height: 82%;
}

.e10-system-chart-bars > i:nth-child(7) {
  height: 74%;
  background: #3186c2;
}

.e10-system-chart-bars > i::after {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  color: #8f979c;
  content: attr(data-label);
  font-size: 8px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.e10-system-chart > aside {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #7d868c;
  font-size: 8px;
}

.e10-system-chart > aside > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.e10-system-chart > aside i {
  width: 7px;
  height: 7px;
  border-radius: 1px;
}

.e10-system-calendar-muted {
  color: #c4c9cc !important;
  background: #fafafa !important;
}

.e10-system-calendar-day.active > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #ffffff;
  background: var(--e10-profile-primary, #0b71c2);
  border-radius: 50%;
}

.e10-system-calendar-day > i {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  background: #e3a235;
  border-radius: 50%;
}

.e10-system-spinning .icon {
  animation: e10-showcase-spin 0.55s linear infinite;
}

@keyframes e10-showcase-spin {
  to {
    transform: rotate(360deg);
  }
}

/* AI showcase */
.e10-ai-workbench {
  position: relative;
  grid-template-columns: 236px minmax(0, 1fr);
  height: min(720px, calc(100vh - 112px));
  min-height: 600px;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 6px;
}

.e10-ai-sidebar {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
  border-right: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-ai-sidebar > header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 13px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ai-sidebar > header strong {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #364149;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-session {
  display: grid;
  width: calc(100% - 12px);
  min-width: 0;
  min-height: 50px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 3px 6px;
  padding: 7px 8px;
  color: #5c6770;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
}

.e10-ai-session:hover,
.e10-ai-session.active {
  color: var(--e10-profile-primary, #0b71c2);
  background: var(--e10-profile-primary-soft, #ebf5fc);
  border-color: #d7e8f4;
}

.e10-ai-session > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--e10-profile-primary, #0b71c2);
  background: #ffffff;
  border: 1px solid #dce5ea;
  border-radius: 3px;
}

.e10-ai-session > span:last-child {
  min-width: 0;
}

.e10-ai-session strong,
.e10-ai-session small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-session strong {
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-session small {
  margin-top: 4px;
  color: #969da2;
  font-size: 8px;
}

.e10-ai-sidebar-group {
  margin-top: 12px;
  padding: 10px 6px;
  border-top: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ai-sidebar-group > span {
  display: block;
  padding: 0 7px 6px;
  color: #9aa1a6;
  font-size: 9px;
}

.e10-ai-sidebar-group > button {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  overflow: hidden;
  color: #66727a;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-sidebar-group > button:hover {
  color: var(--e10-profile-primary, #0b71c2);
  background: var(--e10-profile-primary-soft, #ebf5fc);
}

.e10-ai-conversation {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 50px minmax(0, 1fr) auto 20px;
  overflow: hidden;
  background: var(--e10-profile-workspace, #f1f3f6);
}

.e10-ai-conversation-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-ai-conversation-head > div:first-child {
  min-width: 0;
  margin-right: auto;
}

.e10-ai-conversation-head h1 {
  display: inline-block;
  margin: 0;
  overflow: hidden;
  color: #344149;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.e10-ai-conversation-head > div:first-child > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: #879097;
  font-size: 9px;
  vertical-align: middle;
}

.e10-ai-conversation-head > div:first-child > span i {
  width: 6px;
  height: 6px;
  background: #37a36a;
  border-radius: 50%;
}

.e10-ai-state-switch {
  flex: 0 1 auto;
  max-width: 54%;
}

.e10-ai-conversation > .e10-ai-thread {
  padding: 16px max(14px, calc((100% - 820px) / 2));
  background: var(--e10-profile-workspace, #f1f3f6);
}

.e10-ai-message-user {
  width: fit-content;
  max-width: min(78%, 650px);
  margin: 0 0 12px auto;
  padding: 10px 12px;
  color: #2e5874;
  background: #e5f2fb;
  border: 1px solid #d2e7f5;
  border-radius: 6px;
}

.e10-ai-message-user > div {
  display: grid;
  gap: 4px;
}

.e10-ai-message-user strong {
  font-size: 9px;
  font-weight: 500;
}

.e10-ai-message-user span {
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.e10-ai-local-message {
  border-color: #bcdced;
}

.e10-ai-message-assistant {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  color: #465159;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 6px;
}

.e10-ai-answer-head {
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ai-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #ffffff;
  background: var(--e10-profile-primary, #0b71c2);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}

.e10-ai-answer-head > div:nth-child(2) {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.e10-ai-answer-head > div:nth-child(2) strong {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-answer-head > div:last-child {
  display: flex;
  gap: 3px;
}

.e10-ai-answer-copy {
  min-width: 0;
  padding: 12px 13px;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.e10-ai-answer-copy p {
  margin: 0;
}

.e10-ai-message-assistant > .e10-ai-plan,
.e10-ai-message-assistant > .e10-ai-tool-call,
.e10-ai-message-assistant > .e10-ai-result,
.e10-ai-message-assistant > .e10-ai-confirmation,
.e10-ai-message-assistant > .e10-ai-citations {
  margin: 0 12px 12px;
}

.e10-ai-plan > header {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 11px;
  background: #f5f7f8;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ai-plan > header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.e10-ai-plan > header strong {
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-plan > header span {
  color: #8b949a;
  font-size: 9px;
}

.e10-ai-plan > ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.e10-ai-plan-collapsed > ol {
  display: none;
}

.e10-ai-plan-collapsed > header {
  border-bottom: 0;
}

.e10-ai-step {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}

.e10-ai-step > span:first-child {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #7f898f;
  background: #ffffff;
  border: 1px solid #d5dce0;
  border-radius: 50%;
  font-size: 8px;
}

.e10-ai-step > div {
  min-width: 0;
}

.e10-ai-step > div strong,
.e10-ai-step > div small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-step > div strong {
  color: #4c5860;
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-step > div small,
.e10-ai-step > em {
  color: #929a9f;
  font-size: 9px;
  font-style: normal;
}

.e10-ai-step > div small {
  margin-top: 3px;
}

.e10-ai-step-pending > span:first-child {
  color: #7f898f;
  background: #ffffff;
  border-color: #d5dce0;
}

.e10-ai-step-pending > em {
  color: #929a9f;
}

.e10-ai-step-running > span:first-child {
  color: #ffffff;
  background: var(--e10-profile-primary, #0b71c2);
  border-color: var(--e10-profile-primary, #0b71c2);
}

.e10-ai-step-running > em {
  color: var(--e10-profile-primary, #0b71c2);
}

.e10-ai-step-done > span:first-child {
  color: #ffffff;
  background: #36a66a;
  border-color: #36a66a;
}

.e10-ai-step-done > em {
  color: #31855a;
}

.e10-ai-step-error > span:first-child {
  color: #ffffff;
  background: #e95858;
  border-color: #e95858;
}

.e10-ai-step-error > em {
  color: #bd4e4e;
}

.e10-ai-tool-call > header {
  display: grid;
  min-width: 0;
  min-height: 42px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #e1e6e9;
}

.e10-ai-tool-call > header > span:first-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #536e80;
  background: #ffffff;
  border: 1px solid #dce3e7;
  border-radius: 3px;
}

.e10-ai-tool-call > header > div {
  min-width: 0;
}

.e10-ai-tool-call > header strong,
.e10-ai-tool-call > header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-tool-call > header strong {
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-tool-call > header small {
  margin-top: 2px;
  color: #929a9f;
  font-size: 8px;
}

.e10-ai-tool-call > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  overflow: hidden;
}

.e10-ai-tool-call > div code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #607685;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-tool-call > div span {
  color: #879097;
  font-size: 9px;
  white-space: nowrap;
}

.e10-ai-state-running .e10-ai-tool-call {
  border-color: #bcdced;
}

.e10-ai-state-ready .e10-ai-plan {
  border-color: #e1e6e9;
}

.e10-ai-state-running .e10-ai-plan {
  border-color: #bcdced;
  box-shadow: inset 3px 0 var(--e10-profile-primary, #0b71c2);
}

.e10-ai-state-review .e10-ai-message-assistant {
  border-color: #d7dfc8;
}

.e10-ai-state-review .e10-ai-confirmation {
  box-shadow: inset 3px 0 #e3a235;
}

.e10-ai-state-confirmed .e10-ai-message-assistant {
  border-color: #c7e2d2;
}

.e10-ai-state-confirmed .e10-ai-answer-head {
  box-shadow: inset 3px 0 #36a66a;
}

.e10-ai-state-error .e10-ai-tool-call,
.e10-ai-state-error.e10-ai-thread .e10-ai-message-assistant {
  border-color: #efc5c5;
}

.e10-ai-result {
  overflow: hidden;
  background: #f5fbf7;
  border: 1px solid #cde7d7;
  border-radius: 4px;
}

.e10-ai-result > header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #dcece2;
}

.e10-ai-result > header > div:first-child {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.e10-ai-result-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  background: #36a66a;
  border-radius: 50%;
}

.e10-ai-result > header strong,
.e10-ai-result > header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-result > header strong {
  color: #356548;
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-result > header div span {
  margin-top: 3px;
  color: #6f8d7a;
  font-size: 8px;
}

.e10-ai-result > dl {
  margin: 0;
  padding: 5px 10px 9px;
}

.e10-ai-result > dl > div {
  display: grid;
  min-width: 0;
  min-height: 29px;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #e2eee6;
}

.e10-ai-result dt,
.e10-ai-result dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 9px;
}

.e10-ai-result dt {
  color: #789084;
}

.e10-ai-confirmation > div:first-child {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
}

.e10-ai-confirmation > div:first-child > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #a36b14;
  background: #ffffff;
  border: 1px solid #efdcb5;
  border-radius: 50%;
}

.e10-ai-confirmation strong {
  color: #765d2d;
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-confirmation p {
  margin: 4px 0 0;
  color: #837454;
  font-size: 9px;
  line-height: 1.6;
}

.e10-ai-confirmation > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.e10-ai-citations {
  overflow: hidden;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 4px;
}

.e10-ai-citations > header {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  color: #56616a;
  background: #fafafa;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ai-citations > header strong {
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-citations > header span {
  color: #959ca1;
  font-size: 9px;
}

.e10-ai-citations > button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  color: #536069;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
  cursor: pointer;
  text-align: left;
}

.e10-ai-citations > button:last-child {
  border-bottom: 0;
}

.e10-ai-citations > button:hover {
  background: #f4f9fc;
}

.e10-ai-citations > button b {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #3777a2;
  background: #edf6fc;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 500;
}

.e10-ai-citations > button > span {
  min-width: 0;
}

.e10-ai-citations > button strong,
.e10-ai-citations > button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-citations > button strong {
  font-size: 9px;
  font-weight: 500;
}

.e10-ai-citations > button small {
  margin-top: 3px;
  color: #92999e;
  font-size: 8px;
}

.e10-ai-conversation > .e10-ai-composer {
  display: grid;
  min-width: 0;
  grid-template: minmax(52px, auto) 40px / minmax(0, 1fr);
  margin: 0 14px 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d8e0e5;
  border-radius: 7px;
  box-shadow: 0 2px 9px rgba(28, 50, 64, 0.07);
}

.e10-ai-conversation > .e10-ai-composer:focus-within {
  border-color: var(--e10-profile-primary, #0b71c2);
}

.e10-ai-conversation > .e10-ai-composer > textarea.input {
  width: 100%;
  height: auto;
  min-height: 52px;
  padding: 10px 11px;
  background: transparent;
  border: 0;
  outline: none;
  line-height: 1.5;
  resize: none;
}

.e10-ai-conversation > .e10-ai-composer > footer {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border-top: 1px solid #edf0f2;
}

.e10-ai-conversation > .e10-ai-composer > footer > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.e10-ai-conversation > .e10-ai-composer > footer > div:first-child {
  margin-right: auto;
}

.e10-ai-conversation > .e10-ai-composer label {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 4px;
  color: #7d868c;
  font-size: 9px;
}

.e10-ai-conversation > .e10-system-live {
  min-height: 18px;
  margin: 0 14px;
  text-align: right;
}

.e10-ai-citation-panel {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(330px, calc(100% - 48px));
  min-width: 0;
  flex-direction: column;
  overflow: auto;
  background: #ffffff;
  border-left: 1px solid #dbe2e6;
  box-shadow: -5px 0 18px rgba(24, 43, 56, 0.12);
  transform: translateX(105%);
  transition: transform 0.2s ease;
}

.e10-ai-citation-panel.active {
  transform: translateX(0);
}

.e10-ai-citation-panel > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 12px;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ai-citation-panel > header > div {
  min-width: 0;
  margin-right: auto;
}

.e10-ai-citation-panel > header strong,
.e10-ai-citation-panel > header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ai-citation-panel > header strong {
  color: #3d4951;
  font-size: 11px;
  font-weight: 500;
}

.e10-ai-citation-panel > header span {
  margin-top: 3px;
  color: #92999e;
  font-size: 8px;
}

.e10-ai-citation-panel > section {
  padding: 13px;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ai-citation-panel h2,
.e10-ai-citation-panel h3,
.e10-ai-citation-panel p {
  margin: 0;
  overflow-wrap: anywhere;
}

.e10-ai-citation-panel h2 {
  color: #39464e;
  font-size: 13px;
  font-weight: 500;
}

.e10-ai-citation-panel h3 {
  color: #556169;
  font-size: 10px;
  font-weight: 500;
}

.e10-ai-citation-panel p {
  margin-top: 7px;
  color: #737d84;
  font-size: 9px;
  line-height: 1.7;
}

.e10-ai-block-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.e10-ai-block-tags > span {
  padding: 3px 6px;
  color: #47728f;
  background: #edf6fc;
  border: 1px solid #d6e7f2;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
}

/* Component state matrix */
.e10-system-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 12px;
}

.e10-system-state-card {
  display: grid;
  min-width: 0;
  min-height: 300px;
  grid-template-rows: 42px 180px minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: 3px;
}

.e10-system-state-card > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  background: #fafafa;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-state-card > header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.e10-system-state-card > header strong {
  color: #465159;
  font-size: 11px;
  font-weight: 500;
}

.e10-system-state-card > header code {
  overflow: hidden;
  color: #71838f;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-system-state-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #879198;
  border-radius: 50%;
}

.e10-system-state-default {
  background: #68747c;
}

.e10-system-state-loading {
  background: #418dcc;
}

.e10-system-state-empty,
.e10-system-state-disabled {
  background: #a6adb2;
}

.e10-system-state-error {
  background: #e95858;
}

.e10-system-state-success {
  background: #36a66a;
}

.e10-system-state-preview {
  display: flex;
  min-width: 0;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  overflow: hidden;
  background: #f8f9fa;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-system-state-preview > label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #6b757c;
  font-size: 9px;
}

.e10-system-state-preview.e10-system-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 14px;
}

.e10-system-state-preview.e10-system-empty > .icon {
  color: #98a1a7;
}

.e10-system-state-preview.e10-system-empty > strong {
  color: #59646c;
  font-size: 10px;
  font-weight: 500;
}

.e10-system-state-preview.e10-system-empty > span,
.e10-system-state-preview > small {
  color: #92999e;
  font-size: 9px;
  text-align: center;
}

.e10-system-state-card > p {
  margin: 0;
  padding: 11px;
  overflow-wrap: anywhere;
  color: #7e878d;
  font-size: 9px;
  line-height: 1.6;
}

.e10-system-loading-preview {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: repeat(3, 13px);
  align-content: center;
  gap: 9px;
}

.e10-system-loading-preview > span {
  display: block;
  height: 10px;
  background: #e5e9eb;
  border-radius: 2px;
}

.e10-system-loading-preview > span:first-child {
  width: 42px;
  height: 42px;
  grid-row: 1 / 4;
  background: #dde3e7;
  border-radius: 50%;
}

.e10-system-loading-preview > span:nth-child(3) {
  width: 78%;
}

.e10-system-loading-preview > span:nth-child(4) {
  width: 54%;
}

.e10-system-alert {
  display: grid;
  width: min(100%, 380px);
  min-width: 0;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: #39749a;
  background: #edf6fc;
  border: 1px solid #d3e6f2;
  border-radius: 3px;
}

.e10-system-alert-info {
  color: #39749a;
}

.e10-system-alert-error {
  color: #9e3c3c;
  background: #fff0f0;
  border-color: #efcaca;
}

.e10-system-alert > div {
  min-width: 0;
}

.e10-system-alert strong,
.e10-system-alert span {
  display: block;
  overflow-wrap: anywhere;
}

.e10-system-alert strong {
  font-size: 10px;
  font-weight: 500;
}

.e10-system-alert span {
  margin-top: 3px;
  font-size: 9px;
  opacity: 0.84;
}

.e10-system-result {
  display: grid;
  width: min(100%, 350px);
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 12px;
  color: #356548;
  background: #edf8f2;
  border: 1px solid #cae7d6;
  border-radius: 3px;
}

.e10-system-result > .icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  color: #ffffff;
  background: #36a66a;
  border-radius: 50%;
}

.e10-system-result strong,
.e10-system-result span {
  display: block;
}

.e10-system-result strong {
  font-size: 10px;
  font-weight: 500;
}

.e10-system-result span {
  margin-top: 3px;
  font-size: 9px;
}

.e10-system-result-success {
  color: #356548;
}

@media (max-width: 1360px) {
  .e10-catalog-layout-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .e10-system-service-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .e10-system-admin-frame {
    grid-template-columns: 170px 220px minmax(460px, 1fr) 300px;
  }

  .e10-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 1080px) {
  .e10-profile-stage {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .e10-system-admin-frame {
    grid-template-columns: 160px 200px minmax(440px, 1fr);
  }

  .e10-system-admin-frame > .e10-system-inspector-pane {
    display: none;
  }

  .e10-system-workbench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .e10-system-widget-span-two {
    grid-column: span 2;
  }

  .e10-ai-workbench {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .e10-page-scroll.e10-system-scroll {
    padding: 8px;
  }

  .e10-system-toolbar-subtitle {
    display: none;
  }

  .e10-system-toolbar-actions {
    min-width: max-content;
    overflow-x: auto;
  }

  .e10-system-intro {
    min-height: 72px;
    align-items: flex-start;
    padding: 11px;
  }

  .e10-system-intro h1 {
    font-size: 15px;
  }

  .e10-system-intro > .tag {
    flex: 0 0 auto;
  }

  .e10-system-controlbar {
    overflow-x: auto;
  }

  .e10-system-live {
    min-width: max-content;
  }

  .e10-profile-stage {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .e10-profile-stage-preview {
    min-height: 238px;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--e10-profile-border, #e5e5e5);
  }

  .e10-profile-stage-spec {
    padding: 14px;
  }

  .e10-profile-mini-shell {
    grid-template-rows: 25px minmax(0, 1fr);
  }

  .e10-profile-mini-sidebar,
  .e10-profile-mini-secondary,
  .e10-profile-mini-tree,
  .e10-profile-mini-inspector {
    gap: 5px;
    padding: 7px 4px;
  }

  .e10-profile-mini-table-canvas,
  .e10-profile-mini-admin-canvas,
  .e10-profile-mini-widget-canvas,
  .e10-profile-mini-focus-canvas {
    gap: 5px;
    padding: 7px;
  }

  .e10-catalog-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .e10-catalog-layout-grid .e10-catalog-layout-preview {
    min-height: 172px;
  }

  .e10-catalog-browser {
    min-height: calc(100vh - 112px);
    grid-template: 54px minmax(0, 1fr) / minmax(0, 1fr);
  }

  .e10-catalog-browser > .e10-catalog-sidebar {
    display: flex;
    min-height: 0;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--e10-profile-border, #e5e5e5);
  }

  .e10-catalog-browser > .e10-catalog-sidebar h2,
  .e10-catalog-guideline {
    display: none;
  }

  .e10-catalog-category-list {
    display: flex;
    min-width: max-content;
    padding: 6px;
  }

  .e10-catalog-category-list .e10-catalog-category {
    width: auto;
    min-width: max-content;
  }

  .e10-catalog-content {
    grid-row: 2;
  }

  .e10-catalog-content > .e10-catalog-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .e10-catalog-controls .e10-system-search {
    width: 180px;
    min-width: 180px;
  }

  .e10-catalog-controls .e10-catalog-count {
    margin-left: 0;
  }

  .e10-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }

  .e10-catalog-grid > .e10-catalog-card {
    min-height: 390px;
  }

  .e10-system-service-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .e10-system-service-heading .e10-system-search {
    width: 100%;
  }

  .e10-system-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .e10-system-service-item {
    min-height: 72px;
    grid-template-columns: 27px minmax(0, 1fr);
    padding: 7px;
  }

  .e10-system-service-item > span {
    width: 27px;
    height: 27px;
  }

  .e10-system-service-item small {
    white-space: normal;
  }

  .e10-system-admin-frame {
    min-height: 570px;
    grid-template-columns: 92px 132px minmax(420px, 1fr);
    overflow-x: auto;
  }

  .e10-system-module-sidebar > header,
  .e10-system-object-pane > header {
    padding: 0 6px;
  }

  .e10-system-module-sidebar > header .plain-icon-button,
  .e10-system-object-pane > header .plain-icon-button,
  .e10-system-object-pane .e10-system-search .icon,
  .e10-system-tree-parent .icon,
  .e10-system-tree-parent small {
    display: none;
  }

  .e10-system-module-item {
    min-height: 34px;
    padding: 6px 7px;
    font-size: 9px;
  }

  .e10-system-object-pane .e10-system-search {
    margin: 6px;
  }

  .e10-system-object-pane .e10-system-search .input {
    padding: 0 6px;
    font-size: 9px;
  }

  .e10-system-object-pane .e10-system-tree-row {
    padding: 0 6px;
    font-size: 9px;
  }

  .e10-system-object-pane .e10-system-tree-row > i {
    margin-left: 3px;
  }

  .e10-system-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .e10-system-form-grid .e10-system-field-wide {
    grid-column: 1;
  }

  .e10-profile-business-workbench .e10-system-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .e10-system-workbench-welcome {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .e10-system-workbench-search {
    width: 100%;
    min-width: 0;
  }

  .e10-profile-business-workbench .e10-system-kpi-card {
    min-height: 92px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .e10-profile-business-workbench .e10-system-kpi-card .e10-system-kpi-icon {
    width: 34px;
    height: 34px;
  }

  .e10-profile-business-workbench .e10-system-kpi-card strong {
    font-size: 18px;
  }

  .e10-system-workbench-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .e10-system-widget-span-two {
    grid-column: 1;
  }

  .e10-system-workbench-grid > .e10-system-widget {
    min-height: 250px;
  }

  .e10-system-widget-header {
    padding: 0 9px;
    overflow-x: auto;
  }

  .e10-system-widget-header .e10-system-widget-tabs {
    min-width: max-content;
    margin-left: 8px;
  }

  .e10-system-task-list {
    padding: 0 8px;
  }

  .e10-system-task-list > button {
    grid-template-columns: 24px minmax(0, 1fr) auto 6px;
  }

  .e10-system-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 9px;
  }

  .e10-system-chart {
    min-width: 520px;
  }

  .e10-system-widget:has(.e10-system-chart) {
    overflow-x: auto;
  }

  .e10-ai-workbench {
    height: calc(100vh - 104px);
    min-height: 580px;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  }

  .e10-ai-sidebar {
    display: none;
  }

  .e10-ai-conversation {
    grid-column: 1;
  }

  .e10-ai-conversation-head {
    padding: 0 8px;
    overflow: hidden;
  }

  .e10-ai-conversation-head > div:first-child > span {
    display: none;
  }

  .e10-ai-state-switch {
    max-width: 64%;
    overflow-x: auto;
  }

  .e10-ai-conversation > .e10-ai-thread {
    padding: 10px 8px;
  }

  .e10-ai-message-user {
    max-width: 90%;
  }

  .e10-ai-answer-head {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    padding: 6px 8px;
  }

  .e10-ai-message-assistant > .e10-ai-plan,
  .e10-ai-message-assistant > .e10-ai-tool-call,
  .e10-ai-message-assistant > .e10-ai-result,
  .e10-ai-message-assistant > .e10-ai-confirmation,
  .e10-ai-message-assistant > .e10-ai-citations {
    margin-right: 8px;
    margin-left: 8px;
  }

  .e10-ai-step {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .e10-ai-step > em {
    grid-column: 2;
  }

  .e10-ai-tool-call > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .e10-ai-tool-call > div span {
    white-space: normal;
  }

  .e10-ai-conversation > .e10-ai-composer {
    margin: 0 8px 6px;
  }

  .e10-ai-conversation > .e10-ai-composer > footer {
    overflow-x: auto;
  }

  .e10-ai-conversation > .e10-ai-composer > footer > div {
    min-width: max-content;
  }

  .e10-ai-conversation > .e10-ai-composer label:nth-of-type(n + 2) {
    display: none;
  }

  .e10-ai-citation-panel {
    width: calc(100% - 16px);
    max-width: 340px;
  }

  .e10-system-state-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .e10-system-state-card {
    min-height: 286px;
  }

  .e10-system-state-preview {
    padding: 11px;
  }

  .e10-system-alert {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .e10-system-alert > .btn {
    grid-column: 2;
    justify-self: start;
  }
}

/* Deterministic registry renderer */
.e10-generated-page-scroll {
  padding: 12px;
  background: var(--e10-profile-workspace, #f0f1f4);
}

.e10-generated-preview {
  min-height: 100%;
  color: var(--e10-profile-text, #222222);
  background: var(--e10-profile-workspace, #f0f1f4);
  font-size: 12px;
  letter-spacing: 0;
}

.e10-ui-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.e10-ui-template {
  min-height: calc(100vh - 136px);
  overflow: hidden;
  background: var(--e10-profile-workspace, #f0f1f4);
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: var(--e10-profile-panel-radius, 3px);
}

.e10-ui-template-header {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--e10-profile-border, #e5e5e5);
}

.e10-ui-template-title,
.e10-ui-section-title,
.e10-ui-slot-title,
.e10-content-block-title {
  margin: 0;
  color: var(--e10-profile-text, #222222);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.e10-ui-template-subtitle,
.e10-ui-section-subtitle {
  margin: 0;
  color: var(--e10-profile-text-muted, #999999);
  font-size: 12px;
}

.e10-ui-template-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.e10-ui-template-slot {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 96px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: var(--e10-profile-panel-radius, 3px);
}

.e10-ui-profile-business-workbench .e10-ui-template-slot:not(:first-child) {
  grid-column: span 6;
}

.e10-ui-profile-business-workbench .e10-ui-template-slot:nth-child(n + 4) {
  grid-column: span 4;
}

.e10-ui-profile-admin-center .e10-ui-template-slot:first-child,
.e10-ui-profile-admin-center .e10-ui-template-slot:nth-child(2),
.e10-ui-profile-admin-center .e10-ui-template-slot:nth-child(3) {
  grid-column: span 3;
}

.e10-ui-profile-admin-center .e10-ui-template-slot:nth-child(n + 4) {
  grid-column: span 9;
}

.e10-ui-slot-title {
  min-height: 36px;
  padding: 10px 12px 8px;
  color: var(--e10-profile-text-regular, #666666);
  font-size: 12px;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-generated-preview .e10-ui-slot-title {
  display: none;
}

.e10-ui-slot-content,
.e10-ui-layout-content {
  min-width: 0;
  padding: 10px 12px;
}

.e10-ui-component,
.e10-content-block {
  min-width: 0;
}

.e10-ui-layout,
.e10-ui-business,
.e10-ui-data,
.e10-ui-display,
.e10-ui-workflow,
.e10-ui-message,
.e10-ui-document,
.e10-ui-portal-widget,
.e10-ui-admin,
.e10-ui-feedback,
.e10-ui-overlay,
.e10-ui-ai,
.e10-ui-catalog {
  padding: 10px 12px;
}

.e10-ui-layout-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.e10-ui-list,
.e10-ui-data-list,
.e10-ui-display-items,
.e10-ui-workflow-items,
.e10-ui-message-list,
.e10-ui-document-list,
.e10-ui-portal-items,
.e10-ui-admin-items,
.e10-ui-admin-groups,
.e10-ui-ai-items,
.e10-ui-catalog-items,
.e10-content-list,
.e10-content-chart-data,
.e10-content-citations {
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.e10-ui-list-item {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ui-list-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e10-ui-list-meta,
.e10-ui-message-meta,
.e10-ui-document-meta,
.e10-content-attachment-meta {
  color: var(--e10-profile-text-muted, #999999);
}

.e10-ui-status,
.e10-ui-ai-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  color: var(--e10-profile-primary, #0470c1);
  background: var(--e10-profile-primary-soft, #eaf5fd);
  border: 1px solid color-mix(in srgb, var(--e10-profile-primary, #0470c1) 22%, #ffffff);
  border-radius: 3px;
  white-space: nowrap;
}

.e10-ui-action,
.e10-ui-navigation-button {
  min-height: 30px;
  padding: 0 12px;
  color: var(--e10-profile-text-regular, #666666);
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: var(--e10-profile-radius, 3px);
  cursor: pointer;
}

.e10-ui-action:hover,
.e10-ui-action:focus-visible,
.e10-ui-navigation-button:hover,
.e10-ui-navigation-button:focus-visible {
  color: var(--e10-profile-primary, #0470c1);
  border-color: var(--e10-profile-primary, #0470c1);
  outline: none;
}

.e10-ui-action[data-tone="primary"] {
  color: #ffffff;
  background: var(--e10-profile-primary, #0470c1);
  border-color: var(--e10-profile-primary, #0470c1);
}

.e10-ui-action:disabled {
  color: #b7b7b7;
  background: #f5f5f5;
  cursor: not-allowed;
}

.e10-ui-field {
  display: grid;
  grid-template-columns: minmax(88px, 28%) minmax(0, 1fr);
  min-height: 40px;
  align-items: center;
  gap: 10px;
}

.e10-ui-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}

.e10-ui-page-toolbar .e10-ui-layout-header {
  margin: 0;
}

.e10-ui-page-toolbar .e10-ui-layout-content {
  padding: 0;
}

.e10-ui-filterbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 180px) auto;
  gap: 8px;
  margin-top: 8px;
}

.e10-ui-field-label {
  color: var(--e10-profile-text-regular, #666666);
}

.e10-ui-control {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  color: var(--e10-profile-text, #222222);
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  border-radius: var(--e10-profile-radius, 3px);
}

textarea.e10-ui-control {
  min-height: 72px;
  padding-block: 7px;
  resize: vertical;
}

.e10-ui-control:focus {
  border-color: var(--e10-profile-primary, #0470c1);
  outline: 2px solid color-mix(in srgb, var(--e10-profile-primary, #0470c1) 14%, transparent);
}

.e10-ui-description-list,
.e10-ui-metrics,
.e10-content-form-draft {
  display: grid;
  grid-template-columns: minmax(100px, 28%) minmax(0, 1fr);
  margin: 8px 0 0;
  border-top: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ui-description-term,
.e10-ui-description-value {
  min-width: 0;
  min-height: 38px;
  padding: 10px;
  margin: 0;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ui-description-term {
  color: var(--e10-profile-text-regular, #666666);
  background: #fafafa;
}

.e10-ui-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  table-layout: fixed;
}

.e10-ui-table-cell {
  height: 40px;
  padding: 0 10px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid var(--e10-profile-divider, #ebebeb);
}

.e10-ui-table-head .e10-ui-table-cell {
  color: var(--e10-profile-text-regular, #666666);
  font-weight: 400;
  background: #f8f9fb;
}

.e10-ui-navigation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.e10-ui-navigation-button[aria-current="page"] {
  color: var(--e10-profile-primary, #0470c1);
  background: var(--e10-profile-primary-soft, #eaf5fd);
  border-color: var(--e10-profile-primary, #0470c1);
}

.e10-ui-display-value,
.e10-ui-metric-value {
  display: block;
  margin-top: 8px;
  color: var(--e10-profile-primary, #0470c1);
  font-size: 24px;
  line-height: 1.15;
}

.e10-ui-feedback,
.e10-content-block-notice,
.e10-content-notice {
  color: #66501d;
  background: #fff8e8;
  border: 1px solid #f2d89d;
  border-radius: var(--e10-profile-radius, 3px);
}

.e10-ui-feedback[data-tone="error"] {
  color: #8d2d2d;
  background: #fff1f0;
  border-color: #f4c8c5;
}

.e10-ui-feedback-message,
.e10-ui-overlay-message,
.e10-ui-ai-content,
.e10-ui-message-body,
.e10-content-text,
.e10-content-notice {
  margin: 7px 0 0;
  line-height: 1.7;
}

.e10-ui-progress {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  accent-color: var(--e10-profile-primary, #0470c1);
}

.e10-ui-ai-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 10px;
}

.e10-ui-ai-composer textarea {
  min-height: 64px;
}

.e10-content-code {
  max-width: 100%;
  padding: 10px 12px;
  overflow: auto;
  color: #dbe8f4;
  background: #273543;
  border-radius: 3px;
}

.e10-ui-overlay {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--e10-profile-border, #e5e5e5);
  box-shadow: var(--e10-profile-shadow, 0 2px 10px rgba(28, 43, 54, 0.08));
}

@media (max-width: 760px) {
  .e10-generated-page-scroll {
    padding: 8px;
  }

  .e10-ui-template {
    min-height: calc(100vh - 120px);
  }

  .e10-ui-template-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }

  .e10-ui-template-slot,
  .e10-ui-profile-business-workbench .e10-ui-template-slot:not(:first-child),
  .e10-ui-profile-business-workbench .e10-ui-template-slot:nth-child(n + 4),
  .e10-ui-profile-admin-center .e10-ui-template-slot:first-child,
  .e10-ui-profile-admin-center .e10-ui-template-slot:nth-child(2),
  .e10-ui-profile-admin-center .e10-ui-template-slot:nth-child(3),
  .e10-ui-profile-admin-center .e10-ui-template-slot:nth-child(n + 4) {
    grid-column: 1;
  }

  .e10-ui-template-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .e10-ui-field,
  .e10-ui-description-list,
  .e10-ui-metrics,
  .e10-content-form-draft {
    grid-template-columns: minmax(0, 1fr);
  }

  .e10-ui-filterbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .e10-ui-description-term {
    min-height: 30px;
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .e10-ui-table {
    min-width: 560px;
  }

  .e10-ui-template-slot:has(.e10-ui-table) {
    overflow-x: auto;
  }
}
