.ep-skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 4;
  border-radius: .55rem;
  padding: .7rem 1rem;
  background: var(--ep-pink);
  color: #190e13;
  font-weight: 900;
}

.ep-skip:focus { top: 1rem; }

.ep-tool,
.ep-tool button,
.ep-tool input,
.ep-tool select {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-kerning: normal;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
}

.ep-tool :where(button, input, select) { font-size: 16px; }

.ep-brand { display: inline-flex; align-items: center; gap: .65rem; }
.ep-brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(239, 140, 175, .28)); }
.ep-brand span { display: block; }
.ep-brand small {
  display: block;
  margin-top: .2rem;
  color: var(--ep-muted);
  font: 800 .8125rem/1.25 "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: .14em;
}

.ep-tool {
  min-width: 0;
  margin-top: 1.25rem;
  border: 1px solid var(--ep-line);
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(145deg, rgba(239, 140, 175, .09), rgba(255, 255, 255, .018));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .2);
}

.ep-tool__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .9rem 1.2rem;
}

.ep-tool__head h2 {
  margin: 0;
  font: 600 clamp(1.85rem, 4vw, 2.55rem)/1.06 "Playfair Display", Georgia, serif;
  letter-spacing: -.03em;
}

.ep-tool__head p {
  max-width: 52ch;
  margin: .5rem 0 0;
  color: var(--ep-muted);
  font-size: clamp(.94rem, 1.4vw, 1.02rem);
  line-height: 1.55;
}

.ep-tool__count {
  max-width: 26ch;
  margin: 0;
  color: var(--ep-pink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.ep-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .6rem;
  margin-top: 1.15rem;
}

.ep-search label {
  grid-column: 1 / -1;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
}

.ep-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--ep-line);
  border-radius: .7rem;
  padding: .72rem .9rem;
  background: #09090c;
  color: var(--ep-paper);
  font: inherit;
  line-height: 1.35;
}

.ep-search button {
  min-height: 48px;
  border: 1px solid var(--ep-pink);
  border-radius: .7rem;
  padding: .72rem 1rem;
  background: var(--ep-pink);
  color: #190e13;
  font: 900 .76rem/1.25 "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.ep-search [data-ep-clear] {
  border-color: var(--ep-line);
  background: transparent;
  color: var(--ep-paper);
}

.ep-search button:disabled,
.ep-copy-wording:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.ep-search-hint,
.ep-tool__notice {
  margin: .72rem 0 0;
  color: var(--ep-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.ep-tool__notice[hidden] { display: none; }
.ep-tool__notice.is-error { color: #ffb3b3; }

.ep-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.1rem;
}

.ep-result {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .9rem;
  border: 1px solid var(--ep-line);
  border-radius: .85rem;
  padding: clamp(.9rem, 2vw, 1.1rem);
  background: rgba(5, 5, 6, .62);
}

.ep-result h3 {
  margin: 0;
  font: 600 clamp(1.36rem, 2.2vw, 1.58rem)/1.08 "Playfair Display", Georgia, serif;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.ep-result__producer {
  margin: .3rem 0 0;
  color: var(--ep-pink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.ep-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 0;
}

.ep-facts div {
  min-width: 0;
  border-left: 2px solid rgba(239, 140, 175, .5);
  padding-left: .65rem;
}

.ep-facts dt {
  color: var(--ep-muted);
  font-size: .8125rem;
  font-weight: 900;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ep-facts dd {
  margin: .22rem 0 0;
  color: var(--ep-paper);
  font-size: .92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ep-wording {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(239, 140, 175, .36);
  border-radius: .7rem;
  padding: .85rem;
  background: rgba(239, 140, 175, .06);
}

.ep-wording span {
  display: block;
  color: var(--ep-muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ep-wording code {
  display: block;
  min-width: 0;
  min-block-size: 4.5rem;
  max-inline-size: 100%;
  max-block-size: min(15rem, 38vh);
  margin-top: .55rem;
  border-left: 2px solid var(--ep-pink);
  padding: .15rem .7rem;
  color: var(--ep-paper);
  font: 600 clamp(.92rem, 1.25vw, 1rem)/1.58 "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: 0;
  overflow-x: auto;
  overflow-y: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-color: var(--ep-pink) rgba(255, 255, 255, .06);
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  text-overflow: clip;
  white-space: pre-wrap;
  word-break: normal;
  user-select: text;
  cursor: text;
  -webkit-overflow-scrolling: touch;
}

.ep-wording code::-webkit-scrollbar { width: 9px; height: 9px; }
.ep-wording code::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--ep-pink);
  background-clip: padding-box;
}
.ep-wording code::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); }

.ep-wording__unavailable {
  margin: .5rem 0 0;
  color: var(--ep-muted);
  font-size: .94rem;
  line-height: 1.5;
}

.ep-result__note {
  margin: 0;
  color: var(--ep-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.ep-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: auto;
}

.ep-copy-wording,
.ep-result__action {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ep-line);
  border-radius: .65rem;
  padding: .7rem .85rem;
  background: transparent;
  color: var(--ep-paper);
  font: 900 .75rem/1.3 "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: .065em;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.ep-copy-wording { flex: 1 1 100%; }
.ep-result__action { flex: 1 1 12rem; }
.ep-result__action--primary {
  border-color: rgba(239, 140, 175, .65);
  background: rgba(239, 140, 175, .08);
}
.ep-copy-wording.is-copied { border-color: #7dd9ad; color: #b7efcb; }
.ep-copy-wording.is-copy-error { border-color: #ffb3b3; color: #ffb3b3; }

.ep-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--ep-line);
  border-radius: .85rem;
  padding: 1.25rem;
  color: var(--ep-muted);
  line-height: 1.5;
  text-align: center;
}

.ep-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ep-page input:focus-visible,
.ep-page button:focus-visible,
.ep-page a:focus-visible,
.ep-wording code:focus-visible {
  outline: 3px solid var(--ep-pink);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .ep-tool__count { max-width: none; text-align: left; }
  .ep-search { grid-template-columns: 1fr 1fr; }
  .ep-search input { grid-column: 1 / -1; }
  .ep-results { grid-template-columns: 1fr; }
  .ep-brand img { width: 34px; height: 34px; }
  .ep-facts { grid-template-columns: 1fr; }
  .ep-result__action { flex-basis: 100%; }
  .ep-wording code { max-block-size: min(14rem, 38vh); }
}

@media (prefers-reduced-motion: reduce) {
  .ep-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
