.ix-stack,
.ix-grid {
  display: grid;
  gap: 1rem;
}
.ix-card,
.ix-list {
  background: var(--surface, #fff);
  border: 1px solid #dce2da;
  border-radius: 16px;
}
.ix-card {
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  gap: 16px;
}
.ix-card > button,
.ix-card .ix-help button {
  justify-self: start;
}
.ix-cardhead {
  display: flex;
  gap: 15px;
  align-items: center;
}
.ix-card h2 {
  font-size: 1.28rem;
  margin: 0 0 4px;
}
.ix-card p,
.ix-stack p {
  margin: 0;
}
.ix-ico {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #235e49;
  background: #e8f0e7;
}
.ix-meta,
.ix-preview {
  color: #536457;
  line-height: 1.55;
}
.ix-meta {
  font-size: 0.94rem;
}
.ix-rows,
.ix-rowbody {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ix-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e2e7df;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ix-row:last-child {
  border-bottom: 0;
}
.ix-row:hover,
.ix-row:focus-visible {
  background: #f3f7f0;
}
.ix-rowbody {
  flex: 1;
}
.ix-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ix-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.ix-tab {
  font: inherit;
  font-size: 0.98rem;
  border: 1px solid #dae2d8;
  background: #fff;
  padding: 10px 15px;
  border-radius: 100px;
  min-height: 44px;
  color: #334a3c;
  cursor: pointer;
}
.ix-selected {
  background: #214f3d;
  color: #fff;
  border-color: #214f3d;
}
.ix-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 650;
  font-size: 0.82rem;
  white-space: nowrap;
}
.ix-warn {
  color: #74480d;
  background: #fff0cd;
}
.ix-good {
  color: #235739;
  background: #e3efdf;
}
.ix-bankrow,
.ix-titleline,
.ix-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ix-bankrow,
.ix-titleline {
  justify-content: space-between;
}
.ix-status,
.ix-callout {
  background: #f8f4e8;
  border: 1px solid #e8ddba;
  border-radius: 8px;
  padding: 11px 14px;
  color: #5d4f29;
  line-height: 1.5;
}
.ix-status {
  font-size: 0.95rem;
}
.ix-help {
  border-top: 1px solid #e2e7df;
  padding-top: 10px;
}
.ix-help summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
}
.ix-help[open] > .ix-stack {
  margin-top: 12px;
}
.ix-messagebody {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 44vh;
  overflow: auto;
  line-height: 1.6;
  background: #f6f7f2;
  padding: 16px;
  border-radius: 10px;
}
.ix-file {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  color: #1c634a;
}
.ix-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ix-copy-field {
  box-sizing: border-box;
  resize: vertical;
  flex: 1;
  min-width: 180px;
  border: 1px solid #ced7ce;
  border-radius: 8px;
  background: #f7f9f4;
  color: #253d2f;
  padding: 9px;
  font-size: 0.96rem;
}
.ix-grid .pf-field {
  margin: 0;
}
.ix-stack [hidden],
.ix-page [hidden],
.pf-form .ix-callout[hidden] {
  display: none;
}
.ix-card > .ix-help .pf-btn {
  width: auto;
}
@media (max-width: 650px) {
  .ix-row {
    gap: 8px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .ix-rowbody {
    flex-basis: calc(100% - 70px);
  }
  .ix-row .ix-pill {
    margin-left: 51px;
  }
  .ix-tab {
    font-size: 0.92rem;
  }
  .ix-actions > .pf-btn {
    flex: 1;
  }
  .ix-card {
    padding: 16px;
  }
  .ix-copy-field {
    min-width: 140px;
  }
}
