.tools-body {
  min-height: 100vh;
  background: #f8f5ef;
  color: #242424;
  font-family: "Inter", Arial, sans-serif;
}

.tools-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 56px;
}

.tools-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.tools-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
}

.tools-hero p {
  max-width: 680px;
  margin: 0;
  color: #6f6a63;
  font-size: 17px;
  line-height: 1.55;
}

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

.tool-card,
.tool-panel,
.tool-result,
.tool-cta {
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(60, 50, 38, 0.08);
}

.tool-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.tool-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0e7da;
  color: #9d7c50;
  font-size: 18px;
  font-weight: 900;
}

.tool-card h2 {
  margin: 0;
  font-size: 22px;
}

.tool-card p {
  margin: 0;
  color: #6f6a63;
  line-height: 1.5;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.tool-panel,
.tool-result,
.tool-cta {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.tool-panel h2,
.tool-result h2,
.tool-cta h2 {
  margin: 0;
  font-size: 24px;
}

.tool-form {
  display: grid;
  gap: 12px;
}

.tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-field,
.tool-check {
  display: grid;
  gap: 7px;
  color: #4d4943;
  font-size: 13px;
  font-weight: 800;
}

.tool-field input,
.tool-field select,
.tool-field textarea,
.tool-table input,
.tool-table select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(34, 34, 34, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #242424;
  font: inherit;
  outline: none;
}

.tool-field textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.tool-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-check input {
  width: 18px;
  height: 18px;
  accent-color: #b89b72;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: 10px;
  background: #ffffff;
  color: #242424;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.tool-btn.primary {
  border-color: #b89b72;
  background: #b89b72;
  color: #ffffff;
}

.tool-result {
  position: sticky;
  top: 88px;
}

.tool-result[hidden] {
  display: none;
}

.tool-result-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-result-list li,
.timeline-item,
.checklist-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 12px;
  background: #fbfaf8;
}

.tool-note {
  margin: 0;
  color: #746d64;
  font-size: 13px;
  line-height: 1.5;
}

.tool-cta {
  margin-top: 18px;
}

.tool-article {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  margin-top: 24px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(60, 50, 38, 0.06);
}

.tool-article header {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.tool-article h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.tool-article h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.tool-article-section {
  display: grid;
  gap: 10px;
}

.tool-article-lead {
  color: #514b44 !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.tool-article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #f7f1ea;
}

.tool-article-nav a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #72583b;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.tool-article-callout {
  padding: 16px;
  border-left: 4px solid #b89b72;
  border-radius: 12px;
  background: #fbf7f1;
}

.tool-article p,
.tool-article li {
  color: #6f6a63;
  font-size: 15px;
  line-height: 1.65;
}

.tool-article p,
.tool-article ul,
.tool-article ol {
  margin: 0;
}

.tool-article ul,
.tool-article ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.tool-table {
  display: grid;
  gap: 8px;
}

.budget-row,
.timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.7fr) 42px;
  gap: 8px;
}

.tool-remove {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #f3eee8;
  color: #8b5548;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f1ea;
}

.summary-card span {
  color: #756f68;
  font-size: 12px;
  font-weight: 800;
}

.summary-card strong {
  font-size: 22px;
}

.budget-warning {
  color: #9c4439;
  font-weight: 900;
}

.checklist-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.checklist-group h2 {
  margin: 8px 0 0;
  font-size: 20px;
}

.checklist-row {
  align-items: center;
  justify-content: flex-start;
}

.checklist-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #b89b72;
}

.checklist-row.is-done span {
  color: #888078;
  text-decoration: line-through;
}

.invite-text-output {
  min-height: 220px;
  white-space: pre-wrap;
}

.qr-preview {
  display: grid;
  place-items: center;
  min-height: 300px;
  border-radius: 14px;
  background:
    linear-gradient(45deg, rgba(34, 34, 34, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(34, 34, 34, 0.06) 25%, transparent 25%);
  background-size: 20px 20px;
}

.qr-preview img {
  width: min(260px, 100%);
  height: auto;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 900px) {
  .tools-grid,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-result {
    position: static;
  }
}

@media (max-width: 640px) {
  .tools-shell {
    width: min(100% - 24px, 1120px);
    padding: 110px 0 40px;
  }

  .tool-fields,
  .summary-grid,
  .budget-row,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .tool-actions,
  .tool-btn {
    width: 100%;
  }
}
