[hidden] { display: none !important; }

.ex-card {
  background: var(--surface, #fffaf2);
  border: 1.5px solid var(--border, #dfd2be);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(43, 33, 24, 0.08));
}

.ex-head h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 22px;
  margin: 0 0 6px;
}
.ex-head p {
  margin: 0 0 16px;
  color: var(--muted, #6b5b4b);
  font-size: 14.5px;
}

.ex-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.ex-input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1.5px solid var(--border, #dfd2be);
  border-radius: 10px;
  background: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}
.ex-input:is(:user-invalid, .user-invalid-fallback) { border-color: #b91c1c; }

.ex-btn { min-height: 46px; }

.ex-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdf0ea;
  border: 1px solid #ecc4b3;
  color: #9a3412;
  font-size: 14px;
  font-weight: 600;
}

.ex-stat-row, .ex-splits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ex-stat, .ex-split-chip {
  background: var(--bg, #f7f1e8);
  border: 1px solid var(--border, #dfd2be);
  border-radius: 10px;
  padding: 12px;
}
.ex-split-chip.is-mid {
  background: var(--ink, #2b2118);
  color: #fffaf2;
  border-color: var(--ink, #2b2118);
}

.ex-stat span, .ex-split-chip span {
  display: block;
  font-size: 12px;
  color: var(--muted, #6b5b4b);
  margin-bottom: 4px;
}
.ex-split-chip.is-mid span { color: var(--gold, #e0a03a); }

.ex-stat strong, .ex-split-chip strong {
  font-family: var(--font-mono, monospace);
  font-size: 17px;
}
.ex-highlight { color: var(--accent, #c2562f); }

.ex-samples-title {
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--ink, #2b2118);
}

.ex-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-word-pill {
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg, #f7f1e8);
  border: 1px solid var(--border, #dfd2be);
  color: var(--ink, #2b2118);
}

.ex-az-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #dfd2be);
}

.ex-az-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.ex-az-btn {
  min-width: 34px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border, #dfd2be);
  background: var(--bg, #f7f1e8);
  color: var(--ink, #2b2118);
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ex-az-btn.is-active {
  background: var(--accent, #c2562f);
  color: #ffffff;
  border-color: var(--accent, #c2562f);
}

.ex-az-detail { font-size: 14px; color: var(--muted, #6b5b4b); }

@media (max-width: 640px) {
  .ex-card { padding: 14px; }
  .ex-form { grid-template-columns: 1fr; }
  .ex-stat-row, .ex-splits { grid-template-columns: 1fr; }
}