.demo-section{border:1px solid #e5d8cc;border-radius:12px;background:#fffaf6;min-width:0;overflow:hidden}.demo-section summary{padding:17px 15px;cursor:pointer;font-weight:600;color:#704c40}.demo-section[open] summary{border-bottom:1px solid #e5d8cc}.demo-section-body{display:grid;gap:14px;padding:16px}.demo-section .panel{padding:0;border:0;box-shadow:none;background:transparent}.demo-section .panel h2{font-size:20px}.demo-section input,.demo-section select,.demo-section textarea{max-width:100%;box-sizing:border-box}.demo-section .sf-font-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-section fieldset{min-width:0}.demo-section h3{margin:12px 0 0}.demo-editor{position:static!important}.demo-use .primary{width:100%}.demo-section summary:hover{background:#f5eadd}.demo-section summary:focus-visible{outline:2px solid #885648;outline-offset:-3px}

a[href="#demoPersonalize"]{display:inline-flex;margin-bottom:24px}#clearDemoDraft{border:0;background:transparent;text-decoration:underline;padding:8px 0;cursor:pointer;color:#704c40}

/* v148: constrain native iOS date/time controls inside the grid, without clipping. */
.demo-v118 .demo-section-body{grid-template-columns:minmax(0,1fr)}
.demo-v118 .demo-controls :is(label,.formgrid,.panel,.demo-location-group){min-width:0;max-width:100%}
.demo-v118 .demo-controls input:not([type=radio]):not([type=checkbox]),
.demo-v118 .demo-controls select,.demo-v118 .demo-controls textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font-size:16px}
.demo-v118 .demo-controls input:is([type=date],[type=time]){display:block;-webkit-appearance:none;appearance:none;min-height:48px;text-align:left}
.demo-v118 .demo-controls input::-webkit-date-and-time-value{min-width:0;text-align:left}
.demo-v118 .demo-controls input::-webkit-datetime-edit{padding:0;min-width:0}
.demo-location-group{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.demo-location-group+.demo-location-group{border-top:1px solid #e5d8cc;padding-top:22px;margin-top:6px}
.demo-v118 .demo-location-group h3{margin:0;font-size:19px;color:#704c40}
.demo-v118 .demo-controls .location-options{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;padding-top:14px}
.demo-v118 .demo-controls label{line-height:1.5}
.demo-v118 .demo-section summary{min-height:48px;box-sizing:border-box;line-height:1.5}
.demo-v118 .demo-section-body>section{margin:0}
.demo-v118 #demoStatus:empty{display:none}
@media(max-width:620px){
 .demo-v118 main.demo-layout{padding-inline:12px}
 .demo-v118 .demo-controls{padding:14px;gap:16px;border-radius:16px}
 .demo-v118 .demo-section-body{padding:14px;gap:16px}
 .demo-v118 .demo-section summary{padding:15px 12px}
 .demo-v118 .demo-use{padding-inline:0}
 .demo-v118 .demo-use .primary{padding-inline:16px}
 .demo-v118 .demo-controls .sf-font-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:no-preference){.demo-v118 .demo-section summary{transition:background-color .15s ease}}

.demo-v118 .demo-controls input[type=range]{margin-inline:0}

/* Keep native select interaction, with consistent room around the chevron. */
#demoPersonalize .demo-controls select{
 -webkit-appearance:none;appearance:none;
 padding-inline:14px 46px;min-height:48px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23704c40' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 16px center;background-size:16px 16px;
}
@media(forced-colors:active){#demoPersonalize .demo-controls select{appearance:auto;background-image:none}}
