.eql-app {
  --eql-bg: #f5f7fb;
  --eql-surface: #ffffff;
  --eql-surface-muted: #f8fafc;
  --eql-brand: #1266d4;
  --eql-brand-strong: #0e52aa;
  --eql-text: #1a2533;
  --eql-muted: #5f6c7b;
  --eql-line: #cbd5e1;
  --eql-danger: #cc4b37;
  --eql-radius: 18px;
  --eql-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  color: var(--eql-text);
}

.eql-app,
.eql-app * {
  box-sizing: border-box;
}

.eql-form {
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.eql-section {
  background: var(--eql-surface);
  border: 1px solid rgba(184, 196, 209, 0.45);
  border-radius: var(--eql-radius);
  box-shadow: var(--eql-shadow);
  padding: 28px;
}

.eql-section__head {
  margin-bottom: 18px;
}

.eql-section__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.eql-field-grid {
  display: grid;
  gap: 16px;
}

.eql-field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eql-field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eql-field-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eql-field {
  display: grid;
  gap: 8px;
}

.eql-field > span {
  font-weight: 700;
  font-size: 0.95rem;
}

.eql-field em {
  color: var(--eql-danger);
  font-style: normal;
}

.eql-app input[type="text"],
.eql-app input[type="email"],
.eql-app input[type="number"],
.eql-app select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--eql-line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--eql-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eql-app input:focus,
.eql-app select:focus {
  outline: none;
  border-color: var(--eql-brand);
  box-shadow: 0 0 0 4px rgba(18, 102, 212, 0.12);
}

.eql-repeater {
  margin-top: 22px;
  border: 1px solid var(--eql-line);
  border-radius: 16px;
  background: var(--eql-surface-muted);
  padding: 18px;
}

.eql-repeater__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.eql-repeater__head h3,
.eql-repeater__head p,
.eql-helper-text {
  margin: 0;
}

.eql-repeater__head p,
.eql-helper-text {
  margin-top: 6px;
  color: var(--eql-muted);
  line-height: 1.6;
}

.eql-repeater__rows {
  display: grid;
  gap: 12px;
}

.eql-repeater__row {
  display: flex;
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid rgba(184, 196, 209, 0.6);
  border-radius: 14px;
  padding: 14px;
}

.eql-row-fields {
  flex: 1 1 auto;
  display: grid;
  gap: 12px;
}

.eql-row-fields--use-options,
.eql-row-fields--cast-pile,
.eql-row-fields--precast-concrete { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.eql-row-fields--cast-concrete { grid-template-columns: 1.5fr 1fr 1fr; }

.eql-row-fields--precast-pile {
  grid-template-columns: 1.1fr 1.2fr 0.8fr 0.8fr 0.8fr 0.8fr;
}

.eql-row-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eql-btn,
.eql-icon-btn {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.eql-btn:hover,
.eql-icon-btn:hover {
  transform: translateY(-1px);
}

.eql-btn {
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
}

.eql-btn--primary {
  background: var(--eql-brand);
  color: #fff;
}

.eql-btn--primary:hover { background: var(--eql-brand-strong); }

.eql-btn--secondary {
  background: #e9f1ff;
  color: var(--eql-brand);
}

.eql-btn--ghost {
  background: #fff;
  color: var(--eql-text);
  border: 1px solid var(--eql-line);
}

.eql-icon-btn {
  width: 40px;
  height: 40px;
  background: #fff0ef;
  color: var(--eql-danger);
  font-size: 1.4rem;
  line-height: 1;
}

.eql-top-gap {
  margin-top: 18px;
}

.eql-disclaimer {
  border: 1px solid var(--eql-line);
  border-radius: 14px;
  background: var(--eql-surface-muted);
  padding: 16px 18px;
}

.eql-disclaimer summary {
  cursor: pointer;
  font-weight: 700;
}

.eql-disclaimer__content {
  margin-top: 14px;
  color: var(--eql-muted);
  line-height: 1.75;
}

.eql-checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.eql-checkbox-field input {
  width: 18px;
  height: 18px;
}

.eql-submit-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.eql-status-box {
  margin-top: 18px;
  border: 1px solid #c8dcff;
  border-radius: 14px;
  padding: 14px 16px;
  background: #eef6ff;
  color: #0f3f83;
  white-space: pre-wrap;
}

.eql-error-text {
  color: var(--eql-danger);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .eql-field-grid--4,
  .eql-field-grid--3,
  .eql-row-fields--precast-pile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .eql-section {
    padding: 22px;
  }

  .eql-field-grid--2,
  .eql-field-grid--3,
  .eql-field-grid--4,
  .eql-row-fields--use-options,
  .eql-row-fields--cast-pile,
  .eql-row-fields--cast-concrete,
  .eql-row-fields--precast-concrete,
  .eql-row-fields--precast-pile {
    grid-template-columns: 1fr;
  }

  .eql-repeater__head,
  .eql-repeater__row,
  .eql-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .eql-row-actions {
    justify-content: flex-end;
  }
}

.eql-download-box {
  margin-top: 18px;
  border: 1px solid #d6e7cc;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f4fbf0;
}

.eql-download-box__note {
  margin: 10px 0 0;
  color: var(--eql-muted);
}
