
/* /src/styles.css */
/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
@layer properties;
.visible {
  visibility: visible;
}
.relative {
  position: relative;
}
.block {
  display: block;
}
.hidden {
  display: none;
}
.inline {
  display: inline;
}
.table {
  display: table;
}
.transform {
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
}
:root {
  color-scheme: light;
  --ui-bg: #f7f7f8;
  --ui-surface: #fff;
  --ui-text: #18181b;
  --ui-muted: #6b7280;
  --ui-border: rgb(24 24 27/10%);
  --ui-border-strong: rgb(24 24 27/17%);
  --ui-accent: #315efb;
  --ui-danger: #b42318;
  --ui-success: #067647;
  --ui-warning: #9a5b00;
  --ui-radius: 10px;
  --ui-shadow: 0 20px 55px rgb(24 24 27/14%);
}
html,body,#root {
  width: 100%;
  min-width: 0;
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing: antialiased;
}
*,*::before,*::after {
  box-sizing: border-box;
}
button,input,select,textarea {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
.app-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius);
  background: transparent;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: .13s ease;
}
.app-button>span:not(.app-button-spinner) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.app-button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.app-button.is-primary {
  background: var(--ui-accent);
  color: #fff;
}
.app-button.is-secondary {
  border-color: var(--ui-border-strong);
  background: #fff;
}
.app-button.is-secondary:hover:not(:disabled),.app-button.is-ghost:hover:not(:disabled) {
  background: #f1f2f4;
}
.app-button.is-danger {
  border-color: rgb(180 35 24/18%);
  background: #fff3f2;
  color: var(--ui-danger);
}
.app-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.app-button-spinner,.app-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ui-spin .75s linear infinite;
}
@keyframes ui-spin {
  to {
    transform: rotate(360deg);
  }
}
.app-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #65676d;
  cursor: pointer;
}
.app-icon-button:hover {
  background: rgb(24 24 27/6%);
}
.app-button:focus-visible,.app-icon-button:focus-visible,.app-toggle:focus-visible,.admin-nav button:focus-visible,.admin-tabs button:focus-visible,.skill-dropzone:focus-visible {
  outline: 2px solid rgb(49 94 251/45%);
  outline-offset: 2px;
}
.app-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}
.app-notice.is-success {
  background: #ecfdf3;
  color: var(--ui-success);
}
.app-notice.is-warning {
  background: #fff8e8;
  color: var(--ui-warning);
}
.app-notice.is-error {
  background: #fff3f2;
  color: var(--ui-danger);
}
.app-notice-close {
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 18px;
}
.app-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.app-field-label {
  font-size: 13px;
  font-weight: 650;
}
.app-field-hint {
  color: var(--ui-muted);
  font-size: 12px;
}
.app-input,.app-select,.app-textarea,.app-code-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ui-border-strong);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ui-text);
}
.app-input,.app-select {
  min-height: 40px;
  padding: 8px 11px;
}
.app-textarea,.app-code-input {
  min-height: 96px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.55;
}
.app-code-input {
  font-family: "SFMono-Regular",Consolas,monospace;
  font-size: 12px;
}
.app-input:focus,.app-select:focus,.app-textarea:focus,.app-code-input:focus {
  border-color: rgb(49 94 251/58%);
  box-shadow: 0 0 0 3px rgb(49 94 251/10%);
}
.app-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.app-form-grid.is-three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.app-form-grid.is-four {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.app-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: #f5f5f6;
  color: #52525b;
  font-size: 11px;
  font-weight: 650;
}
.app-pill.is-blue {
  background: #eef2ff;
  color: #3154c8;
}
.app-pill.is-green {
  background: #ecfdf3;
  color: var(--ui-success);
}
.app-pill.is-orange {
  background: #fff8e8;
  color: var(--ui-warning);
}
.app-pill.is-red {
  background: #fff3f2;
  color: var(--ui-danger);
}
.app-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8cbd1;
  cursor: pointer;
}
.app-toggle.is-checked {
  background: var(--ui-accent);
}
.app-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0/20%);
  transition: .13s;
}
.app-toggle.is-checked .app-toggle-thumb {
  transform: translateX(16px);
}
.app-toggle:disabled {
  opacity: .48;
}
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(17 24 39/42%);
  backdrop-filter: blur(4px);
}
.app-modal {
  width: min(100%,680px);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ui-shadow);
}
.app-modal.is-small {
  width: min(100%,480px);
}
.app-modal.is-large {
  width: min(100%,940px);
}
.app-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--ui-border);
}
.app-modal-header h2 {
  margin: 0;
  font-size: 17px;
}
.app-modal-header p {
  margin: 6px 0 0;
  color: var(--ui-muted);
  font-size: 12px;
}
.app-modal-body {
  max-height: calc(90vh - 86px);
  overflow: auto;
  padding: 20px 22px 22px;
}
.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 4px;
}
.app-empty {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 24px;
  color: var(--ui-muted);
  font-size: 13px;
  text-align: center;
}
.app-loading {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  color: var(--ui-muted);
  font-size: 13px;
}
.login-shell {
  min-height: 100dvh;
  overflow: auto;
  background: radial-gradient(circle at 18% 10%,#eef2ff 0,transparent 32%),#f7f7f8;
}
.login-panel {
  display: grid;
  width: min(1120px,calc(100% - 40px));
  min-height: 100dvh;
  margin: auto;
  grid-template-columns: minmax(0,1.2fr) minmax(340px,440px);
  align-items: center;
  gap: clamp(48px,8vw,112px);
  padding: 56px 0;
}
.login-hero {
  max-width: 650px;
}
.login-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--ui-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-title {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(36px,5vw,60px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.login-copy {
  max-width: 56ch;
  margin: 24px 0 0;
  color: #62656d;
  font-size: 15px;
  line-height: 1.8;
}
.login-card {
  padding: 26px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: rgb(255 255 255/94%);
  box-shadow: 0 20px 70px rgb(24 24 27/8%);
}
.login-card-heading {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 5px 12px;
  align-items: center;
  margin-bottom: 22px;
}
.login-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1/span 2;
  place-items: center;
  border-radius: 10px;
  background: #edf1ff;
  color: var(--ui-accent);
}
.login-card-heading h2 {
  margin: 0;
  font-size: 16px;
}
.login-card-heading p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
}
.login-notices,.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-notices {
  margin-bottom: 15px;
}
.login-form .app-button {
  width: 100%;
}
.login-footnote {
  display: block;
  margin-top: 18px;
  color: #85878e;
  font-size: 11px;
  line-height: 1.65;
}
.admin-shell {
  display: flex;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #f7f7f8;
}
.admin-sidebar {
  display: flex;
  width: 238px;
  flex: 0 0 238px;
  flex-direction: column;
  padding: 14px 11px;
  border-right: 1px solid var(--ui-border);
  background: #f1f2f4;
}
.admin-brand {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 4px 7px 12px;
}
.admin-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #202124;
  color: #fff;
}
.admin-brand>div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.admin-brand strong {
  font-size: 13px;
}
.admin-brand span:not(.admin-brand-mark) {
  color: var(--ui-muted);
  font-size: 11px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-nav button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5b5d64;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.admin-nav button:hover {
  background: rgb(24 24 27/5%);
}
.admin-nav button.is-active {
  background: #fff;
  color: #202124;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--ui-border);
}
.admin-sidebar-footer {
  display: flex;
  margin-top: auto;
  flex-direction: column;
  padding: 12px 9px 5px;
  border-top: 1px solid var(--ui-border);
  font-size: 12px;
}
.admin-sidebar-footer small {
  color: var(--ui-muted);
}
.admin-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.admin-topbar {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 26px;
  border-bottom: 1px solid var(--ui-border);
  background: rgb(255 255 255/80%);
}
.admin-topbar h1 {
  margin: 2px 0 0;
  font-size: 20px;
}
.admin-eyebrow {
  color: #8a8c93;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .11em;
}
.admin-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  overflow: auto;
  padding: 24px 26px 42px;
}
.admin-section-heading,.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.admin-section-heading h2,.admin-panel-heading h2 {
  margin: 0;
  font-size: 17px;
}
.admin-section-heading p,.admin-panel-heading p {
  margin: 5px 0 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.6;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.admin-search {
  position: relative;
  min-width: 260px;
  flex: 1 1 320px;
}
.admin-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  color: #8b8d94;
  pointer-events: none;
}
.admin-search .app-input {
  padding-left: 34px;
}
.app-select.compact {
  width: auto;
  min-width: 150px;
}
.admin-table-card,.admin-panel {
  border: 1px solid var(--ui-border);
  border-radius: 13px;
  background: #fff;
}
.admin-table-card {
  overflow: auto;
}
.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table th,.admin-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--ui-border);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  background: #f8f8f9;
  color: #65676e;
  font-size: 11px;
  white-space: nowrap;
}
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-table .align-right {
  text-align: right;
}
.admin-primary-cell {
  display: flex;
  min-width: 170px;
  flex-direction: column;
  gap: 3px;
}
.admin-primary-cell small {
  color: var(--ui-muted);
  font-size: 10px;
}
.rule-cell {
  max-width: 460px;
}
.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.admin-card-list,.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-rule-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
}
.admin-rule-copy h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.admin-rule-copy p {
  margin: 0;
  color: #50525a;
  font-size: 12px;
  line-height: 1.65;
}
.admin-rule-meta,.admin-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ui-muted);
  font-size: 11px;
}
.admin-panel {
  padding: 18px;
}
.admin-panel-heading {
  margin-bottom: 16px;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.admin-stat-grid article {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
}
.admin-stat-grid strong {
  font-size: 24px;
}
.admin-stat-grid span {
  color: var(--ui-muted);
  font-size: 11px;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: #eeeff1;
}
.admin-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #676970;
  font-size: 12px;
  font-weight: 620;
  cursor: pointer;
}
.admin-tabs button.is-active {
  background: #fff;
  color: #222327;
  box-shadow: 0 1px 3px rgb(24 24 27/8%);
}
.admin-toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.admin-inline-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  font-size: 12px;
}
.admin-snapshot-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.admin-snapshot-form .app-field {
  flex: 1;
}
.snapshot-view {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ui-border);
}
.snapshot-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.snapshot-columns section {
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #fafafa;
}
.snapshot-columns h4 {
  margin: 0 0 9px;
  font-size: 12px;
}
.snapshot-columns ul {
  margin: 0;
  padding-left: 18px;
  color: #56585f;
  font-size: 11px;
  line-height: 1.65;
}
.skill-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-quick-install {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1100;
  box-shadow: 0 10px 32px rgb(24 24 27/13%);
}
.skill-dropzone {
  display: grid;
  width: 100%;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  border: 1px dashed #a6a9b0;
  border-radius: 12px;
  background: #fafafa;
  color: #5e6067;
  text-align: center;
  cursor: pointer;
}
.skill-dropzone strong,.skill-dropzone span {
  display: block;
}
.skill-dropzone strong {
  margin-top: 10px;
}
.skill-dropzone span {
  margin-top: 4px;
  font-size: 12px;
}
@media (max-width:1080px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .app-form-grid.is-four {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:820px) {
  body {
    overflow: auto;
  }
  .login-panel {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .admin-shell {
    height: auto;
    min-height: 100dvh;
    flex-direction: column;
    overflow: visible;
  }
  .admin-sidebar {
    width: 100%;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ui-border);
  }
  .admin-nav {
    flex-direction: row;
    overflow: auto;
  }
  .admin-nav button {
    width: auto;
    flex: 0 0 auto;
  }
  .admin-sidebar-footer {
    display: none;
  }
  .admin-content {
    overflow: visible;
    padding: 18px;
  }
  .admin-section-heading,.admin-panel-heading {
    flex-direction: column;
  }
}
@media (max-width:620px) {
  .login-panel {
    width: min(100% - 28px,520px);
    padding-block: 34px;
  }
  .login-title {
    font-size: 36px;
  }
  .app-form-grid,.app-form-grid.is-three,.app-form-grid.is-four,.snapshot-columns,.admin-stat-grid {
    grid-template-columns: 1fr;
  }
  .admin-search {
    min-width: 100%;
  }
  .admin-rule-card {
    grid-template-columns: 1fr;
  }
  .admin-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .app-modal-backdrop {
    padding: 10px;
  }
  .app-modal-header,.app-modal-body {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
    }
  }
}


/* /@fs//app/apps/console/src/components/chat/ChatLayoutPolish.css */
:root {
  --agent-chat-track: 1040px;
  --agent-report-track: 1180px;
  --agent-canvas-track: 1244px;
  --agent-narrative-track: 840px;
  --agent-sidebar-width: 272px;
}

/*
 * Spatial model
 * canvas: composition and negative space
 * chat: ordinary dialogue and composer
 * report: structured assessment stage
 * narrative: continuous Chinese reading measure inside the report
 * All four share the same geometric center.
 */
.agent-message-stack {
  width: min(100%, var(--agent-canvas-track));
  margin-inline: auto;
  padding: 40px 32px 192px;
  gap: 32px;
}

.agent-message-assistant:not(:has(.agent-report)) .agent-message-body,
.agent-message-user {
  width: min(100%, var(--agent-chat-track));
  margin-inline: auto;
}

.agent-message-assistant:has(.agent-report) .agent-message-body {
  width: min(100%, var(--agent-report-track));
  margin-inline: auto;
}

.agent-message-assistant:has(.agent-report) .agent-report {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.agent-message-user {
  align-items: flex-end;
}

.agent-message-user .agent-message-footer {
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
}

/* A file-only user message should be one surface, not a grey card around a white card. */
.agent-user-bubble:has(.agent-message-files):not(:has(.agent-user-text)) {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.agent-user-bubble:has(.agent-message-files):not(:has(.agent-user-text)) .agent-message-files {
  margin: 0;
}

/* Product context is selectable in the composer; do not repeat its technical metadata below user messages. */
.agent-message-user .agent-message-meta {
  display: none;
}

.agent-topbar .agent-context-pill {
  display: none;
}

.agent-execution {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: 14px;
}

.agent-execution-trigger,
.agent-execution-label,
.agent-execution-step {
  font-size: 14px;
}

.agent-execution-step small {
  font-size: 12px;
}

/* Report hierarchy ------------------------------------------------------- */
.agent-report-header {
  padding: 32px 32px 24px;
  border-bottom: 0;
}

.agent-report-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
}

/* The outcome is the primary anchor; applicant identity becomes supporting context. */
.agent-report-title-row > .agent-report-badge {
  order: -1;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #171717;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.agent-report-title-row > .agent-report-badge.is-success {
  background: transparent;
  color: #27733a;
}

.agent-report-title-row > .agent-report-badge.is-warning {
  background: transparent;
  color: #9a5b00;
}

.agent-report-title-row > .agent-report-badge.is-danger {
  background: transparent;
  color: #b42318;
}

.agent-report-title-row h2 {
  margin: 0;
  color: #303030;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
  letter-spacing: 0;
}

.agent-report-title-row p {
  margin: 2px 0 0;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.agent-report-summary-line {
  gap: 8px 20px;
  margin-top: 16px;
  color: #626262;
  font-size: 13px;
}

.agent-report-details {
  margin-top: 12px;
}

.agent-report-section {
  padding: 28px 32px;
  border-bottom: 0;
}

.agent-report-section + .agent-report-section {
  border-top: 1px solid #eeeeee;
}

.agent-report-section-heading {
  margin-bottom: 16px;
}

.agent-report-section-heading h3 {
  font-size: 16px;
  font-weight: 650;
}

/* Narrative text is deliberately narrower than the report stage. */
.agent-report-executive {
  width: min(100%, var(--agent-narrative-track));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #343434;
  font-size: 15px;
  line-height: 1.8;
}

.agent-report-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: start;
  gap: 24px;
}

.agent-report-overview-copy {
  min-width: 0;
}

.agent-report-status-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid #e5e5e5;
}

.agent-report-status-list > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e9e9e9;
}

.agent-report-status-list dt {
  color: #626262;
  font-size: 12px;
}

.agent-report-status-list dd {
  margin: 0;
  color: #292929;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.agent-report-details,
.agent-report-section-heading > span,
.agent-report-material > header span {
  color: #626262;
  font-size: 12px;
}

.agent-report-details p,
.agent-report-details li {
  color: #4e4e4e;
  font-size: 13px;
  line-height: 1.65;
}

.agent-report-observations span {
  color: #626262;
  font-size: 12px;
}

.agent-report-observations p,
.agent-report-material-headline,
.agent-report-material-facts span,
.agent-report-risk p,
.agent-report-fact > div:first-child span {
  color: #3f3f3f;
  font-size: 13px;
}

.agent-report-observations.is-expanded {
  margin-top: 10px;
}

.agent-report-boundary {
  margin-right: auto;
  color: #626262;
  font-size: 12px;
  line-height: 1.5;
}

.agent-report-footer {
  padding: 16px 32px 20px;
  border-top: 1px solid #eeeeee;
}

.agent-thread {
  display: flex;
  flex-direction: column;
}

.agent-thread > .agent-message-scroll {
  flex: 1 1 auto;
}

/* Composer: same center and effective width as ordinary dialogue. */
.agent-composer-frame {
  width: min(calc(100% - 64px), var(--agent-chat-track));
  margin-inline: auto;
  padding: 0 0 20px;
}

.agent-composer {
  min-height: 82px;
  border-radius: 16px;
  border-color: #e2e2e2;
  box-shadow: none;
}

.agent-composer:focus-within {
  border-color: #a9a9a9;
  box-shadow: 0 0 0 3px rgba(27, 94, 58, 0.08);
}

.agent-composer-input {
  min-height: 34px;
  color: #242424;
  font-size: 15px;
}

.agent-composer-input::-moz-placeholder {
  color: #666;
}

.agent-composer-input::placeholder {
  color: #666;
}

.agent-composer-send-area {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.agent-composer-status {
  overflow: hidden;
  color: #626262;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sidebar: clear browse structure with low visual competition. */
.agent-sidebar {
  display: flex;
  width: var(--agent-sidebar-width);
  flex: 0 0 var(--agent-sidebar-width);
  flex-direction: column;
  padding: 8px 8px 10px;
  border-right: 1px solid #ededed;
  background: #fafafa;
}

.agent-sidebar-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.agent-mobile-sidebar-bar,
.agent-mobile-panel-header,
.agent-sidebar-backdrop {
  display: none;
}

.agent-sidebar-brand {
  min-height: 44px;
  padding: 3px 8px 8px;
  font-size: 15px;
}

.agent-sidebar-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.agent-new-thread {
  width: 100%;
  min-height: 40px;
  margin: 4px 0 16px;
  padding: 8px 9px;
  border-radius: 8px;
  justify-content: flex-start;
  background: transparent;
  font-size: 14px;
  font-weight: 540;
}

.agent-new-thread:hover {
  background: #f1f1f1;
}

.agent-conversation-nav {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 1px 16px;
  scrollbar-width: thin;
  scrollbar-color: #d6d6d6 transparent;
}

.agent-conversation-group + .agent-conversation-group {
  margin-top: 20px;
}

.agent-sidebar-section-label {
  padding: 0 9px 6px;
  color: #626262;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.5;
}

.agent-conversation-state {
  display: flex;
  width: min(calc(100% - 64px), var(--agent-chat-track));
  min-height: 72px;
  align-items: flex-start;
  gap: 12px;
  margin: 24px auto 0;
  padding: 16px 18px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  background: #fafafa;
  color: #303030;
}

.agent-conversation-state.is-warning {
  border-color: #ead7b2;
  background: #fffaf1;
}

.agent-conversation-state-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #3a8150;
}

.agent-conversation-state.is-warning .agent-conversation-state-dot {
  background: #a15c00;
}

.agent-conversation-state strong {
  display: block;
  font-size: 14px;
}

.agent-conversation-state p {
  margin: 4px 0 0;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

.agent-jump-latest {
  position: sticky;
  z-index: 12;
  bottom: 156px;
  display: block;
  min-height: 36px;
  margin: -52px auto 16px;
  padding: 7px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.agent-conversation-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-conversation-item {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.agent-conversation-item:hover {
  background: #f1f1f1;
}

.agent-conversation-item.is-active {
  background: #ededed;
}

.agent-conversation-copy {
  display: grid;
  min-width: 0;
  width: 100%;
  gap: 2px;
}

.agent-conversation-title {
  display: block;
  overflow: hidden;
  color: #303030;
  font-size: 13.5px;
  font-weight: 480;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-conversation-context {
  display: block;
  overflow: hidden;
  color: #656565;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-conversation-side {
  display: grid;
  align-self: stretch;
  justify-items: end;
  align-content: space-between;
  gap: 4px;
}

.agent-conversation-time {
  color: #626262;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.agent-conversation-status {
  color: #686868;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.agent-conversation-status.is-archived,
.agent-conversation-status.is-closed {
  color: #767676;
}

.agent-conversation-status.is-running {
  color: var(--agent-text);
}

.agent-conversation-status.is-completed {
  color: var(--agent-accent);
  font-weight: 600;
}

.agent-conversation-status.is-failed {
  color: var(--agent-danger);
  font-weight: 600;
}

.agent-conversation-item.is-active .agent-conversation-title {
  color: #171717;
  font-weight: 560;
}

.agent-conversation-item.is-active .agent-conversation-time {
  color: #555;
}

.agent-conversation-meta {
  display: none;
}

.agent-sidebar-audit {
  width: 100%;
  min-height: 38px;
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 13px;
}

@media (min-width: 1680px) {
  :root {
    --agent-chat-track: 1080px;
    --agent-report-track: 1220px;
    --agent-canvas-track: 1284px;
    --agent-narrative-track: 860px;
  }
}

@media (max-width: 1320px) {
  :root {
    --agent-chat-track: 100%;
    --agent-report-track: 100%;
    --agent-canvas-track: 100%;
  }

  .agent-message-stack {
    padding-inline: 24px;
  }

  .agent-composer-frame {
    width: calc(100% - 48px);
  }
}

@media (max-width: 920px) {
  .agent-message-stack {
    padding: 28px 16px 170px;
  }

  .agent-composer-frame {
    width: calc(100% - 28px);
  }

  .agent-report-header,
  .agent-report-section,
  .agent-report-footer {
    padding-inline: 18px;
  }

  .agent-report-overview-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .agent-shell {
    flex-direction: column;
  }

  .agent-sidebar {
    position: relative;
    z-index: 40;
    width: 100%;
    height: 56px;
    flex: 0 0 56px;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
  }

  .agent-sidebar > .agent-sidebar-brand {
    display: none;
  }

  .agent-mobile-sidebar-bar {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px 7px 12px;
  }

  .agent-mobile-sidebar-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
  }

  .agent-mobile-sidebar-title .agent-sidebar-brand-mark {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    background: #202020;
    color: #fff;
    font-size: 12px;
  }

  .agent-mobile-sidebar-title strong {
    overflow: hidden;
    color: #222;
    font-size: 14px;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .agent-mobile-sidebar-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
  }

  .agent-mobile-sidebar-button,
  .agent-mobile-panel-header button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #353535;
    cursor: pointer;
  }

  .agent-mobile-sidebar-button:hover,
  .agent-mobile-panel-header button:hover {
    background: #f1f1f1;
  }

  .agent-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.32);
  }

  .agent-sidebar-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 910;
    width: min(360px, calc(100vw - 24px));
    min-height: 0;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    border-right: 1px solid #e7e7e7;
    background: #fafafa;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), visibility 180ms;
    pointer-events: none;
  }

  .agent-sidebar-panel.is-open {
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .agent-mobile-panel-header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 8px 8px;
  }

  .agent-mobile-panel-header > div {
    display: grid;
    gap: 2px;
  }

  .agent-mobile-panel-header strong {
    color: #222;
    font-size: 15px;
  }

  .agent-mobile-panel-header span {
    color: #626262;
    font-size: 12px;
  }

  .agent-sidebar-panel .agent-new-thread {
    display: flex;
    min-height: 44px;
    margin: 2px 0 14px;
    align-items: center;
    gap: 8px;
  }

  .agent-conversation-nav {
    padding-bottom: 10px;
  }

  .agent-conversation-list {
    flex-direction: column;
    overflow: visible;
  }

  .agent-conversation-item {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 58px;
  }

  .agent-sidebar-audit {
    min-height: 44px;
  }

  .agent-main {
    min-height: 0;
  }

  .agent-topbar {
    display: none;
  }

  .agent-message-stack {
    padding: 24px 14px 148px;
    gap: 24px;
  }

  .agent-composer-frame {
    width: calc(100% - 20px);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .agent-composer {
    min-height: 76px;
    padding: 10px 11px 8px;
    border-radius: 14px;
  }

  .agent-composer-input {
    min-height: 32px;
    font-size: 15px;
  }

  .agent-composer-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .agent-composer-tools {
    min-width: 0;
  }

  .agent-product-trigger {
    max-width: min(180px, calc(100vw - 230px));
  }

  .agent-conversation-state {
    width: calc(100% - 28px);
    margin-top: 16px;
    padding: 14px;
  }

  .agent-report-title-row {
    align-items: flex-start;
  }

  .agent-report-title-row h2 {
    font-size: 22px;
  }

  .agent-report-facts-grid,
  .agent-report-risk-list,
  .agent-report-observations {
    grid-template-columns: 1fr;
  }

  .agent-report-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .agent-report-boundary {
    width: 100%;
    margin-right: 0;
  }

  .agent-jump-latest {
    bottom: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-sidebar-panel {
    transition: none;
  }
}


/* /@fs//app/apps/console/src/modern-agent-ui.css */
/* Agent workspace presentation layer.
 * Business APIs, SSE events and persistence contracts remain unchanged.
 */

:root {
  --agent-bg: #f7f7f8;
  --agent-surface: #ffffff;
  --agent-surface-subtle: #f5f5f6;
  --agent-surface-hover: #f0f0f2;
  --agent-text: #18181b;
  --agent-text-secondary: #6f7178;
  --agent-text-tertiary: #9a9ca2;
  --agent-border: rgb(24 24 27 / 8%);
  --agent-border-strong: rgb(24 24 27 / 13%);
  --agent-accent: #3e63dd;
  --agent-danger: #b42318;
  --agent-ai-badge-background: #f3efff;
  --agent-ai-badge-text: #6941c6;
  --agent-radius-control: 10px;
  --agent-radius-surface: 14px;
  --agent-shadow-float: 0 18px 48px rgb(24 24 27 / 10%), 0 2px 8px rgb(24 24 27 / 5%);
}

body {
  background: var(--agent-bg);
  color: var(--agent-text);
}

button,
textarea,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.agent-shell {
  display: flex;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--agent-bg);
  color: var(--agent-text);
}

/* Sidebar */
.agent-sidebar {
  display: flex;
  flex: 0 0 256px;
  width: 256px;
  min-width: 0;
  flex-direction: column;
  padding: 12px 10px;
  background: #f3f3f4;
  box-shadow: inset -1px 0 0 var(--agent-border);
}

.agent-sidebar-brand {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 6px 8px;
  color: #29292d;
  font-size: 13px;
  font-weight: 670;
  letter-spacing: -0.01em;
}

.agent-sidebar-brand-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: #202124;
  color: #fff;
  font-size: 12px;
  font-weight: 730;
}

.agent-icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--agent-radius-control);
  background: transparent;
  color: #6c6e75;
  cursor: pointer;
  transition: background-color 130ms ease, color 130ms ease, transform 100ms ease;
}

.agent-icon-button:hover:not(:disabled) {
  background: rgb(24 24 27 / 6%);
  color: #242529;
}

.agent-icon-button:active:not(:disabled) {
  transform: scale(.96);
}

.agent-icon-button:focus-visible,
.agent-new-thread:focus-visible,
.agent-conversation-item:focus-visible,
.agent-sidebar-audit:focus-visible,
.agent-suggestion:focus-visible,
.agent-topbar-audit:focus-visible,
.agent-product-trigger:focus-visible,
.agent-product-option:focus-visible,
.agent-send-button:focus-visible,
.agent-execution-trigger:focus-visible,
.agent-meta-action:focus-visible,
.agent-error button:focus-visible {
  outline: 2px solid rgb(62 99 221 / 48%);
  outline-offset: 2px;
}

.agent-new-thread-button {
  margin-left: auto;
}

.agent-new-thread {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  margin: 2px 2px 14px;
  padding: 0 11px;
  border: 1px solid var(--agent-border);
  border-radius: 10px;
  background: rgb(255 255 255 / 74%);
  color: #36373b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 570;
  text-align: left;
  transition: background-color 130ms ease, border-color 130ms ease;
}

.agent-new-thread:hover {
  border-color: var(--agent-border-strong);
  background: #fff;
}

.agent-conversation-nav {
  min-height: 0;
  flex: 1;
}

.agent-sidebar-section-label {
  padding: 0 10px 7px;
  color: #9a9ca2;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
}

.agent-conversation-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  scrollbar-width: thin;
}

.agent-conversation-item {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #70727a;
  cursor: pointer;
  text-align: left;
  transition: background-color 130ms ease, color 130ms ease;
}

.agent-conversation-item:hover:not(.is-placeholder) {
  background: rgb(255 255 255 / 62%);
  color: #37383c;
}

.agent-conversation-item.is-active {
  background: #fff;
  color: #242529;
  box-shadow: 0 1px 2px rgb(24 24 27 / 4%);
}

.agent-conversation-item > svg {
  flex: 0 0 auto;
}

.agent-conversation-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.agent-conversation-title {
  overflow: hidden;
  font-size: 12px;
  font-weight: 540;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-conversation-meta {
  color: #a1a3a9;
  font-size: 10px;
}

.agent-sidebar-audit {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 0;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #85878e;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.agent-sidebar-audit:hover {
  background: rgb(255 255 255 / 58%);
  color: #4d4f55;
}

/* Main workspace */
.agent-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  background: var(--agent-surface);
}

.agent-topbar {
  display: flex;
  min-height: 57px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  box-shadow: inset 0 -1px 0 var(--agent-border);
}

.agent-topbar-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.agent-topbar h2 {
  max-width: min(54vw, 560px);
  margin: 0;
  overflow: hidden;
  color: #25262a;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-context-pill {
  max-width: 230px;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f3f5;
  color: #74767d;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-topbar-audit {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #75777e;
  cursor: pointer;
  font-size: 11px;
}

.agent-topbar-audit:hover {
  background: var(--agent-surface-subtle);
  color: #333438;
}

.agent-error {
  display: flex;
  width: min(calc(100% - 40px), 780px);
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin: 12px auto 0;
  padding: 9px 11px;
  border: 1px solid rgb(180 35 24 / 12%);
  border-radius: 11px;
  background: #fff8f7;
  color: #6d2b26;
  font-size: 11px;
}

.agent-error strong {
  color: #8e3129;
  font-weight: 650;
}

.agent-error span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-error button {
  border: 0;
  background: transparent;
  color: #8e3129;
  cursor: pointer;
  font-size: 11px;
}

.agent-content {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

/* Empty state */
.agent-empty-state {
  position: absolute;
  z-index: 1;
  top: 43%;
  left: 50%;
  display: flex;
  width: min(calc(100% - 40px), 620px);
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
}

.agent-empty-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--agent-border);
  border-radius: 12px;
  background: #fafafa;
  color: #383a40;
  box-shadow: 0 1px 2px rgb(24 24 27 / 4%);
}

.agent-empty-state h1 {
  margin: 0;
  color: #26272b;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 610;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-wrap: balance;
}

.agent-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.agent-suggestion {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--agent-border);
  border-radius: 10px;
  background: #fff;
  color: #55575d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 540;
  box-shadow: 0 1px 2px rgb(24 24 27 / 3%);
  transition: background-color 130ms ease, border-color 130ms ease, transform 100ms ease;
}

.agent-suggestion:hover {
  border-color: var(--agent-border-strong);
  background: #fafafa;
  color: #2f3034;
}

.agent-suggestion:active {
  transform: scale(.98);
}

/* Message stream */
.agent-thread {
  width: min(100%, 820px);
  min-height: 0;
  height: 100%;
}

.agent-message-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(24 24 27 / 14%) transparent;
}

.agent-message-stack {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 30px;
  padding: 34px 30px 54px;
}

.agent-message {
  display: flex;
  width: 100%;
  min-width: 0;
}

.agent-message-assistant {
  align-items: flex-start;
  gap: 12px;
}

.agent-message-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 1px;
  border-radius: 8px;
  background: #25262a;
  color: #fff;
}

.agent-message-body {
  min-width: 0;
  max-width: 72ch;
  flex: 1;
}

.agent-message-user {
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.agent-user-bubble {
  max-width: min(76%, 620px);
  padding: 9px 13px;
  border-radius: 15px 15px 4px 15px;
  background: #f1f1f3;
  color: #28292d;
}

.agent-user-text {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.agent-message-footer {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--agent-text-tertiary);
  font-size: 9px;
}

.agent-message-user > .agent-message-footer {
  margin-top: 0;
  padding-right: 3px;
}

.agent-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.agent-meta-pill {
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #8a8c92;
  font-size: 9px;
}

.agent-meta-action {
  padding: 2px 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #85878e;
  cursor: pointer;
  font-size: 9px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

.agent-meta-action:hover {
  color: #4d4f55;
  text-decoration-color: currentColor;
}

/* Sanitized execution lifecycle, not model chain-of-thought. */
.agent-execution {
  margin: 0 0 12px;
}

.agent-execution-trigger {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 3px 6px 3px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b8d94;
  cursor: pointer;
  font-size: 10px;
}

.agent-execution-trigger:hover {
  background: #f6f6f7;
  color: #5f6168;
}

.agent-execution-status {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.agent-execution-spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid #d0d1d5;
  border-top-color: #55575d;
  border-radius: 50%;
  animation: agent-spin .8s linear infinite;
}

.agent-execution-trigger svg:last-child {
  transition: transform 150ms ease;
}

.agent-execution-trigger svg.is-open {
  transform: rotate(180deg);
}

.agent-execution-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 4px 0 0 11px;
  padding-left: 13px;
  border-left: 1px solid #e8e8ea;
}

.agent-execution-step {
  position: relative;
  display: flex;
  min-height: 26px;
  align-items: baseline;
  gap: 7px;
  padding: 4px 0 4px 7px;
  color: #8a8c92;
  font-size: 10px;
}

.agent-execution-dot {
  position: absolute;
  top: 10px;
  left: -16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7c8cc;
  box-shadow: 0 0 0 3px #fff;
}

.agent-execution-step.is-running {
  color: #4d4f55;
}

.agent-execution-step.is-running .agent-execution-dot {
  background: var(--agent-accent);
}

.agent-execution-step.is-failed,
.agent-execution-step.is-failed small {
  color: var(--agent-danger);
}

.agent-execution-step small {
  color: #adaeb3;
  font-size: 9px;
}

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

/* Message attachments */
.agent-message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.agent-message-file {
  display: flex;
  min-width: 170px;
  max-width: 280px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--agent-border);
  border-radius: 10px;
  background: #fafafa;
}

.agent-user-bubble .agent-message-file {
  background: rgb(255 255 255 / 65%);
}

.agent-message-file-preview,
.agent-message-file-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
}

.agent-message-file-preview {
  -o-object-fit: cover;
     object-fit: cover;
}

.agent-message-file-icon {
  display: grid;
  place-items: center;
  background: #f0f0f2;
  color: #73757c;
}

.agent-message-file-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.agent-message-file-name {
  overflow: hidden;
  color: #4a4b50;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-message-file-meta {
  color: #999ba1;
  font-size: 9px;
}

.agent-source-details {
  max-width: 660px;
  margin-top: 12px;
  border-top: 1px solid var(--agent-border);
  border-bottom: 1px solid var(--agent-border);
}

.agent-source-details summary {
  padding: 9px 0;
  color: #7d7f86;
  cursor: pointer;
  font-size: 10px;
  list-style-position: inside;
}

.agent-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  padding: 1px 0 10px;
}

.agent-source-grid > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  font-size: 10px;
}

.agent-source-grid dt {
  color: #9a9ca2;
}

.agent-source-grid dd {
  margin: 0;
  color: #55575d;
}

/* Existing Markdown and report renderers are retained as content primitives. */
.agent-message-body .chat-markdown,
.agent-message-body .chat-assistant-text {
  max-width: 70ch;
  color: #292a2e;
  font-size: 13px;
  line-height: 1.78;
}

.agent-message-body .chat-markdown p {
  margin: 0 0 11px;
}

.agent-message-body .chat-markdown h1,
.agent-message-body .chat-markdown h2,
.agent-message-body .chat-markdown h3,
.agent-message-body .chat-markdown h4 {
  color: #25262a;
  letter-spacing: -0.02em;
}

.agent-message-body .chat-markdown h1 { font-size: 18px; }
.agent-message-body .chat-markdown h2 { font-size: 16px; }
.agent-message-body .chat-markdown h3,
.agent-message-body .chat-markdown h4 { font-size: 14px; }

.agent-message-body .chat-markdown blockquote {
  margin: 11px 0;
  padding: 2px 0 2px 12px;
  border: 0;
  border-left: 2px solid #dedfe2;
  border-radius: 0;
  background: transparent;
  color: #686a71;
}

.agent-message-body .chat-markdown pre,
.agent-message-body .chat-markdown-table-wrap {
  border-color: var(--agent-border);
  border-radius: 10px;
  background: #f8f8f9;
}

.agent-message-body .chat-material-summary {
  border-color: var(--agent-border);
  border-radius: 11px;
  background: #f8f9fb;
}

/* Composer */
.agent-composer-zone {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 24px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff 30%);
}

.agent-composer-frame {
  width: min(100%, 780px);
  margin: 0 auto;
}

.agent-composer {
  position: relative;
  padding: 9px 10px 8px;
  border: 1px solid var(--agent-border-strong);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--agent-shadow-float);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.agent-composer:focus-within {
  border-color: rgb(62 99 221 / 25%);
  box-shadow: 0 20px 52px rgb(24 24 27 / 11%), 0 0 0 3px rgb(62 99 221 / 5%);
}

.agent-composer.is-disabled {
  opacity: .76;
}

.agent-composer-input {
  display: block;
  width: 100%;
  min-height: 32px;
  max-height: 160px;
  resize: none;
  overflow-y: auto;
  padding: 5px 7px 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #292a2e;
  font-size: 13px;
  line-height: 1.6;
}

.agent-composer-input::-moz-placeholder {
  color: #a2a4aa;
}

.agent-composer-input::placeholder {
  color: #a2a4aa;
}

.agent-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-composer-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.agent-composer-tool {
  width: 30px;
  height: 30px;
}

.agent-product-picker {
  position: relative;
}

.agent-product-trigger {
  display: flex;
  max-width: 220px;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #898b92;
  cursor: pointer;
  font-size: 10px;
}

.agent-product-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-product-trigger:hover,
.agent-product-trigger.has-value {
  background: #f5f5f6;
  color: #5d5f66;
}




.agent-product-popover {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 9px);
  left: 0;
  width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--agent-border-strong);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(24 24 27 / 14%);
}

.agent-product-search {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid var(--agent-border);
  color: #95979d;
}

.agent-product-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333438;
  font-size: 11px;
}

.agent-product-search input::-moz-placeholder {
  color: #a6a8ad;
}

.agent-product-search input::placeholder {
  color: #a6a8ad;
}

.agent-product-clear {
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: #8b8d94;
  cursor: pointer;
  font-size: 9px;
}

.agent-product-options {
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
}

.agent-product-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #45464b;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.agent-product-option:hover,
.agent-product-option.is-selected {
  background: #f5f5f6;
}

.agent-product-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-product-option small {
  flex: 0 0 auto;
  color: #a2a4aa;
  font-size: 9px;
}

.agent-product-state {
  padding: 16px 10px;
  color: #92949b;
  font-size: 10px;
  text-align: center;
}

.agent-product-state.is-error {
  color: var(--agent-danger);
}

.agent-send-button {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #25262a;
  color: #fff;
  cursor: pointer;
  transition: opacity 130ms ease, transform 100ms ease, background-color 130ms ease;
}

.agent-send-button:hover:not(:disabled) {
  background: #111215;
}

.agent-send-button:active:not(:disabled) {
  transform: scale(.95);
}

.agent-send-button:disabled,
.agent-icon-button:disabled,
.agent-product-trigger:disabled {
  cursor: default;
  opacity: .38;
}

.agent-composer-files {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 3px 7px;
  scrollbar-width: thin;
}

.agent-file-chip {
  position: relative;
  display: flex;
  min-width: 175px;
  max-width: 260px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 7px 7px 7px 9px;
  border: 1px solid var(--agent-border);
  border-radius: 10px;
  background: #fafafa;
}

.agent-file-chip.is-error {
  border-color: rgb(180 35 24 / 16%);
  background: #fff8f7;
}

.agent-file-chip-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.agent-file-name {
  overflow: hidden;
  color: #505158;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-file-meta {
  overflow: hidden;
  color: #9a9ca2;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-file-remove {
  width: 25px;
  height: 25px;
}

.agent-file-retry {
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--agent-danger);
  cursor: pointer;
  font-size: 9px;
}

.agent-file-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--agent-accent);
  transition: width 120ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .agent-icon-button,
  .agent-new-thread,
  .agent-conversation-item,
  .agent-suggestion,
  .agent-execution-trigger svg:last-child,
  .agent-composer,
  .agent-send-button,
  .agent-file-progress {
    transition: none;
  }

  .agent-execution-spinner {
    animation-duration: 1.8s;
  }

  .agent-message-scroll {
    scroll-behavior: auto;
  }
}

@media (max-width: 900px) {
  .agent-sidebar {
    flex-basis: 220px;
    width: 220px;
  }

  .agent-message-stack {
    padding-inline: 22px;
  }

  .agent-composer-zone {
    padding-inline: 18px;
  }
}

/* Narrow windows adapt structure instead of scaling the desktop UI down. */
@media (max-width: 720px) {
  .agent-shell {
    flex-direction: column;
  }

  .agent-sidebar {
    display: flex;
    width: 100%;
    height: 52px;
    flex: 0 0 52px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    box-shadow: inset 0 -1px 0 var(--agent-border);
  }

  .agent-sidebar-brand {
    min-height: auto;
    flex: 0 0 auto;
    padding: 0;
  }

  .agent-sidebar-brand > span,
  .agent-new-thread,
  .agent-sidebar-section-label,
  .agent-sidebar-audit {
    display: none;
  }

  .agent-new-thread-button {
    display: grid;
    margin-left: 0;
  }

  .agent-conversation-nav {
    min-width: 0;
    flex: 1;
  }

  .agent-conversation-list {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .agent-conversation-item {
    width: auto;
    min-width: 128px;
    max-width: 180px;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 4px 8px;
  }

  .agent-conversation-item > svg,
  .agent-conversation-meta {
    display: none;
  }

  .agent-conversation-title {
    font-size: 10px;
  }

  .agent-main {
    min-height: 0;
  }

  .agent-topbar {
    min-height: 49px;
    padding: 6px 14px;
  }

  .agent-topbar h2 {
    max-width: 48vw;
    font-size: 11px;
  }

  .agent-context-pill {
    max-width: 30vw;
    font-size: 9px;
  }

  .agent-topbar-audit {
    display: flex;
  }

  .agent-empty-state {
    top: 42%;
  }

  .agent-empty-state h1 {
    font-size: 22px;
  }

  .agent-empty-actions {
    width: 100%;
    gap: 7px;
  }

  .agent-suggestion {
    min-height: 38px;
  }

  .agent-message-stack {
    gap: 25px;
    padding: 25px 14px 42px;
  }

  .agent-message-assistant {
    gap: 9px;
  }

  .agent-message-avatar {
    width: 25px;
    height: 25px;
  }

  .agent-user-bubble {
    max-width: 88%;
  }

  .agent-source-grid {
    grid-template-columns: 1fr;
  }

  .agent-composer-zone {
    padding: 7px 10px max(10px, env(safe-area-inset-bottom));
  }

  .agent-composer {
    border-radius: 15px;
  }

  .agent-product-trigger {
    max-width: 150px;
  }
}

@media (max-width: 430px) {
  .agent-sidebar-brand-mark {
    width: 24px;
    height: 24px;
  }

  .agent-conversation-item {
    min-width: 112px;
    max-width: 148px;
  }

  .agent-topbar-title {
    gap: 5px;
  }

  .agent-context-pill {
    display: none;
  }

  .agent-topbar-audit span {
    display: none;
  }

  .agent-topbar-audit {
    width: 31px;
    height: 31px;
    justify-content: center;
    padding: 0;
  }

  .agent-empty-state {
    width: calc(100% - 28px);
  }

  .agent-empty-actions {
    flex-direction: column;
  }

  .agent-suggestion {
    width: 100%;
    justify-content: center;
  }

  .agent-message-stack {
    padding-inline: 11px;
  }

  .agent-message-avatar {
    display: none;
  }

  .agent-user-bubble {
    max-width: 92%;
  }

  .agent-message-files {
    flex-direction: column;
  }

  .agent-message-file {
    width: 100%;
    max-width: none;
  }

  .agent-composer-zone {
    padding-inline: 7px;
  }

  .agent-product-trigger {
    max-width: 122px;
  }
}


/* /@fs//app/apps/console/src/components/chat/AuditInspector.css */
.audit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
  background: rgb(15 23 42 / 34%);
  backdrop-filter: blur(2px);
}

.audit-inspector {
  width: min(760px, 48vw);
  min-width: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid rgb(15 23 42 / 8%);
  box-shadow: -24px 0 70px rgb(15 23 42 / 14%);
}

.audit-inspector-header {
  min-height: 72px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgb(15 23 42 / 8%);
}

.audit-inspector-title,
.audit-inspector-actions,
.audit-inline-status,
.audit-section-heading,
.audit-rule-heading,
.audit-risk-heading,
.audit-tool-call > summary,
.audit-evidence-row > summary {
  display: flex;
  align-items: center;
}

.audit-inspector-title { gap: 10px; }
.audit-inspector-title h2,
.audit-section-heading h3 { margin: 0; color: #18181b; }
.audit-inspector-title h2 { font-size: 17px; line-height: 1.3; }
.audit-inspector-title p,
.audit-section-heading p,
.audit-rule-heading span,
.audit-attempt span,
.audit-tool-call small,
.audit-evidence-row small,
.audit-risk-heading p {
  margin: 3px 0 0;
  color: #71717a;
  font-size: 12px;
  line-height: 1.5;
}
.audit-inspector-actions { gap: 8px; }

.audit-secondary-button,
.audit-icon-button,
.audit-tabs button,
.audit-filter button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.audit-secondary-button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(24 24 27 / 10%);
  border-radius: 9px;
  background: #fff;
  color: #27272a;
  font-size: 13px;
}
.audit-secondary-button:hover { background: #f7f7f8; }
.audit-secondary-button:disabled { opacity: .45; cursor: default; }

.audit-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  color: #71717a;
}
.audit-icon-button:hover { background: #f4f4f5; color: #18181b; }

.audit-tabs {
  display: flex;
  gap: 4px;
  padding: 9px 18px;
  border-bottom: 1px solid rgb(15 23 42 / 7%);
  background: #fff;
}
.audit-tabs button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  font-size: 13px;
}
.audit-tabs button:hover { background: #f7f7f8; color: #27272a; }
.audit-tabs button.is-active { background: #f1f2f4; color: #18181b; font-weight: 600; }
.audit-tabs button span { margin-left: 4px; color: #a1a1aa; font-size: 11px; }

.audit-inspector-body {
  flex: 1;
  overflow: auto;
  padding: 22px 22px 44px;
}

.audit-section { margin-bottom: 28px; }
.audit-section-heading { justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.audit-section-heading h3 { font-size: 14px; }

.audit-attempt-list,
.audit-tool-list,
.audit-rule-list,
.audit-risk-list,
.audit-evidence-list { display: grid; gap: 8px; }

.audit-attempt {
  min-height: 58px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgb(24 24 27 / 8%);
  border-radius: 11px;
  background: #fff;
}
.audit-attempt.is-current { background: #f8fafc; border-color: rgb(37 99 235 / 16%); }
.audit-attempt > div:first-child { display: grid; gap: 2px; }
.audit-attempt strong { font-size: 13px; color: #27272a; }
.audit-inline-status { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.audit-status,
.audit-quiet-badge,
.audit-reasons span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.audit-status { background: #f4f4f5; color: #52525b; }
.audit-status.is-completed,
.audit-status.is-success { background: #edf8f0; color: #27733a; }
.audit-status.is-failed { background: #fff0ef; color: #b42318; }
.audit-status.is-running { background: #eff6ff; color: #2563eb; }
.audit-status.is-high { background: #fff0ef; color: #b42318; }
.audit-status.is-medium { background: #fff7e8; color: #a15c00; }
.audit-quiet-badge { background: #f4f4f5; color: #71717a; }

.audit-note {
  padding: 11px 13px;
  margin-bottom: 12px;
  display: grid;
  gap: 3px;
  border: 1px solid rgb(24 24 27 / 8%);
  border-radius: 10px;
  background: #f8fafc;
  color: #52525b;
  font-size: 12px;
  line-height: 1.55;
}
.audit-note strong { color: #27272a; }
.audit-note.is-warning { background: #fffaf0; border-color: rgb(180 105 0 / 14%); }
.audit-note.is-error { background: #fff5f4; border-color: rgb(180 35 24 / 14%); }
.audit-note.is-success { background: #f2faf4; border-color: rgb(39 115 58 / 14%); }

.audit-empty {
  padding: 18px 4px;
  color: #a1a1aa;
  font-size: 13px;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.audit-summary-grid > div {
  padding: 14px;
  display: grid;
  gap: 3px;
  border: 1px solid rgb(24 24 27 / 7%);
  border-radius: 11px;
  background: #fafafa;
}
.audit-summary-grid strong { font-size: 20px; color: #18181b; }
.audit-summary-grid span { font-size: 11px; color: #71717a; }

.audit-filter { display: inline-flex; gap: 3px; padding: 3px; border-radius: 9px; background: #f4f4f5; }
.audit-filter button { padding: 5px 8px; border-radius: 7px; background: transparent; color: #71717a; font-size: 11px; }
.audit-filter button.is-active { background: #fff; color: #18181b; box-shadow: 0 1px 2px rgb(0 0 0 / 6%); }

.audit-tool-call,
.audit-evidence-row,
.audit-technical-details {
  border: 1px solid rgb(24 24 27 / 8%);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.audit-tool-call > summary,
.audit-evidence-row > summary {
  justify-content: space-between;
  gap: 16px;
  padding: 12px 13px;
  cursor: pointer;
  list-style: none;
}
.audit-tool-call > summary::-webkit-details-marker,
.audit-evidence-row > summary::-webkit-details-marker { display: none; }
.audit-tool-call > summary > span:first-child,
.audit-evidence-row > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.audit-tool-call strong { color: #27272a; font-size: 13px; }
.audit-tool-detail { padding: 0 13px 13px; display: grid; gap: 8px; }
.audit-tool-detail details > summary,
.audit-technical-details > summary { cursor: pointer; color: #71717a; font-size: 12px; }

.audit-code-block,
.audit-code-list,
.audit-technical-details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}
.audit-code-block {
  max-height: 300px;
  overflow: auto;
  padding: 10px;
  margin: 6px 0 0;
  border-radius: 8px;
  background: #f6f7f8;
  color: #3f3f46;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.audit-technical-details { margin-top: 10px; padding: 10px 12px; background: #fafafa; }
.audit-technical-details > code,
.audit-code-list code { display: block; margin-top: 7px; color: #71717a; overflow-wrap: anywhere; }
.audit-code-list { display: grid; gap: 5px; }

.audit-rule-card,
.audit-risk-item {
  padding: 15px;
  border: 1px solid rgb(24 24 27 / 8%);
  border-radius: 12px;
  background: #fff;
}
.audit-rule-heading,
.audit-risk-heading { align-items: flex-start; justify-content: space-between; gap: 18px; }
.audit-rule-heading > div,
.audit-risk-heading > div { min-width: 0; }
.audit-rule-heading strong,
.audit-risk-heading strong { color: #18181b; font-size: 13px; }
.audit-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.audit-reasons span { background: #f4f4f5; color: #52525b; }

.audit-risk-heading p { max-width: 560px; margin-top: 6px; color: #52525b; font-size: 13px; }
.audit-risk-meta { display: flex; gap: 10px; margin-top: 10px; color: #71717a; font-size: 11px; }
.audit-evidence-list { margin-top: 12px; }
.audit-evidence-row > summary { align-items: center; }
.audit-evidence-row > summary > span:first-child { color: #27272a; font-size: 12px; }
.audit-evidence-row > summary small { flex: 1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-evidence-row > summary em { color: #a15c00; font-size: 11px; font-style: normal; }
.audit-evidence-detail { padding: 0 13px 13px; }

.audit-definition-list { display: grid; gap: 0; margin: 8px 0 0; }
.audit-definition-list > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgb(24 24 27 / 6%);
}
.audit-definition-list dt { color: #a1a1aa; font-size: 11px; }
.audit-definition-list dd { margin: 0; color: #3f3f46; font-size: 12px; overflow-wrap: anywhere; }
.audit-definition-list.is-technical dd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }

.audit-file-list { display: grid; gap: 6px; }
.audit-file-list p { margin: 0 0 4px; }
.audit-file-row { display: flex; justify-content: space-between; gap: 12px; }
.audit-file-row small { color: #a1a1aa; }

.audit-loading { display: grid; gap: 9px; }
.audit-loading span { display: block; height: 46px; border-radius: 10px; background: linear-gradient(90deg, #f4f4f5 25%, #fafafa 50%, #f4f4f5 75%); background-size: 200% 100%; animation: audit-loading 1.25s linear infinite; }
@keyframes audit-loading { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .audit-inspector { width: min(680px, 88vw); min-width: 0; }
}

@media (max-width: 640px) {
  .audit-inspector { width: 100%; }
  .audit-inspector-header { padding: 16px; }
  .audit-tabs { overflow-x: auto; padding-inline: 12px; }
  .audit-inspector-body { padding: 18px 16px 36px; }
  .audit-summary-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .audit-loading span { animation: none; }
}


/* /@fs//app/apps/console/src/components/chat/MarkdownMessage.css */
/* Shared by live replies, restored replies, page readings and visual lookbacks. */
.chat-markdown {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.chat-markdown :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.4em 0 0.6em;
  font-weight: 650;
  line-height: 1.4;
}

.chat-markdown :is(h5, h6) { font-size: 1em; }
.chat-markdown > :first-child { margin-top: 0; }
.chat-markdown > :last-child { margin-bottom: 0; }
.chat-markdown :is(ul, ol) { margin: 0.6em 0 1em; padding-left: 1.6em; }
.chat-markdown ul { list-style: disc outside; }
.chat-markdown ol { list-style: decimal outside; }
.chat-markdown ul ul { list-style-type: circle; }
.chat-markdown li { margin: 0.3em 0; }
.chat-markdown li > :is(ul, ol) { margin: 0.3em 0; }
.chat-markdown li > p { margin: 0.4em 0; }
.chat-markdown .task-list-item { list-style: none; }
.chat-markdown .task-list-item > input { margin: 0 0.5em 0 -1.4em; accent-color: var(--agent-text, #25262a); }
.chat-markdown strong { font-weight: 650; }
.chat-markdown em { font-style: italic; }
.chat-markdown del { text-decoration: line-through; }
.chat-markdown a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.chat-markdown :is(a, [tabindex]):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.chat-markdown :not(pre) > code { padding: 0.1em 0.3em; border-radius: 4px; background: var(--agent-hover, #f3f3f3); }
.chat-markdown pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 8px;
  white-space: pre;
  overflow-wrap: normal;
}
.chat-markdown pre code { padding: 0; background: transparent; }
.chat-markdown code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.chat-markdown hr { margin: 1.5em 0; border: 0; border-top: 1px solid var(--agent-border, #dedfe2); }
.chat-markdown-table-wrap { max-width: 100%; overflow-x: auto; margin: 1em 0; }
.chat-markdown table { width: 100%; border-collapse: collapse; }
.chat-markdown :is(th, td) {
  min-width: 6em;
  padding: 9px 12px;
  border: 1px solid var(--agent-border, #dedfe2);
  vertical-align: top;
}
.chat-markdown th { font-weight: 650; background: var(--agent-hover, #f3f3f3); }


/* /@fs//app/apps/console/src/components/chat/MaterialReviewWorkspace.css */
.material-review-workspace {
  width: 100%;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.material-review-group,
.material-review-chat-pane,
.material-review-chat-pane > .agent-shell,
.material-preview-pane {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.material-review-chat-pane {
  overflow: hidden;
  background: #fff;
}

.material-review-separator {
  position: relative;
  z-index: 12;
  display: flex;
  width: 9px;
  flex: 0 0 9px;
  align-items: center;
  justify-content: center;
  background: #f4f4f5;
  cursor: col-resize;
  outline: none;
  touch-action: none;
}

.material-review-separator::before {
  content: "";
  position: absolute;
  inset: 0 4px;
  background: rgb(24 24 27 / 10%);
  transition: background-color .14s ease, box-shadow .14s ease;
}

.material-review-separator:hover::before,
.material-review-separator:focus-visible::before,
.material-review-separator[data-separator="active"]::before {
  background: rgb(49 94 251 / 62%);
  box-shadow: 0 0 0 2px rgb(49 94 251 / 10%);
}

.material-review-separator > span {
  position: relative;
  z-index: 1;
  width: 3px;
  height: 34px;
  border-radius: 99px;
  background: rgb(24 24 27 / 18%);
  pointer-events: none;
}

.material-preview-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgb(24 24 27 / 7%);
  background: #eef0f3;
}

.material-preview-header {
  display: flex;
  min-height: 55px;
  flex: 0 0 55px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 15px;
  border-bottom: 1px solid rgb(24 24 27 / 9%);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(16px);
}

.material-preview-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.material-preview-title strong {
  min-width: 0;
  overflow: hidden;
  color: #27272a;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-preview-title span {
  flex: 0 0 auto;
  color: #8b8d94;
  font-size: 11px;
}

.material-preview-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
}

.material-preview-close:hover {
  background: rgb(24 24 27 / 6%);
  color: #18181b;
}

.material-preview-close:focus-visible {
  outline: 2px solid rgb(49 94 251 / 45%);
  outline-offset: 2px;
}

.material-preview-body {
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: #e8eaed;
}

.material-preview-scroll {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  box-sizing: border-box;
  overscroll-behavior: contain;
  background: #e8eaed;
}

.material-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgb(24 24 27 / 9%);
  background: #fff;
  color: #52525b;
  font-size: 12px;
}

.material-preview-toolbar button,
.material-preview-toolbar input,
.material-preview-error button {
  min-height: 32px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fff;
  color: #27272a;
  padding: 3px 8px;
  font: inherit;
}

.material-preview-toolbar button,
.material-preview-error button { cursor: pointer; }
.material-preview-toolbar button:disabled { opacity: .4; cursor: default; }
.material-preview-toolbar button:hover:not(:disabled) { background: #f4f4f5; }
.material-preview-toolbar :focus-visible { outline: 2px solid #315efb; outline-offset: 2px; }
.material-preview-toolbar form { display: flex; align-items: center; gap: 4px; }
.material-preview-toolbar input { width: 52px; }
.material-preview-zoom { min-width: 36px; text-align: center; }
.material-preview-error button { margin-top: 14px; }

.material-preview-sheet {
  position: relative;
  margin-inline: auto;
  flex: none;
  background: white;
  box-shadow: 0 2px 12px rgb(24 24 27 / 12%);
}

.material-preview-surface {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.material-preview-surface > img {
  display: block;
  width: 100%;
  height: 100%;
}

.material-preview-highlights {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.material-preview-highlight {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #d97706;
  background: rgb(250 204 21 / 16%);
}

.material-preview-status {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(244 244 245 / 70%);
  color: #71717a;
  font-size: 12px;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

.material-preview-error {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(calc(100% - 48px), 430px);
  flex-direction: column;
  align-items: center;
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(180 35 24 / 12%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgb(24 24 27 / 12%);
  text-align: center;
}

.material-preview-error strong {
  color: #27272a;
  font-size: 14px;
}

.material-preview-error span {
  margin-top: 7px;
  color: #71717a;
  font-size: 12px;
  line-height: 1.6;
}

.material-preview-error a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid rgb(24 24 27 / 10%);
  border-radius: 9px;
  color: #27272a;
  font-size: 12px;
  text-decoration: none;
}

.material-preview-error a:hover {
  background: #f7f7f8;
}

button.agent-message-file {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.agent-message-file:hover:not(:disabled) {
  border-color: rgb(24 24 27 / 14%);
  background: rgb(255 255 255 / 88%);
}

button.agent-message-file:focus-visible {
  outline: 2px solid rgb(49 94 251 / 42%);
  outline-offset: 2px;
}

button.agent-message-file:disabled {
  cursor: wait;
  opacity: .72;
}

.agent-message-file-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 10px;
}

.material-review-workspace.is-compact .material-review-separator {
  width: 100%;
  height: 9px;
  flex: 0 0 9px;
  cursor: row-resize;
}

.material-review-workspace.is-compact .material-review-separator::before {
  inset: 4px 0;
}

.material-review-workspace.is-compact .material-review-separator > span {
  width: 34px;
  height: 3px;
}

.material-review-workspace.is-compact .material-preview-pane {
  border-top: 1px solid rgb(24 24 27 / 7%);
  border-left: 0;
}


/* /@fs//app/apps/console/src/components/chat/AssessmentReport.css */
.agent-report {
  width: min(100%, 1020px);
  border: 1px solid rgb(24 24 27 / 7%);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.agent-report-header {
  padding: 28px 30px 24px;
  border-bottom: 1px solid rgb(24 24 27 / 7%);
}

.agent-report-title-row,
.agent-report-section-heading,
.agent-report-finding-heading,
.agent-report-material > header,
.agent-report-evidence > header,
.agent-report-footer,
.agent-report-panel > header,
.agent-report-panel-actions,
.agent-report-fact,
.agent-report-fact-actions {
  display: flex;
  align-items: center;
}

.agent-report-title-row,
.agent-report-section-heading,
.agent-report-finding-heading,
.agent-report-material > header,
.agent-report-evidence > header,
.agent-report-fact { justify-content: space-between; gap: 18px; }

.agent-report-title-row h2 {
  margin: 0;
  color: #18181b;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.agent-report-title-row p {
  margin: 6px 0 0;
  color: #71717a;
  font-size: 13px;
}

.agent-report-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 16px;
  color: #52525b;
  font-size: 12px;
}
.agent-report-summary-line span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px 3px 0;
  border-radius: 50%;
  background: #d4d4d8;
}

.agent-report-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.agent-report-badge.is-success { background: #edf8f0; color: #27733a; }
.agent-report-badge.is-warning { background: #fff7e8; color: #a15c00; }
.agent-report-badge.is-danger { background: #fff0ef; color: #b42318; }
.agent-report-badge.is-ai { background: var(--agent-ai-badge-background); color: var(--agent-ai-badge-text); }

.agent-report-details {
  margin-top: 13px;
  color: #71717a;
  font-size: 11px;
}
.agent-report-details summary { cursor: pointer; }
.agent-report-details p { margin: 7px 0 0; }
.agent-report-details code { display: block; margin-top: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.agent-report-details ul { margin: 8px 0 0; padding-left: 18px; }
.agent-report-details li + li { margin-top: 4px; }

.agent-report-section {
  padding: 24px 30px;
  border-bottom: 1px solid rgb(24 24 27 / 6%);
}
.agent-report-section-heading { margin-bottom: 13px; }
.agent-report-section-heading h3 { margin: 0; color: #18181b; font-size: 14px; }
.agent-report-section-heading > span { color: #a1a1aa; font-size: 11px; }

.agent-report-executive {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f7f8fa;
  color: #3f3f46;
  font-size: 14px;
  line-height: 1.75;
}

.agent-report-findings { display: grid; gap: 0; border-top: 1px solid rgb(24 24 27 / 7%); }
.agent-report-finding { padding: 16px 2px 17px; border-bottom: 1px solid rgb(24 24 27 / 7%); }
.agent-report-finding.is-high,
.agent-report-finding.is-medium { padding-left: 14px; }
.agent-report-finding.is-high { box-shadow: inset 2px 0 0 rgb(180 35 24 / 34%); }
.agent-report-finding.is-medium { box-shadow: inset 2px 0 0 rgb(181 106 0 / 30%); }
.agent-report-finding-heading strong { color: #18181b; font-size: 14px; }
.agent-report-finding > p { margin: 9px 0 0; color: #52525b; font-size: 13px; line-height: 1.68; }
.agent-report-action { display: grid; grid-template-columns: 44px 1fr; gap: 8px; margin-top: 9px; }
.agent-report-action span { color: #a1a1aa; font-size: 11px; }
.agent-report-action p { margin: 0; color: #3f3f46; font-size: 13px; line-height: 1.65; }

.agent-report-text-action {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.agent-report-text-action:hover { text-decoration: underline; }

.agent-report-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agent-report-fact-group { padding: 15px 16px; border: 1px solid rgb(24 24 27 / 7%); border-radius: 12px; }
.agent-report-fact-group h4 { margin: 0 0 9px; color: #3f3f46; font-size: 12px; }
.agent-report-fact { padding: 9px 0; border-top: 1px solid rgb(24 24 27 / 6%); }
.agent-report-fact.is-warning { margin-inline: -8px; padding-inline: 8px; border-left: 3px solid #d97706; background: #fffbeb; }
.agent-report-fact.is-conflict { margin-inline: -8px; padding-inline: 8px; border-left: 3px solid #dc2626; background: #fef2f2; }
.agent-report-fact:first-of-type { border-top: 0; }
.agent-report-fact > div:first-child { min-width: 0; display: grid; gap: 3px; }
.agent-report-fact strong { color: #3f3f46; font-size: 12px; }
.agent-report-fact > div:first-child span { color: #71717a; font-size: 12px; line-height: 1.5; }
.agent-report-fact-actions { gap: 7px; }
.agent-report-fact-actions .agent-report-text-action { margin: 0; }

.agent-report-materials { display: grid; gap: 10px; }
.agent-report-material { padding: 17px 18px; border: 1px solid rgb(24 24 27 / 7%); border-radius: 12px; transition: border-color 140ms ease, box-shadow 140ms ease; }
.agent-report-material.is-located { border-color: rgb(37 99 235 / 20%); box-shadow: inset 0 0 0 1px rgb(37 99 235 / 6%); }
.agent-report-material-title { display: grid; gap: 3px; }
.agent-report-material-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.agent-report-material > header strong { color: #18181b; font-size: 13px; }
.agent-report-material > header span { color: #a1a1aa; font-size: 11px; }
.agent-report-material-summary { margin-top: 12px; padding: 14px 15px; border-radius: 10px; background: #f7f8fa; }
.agent-report-material-headline { margin: 11px 0 0; color: #3f3f46; font-size: 13px; line-height: 1.65; }
.agent-report-material-summary .agent-report-material-headline { margin-top: 0; }
.agent-report-material-summary small { display: block; margin-top: 9px; color: #a15c00; font-size: 11px; }
.agent-report-portrait { margin-top: 14px; color: var(--agent-body, #303030); }
.agent-report-portrait h4 { margin: 0; font-size: 13px; }
.agent-report-portrait-row { padding: 10px 0; border-bottom: 1px solid var(--agent-border, #e5e5e5); }
.agent-report-portrait-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.agent-report-portrait-heading strong { font-size: 13px; overflow-wrap: anywhere; }
.agent-report-portrait p { margin: 6px 0; font-size: 13px; line-height: 1.65; }
.agent-report-portrait .agent-report-text-action { margin: 0; }
.agent-report-material { min-width: 0; }
.agent-report-material > header { flex-wrap: wrap; }
.agent-report-material-title { min-width: 0; overflow-wrap: anywhere; }
.agent-report-observations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 12px; }
.agent-report-observations span { color: #a1a1aa; font-size: 10px; }
.agent-report-observations p { margin: 3px 0 0; color: #52525b; font-size: 12px; line-height: 1.6; }
.agent-report-material-field-list { margin: 12px 0 0; }
.agent-report-material-field {
  display: grid;
  grid-template-columns: minmax(90px, .45fr) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 9px 0;
  border-top: 1px solid var(--agent-border, #e8e8e8);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.agent-report-material-field dt { color: var(--agent-muted, #6f6f6f); }
.agent-report-material-field dd { min-width: 0; margin: 0; color: var(--agent-body, #303030); }
.agent-report-material-field-value { white-space: pre-wrap; }
.agent-report-material-field-source { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 3px; color: var(--agent-muted, #6f6f6f); font-size: 11px; }
.agent-report-material-field-source .agent-report-text-action { margin: 0; font-size: inherit; }
.agent-report-material-field.is-review .agent-report-material-field-notice { color: #93370d; background: #fffaeb; padding: 0 5px; border-radius: 4px; }
.agent-report-material-field.is-conflict .agent-report-material-field-notice { color: #b42318; background: #fef3f2; padding: 0 5px; border-radius: 4px; }
.agent-report-material-more { color: var(--agent-muted, #6f6f6f); }
.agent-report-material-more > summary { min-height: 24px; line-height: 24px; }
.agent-report-material-more > summary:focus-visible { outline: 2px solid var(--agent-border-strong, #777); outline-offset: 3px; }
@media (max-width: 600px) {
  .agent-report-material-field { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
.agent-report-material-actions { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.agent-report-material-actions .agent-report-text-action { margin: 0; }
.agent-report-locate-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgb(24 24 27 / 9%);
  border-radius: 8px;
  background: #fff;
  color: #52525b;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.agent-report-locate-action:hover:not(:disabled) { background: #f7f7f8; border-color: rgb(24 24 27 / 15%); color: #27272a; }
.agent-report-locate-action.is-active { border-color: rgb(37 99 235 / 20%); background: #eff6ff; color: #1d4ed8; }
.agent-report-locate-action:disabled { opacity: .5; cursor: default; }
.agent-report-inline-warning { margin-top: 10px; color: #a15c00; font-size: 11px; line-height: 1.5; }

.agent-report-risk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.agent-report-risk { padding: 12px 0; border-top: 1px solid rgb(24 24 27 / 7%); }
.agent-report-risk strong { color: #3f3f46; font-size: 12px; }
.agent-report-risk p { margin: 5px 0 0; color: #71717a; font-size: 12px; line-height: 1.6; }

.agent-report-footer {
  justify-content: flex-end;
  gap: 18px;
  padding: 14px 30px;
}
.agent-report-footer .agent-report-text-action { margin: 0; color: #3f3f46; }

.agent-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  background: rgb(15 23 42 / 30%);
  backdrop-filter: blur(2px);
}
.agent-report-panel {
  width: min(720px, 48vw);
  min-width: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid rgb(24 24 27 / 7%);
  box-shadow: -24px 0 70px rgb(15 23 42 / 14%);
}
.agent-report-panel > header {
  min-height: 64px;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(24 24 27 / 7%);
}
.agent-report-panel > header h3 { margin: 0; color: #18181b; font-size: 15px; }
.agent-report-panel > header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
}
.agent-report-panel > header button:hover { background: #f4f4f5; color: #18181b; }
.agent-report-panel-body { flex: 1; overflow: auto; padding: 20px 20px 40px; }

.agent-report-note { padding: 10px 12px; margin-bottom: 12px; border: 1px solid rgb(24 24 27 / 7%); border-radius: 9px; background: #f8fafc; color: #52525b; font-size: 12px; }
.agent-report-note.is-warning { background: #fffaf0; border-color: rgb(180 105 0 / 14%); }
.agent-report-evidence-list { display: grid; gap: 9px; }
.agent-report-evidence { padding: 14px; border: 1px solid rgb(24 24 27 / 7%); border-radius: 11px; }
.agent-report-evidence > header strong { font-size: 13px; }
.agent-report-evidence dl { margin: 10px 0 0; }
.agent-report-evidence dl > div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid rgb(24 24 27 / 6%); }
.agent-report-evidence dt { color: #a1a1aa; font-size: 11px; }
.agent-report-evidence dd { margin: 0; color: #3f3f46; font-size: 12px; overflow-wrap: anywhere; }
.agent-report-panel-actions { flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.agent-report-panel-actions button { min-height: 34px; padding: 0 11px; border: 1px solid rgb(24 24 27 / 9%); border-radius: 9px; background: #fff; color: #27272a; font-size: 12px; cursor: pointer; }
.agent-report-panel-actions button:hover { background: #f7f7f8; }
.agent-report-panel-actions button:disabled { opacity: .5; cursor: default; }
.agent-report-empty { padding: 14px 0; color: #a1a1aa; font-size: 12px; }
.agent-report-markdown { width: min(100%, 760px); }

@media (max-width: 900px) {
  .agent-report-facts-grid,
  .agent-report-risk-list { grid-template-columns: 1fr; }
  .agent-report-panel { width: min(680px, 88vw); min-width: 0; }
}

@media (max-width: 640px) {
  .agent-report-header,
  .agent-report-section { padding-inline: 18px; }
  .agent-report-footer { padding-inline: 18px; }
  .agent-report-title-row { align-items: flex-start; }
  .agent-report-title-row h2 { font-size: 20px; }
  .agent-report-observations { grid-template-columns: 1fr; }
  .agent-report-panel { width: 100%; }
}


/* /@fs//app/apps/console/src/components/chat/ChatWhiteTheme.css */
:root {
  --agent-white: #ffffff;
  --agent-sidebar-bg: #f8f8f8;
  --agent-hover: #f1f1f1;
  --agent-active: #ececec;
  --agent-text: #171717;
  --agent-body: #303030;
  --agent-muted: #6f6f6f;
  --agent-subtle: #999999;
  --agent-border: #e8e8e8;
  --agent-border-strong: #dddddd;
  --agent-soft: #f7f7f7;
  --agent-control: #f4f4f4;
  --agent-reading-width: 960px;
  --agent-sidebar-width: 260px;
}

/* White workspace --------------------------------------------------------- */
.material-review-workspace,
.material-review-chat-pane,
.agent-shell,
.agent-main,
.agent-content,
.agent-thread,
.agent-message-scroll {
  background: var(--agent-white);
}

.agent-shell {
  display: flex;
  width: 100%;
  height: 100%;
  color: var(--agent-text);
}

.agent-main {
  min-width: 0;
  min-height: 0;
  flex: 1;
}

/* Sidebar ----------------------------------------------------------------- */
.agent-sidebar {
  width: var(--agent-sidebar-width);
  flex: 0 0 var(--agent-sidebar-width);
  padding: 8px 10px 12px;
  border-right: 1px solid #eeeeee;
  background: var(--agent-sidebar-bg);
}

.agent-sidebar-brand {
  min-height: 42px;
  gap: 10px;
  padding: 3px 5px 7px;
  color: var(--agent-text);
  font-size: 15px;
  font-weight: 650;
}

.agent-sidebar-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #202020;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.agent-new-thread,
.agent-sidebar-audit,
.agent-conversation-item {
  border: 0;
  box-shadow: none;
}

.agent-new-thread {
  min-height: 42px;
  margin: 3px 0 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: transparent;
  color: var(--agent-text);
  font-size: 14px;
  font-weight: 560;
}

.agent-new-thread:hover {
  background: var(--agent-hover);
}

.agent-conversation-nav {
  min-height: 0;
}

.agent-sidebar-section-label {
  padding: 10px 9px 6px;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 520;
}

.agent-conversation-list {
  gap: 2px;
}

.agent-conversation-item {
  min-height: 50px;
  padding: 7px 9px;
  border-radius: 9px;
  background: transparent;
  color: var(--agent-body);
}

.agent-conversation-item:hover {
  background: var(--agent-hover);
}

.agent-conversation-item.is-active {
  background: var(--agent-active);
  color: var(--agent-text);
}

.agent-conversation-title {
  color: inherit;
  font-size: 14px;
  font-weight: 540;
  line-height: 1.35;
}

.agent-conversation-item.is-active .agent-conversation-title {
  font-weight: 620;
}

.agent-conversation-meta {
  margin-top: 3px;
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.25;
}

.agent-sidebar-audit {
  min-height: 40px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: transparent;
  color: var(--agent-muted);
  font-size: 13px;
}

.agent-sidebar-audit:hover {
  background: var(--agent-hover);
  color: var(--agent-text);
}

/* Top bar ----------------------------------------------------------------- */
.agent-topbar {
  min-height: 56px;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid #eeeeee;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.agent-topbar-title {
  gap: 9px;
}

.agent-topbar-title h2 {
  margin: 0;
  color: var(--agent-text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.agent-context-pill,
.agent-meta-pill {
  border: 0;
  background: var(--agent-control);
  color: #777;
  font-size: 12px;
  font-weight: 520;
}

.agent-topbar-audit {
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--agent-muted);
  font-size: 13px;
}

.agent-topbar-audit:hover {
  background: var(--agent-hover);
  color: var(--agent-text);
}

/* Reading column ---------------------------------------------------------- */
.agent-content {
  min-height: 0;
  overflow: hidden;
}

.agent-thread,
.agent-message-scroll {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.agent-message-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d4 transparent;
}

.agent-message-stack {
  width: min(100%, var(--agent-reading-width));
  margin: 0 auto;
  padding: 38px 28px 190px;
  gap: 30px;
}

.agent-message {
  width: 100%;
  min-width: 0;
}

.agent-message-assistant {
  color: var(--agent-body);
  font-size: 15.5px;
  line-height: 1.72;
}

.agent-message-body {
  width: 100%;
  min-width: 0;
}

.agent-message-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.agent-user-bubble {
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(76%, 680px);
  padding: 11px 14px;
  border: 0;
  border-radius: 18px;
  background: #f4f4f4;
  color: var(--agent-text);
  box-shadow: none;
}

.agent-user-text {
  font-size: 15px;
  line-height: 1.62;
}

.agent-message-footer {
  margin-top: 7px;
  color: var(--agent-subtle);
  font-size: 12px;
}

.agent-message-footer time,
.agent-message-meta,
.agent-meta-action {
  font-size: 12px;
}

.agent-meta-action {
  color: var(--agent-muted);
}

/* Execution trace --------------------------------------------------------- */
.agent-execution {
  max-width: 700px;
  margin: 0 0 18px;
  color: var(--agent-muted);
  font-size: 13px;
}

.agent-execution-trigger {
  min-height: 32px;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #737373;
  font-size: 13px;
}

.agent-execution-label {
  color: #686868;
  font-size: 13px;
  font-weight: 520;
}

.agent-execution-status {
  color: #6f6f6f;
}

.agent-execution-steps {
  margin: 6px 0 0 7px;
  padding-left: 15px;
  border-left: 1px solid #dedede;
}

.agent-execution-step {
  min-height: 28px;
  gap: 9px;
  color: #777;
  font-size: 13px;
  line-height: 1.45;
}

.agent-execution-step-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

.agent-execution-file-line {
  color: #595959;
  font-size: 12px;
  line-height: 1.6;
}

.agent-execution-step > small {
  flex-shrink: 0;
}

.agent-execution-step small {
  color: #999;
  font-size: 12px;
}

.agent-execution-dot {
  width: 6px;
  height: 6px;
  background: #c8c8c8;
}

.agent-execution-step.is-running .agent-execution-dot {
  background: #202020;
}

/* Markdown --------------------------------------------------------------- */
.chat-markdown,
.chat-markdown-section {
  color: var(--agent-body);
  font-size: 15.5px;
  line-height: 1.74;
}

.chat-markdown p,
.chat-markdown li,
.chat-markdown td,
.chat-markdown th {
  font-size: 15.5px;
  line-height: 1.74;
}

.chat-markdown p {
  margin: 0 0 14px;
}

.chat-markdown h1,
.chat-markdown h2,
.chat-markdown h3,
.chat-markdown h4 {
  color: var(--agent-text);
  letter-spacing: -0.015em;
}

.chat-markdown h1 { font-size: 24px; }
.chat-markdown h2 { font-size: 20px; }
.chat-markdown h3 { font-size: 17px; }
.chat-markdown h4 { font-size: 15.5px; }

.chat-markdown pre,
.chat-markdown blockquote,
.chat-material-summary,
.chat-material-interpretations,
.chat-material-interpretation-card {
  border-color: var(--agent-border);
  background: #fff;
  box-shadow: none;
}

.chat-markdown pre {
  background: #f7f7f7;
}

.chat-markdown code {
  font-size: 0.92em;
}

/* Attachments ------------------------------------------------------------- */
.agent-message-files {
  gap: 8px;
}

button.agent-message-file,
.agent-message-file {
  min-width: 220px;
  max-width: 340px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--agent-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

button.agent-message-file:hover:not(:disabled) {
  border-color: #d8d8d8;
  background: #fafafa;
}

.agent-message-file-name {
  color: var(--agent-text);
  font-size: 13px;
  font-weight: 560;
}

.agent-message-file-meta {
  color: #8d8d8d;
  font-size: 12px;
}

.agent-message-file-icon {
  background: #f2f2f2;
  color: #666;
}

/* Report ------------------------------------------------------------------ */
.agent-report {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--agent-body);
  font-size: 15px;
}

.agent-report-header,
.agent-report-section,
.agent-report-footer {
  border-color: var(--agent-border);
  background: #fff;
}

.agent-report-title-row h2 {
  color: var(--agent-text);
  font-size: 25px;
  letter-spacing: -0.025em;
}

.agent-report-title-row p,
.agent-report-section-heading > span,
.agent-report-details,
.agent-report-material header span {
  color: var(--agent-muted);
  font-size: 13px;
}

.agent-report-section-heading h3 {
  color: var(--agent-text);
  font-size: 16px;
  font-weight: 650;
}

.agent-report-executive {
  padding: 16px 18px;
  border: 0;
  border-radius: 12px;
  background: #f7f7f7;
  color: var(--agent-body);
  font-size: 15px;
  line-height: 1.7;
}

.agent-report-material,
.agent-report-finding,
.agent-report-fact-group,
.agent-report-risk {
  border-color: var(--agent-border);
  background: #fff;
  box-shadow: none;
}

.agent-report-material {
  padding: 18px;
  border-radius: 14px;
}

.agent-report-material header strong,
.agent-report-finding strong,
.agent-report-fact strong,
.agent-report-risk strong {
  color: var(--agent-text);
  font-size: 14.5px;
}

.agent-report-material-headline,
.agent-report-observations p,
.agent-report-finding p,
.agent-report-risk p,
.agent-report-fact span {
  color: var(--agent-body);
  font-size: 14px;
  line-height: 1.65;
}

.agent-report-badge {
  min-height: 24px;
  font-size: 12px;
}

.agent-report-text-action,
.agent-report-locate-action {
  color: #3f3f3f;
  font-size: 13px;
}

.agent-report-locate-action {
  border-color: var(--agent-border);
  background: #fff;
}

.agent-report-locate-action:hover,
.agent-report-locate-action.is-active {
  border-color: #d5d5d5;
  background: #f5f5f5;
  color: #171717;
}

/* Composer ---------------------------------------------------------------- */
.agent-composer-zone {
  background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0));
}

.agent-composer-frame {
  width: min(100%, var(--agent-reading-width));
  margin: 0 auto;
  padding: 0 28px 20px;
}

.agent-composer {
  min-height: 96px;
  padding: 13px 14px 10px;
  border: 1px solid #dedede;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.015), 0 8px 28px rgba(0, 0, 0, 0.08);
}

.agent-composer:focus-within {
  border-color: #d3d3d3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.025), 0 10px 32px rgba(0, 0, 0, 0.09);
}

.agent-composer-input {
  min-height: 42px;
  max-height: 180px;
  padding: 2px 4px;
  color: var(--agent-text);
  font-size: 16px;
  line-height: 1.55;
}

.agent-composer-input::-moz-placeholder {
  color: #a0a0a0;
}

.agent-composer-input::placeholder {
  color: #a0a0a0;
}

.agent-composer-toolbar {
  margin-top: 7px;
}

.agent-icon-button,
.agent-composer-tool {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #666;
}

.agent-icon-button:hover,
.agent-composer-tool:hover {
  background: #f2f2f2;
  color: #171717;
}

.agent-product-trigger {
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: #f5f5f5;
  color: #626262;
  font-size: 13px;
}

.agent-product-trigger:hover,
.agent-product-trigger.has-value {
  background: #efefef;
  color: #292929;
}




.agent-product-popover {
  border-color: var(--agent-border);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.agent-send-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #202020;
  color: #fff;
  box-shadow: none;
}

.agent-send-button:hover:not(:disabled) {
  background: #000;
}

.agent-send-button:disabled {
  background: #d2d2d2;
  color: #fff;
}

/* Empty state ------------------------------------------------------------- */
.agent-empty-state {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 96px 28px 180px;
  color: var(--agent-text);
}

.agent-empty-state h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.agent-empty-mark {
  background: #f4f4f4;
  color: #303030;
}

.agent-suggestion {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--agent-border);
  border-radius: 12px;
  background: #fff;
  color: #303030;
  font-size: 14px;
  box-shadow: none;
}

.agent-suggestion:hover {
  border-color: #d8d8d8;
  background: #fafafa;
}

/* Split review ------------------------------------------------------------ */
.material-review-separator {
  width: 7px;
  flex-basis: 7px;
  background: #fff;
}

.material-review-separator::before {
  inset: 0 3px;
  background: #e5e5e5;
}

.material-review-separator:hover::before,
.material-review-separator:focus-visible::before,
.material-review-separator[data-separator="active"]::before {
  background: #b9b9b9;
  box-shadow: none;
}

.material-review-separator > span {
  width: 2px;
  height: 30px;
  background: #bdbdbd;
}

.material-preview-pane,
.material-preview-header {
  background: #fff;
}

.material-preview-header {
  min-height: 56px;
  flex-basis: 56px;
  padding: 0 14px;
  border-bottom-color: #ececec;
}

.material-preview-title strong {
  color: var(--agent-text);
  font-size: 14px;
}

.material-preview-title span {
  color: #8f8f8f;
  font-size: 12px;
}

.material-preview-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root {
    --agent-reading-width: 900px;
    --agent-sidebar-width: 244px;
  }

  .agent-message-stack,
  .agent-composer-frame {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 920px) {
  :root {
    --agent-reading-width: 100%;
  }

  .agent-sidebar {
    width: 100%;
    flex-basis: auto;
  }

  .agent-message-stack {
    padding: 28px 18px 170px;
  }

  .agent-composer-frame {
    padding: 0 14px 14px;
  }

  .agent-user-bubble {
    max-width: 88%;
  }

  .material-review-workspace.is-compact .material-review-separator {
    height: 7px;
    flex-basis: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-shell *,
  .material-review-workspace * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* /@fs//app/apps/console/src/styles.css */
/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
@layer properties;
.visible {
  visibility: visible;
}
.relative {
  position: relative;
}
.block {
  display: block;
}
.hidden {
  display: none;
}
.inline {
  display: inline;
}
.table {
  display: table;
}
.transform {
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
}
:root {
  color-scheme: light;
  --ui-bg: #f7f7f8;
  --ui-surface: #fff;
  --ui-text: #18181b;
  --ui-muted: #6b7280;
  --ui-border: rgb(24 24 27/10%);
  --ui-border-strong: rgb(24 24 27/17%);
  --ui-accent: #315efb;
  --ui-danger: #b42318;
  --ui-success: #067647;
  --ui-warning: #9a5b00;
  --ui-radius: 10px;
  --ui-shadow: 0 20px 55px rgb(24 24 27/14%);
}
html,body,#root {
  width: 100%;
  min-width: 0;
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing: antialiased;
}
*,*::before,*::after {
  box-sizing: border-box;
}
button,input,select,textarea {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
.app-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius);
  background: transparent;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: .13s ease;
}
.app-button>span:not(.app-button-spinner) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.app-button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.app-button.is-primary {
  background: var(--ui-accent);
  color: #fff;
}
.app-button.is-secondary {
  border-color: var(--ui-border-strong);
  background: #fff;
}
.app-button.is-secondary:hover:not(:disabled),.app-button.is-ghost:hover:not(:disabled) {
  background: #f1f2f4;
}
.app-button.is-danger {
  border-color: rgb(180 35 24/18%);
  background: #fff3f2;
  color: var(--ui-danger);
}
.app-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.app-button-spinner,.app-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ui-spin .75s linear infinite;
}
@keyframes ui-spin {
  to {
    transform: rotate(360deg);
  }
}
.app-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #65676d;
  cursor: pointer;
}
.app-icon-button:hover {
  background: rgb(24 24 27/6%);
}
.app-button:focus-visible,.app-icon-button:focus-visible,.app-toggle:focus-visible,.admin-nav button:focus-visible,.admin-tabs button:focus-visible,.skill-dropzone:focus-visible {
  outline: 2px solid rgb(49 94 251/45%);
  outline-offset: 2px;
}
.app-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}
.app-notice.is-success {
  background: #ecfdf3;
  color: var(--ui-success);
}
.app-notice.is-warning {
  background: #fff8e8;
  color: var(--ui-warning);
}
.app-notice.is-error {
  background: #fff3f2;
  color: var(--ui-danger);
}
.app-notice-close {
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 18px;
}
.app-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.app-field-label {
  font-size: 13px;
  font-weight: 650;
}
.app-field-hint {
  color: var(--ui-muted);
  font-size: 12px;
}
.app-input,.app-select,.app-textarea,.app-code-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ui-border-strong);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ui-text);
}
.app-input,.app-select {
  min-height: 40px;
  padding: 8px 11px;
}
.app-textarea,.app-code-input {
  min-height: 96px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.55;
}
.app-code-input {
  font-family: "SFMono-Regular",Consolas,monospace;
  font-size: 12px;
}
.app-input:focus,.app-select:focus,.app-textarea:focus,.app-code-input:focus {
  border-color: rgb(49 94 251/58%);
  box-shadow: 0 0 0 3px rgb(49 94 251/10%);
}
.app-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.app-form-grid.is-three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.app-form-grid.is-four {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.app-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: #f5f5f6;
  color: #52525b;
  font-size: 11px;
  font-weight: 650;
}
.app-pill.is-blue {
  background: #eef2ff;
  color: #3154c8;
}
.app-pill.is-green {
  background: #ecfdf3;
  color: var(--ui-success);
}
.app-pill.is-orange {
  background: #fff8e8;
  color: var(--ui-warning);
}
.app-pill.is-red {
  background: #fff3f2;
  color: var(--ui-danger);
}
.app-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8cbd1;
  cursor: pointer;
}
.app-toggle.is-checked {
  background: var(--ui-accent);
}
.app-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0/20%);
  transition: .13s;
}
.app-toggle.is-checked .app-toggle-thumb {
  transform: translateX(16px);
}
.app-toggle:disabled {
  opacity: .48;
}
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(17 24 39/42%);
  backdrop-filter: blur(4px);
}
.app-modal {
  width: min(100%,680px);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ui-shadow);
}
.app-modal.is-small {
  width: min(100%,480px);
}
.app-modal.is-large {
  width: min(100%,940px);
}
.app-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--ui-border);
}
.app-modal-header h2 {
  margin: 0;
  font-size: 17px;
}
.app-modal-header p {
  margin: 6px 0 0;
  color: var(--ui-muted);
  font-size: 12px;
}
.app-modal-body {
  max-height: calc(90vh - 86px);
  overflow: auto;
  padding: 20px 22px 22px;
}
.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 4px;
}
.app-empty {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 24px;
  color: var(--ui-muted);
  font-size: 13px;
  text-align: center;
}
.app-loading {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  color: var(--ui-muted);
  font-size: 13px;
}
.login-shell {
  min-height: 100dvh;
  overflow: auto;
  background: radial-gradient(circle at 18% 10%,#eef2ff 0,transparent 32%),#f7f7f8;
}
.login-panel {
  display: grid;
  width: min(1120px,calc(100% - 40px));
  min-height: 100dvh;
  margin: auto;
  grid-template-columns: minmax(0,1.2fr) minmax(340px,440px);
  align-items: center;
  gap: clamp(48px,8vw,112px);
  padding: 56px 0;
}
.login-hero {
  max-width: 650px;
}
.login-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--ui-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-title {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(36px,5vw,60px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.login-copy {
  max-width: 56ch;
  margin: 24px 0 0;
  color: #62656d;
  font-size: 15px;
  line-height: 1.8;
}
.login-card {
  padding: 26px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: rgb(255 255 255/94%);
  box-shadow: 0 20px 70px rgb(24 24 27/8%);
}
.login-card-heading {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 5px 12px;
  align-items: center;
  margin-bottom: 22px;
}
.login-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1/span 2;
  place-items: center;
  border-radius: 10px;
  background: #edf1ff;
  color: var(--ui-accent);
}
.login-card-heading h2 {
  margin: 0;
  font-size: 16px;
}
.login-card-heading p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
}
.login-notices,.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-notices {
  margin-bottom: 15px;
}
.login-form .app-button {
  width: 100%;
}
.login-footnote {
  display: block;
  margin-top: 18px;
  color: #85878e;
  font-size: 11px;
  line-height: 1.65;
}
.admin-shell {
  display: flex;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #f7f7f8;
}
.admin-sidebar {
  display: flex;
  width: 238px;
  flex: 0 0 238px;
  flex-direction: column;
  padding: 14px 11px;
  border-right: 1px solid var(--ui-border);
  background: #f1f2f4;
}
.admin-brand {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 4px 7px 12px;
}
.admin-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #202124;
  color: #fff;
}
.admin-brand>div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.admin-brand strong {
  font-size: 13px;
}
.admin-brand span:not(.admin-brand-mark) {
  color: var(--ui-muted);
  font-size: 11px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-nav button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5b5d64;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.admin-nav button:hover {
  background: rgb(24 24 27/5%);
}
.admin-nav button.is-active {
  background: #fff;
  color: #202124;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--ui-border);
}
.admin-sidebar-footer {
  display: flex;
  margin-top: auto;
  flex-direction: column;
  padding: 12px 9px 5px;
  border-top: 1px solid var(--ui-border);
  font-size: 12px;
}
.admin-sidebar-footer small {
  color: var(--ui-muted);
}
.admin-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.admin-topbar {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 26px;
  border-bottom: 1px solid var(--ui-border);
  background: rgb(255 255 255/80%);
}
.admin-topbar h1 {
  margin: 2px 0 0;
  font-size: 20px;
}
.admin-eyebrow {
  color: #8a8c93;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .11em;
}
.admin-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  overflow: auto;
  padding: 24px 26px 42px;
}
.admin-section-heading,.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.admin-section-heading h2,.admin-panel-heading h2 {
  margin: 0;
  font-size: 17px;
}
.admin-section-heading p,.admin-panel-heading p {
  margin: 5px 0 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.6;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.admin-search {
  position: relative;
  min-width: 260px;
  flex: 1 1 320px;
}
.admin-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  color: #8b8d94;
  pointer-events: none;
}
.admin-search .app-input {
  padding-left: 34px;
}
.app-select.compact {
  width: auto;
  min-width: 150px;
}
.admin-table-card,.admin-panel {
  border: 1px solid var(--ui-border);
  border-radius: 13px;
  background: #fff;
}
.admin-table-card {
  overflow: auto;
}
.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table th,.admin-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--ui-border);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  background: #f8f8f9;
  color: #65676e;
  font-size: 11px;
  white-space: nowrap;
}
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-table .align-right {
  text-align: right;
}
.admin-primary-cell {
  display: flex;
  min-width: 170px;
  flex-direction: column;
  gap: 3px;
}
.admin-primary-cell small {
  color: var(--ui-muted);
  font-size: 10px;
}
.rule-cell {
  max-width: 460px;
}
.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.admin-card-list,.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-rule-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
}
.admin-rule-copy h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.admin-rule-copy p {
  margin: 0;
  color: #50525a;
  font-size: 12px;
  line-height: 1.65;
}
.admin-rule-meta,.admin-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ui-muted);
  font-size: 11px;
}
.admin-panel {
  padding: 18px;
}
.admin-panel-heading {
  margin-bottom: 16px;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.admin-stat-grid article {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
}
.admin-stat-grid strong {
  font-size: 24px;
}
.admin-stat-grid span {
  color: var(--ui-muted);
  font-size: 11px;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: #eeeff1;
}
.admin-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #676970;
  font-size: 12px;
  font-weight: 620;
  cursor: pointer;
}
.admin-tabs button.is-active {
  background: #fff;
  color: #222327;
  box-shadow: 0 1px 3px rgb(24 24 27/8%);
}
.admin-toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.admin-inline-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  font-size: 12px;
}
.admin-snapshot-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.admin-snapshot-form .app-field {
  flex: 1;
}
.snapshot-view {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ui-border);
}
.snapshot-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.snapshot-columns section {
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #fafafa;
}
.snapshot-columns h4 {
  margin: 0 0 9px;
  font-size: 12px;
}
.snapshot-columns ul {
  margin: 0;
  padding-left: 18px;
  color: #56585f;
  font-size: 11px;
  line-height: 1.65;
}
.skill-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-quick-install {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1100;
  box-shadow: 0 10px 32px rgb(24 24 27/13%);
}
.skill-dropzone {
  display: grid;
  width: 100%;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  border: 1px dashed #a6a9b0;
  border-radius: 12px;
  background: #fafafa;
  color: #5e6067;
  text-align: center;
  cursor: pointer;
}
.skill-dropzone strong,.skill-dropzone span {
  display: block;
}
.skill-dropzone strong {
  margin-top: 10px;
}
.skill-dropzone span {
  margin-top: 4px;
  font-size: 12px;
}
@media (max-width:1080px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .app-form-grid.is-four {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:820px) {
  body {
    overflow: auto;
  }
  .login-panel {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .admin-shell {
    height: auto;
    min-height: 100dvh;
    flex-direction: column;
    overflow: visible;
  }
  .admin-sidebar {
    width: 100%;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ui-border);
  }
  .admin-nav {
    flex-direction: row;
    overflow: auto;
  }
  .admin-nav button {
    width: auto;
    flex: 0 0 auto;
  }
  .admin-sidebar-footer {
    display: none;
  }
  .admin-content {
    overflow: visible;
    padding: 18px;
  }
  .admin-section-heading,.admin-panel-heading {
    flex-direction: column;
  }
}
@media (max-width:620px) {
  .login-panel {
    width: min(100% - 28px,520px);
    padding-block: 34px;
  }
  .login-title {
    font-size: 36px;
  }
  .app-form-grid,.app-form-grid.is-three,.app-form-grid.is-four,.snapshot-columns,.admin-stat-grid {
    grid-template-columns: 1fr;
  }
  .admin-search {
    min-width: 100%;
  }
  .admin-rule-card {
    grid-template-columns: 1fr;
  }
  .admin-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .app-modal-backdrop {
    padding: 10px;
  }
  .app-modal-header,.app-modal-body {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
    }
  }
}


/* /src/modern-agent-ui.css */
/* Agent workspace presentation layer.
 * Business APIs, SSE events and persistence contracts remain unchanged.
 */

:root {
  --agent-bg: #f7f7f8;
  --agent-surface: #ffffff;
  --agent-surface-subtle: #f5f5f6;
  --agent-surface-hover: #f0f0f2;
  --agent-text: #18181b;
  --agent-text-secondary: #6f7178;
  --agent-text-tertiary: #9a9ca2;
  --agent-border: rgb(24 24 27 / 8%);
  --agent-border-strong: rgb(24 24 27 / 13%);
  --agent-accent: #3e63dd;
  --agent-danger: #b42318;
  --agent-ai-badge-background: #f3efff;
  --agent-ai-badge-text: #6941c6;
  --agent-radius-control: 10px;
  --agent-radius-surface: 14px;
  --agent-shadow-float: 0 18px 48px rgb(24 24 27 / 10%), 0 2px 8px rgb(24 24 27 / 5%);
}

body {
  background: var(--agent-bg);
  color: var(--agent-text);
}

button,
textarea,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.agent-shell {
  display: flex;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--agent-bg);
  color: var(--agent-text);
}

/* Sidebar */
.agent-sidebar {
  display: flex;
  flex: 0 0 256px;
  width: 256px;
  min-width: 0;
  flex-direction: column;
  padding: 12px 10px;
  background: #f3f3f4;
  box-shadow: inset -1px 0 0 var(--agent-border);
}

.agent-sidebar-brand {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 6px 8px;
  color: #29292d;
  font-size: 13px;
  font-weight: 670;
  letter-spacing: -0.01em;
}

.agent-sidebar-brand-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: #202124;
  color: #fff;
  font-size: 12px;
  font-weight: 730;
}

.agent-icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--agent-radius-control);
  background: transparent;
  color: #6c6e75;
  cursor: pointer;
  transition: background-color 130ms ease, color 130ms ease, transform 100ms ease;
}

.agent-icon-button:hover:not(:disabled) {
  background: rgb(24 24 27 / 6%);
  color: #242529;
}

.agent-icon-button:active:not(:disabled) {
  transform: scale(.96);
}

.agent-icon-button:focus-visible,
.agent-new-thread:focus-visible,
.agent-conversation-item:focus-visible,
.agent-sidebar-audit:focus-visible,
.agent-suggestion:focus-visible,
.agent-topbar-audit:focus-visible,
.agent-product-trigger:focus-visible,
.agent-product-option:focus-visible,
.agent-send-button:focus-visible,
.agent-execution-trigger:focus-visible,
.agent-meta-action:focus-visible,
.agent-error button:focus-visible {
  outline: 2px solid rgb(62 99 221 / 48%);
  outline-offset: 2px;
}

.agent-new-thread-button {
  margin-left: auto;
}

.agent-new-thread {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  margin: 2px 2px 14px;
  padding: 0 11px;
  border: 1px solid var(--agent-border);
  border-radius: 10px;
  background: rgb(255 255 255 / 74%);
  color: #36373b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 570;
  text-align: left;
  transition: background-color 130ms ease, border-color 130ms ease;
}

.agent-new-thread:hover {
  border-color: var(--agent-border-strong);
  background: #fff;
}

.agent-conversation-nav {
  min-height: 0;
  flex: 1;
}

.agent-sidebar-section-label {
  padding: 0 10px 7px;
  color: #9a9ca2;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
}

.agent-conversation-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  scrollbar-width: thin;
}

.agent-conversation-item {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #70727a;
  cursor: pointer;
  text-align: left;
  transition: background-color 130ms ease, color 130ms ease;
}

.agent-conversation-item:hover:not(.is-placeholder) {
  background: rgb(255 255 255 / 62%);
  color: #37383c;
}

.agent-conversation-item.is-active {
  background: #fff;
  color: #242529;
  box-shadow: 0 1px 2px rgb(24 24 27 / 4%);
}

.agent-conversation-item > svg {
  flex: 0 0 auto;
}

.agent-conversation-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.agent-conversation-title {
  overflow: hidden;
  font-size: 12px;
  font-weight: 540;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-conversation-meta {
  color: #a1a3a9;
  font-size: 10px;
}

.agent-sidebar-audit {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 0;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #85878e;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.agent-sidebar-audit:hover {
  background: rgb(255 255 255 / 58%);
  color: #4d4f55;
}

/* Main workspace */
.agent-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  background: var(--agent-surface);
}

.agent-topbar {
  display: flex;
  min-height: 57px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  box-shadow: inset 0 -1px 0 var(--agent-border);
}

.agent-topbar-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.agent-topbar h2 {
  max-width: min(54vw, 560px);
  margin: 0;
  overflow: hidden;
  color: #25262a;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-context-pill {
  max-width: 230px;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f3f5;
  color: #74767d;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-topbar-audit {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #75777e;
  cursor: pointer;
  font-size: 11px;
}

.agent-topbar-audit:hover {
  background: var(--agent-surface-subtle);
  color: #333438;
}

.agent-error {
  display: flex;
  width: min(calc(100% - 40px), 780px);
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin: 12px auto 0;
  padding: 9px 11px;
  border: 1px solid rgb(180 35 24 / 12%);
  border-radius: 11px;
  background: #fff8f7;
  color: #6d2b26;
  font-size: 11px;
}

.agent-error strong {
  color: #8e3129;
  font-weight: 650;
}

.agent-error span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-error button {
  border: 0;
  background: transparent;
  color: #8e3129;
  cursor: pointer;
  font-size: 11px;
}

.agent-content {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

/* Empty state */
.agent-empty-state {
  position: absolute;
  z-index: 1;
  top: 43%;
  left: 50%;
  display: flex;
  width: min(calc(100% - 40px), 620px);
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
}

.agent-empty-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--agent-border);
  border-radius: 12px;
  background: #fafafa;
  color: #383a40;
  box-shadow: 0 1px 2px rgb(24 24 27 / 4%);
}

.agent-empty-state h1 {
  margin: 0;
  color: #26272b;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 610;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-wrap: balance;
}

.agent-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.agent-suggestion {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--agent-border);
  border-radius: 10px;
  background: #fff;
  color: #55575d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 540;
  box-shadow: 0 1px 2px rgb(24 24 27 / 3%);
  transition: background-color 130ms ease, border-color 130ms ease, transform 100ms ease;
}

.agent-suggestion:hover {
  border-color: var(--agent-border-strong);
  background: #fafafa;
  color: #2f3034;
}

.agent-suggestion:active {
  transform: scale(.98);
}

/* Message stream */
.agent-thread {
  width: min(100%, 820px);
  min-height: 0;
  height: 100%;
}

.agent-message-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(24 24 27 / 14%) transparent;
}

.agent-message-stack {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 30px;
  padding: 34px 30px 54px;
}

.agent-message {
  display: flex;
  width: 100%;
  min-width: 0;
}

.agent-message-assistant {
  align-items: flex-start;
  gap: 12px;
}

.agent-message-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 1px;
  border-radius: 8px;
  background: #25262a;
  color: #fff;
}

.agent-message-body {
  min-width: 0;
  max-width: 72ch;
  flex: 1;
}

.agent-message-user {
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.agent-user-bubble {
  max-width: min(76%, 620px);
  padding: 9px 13px;
  border-radius: 15px 15px 4px 15px;
  background: #f1f1f3;
  color: #28292d;
}

.agent-user-text {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.agent-message-footer {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--agent-text-tertiary);
  font-size: 9px;
}

.agent-message-user > .agent-message-footer {
  margin-top: 0;
  padding-right: 3px;
}

.agent-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.agent-meta-pill {
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #8a8c92;
  font-size: 9px;
}

.agent-meta-action {
  padding: 2px 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #85878e;
  cursor: pointer;
  font-size: 9px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

.agent-meta-action:hover {
  color: #4d4f55;
  text-decoration-color: currentColor;
}

/* Sanitized execution lifecycle, not model chain-of-thought. */
.agent-execution {
  margin: 0 0 12px;
}

.agent-execution-trigger {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 3px 6px 3px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b8d94;
  cursor: pointer;
  font-size: 10px;
}

.agent-execution-trigger:hover {
  background: #f6f6f7;
  color: #5f6168;
}

.agent-execution-status {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.agent-execution-spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid #d0d1d5;
  border-top-color: #55575d;
  border-radius: 50%;
  animation: agent-spin .8s linear infinite;
}

.agent-execution-trigger svg:last-child {
  transition: transform 150ms ease;
}

.agent-execution-trigger svg.is-open {
  transform: rotate(180deg);
}

.agent-execution-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 4px 0 0 11px;
  padding-left: 13px;
  border-left: 1px solid #e8e8ea;
}

.agent-execution-step {
  position: relative;
  display: flex;
  min-height: 26px;
  align-items: baseline;
  gap: 7px;
  padding: 4px 0 4px 7px;
  color: #8a8c92;
  font-size: 10px;
}

.agent-execution-dot {
  position: absolute;
  top: 10px;
  left: -16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7c8cc;
  box-shadow: 0 0 0 3px #fff;
}

.agent-execution-step.is-running {
  color: #4d4f55;
}

.agent-execution-step.is-running .agent-execution-dot {
  background: var(--agent-accent);
}

.agent-execution-step.is-failed,
.agent-execution-step.is-failed small {
  color: var(--agent-danger);
}

.agent-execution-step small {
  color: #adaeb3;
  font-size: 9px;
}

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

/* Message attachments */
.agent-message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.agent-message-file {
  display: flex;
  min-width: 170px;
  max-width: 280px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--agent-border);
  border-radius: 10px;
  background: #fafafa;
}

.agent-user-bubble .agent-message-file {
  background: rgb(255 255 255 / 65%);
}

.agent-message-file-preview,
.agent-message-file-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
}

.agent-message-file-preview {
  -o-object-fit: cover;
     object-fit: cover;
}

.agent-message-file-icon {
  display: grid;
  place-items: center;
  background: #f0f0f2;
  color: #73757c;
}

.agent-message-file-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.agent-message-file-name {
  overflow: hidden;
  color: #4a4b50;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-message-file-meta {
  color: #999ba1;
  font-size: 9px;
}

.agent-source-details {
  max-width: 660px;
  margin-top: 12px;
  border-top: 1px solid var(--agent-border);
  border-bottom: 1px solid var(--agent-border);
}

.agent-source-details summary {
  padding: 9px 0;
  color: #7d7f86;
  cursor: pointer;
  font-size: 10px;
  list-style-position: inside;
}

.agent-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  padding: 1px 0 10px;
}

.agent-source-grid > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  font-size: 10px;
}

.agent-source-grid dt {
  color: #9a9ca2;
}

.agent-source-grid dd {
  margin: 0;
  color: #55575d;
}

/* Existing Markdown and report renderers are retained as content primitives. */
.agent-message-body .chat-markdown,
.agent-message-body .chat-assistant-text {
  max-width: 70ch;
  color: #292a2e;
  font-size: 13px;
  line-height: 1.78;
}

.agent-message-body .chat-markdown p {
  margin: 0 0 11px;
}

.agent-message-body .chat-markdown h1,
.agent-message-body .chat-markdown h2,
.agent-message-body .chat-markdown h3,
.agent-message-body .chat-markdown h4 {
  color: #25262a;
  letter-spacing: -0.02em;
}

.agent-message-body .chat-markdown h1 { font-size: 18px; }
.agent-message-body .chat-markdown h2 { font-size: 16px; }
.agent-message-body .chat-markdown h3,
.agent-message-body .chat-markdown h4 { font-size: 14px; }

.agent-message-body .chat-markdown blockquote {
  margin: 11px 0;
  padding: 2px 0 2px 12px;
  border: 0;
  border-left: 2px solid #dedfe2;
  border-radius: 0;
  background: transparent;
  color: #686a71;
}

.agent-message-body .chat-markdown pre,
.agent-message-body .chat-markdown-table-wrap {
  border-color: var(--agent-border);
  border-radius: 10px;
  background: #f8f8f9;
}

.agent-message-body .chat-material-summary {
  border-color: var(--agent-border);
  border-radius: 11px;
  background: #f8f9fb;
}

/* Composer */
.agent-composer-zone {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 24px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff 30%);
}

.agent-composer-frame {
  width: min(100%, 780px);
  margin: 0 auto;
}

.agent-composer {
  position: relative;
  padding: 9px 10px 8px;
  border: 1px solid var(--agent-border-strong);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--agent-shadow-float);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.agent-composer:focus-within {
  border-color: rgb(62 99 221 / 25%);
  box-shadow: 0 20px 52px rgb(24 24 27 / 11%), 0 0 0 3px rgb(62 99 221 / 5%);
}

.agent-composer.is-disabled {
  opacity: .76;
}

.agent-composer-input {
  display: block;
  width: 100%;
  min-height: 32px;
  max-height: 160px;
  resize: none;
  overflow-y: auto;
  padding: 5px 7px 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #292a2e;
  font-size: 13px;
  line-height: 1.6;
}

.agent-composer-input::-moz-placeholder {
  color: #a2a4aa;
}

.agent-composer-input::placeholder {
  color: #a2a4aa;
}

.agent-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-composer-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.agent-composer-tool {
  width: 30px;
  height: 30px;
}

.agent-product-picker {
  position: relative;
}

.agent-product-trigger {
  display: flex;
  max-width: 220px;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #898b92;
  cursor: pointer;
  font-size: 10px;
}

.agent-product-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-product-trigger:hover,
.agent-product-trigger.has-value {
  background: #f5f5f6;
  color: #5d5f66;
}




.agent-product-popover {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 9px);
  left: 0;
  width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--agent-border-strong);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(24 24 27 / 14%);
}

.agent-product-search {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid var(--agent-border);
  color: #95979d;
}

.agent-product-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333438;
  font-size: 11px;
}

.agent-product-search input::-moz-placeholder {
  color: #a6a8ad;
}

.agent-product-search input::placeholder {
  color: #a6a8ad;
}

.agent-product-clear {
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: #8b8d94;
  cursor: pointer;
  font-size: 9px;
}

.agent-product-options {
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
}

.agent-product-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #45464b;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.agent-product-option:hover,
.agent-product-option.is-selected {
  background: #f5f5f6;
}

.agent-product-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-product-option small {
  flex: 0 0 auto;
  color: #a2a4aa;
  font-size: 9px;
}

.agent-product-state {
  padding: 16px 10px;
  color: #92949b;
  font-size: 10px;
  text-align: center;
}

.agent-product-state.is-error {
  color: var(--agent-danger);
}

.agent-send-button {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #25262a;
  color: #fff;
  cursor: pointer;
  transition: opacity 130ms ease, transform 100ms ease, background-color 130ms ease;
}

.agent-send-button:hover:not(:disabled) {
  background: #111215;
}

.agent-send-button:active:not(:disabled) {
  transform: scale(.95);
}

.agent-send-button:disabled,
.agent-icon-button:disabled,
.agent-product-trigger:disabled {
  cursor: default;
  opacity: .38;
}

.agent-composer-files {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 3px 7px;
  scrollbar-width: thin;
}

.agent-file-chip {
  position: relative;
  display: flex;
  min-width: 175px;
  max-width: 260px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 7px 7px 7px 9px;
  border: 1px solid var(--agent-border);
  border-radius: 10px;
  background: #fafafa;
}

.agent-file-chip.is-error {
  border-color: rgb(180 35 24 / 16%);
  background: #fff8f7;
}

.agent-file-chip-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.agent-file-name {
  overflow: hidden;
  color: #505158;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-file-meta {
  overflow: hidden;
  color: #9a9ca2;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-file-remove {
  width: 25px;
  height: 25px;
}

.agent-file-retry {
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--agent-danger);
  cursor: pointer;
  font-size: 9px;
}

.agent-file-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--agent-accent);
  transition: width 120ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .agent-icon-button,
  .agent-new-thread,
  .agent-conversation-item,
  .agent-suggestion,
  .agent-execution-trigger svg:last-child,
  .agent-composer,
  .agent-send-button,
  .agent-file-progress {
    transition: none;
  }

  .agent-execution-spinner {
    animation-duration: 1.8s;
  }

  .agent-message-scroll {
    scroll-behavior: auto;
  }
}

@media (max-width: 900px) {
  .agent-sidebar {
    flex-basis: 220px;
    width: 220px;
  }

  .agent-message-stack {
    padding-inline: 22px;
  }

  .agent-composer-zone {
    padding-inline: 18px;
  }
}

/* Narrow windows adapt structure instead of scaling the desktop UI down. */
@media (max-width: 720px) {
  .agent-shell {
    flex-direction: column;
  }

  .agent-sidebar {
    display: flex;
    width: 100%;
    height: 52px;
    flex: 0 0 52px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    box-shadow: inset 0 -1px 0 var(--agent-border);
  }

  .agent-sidebar-brand {
    min-height: auto;
    flex: 0 0 auto;
    padding: 0;
  }

  .agent-sidebar-brand > span,
  .agent-new-thread,
  .agent-sidebar-section-label,
  .agent-sidebar-audit {
    display: none;
  }

  .agent-new-thread-button {
    display: grid;
    margin-left: 0;
  }

  .agent-conversation-nav {
    min-width: 0;
    flex: 1;
  }

  .agent-conversation-list {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .agent-conversation-item {
    width: auto;
    min-width: 128px;
    max-width: 180px;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 4px 8px;
  }

  .agent-conversation-item > svg,
  .agent-conversation-meta {
    display: none;
  }

  .agent-conversation-title {
    font-size: 10px;
  }

  .agent-main {
    min-height: 0;
  }

  .agent-topbar {
    min-height: 49px;
    padding: 6px 14px;
  }

  .agent-topbar h2 {
    max-width: 48vw;
    font-size: 11px;
  }

  .agent-context-pill {
    max-width: 30vw;
    font-size: 9px;
  }

  .agent-topbar-audit {
    display: flex;
  }

  .agent-empty-state {
    top: 42%;
  }

  .agent-empty-state h1 {
    font-size: 22px;
  }

  .agent-empty-actions {
    width: 100%;
    gap: 7px;
  }

  .agent-suggestion {
    min-height: 38px;
  }

  .agent-message-stack {
    gap: 25px;
    padding: 25px 14px 42px;
  }

  .agent-message-assistant {
    gap: 9px;
  }

  .agent-message-avatar {
    width: 25px;
    height: 25px;
  }

  .agent-user-bubble {
    max-width: 88%;
  }

  .agent-source-grid {
    grid-template-columns: 1fr;
  }

  .agent-composer-zone {
    padding: 7px 10px max(10px, env(safe-area-inset-bottom));
  }

  .agent-composer {
    border-radius: 15px;
  }

  .agent-product-trigger {
    max-width: 150px;
  }
}

@media (max-width: 430px) {
  .agent-sidebar-brand-mark {
    width: 24px;
    height: 24px;
  }

  .agent-conversation-item {
    min-width: 112px;
    max-width: 148px;
  }

  .agent-topbar-title {
    gap: 5px;
  }

  .agent-context-pill {
    display: none;
  }

  .agent-topbar-audit span {
    display: none;
  }

  .agent-topbar-audit {
    width: 31px;
    height: 31px;
    justify-content: center;
    padding: 0;
  }

  .agent-empty-state {
    width: calc(100% - 28px);
  }

  .agent-empty-actions {
    flex-direction: column;
  }

  .agent-suggestion {
    width: 100%;
    justify-content: center;
  }

  .agent-message-stack {
    padding-inline: 11px;
  }

  .agent-message-avatar {
    display: none;
  }

  .agent-user-bubble {
    max-width: 92%;
  }

  .agent-message-files {
    flex-direction: column;
  }

  .agent-message-file {
    width: 100%;
    max-width: none;
  }

  .agent-composer-zone {
    padding-inline: 7px;
  }

  .agent-product-trigger {
    max-width: 122px;
  }
}
