.xeqt-calculator {
  --x-bg: #f4efe4;
  --x-panel: #fffdfa;
  --x-panel-alt: #f9f4ea;
  --x-border: #dfd4bf;
  --x-text: #1f2a22;
  --x-sub: #4f5b52;
  --x-accent: #106c4a;
  --x-accent-2: #c58a1f;
  --x-chip-bg: #1f2a22;
  --x-chip-text: #fff3dc;
  --x-focus: #0d9b67;
  margin: 24px 0;
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--x-text);
}

.xeqt-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 0% 0%, #fff8ee 0%, rgba(255, 248, 238, 0) 58%),
    radial-gradient(85% 120% at 100% 100%, rgba(197, 138, 31, 0.14) 0%, rgba(197, 138, 31, 0) 72%),
    linear-gradient(145deg, var(--x-bg), #efe6d6);
  border: 1px solid var(--x-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(57, 46, 28, 0.18);
}

.xeqt-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(transparent 95%, rgba(16, 108, 74, 0.08) 95%), linear-gradient(90deg, transparent 95%, rgba(16, 108, 74, 0.08) 95%);
  background-size: 28px 28px;
  opacity: 0.32;
}

.xeqt-head,
.xeqt-grid,
.xeqt-faq,
.xeqt-disclaimer {
  position: relative;
  z-index: 1;
}

.xeqt-tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--x-chip-bg);
  color: var(--x-chip-text);
  padding: 7px 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.xeqt-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  color: #213326;
}

.xeqt-head p {
  margin: 0 0 18px;
  color: var(--x-sub);
  font-size: 1.02rem;
  max-width: 68ch;
}

.xeqt-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.xeqt-panel,
.xeqt-side,
.xeqt-faq {
  background: linear-gradient(180deg, var(--x-panel), var(--x-panel-alt));
  border: 1px solid var(--x-border);
  border-radius: 16px;
  padding: 16px;
}

.xeqt-field {
  margin-bottom: 12px;
}

.xeqt-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2f4035;
}

.xeqt-input-wrap {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  border: 1px solid #c7baa1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.xeqt-input-wrap span {
  display: grid;
  place-items: center;
  color: var(--x-accent);
  font-weight: 800;
}

.xeqt-range-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
}

.xeqt-select,
.xeqt-calculator input[type="number"],
.xeqt-calculator input[type="range"] {
  width: 100%;
}

.xeqt-select,
.xeqt-calculator input[type="number"] {
  appearance: none;
  border: 1px solid #c7baa1;
  border-radius: 10px;
  background: #fff;
  color: var(--x-text);
  padding: 10px;
  font-size: 15px;
}

.xeqt-calculator input[type="range"] {
  accent-color: var(--x-focus);
}

.xeqt-select:focus,
.xeqt-calculator input[type="number"]:focus,
.xeqt-calculator input[type="range"]:focus {
  outline: 2px solid color-mix(in srgb, var(--x-focus) 38%, white);
  outline-offset: 1px;
}

.xeqt-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.xeqt-metrics div {
  border: 1px solid #d5c9b2;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.xeqt-metrics small {
  display: block;
  margin-bottom: 4px;
  color: #56685d;
  font-size: 12px;
}

.xeqt-metrics strong {
  color: #153e2c;
  font-size: 1.04rem;
}

.xeqt-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.xeqt-scenario-btn {
  border: 1px solid #b9ab92;
  background: #fff;
  color: #1f2a22;
  border-radius: 10px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.xeqt-scenario-btn:hover {
  border-color: #9f8c67;
  background: #fff8e8;
}

.xeqt-coffee {
  background: linear-gradient(125deg, rgba(16, 108, 74, 0.12), rgba(197, 138, 31, 0.12));
  border: 1px solid #ccbda4;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.xeqt-coffee-media {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #ccbda4;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.xeqt-coffee-media img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.xeqt-coffee-copy {
  min-width: 0;
  inline-size: 100%;
  max-width: 100%;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.42;
  color: #1f3027;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  hyphens: auto;
}

.xeqt-coffee-copy-wrap {
  min-width: 0;
}

.xeqt-coffee-badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #1f2a22;
  color: #fff3dc;
}

.xeqt-milestones {
  display: grid;
  gap: 8px;
}

.xeqt-mile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #d5c9b2;
  border-radius: 10px;
  padding: 8px 10px;
}

.xeqt-mile span {
  color: #42564a;
  font-weight: 600;
}

.xeqt-mile b {
  color: #0f5f42;
}

.xeqt-projection {
  background: linear-gradient(180deg, var(--x-panel), var(--x-panel-alt));
  border: 1px solid var(--x-border);
  border-radius: 16px;
  padding: 14px;
}

.xeqt-projection-accordion {
  margin-top: 14px;
}

.xeqt-projection-accordion > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--x-border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--x-panel), var(--x-panel-alt));
  color: #213326;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 14px;
}

.xeqt-projection-accordion > summary::-webkit-details-marker {
  display: none;
}

.xeqt-projection-accordion > summary::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
  line-height: 1;
}

.xeqt-projection-accordion[open] > summary::after {
  content: "\2212";
}

.xeqt-projection-accordion[open] .xeqt-projection {
  margin-top: 8px;
}

.xeqt-projection-wrap {
  overflow-x: auto;
}

.xeqt-projection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.xeqt-projection-table th,
.xeqt-projection-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #d8ccba;
  text-align: left;
  white-space: nowrap;
}

.xeqt-projection-table th {
  color: #3f5046;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.xeqt-projection-table td {
  color: #1f2a22;
  font-weight: 600;
}

.xeqt-faq {
  margin-top: 14px;
}

.xeqt-faq h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  color: #213326;
}

.xeqt-faq details {
  border: 1px solid #d8ccba;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}

.xeqt-faq summary {
  cursor: pointer;
  padding: 10px;
  font-weight: 700;
  color: #223a2c;
}

.xeqt-faq p {
  margin: 0;
  padding: 0 10px 12px;
  color: #4d5e54;
}

.xeqt-disclaimer {
  margin: 12px 0 0;
  font-size: 12px;
  color: #58675d;
}

@media (max-width: 920px) {
  .xeqt-shell {
    padding: 20px;
  }

  .xeqt-grid {
    grid-template-columns: 1fr;
  }

  .xeqt-metrics {
    grid-template-columns: 1fr;
  }

  .xeqt-scenarios {
    grid-template-columns: 1fr;
  }

  .xeqt-coffee {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .xeqt-coffee-media {
    width: 72px;
    height: 72px;
  }
}
