@import url('./app-studio-save.css');
/* =====================================================================
   app-estimate-pamphlet.css — the estimate / quote editor.
   Opens in the shared dialog but fills the screen like a workspace:
   document settings first, compact line items on the left,
   and the customer's document beside them. Sharing stays below both.
   ===================================================================== */
.pamphlet-modal{width:calc(100vw - 32px)!important;max-width:1500px!important;height:calc(100dvh - 32px);background:var(--ucl-bg);color:var(--ucl-ink)}
.pamphlet-modal .ucl-modal__header{background:var(--ucl-surface);border-bottom-color:var(--ucl-line)}
.pamphlet-modal .ucl-modal__title{color:var(--ucl-ink)}
.pamphlet-modal .ucl-modal__scroll{padding:20px}
.pamphlet-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,44%);grid-template-rows:auto minmax(0,1fr);gap:16px;align-items:start}
.pamphlet-products{grid-column:1;grid-row:2;min-width:0;padding:16px 18px;background:var(--ucl-surface);border:1px solid var(--ucl-line);border-radius:12px;box-shadow:var(--ucl-shadow-sm)}
.pamphlet-controls{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:minmax(150px,220px) minmax(160px,1fr) minmax(180px,260px);gap:8px 18px;align-items:center;min-width:0;padding:16px 18px;background:var(--ucl-surface);border:1px solid var(--ucl-line);border-radius:12px;box-shadow:var(--ucl-shadow-sm)}
.pamphlet-preview{grid-column:2;grid-row:2;position:static;min-width:0;background:var(--ucl-surface);border:1px solid var(--ucl-line);border-radius:12px;overflow:hidden;align-self:start;box-shadow:var(--ucl-shadow-sm)}
.pamphlet-editor>.pamphlet-footer{grid-column:1/-1;grid-row:3;display:flex;flex-direction:column;align-items:stretch;gap:12px}
.pamphlet-footer>.pamphlet-more,.pamphlet-footer>[data-reload]{align-self:flex-start}

/* ---- headings and copy ---- */
.pamphlet-kicker{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ucl-muted);margin:0 0 10px}
.pamphlet-editor-intro{font-size:14px;line-height:1.5;margin:0 0 18px;color:var(--ucl-ink-2)}
.pamphlet-products-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:4px}
.pamphlet-products-heading>div{min-width:0}
.pamphlet-products-heading h2{font-size:18px;line-height:1.3;margin:0 0 4px;color:var(--ucl-ink);font-weight:650}
.pamphlet-products-heading>div>p:last-child:not(.pamphlet-kicker){margin:0;font-size:13px;color:var(--ucl-muted);overflow-wrap:anywhere}
.pamphlet-products-heading>.btn{flex:none;background:var(--ucl-surface);color:var(--ucl-ink);border-color:var(--ucl-line-2)}
.pamphlet-included,.pamphlet-note{font-size:13px;line-height:1.5;color:var(--ucl-muted)}

/* ---- controls (document & sharing) ---- */
.pamphlet-controls .field{display:grid;gap:5px;margin:0;font-size:13px;font-weight:600;color:var(--ucl-ink-2);min-width:0}
.pamphlet-controls>.pamphlet-kicker{grid-column:1/-1;grid-row:1;margin:0 0 2px}
.pamphlet-controls>.field{grid-column:1;grid-row:2}
.pamphlet-controls>#pamphlet-type-help{grid-column:2;grid-row:2;margin:0;font-size:12px;line-height:1.45}
.pamphlet-controls>.pamphlet-editor-actions{grid-column:3;grid-row:2;align-self:end;margin:0}
.pamphlet-controls>[data-snapshot-note]{grid-column:1/-1;grid-row:3;margin:0;font-size:12px}
.pamphlet-controls>[data-payment-note]{grid-column:1/-1;grid-row:5;margin:0;font-size:12px}
.pamphlet-controls>.pamphlet-options{grid-column:1/-1;grid-row:4;margin:2px 0 0}
.pamphlet-controls>.pamphlet-link-section{grid-column:1/-1;grid-row:6;margin:0}
.pamphlet-controls>[data-pamphlet-status]{grid-column:1/-1;grid-row:7;margin:0;min-height:0;font-size:12px}
.pamphlet-controls>[data-pamphlet-status]:empty{display:none}
.pamphlet-controls>.pamphlet-more,.pamphlet-controls>[data-reload]{grid-column:1/-1;grid-row:8;justify-self:start}
.pamphlet-controls input:not([type=checkbox]),.pamphlet-controls textarea,.pamphlet-controls select{box-sizing:border-box;width:100%;font:inherit;font-size:15px;font-weight:400;border:1px solid var(--ucl-line-2);border-radius:8px;padding:9px 11px;min-height:40px;background:var(--ucl-surface);color:var(--ucl-ink)}
.pamphlet-controls input:focus,.pamphlet-controls textarea:focus,.pamphlet-controls select:focus{outline:none;border-color:var(--ucl-brand);box-shadow:var(--ucl-focus)}
.pamphlet-controls textarea{resize:vertical}
.pamphlet-controls .btn{white-space:normal}
.pamphlet-options{border-top:1px solid var(--ucl-line);border-bottom:1px solid var(--ucl-line);margin:4px 0 14px}
.pamphlet-options>summary{font-size:13.5px;font-weight:600;cursor:pointer;min-height:40px;display:flex;align-items:center;gap:8px;color:var(--ucl-ink)}
.pamphlet-options>summary::before{content:"+";font-weight:700;color:var(--ucl-muted)}
.pamphlet-options[open]>summary::before{content:"−"}
.pamphlet-options>summary::-webkit-details-marker{display:none}
.pamphlet-options[open]>summary{margin-bottom:10px}
.pamphlet-options .field{margin-bottom:14px}
.pamphlet-options[open]{padding-bottom:10px}
.pamphlet-choices{padding:0;border:0;margin:8px 0 14px}
.pamphlet-choices legend{font-size:13.5px;font-weight:600;margin-bottom:10px;color:var(--ucl-ink-2)}
.pamphlet-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--ucl-line);border-radius:10px;padding:10px 12px;margin-bottom:8px;cursor:pointer;background:var(--ucl-surface)}
.pamphlet-choice:has(input:checked){border-color:var(--ucl-brand);background:var(--ucl-brand-tint)}
.pamphlet-choice:has(input:disabled){opacity:.6;cursor:default}
.pamphlet-choice input{width:18px;height:18px;flex:none;accent-color:var(--ucl-brand);margin:0}
.pamphlet-choice span{flex:1;min-width:0}
.pamphlet-choice strong{display:block;font-size:14px;font-weight:600}
.pamphlet-choice small{display:block;font-size:12.5px;line-height:1.4;color:var(--ucl-muted);margin-top:2px}
.pamphlet-choice img{width:66px;height:48px;object-fit:contain;border-radius:5px;background:var(--ucl-canvas)}
.pamphlet-controls>.pamphlet-lighting-photos{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;padding-top:10px;border-top:1px solid var(--ucl-line)}
.pamphlet-lighting-photo-heading{min-width:0}
.pamphlet-lighting-photo-heading .pamphlet-note{font-size:12px;margin:3px 0 0 28px}
.pamphlet-lighting-picker{min-width:0;align-self:start}
.pamphlet-lighting-picker>summary{display:flex;align-items:center;gap:8px;min-height:36px;font-size:13px;font-weight:600;color:var(--ucl-ink);cursor:pointer;list-style:none}
.pamphlet-lighting-picker>summary::-webkit-details-marker{display:none}
.pamphlet-lighting-picker>summary::before{content:'+';color:var(--ucl-muted)}
.pamphlet-lighting-picker[open]>summary::before{content:'−'}
.pamphlet-lighting-picker>summary span{font-size:12px;font-weight:400;color:var(--ucl-muted)}
.pamphlet-lighting-picker[open]{grid-column:1/-1;grid-row:2}
.pamphlet-lighting-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;border:0;margin:0}
.pamphlet-lighting-choices>legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pamphlet-lighting-side{min-width:0;border:1px solid var(--ucl-line);border-radius:8px;padding:10px;background:#fff}
.pamphlet-lighting-side-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.pamphlet-lighting-side-controls label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;min-height:36px}
.pamphlet-lighting-side-controls select{min-width:90px;min-height:36px;width:auto;padding:6px 22px 6px 8px;font-size:13px}
.pamphlet-lighting-side>.pamphlet-note{margin:6px 0 0;font-size:11px;line-height:1.4}
.pamphlet-lighting-side [data-error=true]{color:#a53036}
.pamphlet-lighting-thumbs{display:flex;gap:6px}
.pamphlet-lighting-thumb{position:relative;flex:1;min-width:0;margin-top:8px;display:flex;flex-direction:column-reverse;gap:3px}
.pamphlet-lighting-thumb[hidden]{display:none}
.pamphlet-lighting-thumb img{width:100%;height:75px;object-fit:cover;border-radius:4px}
.pamphlet-lighting-thumb strong{font-size:11px;font-weight:500}
.pamphlet-lighting-choices .pamphlet-choice{gap:8px;padding:8px;margin:0;border-radius:8px;min-width:0}
.pamphlet-lighting-choices .pamphlet-choice strong{font-size:13px}
.pamphlet-lighting-choices .pamphlet-choice small{font-size:11px;line-height:1.3}
.pamphlet-lighting-choices .pamphlet-choice img{width:56px;height:40px;flex:none}
.pamphlet-lighting-picker>summary:focus-visible{outline:2px solid var(--ucl-brand);outline-offset:3px;border-radius:4px}
.pamphlet-lease-controls{margin:14px 0;padding:12px 14px;border:1px solid var(--ucl-line);border-radius:10px;background:var(--ucl-surface-2)}
.pamphlet-lease-toggle{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;font-weight:600}
.pamphlet-lease-toggle input{width:18px;height:18px;flex:none;accent-color:var(--ucl-brand);margin:1px 0 0}
.pamphlet-lease-controls p{margin:8px 0 0}
.pamphlet-offer-controls{display:grid;gap:10px}
.pamphlet-offer-heading{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ucl-muted)}
.pamphlet-offer-controls .pamphlet-lease-toggle{font-weight:500;line-height:1.4}
.pamphlet-offer-controls p{margin:0}
.pamphlet-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 12px}
.pamphlet-editor-actions .btn{min-height:40px}
.pamphlet-link-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,1fr);gap:10px 18px;align-items:start;padding:12px;background:var(--ucl-surface-2);border:1px solid var(--ucl-line);border-radius:10px;margin-top:12px}
.pamphlet-link-section>.field{grid-column:1;grid-row:1}
.pamphlet-link-section>.pamphlet-link-actions{grid-column:1;grid-row:2}
.pamphlet-link-section>.pamphlet-send{grid-column:2;grid-row:1/span 2;margin:0;padding:0 0 0 18px;border-bottom:0;border-left:1px solid var(--ucl-line)}
.pamphlet-link-section input{font-size:13px!important;background:var(--ucl-surface)}
.pamphlet-link-actions{display:flex;flex-wrap:wrap;gap:8px}
.pamphlet-link-actions .btn{font-size:13px}
.pamphlet-send{margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--ucl-line);overflow-wrap:anywhere}
.pamphlet-send>strong{display:block;margin-top:4px;font-size:14px}
.pamphlet-send p{font-size:13px;line-height:1.5;margin:6px 0}
.pamphlet-send>.primary{width:100%;min-height:40px}
.pamphlet-send [data-state=accepted]{color:var(--ucl-ok)}
.pamphlet-send [data-state=needs_review],.pamphlet-send [data-state=rejected],.pamphlet-send [data-state=blocked]{color:var(--ucl-danger)}
.pamphlet-send button:disabled{opacity:.6;cursor:not-allowed}
[data-pamphlet-status]{font-size:13px;line-height:1.5;color:var(--ucl-ok);overflow-wrap:anywhere;min-height:1.5em;margin:8px 0}
[data-pamphlet-status][data-error=true]{color:var(--ucl-danger)}
.pamphlet-controls>[data-reload]{margin-top:4px}
.pamphlet-products~.pamphlet-controls .pamphlet-note{font-size:13px}

/* ---- products table ---- */
.pamphlet-products input:not([type=checkbox]),.pamphlet-products select{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--ucl-line-2);border-radius:7px;padding:7px 8px;min-height:40px;font-variant-numeric:tabular-nums;background:var(--ucl-surface);color:var(--ucl-ink);font:inherit;font-size:14px;line-height:1.3}
.pamphlet-products input:focus,.pamphlet-products select:focus{outline:none;border-color:var(--ucl-brand);box-shadow:var(--ucl-focus)}
.pamphlet-product-labels,.pamphlet-product-row{display:grid;grid-template-columns:64px minmax(120px,1fr) 72px 82px 86px 40px;gap:7px;align-items:start}
.pamphlet-product-labels{padding:8px 0 6px;font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--ucl-muted);border-bottom:1px solid var(--ucl-line)}
.pamphlet-product-row{padding:7px 0;border-bottom:1px solid var(--ucl-line);transition:background-color .12s,border-color .12s}
.pamphlet-product-include{display:flex;align-items:center;gap:6px;min-height:40px}
.pamphlet-product-include input{width:18px;height:18px;margin:0;accent-color:var(--ucl-brand)}
.pamphlet-product-description{min-width:0}
.pamphlet-product-description>input{font-weight:600!important}
.pamphlet-product-drag{display:grid;place-items:center;flex:0 0 40px;min-width:40px;width:40px;min-height:40px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ucl-muted);font:22px/1 system-ui;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.pamphlet-product-drag:hover:not(:disabled){background:var(--ucl-brand-tint);color:var(--ucl-brand)}
.pamphlet-product-drag:active{cursor:grabbing}
.pamphlet-product-drag:focus-visible{outline:2px solid var(--ucl-brand);outline-offset:1px}
.pamphlet-product-drag svg{width:18px;height:18px;pointer-events:none}
.pamphlet-product-row.is-dragging,.pamphlet-product-row[data-dragging=true]{opacity:.55;background:var(--ucl-surface-2)}
.pamphlet-product-row.is-drop-target,.pamphlet-product-row[data-drop-target=true]{border-top:2px solid var(--ucl-brand);background:var(--ucl-brand-tint)}
.pamphlet-product-details{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.pamphlet-product-details:empty{display:none}
.pamphlet-product-details label{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--ucl-muted)}
.pamphlet-products .pamphlet-product-details select,.pamphlet-products .pamphlet-product-details input{width:auto;max-width:112px;padding:4px 6px;font-size:12px!important;min-height:40px;border-radius:6px}
.pamphlet-products .pamphlet-product-details input{max-width:62px}
.pamphlet-product-number{display:block;min-width:0}
.pamphlet-product-number>span{display:none}
.pamphlet-product-amount{text-align:right;padding:10px 0 0;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.pamphlet-product-remove{display:grid;place-items:center;min-height:40px;width:40px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--ucl-faint);font-size:22px;cursor:pointer}
.pamphlet-product-remove:hover{background:var(--ucl-danger-bg);color:var(--ucl-danger)}
.pamphlet-product-row[data-excluded=true]{background:transparent}
.pamphlet-product-row[data-excluded=true] .pamphlet-product-description>input{color:var(--ucl-faint)}
.pamphlet-product-row[data-excluded=true] .pamphlet-product-amount{font-weight:400;color:var(--ucl-faint);font-size:12.5px}
.pamphlet-product-add{display:flex;align-items:flex-end;gap:8px;margin:12px 0}
.pamphlet-product-add .field{display:grid;gap:6px;flex:1;font-size:12.5px;font-weight:600;color:var(--ucl-ink-2)}
.pamphlet-product-add .btn{flex:none;min-height:40px}
.pamphlet-included-services{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:10px 12px;margin:10px 0;background:var(--ucl-surface-2);border:1px solid var(--ucl-line);border-radius:8px;font-size:12px;line-height:1.5;color:var(--ucl-muted)}
.pamphlet-included-services strong{font-size:12px;font-weight:650;color:var(--ucl-ink);flex:none}
.pamphlet-included-services span{min-width:0;overflow-wrap:anywhere}
.pamphlet-product-summary{display:flex;flex-direction:column;align-items:flex-end;margin-top:12px;padding-top:10px;border-top:2px solid var(--ucl-ink)}
.pamphlet-product-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:24px;width:100%;font-size:13.5px;color:var(--ucl-ink-2);font-variant-numeric:tabular-nums}
.pamphlet-product-summary strong{font-size:26px;letter-spacing:-.02em;color:var(--ucl-ink);font-variant-numeric:tabular-nums}
.pamphlet-product-summary p{font-size:13px;color:var(--ucl-muted);margin:6px 0 0}
.pamphlet-product-validation{margin:14px 0;padding:11px 14px;background:var(--ucl-warn-bg);border:1px solid var(--ucl-warn-line);border-radius:8px;color:var(--ucl-warn);font-size:13.5px;line-height:1.5}
.pamphlet-product-validation p{margin:3px 0}
.pamphlet-product-empty{margin:14px 0;padding:20px;background:var(--ucl-surface-2);border-radius:8px;text-align:center;color:var(--ucl-muted)}
.pamphlet-legacy{padding:18px;margin:18px 0;background:var(--ucl-surface-2);border:1px solid var(--ucl-line);border-radius:10px}
.pamphlet-legacy strong{font-size:20px}
.pamphlet-legacy p{font-size:13.5px;line-height:1.6;color:var(--ucl-muted)}

/* ---- customer preview ---- */
.pamphlet-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:13px;color:var(--ucl-ink);border-bottom:1px solid var(--ucl-line);background:var(--ucl-surface-2)}
.pamphlet-preview-heading>div{display:grid;gap:2px}
.pamphlet-preview-heading strong{font-size:13.5px}
.pamphlet-preview-heading span:last-child,.pamphlet-preview-heading [data-preview-note]{font-size:12px;color:var(--ucl-muted)}
.pamphlet-preview-heading .btn{flex:none;background:var(--ucl-surface);color:var(--ucl-ink);border-color:var(--ucl-line-2);min-height:34px}
.pamphlet-preview iframe{display:block;border:0;width:100%;height:calc(100dvh - 150px);min-height:480px;background:#fff}
.pamphlet-editor [hidden]{display:none!important}
.pamphlet-editor button:disabled{opacity:.55;cursor:not-allowed}

/* launch card (older entry point) */
.pamphlet-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin:0 0 20px;border:1px solid var(--ucl-line);border-radius:12px;background:var(--ucl-surface)}
.pamphlet-launch strong{font-size:16px;display:block;color:var(--ucl-ink)}
.pamphlet-launch p{font-size:13.5px;color:var(--ucl-muted);margin:4px 0 0;line-height:1.4}
.pamphlet-launch .btn{flex:none}

/* ---- send confirmation dialog ---- */
.pamphlet-send-confirm{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:24px;border:1px solid var(--ucl-line);border-radius:14px;background:var(--ucl-surface);color:var(--ucl-ink);font:14.5px/1.5 var(--ucl-font);box-shadow:var(--ucl-shadow-lg)}
.pamphlet-send-confirm::backdrop{background:rgba(9,18,32,.5)}
.pamphlet-send-confirm h2{margin:0 0 8px;font-size:20px}
.pamphlet-send-confirm h3{font-size:15px;margin:20px 0 6px}
.pamphlet-send-confirm p{margin:6px 0 12px}
.pamphlet-send-details{display:grid;gap:8px;margin:16px 0;padding:14px;background:var(--ucl-surface-2);border:1px solid var(--ucl-line);border-radius:10px}
.pamphlet-send-details>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}
.pamphlet-send-details dt{font-weight:600;color:var(--ucl-muted)}
.pamphlet-send-details dd{margin:0;overflow-wrap:anywhere}
.pamphlet-send-confirm .field{display:grid;gap:6px;font-weight:600;font-size:13px;color:var(--ucl-ink-2)}
.pamphlet-send-confirm input{box-sizing:border-box;width:100%;padding:10px;border:1px solid var(--ucl-line-2);border-radius:8px;font:14px/1.5 var(--ucl-font);color:var(--ucl-ink);background:var(--ucl-surface)}
.pamphlet-send-confirm pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:12px 14px;border:1px solid var(--ucl-line);border-radius:8px;background:var(--ucl-surface-2);font:13.5px/1.6 var(--ucl-font)}
.pamphlet-send-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.pamphlet-send-confirm-actions button{min-height:40px}
.pamphlet-send-confirm :focus-visible{outline:2px solid var(--ucl-brand);outline-offset:2px}
.pamphlet-send-confirm [hidden]{display:none!important}
@media(max-width:520px){
 .pamphlet-send-confirm{padding:18px}
 .pamphlet-send-details>div{grid-template-columns:1fr;gap:2px}
 .pamphlet-send-confirm-actions{flex-direction:column-reverse}
 .pamphlet-send-confirm-actions button{width:100%}
}

/* ---- responsive ---- */
@media(max-width:1179px){
 .pamphlet-editor{grid-template-columns:minmax(0,1fr)}
 .pamphlet-products,.pamphlet-controls,.pamphlet-preview{grid-column:1;position:static}
 .pamphlet-controls{grid-row:1}
 .pamphlet-products{grid-row:2}
 .pamphlet-preview{grid-row:3}
 .pamphlet-editor>.pamphlet-footer{grid-row:4}
 .pamphlet-preview iframe{height:72vh;min-height:480px}
}
@media(max-width:699px){
 .pamphlet-modal{width:100vw!important;height:100dvh}
 .pamphlet-modal .ucl-modal__scroll{padding:12px}
 .pamphlet-editor{gap:12px}
 .pamphlet-products{padding:12px}
 .pamphlet-controls{grid-template-columns:minmax(0,1fr) minmax(120px,46%);gap:7px 10px;padding:12px}
 .pamphlet-controls>.pamphlet-editor-actions{grid-column:2;grid-row:2}
 .pamphlet-controls>#pamphlet-type-help{grid-column:1/-1;grid-row:3}
 .pamphlet-controls>[data-snapshot-note]{grid-row:4}
 .pamphlet-controls>.pamphlet-lighting-photos{grid-row:5;grid-template-columns:minmax(0,1fr);gap:2px}
 .pamphlet-lighting-picker{grid-column:1;grid-row:2}
 .pamphlet-lighting-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pamphlet-lighting-choices .pamphlet-choice{flex-wrap:wrap}
 .pamphlet-lighting-choices .pamphlet-choice img{width:100%;height:64px}
 .pamphlet-controls>.pamphlet-options{grid-row:5}
 .pamphlet-controls>[data-payment-note]{grid-row:6}
 .pamphlet-controls>.pamphlet-link-section{grid-row:7}
 .pamphlet-controls>[data-pamphlet-status]{grid-row:8}
 .pamphlet-controls>.pamphlet-more,.pamphlet-controls>[data-reload]{grid-row:9}
 .pamphlet-controls input:not([type=checkbox]),.pamphlet-controls textarea,.pamphlet-controls select{font-size:16px}
 .pamphlet-editor-actions{grid-template-columns:1fr}
 .pamphlet-link-section{grid-template-columns:minmax(0,1fr);padding:10px;gap:10px}
 .pamphlet-link-section>.pamphlet-send{grid-column:1;grid-row:3;border-left:0;border-top:1px solid var(--ucl-line);padding:10px 0 0}
 .pamphlet-product-labels{display:none}
 .pamphlet-product-row{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr) 40px;gap:7px 6px;padding:9px 0}
 .pamphlet-product-include{grid-column:1;grid-row:1/span 2;flex-direction:column;align-items:center;gap:12px}
 .pamphlet-product-description{grid-column:2 / span 2;grid-row:1}
 .pamphlet-product-number{grid-row:2}
 .pamphlet-product-number:has([data-product-field=quantity]){grid-column:2}
 .pamphlet-product-number:has([data-product-field=unitPriceCents]){grid-column:3}
 .pamphlet-product-number>span{display:block;margin-bottom:3px;font-size:11.5px;color:var(--ucl-muted)}
 .pamphlet-products input:not([type=checkbox]),.pamphlet-products select,.pamphlet-products .pamphlet-product-details select,.pamphlet-products .pamphlet-product-details input{font-size:16px!important}
 .pamphlet-product-amount{grid-column:2 / span 2;grid-row:3;padding:0;text-align:right}
 .pamphlet-product-remove{grid-column:4;grid-row:1;width:40px}
 .pamphlet-product-add{align-items:stretch;flex-direction:column}
 .pamphlet-product-add .btn{width:100%}
 .pamphlet-product-summary>div{gap:12px}
 .pamphlet-product-summary strong{font-size:24px}
 .pamphlet-preview-heading{align-items:flex-start;flex-direction:column;gap:8px}
 .pamphlet-preview-heading>.btn{align-self:flex-start}
 .pamphlet-preview iframe{height:65vh;min-height:420px}
 .pamphlet-product-details{gap:7px}
 .pamphlet-launch{align-items:stretch;flex-direction:column}
 .pamphlet-launch .btn{width:100%}
}
@media print{.pamphlet-products,.pamphlet-controls,.pamphlet-editor>.pamphlet-footer,.pamphlet-launch{display:none}}

/* ---------- page mode: the editor lives in the Estimate tab, not a dialog ---------- */
.pamphlet-editor--page .pamphlet-editor-actions{grid-template-columns:1fr}
.pamphlet-editor--page .pamphlet-editor-actions [data-publish]{min-height:44px;font-size:15px}
.pamphlet-editor--page .pamphlet-options>summary{font-size:14px}
.pamphlet-more{margin-top:0}
.pamphlet-more>summary{font-size:13px;font-weight:600;color:var(--ucl-muted);cursor:pointer;min-height:40px;display:flex;align-items:center;gap:6px;list-style:none}
.pamphlet-more>summary::-webkit-details-marker{display:none}
.pamphlet-more>summary::before{content:"···";letter-spacing:1px;font-weight:700}
.pamphlet-more>summary:hover{color:var(--ucl-ink)}
.pamphlet-more__body{display:flex;flex-wrap:wrap;gap:8px;padding:6px 0 4px}
.pamphlet-more__body .btn{font-size:13px;min-height:40px}
.pamphlet-editor--page .pamphlet-controls>[data-reload]{margin-top:0}
@media(max-width:1179px){.pamphlet-editor--page .pamphlet-controls>.pamphlet-more{grid-column:1/-1}}

/* The page studio shares Lighting Design / Map's dark tools and full-size canvas. */
.pamphlet-editor--page{--ucl-bg:#0a0e10;--ucl-surface:#171d20;--ucl-surface-2:#202a30;--ucl-ink:#edf4f6;--ucl-ink-2:#dce7ed;--ucl-muted:#a7bac6;--ucl-faint:#9aaebc;--ucl-line:#334048;--ucl-line-2:#40515c;--ucl-brand:#25c79d;--ucl-brand-tint:#163d33;--ucl-ok:#67e5c1;--ucl-danger:#ffb5ad;--ucl-warn-bg:#382e1d;--ucl-warn:#ffe0a1;--ucl-warn-line:#746340;display:grid;grid-template-columns:320px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0;align-items:stretch;height:100%;min-height:0;overflow:hidden;border:1px solid #2b383d;border-radius:12px;background:#0a0e10;color:var(--ucl-ink);color-scheme:dark}
.pamphlet-sidebar{grid-column:1;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#171d20;border-right:1px solid #334048}
.pamphlet-sidebar-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:12px;display:flex;flex-direction:column;gap:14px}
.pamphlet-studio-brand strong{font-size:14px;color:#4fe3b5;letter-spacing:.03em}
.pamphlet-studio-brand span{font-size:10px;font-weight:500;letter-spacing:0;color:#9db0bd}
.pamphlet-editor--page .pamphlet-products,.pamphlet-editor--page .pamphlet-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.pamphlet-editor--page .pamphlet-products{border-block:1px solid #334048;padding-block:12px}
.pamphlet-editor--page .pamphlet-controls>.pamphlet-kicker{font-size:10px;margin:0;color:#a7bac6}
.pamphlet-editor--page .pamphlet-note{font-size:11px;line-height:1.5;margin:0}
.pamphlet-editor--page .pamphlet-controls>#pamphlet-type-help{font-size:11px}
.pamphlet-editor--page .pamphlet-controls .field{font-size:12px}
.pamphlet-editor--page .pamphlet-controls input:not([type=checkbox]),.pamphlet-editor--page .pamphlet-controls select{background:#242e38;font-size:13px;min-height:36px;padding:7px 9px}
.pamphlet-editor--page .btn{min-height:36px;padding:7px 9px;font-size:12px;border-radius:6px;box-shadow:none;background:#242e38;border-color:#40515c;color:#edf4f6;white-space:normal}
.pamphlet-editor--page .btn.primary{background:#009f78;border-color:#1bb68d;color:#fff}
.pamphlet-editor--page .btn:focus-visible{outline:2px solid #67e5c1;outline-offset:2px}
.pamphlet-editor--page .btn:hover:not(:disabled){filter:brightness(1.15)}
.pamphlet-editor--page .pamphlet-products-heading{gap:8px;margin:0}
.pamphlet-editor--page .pamphlet-products-heading h2{font-size:15px;margin:0 0 4px}
.pamphlet-editor--page .pamphlet-products-heading>div>p:last-child:not(.pamphlet-kicker){font-size:11px}
.pamphlet-editor--page .pamphlet-products-heading .pamphlet-kicker{font-size:10px;margin-bottom:5px}
.pamphlet-editor--page .pamphlet-product-labels{display:none}
.pamphlet-editor--page .pamphlet-product-row{grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) 24px;gap:6px;padding:10px 0}
.pamphlet-editor--page .pamphlet-product-include{grid-column:1;grid-row:1/span 2;flex-direction:column;align-items:center;gap:8px}
.pamphlet-editor--page .pamphlet-product-drag{min-width:28px;width:28px;min-height:32px;flex-basis:32px}
.pamphlet-editor--page .pamphlet-product-description{grid-column:2/span 2;grid-row:1}
.pamphlet-editor--page .pamphlet-product-number{grid-row:2}
.pamphlet-editor--page .pamphlet-product-number:has([data-product-field=quantity]){grid-column:2}
.pamphlet-editor--page .pamphlet-product-number:has([data-product-field=unitPriceCents]){grid-column:3}
.pamphlet-editor--page .pamphlet-product-number>span{display:block;font-size:11px;margin-bottom:3px;color:#a7bac6}
.pamphlet-editor--page .pamphlet-product-amount{grid-column:2/span 2;grid-row:3;padding:0;font-size:12px}
.pamphlet-editor--page .pamphlet-product-remove{grid-column:4;grid-row:1;width:24px;min-height:36px}
.pamphlet-editor--page .pamphlet-products input:not([type=checkbox]),.pamphlet-editor--page .pamphlet-products select{min-height:36px;font-size:13px;padding:6px;background:#242e38}
.pamphlet-editor--page .pamphlet-products .pamphlet-product-details select,.pamphlet-editor--page .pamphlet-products .pamphlet-product-details input{font-size:12px!important;min-height:32px}
.pamphlet-editor--page .pamphlet-product-details{gap:5px}
.pamphlet-editor--page .pamphlet-product-add{margin:4px 0;gap:6px;flex-direction:column;align-items:stretch}
.pamphlet-editor--page .pamphlet-product-summary{margin:0;padding-top:8px;border-color:#40515c}
.pamphlet-editor--page .pamphlet-product-summary>div{font-size:12px;gap:8px}
.pamphlet-editor--page .pamphlet-product-summary strong{font-size:22px}
.pamphlet-editor--page .pamphlet-product-summary p,.pamphlet-editor--page .pamphlet-included-services{font-size:11px}
.pamphlet-editor--page .pamphlet-included-services{padding:8px;margin:0}
.pamphlet-editor--page .pamphlet-controls>.pamphlet-lighting-photos{display:flex;flex-direction:column;gap:8px;padding:0;border:0}
.pamphlet-editor--page .pamphlet-lighting-photo-heading .pamphlet-note{margin:4px 0 0 28px}
.pamphlet-editor--page .pamphlet-lighting-choices{grid-template-columns:minmax(0,1fr)}
.pamphlet-editor--page .pamphlet-lighting-side{background:#202a30;padding:8px}
.pamphlet-editor--page .pamphlet-lighting-thumb img{height:86px}
.pamphlet-editor--page .pamphlet-options{margin:0}
.pamphlet-editor--page .pamphlet-options>summary{font-size:12px}
.pamphlet-editor--page .pamphlet-lease-toggle{font-size:12px;line-height:1.4}
.pamphlet-editor--page .pamphlet-lease-controls{padding:10px;margin:8px 0}
.pamphlet-editor--page .pamphlet-editor-actions{margin:0}
.pamphlet-editor--page .pamphlet-editor-actions [data-publish]{font-size:12px;min-height:40px}
.pamphlet-editor--page .pamphlet-link-section{display:flex;flex-direction:column;align-items:stretch;padding:10px;gap:10px;margin:0}
.pamphlet-editor--page .pamphlet-link-section>.pamphlet-send{border-left:0;border-top:1px solid #40515c;padding:10px 0 0}
.pamphlet-editor--page .pamphlet-link-actions{display:grid;gap:6px}
.pamphlet-editor--page .pamphlet-send p{font-size:11px}
.pamphlet-editor--page .pamphlet-send>strong{font-size:13px}
.pamphlet-editor--page .pamphlet-more__body{flex-direction:column;align-items:stretch}
.pamphlet-workspace-tools{--work-paper:#171d20;--work-ink:#edf4f6;--work-muted:#a7bac6;--work-line:#334048;display:grid;gap:8px}
.pamphlet-workspace-tools:empty{display:none}
.pamphlet-workspace-tools .estimate-toolbar__actions{display:grid;width:100%;gap:6px}
.pamphlet-workspace-tools .estimate-measurements{border-inline:0;border-radius:0}
.pamphlet-workspace-tools .estimate-measurements>summary{padding:10px 0;font-size:12px}
.pamphlet-workspace-tools .estimate-measurements__body{padding:0 0 10px;font-size:12px}
.pamphlet-workspace-tools .quantity-actions{display:grid}
.pamphlet-workspace-tools .estimate-measurements__body>.btn{width:100%;margin-top:6px}
.pamphlet-sidebar-footer{flex:none;padding:10px;border-top:1px solid #334048;background:#171d20}
.pamphlet-sidebar-footer>[data-print-preview]{width:100%;min-height:40px;background:#009f78;border-color:#1bb68d;color:white}
.pamphlet-editor--page .pamphlet-preview{grid-column:2;grid-row:1;align-self:stretch;display:flex;flex-direction:column;min-height:0;border:0;border-radius:0;background:#0a0e10;box-shadow:none}
.pamphlet-editor--page .pamphlet-preview-heading{flex:none;padding:9px 12px;min-height:44px;background:#0a1012;border-bottom-color:#334048}
.pamphlet-editor--page .pamphlet-preview-heading>div{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px}
.pamphlet-editor--page .pamphlet-preview-heading strong{font-size:12px;color:#e7eef1}
.pamphlet-editor--page .pamphlet-preview-heading [data-preview-note]{font-size:10px;color:#9db0bd}
.pamphlet-editor--page .pamphlet-preview iframe{flex:1;height:100%;min-height:0;background:white;color-scheme:light}
@media(min-width:701px) and (max-width:1000px){.pamphlet-editor--page{grid-template-columns:290px minmax(0,1fr)}}
@media(max-width:700px){
 .pamphlet-editor--page{height:auto;display:flex;flex-direction:column;overflow:visible;border-radius:9px}
 .pamphlet-editor--page .pamphlet-preview{order:0;height:66dvh;min-height:380px;border-radius:8px 8px 0 0;overflow:hidden}
 .pamphlet-editor--page .pamphlet-sidebar{order:1;overflow:visible;border:0;border-top:1px solid #334048;border-radius:0 0 8px 8px}
 .pamphlet-sidebar-scroll{overflow:visible;padding:12px;gap:16px}
 .pamphlet-editor--page .pamphlet-products input:not([type=checkbox]),.pamphlet-editor--page .pamphlet-products select,.pamphlet-editor--page .pamphlet-products .pamphlet-product-details select,.pamphlet-editor--page .pamphlet-products .pamphlet-product-details input,.pamphlet-editor--page .pamphlet-controls input:not([type=checkbox]),.pamphlet-editor--page .pamphlet-controls select{font-size:16px!important;min-height:44px}
 .pamphlet-editor--page .btn{min-height:44px}
 .pamphlet-editor--page .pamphlet-product-row{grid-template-columns:34px minmax(0,1fr) minmax(0,1fr) 32px}
 .pamphlet-editor--page .pamphlet-product-remove{width:32px;min-height:44px}
 .pamphlet-editor--page .pamphlet-preview-heading{align-items:stretch}
 .pamphlet-editor--page .pamphlet-preview-heading>div{display:grid;gap:3px}
}
@media print{.pamphlet-sidebar{display:none!important}}
