.exp-semantic {
  max-width: 1240px;
  margin: 0 auto 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line, #d7e4dc);
  border-radius: 18px;
  background: #f6faf7;
  box-shadow: 0 10px 28px rgba(24, 57, 39, .06);
}
.exp-semantic-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.exp-semantic-heading h2 {
  margin: 2px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--paper, #17352a);
}
.exp-semantic-heading > p, .exp-semantic-help {
  margin: 0;
  color: #62796e;
  font-size: .86rem;
  line-height: 1.55;
}
.exp-semantic-eyebrow {
  margin: 0;
  color: var(--jade-dark, #367553);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.exp-semantic-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--paper, #17352a);
  font-weight: 700;
}
.exp-semantic-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.exp-semantic-input-row input {
  flex: 1 1 320px;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #afc9ba;
  border-radius: 10px;
  background: #fff;
  color: var(--paper, #17352a);
  font: inherit;
}
.exp-semantic-input-row input::placeholder { color: #687f73; opacity: 1; }
.exp-semantic-input-row input:focus-visible,
.exp-semantic-input-row button:focus-visible,
.exp-semantic-suggestion:focus-visible {
  outline: 3px solid #1d7652;
  outline-offset: 2px;
}
.exp-semantic-input-row button,
.exp-semantic-suggestion {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #327b58;
  border-radius: 10px;
  background: #23714d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.exp-semantic-input-row button:disabled { opacity: .58; cursor: wait; }
.exp-semantic-input-row button[hidden] { display: none; }
#exp-semantic-cancel { color: #245c42; background: #fff; }
.exp-semantic-help { margin-top: 9px; }
.exp-semantic-status {
  margin: 14px 0 0;
  font-size: .89rem;
  line-height: 1.5;
}
.exp-semantic-status:empty,
.exp-semantic-results:empty { display: none; }
.exp-semantic-status.is-error { color: #a2352e; }
.exp-semantic-summary {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #9bbfa9;
  border-radius: 14px;
  background: #eaf5ed;
}
.exp-semantic-summary[hidden] { display: none; }
.exp-semantic-summary.is-stale { background: #f1f5f1; }
.exp-semantic-summary h3 { margin: 0 0 12px; font-size: 1.06rem; color: #173d29; }
.exp-semantic-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.exp-semantic-summary dl > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff;
}
.exp-semantic-summary dt { color: #52705e; font-size: .8rem; }
.exp-semantic-summary dd {
  margin: 3px 0 0;
  color: #123a26;
  font-size: clamp(.94rem, 2vw, 1.12rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.exp-semantic-summary-note {
  margin: 10px 0 0;
  color: #476657;
  font-size: .81rem;
  line-height: 1.5;
}
.exp-semantic-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 14px;
  margin-top: 16px;
}
.exp-semantic-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #cfdfd4;
  border-radius: 14px;
  background: #fff;
}
.exp-semantic-card.is-skipped { border-color: #e4d9ba; background: #fffcf3; }
.exp-semantic-card.is-conflict { border-color: #e8c6a2; background: #fffbf6; }
.exp-semantic-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.exp-semantic-source {
  margin: 0 0 10px;
  color: #476657;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.exp-semantic-conditions, .exp-semantic-note {
  margin: 10px 0 0;
  color: #5a7064;
  font-size: .81rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.exp-semantic-card dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
.exp-semantic-card dl > div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #edf6ef;
}
.exp-semantic-card dt { color: #52705e; font-size: .77rem; }
.exp-semantic-card dd {
  margin: 3px 0 0;
  color: #163d29;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.exp-semantic-converted,
.exp-semantic-exact { display: block; }
.exp-semantic-exact {
  margin-top: 2px;
  color: #52705e;
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.45;
}
.exp-semantic-suggestion {
  display: block;
  margin-top: 12px;
}
@media (max-width: 560px) {
  .exp-semantic { margin: 0 12px 20px; padding: 16px; }
  .exp-semantic-heading { display: block; }
  .exp-semantic-heading > p { margin-top: 8px; }
  .exp-semantic-input-row input { flex-basis: 100%; }
  .exp-semantic-input-row button { flex: 1 1 auto; }
  .exp-semantic-summary dl { grid-template-columns: 1fr; }
}
