.pm-shell { width: min(100% - 2rem, 78rem); margin-inline: auto; }
.pm-main { font-size: 1.02rem; }
.pm-header { position: sticky; top: 0; z-index: 30; background: #0b1f33; color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 10%); }
.pm-header-inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pm-brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; font-weight: 750; }

.pm-header-links { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; }
.pm-header-links a { color: #e8eff7; text-decoration: none; }
.pm-header-links a:hover, .pm-footer a:hover { text-decoration: underline; }
.pm-main { padding-block: 2.5rem 4rem; }
.pm-intro { max-width: 52rem; margin-bottom: 2rem; }
.pm-intro h1 { margin: .5rem 0; color: #0b1f33; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.pm-intro-steps { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 0; margin: 1rem 0; list-style: none; color: #334e64; font-size: .9rem; font-weight: 700; }
.pm-example-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid #dbb567; border-radius: .8rem; background: #fff8e9; color: #674300; }
.pm-example-notice p { flex: 1 1 20rem; margin: 0; font-size: .9rem; line-height: 1.5; }
.pm-example-notice[hidden] { display: none; }
.pm-share-dialog { width: min(42rem, calc(100% - 1.25rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #cfdae7; border-radius: 1rem; background: #fff; color: #183a5a; box-shadow: 0 20px 60px #0b1f3340; }
.pm-share-dialog::backdrop { background: #071827b8; }
.pm-share-heading { display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.pm-share-heading h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 750; }
.pm-share-dialog textarea { width: 100%; min-height: 12rem; padding: .8rem; border: 1px solid #c8d5e3; border-radius: .65rem; background: #f8fafc; color: #183a5a; font: inherit; font-size: .9rem; line-height: 1.6; resize: vertical; }
.pm-share-dialog textarea:focus-visible { outline: 3px solid #f6a91a; outline-offset: 2px; }
.pm-share-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.pm-intro > p:last-child { max-width: 46rem; margin: .85rem 0 0; color: #52657b; font-size: 1.05rem; line-height: 1.7; }
.pm-draft-notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -1rem 0 1rem; padding: .75rem 1rem; border: 1px solid #b8ddc8; border-radius: .7rem; background: #eef9f1; color: #205a39; font-size: .88rem; }
.pm-draft-notice[hidden] { display: none !important; }
.pm-draft-notice > span > span { display: inline-grid; width: 1.3rem; height: 1.3rem; place-items: center; margin-right: .25rem; border-radius: 50%; background: #2f8a56; color: #fff; font-weight: 800; }
.pm-text-button { padding: .25rem; border: 0; background: transparent; color: #174e89; font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.pm-eyebrow { margin: 0; color: #c64f00; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pm-panel { margin-top: 1.25rem; padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid #cfdae7; border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgb(11 31 51 / 3%); }
.pm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.pm-section-heading h2, .pm-next-step h2, .pm-guide h2 { margin: .15rem 0 0; color: #0b1f33; font-size: 1.55rem; line-height: 1.25; }
.pm-step { margin: 0; color: #c64f00; font-size: .75rem; font-weight: 800; letter-spacing: .13em; }
.pm-help { margin: .35rem 0 1rem; color: #52657b; font-size: .96rem; line-height: 1.55; }
.pm-button { min-height: 2.65rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1rem; border: 1px solid transparent; border-radius: .7rem; font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.pm-button[hidden] { display: none; }
.pm-button:active { transform: translateY(1px); }
.pm-button:focus-visible, .pm-field input:focus-visible, .pm-field select:focus-visible, .pm-check-field input:focus-visible, .pm-material-status:focus-visible { outline: 3px solid #f6a91a; outline-offset: 2px; }
.pm-button-secondary { border-color: #cfdae7; background: #fff; color: #123252; }
.pm-button-secondary:hover { background: #f3f7fa; }
.pm-button-primary { background: #0b1f33; color: #fff; }
.pm-button-primary:hover { background: #183a5a; }
.pm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pm-field { min-width: 0; display: grid; align-content: start; gap: .4rem; color: #183a5a; font-size: .96rem; font-weight: 700; }
.pm-field input { width: 100%; min-height: 2.7rem; padding: .55rem .7rem; border: 1px solid #c8d5e3; border-radius: .55rem; background: #fff; color: #0b1f33; font: inherit; font-weight: 500; }
.pm-field select { width: 100%; min-height: 2.7rem; padding: .55rem 2rem .55rem .7rem; border: 1px solid #c8d5e3; border-radius: .55rem; background: #fff; color: #0b1f33; font: inherit; font-weight: 500; }
.pm-field input:disabled { background: #edf2f6; color: #718096; }
.pm-field small { color: #64758a; font-size: .82rem; font-weight: 400; line-height: 1.5; }
.pm-field .pm-inline-hint { color: #805000; }
.pm-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pm-choice-group { min-width: 0; padding: 0; border: 0; }
.pm-choice-group legend { margin-bottom: .65rem; color: #183a5a; font-size: .96rem; font-weight: 750; }
.pm-choice-group label { position: relative; min-width: 0; cursor: pointer; }
.pm-choice-group input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pm-choice-group label > span { display: grid; min-height: 3.4rem; align-content: center; gap: .2rem; padding: .65rem .8rem; border: 1px solid #c8d5e3; border-radius: .7rem; background: #fff; color: #183a5a; transition: border-color .15s, background .15s, box-shadow .15s; }
.pm-choice-group label > span strong { font-size: .94rem; }
.pm-choice-group label > span small { color: #64758a; font-size: .82rem; font-weight: 450; }
.pm-choice-group input:checked + span { border-color: #e99a13; background: #fff8e9; box-shadow: inset 0 0 0 1px #e99a13; }
.pm-choice-group input:focus-visible + span { outline: 3px solid #f6a91a; outline-offset: 2px; }
.pm-method-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.pm-method-options label > span { min-height: 4.2rem; }
.pm-paint-choice { grid-column: 1 / -1; }
.pm-profile-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
.pm-profile-options label > span { min-height: 4rem; padding: .55rem; }
.pm-profile-options label > span strong { font-size: .86rem; }
.pm-choice-help { display: block; margin-top: .55rem; color: #64758a; font-size: .82rem; font-weight: 400; line-height: 1.5; }
.pm-area-mode { margin-bottom: .75rem; }
.pm-area-mode > div { display: flex; flex-wrap: wrap; gap: .6rem; }
.pm-area-mode label > span { min-height: 2.7rem; display: flex; align-items: center; }
.pm-total-area { max-width: 30rem; padding-block: .5rem 1rem; }
.pm-stepper { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr) 2.7rem; }
.pm-stepper input { min-width: 0; border-radius: 0; text-align: center; }
.pm-stepper button { min-height: 2.7rem; border: 1px solid #c8d5e3; background: #f3f7fa; color: #123252; font: inherit; font-size: 1.2rem; font-weight: 750; cursor: pointer; }
.pm-stepper button:first-child { border-right: 0; border-radius: .55rem 0 0 .55rem; }
.pm-stepper button:last-child { border-left: 0; border-radius: 0 .55rem .55rem 0; }
.pm-stepper button:hover { background: #e8f0f6; }
.pm-check-field { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .65rem; color: #183a5a; font-size: .9rem; line-height: 1.5; }
.pm-check-field input { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin-top: .16rem; accent-color: #0b1f33; }
.pm-calculate-row { display: flex; justify-content: flex-end; margin-top: 1rem; }
.pm-rooms { display: grid; gap: .85rem; }
.pm-room { padding: 1rem; border: 1px solid #d7e0ea; border-radius: .8rem; background: #f8fafc; }
.pm-room-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.pm-room-head h3 { margin: 0; color: #0b1f33; font-size: 1.05rem; }
.pm-room-remove { padding: .35rem .55rem; border: 0; border-radius: .4rem; background: transparent; color: #8f2b21; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.pm-room-remove:hover { background: #fff0ed; }
.pm-room-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.pm-room-surfaces { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; margin-top: .8rem; }
.pm-room-surfaces label { display: inline-flex; align-items: center; gap: .45rem; color: #183a5a; font-size: .88rem; }
.pm-room-surfaces input { accent-color: #0b1f33; }
.pm-error { margin: .8rem 0 0; color: #9a261d; font-size: .9rem; font-weight: 700; }
.pm-details { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #d7e0ea; }
.pm-details summary { color: #123252; font-weight: 750; cursor: pointer; }
.pm-paint-adjustments { margin-top: .9rem; }
.pm-assumptions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-top: 1rem; }
.pm-method-assumption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: .9rem; border: 1px solid #d7e0ea; border-radius: .7rem; background: #f8fafc; }
.pm-method-assumption h3 { grid-column: 1 / -1; margin: 0; color: #0b1f33; font-size: .95rem; }
.pm-method-assumption .pm-field + .pm-field { margin-top: 0; }
.pm-total-area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.pm-source-note { color: #52657b; font-size: .88rem; line-height: 1.55; }
.pm-source-note a { color: #174e89; text-decoration: underline; }
.pm-results-section { margin-top: 2.6rem; }
.pm-results-heading { align-items: end; }
.pm-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.pm-button-whatsapp { border-color: #178b4c; background: #1fae5a; color: #fff; }
.pm-button-whatsapp:hover { background: #178b4c; }
.pm-method-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1rem; max-width: 68rem; margin-top: 1rem; }
.pm-method-card { min-width: 0; overflow: hidden; border: 1px solid #cfdae7; border-radius: .95rem; background: #fff; }
.pm-method-card.pm-selected { border: 2px solid #e99a13; box-shadow: 0 8px 24px rgb(233 154 19 / 12%); }
.pm-method-card-head { padding: 1.1rem; background: #0b1f33; color: #fff; }
.pm-method-card-head h3 { margin: 0; font-size: 1.12rem; }
.pm-method-card-head p { margin: .4rem 0 0; color: #d2dfeb; font-size: .82rem; line-height: 1.45; }
.pm-method-card-body { padding: 1rem; }
.pm-method-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pm-paint-purchase { display: grid; gap: .2rem; margin-top: .75rem; padding: .8rem; border: 1px solid #b8ddc8; border-radius: .65rem; background: #eef9f1; color: #205a39; }
.pm-paint-purchase span { font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.pm-paint-purchase strong { font-size: 1.05rem; }
.pm-paint-purchase small { color: #52657b; font-size: .76rem; }
.pm-paint-purchase p { margin: .3rem 0; font-size: .85rem; line-height: 1.5; }
.pm-paint-cost, .pm-paint-savings { font-weight: 700; }
.pm-paint-purchase .pm-paint-warning { color: #8b3400; font-weight: 700; }
.pm-paint-purchase .pm-button { justify-self: start; white-space: normal; }
.pm-metric { padding: .7rem; border-radius: .6rem; background: #f0f5f8; }
.pm-metric span { display: block; color: #52657b; font-size: .7rem; line-height: 1.35; text-transform: uppercase; }
.pm-metric strong { display: block; margin-top: .25rem; color: #0b1f33; font-size: 1.1rem; }
.pm-materials-heading { margin: 1rem 0 .55rem; color: #0b1f33; font-size: .95rem; }
.pm-material-list { display: grid; gap: .6rem; }
.pm-material { padding: .7rem; border: 1px solid #e1e8ef; border-radius: .6rem; }
.pm-material-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.pm-material-title strong { min-width: 0; flex: 1; color: #183a5a; font-size: .93rem; }
.pm-material-title span { color: #52657b; font-size: .86rem; white-space: nowrap; }
.pm-material p { margin: .25rem 0 .55rem; color: #64758a; font-size: .84rem; line-height: 1.5; }
.pm-price-note { margin: -.25rem 0 .65rem; color: #64758a; font-size: .84rem; line-height: 1.5; }
.pm-material-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pm-material-controls label { display: grid; gap: .25rem; color: #52657b; font-size: .78rem; }
.pm-material-include { display: inline-flex !important; flex: 0 0 auto; align-items: center; gap: .3rem !important; color: #52657b; font-size: .68rem; white-space: nowrap; cursor: pointer; }
.pm-material-include input[type="checkbox"] { width: 1rem; height: 1rem; min-height: 1rem; margin: 0; padding: 0; accent-color: #0b1f33; }
.pm-material-controls input:not([type="checkbox"]), .pm-material-status { width: 100%; min-height: 2.4rem; padding: .4rem .5rem; border: 1px solid #c8d5e3; border-radius: .4rem; background: #fff; color: #0b1f33; font: inherit; font-size: .9rem; }
.pm-material-status { grid-column: 1 / -1; }
.pm-cost-totals { display: grid; gap: .4rem; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid #d7e0ea; color: #52657b; font-size: .9rem; }
.pm-cost-row { display: flex; justify-content: space-between; gap: .8rem; }
.pm-cost-row strong { color: #0b1f33; }
.pm-select-method { width: 100%; margin-top: .9rem; }
.pm-next-step { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.2rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: 1rem; background: #e7f1f7; }
.pm-next-copy { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 .8rem; }
.pm-next-copy .pm-eyebrow, .pm-next-copy h2, .pm-next-copy p { flex-basis: 100%; }
.pm-pdf-preview { position: relative; width: 6rem; height: 7.4rem; display: grid; align-content: start; gap: .45rem; margin-top: .8rem; padding: .65rem; overflow: hidden; border: 1px solid #c8d5e3; border-radius: .35rem; background: #fff; box-shadow: 0 4px 10px rgb(11 31 51 / 10%); color: #52657b; }
.pm-pdf-preview > span { font-size: .36rem; font-weight: 850; letter-spacing: .05em; }
.pm-pdf-preview i { display: block; height: .25rem; border-radius: 1rem; background: #d6e0e9; filter: blur(1px); }
.pm-pdf-preview i:nth-of-type(2) { width: 75%; }
.pm-pdf-preview i:nth-of-type(3) { width: 88%; }
.pm-pdf-preview b { height: 1.6rem; margin-top: .2rem; border-radius: .2rem; background: #e9f0f4; filter: blur(1px); }
.pm-pdf-preview small { position: absolute; right: .4rem; bottom: .4rem; color: #8a98a8; font-size: .42rem; font-weight: 800; }
.pm-next-step p:not(.pm-eyebrow) { max-width: 44rem; margin: .45rem 0 0; color: #52657b; font-size: .92rem; line-height: 1.55; }
.pm-next-step .pm-eyebrow { color: #c64f00; }
.pm-next-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }
.pm-guide { padding-block: 3rem 1.5rem; }
.pm-guide h2 { margin-top: .4rem; }
.pm-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.pm-guide-grid article { padding: 1rem; border: 1px solid #cfdae7; border-radius: .8rem; background: #fff; }
.pm-guide-grid h3 { margin: 0; color: #123252; font-size: .98rem; }
.pm-guide-grid p, .pm-disclaimer { margin: .45rem 0 0; color: #52657b; font-size: .86rem; line-height: 1.6; }
.pm-disclaimer { margin-top: 1rem; font-size: .78rem; }
.pm-footer { border-top: 1px solid #cfdae7; background: #fff; }
.pm-footer > div { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #52657b; font-size: .82rem; }
.pm-footer a { color: #123252; font-weight: 700; }
@media (max-width: 900px) {
  .pm-method-grid { grid-template-columns: 1fr; }
  .pm-method-card { display: grid; grid-template-columns: minmax(12rem, .4fr) minmax(0, 1fr); }
  .pm-method-card-head { grid-row: span 2; }
  .pm-method-card-body { min-width: 0; }
  .pm-assumptions, .pm-guide-grid { grid-template-columns: 1fr; }
  .pm-next-step { align-items: flex-start; flex-direction: column; }
  .pm-next-actions { align-self: flex-end; }
}
@media (max-width: 620px) {
  .pm-shell { width: min(100% - 1.25rem, 78rem); }
  .pm-header-links { gap: .65rem; font-size: .8rem; }
  .pm-header-links a:first-child { max-width: 8rem; text-align: right; }
  .pm-main { padding-top: 1.5rem; }
  .pm-section-heading { align-items: flex-start; }
  .pm-section-heading h2 { font-size: 1.35rem; }
  .pm-form-grid, .pm-room-inputs { grid-template-columns: 1fr; }
  .pm-total-area-grid, .pm-method-assumption { grid-template-columns: 1fr; }
  .pm-method-options { grid-template-columns: 1fr; }
  .pm-method-options label > span { min-height: 3.4rem; }
  .pm-profile-options { display: flex; overflow-x: auto; gap: .5rem; padding: .15rem .1rem .55rem; scroll-snap-type: x mandatory; }
  .pm-profile-options label { flex: 0 0 auto; min-width: 8.5rem; scroll-snap-align: start; }
  .pm-profile-options .pm-profile-custom { min-width: 7.5rem; }
  .pm-area-mode > div { display: grid; grid-template-columns: 1fr; }
  .pm-calculate-row { justify-content: stretch; }
  .pm-calculate-row .pm-button { width: 100%; }
  .pm-method-card { display: block; }
  .pm-next-step { align-items: stretch; flex-direction: column; }
  .pm-next-actions { display: grid; grid-template-columns: 1fr; }
  .pm-next-step .pm-button { width: 100%; }
  .pm-results-heading { align-items: flex-start; flex-direction: column; }
  .pm-result-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .pm-result-actions .pm-button { width: 100%; }
  .pm-draft-notice { align-items: flex-start; flex-direction: column; margin-top: 0; }
  .pm-footer > div { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: .9rem; }
}
@media print {
  .pm-header, .pm-intro, #rooms-heading, #rooms-heading + *, #paint-heading, #paint-heading + *,
  .pm-results-heading button, .pm-next-step, .pm-guide, .pm-footer, .pm-select-method, .pm-material-controls,
  .pm-details { display: none !important; }
  .pm-shell { width: 100%; }
  .pm-main { padding: 0; }
  .pm-panel { display: none !important; }
  .pm-results-section { margin: 0; }
  .pm-method-grid { grid-template-columns: 1fr; gap: .4rem; }
  .pm-method-card { display: block; break-inside: avoid; box-shadow: none !important; }
  .pm-method-card-head { background: #0b1f33 !important; print-color-adjust: exact; }
  .pm-material { break-inside: avoid; }
  .pm-method-card-body { padding: .5rem; }
  a { color: inherit; }
}
