/* Give the personalized file its own paper surface, with the inputs as the main action. */
:root{--worksheet-studio-line:#d8d7d1}
.sheet:has(.worksheet-studio){padding-inline:max(1.12rem,calc((100% - 55rem)/2))}
.sheet .worksheet-form.worksheet-customization:has(.worksheet-studio),
.worksheet-library .library-details.worksheet-customization:has(.worksheet-studio){width:100%;max-width:55rem}
.worksheet-library main:has(.worksheet-studio){max-width:59rem}
.worksheet-library .library-space{width:100%}
.worksheet-studio{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1fr);gap:clamp(1.15rem,4vw,2.65rem);align-items:start;min-width:0;text-align:left}
.worksheet-studio .worksheet-studio-fields{min-width:0;display:grid;gap:1rem}
.worksheet-studio .worksheet-required-fields{grid-template-columns:minmax(0,1fr);gap:.78rem}
.worksheet-studio .worksheet-studio-preview{min-width:0;border-block:1px solid var(--worksheet-studio-line)}
.worksheet-studio .worksheet-studio-preview:empty,.worksheet-studio .worksheet-studio-preview[hidden]{display:none}
.worksheet-studio .worksheet-studio-action{display:grid;gap:.34rem;min-width:0;text-align:left}
.worksheet-studio .worksheet-studio-action button[type=submit]{margin:0;width:100%;min-height:48px;line-height:1.3;text-wrap:balance;transition:background-color .24s ease,border-color .24s ease}
.worksheet-studio[data-ready="1"] .worksheet-studio-action button[type=submit]:not(:disabled){background:#faee15;color:#171717;border-color:transparent}
.worksheet-studio[data-ready="1"] .worksheet-studio-action button[type=submit]:hover:not(:disabled){box-shadow:inset 0 -2px currentColor}
.worksheet-studio .worksheet-studio-action :is([role=status],.worksheet-form-hint){margin:0;text-align:left;font-size:.88rem}
.worksheet-studio .worksheet-studio-action [role=status]:empty{display:none}
.worksheet-studio .worksheet-studio-optional{border-top:1px solid var(--worksheet-studio-line);padding-top:.85rem;min-width:0}
.worksheet-studio .worksheet-studio-optional h3{display:flex;align-items:baseline;flex-wrap:wrap;gap:.28rem .52rem;margin:0 0 .35rem;font-family:Instrument,system-ui,sans-serif;font-size:1.2rem;line-height:1.24;color:#34352f;letter-spacing:-.022em;text-wrap:balance;transition:color .22s ease}
.worksheet-studio .worksheet-studio-optional h3 span{font-size:.76rem;font-weight:500;letter-spacing:0;color:var(--muted,#555)}
.worksheet-studio .worksheet-optional-fields{padding:0;gap:.65rem}
.worksheet-studio .worksheet-copy-choice label{min-height:44px}
.worksheet-studio .worksheet-copy-choice .worksheet-form-hint:empty{display:none}
.worksheet-studio .worksheet-copy-choice input:disabled+span{color:#565751}
.worksheet-studio .worksheet-phone-group{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;column-gap:.55rem}
.worksheet-country-label-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.worksheet-studio .worksheet-country-picker--ready{inline-size:4.6rem;display:grid}
.worksheet-studio .worksheet-country-picker--ready > .worksheet-country-picker__display[hidden]{padding-inline:.55rem}
.worksheet-studio label:has(.worksheet-country-picker--ready){display:grid}
@media(max-width:660px){
 .worksheet-studio{grid-template-columns:minmax(0,1fr);gap:.75rem}
 .worksheet-studio .worksheet-studio-fields{gap:.7rem}
 .worksheet-studio .worksheet-required-fields{gap:.6rem}
 .worksheet-studio[data-short] .worksheet-required-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 .worksheet-studio[data-short] .worksheet-required-fields .worksheet-field-state{display:block}
 .worksheet-studio .worksheet-studio-optional{margin-top:.4rem}
 .worksheet-studio .worksheet-required-fields input{font-size:max(16px,1rem)}
}
@media(prefers-reduced-motion:reduce){
 .worksheet-studio *, .worksheet-studio *::before, .worksheet-studio *::after{animation:none!important;transition:none!important}
}
/* The old bundle form split the entire canvas into two half-columns. Give the
   editor a whole row so the paper and controls each have a readable width. */
.worksheet-library .library-form:has(.worksheet-studio){grid-template-columns:minmax(0,1fr);gap:clamp(1.65rem,4vw,2.85rem)}
.worksheet-library .library-details.worksheet-customization:has(.worksheet-studio){max-width:none;scroll-margin-top:5.1rem;border-top:1px solid var(--worksheet-studio-line);padding-top:1rem}
.worksheet-library .library-checklist ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.35rem}
.worksheet-library .library-checklist ul label span{text-wrap:pretty}
.worksheet-library .worksheet-selection-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .8rem}
.worksheet-library .worksheet-selection-meta a{font-size:.9rem;font-weight:750;text-underline-offset:.22em}
@media(min-width:760px){.worksheet-library .library-checklist ul{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.worksheet-library .library-checklist ul{grid-template-columns:minmax(0,1fr);gap:.12rem}}
.worksheet-studio input:not([type=checkbox]){appearance:none;border:1px solid #8b8b84;border-radius:0;background:#fff;color:#202020;font-family:Instrument,system-ui,sans-serif}
