.zk-tool {
  --zk-accent: #a32530;
  --zk-muted: #555b62;
  color: #1c2024;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
  container-type: inline-size;
}
.zk-tool *, .zk-tool *::before, .zk-tool *::after { box-sizing: border-box; }
.zk-tool [hidden] { display: none !important; }
.entry-content .zk-tool .zk-intro {
  margin: 0 0 1.25em; max-width: 60ch; font-size: 1.08em; line-height: 1.55;
}
.zk-tool .zk-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.zk-tool .zk-card, .zk-tool div.zk-example {
  min-width: 0; border: 1px solid #dcd9d3; border-radius: 10px;
  padding: clamp(15px, 3.2cqi, 25px); background: #fff; margin: 0 0 14px;
}
.zk-tool .zk-grid > .zk-card { margin-bottom: 0; }
.zk-tool > .zk-grid { margin-bottom: 14px; }
.entry-content .zk-tool h2 { font-size: clamp(19px, 3.7cqi, 25px); margin: 0 0 .8em; line-height: 1.23; }
.entry-content .zk-tool p { margin: 0 0 .85em; }
.entry-content .zk-tool p:last-child { margin-bottom: 0; }
.zk-tool .zk-fieldset {
  min-width: 0; border: 0; border-top: 2px solid #dcd9d3; padding: .5rem 0 0; margin: 0;
}
.zk-tool .zk-fieldset legend { padding: 0 .45em 0 0; color: var(--zk-accent); font-weight: 700; }
.zk-tool .zk-fields { display: grid; gap: .8rem; }
.zk-tool .zk-field { display: grid; align-content: start; gap: .35em; min-width: 0; font-size: .95rem; font-weight: 600; }
.zk-tool input:not([type="checkbox"]), .zk-tool select, .zk-tool textarea {
  color: #1c2024; border: 1px solid #8a8a85; border-radius: 6px; background: #fff;
  width: 100%; min-width: 0; min-height: 44px; padding: .6rem .7rem;
  font: inherit; font-size: 16px; font-weight: 400; line-height: 1.4;
}
.zk-tool textarea { resize: vertical; }
.zk-tool .zk-check {
  display: flex; gap: .6rem; align-items: center; min-height: 44px; margin-top: .65rem;
  font-size: .95rem; font-weight: 500; cursor: pointer;
}
.zk-tool .zk-check input { flex: none; width: 18px; height: 18px; accent-color: var(--zk-accent); }
.zk-tool :is(input, select, textarea, button, a):focus-visible { outline: 3px solid #1769ac; outline-offset: 2px; }
.zk-tool [aria-invalid="true"] { border-color: #a32530 !important; }
.zk-tool .zk-presets { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.zk-tool button.zk-example {
  border: 1px solid #b4aca1; border-radius: 5px; background: #fff;
  color: #272522; padding: .42rem .9rem; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer;
}
.zk-tool button.zk-example:hover { background: #f7f3ee; }
.zk-tool .zk-result { border-color: #c6b7a8; background: #f8f4ee; }
.zk-tool .zk-factor, .zk-tool [data-flour-level], .zk-tool [data-flour-heap] {
  color: var(--zk-accent); font-size: clamp(1.2rem, 4.8cqi, 1.6rem); font-weight: 700; line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.zk-tool .zk-note { color: var(--zk-muted); font-size: .9rem; line-height: 1.5; }
.zk-tool .zk-recipe-output { list-style: none; margin: 0 0 1rem; padding: 0; }
.zk-tool .zk-recipe-output li { margin: 0; padding: .45em 0; border-bottom: 1px solid #d9cec2; }
.zk-tool .zk-table { width: 100%; border: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: .85rem; }
.zk-tool .zk-table :is(th,td) { border: 0; border-bottom: 1px solid #dcd9d3; text-align: right; vertical-align: middle; padding: .55rem .35rem; }
.zk-tool .zk-table :is(th,td):first-child { text-align: left; }
.zk-tool .zk-table thead { background: #f4f2ee; }
.zk-tool .zk-related { padding-top: .5rem; }
@container (min-width: 540px) {
  .zk-tool .zk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
