.rebar-form-heading,.rebar-input-heading,.rebar-row__heading,.rebar-detail-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.rebar-form-intro{margin-top:.2rem;color:var(--pm-muted);font-size:.85rem;line-height:1.45}.rebar-reset,.rebar-remove{color:var(--pm-muted);font-size:.82rem;font-weight:760;white-space:nowrap}.rebar-reset{display:inline-flex;min-height:2.25rem;align-items:center;gap:.35rem;border:1px solid var(--pm-border);border-radius:.55rem;padding:.35rem .65rem}.rebar-reset svg{width:.9rem;height:.9rem;flex:0 0 .9rem}.rebar-diameter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;margin-top:1rem}.rebar-diameter-button{position:relative;display:grid;min-width:0;min-height:4.1rem;align-content:center;justify-items:start;gap:.12rem;border:1px solid var(--pm-border);border-radius:.8rem;background:var(--pm-surface);padding:.65rem .7rem;text-align:left;transition:border-color .16s ease,background-color .16s ease,transform .16s ease}.rebar-diameter-button[data-active=true]{border-color:#2563eb;background:#eef4ff;box-shadow:inset 0 0 0 1px #2563eb24}.rebar-diameter-button:active{transform:translateY(1px)}.rebar-diameter-button__label{color:var(--pm-ink);font-size:.96rem;font-weight:820}.rebar-diameter-button__mass{color:var(--pm-muted);font-size:.72rem;font-weight:650;white-space:nowrap}.rebar-diameter-button__count{position:absolute;top:.4rem;right:1.55rem;min-width:1.2rem;border-radius:999px;background:#dbeafe;color:#1d4ed8;padding:.08rem .28rem;font-size:.68rem;font-weight:820;line-height:1.2;text-align:center}.rebar-diameter-button__add{position:absolute;top:.45rem;right:.55rem;color:#2563eb;font-size:1rem;font-weight:850}.rebar-input-heading{margin-top:1.25rem;border-top:1px solid var(--pm-border);padding-top:1.1rem}.rebar-rows{display:grid;gap:.7rem;margin-top:.8rem}.rebar-empty-rows{margin:0;border:1px dashed var(--pm-border);border-radius:.8rem;padding:1rem;color:var(--pm-muted);font-size:.86rem;text-align:center}.rebar-row{border:1px solid var(--pm-border);border-radius:.9rem;background:var(--pm-surface);padding:.85rem}.rebar-row__heading{align-items:center;border-bottom:1px solid var(--pm-border);padding-bottom:.65rem}.rebar-row__diameter{color:var(--pm-ink);font-size:1rem}.rebar-row__mass{margin-left:.5rem;color:var(--pm-muted);font-size:.75rem;font-weight:650}.rebar-row__fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-top:.75rem}.rebar-field .ui-label{margin-bottom:.35rem;font-size:.78rem}.rebar-field .ui-input-group{min-height:2.85rem}.rebar-field .ui-input{min-width:0;font-size:.95rem}.rebar-row input[type=number]{-moz-appearance:textfield;appearance:textfield}.rebar-row input[type=number]::-webkit-inner-spin-button,.rebar-row input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.rebar-quantity-control{display:grid;min-height:2.85rem;grid-template-columns:2.5rem minmax(0,1fr) 2.5rem;overflow:hidden;border:1px solid rgba(198,215,237,.92);border-radius:var(--pm-radius-control);background:#fffffffa}.rebar-stepper-button{min-width:2.5rem;min-height:2.75rem;color:#2563eb;font-size:1.1rem;font-weight:760;line-height:1}.rebar-stepper-button:hover{background:#eff6ff}.rebar-stepper-button:active{background:#dbeafe}.rebar-stepper-button:disabled{color:#94a3b8;cursor:not-allowed;opacity:.55}.rebar-quantity-control:focus-within{border-color:#0a6cffc7;box-shadow:0 0 0 3px #0a6cff21}.rebar-quantity-input-group{display:flex;min-width:0;min-height:2.75rem;align-items:center;border-inline:1px solid rgba(198,215,237,.92);padding-inline:.25rem}.rebar-quantity-input-group .ui-input{width:100%;min-width:0;flex:1 1 auto;background:transparent;text-align:center}.rebar-row__example{margin:.55rem 0 0;color:var(--pm-muted);font-size:.72rem;line-height:1.35}.rebar-field-error{margin:.25rem 0 0;color:#b91c1c;font-size:.72rem;line-height:1.35}.rebar-field-error[hidden]{display:none}.rebar-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin-top:.85rem}.rebar-result-card{display:grid;min-width:0;align-content:center;min-height:8rem;border:1px solid #bfdbfe;border-radius:.9rem;background:#eff6ff;padding:.75rem;text-align:center}.rebar-result-card--quantity{border-color:#fed7aa;background:#fff7ed}.rebar-result-card>span{color:#1e5aa8;font-size:.78rem;font-weight:760;line-height:1.25}.rebar-result-card--quantity>span{color:#9a3412}.rebar-result-card>strong{margin-top:.25rem;overflow-wrap:anywhere;color:#087ec1;font-size:clamp(1.65rem,5vw,2.25rem);font-variant-numeric:tabular-nums;font-weight:880;line-height:1.05}.rebar-result-card--quantity>strong{color:#c2410c}.rebar-result-card>small{margin-top:.2rem;color:var(--pm-muted);font-size:.74rem;font-weight:720}.rebar-result-summary{display:grid;gap:.1rem;margin-top:.75rem;border:1px solid #bbf7d0;border-radius:.85rem;background:#f0fdf4;padding:.7rem .85rem}.rebar-result-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;border-bottom:1px solid rgba(16,185,129,.16);padding:.45rem 0}.rebar-result-summary>div:last-child{border-bottom:0}.rebar-result-summary span{color:#166534;font-size:.78rem}.rebar-result-summary strong{color:#065f46;font-size:.96rem;font-variant-numeric:tabular-nums;text-align:right}.rebar-result-note{margin:.75rem 0 0;color:var(--pm-muted);font-size:.75rem;line-height:1.45;text-align:center}.rebar-save-button{width:100%;margin-top:.7rem;border:1px solid var(--pm-border);border-radius:.65rem;min-height:2.65rem;color:#164ec3;font-size:.82rem;font-weight:760}.rebar-save-button[hidden]{display:none}.rebar-boundary-note{margin:0;color:var(--pm-muted);font-size:.75rem;line-height:1.5}.rebar-pdf-inputs,.rebar-pdf-table{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.rebar-detail-dialog{width:min(58rem,calc(100% - 2rem));max-width:none;max-height:min(90dvh,48rem);margin:auto;overflow:hidden;border:1px solid var(--pm-border);border-radius:1rem;background:transparent;color:var(--pm-ink);padding:0;box-shadow:0 28px 80px #0f172a47}.rebar-detail-dialog::backdrop{background:#0f172a7a;backdrop-filter:blur(4px)}.rebar-detail-dialog__shell{display:flex;max-height:min(90dvh,48rem);flex-direction:column;background:var(--pm-surface)}.rebar-detail-dialog__header,.rebar-detail-dialog__footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:1rem;border-color:var(--pm-border);background:var(--pm-surface);padding:.9rem 1rem}.rebar-detail-dialog__header{border-bottom:1px solid var(--pm-border)}.rebar-detail-dialog__eyebrow{margin:0;color:var(--pm-muted);font-size:.78rem}.rebar-detail-dialog h2{margin:.15rem 0 0;font-size:1.35rem;font-weight:850}.rebar-dialog-close{display:grid;width:2.75rem;height:2.75rem;flex:0 0 auto;place-items:center;border-radius:.65rem;color:var(--pm-muted)}.rebar-dialog-close svg{width:1.25rem;height:1.25rem}.rebar-detail-dialog__body{display:grid;min-height:0;gap:1rem;overflow-y:auto;padding:1rem;overscroll-behavior:contain}.rebar-detail-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--pm-border);border-radius:.75rem;overscroll-behavior-inline:contain;scrollbar-gutter:stable}.rebar-detail-table{width:100%;min-width:38rem;border-collapse:collapse;font-size:.8rem}.rebar-detail-table th,.rebar-detail-table td{border-bottom:1px solid var(--pm-border);padding:.65rem .55rem;text-align:right;white-space:nowrap}.rebar-detail-table th:first-child,.rebar-detail-table td:first-child{text-align:left}.rebar-detail-table tr:last-child td{border-bottom:0}.rebar-detail-table th{color:var(--pm-muted);font-weight:760}.rebar-detail-table td{color:var(--pm-ink);font-variant-numeric:tabular-nums}.rebar-detail-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--pm-border);border-radius:.8rem;background:var(--pm-surface-subtle)}.rebar-detail-total{min-width:0;padding:.9rem .8rem}.rebar-detail-total+.rebar-detail-total{border-inline-start:1px solid var(--pm-border)}.rebar-detail-total dt{color:var(--pm-muted);font-size:.78rem}.rebar-detail-total dd{display:grid;gap:.22rem;margin:.35rem 0 0;font-variant-numeric:tabular-nums}.rebar-detail-total__value{display:inline-flex;align-items:baseline;gap:.25rem}.rebar-detail-total__value strong{color:#4f46e5;font-size:2rem;font-weight:820;letter-spacing:-.04em;line-height:1}.rebar-detail-total__unit{color:var(--pm-muted);font-size:1rem}.rebar-detail-total__secondary{color:var(--pm-muted);font-size:.78rem}.rebar-detail-dialog__footer{justify-content:flex-end;border-top:1px solid var(--pm-border)}.rebar-detail-dialog__footer .ui-btn{min-width:7rem;gap:.4rem}.rebar-detail-dialog__footer .ui-btn svg{width:1rem;height:1rem}@media(max-width:639px){.rebar-diameter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rebar-row__fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.rebar-field .ui-label{font-size:.7rem;white-space:nowrap}.rebar-quantity-control{grid-template-columns:minmax(0,1fr)}.rebar-stepper-button{display:none}.rebar-quantity-input-group{border-inline:0;padding-inline:.45rem}.rebar-quantity-input-group .ui-input{font-size:1rem;letter-spacing:-.04em}.rebar-quantity-input-group .ui-input-unit{font-size:.72rem}.rebar-detail-dialog{width:calc(100% - 1rem);max-height:94dvh;border-radius:.85rem}.rebar-detail-dialog__shell{max-height:94dvh}.rebar-detail-dialog__header{position:relative;justify-content:center}.rebar-detail-dialog__header>div{min-width:0;padding-inline:2.75rem;text-align:center}.rebar-detail-dialog__header h2{font-size:1.2rem}.rebar-dialog-close{position:absolute;inset-inline-end:.5rem}.rebar-detail-dialog__body{padding:.9rem}.rebar-detail-totals{grid-template-columns:1fr}.rebar-detail-total{padding:.9rem .8rem}.rebar-detail-total+.rebar-detail-total{border-inline-start:0;border-top:1px solid var(--pm-border)}.rebar-detail-dialog__footer{flex-wrap:wrap;padding:.75rem .9rem}.rebar-detail-dialog__footer .ui-btn{flex:1 1 8rem;min-width:0}}@media(max-width:390px){.rebar-diameter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rebar-row__fields{gap:.25rem}.rebar-field .ui-label{font-size:.66rem}.rebar-result-grid{grid-template-columns:1fr}.rebar-result-card{min-height:6.5rem}}
