:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --panel: #ffffff;
  --panel-soft: #f8faf9;
  --ink: #202521;
  --muted: #66736b;
  --subtle: #88948c;
  --line: #dce3de;
  --line-strong: #c1ccc5;
  --accent: #2f6f66;
  --accent-strong: #204f49;
  --accent-soft: #e3f0ec;
  --blue: #2769c8;
  --danger: #9b3f30;
  --shadow: 0 18px 44px rgba(28, 44, 34, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef2f0;
  color: var(--accent-strong);
}

.app-shell {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 750;
}

.site-footer a:hover {
  color: var(--accent-strong);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #17251f;
  color: #fff;
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.header-actions,
.sidebar-top,
.panel-actions,
.preview-head,
.panel-heading,
.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-field {
  display: block;
  min-width: 150px;
}

.language-field span {
  display: none;
}

.language-field select {
  min-height: 36px;
}

.unit-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.unit-button,
.ghost-button,
.primary-button {
  min-height: 36px;
  border-radius: 7px;
  font-weight: 780;
}

.unit-button {
  min-width: 48px;
  background: transparent;
  color: var(--muted);
}

.unit-button.active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 4px 12px rgba(25, 42, 32, 0.08);
}

.ghost-button,
.primary-button {
  padding: 0 13px;
  line-height: 1.15;
  text-align: center;
}

.ghost-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.ghost-button:hover {
  border-color: var(--accent);
}

.ghost-button.compact {
  min-height: 31px;
  padding: 0 10px;
  font-size: 0.82rem;
  white-space: normal;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.primary-button.compact {
  min-height: 31px;
  padding: 0 10px;
  font-size: 0.82rem;
  white-space: normal;
}

.designer-layout {
  display: grid;
  grid-template-columns: 230px minmax(430px, 1fr) minmax(320px, 390px);
}

.pattern-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  height: calc(100vh - 76px);
  padding: 18px 14px 18px 18px;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
  overflow-y: auto;
}

.sidebar-top {
  justify-content: space-between;
}

.sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.sidebar-top h2 {
  font-size: 1.05rem;
}

.preset-list {
  display: grid;
  gap: 4px;
}

.preset-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 9px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.preset-button:hover {
  background: var(--panel-soft);
}

.preset-button.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.preset-swatch,
.preset-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    linear-gradient(90deg, #7b5239 50%, transparent 50%),
    linear-gradient(#dfc391 50%, #7b5239 50%);
  background-size: 14px 14px;
}

.preset-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.preset-name {
  display: block;
  font-weight: 780;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.preset-kind {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 700;
}

.support-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 242, 0.92)),
    #fff;
}

.support-card p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.18;
}

.support-card span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(143, 94, 54, 0.38);
  border-radius: 7px;
  background: #fff7ed;
  color: #70451f;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.12;
  text-align: center;
}

.support-link:hover {
  border-color: #9a6330;
  background: #fff1dd;
  color: #563317;
}

.editor-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 22px 20px 36px;
}

.document-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 8px;
}

#boardName {
  padding-bottom: 0.08em;
}

.title-action {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.style-type {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.mini-pill {
  background: #eef2f0;
  color: var(--muted);
}

.tool-panel,
.output-panel,
.preview-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tool-panel {
  padding: 16px;
}

.panel-heading {
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-heading.tight {
  margin-bottom: 10px;
}

.panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.field-grid .field {
  grid-template-rows: minmax(34px, auto) 40px minmax(48px, auto);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field span {
  align-self: end;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.15;
}

.field small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

input,
select,
textarea {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input,
select {
  padding: 0 9px;
}

textarea {
  resize: vertical;
  min-height: 82px;
  padding: 10px;
  line-height: 1.45;
}

input[type="color"] {
  padding: 4px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 102, 0.15);
}

.pattern-options {
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  margin-top: 14px;
}

.pattern-builder {
  display: grid;
  gap: 9px;
}

.segment-row {
  display: grid;
  grid-template-columns: 44px minmax(96px, 0.75fr) minmax(150px, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.segment-swatch {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: var(--wood);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 56%, rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.17) 0 1px, transparent 1px 6px);
}

.recipe-readout {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 6px 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.recipe-readout code {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  line-height: 1.45;
  white-space: normal;
}

.recipe-readout small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.switch-row {
  flex-wrap: wrap;
  margin-top: 14px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.switch input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.pattern-strip {
  display: flex;
  width: min(560px, 100%);
  height: 34px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #edf2ef;
}

.pattern-chip {
  position: relative;
  min-width: 4px;
  height: 100%;
  background: var(--wood);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 52%, rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(70deg, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px 7px);
}

.wood-list {
  display: grid;
  gap: 8px;
}

.catalog-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
}

.pricing-controls {
  max-width: 360px;
  margin: 0 0 12px;
}

.pricing-controls .field {
  grid-template-rows: minmax(18px, auto) 40px minmax(34px, auto);
}

.wood-row {
  display: grid;
  grid-template-columns: 54px 76px minmax(140px, 1fr) 132px 34px;
  align-items: end;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.wood-row.price-off {
  grid-template-columns: 54px 76px minmax(140px, 1fr) 34px;
}

.mini-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mini-field span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.color-field input {
  min-height: 39px;
}

.price-field.is-hidden {
  display: none;
}

.wood-code {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.remove-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
}

.remove-button:hover {
  background: #fff1ee;
  color: var(--danger);
}

.output-column {
  position: sticky;
  top: 76px;
  align-self: start;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 76px);
  padding: 22px 20px 32px 0;
  overflow-y: auto;
}

.preview-card,
.output-panel {
  padding: 14px;
}

.preview-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.preview-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.preview-frame {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.66) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66) 1px, transparent 1px),
    #edf2ef;
  background-size: 22px 22px;
}

.board-svg {
  display: block;
  width: 100%;
  max-width: 430px;
  max-height: 560px;
  overflow: visible;
  filter: drop-shadow(0 16px 25px rgba(45, 31, 21, 0.18));
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.legend-swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: var(--wood);
}

.cost-summary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.stat-grid > div {
  display: grid;
  grid-template-rows: 42px 1fr;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.stat-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.stat-grid strong {
  align-self: start;
  display: block;
  font-size: 1rem;
  line-height: 1.18;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.78rem;
}

.build-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 21px;
  color: var(--ink);
}

.build-steps li {
  padding-left: 2px;
  line-height: 1.35;
}

.build-steps strong {
  display: block;
  margin-bottom: 2px;
}

.build-steps span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Ad placeholders are hidden until AdSense is approved and active.
   Flip ADSENSE_ENABLED in script.js to reveal them. */
body:not(.ads-enabled) .ad-card {
  display: none;
}

.ad-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  place-items: center;
  min-height: 120px;
  border: 1px dashed #c2cbc4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(236, 242, 238, 0.78)),
    var(--panel-soft);
  color: #8b978f;
  text-align: center;
}

.ad-label {
  color: #6f7d74;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-placeholder {
  max-width: 18ch;
  color: #8b978f;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.22;
}

.sidebar-ad {
  align-self: end;
  min-height: 280px;
}

.output-ad {
  min-height: 96px;
}

.mobile-ad {
  display: none;
  min-height: 90px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 780;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.static-page {
  min-height: 100vh;
  background: var(--bg);
}

.static-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 42px 20px 54px;
}

.static-main article {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.static-main h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.static-main h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.static-main p,
.static-main li {
  color: var(--muted);
  line-height: 1.58;
}

.static-main ul {
  margin: 0;
  padding-left: 22px;
}

.static-main address {
  font-style: normal;
  line-height: 1.6;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: var(--panel-soft, #f4f7f5);
  border-left: 3px solid #8b978f;
  border-radius: 6px;
}

.static-main address a {
  word-break: break-all;
}

.static-main .lead {
  color: var(--ink);
  font-size: 1.05rem;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-weight: 820;
}

@media (max-width: 1080px) {
  .designer-layout {
    grid-template-columns: 230px minmax(420px, 1fr);
  }

  .output-column {
    position: static;
    grid-column: 2;
    max-height: none;
    padding-top: 0;
  }

  .sidebar-ad,
  .output-ad {
    display: none;
  }

  .mobile-ad {
    display: grid;
  }
}

@media (min-width: 1081px) and (max-width: 1450px) {
  .field-grid,
  .pattern-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pattern-options .field:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .app-header {
    position: static;
    display: grid;
    padding: 14px;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions > * {
    flex: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 14px 22px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .language-field {
    min-width: 100%;
  }

  .designer-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pattern-sidebar {
    position: static;
    height: auto;
    padding: 12px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preset-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .preset-button {
    min-width: 185px;
  }

  .editor-column,
  .output-column {
    grid-column: auto;
    padding: 14px 10px;
  }

  .output-column {
    order: 2;
  }

  .editor-column {
    order: 3;
  }

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

@media (max-width: 560px) {
  .brand-mark {
    display: none;
  }

  .document-title,
  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .field-grid,
  .pattern-options,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .recipe-readout {
    grid-template-columns: 1fr;
  }

  .recipe-readout small {
    grid-column: 1;
  }

  .segment-row {
    grid-template-columns: 38px minmax(78px, 0.7fr) minmax(0, 1fr) 34px;
  }

  .catalog-picker {
    grid-template-columns: 1fr;
  }

  .wood-row {
    grid-template-columns: 54px 72px minmax(0, 1fr) 34px;
  }

  .wood-row .mini-field:nth-child(4) {
    grid-column: 2 / 4;
  }

  .wood-row.price-off .mini-field:nth-child(3) {
    grid-column: 3;
  }

  .preview-frame {
    min-height: 300px;
  }

  .static-main {
    padding: 22px 10px 40px;
  }

  .static-main article {
    padding: 18px;
  }
}

/* --- Compact educational content embedded in the designer --- */
.tool-summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(227, 240, 236, 0.72), rgba(255, 255, 255, 0) 46%),
    var(--panel);
  box-shadow: var(--shadow);
}

.summary-lead {
  max-width: 980px;
}

.summary-lead .eyebrow {
  margin: 0 0 5px;
}

.summary-lead h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
  font-weight: 820;
  line-height: 1.25;
}

.summary-lead p,
.summary-card p {
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.86rem;
}

.summary-lead p,
.summary-card p:last-child {
  margin-bottom: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
}

.summary-card {
  min-width: 0;
  padding: 13px 14px 14px;
  border: 1px solid #e1e7e3;
  border-radius: 8px;
  background: rgba(248, 250, 249, 0.82);
}

.summary-card h3 {
  margin: 0 0 9px;
  font-size: 0.94rem;
  font-weight: 780;
  color: var(--ink);
}

.summary-card p {
  margin: 0 0 7px;
}

.content-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.content-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 8px 28px;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.84rem;
}

.content-steps li:last-child {
  padding-bottom: 0;
}

.content-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid #d3dad5;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

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

@media (max-width: 920px) {
  .tool-summary {
    padding: 14px;
  }
}
