.fd-demo-hero {
  display:grid;grid-template-columns:minmax(0,1.18fr) minmax(240px,.72fr);align-items:center;
  gap:clamp(2rem,7vw,8rem);padding:clamp(24px,3vw,50px) clamp(12px,3vw,50px) clamp(32px,4vw,60px);
}
.fd-demo-hero h1 {font-size:clamp(2.25rem,4.8vw,4.5rem);line-height:1.15}
.fd-demo-hero h1+p {font-size:clamp(1.12rem,1.45vw,1.38rem);color:var(--muted);max-width:45ch;margin-top:15px}
.fd-demo-hero>img {width:100%;max-height:215px;object-fit:cover;aspect-ratio:2.3;border:2px solid #160c1b;box-shadow:5px 6px #100917}
.fd-demo-area {padding:0 clamp(12px,3vw,50px)}
.fd-demo-app {display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,2.25vw,36px);align-items:start}
.fd-demo-app[hidden],.fd-demo-app [hidden] {display:none}
.fd-demo-window {min-width:0;color-scheme:light;background:#fcf1e6;color:var(--ink);border:3px solid #140c18;box-shadow:6px 7px #100917}
.fd-demo-title {background:var(--purple);display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:12px clamp(14px,2vw,28px);border-bottom:2px solid var(--ink);box-shadow:inset 2px 2px #e6cbff}
.fd-demo-title h2 {font:400 clamp(1.1rem,1.75vw,1.65rem)/1.3 var(--pixel)}
.fd-demo-title .display-lines {width:32px;height:7px}
.fd-demo-peach {background:var(--peach);box-shadow:inset 2px 2px #ffe2ce}
.fd-demo-body {padding:clamp(16px,2.15vw,32px);font-size:1rem}
.fd-demo-field {display:block;margin-bottom:15px;font-weight:700;line-height:1.4}
.fd-demo-field span {margin-left:.35rem;color:#69596a;font-weight:450;font-size:.82rem}
.fd-demo-app input:not([type=checkbox]),.fd-demo-app select,.fd-demo-app textarea {
  display:block;width:100%;min-width:0;padding:9px 10px;border:1.5px solid #695567;border-radius:0;background:#fffaf3;color:var(--ink);font:inherit;font-weight:450;
}
.fd-demo-field input,.fd-demo-field select,.fd-demo-field textarea {margin-top:5px}
.fd-demo-app textarea {resize:vertical}
.fd-demo-app input[aria-invalid=true] {border:2px solid #9f3245}
.fd-demo-fieldset {margin:0 0 16px;padding:0;border:0;min-width:0}
.fd-demo-fieldset legend {font-weight:700;margin:0 0 5px;padding:0}
.fd-demo-check {display:flex;align-items:center;gap:9px;padding:4px 0;cursor:pointer}
.fd-demo-check input {accent-color:#614375;width:18px;height:18px}
.fd-demo-pair,.fd-demo-summary-grid {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fd-demo-pair .fd-demo-field {margin-bottom:3px}
.fd-demo-presets {display:flex;gap:6px;flex-wrap:wrap;margin:3px 0 12px}
.fd-demo-app button {background:#ead9f4;color:var(--ink);border:1.5px solid var(--ink);padding:6px 11px;border-radius:0;font-weight:650;font-size:.86rem;line-height:1.4}
.fd-demo-presets button[aria-pressed=true] {background:var(--ink);color:white}
.fd-demo-app button:disabled {opacity:.5;cursor:default}
.fd-demo-app button:not(:disabled):hover {filter:brightness(.95)}
.fd-demo-app :is(button,select,input,textarea,summary):focus-visible {outline:3px solid #875a9e;outline-offset:2px}
.fd-demo-add .fd-demo-field {margin-bottom:5px}
.fd-demo-row {display:flex;align-items:stretch;gap:8px}
.fd-demo-row button {white-space:nowrap}
.fd-demo-snags {margin:10px 0 0;padding:0;list-style:none}
.fd-demo-snags li {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #cbb5c0;padding:7px 0}
.fd-demo-snags span,.fd-demo-paper :is(p,li,small) {overflow-wrap:anywhere}
.fd-demo-snags button {font-size:.78rem;padding:4px 8px;background:transparent}
.fd-demo-error {color:#8c263e;font-size:.88rem;font-weight:650}
.fd-demo-error:not(:empty) {margin-top:6px}
.fd-demo-help,.fd-demo-small,.fd-demo-details {font-size:.9rem;line-height:1.5;color:#5f4e60}
.fd-demo-small {margin-bottom:4px}
.fd-demo-paper {background:#fff6ea}
.fd-demo-paper h3 {font:400 clamp(1.2rem,1.65vw,1.5rem)/1.35 var(--pixel)}
.fd-demo-app h4 {font-size:1rem;margin:0 0 5px;font-weight:750}
.fd-demo-progress {margin:14px 0 18px;padding:6px 11px;background:#e7eecc;color:#344621;border-left:3px solid #738b49;font-size:.94rem}
.fd-demo-summary-grid ul,.fd-demo-section ul {margin:0;padding-left:1.2rem}
.fd-demo-section {margin-top:16px;padding-top:12px;border-top:1px solid #d6c3ca}
.fd-demo-section p {white-space:pre-line}
.fd-demo-app .fd-demo-action {margin-top:18px;min-height:38px;padding:7px 13px;background:var(--ink);color:var(--light)}
.fd-demo-gallery {background:#dfbfb0;border:1.5px solid var(--ink);margin-bottom:9px}
.fd-demo-gallery canvas {display:block;width:100%;height:auto}
.fd-demo-gallery:has([hidden]) {display:none}
.fd-demo-costs {margin:16px 0 0}
.fd-demo-costs>div {display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-top:1px solid #d8c6c9;padding:6px 0}
.fd-demo-costs dd {margin:0;white-space:nowrap}
.fd-demo-costs small {font-size:.76rem;color:#69596a;display:inline-block;margin-left:3px}
.fd-demo-total {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;margin:5px 0 8px;background:var(--lime);color:var(--ink);flex-wrap:wrap}
.fd-demo-total span {font-weight:700}
.fd-demo-total output {font:400 clamp(1.3rem,2vw,1.8rem)/1.2 var(--pixel)}
.fd-demo-details {border-top:1px solid #cbb5c0;padding-top:12px}
.fd-demo-details summary {font-weight:650;color:var(--ink);cursor:pointer}
.fd-demo-details p {margin-top:8px}
.fd-demo-footnote,.fd-demo-warning {margin:18px 0 0;color:var(--muted);font-size:.94rem}
@media(max-width:760px){
  .fd-demo-hero {grid-template-columns:minmax(0,1fr);gap:20px;padding:26px 4px}
  .fd-demo-hero>img {max-width:450px;max-height:158px;aspect-ratio:3;object-position:center}
  .fd-demo-area {padding:0 4px}.fd-demo-app{grid-template-columns:minmax(0,1fr);gap:22px}
  .fd-demo-body{padding:16px}.fd-demo-title h2{font-size:1.2rem}
}
@media(max-width:430px){.fd-demo-summary-grid{grid-template-columns:1fr}.fd-demo-row{flex-wrap:wrap}.fd-demo-row input{flex:1 1 160px}.fd-demo-costs small{display:block;margin-left:0}.fd-demo-hero h1{font-size:2rem}}
@media print{
  @page{margin:16mm}
  html,body {background:white!important;color:black!important;font-size:11pt}
  body>header,body>footer,.crumb,.fd-demo-hero,.contact-strip,.fd-demo-no-print,.fd-demo-footnote,.fd-demo-warning,.skip,
  .fd-demo-app>.fd-demo-window:not(.fd-demo-printable),[role=dialog] {display:none!important}
  .fd-demo-area,.fd-demo-app,.fd-demo-printable {display:block!important;width:100%;max-width:none;margin:0;padding:0;border:0;box-shadow:none}
  .fd-demo-title,.fd-demo-body,.fd-demo-total,.fd-demo-progress,.fd-demo-paper {background:white!important;color:black!important;box-shadow:none}
  .fd-demo-title,.fd-demo-body{padding:8px 0}
  .fd-demo-gallery{max-width:14cm}
  .fd-demo-progress,.fd-demo-total{border:1px solid #444;break-inside:avoid}
  .fd-demo-section,.fd-demo-summary-grid>div,.fd-demo-costs>div{break-inside:avoid}
}
