/* Scoped additions to the existing cream, ink and gold free-tool shell. */
[data-pgt-printsheet] .pgt-tool-ps { text-align: left; max-width: 900px; margin-inline: auto; }
[data-pgt-printsheet] .pgt-tool-ps *, [data-pgt-printsheet] .pgt-tool-ps *::before { box-sizing: border-box; }
[data-pgt-printsheet] .pgt-badge { color: #32260a; }
.pgt-tool-ps fieldset { border: 1px solid var(--pgt-line); border-radius: 12px; padding: 18px; margin: 20px 0; min-width: 0; }
.pgt-tool-ps legend { font-weight: 600; padding: 0 8px; }
.pgt-ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pgt-tool-ps label { display: block; font-size: 15px; font-weight: 600; }
.pgt-tool-ps input, .pgt-tool-ps select, .pgt-tool-ps textarea { display: block; width: 100%; min-height: 48px; margin-top: 7px; padding: 12px; border: 1px solid #8c8374; border-radius: 8px; background: #fff; color: #1a1a1a; font: inherit; font-size: 16px; }
.pgt-ps-hint { display: block; font-size: 13px; line-height: 1.6; color: #595247; font-weight: 400; margin-top: 7px; }
.pgt-ps-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pgt-ps-actions button { flex: 1 1 220px; margin-top: 0; }
[data-pgt-printsheet] .pgt-cta, [data-pgt-printsheet] .pgt-btn:not(.pgt-btn-secondary) { background: #70550e; color: #fff; min-height: 48px; white-space: normal; }
[data-pgt-printsheet] .pgt-btn-secondary { color: #443511; background: #fff8e5; border: 1px solid #8c742f; min-height: 48px; }
[data-pgt-printsheet] :is(button, input, select, textarea, a, summary, section):focus-visible { outline: 3px solid #285fa6; outline-offset: 4px; }
.pgt-tool-ps [aria-invalid="true"] { border: 2px solid #a32525; }
.pgt-tool-ps [hidden] { display: none !important; }
.pgt-tool-ps button:disabled { opacity: 0.55; cursor: not-allowed; }
.pgt-tool-ps .pgt-status { min-height: 3.4em; color: #443511; }
#pgtPsResult:not(:empty) { margin: 20px 0; padding: 22px; background: #fffaf0; border: 1px solid var(--pgt-line); border-radius: 14px; }
.pgt-ps-diagram { display: block; width: 100%; max-width: 300px; height: auto; margin: 6px auto; }
.pgt-ps-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pgt-ps-metrics div { border: 1px solid var(--pgt-line); border-radius: 8px; padding: 12px; background: white; }
.pgt-ps-metrics dt { font-size: 13px; color: #595247; }
.pgt-ps-metrics dd { margin: 4px 0 0; font-size: 21px; font-weight: 600; overflow-wrap: anywhere; }
.pgt-tool-ps summary { cursor: pointer; min-height: 48px; padding-block: 12px; font-weight: 600; }
.pgt-ps-table { overflow-x: auto; }
.pgt-ps-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pgt-ps-table th, .pgt-ps-table td { text-align: left; padding: 9px 5px; border-bottom: 1px solid var(--pgt-line); }
.pgt-ps-table caption { text-align: left; font-size: 13px; margin-bottom: 8px; }
#pgtPsCopyFallback { min-height: 220px; }
@media (max-width: 540px) {
  .pgt-ps-grid { grid-template-columns: 1fr; }
  .pgt-tool-ps fieldset { padding: 12px; }
  #pgtPsResult:not(:empty) { padding: 12px; }
  .pgt-ps-metrics dd { font-size: 18px; }
  .pgt-ps-actions button { width: 100%; }
  [data-pgt-printsheet] .pgt-hero { padding-top: 34px; }
}
