/**
 * HoreX Copilot — UI Lab draft.
 * The shell, conversation rhythm, composer and responsive behavior follow the
 * ChatGPT web-client system supplied in Figma. HoreX-specific styling is kept
 * to the wordmark, bright sky-to-white gradient and business-data content.
 */

.horex-copilot {
  --hxc-ink: #0d0d0d;
  --hxc-copy: #303030;
  --hxc-muted: #6f6f6f;
  --hxc-faint: #9b9b9b;
  --hxc-line: #e5e5e5;
  --hxc-line-soft: #ececec;
  --hxc-sidebar: #f9f9f9;
  --hxc-hover: #ececec;
  --hxc-soft: #f4f4f4;
  --hxc-blue: #168cff;
  --hxc-blue-bright: #51c5ff;
  --hxc-blue-soft: #bcecff;
  --hxc-blue-ink: #064777;
  --hxc-gradient: linear-gradient(135deg, #ffffff 0%, #bcecff 30%, #51c5ff 66%, #168cff 100%);
  --hxc-content-width: 920px;
  width: 100%;
  color: var(--hxc-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  container: horex-copilot / inline-size;
}

.horex-copilot,
.horex-copilot * {
  box-sizing: border-box;
}

.horex-copilot button,
.horex-copilot textarea {
  font: inherit;
}

.horex-copilot button {
  color: inherit;
  appearance: none;
}

.horex-copilot button:focus-visible,
.horex-copilot textarea:focus-visible {
  outline: 2px solid rgba(22, 140, 255, 0.38);
  outline-offset: 2px;
}

.hxc-shell {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: 100%;
  height: 820px;
  min-height: 680px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: grid-template-columns 0.2s ease;
}

.hxc-panel-dismiss {
  display: none;
}

.hxc-icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  color: #5c5c5c;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.hxc-icon-button:hover {
  color: var(--hxc-ink);
  background: var(--hxc-hover);
}

/* Sidebar */

.hxc-history {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  background: var(--hxc-sidebar);
  transition: opacity 0.15s ease;
}

.horex-copilot.is-history-collapsed .hxc-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

.horex-copilot.is-history-collapsed .hxc-history {
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.hxc-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 4px 0 6px;
}

.hxc-history__title {
  color: #333;
  font-size: 12px;
  font-weight: 600;
}

.hxc-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hxc-brand__symbol {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: var(--hxc-gradient);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 5px 18px rgba(55, 177, 255, 0.22);
}

.hxc-brand__symbol svg {
  stroke-width: 1.9;
  filter: drop-shadow(0 1px 2px rgba(6, 71, 119, 0.18));
}

.hxc-brand__symbol {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 13px;
}

.hxc-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0 16px;
}

.hxc-sidebar__nav > button,
.hxc-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #262626;
  font-size: 13px;
  text-align: left;
}

.hxc-sidebar__nav > button:hover,
.hxc-thread:hover,
.hxc-thread.is-active {
  background: linear-gradient(90deg, rgba(82, 198, 255, 0.15), rgba(255, 255, 255, 0.72));
}

.hxc-shortcut {
  margin-left: auto;
  color: var(--hxc-faint);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hxc-sidebar__nav > button:hover .hxc-shortcut {
  opacity: 1;
}

.hxc-history__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.hxc-history__scroll:hover {
  scrollbar-color: #d2d2d2 transparent;
}

.hxc-history__section + .hxc-history__section {
  margin-top: 18px;
}

.hxc-history__section-label {
  padding: 0 10px 6px;
  color: #777;
  font-size: 11px;
  font-weight: 500;
}

.hxc-thread {
  position: relative;
  gap: 5px;
}

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

.hxc-thread__more {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: auto;
  opacity: 0;
}

.hxc-thread:hover .hxc-thread__more,
.hxc-thread.is-active .hxc-thread__more {
  opacity: 1;
}

.hxc-history__profile {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 9px;
}

.hxc-history__profile:hover {
  background: var(--hxc-hover);
}

.hxc-profile-avatar,
.hxc-header__avatar {
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: #252525;
  border: 0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
}

.hxc-profile-avatar {
  width: 30px;
  height: 30px;
}

.hxc-history__profile > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hxc-history__profile strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hxc-history__profile small {
  color: var(--hxc-muted);
  font-size: 10px;
}

/* Main shell */

.hxc-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.hxc-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
}

.hxc-header__left,
.hxc-model-button {
  display: flex;
  align-items: center;
}

.hxc-header__left {
  gap: 8px;
}

.hxc-credit-wallet {
  position: relative;
  flex: none;
}

.hxc-composer__footer > .hxc-credit-wallet {
  pointer-events: auto;
}

.hxc-credit-balance {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #155eef;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.hxc-credit-balance:hover {
  background: #f2f4f7;
}

.hxc-credit-balance:focus-visible {
  outline: 2px solid rgba(22, 140, 255, 0.28);
  outline-offset: 2px;
}

.hxc-credit-balance[data-balance-status="empty"] {
  color: #98a2b3;
}

.hxc-credit-balance[data-balance-status="low"] {
  color: #f79009;
}

.hxc-credit-balance[data-balance-status="exhausted"] {
  color: #b42318;
}

.hxc-credit-ring {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  background: conic-gradient(
    currentColor 0 var(--hxc-credit-level),
    #d7dce4 var(--hxc-credit-level) 100%
  );
  border-radius: 50%;
  transform: rotate(-90deg);
}

.hxc-credit-ring::after {
  width: 16px;
  height: 16px;
  content: '';
  background: #fff;
  border-radius: 50%;
}

.hxc-credit-balance:hover .hxc-credit-ring::after {
  background: #f2f4f7;
}

.hxc-credit-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 330px;
  padding: 15px 16px;
  color: #101828;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.18), 0 2px 8px rgba(16, 24, 40, 0.08);
}

.hxc-composer__footer .hxc-credit-popover {
  top: auto;
  right: 0;
  bottom: calc(100% + 8px);
  pointer-events: auto;
}

.hxc-credit-popover__overview,
.hxc-credit-popover__overview > span,
.hxc-credit-popover__plan,
.hxc-credit-popover__usage,
.hxc-credit-popover__reserved {
  display: flex;
  align-items: center;
}

.hxc-credit-popover__overview,
.hxc-credit-popover__plan,
.hxc-credit-popover__breakdown {
  width: 100%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: left;
}

.hxc-credit-popover__overview {
  justify-content: space-between;
  gap: 14px;
  color: #475467;
  font-size: 12px;
}

.hxc-credit-popover__overview > span:last-child {
  justify-content: flex-end;
  flex: 1;
  color: #344054;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hxc-credit-popover__overview svg,
.hxc-credit-popover__plan svg {
  flex: none;
  margin-left: 8px;
  color: #667085;
}

.hxc-credit-progress {
  height: 5px;
  margin: 10px 0 14px;
  overflow: hidden;
  background: #eaecf0;
  border-radius: 999px;
}

.hxc-credit-progress span {
  display: block;
  height: 100%;
  background: #2878ed;
  border-radius: inherit;
}

.hxc-credit-progress--usage {
  margin: 7px 0 2px;
}

.hxc-credit-popover__divider {
  height: 1px;
  margin: 0 0 14px;
  background: #e4e7ec;
}

.hxc-credit-popover__plan {
  justify-content: space-between;
  margin-bottom: 11px;
  color: #475467;
  font-size: 12px;
  font-weight: 550;
}

.hxc-credit-popover__usage,
.hxc-credit-popover__reserved {
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.hxc-credit-popover__usage > span:last-child,
.hxc-credit-popover__reserved strong {
  color: #667085;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hxc-credit-popover__reserved {
  margin-top: 10px;
}

.hxc-credit-popover__reserved + .hxc-credit-popover__divider,
.hxc-credit-progress--usage + .hxc-credit-popover__divider {
  margin-top: 14px;
}

.hxc-credit-popover__breakdown {
  color: #344054;
  font-size: 12px;
  font-weight: 500;
}

.hxc-credit-popover__overview:hover,
.hxc-credit-popover__plan:hover,
.hxc-credit-popover__breakdown:hover {
  color: #155eef;
}

.hxc-model-button {
  gap: 5px;
  height: 34px;
  padding: 0 9px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.hxc-model-button:hover {
  background: var(--hxc-soft);
}

.hxc-model-button strong {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.hxc-header__avatar {
  width: 29px;
  height: 29px;
  padding: 0;
  cursor: pointer;
}

.hxc-header__mobile-button {
  display: none;
}

.horex-copilot.is-history-collapsed .hxc-header__mobile-button {
  display: inline-grid;
}

.hxc-main__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d6d6d6 transparent;
}

.hxc-main__scroll--start {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 190px;
}

/* Empty state */

.hxc-welcome {
  width: min(var(--hxc-content-width), calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.hxc-welcome__mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 18px;
  color: #168cff;
}

.hxc-welcome__mark svg {
  stroke-width: 1.8;
}

.hxc-welcome h2 {
  margin: 0;
  color: #101010;
  font-size: clamp(25px, 3cqw, 31px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hxc-suggestions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 28px auto 0;
}

.hxc-suggestions button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  cursor: pointer;
  color: #393939;
  background: #fff;
  border: 1px solid var(--hxc-line);
  border-radius: 12px;
  font-size: 11px;
  text-align: left;
}

.hxc-suggestions button:hover {
  background: #fafafa;
  border-color: #d0d0d0;
}

.hxc-suggestions button svg {
  flex: none;
  color: #626262;
}

.hxc-suggestions button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Composer */

.hxc-composer-wrap {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px 12px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 32%, #fff 100%);
}

.hxc-composer {
  position: relative;
  width: min(var(--hxc-content-width), 100%);
  pointer-events: auto;
  background: transparent;
}

.hxc-composer .hxc-composer__input {
  display: block;
  min-height: 72px;
  max-height: 140px;
  padding: 24px 94px 24px 14px;
  border-radius: 18px;
  resize: none;
  line-height: 1.45;
}

.hxc-composer .hxc-composer__input::placeholder {
  color: #8a8a8a;
}

.hxc-composer__footer {
  position: absolute;
  right: 9px;
  bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 32px;
  pointer-events: none;
}

.hxc-composer__limit {
  color: #777;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.hxc-composer__limit.is-over {
  color: #b42318;
  font-weight: 600;
}

.hxc-composer__footer > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0;
  cursor: pointer;
  color: #333;
  background: transparent;
  border: 0;
  border-radius: 999px;
  pointer-events: auto;
}

.hxc-composer__footer > button:last-child {
  width: 32px;
  color: var(--hxc-blue-ink);
  background: var(--hxc-gradient);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 4px 12px rgba(22, 140, 255, 0.22);
}

.hxc-composer__footer > button:last-child:hover {
  filter: brightness(1.08);
}

.hxc-composer.is-working .hxc-composer__footer > button:last-child {
  background: #0d0d0d;
}

/* Conversation */

.hxc-conversation {
  width: min(var(--hxc-content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 190px;
}

.hxc-question {
  display: flex;
  justify-content: flex-end;
  margin: 5px 0 34px;
}

.hxc-question p {
  max-width: min(72%, 520px);
  margin: 0;
  padding: 10px 15px;
  color: #202020;
  background: linear-gradient(135deg, #f8fdff 0%, #e8f7ff 100%);
  border: 1px solid #dff3ff;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.hxc-response {
  color: var(--hxc-copy);
}

.hxc-response__header {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  margin-bottom: 14px;
}

.hxc-response__header strong {
  color: #1f1f1f;
  font-size: 12px;
  font-weight: 600;
}

.hxc-response__mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  color: #168cff;
}

.hxc-response__mark svg {
  stroke-width: 1.8;
}

.hxc-interpretation {
  width: min(100%, 760px);
  margin: -2px 0 18px;
}

.hxc-interpretation__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hxc-interpretation__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
  color: #4d5965;
  background: #f7fafc;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.3;
}

.hxc-interpretation__chip svg {
  flex: none;
  color: #168cff;
  stroke-width: 1.8;
}

.hxc-interpretation__details {
  margin-top: 7px;
  border-bottom: 1px solid #edf0f3;
}

.hxc-interpretation__details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 3px;
  cursor: pointer;
  color: #5d6670;
  list-style: none;
  font-size: 10px;
}

.hxc-interpretation__details > summary::-webkit-details-marker {
  display: none;
}

.hxc-interpretation__details > summary > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.hxc-interpretation__details > summary small {
  color: #929aa2;
  font-size: 9px;
}

.hxc-interpretation__details > summary > svg {
  transition: transform 160ms ease;
}

.hxc-interpretation__details[open] > summary > svg {
  transform: rotate(180deg);
}

.hxc-interpretation__contracts {
  display: grid;
  gap: 10px;
  padding: 5px 0 14px;
}

.hxc-interpretation__contract {
  padding: 12px;
  background: #fbfcfd;
  border: 1px solid #edf0f3;
  border-radius: 10px;
}

.hxc-interpretation__contract > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.hxc-interpretation__contract > header strong {
  color: #252b31;
  font-size: 11px;
  font-weight: 600;
}

.hxc-interpretation__contract > header span {
  color: #356b51;
  font-size: 9px;
}

.hxc-interpretation__contract dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.hxc-interpretation__contract dl > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid #edf0f3;
}

.hxc-interpretation__contract dt,
.hxc-interpretation__contract dd {
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
}

.hxc-interpretation__contract dt {
  color: #8a929a;
}

.hxc-interpretation__contract dd {
  color: #414950;
}

.hxc-interpretation__parity {
  margin: 9px 0 0;
  padding-top: 9px;
  color: #6c747c;
  border-top: 1px solid #edf0f3;
  font-size: 9px;
  line-height: 1.5;
}

/* Analysis trace */

.hxc-task-group {
  max-width: 640px;
  margin: 4px 0 22px;
}

.hxc-task-group__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: left;
}

.hxc-task-summary__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  color: #5f5f5f;
}

.hxc-task-summary__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.hxc-task-summary__copy strong {
  color: #3b3b3b;
  font-size: 12px;
  font-weight: 550;
}

.hxc-task-summary__copy small {
  color: #8b8b8b;
  font-size: 10px;
}

.hxc-task-summary__copy small.is-updating {
  animation: hxc-task-label-update 0.18s ease-out both;
}

@keyframes hxc-task-label-update {
  from {
    opacity: 0.55;
    transform: translateY(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hxc-task-group__summary > svg {
  color: #8a8a8a;
  transition: transform 0.18s ease;
}

.hxc-task-group.is-expanded .hxc-task-group__summary > svg {
  transform: rotate(180deg);
}

.hxc-spinner,
.hxc-task-row__spinner {
  display: block;
  border: 1.5px solid #cecece;
  border-top-color: var(--hxc-blue);
  border-radius: 50%;
  animation: hxc-spin 0.85s linear infinite;
}

.hxc-spinner {
  width: 15px;
  height: 15px;
}

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

.hxc-task-list {
  display: none;
  margin: 5px 0 0 9px;
  padding: 2px 0 2px 18px;
  border-left: 1px solid #e1e1e1;
}

.hxc-task-group.is-expanded .hxc-task-list {
  display: block;
}

.hxc-task-row {
  display: grid;
  grid-template-columns: 16px 18px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-height: 40px;
  max-height: 52px;
  padding: 6px 0;
  overflow: hidden;
  color: #777;
}

.hxc-task-row.is-entering {
  animation: hxc-task-row-enter 0.28s cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

@keyframes hxc-task-row-enter {
  from {
    opacity: 0;
    min-height: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    min-height: 40px;
    max-height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
    transform: translateY(0);
  }
}

.hxc-task-row__marker {
  display: grid;
  place-items: center;
  width: 16px;
  height: 18px;
}

.hxc-task-row__check,
.hxc-task-row__spinner,
.hxc-task-row__dot {
  display: none;
}

.hxc-task-row.is-done .hxc-task-row__check {
  display: grid;
  place-items: center;
  color: #5d5d5d;
}

.hxc-task-row.is-completing .hxc-task-row__check {
  animation: hxc-task-check-enter 0.2s ease-out both;
}

@keyframes hxc-task-check-enter {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hxc-task-row.is-active .hxc-task-row__spinner {
  display: block;
  width: 13px;
  height: 13px;
}

.hxc-task-row.is-pending .hxc-task-row__dot {
  display: block;
  width: 5px;
  height: 5px;
  background: #c4c4c4;
  border-radius: 50%;
}

.hxc-task-row__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.hxc-task-row__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hxc-task-row__copy strong {
  color: #555;
  font-size: 11px;
  font-weight: 500;
}

.hxc-task-row.is-pending .hxc-task-row__copy strong,
.hxc-task-row.is-pending .hxc-task-row__icon {
  color: #a2a2a2;
}

.hxc-task-row__copy small {
  color: #999;
  font-size: 9px;
}

.hxc-working-note {
  margin: 0;
  color: #696969;
  font-size: 13px;
}

/* Answer */

.hxc-answer-copy {
  max-width: 720px;
}

.hxc-answer-copy h2,
.hxc-answer-copy h3 {
  color: #191919;
  letter-spacing: -0.025em;
}

.hxc-answer-copy h2 {
  margin: 22px 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.hxc-answer-copy h3 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.hxc-answer-copy p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
}

.hxc-answer-copy strong {
  color: #222;
  font-weight: 600;
}

.hxc-answer-copy ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.hxc-answer-copy li {
  margin: 5px 0;
}

.hxc-citation {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 18px;
  margin: 0 1px;
  padding: 0 5px;
  cursor: pointer;
  color: #0968ad;
  background: #e7f7ff;
  border: 0;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  vertical-align: 2px;
}

.hxc-citation:hover {
  background: #d2f1ff;
}

.hxc-table-wrap {
  width: 100%;
  margin: 8px 0 4px;
  overflow-x: auto;
  border-top: 1px solid var(--hxc-line);
  border-bottom: 1px solid var(--hxc-line);
}

.hxc-markdown-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 16px;
  overflow-x: auto;
  border-top: 1px solid var(--hxc-line);
  border-bottom: 1px solid var(--hxc-line);
  -webkit-overflow-scrolling: touch;
}

.hxc-markdown-table-wrap:focus-visible {
  outline: 2px solid rgba(22, 140, 255, 0.3);
  outline-offset: 2px;
}

.hxc-markdown-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.hxc-markdown-table th {
  padding: 9px 18px 8px 0;
  color: #737373;
  border-bottom: 1px solid var(--hxc-line);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
}

.hxc-markdown-table td {
  padding: 10px 18px 10px 0;
  color: #333;
  border-bottom: 1px solid #ededed;
  line-height: 1.45;
  white-space: nowrap;
}

.hxc-markdown-table tbody tr:last-child td {
  border-bottom: 0;
}

.hxc-markdown-table th:first-child,
.hxc-markdown-table td:first-child {
  color: #242424;
  font-weight: 550;
}

.hxc-data-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.hxc-data-table th {
  padding: 9px 10px 8px 0;
  color: #777;
  border-bottom: 1px solid var(--hxc-line);
  font-size: 10px;
  font-weight: 500;
}

.hxc-data-table td {
  padding: 12px 10px 12px 0;
  color: #333;
  border-bottom: 1px solid #ededed;
  white-space: nowrap;
}

.hxc-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.hxc-data-table th:first-child,
.hxc-data-table td:first-child {
  width: 38%;
  padding-left: 0;
}

.hxc-data-table td:first-child {
  display: flex;
  flex-direction: column;
}

.hxc-data-table td strong {
  color: #222;
  font-weight: 550;
}

.hxc-data-table td small {
  color: #8c8c8c;
  font-size: 9px;
}

.hxc-positive {
  color: #168348;
  font-weight: 550;
}

.hxc-chart-card {
  width: min(100%, 760px);
  margin: 24px 0 8px;
  padding: 16px 0 12px;
  border-top: 1px solid var(--hxc-line);
  border-bottom: 1px solid var(--hxc-line);
}

.hxc-chart-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.hxc-chart-card__header > div:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hxc-chart-card__header strong {
  color: #202124;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.hxc-chart-card__header small {
  margin-top: 3px;
  color: #858b94;
  font-size: 10px;
  line-height: 1.35;
}

.hxc-chart-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px;
  background: #f4f6f8;
  border-radius: 7px;
}

.hxc-chart-toggle button {
  min-height: 28px;
  padding: 4px 9px;
  cursor: pointer;
  color: #6d737c;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 9px;
  font-weight: 500;
}

.hxc-chart-toggle button[aria-pressed="true"] {
  color: #135fa7;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 8%);
}

.hxc-chart-toggle button:focus-visible {
  outline: 2px solid rgb(22 140 255 / 35%);
  outline-offset: 1px;
}

.hxc-chart-canvas {
  width: 100%;
  min-height: 292px;
}

.hxc-chart-coverage {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 8px;
  padding: 7px 0 7px 10px;
  color: #686f78;
  border-left: 2px solid #168cff;
  font-size: 9px;
  line-height: 1.45;
}

.hxc-chart-coverage strong {
  color: #303740;
  font-weight: 600;
}

.hxc-chart-coverage--low_coverage {
  border-left-color: #d97706;
}

.hxc-chart-table-wrap {
  width: 100%;
  max-height: 312px;
  overflow: auto;
}

.hxc-chart-table {
  width: 100%;
  border-collapse: collapse;
  color: #353a42;
  font-size: 10px;
  text-align: right;
}

.hxc-chart-table th,
.hxc-chart-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f3;
  white-space: nowrap;
}

.hxc-chart-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #777e88;
  background: #fff;
  font-size: 9px;
  font-weight: 500;
}

.hxc-chart-table th:first-child,
.hxc-chart-table td:first-child {
  width: 54%;
  padding-left: 0;
  text-align: left;
}

.hxc-chart-table th:last-child,
.hxc-chart-table td:last-child {
  padding-right: 0;
}

.hxc-chart-table tbody tr:last-child td {
  border-bottom: 0;
}

.hxc-sources-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  width: min(100%, 640px);
  min-height: 58px;
  margin: 25px 0 12px;
  padding: 8px 11px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--hxc-line);
  border-radius: 12px;
  text-align: left;
}

.hxc-sources-button:hover {
  background: #fafafa;
}

.hxc-sources-button > span:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hxc-sources-button strong {
  color: #282828;
  font-size: 11px;
  font-weight: 600;
}

.hxc-sources-button small {
  overflow: hidden;
  color: #858585;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hxc-answer-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 2px 0 30px -7px;
}

.hxc-answer-actions .hxc-icon-button {
  width: 30px;
  height: 30px;
  color: #777;
}

.hxc-follow-ups {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding-top: 18px;
  border-top: 1px solid var(--hxc-line-soft);
}

.hxc-follow-ups > span {
  margin-bottom: 1px;
  color: #767676;
  font-size: 10px;
  font-weight: 500;
}

.hxc-follow-ups button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--hxc-line);
  border-radius: 999px;
  color: #3a3a3a;
  font-size: 11px;
}

.hxc-follow-ups button:hover {
  background: var(--hxc-soft);
}

.hxc-export-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(100%, 640px);
  min-height: 40px;
  margin: 16px 0 2px;
  padding: 7px 12px;
  cursor: pointer;
  color: #0868c4;
  background: linear-gradient(135deg, #f6fcff 0%, #e7f7ff 100%);
  border: 1px solid #b8e4ff;
  border-radius: 999px;
  text-align: left;
}

.hxc-export-action > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.hxc-export-action strong {
  color: #145f9f;
  font-size: 11px;
  font-weight: 600;
}

.hxc-export-action small {
  overflow: hidden;
  max-width: 430px;
  color: #6e879b;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hxc-export-action:hover {
  color: #0057b8;
  background: linear-gradient(135deg, #eefaff 0%, #d8f2ff 100%);
  border-color: #7dcbfb;
}

.hxc-export-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

/* Error */

.hxc-error {
  max-width: 620px;
  padding: 17px 18px;
  background: #fafafa;
  border: 1px solid var(--hxc-line);
  border-radius: 12px;
}

.hxc-error strong {
  color: #242424;
  font-size: 13px;
}

.hxc-error p {
  margin: 6px 0 13px;
  color: #696969;
  font-size: 12px;
}

.hxc-error > div > div {
  display: flex;
  gap: 7px;
}

.hxc-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 11px;
}

.hxc-button--primary {
  color: var(--hxc-blue-ink) !important;
  background: var(--hxc-gradient);
  border-color: #72ceff;
}

/* Sources drawer */

.hxc-context {
  position: absolute;
  z-index: 31;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(380px, 92%);
  background: #fff;
  border-left: 1px solid var(--hxc-line);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  transform: translateX(102%);
  transition: transform 0.22s ease;
}

.horex-copilot.is-context-open .hxc-context {
  transform: translateX(0);
}

.hxc-context__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  min-height: 64px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid var(--hxc-line);
}

.hxc-context__header > div {
  display: flex;
  flex-direction: column;
}

.hxc-context__header strong {
  font-size: 14px;
  font-weight: 600;
}

.hxc-context__scroll {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}

.hxc-source-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 9px;
  margin-bottom: 8px;
  padding: 13px 10px;
  background: #fff;
  border: 1px solid var(--hxc-line);
  border-radius: 12px;
}

.hxc-source-card > div {
  min-width: 0;
}

.hxc-source-card strong {
  color: #272727;
  font-size: 12px;
  font-weight: 600;
}

.hxc-source-card p {
  margin: 3px 0 7px;
  color: #666;
  font-size: 11px;
  line-height: 1.45;
}

.hxc-source-card > button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  color: #707070;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.hxc-source-card > button:hover {
  background: var(--hxc-soft);
}

/* Responsive shell, driven by the UI Lab canvas width */

@container horex-copilot (max-width: 860px) {
  .hxc-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .horex-copilot.is-history-collapsed .hxc-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .hxc-history {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 88%);
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }

  .horex-copilot.is-history-collapsed .hxc-history {
    padding: 8px;
  }

  .horex-copilot.is-history-open .hxc-history {
    transform: translateX(0);
  }

  .horex-copilot.is-history-open .hxc-panel-dismiss,
  .horex-copilot.is-context-open .hxc-panel-dismiss {
    position: absolute;
    z-index: 15;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: default;
    background: transparent;
    border: 0;
  }

  .hxc-header__mobile-button {
    display: inline-grid;
  }

  .hxc-welcome {
    width: min(700px, calc(100% - 36px));
  }

  .hxc-suggestions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container horex-copilot (max-width: 520px) {
  .hxc-shell {
    height: min(820px, 100dvh);
    min-height: 650px;
    border-radius: 13px;
  }

  .hxc-header {
    height: 52px;
    padding: 0 9px;
  }

  .hxc-history {
    width: 100%;
  }

  .hxc-sidebar__top {
    min-height: 52px;
  }

  .hxc-header__mobile-button,
  .hxc-history__close,
  .hxc-context__close {
    width: 44px;
    height: 44px;
  }

  .hxc-model-button {
    padding: 0 5px;
  }

  .hxc-model-button strong {
    font-size: 14px;
  }

  .hxc-credit-popover {
    width: min(330px, calc(100vw - 20px));
  }

  .hxc-main__scroll--start {
    align-items: flex-start;
    justify-content: center;
    padding: clamp(66px, 11dvh, 100px) 0 185px;
  }

  .hxc-welcome {
    width: calc(100% - 24px);
  }

  .hxc-welcome h2 {
    font-size: 25px;
    line-height: 1.16;
  }

  .hxc-welcome__mark {
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
  }

  .hxc-suggestions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 25px;
  }

  .hxc-suggestions button {
    min-height: 52px;
    padding: 9px 10px;
    border-radius: 11px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .hxc-composer {
    width: 100%;
  }

  .hxc-composer-wrap {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hxc-conversation {
    width: calc(100% - 28px);
    padding-top: 20px;
    padding-bottom: 170px;
  }

  .hxc-question {
    margin-bottom: 28px;
  }

  .hxc-question p {
    max-width: 88%;
    font-size: 13px;
  }

  .hxc-response__header {
    margin-bottom: 12px;
  }

  .hxc-interpretation {
    margin-bottom: 15px;
  }

  .hxc-interpretation__chip {
    max-width: 100%;
  }

  .hxc-interpretation__chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hxc-interpretation__contract dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hxc-answer-copy h2 {
    font-size: 19px;
  }

  .hxc-answer-copy p {
    font-size: 13px;
    line-height: 1.68;
  }

  .hxc-table-wrap {
    margin-right: -14px;
    width: calc(100% + 14px);
  }

  .hxc-chart-card {
    margin-top: 20px;
    padding-top: 14px;
  }

  .hxc-chart-card__header {
    gap: 10px;
  }

  .hxc-chart-card__header strong {
    font-size: 12px;
  }

  .hxc-chart-canvas {
    min-height: 240px;
  }

  .hxc-chart-toggle button {
    min-height: 44px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .hxc-context {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .horex-copilot *,
  .horex-copilot *::before,
  .horex-copilot *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Production workspace inside the shared ERP shell */

.horex-copilot--app {
  width: 100%;
  min-height: 0;
}

.hxc-shell--app {
  height: calc(100dvh - var(--header-height, 64px) - 64px);
  min-height: 620px;
}

.hxc-history__search-control {
  margin: 0 4px 12px;
}

.hxc-history__search-control .ds-search-input {
  background: #fff;
}

.hxc-history__empty,
.hxc-conversation-loading,
.hxc-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--hxc-muted);
  font-size: 11px;
}

.hxc-history__empty {
  min-height: 92px;
  padding: 18px;
  text-align: center;
}

.hxc-conversation-loading {
  min-height: 240px;
}

.hxc-loading-state {
  flex: 1;
  flex-direction: column;
  min-height: 100%;
}

.hxc-loading-state .hxc-welcome__mark {
  margin-bottom: 5px;
}

.hxc-loading-state > svg,
.hxc-history__empty > svg,
.hxc-conversation-loading > svg {
  animation: hxc-spin 0.9s linear infinite;
}

.hxc-answer-copy code {
  padding: 2px 5px;
  color: #155f8d;
  background: #edf9ff;
  border: 1px solid #d9f2ff;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.hxc-composer .hxc-composer__input:disabled {
  cursor: not-allowed;
}

.hxc-composer__footer > button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.55;
}

.hxc-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #dce8f2;
  border-radius: 16px;
  background: #fbfdff;
}

.hxc-action-card__identity,
.hxc-action-card__facts,
.hxc-action-card.is-inactive {
  display: flex;
  align-items: center;
}

.hxc-action-card__identity {
  min-width: 0;
  gap: 11px;
}

.hxc-action-card__identity > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #1466a0;
  border-radius: 50%;
  background: #e8f6ff;
}

.hxc-action-card__identity div {
  min-width: 0;
}

.hxc-action-card__identity strong,
.hxc-action-card__identity small {
  display: block;
}

.hxc-action-card__identity strong {
  color: var(--hxc-text);
  font-size: 13px;
}

.hxc-action-card__identity small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--hxc-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hxc-action-card__facts {
  grid-column: 1 / -1;
  gap: 8px 16px;
  color: #617187;
  font-size: 11px;
}

.hxc-action-card__facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hxc-action-card__facts strong {
  margin-left: auto;
  color: var(--hxc-text);
  font-size: 13px;
}

.hxc-action-card.is-created {
  background: #f7fcfa;
  border-color: #cfe9df;
}

.hxc-action-card.is-created .hxc-action-card__identity > span {
  color: #087a55;
  background: #e4f7ef;
}

.hxc-action-card.is-inactive {
  grid-template-columns: auto 1fr;
  gap: 8px;
  color: var(--hxc-muted);
  background: #fafafa;
}

.hxc-action-review > dl,
.hxc-action-review__totals {
  display: grid;
  gap: 9px;
  margin: 0;
}

.hxc-action-review > dl > div,
.hxc-action-review__totals > div,
.hxc-action-review__items > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hxc-action-review dt,
.hxc-action-review dd {
  margin: 0;
}

.hxc-action-review dt {
  color: #7a8798;
  font-size: 12px;
}

.hxc-action-review dd {
  color: var(--hxc-text);
  font-size: 12px;
  text-align: right;
}

.hxc-action-review__items {
  display: grid;
  gap: 0;
  margin: 18px 0;
  border-top: 1px solid #e7edf2;
  border-bottom: 1px solid #e7edf2;
}

.hxc-action-review__items > div {
  padding: 12px 0;
}

.hxc-action-review__items > div + div {
  border-top: 1px solid #eef2f5;
}

.hxc-action-review__items span,
.hxc-action-review__items strong,
.hxc-action-review__items small {
  display: block;
}

.hxc-action-review__items strong,
.hxc-action-review__items b {
  color: var(--hxc-text);
  font-size: 12px;
}

.hxc-action-review__items small {
  margin-top: 3px;
  color: #7a8798;
  font-size: 11px;
}

.hxc-action-review__totals {
  padding-top: 2px;
}

.hxc-action-review__notice {
  margin: 16px 0 0;
  padding: 11px 13px;
  color: #486274;
  border-radius: 10px;
  background: #eef8ff;
  font-size: 11px;
  line-height: 1.45;
}

@container horex-copilot (max-width: 520px) {
  .hxc-shell--app {
    min-height: 0;
  }

  .hxc-main__scroll--start {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hxc-suggestions button span {
    white-space: normal;
  }
}

/* Mobile workspace follows the same viewport chain as Inbox:
   the shared ERP header stays visible, while only the Copilot panes scroll. */
@media (max-width: 768px) {
  html.horex-copilot-viewport,
  body.horex-copilot-viewport {
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body.horex-copilot-viewport .app,
  body.horex-copilot-viewport .main {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.horex-copilot-viewport .content.hxc-copilot-host {
    flex: 1;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .hxc-copilot-host > .horex-copilot--app,
  .hxc-shell--app,
  .hxc-main {
    height: 100%;
    min-height: 0;
  }

  .hxc-shell--app {
    border: 0;
    border-radius: 0;
  }

  .hxc-main {
    overflow: hidden;
  }

  .hxc-main__scroll {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .hxc-composer-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff;
  }

  .hxc-conversation {
    padding-bottom: 28px;
  }

  .hxc-action-card {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 15px;
    border-radius: 14px;
  }

  .hxc-action-card .hxc-button {
    width: 100%;
    min-height: 44px;
  }

  .hxc-action-card__facts {
    grid-column: 1;
    flex-wrap: wrap;
  }

  .hxc-action-card__facts strong {
    width: 100%;
    margin: 2px 0 0;
  }
}
