:root {
  --bg: #f3efe5;
  --surface: rgba(255, 253, 247, 0.82);
  --surface-strong: #fffdf8;
  --text: #18352b;
  --muted: #587066;
  --line: rgba(24, 53, 43, 0.12);
  --primary: #1e6a52;
  --primary-dark: #154b3a;
  --accent: #a9ca77;
  --accent-soft: rgba(169, 202, 119, 0.18);
  --shadow: 0 24px 60px rgba(24, 53, 43, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

body.tool-page {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(169, 202, 119, 0.24), transparent 28%),
    linear-gradient(180deg, #ecf3e8 0%, var(--bg) 36%, #f8f4ec 100%);
}

body.tool-page a {
  color: inherit;
  text-decoration: none;
}

.tool-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.tool-hero__copy,
.tool-hero__meta,
.tool-panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.tool-hero__copy {
  padding: 2rem;
  border-radius: 34px;
}

.tool-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.tool-backlink::before {
  content: "\2190";
}

.tool-eyebrow,
.panel-step,
.meta-label,
.field-label {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
}

.tool-hero h1,
.tool-panel h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.06;
}

.tool-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  max-width: 12ch;
}

.tool-lead,
.tool-hero__meta,
.panel-copy,
.dynamic-form label,
.results-shell {
  color: var(--muted);
}

.tool-lead {
  max-width: 58ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.tool-hero__meta {
  padding: 1.5rem;
  border-radius: 28px;
}

.tool-hero__meta ol {
  margin: 0;
  padding-left: 1.2rem;
}

.tool-hero__meta li + li {
  margin-top: 0.55rem;
}

.tool-main {
  display: grid;
  gap: 1.5rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.5rem;
}

.tool-panel {
  border-radius: 30px;
  padding: 1.6rem;
}

.panel-head {
  margin-bottom: 1.2rem;
}

.tool-panel h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.panel-copy {
  margin: 0.7rem 0 0;
}

.selector-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 1rem;
}

.selector-block {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(249,246,238,0.88));
  border: 1px solid rgba(24, 53, 43, 0.08);
}

.selector-block--password {
  background: linear-gradient(180deg, rgba(169, 202, 119, 0.13), rgba(255,255,255,0.82));
}

.form-select,
.form-control {
  border-radius: 16px;
  border: 1px solid rgba(24, 53, 43, 0.14);
  min-height: 52px;
  padding-inline: 1rem;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: none !important;
}

.form-select:focus,
.form-control:focus {
  border-color: rgba(30, 106, 82, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 106, 82, 0.12) !important;
}

.dynamic-form,
.results-shell {
  min-height: 440px;
}

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(246,241,231,0.9));
  border: 1px dashed rgba(24, 53, 43, 0.18);
}

.dynamic-form:not(.empty-state),
.results-shell:not(.empty-state) {
  display: block;
  min-height: auto;
  padding: 1.35rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(246,241,231,0.94));
  border: 1px solid rgba(24, 53, 43, 0.08);
}

.dynamic-form .mb-1,
.dynamic-form .mb-3,
.dynamic-form .form-check {
  margin-bottom: 1rem !important;
}

.dynamic-form .form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 53, 43, 0.08);
}

.dynamic-form .form-check-input {
  margin-top: 0;
  flex: 0 0 auto;
}

.dynamic-form > div[id="vnp1"],
.dynamic-form > div[id="drasbl1"] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(24, 53, 43, 0.08);
}

.dynamic-form button,
.results-shell button,
.buttonish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #2f7d63);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(30, 106, 82, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dynamic-form button:hover,
.results-shell button:hover,
.buttonish:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(30, 106, 82, 0.24);
}

.results-shell {
  font-size: 0.98rem;
  line-height: 1.7;
}

.results-shell p {
  margin-bottom: 0.8rem;
}

.results-shell br + br {
  display: block;
  content: "";
  margin-top: 0.55rem;
}

.results-shell b,
.results-shell strong {
  color: var(--primary-dark);
}

@media (max-width: 960px) {
  .toggle-grid {
    grid-template-columns: 1fr;
  }
  .tool-hero,
  .tool-grid,
  .selector-grid {
    grid-template-columns: 1fr;
  }

  .dynamic-form,
  .results-shell {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .tool-shell {
    width: min(100% - 1rem, 1220px);
    padding-top: 1rem;
  }

  .tool-hero__copy,
  .tool-hero__meta,
  .tool-panel {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .selector-block,
  .dynamic-form:not(.empty-state),
  .results-shell:not(.empty-state) {
    border-radius: 18px;
  }
}



.option-section {
  margin-bottom: 1.1rem;
}

.option-title {
  margin: 0 0 0.7rem;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.toggle-grid,
.binary-group {
  display: grid;
  gap: 0.8rem;
}

.toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toggle-item,
.binary-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 72px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 53, 43, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.toggle-item:hover,
.binary-option:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 106, 82, 0.26);
  box-shadow: 0 10px 24px rgba(24, 53, 43, 0.08);
}

.toggle-item span,
.binary-option span {
  font-weight: 600;
  color: var(--text);
}

.toggle-item .form-check-input,
.binary-option .form-check-input {
  margin: 0;
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 960px) {
  .toggle-grid {
    grid-template-columns: 1fr;
  }
}
