.q-theme,
body {
  --q-green: #009845;
  --q-green-dark: #00763a;
  --q-green-soft: #eef8f2;
  --q-bg: #f5f7f6;
  --q-surface: #ffffff;
  --q-surface-soft: #f8fbf9;
  --q-line: #dfe7e3;
  --q-line-soft: #e8efeb;
  --q-ink: #1f2933;
  --q-muted: #5f6b7a;
  --q-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
  --q-shadow-strong: 0 18px 48px rgba(31, 41, 51, 0.11);
  --q-motion-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --q-motion-med: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  --q-motion-slow: 520ms cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 152, 69, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8faf9 0%, #f1f5f3 52%, #f7f8f8 100%);
  color: var(--q-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  box-sizing: border-box;
}

#workspaceShell {
  min-width: 0;
  overflow: hidden;
}

.topbar,
.conversation-rail,
.chat-surface {
  border-color: var(--q-line);
  border-radius: 12px;
  box-shadow: var(--q-shadow);
}

.topbar {
  padding: 0.75rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 250, 0.98)),
    linear-gradient(90deg, rgba(0, 152, 69, 0.06), transparent);
  animation: surface-in var(--q-motion-med) both;
}

.topbar-inner {
  min-height: 2.5rem;
  min-width: 0;
}

.brand-lockup,
.session-actions,
.chat-header > div {
  min-width: 0;
}

.brand-lockup h1 {
  color: var(--q-ink);
  line-height: 1.1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #00a84d, #007f3f);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 152, 69, 0.22);
  transition:
    transform var(--q-motion-fast),
    box-shadow var(--q-motion-fast);
}

.brand-mark:hover {
  transform: translateY(-1px) rotate(-2deg);
  box-shadow: 0 16px 30px rgba(0, 152, 69, 0.26);
}

.brand-eyebrow,
.rail-section-label,
.chat-kicker,
.preview-kicker {
  color: #697886;
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.session-actions a,
.session-actions button {
  border-color: var(--q-line);
  border-radius: 8px;
  color: var(--q-ink);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    transform var(--q-motion-fast);
}

.session-actions a:hover,
.session-actions button:hover {
  border-color: #c9d6cf;
  background: var(--q-surface-soft);
  transform: translateY(-1px);
}

.session-actions a:active,
.session-actions button:active {
  transform: translateY(0) scale(0.98);
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  max-width: min(42vw, 28rem);
  border: 1px solid var(--q-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.35rem 0.7rem;
  color: #475569;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: chip-in var(--q-motion-med) both;
}

.session-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--q-green);
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.12);
  flex: 0 0 auto;
  animation: live-dot 1.8s ease-in-out infinite;
}

.session-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
}

.conversation-rail {
  width: 18rem;
  min-width: 18rem;
  max-width: 18rem;
  flex: 0 0 18rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 252, 250, 0.97));
  padding: 0.85rem;
  overflow: hidden;
  animation: surface-in var(--q-motion-med) 70ms both;
}

.rail-title {
  margin-bottom: 0.7rem;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 750;
}

.conversation-rail [data-id] {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #3f4c59;
  line-height: 1.35;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform var(--q-motion-fast),
    box-shadow var(--q-motion-fast);
}

.conversation-rail [data-id]:hover {
  border-color: var(--q-line-soft);
  background: var(--q-surface-soft);
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(31, 41, 51, 0.05);
}

.chat-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 251, 0.98)),
    linear-gradient(135deg, rgba(0, 152, 69, 0.05), rgba(255, 255, 255, 0));
  overflow: hidden;
  animation: surface-in var(--q-motion-med) 110ms both;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--q-line);
  background: rgba(255, 255, 255, 0.78);
  padding: 0.8rem 1rem;
}

.chat-title {
  margin-top: 0.1rem;
  color: #102033;
  font-size: 0.95rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.chat-header-meta {
  border: 1px solid #cfe2d6;
  border-radius: 999px;
  background: #f4fbf7;
  padding: 0.35rem 0.65rem;
  color: #0f5132;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.chat-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.delivery-landing-panel {
  border-bottom: 1px solid var(--q-line);
  background: #f7fbf8;
  padding: 0.65rem 1rem;
}

.delivery-landing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 0;
}

.delivery-landing-main {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.delivery-landing-kicker {
  color: #42705a;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.delivery-landing-title {
  color: #102033;
  font-size: 0.86rem;
  font-weight: 760;
}

.delivery-landing-copy {
  color: #546170;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.delivery-landing-error {
  color: #b42318;
}

.delivery-landing-action {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #b7e3c9;
  border-radius: 8px;
  background: #ffffff;
  color: #0f5132;
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 780;
  cursor: pointer;
}

.designer-launch,
.alert-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid #b7e3c9;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #f5fbf7);
  color: #0f5132;
  padding: 0.45rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 780;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 152, 69, 0.07);
  transition:
    transform var(--q-motion-fast),
    border-color var(--q-motion-fast),
    box-shadow var(--q-motion-fast);
}

.designer-launch svg,
.alert-launch svg {
  width: 0.95rem;
  height: 0.95rem;
}

.designer-launch:hover,
.alert-launch:hover {
  border-color: #94d6af;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 152, 69, 0.11);
}

.alert-launch {
  border-color: #f1d79b;
  background: linear-gradient(180deg, #ffffff, #fffaf0);
  color: #7c4a03;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.08);
}

.alert-launch:hover {
  border-color: #e8bd68;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.12);
}

.alert-launch:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.blueprint-suggestion-panel {
  border-top: 1px solid var(--q-line);
  background:
    linear-gradient(135deg, rgba(0, 152, 69, 0.08), rgba(255, 255, 255, 0.92) 38%),
    #ffffff;
  padding: 0.78rem 0.9rem;
  box-shadow: 0 -10px 30px rgba(31, 41, 51, 0.05);
}

.blueprint-suggestion-panel.hidden {
  display: none;
}

.blueprint-suggestion-header,
.blueprint-suggestion-footer,
.blueprint-suggestion-card {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.blueprint-suggestion-header {
  justify-content: space-between;
  margin-bottom: 0.58rem;
  color: #102033;
}

.blueprint-suggestion-kicker {
  color: #009845;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blueprint-suggestion-close,
.blueprint-suggestion-actions button,
.blueprint-suggestion-footer button {
  border: 1px solid #d8e8df;
  border-radius: 8px;
  background: #ffffff;
  color: #0f5132;
  padding: 0.42rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 820;
  transition:
    transform var(--q-motion-fast),
    border-color var(--q-motion-fast),
    background-color var(--q-motion-fast);
}

.blueprint-suggestion-actions button {
  border-color: #009845;
  background: #009845;
  color: #ffffff;
}

.blueprint-suggestion-close {
  width: 1.9rem;
  height: 1.9rem;
  justify-content: center;
  padding: 0;
}

.blueprint-suggestion-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.blueprint-suggestion-card {
  min-width: 0;
  align-items: flex-start;
  border: 1px solid #d8e8df;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.68rem;
  box-shadow: 0 12px 24px rgba(31, 41, 51, 0.045);
}

.blueprint-suggestion-score {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #e6f7ec;
  color: #04703c;
  font-size: 0.72rem;
  font-weight: 900;
}

.blueprint-suggestion-main {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.12rem;
}

.blueprint-suggestion-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
}

.blueprint-suggestion-main strong,
.blueprint-suggestion-main span,
.blueprint-suggestion-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blueprint-suggestion-main strong {
  color: #102033;
  font-size: 0.78rem;
}

.blueprint-suggestion-version {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #d8e8df;
  border-radius: 999px;
  padding: 0.04rem 0.32rem;
  background: #f8fcfa;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 800;
}

.blueprint-suggestion-main span,
.blueprint-suggestion-main small,
.blueprint-suggestion-footer span {
  color: #64748b;
  font-size: 0.68rem;
}

.blueprint-suggestion-footer {
  margin-top: 0.58rem;
}

.alert-panel {
  border-bottom: 1px solid var(--q-line);
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  padding: 0.65rem 0.9rem;
}

.alert-panel.hidden {
  display: none;
}

.alert-strip,
.alert-summary,
.alert-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.alert-strip,
.alert-summary {
  justify-content: space-between;
}

.alert-strip {
  min-height: 2.35rem;
  border: 1px solid #d8e8df;
  border-radius: 10px;
  background: #fbfdfc;
  padding: 0.5rem 0.62rem;
  color: #334155;
  font-size: 0.76rem;
}

.alert-strip.error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.alert-strip.no-context {
  border-color: #dbe5ee;
  background: #f8fafc;
  color: #475569;
}

.alert-strip.checking .alert-pulse {
  animation: live-dot 1.1s ease-in-out infinite;
}

.alert-pulse {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #009845;
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.12);
}

.alert-strip strong,
.alert-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.alert-strip button,
.alert-summary button,
.alert-card-actions button {
  border: 1px solid #cfe2d6;
  border-radius: 8px;
  background: #ffffff;
  color: #0f5132;
  padding: 0.38rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform var(--q-motion-fast),
    border-color var(--q-motion-fast),
    background-color var(--q-motion-fast);
}

.alert-strip button:hover,
.alert-summary button:hover,
.alert-card-actions button:hover {
  border-color: #9bd2b3;
  transform: translateY(-1px);
}

.alert-strip button:disabled,
.alert-card-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.alert-kicker {
  color: #009845;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alert-card-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.58rem;
}

.alert-card {
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid #d8e8df;
  border-left-width: 4px;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.68rem;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.045);
}

.alert-card.severity-critical {
  border-left-color: #dc2626;
}

.alert-card.severity-warning {
  border-left-color: #d97706;
}

.alert-card.severity-watch {
  border-left-color: #0284c7;
}

.alert-card.severity-info {
  border-left-color: #64748b;
}

.alert-card.acknowledged {
  opacity: 0.68;
}

.alert-card-main {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.24rem;
}

.alert-card-topline,
.alert-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
}

.alert-card-topline span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: 0.18rem 0.42rem;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.alert-card-topline small,
.alert-values {
  color: #64748b;
  font-size: 0.68rem;
}

.alert-card-main strong {
  color: #102033;
  font-size: 0.86rem;
  font-weight: 840;
  overflow-wrap: anywhere;
}

.alert-card-main p {
  margin: 0.1rem 0 0;
  color: #475569;
  font-size: 0.73rem;
  line-height: 1.42;
}

.alert-card-actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.34rem;
}

#chatbox {
  padding: 1rem;
  scroll-behavior: smooth;
}

.conversation-item {
  display: grid;
  width: 100%;
  gap: 0.3rem;
  border-radius: 8px;
  padding: 0.58rem 0.62rem;
  text-align: left;
  font-size: 0.76rem;
  color: #334155;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.conversation-item:hover {
  background: #f8fafc;
}

.conversation-item.active {
  background: #ecfdf3;
  color: #075f33;
  box-shadow: inset 0 0 0 1px rgba(0, 152, 69, 0.18);
}

.conversation-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-last-prompt {
  display: -webkit-box;
  overflow: hidden;
  color: #475569;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.conversation-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
  color: #64748b;
  font-size: 0.68rem;
}

.conversation-message-count {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  border: 1px solid rgba(0, 152, 69, 0.18);
  border-radius: 999px;
  background: #f0fff6;
  color: #067a3a;
  font-weight: 760;
  padding: 0.05rem 0.42rem;
}

#chatbox::-webkit-scrollbar,
#conversationList::-webkit-scrollbar {
  width: 10px;
}

#chatbox::-webkit-scrollbar-thumb,
#conversationList::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #cbd7d0;
  background-clip: padding-box;
}

.empty-state {
  border-color: var(--q-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
  color: var(--q-muted);
  padding: 1rem;
  animation: surface-in var(--q-motion-med) both;
}

.empty-state-title {
  color: #102033;
  font-size: 0.95rem;
  font-weight: 750;
}

.empty-state-copy {
  margin-top: 0.2rem;
  max-width: 42rem;
  font-size: 0.82rem;
}

.signed-out-cover {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  display: grid;
  place-items: center;
  border-color: var(--q-line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 152, 69, 0.12), transparent 24rem),
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.08), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.98));
  padding: clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  animation: surface-in var(--q-motion-slow) both;
}

.signed-out-cover.hidden {
  display: none;
}

.signed-out-panel {
  position: relative;
  box-sizing: border-box;
  width: min(31rem, 100%);
  border: 1px solid rgba(207, 226, 214, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: clamp(1.35rem, 4vw, 2.2rem);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  text-align: center;
  backdrop-filter: blur(10px);
}

.signed-out-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #00a84d, #007f3f);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(0, 152, 69, 0.22);
}

.signed-out-kicker {
  margin-top: 1rem;
  color: #697886;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.signed-out-panel h2 {
  margin: 0.35rem 0 0;
  color: #102033;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 780;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.signed-out-panel p {
  margin: 0.75rem auto 0;
  max-width: 27rem;
  color: #5f6b7a;
  font-size: 0.92rem;
  line-height: 1.6;
}

.signed-out-actions {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.signed-out-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #00a84d, #008542);
  color: #ffffff;
  padding: 0.72rem 1rem;
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 152, 69, 0.2);
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.signed-out-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 152, 69, 0.24);
}

.signed-out-note {
  color: #64748b;
  font-size: 0.74rem;
}

.signed-out-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.signed-out-steps div {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 0.35rem;
  border: 1px solid var(--q-line-soft);
  border-radius: 10px;
  background: rgba(248, 251, 249, 0.82);
  padding: 0.65rem 0.45rem;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.signed-out-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #edf8f1;
  color: #04703c;
  font-size: 0.7rem;
  font-weight: 850;
}

.debugger-panel {
  background: #fbfdfc;
}

.debugger-panel > summary {
  outline: none;
}

.composer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 249, 0.98));
}

.composer-box {
  position: relative;
  border: 1px solid var(--q-line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.35rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.prompt-command-menu {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: calc(100% + 8px);
  z-index: 40;
  display: grid;
  gap: 4px;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.prompt-command-menu.hidden {
  display: none;
}

.prompt-command-item {
  display: grid;
  grid-template-columns: minmax(5.8rem, auto) 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  color: var(--q-ink);
}

.prompt-command-item:hover,
.prompt-command-item.active {
  border-color: rgba(0, 152, 69, 0.22);
  background: #f0faf5;
}

.prompt-command-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--q-green);
}

.prompt-command-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.prompt-command-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.prompt-command-description {
  color: #66758a;
  font-size: 0.72rem;
  line-height: 1.35;
}

.composer-hint {
  color: #8a97a5;
  font-size: 0.72rem;
}

.markdown-body {
  line-height: 1.62;
}

.markdown-body p {
  margin: 0.4rem 0;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0.35rem 0 0.35rem 1.1rem;
}

.markdown-body pre {
  margin: 0.45rem 0;
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #f7faf8;
  padding: 0.6rem;
  max-height: 19rem;
  overflow: auto;
  font-size: 0.75rem;
}

.markdown-body code {
  border: 1px solid var(--q-line);
  border-radius: 6px;
  background: #f7faf8;
  padding: 0.08rem 0.28rem;
  font-size: 0.75rem;
}

.markdown-body pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.markdown-body table {
  margin: 0.45rem 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--q-line);
  padding: 0.35rem 0.45rem;
  vertical-align: top;
}

.msg {
  position: relative;
  border-radius: 14px;
  padding: 0.9rem 1rem !important;
  animation: msg-in var(--q-motion-med);
  transition:
    transform var(--q-motion-fast),
    box-shadow var(--q-motion-fast),
    border-color var(--q-motion-fast);
}

.msg:hover {
  transform: translateY(-1px);
}

@keyframes msg-in {
  from {
    transform: translateY(4px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.msg-user {
  margin-left: auto;
  max-width: min(72ch, 88%);
  border: 1px solid #a7dabc;
  background: linear-gradient(180deg, #f1fbf5, #eaf8ef);
  color: #0e4429;
  box-shadow: 0 8px 22px rgba(0, 152, 69, 0.07);
}

.msg-user:hover {
  box-shadow: 0 12px 28px rgba(0, 152, 69, 0.1);
}

.msg-assistant {
  max-width: min(82ch, 95%);
  border: 1px solid var(--q-line);
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  color: var(--q-ink);
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.045);
}

.msg-assistant:hover {
  border-color: #d1ddd7;
  box-shadow: 0 14px 32px rgba(31, 41, 51, 0.065);
}

.msg > .mb-1 {
  margin-bottom: 0.45rem;
  color: #697886;
  letter-spacing: 0.08em;
}

.assistant-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  max-height: 24px;
  font-size: 0.74rem;
  color: #64748b;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    color 180ms ease,
    max-height 180ms ease,
    margin-bottom 180ms ease;
}

.assistant-state.hidden {
  opacity: 0;
  transform: translateY(-2px);
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.assistant-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  animation: pulse-dot 1.2s ease-in-out infinite;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.state-thinking .assistant-state-dot {
  background: var(--q-green);
}

.state-tools .assistant-state-dot {
  background: #d97706;
}

.state-responding .assistant-state-dot {
  background: #0f766e;
}

.state-error .assistant-state-dot {
  background: #dc2626;
  animation: none;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.reasoning-slot {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.reasoning-slot:empty,
.usage-slot:empty,
.delivery-slot:empty,
.outlier-investigation-slot:empty,
.change-pack-review-slot:empty,
.watch-source-slot:empty,
.artifact-slot:empty,
.feedback-slot:empty,
.quick-action-slot:empty,
.tool-slot:empty {
  display: none;
  margin: 0;
}

.current-reasoning-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(0, 152, 69, 0.18);
  border-radius: 8px;
  background: rgba(247, 253, 249, 0.92);
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.current-reasoning-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--q-green);
  flex: 0 0 auto;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.usage-slot {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.artifact-slot {
  margin-top: 0.75rem;
}

.delivery-slot {
  margin-top: 0.75rem;
}

.outlier-investigation-slot {
  margin-top: 0.75rem;
}

.change-pack-review-slot {
  margin-top: 0.75rem;
}

.watch-source-slot {
  margin-top: 0.75rem;
}

.quick-action-slot {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.alert-confirm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: 8px;
  background: #fffaf0;
  color: #452a03;
}

.alert-confirm-card div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.alert-confirm-card strong {
  font-size: 0.82rem;
}

.alert-confirm-card span {
  color: #7c4a03;
  font-size: 0.76rem;
  line-height: 1.35;
}

.alert-confirm-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(180, 83, 9, 0.32);
  border-radius: 8px;
  background: #ffffff;
  color: #7c2d12;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.alert-confirm-btn:hover {
  border-color: rgba(180, 83, 9, 0.52);
  background: #fffbeb;
}

.alert-confirm-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.quick-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(0, 152, 69, 0.24);
  border-radius: 8px;
  background: #f7fdf9;
  color: #0f3f2a;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.quick-action-btn:hover {
  border-color: rgba(0, 152, 69, 0.45);
  background: #edf9f1;
  transform: translateY(-1px);
}

.quick-action-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #daf5e5;
  color: #006b36;
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.feedback-slot {
  margin-top: 0.75rem;
}

.message-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  border-top: 1px solid var(--q-line-soft);
  padding-top: 0.65rem;
  color: #64748b;
  font-size: 0.74rem;
  animation: section-rise var(--q-motion-med) both;
}

.message-feedback.feedback-attention {
  border: 1px solid #cfe2d6;
  border-radius: 10px;
  background: #f5fbf7;
  padding: 0.65rem;
  animation:
    section-rise var(--q-motion-med) both,
    attention-glow 1.8s ease-in-out 1;
}

.feedback-prompt {
  color: #1f3b2d;
  font-weight: 700;
}

.feedback-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.feedback-btn {
  border: 1px solid var(--q-line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.28rem 0.58rem;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.feedback-btn:hover {
  border-color: #b9d9c6;
  color: #0f5132;
  transform: translateY(-1px);
}

.feedback-btn.active {
  border-color: #9bd2b3;
  background: #eef8f2;
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.08);
  color: #0f5132;
}

.feedback-status {
  color: #64748b;
  font-size: 0.7rem;
}

.artifact-grid {
  display: grid;
  gap: 0.7rem;
}

.chart-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.chart-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #cce7d6;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fbfffc 0%, #f3fbf6 100%),
    linear-gradient(90deg, rgba(16, 32, 51, 0.08), transparent);
  padding: 0.85rem;
  box-shadow: 0 14px 32px rgba(0, 152, 69, 0.08);
  animation: section-rise var(--q-motion-med) both;
  transition:
    transform var(--q-motion-fast),
    box-shadow var(--q-motion-fast),
    border-color var(--q-motion-fast);
}

.chart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(31, 41, 51, 0.08);
}

.delivery-grid {
  display: grid;
  gap: 0.7rem;
}

.delivery-grid-head {
  display: grid;
  gap: 0.2rem;
}

.delivery-grid-head strong {
  color: var(--q-ink);
  font-size: 0.88rem;
}

.delivery-grid-head span {
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.4;
}

.delivery-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #cce7d6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfffc 0%, #f5fbf8 100%);
  padding: 0.85rem;
  box-shadow: 0 14px 32px rgba(31, 41, 51, 0.06);
  animation: section-rise var(--q-motion-med) both;
}

.watch-source-grid {
  display: grid;
  gap: 0.65rem;
}

.watch-source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  background: #fbfdff;
  padding: 0.85rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.watch-source-main {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.watch-source-kind {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
}

.watch-source-info {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.watch-source-title {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 800;
}

.watch-source-meta {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.watch-source-list {
  margin: 0.15rem 0 0;
  padding-left: 1rem;
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.35;
}

.watch-source-status {
  margin-top: 0.45rem;
  min-height: 1rem;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.35;
}

.watch-source-status-stored {
  color: #047857;
}

.watch-source-status-error {
  color: #b91c1c;
}

.watch-source-confirm-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(0, 152, 69, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #006b36;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.watch-source-confirm-btn:hover {
  border-color: rgba(0, 152, 69, 0.45);
  background: #edf9f1;
}

.watch-source-confirm-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.outlier-investigation-grid {
  display: grid;
  gap: 0.7rem;
}

.outlier-investigation-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  border: 1px solid #b7dcc7;
  border-radius: 8px;
  background: #fbfffd;
  padding: 0.85rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.outlier-card-main {
  min-width: 0;
}

.outlier-card-kicker {
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.outlier-card-title {
  margin-top: 0.16rem;
  color: #102033;
  font-size: 0.9rem;
  font-weight: 820;
}

.outlier-card-copy {
  margin-top: 0.25rem;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.4;
}

.outlier-card-actions {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.outlier-card-severity {
  border: 1px solid #f1c6c6;
  border-radius: 999px;
  background: #fff7f7;
  color: #991b1b;
  padding: 0.18rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 820;
}

.outlier-card-severity[data-severity="warning"] {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.outlier-investigation-open {
  min-height: 32px;
  border: 1px solid rgba(0, 152, 69, 0.32);
  border-radius: 8px;
  background: #ffffff;
  color: #006b36;
  padding: 0.38rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 820;
  cursor: pointer;
}

.outlier-investigation-open:hover {
  background: #edf9f1;
}

.change-pack-review-grid {
  display: grid;
  gap: 0.7rem;
}

.change-pack-review-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid #d9e3ee;
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.9rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.change-pack-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.change-pack-review-kind,
.change-pack-review-label {
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.change-pack-review-title {
  margin-top: 0.18rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
}

.change-pack-review-memory {
  max-width: 220px;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: right;
}

.change-pack-review-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.change-pack-review-list {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.4;
}

.change-pack-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.change-pack-action-text {
  min-width: 0;
}

.change-pack-action-btn {
  min-height: 30px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(0, 152, 69, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #006b36;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.change-pack-action-btn:hover {
  border-color: rgba(0, 152, 69, 0.45);
  background: #edf9f1;
}

.change-pack-action-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.change-pack-action-status {
  grid-column: 1 / -1;
  min-height: 0.95rem;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.3;
}

.change-pack-action-status-created {
  color: #047857;
}

.change-pack-action-status-error {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .watch-source-card {
    align-items: stretch;
    flex-direction: column;
  }

  .watch-source-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .watch-source-confirm-btn {
    width: 100%;
  }

  .change-pack-review-head,
  .change-pack-review-columns {
    grid-template-columns: 1fr;
  }

  .change-pack-review-head {
    display: grid;
  }

  .change-pack-review-memory {
    max-width: none;
    text-align: left;
  }

  .change-pack-action-item {
    grid-template-columns: 1fr;
  }

  .change-pack-action-btn {
    width: 100%;
  }
}

.delivery-card-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.delivery-kind {
  flex: 0 0 auto;
  min-width: 4.2rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #102033, #25405c);
  color: #ffffff;
  padding: 0.45rem 0.5rem;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.delivery-info {
  min-width: 0;
}

.delivery-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--q-ink);
  font-size: 0.9rem;
  font-weight: 760;
}

.delivery-channel-label {
  color: #0f5132;
  font-size: 0.72rem;
  font-weight: 800;
}

.delivery-preview-excerpt {
  display: -webkit-box;
  max-width: min(100%, 54rem);
  overflow: hidden;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.delivery-meta,
.delivery-id,
.delivery-artifact-count,
.delivery-approval-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.68rem;
}

.delivery-card-side {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.delivery-status-pill {
  border-radius: 999px;
  background: #eef8f2;
  color: #0f5132;
  border: 1px solid #b7e3c9;
  padding: 0.32rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.delivery-pending .delivery-status-pill {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.delivery-failed .delivery-status-pill {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.chart-kind {
  flex: 0 0 auto;
  min-width: 3.2rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #102033, #26445f);
  color: #ffffff;
  padding: 0.45rem 0.5rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 20px rgba(16, 32, 51, 0.12);
}

.chart-info {
  min-width: 0;
  flex: 1 1 auto;
}

.chart-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--q-ink);
  font-size: 0.9rem;
  font-weight: 760;
}

.chart-meta {
  margin-top: 0.12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.68rem;
}

.chart-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.chart-action {
  border: 1px solid #b7e3c9;
  border-radius: 8px;
  background: #ffffff;
  color: #0f5132;
  padding: 0.48rem 0.74rem;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--q-motion-fast),
    border-color var(--q-motion-fast),
    box-shadow var(--q-motion-fast);
}

.chart-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 152, 69, 0.09);
}

.chart-action-muted {
  color: #64748b;
}

.artifact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #cce7d6;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fbfffc 0%, #f3fbf6 100%),
    linear-gradient(90deg, rgba(0, 152, 69, 0.12), transparent);
  padding: 0.85rem;
  box-shadow: 0 14px 32px rgba(0, 152, 69, 0.08);
  animation: artifact-pop var(--q-motion-med) both;
  transition:
    transform var(--q-motion-fast),
    box-shadow var(--q-motion-fast),
    border-color var(--q-motion-fast);
}

.artifact-card:hover {
  border-color: #a9d9bd;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 152, 69, 0.12);
}

.artifact-card-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.artifact-kind {
  flex: 0 0 auto;
  min-width: 3.2rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #00a84d, #007f3f);
  color: #ffffff;
  padding: 0.45rem 0.5rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 20px rgba(0, 152, 69, 0.18);
  transition: transform var(--q-motion-fast);
}

.artifact-card:hover .artifact-kind {
  transform: scale(1.03);
}

.artifact-info {
  min-width: 0;
}

.artifact-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 760;
  color: var(--q-ink);
}

.artifact-meta,
.artifact-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  color: #64748b;
}

.artifact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.artifact-action {
  border-radius: 8px;
  border: 1px solid #b7e3c9;
  padding: 0.48rem 0.74rem;
  font-size: 0.72rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition:
    transform 150ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.artifact-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(31, 41, 51, 0.08);
}

.artifact-action:active {
  transform: translateY(0) scale(0.98);
}

.artifact-preview {
  background: #ffffff;
  color: #0f5132;
}

.artifact-download {
  background: linear-gradient(145deg, #00a84d, #008542);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 152, 69, 0.18);
}

.artifact-download:disabled,
.artifact-downloading {
  cursor: wait;
  opacity: 0.72;
}

.artifact-disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  cursor: default;
}

.usage-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
  animation: section-rise var(--q-motion-med) both;
}

.usage-meta {
  font-size: 0.69rem;
  font-weight: 500;
  color: #64748b;
}

.usage-sep {
  font-size: 0.68rem;
  color: #c0cad7;
}

.tool-slot {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  max-height: 18rem;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.tool-current {
  display: grid;
  gap: 0.35rem;
}

.tool-history {
  border: 1px solid var(--q-line-soft);
  border-radius: 10px;
  background: rgba(248, 251, 249, 0.78);
  overflow: hidden;
  transition:
    border-color var(--q-motion-fast),
    box-shadow var(--q-motion-fast);
}

.tool-history[open] {
  border-color: #cfe2d6;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.tool-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  list-style: none;
  cursor: pointer;
  padding: 0.42rem 0.55rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  user-select: none;
}

.tool-history > summary::-webkit-details-marker {
  display: none;
}

.tool-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #edf8f1;
  color: #04703c;
  font-size: 0.68rem;
  font-weight: 800;
}

.tool-history-list {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid var(--q-line-soft);
  padding: 0.45rem 0.55rem;
  animation: details-open var(--q-motion-med) both;
}

.trace-inline {
  border-left: 2px solid #cfe2d6;
  padding-left: 0.65rem;
  margin-left: 0.2rem;
  animation: section-rise var(--q-motion-med) both;
  transition:
    border-color var(--q-motion-fast),
    transform var(--q-motion-fast);
}

.trace-inline:hover {
  transform: translateX(1px);
}

.trace-inline summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: #475569;
  padding: 0.14rem 0;
}

.trace-inline summary::-webkit-details-marker {
  display: none;
}

.trace-inline-marker {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--q-green);
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.12);
  flex: 0 0 auto;
}

.trace-inline-step {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

.trace-inline-tool {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  min-width: 0;
  overflow-wrap: anywhere;
}

.trace-inline-error {
  border-left-color: #fecaca;
}

.trace-inline-error .trace-inline-marker {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.trace-inline-error .trace-inline-tool {
  color: #991b1b;
}

.trace-inline-body {
  display: grid;
  padding: 0.4rem 0 0.1rem 1rem;
  animation: details-open var(--q-motion-med) both;
}

.reasoning-box {
  border: 1px solid rgba(0, 152, 69, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(248, 251, 249, 0.96), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, rgba(0, 152, 69, 0.07), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  animation: reasoning-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.reasoning-box:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(0, 152, 69, 0.08);
}

.reasoning-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.85rem;
  user-select: none;
  transition: background-color 180ms ease;
}

.reasoning-box summary:hover {
  background: rgba(255, 255, 255, 0.55);
}

.reasoning-box summary::-webkit-details-marker {
  display: none;
}

.reasoning-box summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid #64748b;
  border-bottom: 1.5px solid #64748b;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  margin-right: 0.15rem;
}

.reasoning-box[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.reasoning-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.reasoning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  color: #006b36;
  background: linear-gradient(135deg, rgba(218, 245, 229, 0.95), rgba(239, 250, 243, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  flex: 0 0 auto;
}

.reasoning-title {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #0f5132;
}

.reasoning-body {
  border-top: 1px solid rgba(0, 152, 69, 0.14);
  padding: 0.15rem 0.85rem 0.8rem;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.55;
}

.reasoning-body.reasoning-streaming::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.38rem;
  border-radius: 999px;
  background: var(--q-green);
  vertical-align: middle;
  animation: reasoning-tail 1s ease-in-out infinite;
}

.reasoning-body p:first-child {
  margin-top: 0.35rem;
}

@keyframes reasoning-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reasoning-tail {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.95;
    transform: scale(1);
  }
}

.trace-detail {
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #f8fbf9;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.trace-detail + .trace-detail {
  margin-top: 0.45rem;
}

.trace-detail summary {
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  list-style: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.trace-detail summary::-webkit-details-marker {
  display: none;
}

.trace-detail summary:hover {
  background: rgba(255, 255, 255, 0.55);
}

.trace-detail pre {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--q-line);
  border-radius: 0;
  background: #f8fbf9;
  padding: 0.55rem;
  width: 100%;
  max-width: 100%;
  max-height: 18rem;
  overflow-x: auto;
  overflow-y: auto;
  font-size: 0.68rem;
  line-height: 1.45;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  box-sizing: border-box;
}

#newChatBtn,
#sendBtn {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 152, 69, 0.18);
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

#newChatBtn:hover,
#sendBtn:hover {
  transform: translateY(-1px);
}

#newChatBtn:active,
#sendBtn:active {
  transform: translateY(0);
}

#prompt,
#developerPrompt {
  border-color: var(--q-line);
  border-radius: 10px;
  color: var(--q-ink);
}

#prompt {
  box-sizing: border-box;
  min-height: 5.3rem;
  border: 0;
  background: transparent;
}

#prompt:focus,
#developerPrompt:focus {
  box-shadow: 0 0 0 2px rgba(0, 152, 69, 0.1);
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 1;
  transition:
    opacity var(--q-motion-med),
    visibility var(--q-motion-med);
}

.preview-modal.hidden {
  display: none;
  opacity: 0;
}

.outlier-investigation-modal {
  position: fixed;
  inset: 0;
  z-index: 68;
  display: grid;
  place-items: center;
  padding: clamp(0.65rem, 1.8vw, 1.2rem);
}

.outlier-investigation-modal.hidden {
  display: none;
}

.outlier-investigation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  animation: fade-in var(--q-motion-med) both;
}

.outlier-investigation-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 98vw);
  height: min(790px, 92vh);
  border: 1px solid rgba(190, 214, 200, 0.95);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 34px 88px rgba(15, 23, 42, 0.26);
  overflow: hidden;
  animation: modal-in var(--q-motion-med) both;
}

.outlier-investigation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--q-line);
  background: #fbfdfc;
  padding: 0.95rem 1rem;
}

.outlier-investigation-kicker,
.outlier-section-label {
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.outlier-investigation-header h2 {
  margin: 0.18rem 0 0;
  color: #102033;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 840;
  line-height: 1.15;
}

.outlier-investigation-header p {
  margin: 0.32rem 0 0;
  max-width: 54rem;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.outlier-investigation-close {
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 780;
  cursor: pointer;
}

.outlier-investigation-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0.9rem;
  background: #f7faf8;
}

.outlier-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.outlier-summary-strip > div {
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.7rem;
}

.outlier-summary-strip span {
  display: block;
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 760;
  text-transform: uppercase;
}

.outlier-summary-strip strong {
  display: block;
  margin-top: 0.2rem;
  color: #102033;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.outlier-priority-actionbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 0.85rem;
  border: 1px solid #b7dcc7;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem 0.85rem;
}

.outlier-closure-section {
  margin: 0.85rem 0 0;
}

.outlier-priority-actionbar p {
  margin: 0.22rem 0 0;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.42;
}

.outlier-priority-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.outlier-priority-actionbar .outlier-deeplink,
.outlier-priority-actionbar .outlier-closure-actions {
  margin-top: 0;
}

.outlier-priority-actionbar .outlier-closure-status,
.outlier-priority-actionbar .outlier-artifact-grid {
  grid-column: 1 / -1;
  margin-top: 0;
}

.outlier-investigation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 0.85rem;
  align-items: start;
}

.outlier-column {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.outlier-panel,
.outlier-panel-wide {
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
}

.outlier-panel-wide {
  min-width: 0;
}

.outlier-logic-chain {
  display: grid;
  gap: 0.65rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.outlier-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.55rem;
}

.outlier-step-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eaf7ef;
  color: #006b36;
  font-size: 0.72rem;
  font-weight: 820;
}

.outlier-step-title {
  color: #102033;
  font-size: 0.82rem;
  font-weight: 820;
}

.outlier-step p,
.outlier-panel p {
  margin: 0.2rem 0 0;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.48;
}

.outlier-step-ref {
  display: inline-block;
  margin-top: 0.32rem;
  color: #64748b;
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.outlier-drilldown-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.outlier-drilldown-list li {
  display: grid;
  gap: 0.15rem;
  color: #475569;
  font-size: 0.76rem;
}

.outlier-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.55rem 0 0.65rem;
}

.outlier-quality-grid div {
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #f8fbf9;
  padding: 0.52rem;
}

.outlier-quality-grid span {
  display: block;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 780;
  text-transform: uppercase;
}

.outlier-quality-grid strong {
  display: block;
  margin-top: 0.18rem;
  color: #102033;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.outlier-root-cause-group {
  margin-top: 0.65rem;
}

.outlier-root-cause-group > strong {
  display: block;
  color: #102033;
  font-size: 0.78rem;
  font-weight: 820;
}

.outlier-root-cause-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.38rem 0 0;
  padding-left: 1rem;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.45;
}

.outlier-reverse-trace {
  display: grid;
  gap: 0.55rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.outlier-reverse-trace li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.55rem;
}

.outlier-reverse-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #b7dcc7;
  border-radius: 8px;
  color: #006b36;
  font-size: 0.72rem;
  font-weight: 820;
}

.outlier-reverse-trace strong {
  color: #102033;
  font-size: 0.8rem;
}

.outlier-reverse-trace p {
  margin: 0.16rem 0 0;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.45;
}

.outlier-reverse-trace small {
  display: inline-block;
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.outlier-table-wrap {
  margin-top: 0.65rem;
  overflow: auto;
}

.outlier-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.outlier-table-wrap th,
.outlier-table-wrap td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.45rem 0.5rem;
  color: #334155;
  text-align: left;
  white-space: nowrap;
}

.outlier-table-wrap th {
  color: #64748b;
  font-weight: 820;
}

.outlier-deeplink {
  display: inline-flex;
  margin-top: 0.6rem;
  border: 1px solid rgba(0, 152, 69, 0.32);
  border-radius: 8px;
  background: #ffffff;
  color: #006b36;
  padding: 0.4rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 820;
  text-decoration: none;
}

.outlier-closure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.outlier-closure-actions button {
  min-height: 34px;
  border: 1px solid #b7e3c9;
  border-radius: 8px;
  background: #ffffff;
  color: #0f5132;
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
}

.outlier-closure-actions button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.outlier-closure-status {
  margin-top: 10px;
  color: #546170;
  font-size: 0.78rem;
  line-height: 1.45;
}

.outlier-closure-success {
  color: #0f7a3b;
}

.outlier-closure-error {
  color: #b42318;
}

.outlier-artifact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.outlier-workspace-shell {
  display: grid;
  gap: 0.85rem;
}

.outlier-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #eef5f1;
  padding: 3px;
}

.outlier-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526173;
  padding: 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 780;
  cursor: pointer;
}

.outlier-tabs button.is-active {
  background: #ffffff;
  color: #006b36;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.outlier-tab-panel {
  display: none;
}

.outlier-tab-panel.is-active {
  display: block;
}

.outlier-tab-grid {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}

.outlier-tab-grid-outliers {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
}

.outlier-tab-grid-root {
  grid-template-columns: minmax(0, 1fr) minmax(245px, 0.3fr);
}

.outlier-tab-grid-export {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr) minmax(250px, 0.65fr);
}

.outlier-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.outlier-panel-head h3 {
  margin: 0.16rem 0 0;
  color: #102033;
  font-size: 0.98rem;
  line-height: 1.18;
}

.outlier-panel-head > span {
  border: 1px solid #b7dcc7;
  border-radius: 999px;
  background: #f3fbf6;
  color: #006b36;
  padding: 0.22rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 820;
  white-space: nowrap;
}

.outlier-signal-table td:first-child {
  border-left: 3px solid transparent;
}

.outlier-signal-table .outlier-row-highlight td:first-child {
  border-left-color: #2dd4bf;
}

.outlier-amplitude {
  display: block;
  width: min(105px, 16vw);
  height: 8px;
  border-radius: 999px;
  background: #e6edf0;
  overflow: hidden;
}

.outlier-amplitude span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #009845, #2dd4bf);
}

.outlier-severity-chip {
  display: inline-flex;
  border: 1px solid #b7dcc7;
  border-radius: 999px;
  background: #f3fbf6;
  color: #0f766e;
  padding: 0.14rem 0.46rem;
  font-size: 0.66rem;
  font-weight: 820;
  text-transform: uppercase;
}

.outlier-severity-chip[data-severity="critical"],
.outlier-severity-chip[data-severity="high"] {
  border-color: #99f6e4;
  background: #12312f;
  color: #99f6e4;
}

.outlier-insight-column,
.outlier-root-workspace,
.outlier-governed-delivery {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.outlier-narrative-list,
.outlier-history-list {
  display: grid;
  gap: 0.6rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.outlier-narrative-list li,
.outlier-history-list li {
  display: grid;
  gap: 0.18rem;
}

.outlier-narrative-list strong,
.outlier-history-list strong {
  color: #102033;
  font-size: 0.78rem;
}

.outlier-narrative-list span,
.outlier-history-list span {
  color: #526173;
  font-size: 0.76rem;
  line-height: 1.45;
}

.outlier-distribution {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.outlier-distribution-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  gap: 0.55rem;
  align-items: center;
  color: #526173;
  font-size: 0.72rem;
}

.outlier-distribution-row div {
  height: 8px;
  border-radius: 999px;
  background: #e6edf0;
  overflow: hidden;
}

.outlier-distribution-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2dd4bf;
}

.outlier-root-trace-panel {
  position: sticky;
  top: 0;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
}

.outlier-root-trace-title {
  color: #102033;
  font-size: 0.84rem;
  font-weight: 840;
}

.outlier-root-trace-list {
  display: grid;
  gap: 0;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.outlier-root-trace-step {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.5rem;
  min-height: 60px;
}

.outlier-root-trace-marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  height: 13px;
  margin-top: 0.15rem;
  border: 2px solid #9fb2aa;
  border-radius: 999px;
  background: #ffffff;
}

.outlier-root-trace-step i {
  position: absolute;
  top: 16px;
  bottom: 2px;
  left: 6px;
  border-left: 2px solid #c8d7d1;
}

.outlier-root-trace-step[data-confidence="medium"] i {
  opacity: 0.58;
}

.outlier-root-trace-step[data-confidence="low"] i {
  border-left-style: dashed;
  opacity: 0.42;
}

.outlier-root-trace-step strong {
  color: #102033;
  font-size: 0.78rem;
}

.outlier-root-trace-step p {
  margin: 0.12rem 0 0;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.35;
}

.outlier-root-trace-step small {
  display: inline-block;
  margin-top: 0.22rem;
  color: #64748b;
  font-size: 0.64rem;
}

.outlier-root-trace-step.is-active .outlier-root-trace-marker {
  border-color: #009845;
  background: #009845;
  box-shadow: 0 0 0 4px rgba(0, 152, 69, 0.12);
}

.outlier-root-trace-step.is-anomaly .outlier-root-trace-marker {
  border-color: #2dd4bf;
  background: #12312f;
}

.outlier-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.outlier-pack-tile {
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 0.75rem;
}

.outlier-pack-tile span,
.outlier-delivery-preview-head span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 780;
  text-transform: uppercase;
}

.outlier-pack-tile strong {
  display: block;
  margin-top: 0.22rem;
  color: #006b36;
  font-size: 0.92rem;
}

.outlier-pack-tile button,
.outlier-delivery-actions button {
  min-height: 30px;
  border: 1px solid #b7e3c9;
  border-radius: 8px;
  background: #ffffff;
  color: #0f5132;
  padding: 0 0.62rem;
  font-size: 0.72rem;
  font-weight: 780;
}

.outlier-delivery-segments {
  display: inline-flex;
  gap: 3px;
  margin: 0.65rem 0;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #eef5f1;
  padding: 3px;
}

.outlier-delivery-segments span {
  border-radius: 6px;
  color: #526173;
  padding: 0.25rem 0.52rem;
  font-size: 0.7rem;
  font-weight: 780;
}

.outlier-delivery-segments .is-active {
  background: #ffffff;
  color: #006b36;
}

.outlier-delivery-preview-card {
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 0.78rem;
}

.outlier-delivery-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.outlier-delivery-preview-head strong {
  color: #102033;
  font-size: 0.84rem;
}

.outlier-attachment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.outlier-attachment-row span,
.outlier-approval-badge {
  border: 1px solid #b7dcc7;
  border-radius: 999px;
  background: #f3fbf6;
  color: #006b36;
  padding: 0.18rem 0.48rem;
  font-size: 0.66rem;
  font-weight: 820;
}

.outlier-governed-delivery label {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 780;
  text-transform: uppercase;
}

.outlier-governed-delivery label span {
  color: #102033;
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: none;
}

.outlier-approval-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.7rem;
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.outlier-delivery-timeline {
  display: grid;
  gap: 0.38rem;
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: #64748b;
  font-size: 0.74rem;
}

.outlier-delivery-timeline .is-done {
  color: #006b36;
}

.outlier-delivery-timeline .is-active {
  color: #92400e;
  font-weight: 820;
}

.outlier-delivery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.outlier-delivery-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.outlier-investigation-modal:has(.qlik-outlier-page) {
  z-index: 80;
  display: block;
  padding: 0;
}

.outlier-investigation-modal:has(.qlik-outlier-page) .outlier-investigation-backdrop,
.outlier-investigation-modal:has(.qlik-outlier-page) .outlier-investigation-header {
  display: none;
}

.outlier-investigation-modal:has(.qlik-outlier-page) .outlier-investigation-panel {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.outlier-investigation-modal:has(.qlik-outlier-page) .outlier-investigation-body {
  padding: 0;
  background: #ffffff;
}

.qlik-outlier-page {
  min-height: 100%;
  background: #ffffff;
  color: #0b1220;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.qlik-outlier-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr) auto;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid #d9e1e7;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 32px;
}

.qlik-window-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.qlik-window-title strong {
  color: #0b1220;
  font-size: 21px;
  font-weight: 760;
  white-space: nowrap;
}

.qlik-window-title span {
  color: #607086;
  font-size: 12px;
}

.qlik-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.qlik-logo {
  color: #4b5563;
  font-size: 34px;
  letter-spacing: -1.9px;
  line-height: 1;
  white-space: nowrap;
}

.qlik-logo b {
  color: #009845;
}

.qlik-product-title {
  margin-left: 28px;
  padding-left: 28px;
  border-left: 1px solid #d9e1e7;
  color: #0b1220;
  font-size: 21px;
  font-weight: 760;
  white-space: nowrap;
}

.qlik-outlier-nav {
  display: flex;
  justify-content: center;
  align-self: stretch;
  gap: 48px;
}

.qlik-outlier-nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #0b1220;
  padding: 0 2px;
  font-size: 16px;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.qlik-outlier-nav button:hover {
  color: #007a35;
}

.qlik-outlier-nav button.is-active {
  border-bottom-color: #009845;
  font-weight: 760;
}

.qlik-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.qlik-top-actions button {
  border: 0;
  background: transparent;
  color: #0b1220;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.qlik-top-actions span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e9ee;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.qlik-top-actions .qlik-close {
  border: 1px solid #d9e1e7;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px 11px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.qlik-top-actions .qlik-close:hover,
.qlik-delivery-card button:hover,
.qlik-card button:hover,
.qlik-filter-control select:hover,
.qlik-search input:hover,
.qlik-pager select:hover {
  border-color: #9bd2b3;
  background: #f4fbf7;
  color: #006b36;
}

.qlik-top-actions .qlik-close:focus-visible,
.qlik-delivery-card button:focus-visible,
.qlik-card button:focus-visible,
.qlik-filter-control select:focus-visible,
.qlik-search input:focus-visible,
.qlik-pager select:focus-visible {
  outline: 2px solid rgba(0, 152, 69, 0.32);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.qlik-outlier-content {
  padding: 24px 35px 34px;
}

.qlik-outlier-content h1 {
  margin: 0;
  color: #0b1220;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.qlik-outlier-subtitle {
  margin: 12px 0 16px;
  color: #3f4e63;
  font-size: 15px;
}

.qlik-outlier-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  height: 105px;
  margin-bottom: 22px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  background: #ffffff;
}

.qlik-outlier-summary > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  height: 54px;
  padding: 0 56px;
  border-right: 1px solid #d9e1e7;
}

.qlik-outlier-summary > div:last-child {
  border-right: 0;
}

.qlik-summary-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #cfe2d4;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1faf4, #edf7f1);
  color: #009845;
}

.qlik-summary-icon.is-teal {
  border-color: #c8e2e2;
  background: linear-gradient(180deg, #f1fbfb, #ebf7f7);
  color: #008b8b;
}

.qlik-summary-icon.is-gray {
  border-color: #d8dde4;
  background: linear-gradient(180deg, #f9fafb, #eef1f4);
  color: #111827;
}

.qlik-summary-icon svg,
.qlik-ai-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qlik-summary-copy {
  min-width: 0;
}

.qlik-outlier-summary strong {
  display: block;
  color: #009845;
  font-size: 24px;
  line-height: 1;
}

.qlik-outlier-summary strong.is-dark {
  color: #0b1220;
}

.qlik-outlier-summary span:not(.qlik-summary-icon) {
  display: block;
  margin-top: 9px;
  color: #3d4a5f;
  font-size: 15px;
}

.qlik-outlier-main {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(420px, 1fr);
  gap: 24px;
}

.qlik-card {
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.qlik-card:hover,
.qlik-delivery-card:hover,
.qlik-root-card:hover {
  border-color: #b8d7c4;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.qlik-card-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px minmax(240px, 300px);
  align-items: center;
  min-height: 64px;
  gap: 14px;
  border-bottom: 1px solid #d9e1e7;
  padding: 12px 18px;
}

.qlik-card-toolbar h2,
.qlik-ai-card h2,
.qlik-chart-card h2 {
  margin: 0;
  color: #0b1220;
  font-size: 16px;
  font-weight: 760;
}

.qlik-toolbar-btn,
.qlik-filter-control,
.qlik-search,
.qlik-more {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid #d9e1e7;
  border-radius: 5px;
  background: #ffffff;
  color: #0b1220;
  padding: 0 18px;
  font-size: 14px;
}

.qlik-filter-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px;
  color: #526173;
}

.qlik-filter-control span {
  font-size: 12px;
  font-weight: 760;
}

.qlik-filter-control select,
.qlik-search input,
.qlik-pager select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0b1220;
  font: inherit;
}

.qlik-search {
  padding: 0 12px;
}

.qlik-search input::placeholder {
  color: #637083;
}

.qlik-more {
  justify-content: center;
  padding: 0;
  font-size: 25px;
}

.qlik-table-scroll {
  overflow: auto;
}

.qlik-outlier-table {
  width: 100%;
  border-collapse: collapse;
}

.qlik-outlier-table th,
.qlik-outlier-table td {
  height: 58px;
  border-bottom: 1px solid #e5e9ee;
  padding: 0 30px;
  color: #0b1220;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
}

.qlik-outlier-table th {
  height: 58px;
  font-weight: 760;
}

.qlik-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #0b1220;
  padding: 8px 0;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.qlik-sort-btn span {
  color: #8a96a8;
  font-size: 11px;
  opacity: 0;
  transform: rotate(0deg);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    color 150ms ease;
}

.qlik-sort-btn:hover,
.qlik-sort-btn.is-asc,
.qlik-sort-btn.is-desc {
  color: #006b36;
}

.qlik-sort-btn:hover span,
.qlik-sort-btn.is-asc span,
.qlik-sort-btn.is-desc span {
  color: #006b36;
  opacity: 1;
}

.qlik-sort-btn.is-desc span {
  transform: rotate(180deg);
}

.qlik-outlier-table tr.is-key td:first-child {
  border-left: 5px solid #0f9b95;
}

.qlik-outlier-table .is-positive {
  color: #007a2f;
}

.qlik-outlier-table .is-negative {
  color: #e0182d;
}

.qlik-severity {
  display: inline-flex;
  justify-content: center;
  min-width: 69px;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  background: #f7f8fa;
  color: #273244;
  padding: 6px 12px;
  font-size: 13px;
}

.qlik-severity-critical {
  border-color: #79c8c1;
  background: #f4ffff;
  color: #00746e;
}

.qlik-severity-high {
  border-color: #bddcc3;
  background: #f3fbf4;
  color: #007a2f;
}

.qlik-amp {
  display: inline-grid;
  grid-template-columns: 26px 122px;
  align-items: center;
  gap: 12px;
}

.qlik-amp i {
  display: block;
  height: 5px;
  background: repeating-linear-gradient(90deg, #cfd6de 0 18px, transparent 18px 22px);
}

.qlik-amp b {
  display: block;
  height: 5px;
  background: #0f9b95;
}

.qlik-pager {
  display: flex;
  align-items: center;
  height: 73px;
  padding: 0 30px;
  color: #47556a;
  font-size: 14px;
}

.qlik-pager select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 74px;
  height: 36px;
  margin-left: 10px;
  border: 1px solid #d9e1e7;
  border-radius: 5px;
  padding: 0 12px;
  color: #334155;
  font-weight: 500;
}

.qlik-pager div {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.qlik-pager div strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #009845;
  border-radius: 5px;
  color: #0b1220;
  font-weight: 500;
}

.qlik-side {
  display: grid;
  gap: 15px;
}

.qlik-ai-card,
.qlik-chart-card {
  padding: 18px 16px;
}

.qlik-ai-card h2,
.qlik-chart-card h2 {
  margin-bottom: 14px;
}

.qlik-ai-narrative-card {
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  padding: 0 14px;
}

.qlik-ai-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid #e5e9ee;
  padding: 19px 0;
}

.qlik-ai-row:last-child {
  border-bottom: 0;
}

.qlik-ai-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #d8e1e8;
  border-radius: 50%;
  background: #fbfcfd;
  color: #0f9b95;
}

.qlik-ai-icon.is-green {
  background: #f4fbf4;
  color: #009845;
}

.qlik-ai-row h3 {
  margin: 2px 0 8px;
  color: #0b1220;
  font-size: 14px;
  font-weight: 760;
}

.qlik-ai-row p {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
}

.qlik-mag-chart {
  height: 214px;
  padding: 10px 4px 0;
}

.qlik-mag-bars {
  display: grid;
  grid-template-columns: 34px repeat(7, 1fr);
  align-items: end;
  gap: 17px;
  height: 145px;
}

.qlik-mag-axis {
  display: grid;
  align-content: space-between;
  height: 116px;
  color: #47556a;
  font-size: 14px;
}

.qlik-mag-col {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #243044;
  font-size: 14px;
}

.qlik-mag-col i {
  width: 36px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #e0e5ea, #cbd2d8);
}

.qlik-mag-col i.green {
  background: linear-gradient(180deg, #69c77b, #36aa54);
}

.qlik-mag-col i.teal {
  background: linear-gradient(180deg, #0fa09a, #008d86);
}

.qlik-mag-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 17px;
  margin-left: 34px;
  border-top: 1px solid #dce2e8;
  padding-top: 11px;
  color: #47556a;
  font-size: 13px;
  text-align: center;
}

.qlik-mag-x {
  margin-top: 18px;
  color: #47556a;
  text-align: center;
  font-size: 14px;
}

.qlik-outlier-page .outlier-tab-grid-root,
.qlik-outlier-page .outlier-tab-grid-export {
  margin-top: 20px;
}

.qlik-root-page {
  display: none;
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: calc(100vh - 72px);
  background: #ffffff;
}

.qlik-root-page.is-active {
  display: grid;
}

.qlik-root-main {
  min-width: 0;
  border-right: 1px solid #d9e1e7;
  padding: 26px 24px 18px;
}

.qlik-root-main h1 {
  margin: 0;
  color: #0b1220;
  font-size: 28px;
  letter-spacing: -0.4px;
  line-height: 1.12;
}

.qlik-root-subtitle {
  margin: 10px 0 16px;
  color: #536174;
  font-size: 15px;
}

.qlik-root-summary {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr 1fr 1fr;
  align-items: center;
  height: 86px;
  margin-bottom: 18px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  background: #ffffff;
}

.qlik-root-summary > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 48px;
  border-right: 1px solid #d9e1e7;
  padding: 0 22px;
}

.qlik-root-summary > div:last-child {
  border-right: 0;
}

.qlik-root-summary-icon,
.qlik-root-round {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.qlik-root-summary-icon {
  width: 46px;
  height: 46px;
  border: 1px solid #d8dde4;
  background: #f9fafb;
  color: #111827;
}

.qlik-root-summary-icon.green {
  border-color: #cfe2d4;
  background: #f1faf4;
  color: #009845;
}

.qlik-root-summary-icon.teal {
  border-color: #c8e2e2;
  background: #f1fbfb;
  color: #008b8b;
}

.qlik-root-summary-icon svg,
.qlik-root-step-icon svg,
.qlik-root-round svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qlik-root-summary strong {
  display: block;
  color: #0b1220;
  font-size: 18px;
  line-height: 1.1;
}

.qlik-root-summary small {
  display: block;
  margin-top: 7px;
  color: #3f4e63;
  font-size: 14px;
}

.qlik-root-summary .green-text {
  color: #009845;
  font-weight: 760;
}

.qlik-root-grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 14px;
}

.qlik-root-card {
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.qlik-root-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #0b1220;
  font-size: 16px;
  font-weight: 760;
}

.qlik-root-hypothesis,
.qlik-business-impact {
  padding: 16px;
}

.qlik-root-hypothesis-box {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid #d8e6d9;
  border-radius: 6px;
  background: #f7fbf7;
  padding: 20px 14px;
}

.qlik-root-hypothesis-box strong {
  display: block;
  margin-bottom: 10px;
}

.qlik-root-hypothesis-box p,
.qlik-recommended-action p {
  margin: 0;
  color: #283449;
  line-height: 1.5;
}

.qlik-root-hypothesis-box code,
.qlik-recommended-action code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.qlik-root-round {
  width: 48px;
  height: 48px;
  border: 1px solid #b7dfc3;
  background: #f2faf4;
  color: #009845;
}

.qlik-root-round.teal {
  border-color: #c8e2e2;
  background: #f2fbfb;
  color: #008b8b;
}

.qlik-key-evidence {
  padding: 16px;
}

.qlik-evidence-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 70px;
  align-items: center;
  min-height: 34px;
  border: 1px solid #e3e8ee;
  border-bottom: 0;
  padding: 0 12px;
  color: #1d2940;
  font-size: 14px;
}

.qlik-evidence-row:first-of-type {
  border-radius: 6px 6px 0 0;
}

.qlik-evidence-row:last-of-type {
  border-bottom: 1px solid #e3e8ee;
  border-radius: 0 0 6px 6px;
}

.qlik-evidence-row span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #25aa57;
  border-radius: 50%;
  color: #25aa57;
  font-size: 11px;
}

.qlik-evidence-row b {
  font-weight: 500;
}

.qlik-evidence-row em {
  color: #17223a;
  font-style: normal;
  text-align: right;
}

.qlik-key-evidence a,
.qlik-changed-evidence a {
  display: inline-block;
  margin-top: 14px;
  color: #15346b;
  font-size: 14px;
  font-weight: 650;
}

.qlik-impact-box {
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  padding: 16px 12px;
}

.qlik-impact-box > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid #e5e9ee;
  padding: 0 0 18px;
}

.qlik-impact-box > div:last-child {
  border-bottom: 0;
  padding: 18px 0 0;
}

.qlik-impact-box p {
  margin: 0;
  color: #283449;
  line-height: 1.45;
}

.qlik-impact-box strong {
  display: block;
  margin-bottom: 6px;
  color: #0b1220;
}

.qlik-changed-evidence {
  padding: 16px;
}

.qlik-changed-evidence h2 span {
  font-weight: 400;
}

.qlik-changed-evidence table {
  width: 100%;
  border-collapse: collapse;
}

.qlik-changed-evidence th,
.qlik-changed-evidence td {
  height: 36px;
  border-top: 1px solid #e5e9ee;
  padding: 0 10px;
  color: #0b1220;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}

.qlik-changed-evidence th {
  font-weight: 760;
}

.qlik-changed-evidence .pos {
  color: #009845;
}

.qlik-recommended-action {
  margin-top: 14px;
  padding: 16px;
}

.qlik-recommended-action div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.qlik-recommended-action button {
  height: 36px;
  min-width: 128px;
  border: 1px solid #d9e1e7;
  border-radius: 5px;
  background: #ffffff;
  color: #17223a;
  font-size: 14px;
  font-weight: 650;
}

.qlik-root-drawer {
  min-width: 0;
  padding: 24px;
  background: #ffffff;
}

.qlik-root-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9e1e7;
  padding-bottom: 14px;
  color: #0b1220;
  font-size: 17px;
  font-weight: 760;
}

.qlik-root-drawer-head button {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.qlik-root-trace-list {
  display: grid;
  gap: 32px;
  margin: 12px 0 22px;
}

.qlik-root-trace-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 30px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 64px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  background: #ffffff;
  padding: 0 14px;
}

.qlik-root-trace-card::before {
  content: "";
  position: absolute;
  top: 63px;
  left: 28px;
  height: 33px;
  border-left: 4px solid #14213d;
}

.qlik-root-trace-card.dashed::before {
  border-left: 4px dashed #a4abb5;
}

.qlik-root-trace-card:last-child::before {
  display: none;
}

.qlik-root-trace-card.active-teal {
  border-color: #0f9b95;
  background: #f2ffff;
}

.qlik-root-trace-card.active-green {
  border-color: #009845;
  background: #f3fbf4;
}

.qlik-root-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #c9d1da;
  border-radius: 50%;
  background: #ffffff;
  color: #0b1220;
  font-size: 14px;
  font-weight: 760;
}

.qlik-root-trace-card.active-teal .qlik-root-index {
  border-color: #0f9b95;
  background: #0f9b95;
  color: #ffffff;
}

.qlik-root-trace-card.active-green .qlik-root-index {
  border-color: #009845;
  background: #009845;
  color: #ffffff;
}

.qlik-root-step-icon {
  display: grid;
  place-items: center;
  color: #111827;
}

.qlik-root-step-copy strong,
.qlik-root-step-copy small {
  display: block;
}

.qlik-root-step-copy strong {
  color: #0b1220;
  font-size: 14px;
}

.qlik-root-step-copy small {
  margin-top: 5px;
  color: #3f4e63;
  font-size: 13px;
}

.qlik-root-confidence {
  color: #283449;
  text-align: right;
  font-size: 14px;
}

.qlik-root-legend {
  border-top: 1px solid #d9e1e7;
  padding-top: 14px;
}

.qlik-root-legend strong {
  color: #0b1220;
  font-size: 14px;
}

.qlik-root-legend div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  margin-top: 12px;
  color: #3f4e63;
  font-size: 14px;
}

.qlik-root-legend .line {
  align-self: center;
  width: 48px;
  border-top: 4px solid #14213d;
}

.qlik-root-legend .line.medium {
  border-color: #8d98a6;
}

.qlik-root-legend .line.low {
  border-color: #cbd3dc;
  border-top-style: dashed;
}

.qlik-delivery-page {
  display: grid;
  gap: 14px;
  background: #ffffff;
  color: #0b1220;
  padding: 28px 30px 18px;
}

.qlik-delivery-head {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.qlik-delivery-head h1 {
  margin: 0 0 10px;
  color: #0b1220;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.8px;
}

.qlik-delivery-head p,
.qlik-delivery-card p {
  margin: 0;
  color: #35445a;
  font-size: 14px;
  line-height: 1.5;
}

.qlik-delivery-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 78px;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  background: #ffffff;
}

.qlik-delivery-summary > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 46px;
  padding: 0 34px;
  border-right: 1px solid #d6dee7;
}

.qlik-delivery-summary > div:last-child {
  border-right: 0;
}

.qlik-delivery-summary strong {
  display: block;
  color: #172033;
  font-size: 17px;
  line-height: 1.15;
}

.qlik-delivery-summary small {
  display: block;
  margin-top: 6px;
  color: #35445a;
  font-size: 14px;
}

.qlik-delivery-summary .green-text {
  color: #007a35;
  font-weight: 760;
}

.qlik-delivery-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1.12fr) minmax(330px, 0.9fr) minmax(390px, 1.03fr);
  gap: 14px;
  align-items: stretch;
}

.qlik-delivery-card {
  min-width: 0;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  background: #ffffff;
  padding: 18px;
}

.qlik-delivery-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.qlik-delivery-card h2 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 18px;
  line-height: 1.2;
}

.qlik-delivery-card h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  line-height: 1.25;
}

.qlik-delivery-card button,
.qlik-delivery-card a {
  min-height: 34px;
  border: 1px solid #cfd8e2;
  border-radius: 5px;
  background: #ffffff;
  color: #0b3b75;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.qlik-delivery-card button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.qlik-delivery-card .qlik-delivery-primary {
  min-width: 162px;
  border-color: #00873a;
  background: #00873a;
  color: #ffffff;
}

.qlik-delivery-pack-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  padding: 18px 16px 0;
}

.qlik-file-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #cbd5df;
  border-radius: 50%;
  background: #f8fafc;
  color: #172033;
  font-size: 14px;
  font-weight: 850;
}

.qlik-file-icon.pdf {
  color: #d9232e;
}

.qlik-file-icon.ppt {
  color: #df5f22;
}

.qlik-ready-chip {
  border: 1px solid #b7dcc7;
  border-radius: 4px;
  background: #eef8ef;
  color: #007a35;
  padding: 7px 14px;
  font-size: 13px;
}

.qlik-delivery-pack-item footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  border-top: 1px solid #d6dee7;
  padding: 11px 0;
  color: #243044;
  font-size: 12px;
}

.qlik-delivery-tabs {
  display: flex;
  margin-top: 20px;
  border-bottom: 1px solid #d6dee7;
}

.qlik-delivery-tabs span,
.qlik-delivery-tabs button {
  min-width: 160px;
  border-bottom: 3px solid transparent;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  padding: 0 0 12px;
  background: transparent;
  color: #243044;
  text-align: center;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.qlik-delivery-tabs .is-active {
  border-bottom-color: #00873a;
}

.qlik-delivery-preview-box {
  margin-top: 12px;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  overflow: hidden;
}

.qlik-delivery-preview-body {
  padding: 18px;
}

.qlik-delivery-preview-body h3 {
  margin-bottom: 18px;
  font-size: 15px;
}

.qlik-delivery-preview-body p {
  margin-bottom: 10px;
  color: #172033;
  font-size: 15px;
}

.qlik-delivery-attachments {
  margin-top: 18px;
  border-top: 1px solid #d6dee7;
  padding-top: 18px;
}

.qlik-delivery-attachments > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}

.qlik-delivery-attachments div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.qlik-delivery-attachments span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 162px;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  padding: 12px;
}

.qlik-delivery-attachments b {
  color: #d9232e;
  font-size: 13px;
}

.qlik-delivery-attachments span:nth-child(2) b {
  color: #df5f22;
}

.qlik-delivery-attachments em {
  color: #243044;
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}

.qlik-delivery-preview-note {
  border-top: 1px solid #d6dee7;
  background: #f5f7f9;
  padding: 12px 18px;
  color: #35445a;
  font-size: 13px;
}

.qlik-governed-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 18px;
}

.qlik-governed-form label {
  display: grid;
  gap: 8px;
  color: #172033;
  font-size: 12px;
  font-weight: 760;
}

.qlik-governed-form label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  padding: 0 12px;
  color: #243044;
  font-size: 13px;
  font-weight: 500;
}

.qlik-governed-form select {
  min-height: 36px;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  background: #ffffff;
  padding: 0 34px 0 12px;
  color: #243044;
  font: inherit;
  font-size: 13px;
  font-weight: 520;
}

.qlik-governed-form select:hover,
.qlik-governed-form select:focus-visible,
.qlik-check-row label:hover {
  border-color: #00873a;
  background: #f4fbf6;
  outline: none;
}

.qlik-governed-form .qlik-check-row {
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  padding: 0;
}

.qlik-check-row label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  padding: 0 12px;
  color: #243044;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.qlik-check-row input {
  accent-color: #00873a;
  margin: 0 8px 0 0;
}

.qlik-approval-chip {
  justify-content: center;
  width: fit-content;
  min-height: 26px !important;
  border-color: #f0c27a !important;
  background: #fff5e8;
  color: #b45b00 !important;
  padding: 0 10px !important;
  font-weight: 760 !important;
}

.qlik-governed-card > h3 {
  margin-top: 16px;
  font-size: 13px;
}

.qlik-delivery-timeline {
  margin-top: 10px;
  border: 1px solid #d6dee7;
  border-radius: 5px;
  overflow: hidden;
}

.qlik-delivery-timeline div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 96px 70px;
  gap: 12px;
  align-items: center;
  min-height: 31px;
  border-bottom: 1px solid #d6dee7;
  padding: 6px 10px;
  color: #243044;
  font-size: 13px;
}

.qlik-delivery-timeline div:last-child {
  border-bottom: 0;
}

.qlik-delivery-timeline i {
  width: 18px;
  height: 18px;
  border: 2px solid #9aa8b7;
  border-radius: 50%;
}

.qlik-delivery-timeline .done i {
  border-color: #00873a;
  background: #00873a;
}

.qlik-delivery-timeline .active i {
  border-color: #d69423;
}

.qlik-delivery-timeline em {
  color: #35445a;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.qlik-delivery-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.qlik-delivery-actions button:last-child {
  border-color: #f1c7a2;
  background: #fff3e7;
  color: #ee9a59;
}

.qlik-delivery-status {
  margin-top: 12px;
}

.qlik-delivery-artifacts {
  margin-top: 10px;
}

.qlik-delivery-history {
  padding: 14px 18px 16px;
}

.qlik-delivery-history header {
  align-items: flex-start;
}

.qlik-delivery-history table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  color: #243044;
  font-size: 13px;
}

.qlik-delivery-history th {
  border-bottom: 1px solid #cfd8e2;
  padding: 10px;
  text-align: left;
}

.qlik-delivery-history td {
  border-bottom: 1px solid #e1e6ec;
  padding: 10px;
}

.qlik-delivery-history tbody tr:last-child td {
  border-bottom: 0;
}

.qlik-delivery-history td span {
  border: 1px solid #b7dcc7;
  border-radius: 5px;
  background: #eaf8ef;
  color: #007a35;
  padding: 4px 8px;
  font-weight: 760;
}

.qlik-delivery-history td span.blue {
  border-color: #9dd2f0;
  background: #e9f6ff;
  color: #0068a8;
}

.qlik-empty-note {
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  padding: 14px 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 620;
}

.qlik-delivery-history td[colspan] {
  padding: 14px 10px;
}

@media (max-width: 760px) {
  .outlier-summary-strip,
  .outlier-priority-actionbar,
  .outlier-investigation-layout,
  .outlier-tab-grid,
  .outlier-pack-grid {
    grid-template-columns: 1fr;
  }

  .outlier-priority-actions,
  .outlier-closure-actions {
    justify-content: stretch;
  }

  .outlier-priority-actions > *,
  .outlier-closure-actions button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.report-designer-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(0.65rem, 1.8vw, 1.2rem);
}

.report-designer-modal *,
.report-designer-modal *::before,
.report-designer-modal *::after {
  box-sizing: border-box;
}

.report-designer-modal.hidden {
  display: none;
}

.report-designer-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 152, 69, 0.18), transparent 22rem),
    rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
  animation: fade-in var(--q-motion-med) both;
}

.report-designer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1240px, 98vw);
  height: min(820px, 92vh);
  border: 1px solid rgba(211, 225, 217, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 250, 0.99)),
    radial-gradient(circle at 12% 0%, rgba(0, 152, 69, 0.08), transparent 28rem);
  box-shadow: 0 36px 90px rgba(15, 23, 42, 0.26);
  overflow: hidden;
  animation: modal-in var(--q-motion-med) both;
}

.report-designer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--q-line);
  background: rgba(255, 255, 255, 0.86);
  padding: 1rem 1.1rem;
}

.report-designer-kicker {
  color: #697886;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  line-height: 1.05;
  text-transform: uppercase;
}

.report-designer-header h2 {
  margin: 0.18rem 0 0;
  color: #102033;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 820;
  line-height: 1.1;
}

.report-designer-header p {
  margin: 0.35rem 0 0;
  max-width: 46rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.report-designer-close {
  border: 1px solid var(--q-line);
  border-radius: 9px;
  background: #ffffff;
  padding: 0.5rem 0.72rem;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 760;
  transition:
    transform var(--q-motion-fast),
    background-color var(--q-motion-fast);
}

.report-designer-close:hover {
  background: #f4f8f6;
  transform: translateY(-1px);
}

.report-designer-body {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(390px, 1.24fr) minmax(260px, 0.9fr);
  gap: 0.85rem;
  min-height: 0;
  flex: 1;
  padding: 0.9rem;
  overflow: hidden;
}

.report-designer-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.report-designer-header,
.report-designer-footer {
  flex-shrink: 0;
}

.report-designer-workspace.hidden,
.report-blueprint-library.hidden {
  display: none;
}

.report-blueprint-library {
  display: grid;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  padding: 0.9rem;
  overflow: auto;
}

.report-blueprint-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--q-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem;
}

.report-blueprint-library-head h3,
.report-blueprint-card h3 {
  margin: 0;
  color: #102033;
}

.report-blueprint-library-head p,
.report-blueprint-card p,
.report-blueprint-library-state {
  margin: 0.24rem 0 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.45;
}

.report-blueprint-library-state {
  border: 1px dashed #cfe2d6;
  border-radius: 12px;
  background: #fbfdfc;
  padding: 0.85rem;
}

.report-blueprint-library-state.error {
  border-color: #f4c7c7;
  color: #9f1239;
}

.report-blueprint-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.report-blueprint-card {
  display: grid;
  gap: 0.8rem;
  min-height: 150px;
  border: 1px solid var(--q-line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.85rem;
  cursor: pointer;
  transition:
    border-color var(--q-motion-fast),
    box-shadow var(--q-motion-fast),
    transform var(--q-motion-fast);
}

.report-blueprint-card:hover {
  border-color: #9bd2b3;
  box-shadow: 0 16px 34px rgba(31, 41, 51, 0.08);
  transform: translateY(-1px);
}

.report-blueprint-card-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.report-blueprint-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  border-radius: 999px;
  background: #e6f7ec;
  color: #04703c;
  padding: 0.22rem 0.46rem;
  font-size: 0.64rem;
  font-weight: 850;
}

.report-designer-body.ai-collapsed {
  grid-template-columns: 64px minmax(390px, 1.35fr) minmax(260px, 0.92fr);
}

.ai-guide-panel.collapsed {
  overflow: hidden;
}

.ai-guide-panel.collapsed .designer-panel-title,
.ai-guide-panel.collapsed .designer-question-flow {
  display: none;
}

.ai-guide-panel.collapsed .designer-question-progress {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 0.45rem;
}

.designer-guide-restore {
  display: grid;
  gap: 0.38rem;
  width: 100%;
  min-height: 126px;
  place-items: center;
  border: 1px solid #b7e3c9;
  border-radius: 12px;
  background: #f4fbf7;
  color: #04703c;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 850;
  text-align: center;
}

.designer-guide-restore span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 10px;
  background: #009845;
  color: #ffffff;
}

.designer-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--q-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(31, 41, 51, 0.06);
  overflow: auto;
}

.preview-contract-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-contract-panel .designer-panel-title {
  padding: 0.62rem 0.72rem;
}

.preview-contract-panel .designer-panel-title p {
  font-size: 0.68rem;
  line-height: 1.28;
}

.designer-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-bottom: 1px solid var(--q-line-soft);
  padding: 0.85rem;
}

.designer-panel-title.inline {
  align-items: center;
  justify-content: space-between;
}

.designer-panel-title h3 {
  margin: 0;
  color: #102033;
  font-size: 0.88rem;
  font-weight: 800;
}

.designer-panel-title > div {
  min-width: 0;
}

.designer-panel-title p {
  margin: 0.18rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.45;
}

.designer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #00a84d, #007f3f);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(0, 152, 69, 0.18);
}

.designer-icon.soft {
  background: linear-gradient(145deg, #e6f7ec, #d8f0e3);
  color: #04703c;
  box-shadow: none;
}

.designer-question {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--q-line-soft);
}

.designer-question-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  padding: 0.78rem 0.85rem 0;
}

.designer-guide-controls {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  gap: 0.36rem;
}

.designer-guide-controls button,
.designer-complete-actions button {
  border: 1px solid #cfe2d6;
  border-radius: 8px;
  background: #ffffff;
  color: #0f5132;
  padding: 0.34rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 800;
  transition:
    border-color var(--q-motion-fast),
    background-color var(--q-motion-fast),
    transform var(--q-motion-fast);
}

.designer-guide-controls button:hover,
.designer-complete-actions button:hover {
  border-color: #9bd2b3;
  background: #f4fbf7;
  transform: translateY(-1px);
}

.designer-guide-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.designer-primary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.designer-progress-empty {
  width: 100%;
  border: 1px dashed #cfe2d6;
  border-radius: 10px;
  background: #f8fcfa;
  color: #64748b;
  padding: 0.58rem 0.68rem;
  font-size: 0.72rem;
  line-height: 1.45;
}

.designer-answer-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.36rem;
  border: 1px solid #cfe2d6;
  border-radius: 999px;
  background: #f4fbf7;
  padding: 0.34rem 0.52rem;
  color: #0f5132;
  font-size: 0.68rem;
}

.designer-answer-chip span {
  color: #64748b;
  font-weight: 700;
}

.designer-answer-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 820;
}

.designer-question-flow {
  padding: 0.78rem 0.85rem;
}

.designer-question-current {
  display: grid;
  gap: 0.66rem;
  border: 1px solid #d8e8df;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(0, 152, 69, 0.08), rgba(255, 255, 255, 0.88) 42%),
    #ffffff;
  padding: 0.78rem;
  box-shadow: 0 14px 30px rgba(31, 41, 51, 0.055);
  animation: section-rise var(--q-motion-med) both;
}

.designer-question-complete {
  display: grid;
  gap: 0.55rem;
  border: 1px solid #b7e3c9;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(0, 152, 69, 0.12), rgba(255, 255, 255, 0.9) 44%),
    #f8fffb;
  padding: 0.78rem;
  box-shadow: 0 14px 30px rgba(0, 152, 69, 0.08);
  animation: section-rise var(--q-motion-med) both;
}

.designer-question-step {
  width: max-content;
  border-radius: 999px;
  background: #e6f7ec;
  color: #04703c;
  padding: 0.22rem 0.46rem;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.designer-question-current h4 {
  margin: 0;
  color: #102033;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.25;
}

.designer-question-current p,
.designer-question-complete p,
.designer-question-freeform {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.45;
}

.designer-question-label {
  color: #203144;
  font-size: 0.76rem;
  font-weight: 780;
}

.designer-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.designer-choice-grid.compact {
  grid-template-columns: 1fr;
}

.designer-choice-grid button,
.blueprint-row-actions button,
.blueprint-icon-button,
.designer-secondary,
.designer-primary,
#designerApplyPrompt {
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  padding: 0.46rem 0.56rem;
  font-size: 0.72rem;
  font-weight: 740;
  line-height: 1.1;
  transition:
    transform var(--q-motion-fast),
    border-color var(--q-motion-fast),
    background-color var(--q-motion-fast),
    color var(--q-motion-fast),
    box-shadow var(--q-motion-fast);
}

.designer-choice-grid button {
  display: grid;
  min-height: 2.7rem;
  align-content: center;
  gap: 0.12rem;
  text-align: left;
}

.designer-choice-grid button em {
  color: #04703c;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.designer-choice-grid button:hover,
.blueprint-row-actions button:hover,
.designer-secondary:hover {
  border-color: #b7e3c9;
  color: #0f5132;
  transform: translateY(-1px);
}

.designer-choice-grid button.active {
  border-color: #8dd0aa;
  background: #eef8f2;
  color: #0f5132;
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.08);
}

.blueprint-status {
  flex: 0 0 auto;
  border: 1px solid #cfe2d6;
  border-radius: 999px;
  background: #f4fbf7;
  color: #0f5132;
  padding: 0.28rem 0.58rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.blueprint-title-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.42rem;
}

.blueprint-draft-manager {
  display: grid;
  gap: 0.46rem;
  border-top: 1px solid var(--q-line-soft);
  border-bottom: 1px solid var(--q-line-soft);
  background: #fbfdfc;
  padding: 0.56rem 0.78rem;
}

.blueprint-draft-tabs {
  display: flex;
  gap: 0.34rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.blueprint-draft-tabs button,
.blueprint-draft-tools button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid #d8e8df;
  border-radius: 999px;
  background: #ffffff;
  color: #425466;
  padding: 0.34rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  transition:
    border-color var(--q-motion-fast),
    background-color var(--q-motion-fast),
    color var(--q-motion-fast),
    transform var(--q-motion-fast);
}

.blueprint-draft-tabs button:hover,
.blueprint-draft-tools button:hover {
  border-color: #9bd2b3;
  color: #0f5132;
  transform: translateY(-1px);
}

.blueprint-draft-tabs button.active {
  border-color: #8dd0aa;
  background: #eaf8f0;
  color: #0f5132;
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.08);
}

.blueprint-draft-tabs span {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 152, 69, 0.12);
  color: #04703c;
  font-size: 0.56rem;
  font-weight: 900;
}

.blueprint-draft-tools {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto auto auto;
  gap: 0.36rem;
  align-items: end;
}

.blueprint-draft-tools label {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.blueprint-draft-tools label span {
  color: #697886;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.blueprint-draft-tools input {
  min-width: 0;
  width: 100%;
  border: 1px solid #d8e8df;
  border-radius: 8px;
  background: #ffffff;
  color: #203144;
  padding: 0.38rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 750;
}

.blueprint-draft-tools button {
  border-radius: 8px;
  padding: 0.48rem 0.56rem;
}

.blueprint-draft-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.blueprint-icon-button {
  display: inline-flex;
  width: 1.92rem;
  height: 1.92rem;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 900;
}

.blueprint-svg-icon {
  display: block;
  width: 0.96rem;
  height: 0.96rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.blueprint-icon-button.danger:hover {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.blueprint-rows {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.blueprint-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.62rem;
  border: 1px solid #d8e8df;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  padding: 0.65rem;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.045);
  animation: section-rise var(--q-motion-med) both;
}

.blueprint-row.disabled {
  opacity: 0.54;
}

.blueprint-row-index {
  color: #8492a3;
  font-size: 0.72rem;
  font-weight: 820;
}

.blueprint-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  background: #eef8f2;
  color: #04703c;
}

.blueprint-row-icon .blueprint-svg-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.15;
}

.blueprint-section-title {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #b6cfbf;
  padding: 3px 0;
  color: inherit;
  font-family: inherit;
}

.blueprint-evidence-select {
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  padding: 6px;
  border: 1px solid #d1e2d8;
  border-radius: 6px;
  font-size: 12px;
  background: white;
}

.designer-section-coverage {
  padding: 12px;
  border: 1px solid #d1e2d8;
  border-radius: 8px;
  margin: 10px 0;
  color: #304838;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.designer-section-coverage p { margin: 6px 0; }

.blueprint-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #102033;
  font-size: 0.82rem;
  font-weight: 800;
}

.blueprint-row-meta {
  margin-top: 0.08rem;
  color: #718096;
  font-size: 0.68rem;
}

.blueprint-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blueprint-row-actions button {
  padding: 0;
  font-size: 0.72rem;
}

.designer-export-summary {
  display: grid;
  gap: 0.42rem;
  padding: 0.48rem 0.58rem 0;
}

.designer-question-complete h4 {
  margin: 0;
  color: #0f5132;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.25;
}

.designer-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.data-contract {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.38rem 0.58rem 0.58rem;
}

.contract-card {
  border: 1px solid var(--q-line-soft);
  border-radius: 9px;
  background: #fbfdfc;
  padding: 0.38rem 0.42rem;
}

.contract-card-wide {
  grid-column: 1 / -1;
}

.contract-label {
  color: #697886;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.contract-value {
  display: -webkit-box;
  margin-top: 0.14rem;
  overflow: hidden;
  color: #203144;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.26;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.contract-note {
  margin-top: 0.45rem;
  color: #718096;
  font-size: 0.67rem;
  line-height: 1.38;
}

.export-result-card {
  border-color: #8dd0aa;
  background:
    linear-gradient(135deg, rgba(0, 152, 69, 0.12), rgba(255, 255, 255, 0.9) 42%),
    #f4fbf7;
  box-shadow: 0 14px 28px rgba(0, 152, 69, 0.1);
  padding: 0.42rem;
}

.export-result-head,
.designer-export-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.designer-export-empty {
  border: 1px dashed #b7e3c9;
  border-radius: 10px;
  background: #fbfdfc;
  padding: 0.58rem 0.62rem;
}

.designer-export-empty strong {
  display: block;
  margin-top: 0.12rem;
  color: #203144;
  font-size: 0.72rem;
  line-height: 1.2;
}

.designer-export-empty button,
.designer-output-preview-btn,
.export-ready-pill {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #e6f7ec;
  color: #04703c;
  padding: 0.24rem 0.46rem;
  font-size: 0.62rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.designer-output-preview-btn {
  width: 100%;
  margin-top: 0.36rem;
  border: 1px solid rgba(0, 152, 69, 0.18);
  background: #ffffff;
}

.export-ready-pill {
  border: 1px solid rgba(0, 152, 69, 0.18);
  background: #009845;
  color: #ffffff;
}

.designer-quality-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.22rem;
  margin-top: 0.32rem;
}

.designer-quality-grid div {
  min-width: 0;
  border: 1px solid rgba(0, 152, 69, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.2rem 0.24rem;
}

.designer-quality-grid span,
.designer-quality-grid strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.designer-quality-grid span {
  color: #65736e;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.designer-quality-grid strong {
  margin-top: 0.08rem;
  color: #0b5f33;
  font-size: 0.62rem;
  font-weight: 850;
}

.designer-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.32rem;
}

.designer-artifact-list {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.32rem;
}

.designer-artifact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.38rem;
  align-items: center;
  padding: 0.3rem 0.36rem;
  border: 1px solid rgba(0, 152, 69, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.designer-artifact-row span {
  min-width: 0;
  color: #17324d;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.designer-export-actions button,
.designer-export-actions a {
  border: 1px solid #b7e3c9;
  border-radius: 8px;
  background: #ffffff;
  color: #0f5132;
  padding: 0.36rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  transition:
    transform var(--q-motion-fast),
    box-shadow var(--q-motion-fast);
}

.designer-export-actions button:hover,
.designer-export-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 152, 69, 0.09);
}

.report-designer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid var(--q-line);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0.9rem;
}

.designer-chat-box {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.45rem;
  border: 1px solid var(--q-line);
  border-radius: 11px;
  background: #ffffff;
  padding: 0.32rem;
}

.designer-chat-box input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: none;
  padding: 0.48rem 0.55rem;
  color: #203144;
  font-size: 0.78rem;
}

#designerApplyPrompt {
  background: #f4fbf7;
  color: #0f5132;
}

.designer-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.designer-primary {
  border-color: #008542;
  background: linear-gradient(145deg, #00a84d, #008542);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 152, 69, 0.18);
}

.designer-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 152, 69, 0.24);
}

.designer-secondary {
  background: #ffffff;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  animation: fade-in var(--q-motion-med) both;
}

.preview-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1100px, 96vw);
  height: min(780px, 88vh);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  animation: modal-in var(--q-motion-med) both;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--q-line);
  background: #fbfdfc;
  padding: 0.85rem 1rem;
}

.preview-header h2 {
  margin: 0.1rem 0 0;
  color: #102033;
  font-size: 0.98rem;
  font-weight: 760;
}

.preview-close {
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.45rem 0.7rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--q-motion-fast),
    background-color var(--q-motion-fast),
    color var(--q-motion-fast);
}

.preview-close:hover {
  transform: rotate(90deg) scale(1.04);
  background: #f1f5f3;
}

.preview-frame-wrap {
  min-height: 0;
  flex: 1;
  background: #f8fafc;
}

#previewFrame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@keyframes section-fade-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  body {
    height: 100dvh;
    overflow-x: hidden;
  }

  .app-shell {
    height: 100dvh;
    max-width: 100vw;
    padding: 0.5rem;
  }

  .topbar {
    margin-bottom: 0.5rem !important;
    padding: 0.65rem;
  }

  .signed-out-cover {
    align-items: center;
    padding: 1rem;
  }

  .signed-out-panel {
    width: min(100%, 320px);
    max-width: 320px;
    padding: 1.35rem 1rem;
  }

  .signed-out-panel h2 {
    width: 100%;
    max-width: 100%;
    font-size: 1.38rem;
    line-height: 1.16;
  }

  .signed-out-panel p {
    width: 100%;
    max-width: 100%;
    font-size: 0.85rem;
  }

  .signed-out-steps {
    grid-template-columns: 1fr;
  }

  .designer-quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner {
    align-items: flex-start;
    gap: 0.55rem;
  }

  .brand-lockup {
    width: 100%;
  }

  .brand-mark {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9px;
  }

  .brand-lockup h1 {
    max-width: calc(100vw - 5.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .session-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
  }

  .session-pill {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 0.32rem 0.55rem;
  }

  .session-actions a,
  .session-actions button {
    flex: 0 0 auto;
    padding: 0.45rem 0.6rem !important;
    font-size: 0.78rem !important;
  }

  .topbar,
  .chat-surface {
    border-radius: 10px;
  }

  #workspaceShell {
    min-width: 0;
    gap: 0;
  }

  .chat-surface {
    min-width: 0;
    width: 100%;
  }

  .chat-header {
    padding: 0.7rem 0.75rem;
  }

  .chat-kicker {
    font-size: 0.62rem;
  }

  .chat-title {
    font-size: 0.9rem;
    line-height: 1.22;
  }

  .chat-header-meta {
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
  }

  #chatbox {
    padding: 0.6rem;
  }

  .msg-user,
  .msg-assistant {
    max-width: 100%;
    padding: 0.72rem 0.75rem !important;
    border-radius: 12px;
  }

  .chat-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .alert-panel {
    padding: 0.55rem 0.6rem;
  }

  .alert-strip,
  .alert-summary,
  .alert-card {
    align-items: stretch;
    flex-direction: column;
  }

  .alert-strip button,
  .alert-summary button,
  .alert-card-actions button {
    width: 100%;
  }

  .alert-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .chat-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .designer-launch {
    justify-content: center;
    min-height: 2.15rem;
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 0.55rem !important;
  }

  .composer-hint {
    order: 2;
    text-align: center;
  }

  #sendBtn {
    justify-content: center;
    min-height: 2.75rem;
  }

  .composer {
    padding: 0.6rem !important;
  }

  .composer-box {
    border-radius: 10px;
    padding: 0.25rem;
  }

  #prompt {
    min-height: 5.5rem;
    border-radius: 9px;
  }

  .debugger-panel {
    padding: 0.45rem 0.65rem !important;
  }

  .tool-slot {
    max-height: 13.5rem;
    gap: 0.28rem;
    margin-bottom: 0.45rem;
  }

  .tool-history > summary {
    padding: 0.36rem 0.45rem;
  }

  .tool-history-list {
    padding: 0.4rem 0.45rem;
  }

  .trace-inline {
    margin-left: 0;
    padding-left: 0.45rem;
  }

  .trace-inline summary {
    gap: 0.35rem;
    padding: 0.08rem 0;
  }

  .trace-inline-marker {
    width: 0.48rem;
    height: 0.48rem;
  }

  .trace-inline-step {
    font-size: 0.64rem;
  }

  .trace-inline-tool {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .reasoning-box summary {
    padding: 0.65rem 0.75rem;
  }

  .reasoning-content {
    padding: 0.75rem;
  }

  .artifact-card {
    align-items: stretch;
    flex-direction: column;
  }

  .artifact-actions {
    justify-content: flex-start;
  }

  .chart-card {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-actions {
    justify-content: flex-start;
  }

  .report-designer-modal {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0.45rem;
  }

  .report-designer-panel {
    position: fixed;
    inset: 0.45rem;
    width: auto;
    max-width: none;
    height: auto;
    border-radius: 12px;
    overflow-x: hidden;
  }

  .report-designer-header {
    position: relative;
    flex-direction: column;
    padding: 0.8rem;
    padding-right: 4.2rem;
  }

  .report-designer-header p {
    font-size: 0.76rem;
    overflow-wrap: anywhere;
  }

  .report-designer-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
  }

  .report-designer-body {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.7rem;
    padding: 0.7rem;
    overflow: auto;
  }

  .designer-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .ai-guide-panel,
  .blueprint-panel,
  .preview-contract-panel {
    min-height: auto;
  }

  .designer-choice-grid,
  .designer-choice-grid.compact {
    grid-template-columns: 1fr;
  }

  .blueprint-draft-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blueprint-draft-tools label {
    grid-column: 1 / -1;
  }

  .designer-panel-title p,
  .contract-value,
  .blueprint-row-title,
  .blueprint-row-meta {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .blueprint-row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .blueprint-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .report-designer-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 0.7rem;
  }

  .designer-chat-box {
    width: 100%;
  }

  .designer-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateX(6px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes artifact-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  72% {
    opacity: 1;
    transform: translateY(-1px) scale(1.006);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes details-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes live-dot {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.12);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(0, 152, 69, 0.04);
  }
}

@keyframes attention-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 152, 69, 0);
  }

  35% {
    box-shadow: 0 0 0 5px rgba(0, 152, 69, 0.08);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 152, 69, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
