/* Paint uses the ACT card, section, field and material-row components. */
body[data-page="drywall-taping"] main.page .act-calculator-intro {
  padding:16px 24px 16px 30px;
  margin-bottom:8px;
}
body[data-page="drywall-taping"] main.page .intro h1 { font-size:40px; line-height:1.05; margin-bottom:6px; }
body[data-page="drywall-taping"] main.page .intro .eyebrow { margin-bottom:4px; }
body[data-page="drywall-taping"] main.page .intro .lede { font-size:15px; line-height:1.5; }
.taping-card .act-type-card-head { align-items:end; }
.taping-card .act-type-name-wrap { flex:1 1 180px; max-width:300px; }
.taping-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.taping-field { display:flex; flex-direction:column; justify-content:space-between; min-width:0; gap:6px; }
.taping-field .field-label { margin:0; line-height:1.4; }
.taping-field :is(input,select) { min-width:0; width:100%; height:44px; box-sizing:border-box; }
.taping-field .input-with-unit { height:44px; }
.taping-field input:disabled { color:#526675; background:#f1f4f6; opacity:1; }
.taping-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
.taping-choices label { min-width:0; }
body[data-page="drywall-taping"] main.page .taping-choices span { min-height:44px; display:flex; align-items:center; justify-content:center; padding:7px 6px; white-space:normal; text-align:center; font-size:12px; }
.taping-panel-row { grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr); }
.taping-run-row,.taping-opening-row { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(65px,.7fr) auto; align-items:end; gap:10px; margin:0 0 12px; }
.taping-opening-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
.taping-opening-row .taping-remove-row { justify-self:start; }
body[data-page="drywall-taping"] main.page .taping-remove-row { min-height:44px; padding:8px; font-size:11px; }
.taping-add-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.taping-openings { margin-top:18px; padding-top:14px; border-top:1px solid #d7e0e5; }
.taping-openings h4,.taping-card .act-system-details-body h4 { font-size:13px; margin:16px 0 10px; }
.taping-section-note { margin-bottom:14px; }
.taping-trim-list { display:grid; gap:10px; }
.taping-trim-row { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(100px,.7fr); align-items:end; gap:14px; padding-bottom:10px; border-bottom:1px solid #e3e9ed; }
.taping-trim-row:last-child { border-bottom:0; padding-bottom:0; }
.taping-trim-control { min-width:0; }
.taping-trim-control .check-line { min-height:44px; font-size:12px; }
.taping-sealant-option { margin-top:18px; }
.taping-compatibility:empty { display:none; }
.taping-compatibility { margin-top:12px; }
body[data-page="drywall-taping"] main.page .taping-card-results { grid-template-columns:repeat(4,minmax(0,1fr)); }
.taping-input-error { grid-column:1 / -1; margin:0; color:#942d25; }

/* Group purchase lines with the shared ACT supplier-summary presentation. */
body[data-page="drywall-taping"] .act-summary-card { display:block; }
body[data-page="drywall-taping"] .act-summary-materials > div { align-items:baseline; }
body[data-page="drywall-taping"] .act-summary-materials span { overflow-wrap:anywhere; }
body[data-page="drywall-taping"] .act-summary-materials strong { flex:0 0 auto; }
.taping-summary-note { font-size:12px; line-height:1.5; }
.taping-warning { margin:14px 2px 0; color:#617482; font-size:12px; line-height:1.5; }
.taping-cut-plan { padding-left:20px; font-size:12px; line-height:1.6; }
.taping-save-error { padding:14px; border:1px solid #e3b5ad; border-radius:10px; background:#fff4f1; color:#822b23; font-size:13px; line-height:1.5; }
.taping-save-error ul { margin:8px 0 0; padding-left:18px; }

/* Keep the user's compact save toolbar. */
@media screen {
  body[data-page="drywall-taping"] main.page .estimate-workspace { display:flex; align-items:center; gap:12px; padding:8px 12px; }
  body[data-page="drywall-taping"] main.page .estimate-workspace-main { display:contents; }
  body[data-page="drywall-taping"] main.page .estimate-workspace-copy { display:none; }
  body[data-page="drywall-taping"] main.page .estimate-workspace-actions { order:2; flex:0 0 auto; margin-left:auto; gap:6px; }
  body[data-page="drywall-taping"] main.page .estimate-workspace-status { order:1; flex:1; min-width:0; min-height:0; margin:0; color:#637383; font-size:11px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}
@media(max-width:700px) {
  body[data-page="drywall-taping"] main.page .act-calculator-intro { padding:14px 16px 14px 21px; }
  body[data-page="drywall-taping"] main.page .intro h1 { font-size:30px; }
  .taping-grid,.taping-panel-row { grid-template-columns:1fr; }
  .taping-run-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .taping-run-row > .taping-field:first-child { grid-column:1 / -1; }
  .taping-run-row .taping-remove-row { grid-column:1 / -1; justify-self:start; }
  .taping-opening-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .taping-trim-row { grid-template-columns:minmax(0,1fr) 94px; gap:10px; }
  body[data-page="drywall-taping"] main.page .taping-card-results { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-page="drywall-taping"] main.page .act-summary-materials > div { align-items:start; }
  body[data-page="drywall-taping"] main.page .estimate-workspace { flex-wrap:wrap; gap:5px; padding:8px; }
  body[data-page="drywall-taping"] main.page .estimate-workspace-actions { order:0; width:100%; justify-content:flex-end; }
  body[data-page="drywall-taping"] main.page .estimate-workspace-actions :is(.primary-button,.subtle-button) { flex:0 1 auto; min-height:36px; padding:7px 10px; }
  body[data-page="drywall-taping"] main.page .estimate-workspace-status { flex-basis:100%; }
}
.taping-trim-head,.taping-trim-row { display:grid; grid-template-columns:minmax(0,1fr) 60px 94px; gap:10px; align-items:center; }
.taping-trim-head { font-size:11px; font-weight:700; color:#617482; }
.taping-trim-control,.taping-auto-count { font-size:12px; color:#526575; }
.taping-auto-count { text-align:center; }
.taping-trim-row .field-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:700px) {
  .taping-trim-head,.taping-trim-row { grid-template-columns:minmax(0,1fr) 45px 94px; gap:8px; }
  .taping-trim-row input { padding-left:8px; padding-right:6px; }
}

/* Reserve room for the complete stock length beside its unit on narrow screens. */
body[data-page="drywall-taping"] main.page .taping-trim-row .input-with-unit { padding:0 8px; gap:4px; }
body[data-page="drywall-taping"] main.page .taping-trim-row .input-with-unit > input { padding-inline:0; appearance:textfield; }
body[data-page="drywall-taping"] main.page .taping-trim-row .input-with-unit > input::-webkit-inner-spin-button,
body[data-page="drywall-taping"] main.page .taping-trim-row .input-with-unit > input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }

/* The unit wrapper owns the border; its input stays inside the content box. */
body[data-page="drywall-taping"] main.page .input-with-unit > input {
  min-height:0;
  height:100%;
  background:transparent;
}

/* Allowance uses the Metal Framing component and its shared family tokens. */
body[data-page="drywall-taping"] main.page { --family-navy:var(--act-navy); --family-lime:var(--act-lime); }
body[data-page="drywall-taping"] .taping-card [hidden] { display:none !important; }
.taping-total-lf { font-size:1rem; font-weight:800; margin:14px 0; }

.taping-packages {display:flex;flex-wrap:wrap;gap:14px;margin:14px 0;}
.taping-primer-option {margin:20px 0;}
.taping-card .product-details-toggle {margin:16px 0;}
.taping-card [data-coating] > .taping-field {margin-top:14px;}
body[data-page="drywall-taping"] .taping-summary-note {margin-top:16px;}
body[data-page="drywall-taping"] main.page .taping-card-results {grid-template-columns:repeat(3,minmax(0,1fr));}

/* Use the calculator family's neutral disclosure and padded specification body. */
body[data-page="drywall-taping"] main.page .product-details-toggle {
  min-width:0;
  max-width:100%;
  border:1px solid #d9dee4;
  border-radius:12px;
  background:#fff;
  box-shadow:none;
  --accent:#d7dde3;
  --accent-soft:#eef1f4;
}
body[data-page="drywall-taping"] main.page .product-details-toggle summary {
  min-width:0;
  background:#f6f8fa;
  gap:12px;
}
body[data-page="drywall-taping"] main.page .product-details-toggle summary:hover { background:#eef1f4; }
body[data-page="drywall-taping"] main.page .product-details-toggle .act-system-details-body {
  min-width:0;
  background:#fff;
}
.taping-card .product-details-toggle .taping-grid { margin-top:0; }
.taping-card .product-details-toggle :is(.field-label,.option-helper,.product-details-copy) { overflow-wrap:anywhere; }
.taping-card .product-details-toggle .plain-input { box-sizing:border-box; min-width:0; max-width:100%; }
body[data-page="drywall-taping"] main.page .product-details-toggle .plain-input:focus { border-color:#8793a1; }
.taping-packages .check-line { flex:0 1 auto; min-width:0; max-width:100%; }
.taping-packages input[type="checkbox"] { flex:0 0 auto; }
.taping-packages .check-line span { min-width:0; overflow-wrap:anywhere; }
.taping-material + .taping-material { margin-top:20px; padding-top:16px; border-top:1px solid #d7e0e5; }
.taping-card [hidden] { display:none !important; }
.taping-card .act-type-name-wrap { max-width:none; }
.taping-card .act-type-name { width:100%; box-sizing:border-box; }
.taping-card .act-type-card-head { align-items:center; }
.taping-card .check-line { margin-top:14px; align-items:start; }
.taping-card .check-line input { flex:0 0 auto; margin-top:3px; }
.taping-print-list { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; }
.taping-card .act-system-details { margin-top:14px; }
.taping-card .act-card-section > .taping-field + .taping-field { margin-top:14px; }

.taping-planning { padding: 20px; background: #f3f6fa; color: #19324e; }
.taping-planning p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.taping-planning > strong { font-size: 18px; }
.taping-order-checklist { padding: 12px 0; font-size: 14px; }
.taping-order-checklist, .taping-order-checklist summary { color: #dbe7ef; }

.taping-status { display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 12px; background: #e8eff4; color: #19324e; font-size: 12px; font-weight: 700; }
.taping-planning details, .taping-inline-details { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.taping-planning summary, .taping-inline-details summary, .taping-order-checklist summary { cursor: pointer; }
.taping-planning small { display:block; margin-top:10px; line-height:1.5; }
.taping-order-checklist button { margin: 6px 6px 0 0; }

/* This text-only byline has no portrait column. */
body[data-page="drywall-taping"] .calculator-guide-byline { grid-template-columns: minmax(0, 1fr); }
body[data-page="drywall-taping"] .calculator-guide-byline p { margin: 4px 0 0; }
button.taping-status { border: 1px solid #b8cad8; padding: 5px 10px; font-family: inherit; cursor: pointer; }
