.ehk {
  --ehk-ink: #10291f;
  --ehk-accent: #5b9a31;
  --ehk-warm: #f2c94c;
  --ehk-line: #cfdcd4;
  --ehk-soft: #eef4f0;
  margin: 0 0 36px;
  padding: 24px;
  border: 1px solid var(--ehk-line);
  border-top: 5px solid var(--ehk-accent);
  background: #fff;
  line-height: 1.5;
  scroll-margin-top: 90px;
}
.ehk *, .ehk *::before, .ehk *::after { box-sizing: border-box; }
.ehk .ehk-title { margin: 0 0 10px; font-size: 24px; line-height: 1.25; color: var(--ehk-ink); }
.ehk .ehk-lead { margin: 0 0 22px; }

.ehk .ehk-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 767px) {
  .ehk { padding: 18px 16px; }
  .ehk .ehk-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

.ehk .ehk-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.ehk .ehk-label { display: block; margin: 0 0 7px; padding: 0; font-size: 14px; font-weight: 700; color: var(--ehk-ink); }
.ehk .ehk-label b { font-weight: 700; color: var(--ehk-accent); }
.ehk .ehk-hint { margin: 8px 0 0; font-size: 13px; color: #55645b; min-height: 2.9em; }

.ehk .ehk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ehk .ehk-chip { position: relative; margin: 0; cursor: pointer; }
.ehk .ehk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ehk .ehk-chip span {
  display: block;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--ehk-line);
  background: #fff;
  color: var(--ehk-ink);
  font-size: 14px;
  line-height: 22px;
}
.ehk .ehk-chip input:checked + span { border-color: var(--ehk-ink); background: var(--ehk-ink); color: #fff; }

.ehk .ehk-row { display: flex; gap: 8px; align-items: stretch; }
.ehk .ehk-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--ehk-line);
  border-radius: 0;
  background: #fff;
  color: #1c2a22;
  font: inherit;
  font-size: 16px;
}
.ehk .ehk-row .ehk-input { flex: 0 0 96px; width: 96px; }
.ehk .ehk-quick { display: flex; gap: 6px; flex: 1 1 auto; }
.ehk .ehk-quick button {
  flex: 1 1 0;
  min-width: 40px;
  height: 44px;
  margin: 0;
  padding: 0 6px;
  border: 1px solid var(--ehk-line);
  border-radius: 0;
  background: var(--ehk-soft);
  color: var(--ehk-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ehk .ehk-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ehk .ehk-cols .ehk-field { margin-bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 480px) {
  .ehk .ehk-cols { grid-template-columns: minmax(0, 1fr); }
}

.ehk .ehk-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ehk .ehk-range::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(to right, var(--ehk-accent) var(--ehk-fill, 72%), var(--ehk-line) var(--ehk-fill, 72%));
}
.ehk .ehk-range::-moz-range-track { height: 8px; background: var(--ehk-line); }
.ehk .ehk-range::-moz-range-progress { height: 8px; background: var(--ehk-accent); }
.ehk .ehk-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ehk-ink);
  box-shadow: 0 0 0 1px var(--ehk-ink);
}
.ehk .ehk-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ehk-ink);
  box-shadow: 0 0 0 1px var(--ehk-ink);
}

.ehk .ehk-chip input:focus-visible + span,
.ehk .ehk-input:focus-visible,
.ehk .ehk-quick button:focus-visible,
.ehk .ehk-range:focus-visible { outline: 2px solid var(--ehk-accent); outline-offset: 2px; }

.ehk .ehk-result { padding: 22px; background: var(--ehk-ink); color: #fff; }
.ehk .ehk-result-label { margin: 0; font-size: 14px; color: #c6d6cc; }
.ehk .ehk-big { margin: 0 0 14px; font-size: 20px; color: #fff; }
.ehk .ehk-big b { font-size: 52px; line-height: 1.05; font-weight: 700; color: var(--ehk-warm); font-variant-numeric: tabular-nums; }
.ehk .ehk-rows { margin: 0; padding: 0; }
.ehk .ehk-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.ehk .ehk-rows dt { margin: 0; font-size: 14px; font-weight: 400; color: #c6d6cc; }
.ehk .ehk-rows dd { margin: 0; text-align: right; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.ehk .ehk-rows dd b { display: block; font-weight: 700; }
.ehk .ehk-rows dd span { display: block; font-size: 14px; color: var(--ehk-warm); }

.ehk .ehk-note { margin: 18px 0 0; font-size: 13px; color: #55645b; }

.ehk .ehk-sticky { display: none; }
@media (max-width: 767px) {
  .ehk .ehk-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ehk-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .3);
  }
  .ehk .ehk-sticky[hidden] { display: none; }
  .ehk .ehk-sticky-more { flex: none; padding: 5px 10px; background: var(--ehk-warm); color: var(--ehk-ink); font-size: 13px; }
}
