.concrete-title { display: grid; gap: 8px; }
.concrete-title .lede { margin: 0; }
.concrete-review {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #52616a;
  font-size: 13px;
  font-weight: 700;
}
.concrete-review span:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #16735f;
}
.concrete-workbench {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(310px, .72fr);
  overflow: hidden;
  border: 1px solid #cbd4d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.concrete-input-panel,
.concrete-output-panel { padding: 22px; }
.concrete-input-panel { border-right: 1px solid #d9e0e3; }
.concrete-output-panel { background: #f4f6f5; }
.concrete-panel-head,
.concrete-section-head,
.concrete-actions,
.concrete-sources {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.concrete-panel-head { margin-bottom: 16px; }
.concrete-panel-head h2,
.concrete-panel-head .eyebrow { margin: 0; }
.concrete-panel-head h2 { font-size: 22px; }
.concrete-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
  padding: 3px;
  border: 1px solid #cbd4d8;
  border-radius: 7px;
  background: #edf1f2;
}
.concrete-segmented label { display: block; cursor: pointer; }
.concrete-segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.concrete-segmented span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 5px;
  color: #52616a;
  font-size: 14px;
  font-weight: 800;
}
.concrete-segmented input:checked + span {
  background: #fff;
  color: #0c5144;
  box-shadow: 0 1px 3px rgba(25, 40, 46, .13);
}
.concrete-segmented input:focus-visible + span { outline: 2px solid #16735f; outline-offset: 1px; }
.concrete-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 18px;
}
.concrete-presets button {
  min-height: 34px;
  border: 1px solid #cbd4d8;
  border-radius: 6px;
  background: #fff;
  color: #334047;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.concrete-presets button:hover { border-color: #16735f; color: #0c5144; }
.concrete-section-head {
  align-items: flex-end;
  margin-top: 4px;
  padding-top: 17px;
  border-top: 1px solid #dfe5e7;
}
.concrete-section-head strong,
.concrete-section-head small { display: block; }
.concrete-section-head small { margin-top: 3px; color: #65737b; font-size: 12px; }
.concrete-sections { display: grid; gap: 8px; margin-top: 12px; }
.concrete-section-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.15fr) repeat(2, minmax(86px, .75fr)) 36px;
  gap: 8px;
  align-items: end;
  padding: 11px;
  border: 1px solid #d7dfe2;
  border-radius: 7px;
  background: #f8faf9;
}
.concrete-section-row label,
.concrete-fields label {
  color: #2b353a;
  font-size: 13px;
  font-weight: 800;
}
.concrete-section-row label span,
.concrete-fields label > span {
  color: #69767d;
  font-size: 11px;
  font-weight: 700;
}
.concrete-section-row input,
.concrete-fields input,
.concrete-fields select {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
  border: 1px solid #bdc8cd;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: #1f2529;
  font: inherit;
}
.concrete-section-row input:focus,
.concrete-fields input:focus,
.concrete-fields select:focus { border-color: #16735f; outline: 3px solid rgba(22, 115, 95, .12); }
.concrete-remove {
  display: grid;
  width: 36px;
  height: 43px;
  place-items: center;
  border: 1px solid #d1d9dc;
  border-radius: 6px;
  background: #fff;
  color: #6d3330;
  font-size: 21px;
  cursor: pointer;
}
.concrete-remove:disabled { color: #a8b0b4; cursor: not-allowed; }
.concrete-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 17px;
}
.concrete-fields small {
  min-height: 34px;
  color: #65737b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.concrete-validation,
.concrete-action-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #0c5144;
  font-size: 13px;
  font-weight: 800;
}
.concrete-validation.is-error { color: #a23b32; }
.concrete-result-hero { border-bottom: 1px solid #d5dddf; padding: 2px 0 19px; }
.concrete-result-hero > span {
  display: block;
  color: #52616a;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.concrete-result-hero strong {
  display: block;
  margin: 7px 0;
  color: #174c40;
  font-size: 34px;
  line-height: 1.1;
}
.concrete-result-hero p { margin: 0; color: #5d6970; font-size: 13px; line-height: 1.5; }
.concrete-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #d5dddf;
}
.concrete-result-grid article {
  min-height: 82px;
  padding: 14px 11px;
  border-bottom: 1px solid #d5dddf;
}
.concrete-result-grid article:nth-child(odd) { border-right: 1px solid #d5dddf; padding-left: 0; }
.concrete-result-grid article:nth-child(even) { padding-right: 0; }
.concrete-result-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.concrete-result-grid span,
.concrete-result-grid strong { display: block; }
.concrete-result-grid span { color: #65737b; font-size: 12px; font-weight: 700; }
.concrete-result-grid strong { margin-top: 6px; color: #202a2f; font-size: 17px; overflow-wrap: anywhere; }
.concrete-actions { justify-content: flex-start; margin-top: 18px; }
.concrete-section-summary { display: grid; gap: 0; }
.concrete-section-summary > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) minmax(90px, auto);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e5e7;
}
.concrete-section-summary > div:last-child { border-bottom: 0; }
.concrete-section-summary span { color: #627079; }
.concrete-section-summary b { text-align: right; }
.concrete-breakdown {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.concrete-breakdown li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e0e5e7;
}
.concrete-breakdown li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #30383c;
  color: #fff;
  font-weight: 900;
}
.concrete-breakdown p {
  margin: 4px 0 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.concrete-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.concrete-reference-grid article { border-left: 3px solid #aa7c36; padding-left: 14px; }
.concrete-reference-grid h3 { font-size: 16px; }
.concrete-sources {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid #e0e5e7;
  font-size: 13px;
}
@media (max-width: 1020px) {
  .concrete-workbench { grid-template-columns: 1fr; }
  .concrete-input-panel { border-right: 0; border-bottom: 1px solid #d9e0e3; }
}
@media (max-width: 620px) {
  .concrete-input-panel,
  .concrete-output-panel { padding: 16px; }
  .concrete-section-row { grid-template-columns: 1fr 1fr 36px; }
  .concrete-section-row label:first-child { grid-column: 1 / -1; }
  .concrete-fields,
  .concrete-result-grid,
  .concrete-reference-grid { grid-template-columns: 1fr; }
  .concrete-result-grid article,
  .concrete-result-grid article:nth-child(odd),
  .concrete-result-grid article:nth-child(even) { min-height: 66px; padding: 11px 0; border-right: 0; border-bottom: 1px solid #d5dddf; }
  .concrete-result-grid article:last-child { border-bottom: 0; }
  .concrete-result-hero strong { font-size: 29px; }
  .concrete-panel-head,
  .concrete-section-head { align-items: flex-start; }
  .concrete-section-head { flex-direction: column; }
  .concrete-actions { align-items: stretch; flex-direction: column; }
  .concrete-section-summary > div { grid-template-columns: 1fr; gap: 4px; }
  .concrete-section-summary b { text-align: left; }
}
@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .concrete-sidebar,
  .concrete-actions,
  .concrete-presets,
  #concrete-reset,
  #concrete-add-section,
  .concrete-remove { display: none !important; }
  main { width: 100%; }
  .concrete-page-grid,
  .concrete-workbench { display: block; }
  .concrete-workbench,
  .content-panel { box-shadow: none; break-inside: avoid; }
  .concrete-input-panel { border-right: 0; }
}
