/* Photobooth engine layout, adapted to the LEMY.love tools surface. */
.pb-workspace{display:grid;grid-template-columns:minmax(270px,360px) minmax(0,1fr);gap:20px;align-items:start;max-width:1280px;font-size:14px;line-height:1.6}
.pb-workspace *{box-sizing:border-box}
.pb-preview-panel,.pb-panel{min-width:0;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-panel);padding:18px}
.pb-preview-panel{position:sticky;top:88px;background:var(--ui-field);text-align:center}
.pb-editor{display:grid;gap:16px;min-width:0}
.pb-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px;text-align:left}
.pb-panel-heading h3{margin:5px 0 0;color:var(--ui-text);font:800 20px/1.4 var(--sans);letter-spacing:-.4px}
.pb-panel-heading p{margin:5px 0 0;color:var(--ui-muted);font-size:14px;line-height:1.6}
.pb-step,.pb-kicker{font:800 12px/1.5 var(--sans);letter-spacing:1.3px;color:var(--ui-accent)}
.pb-kicker{font-size:11px;letter-spacing:1.1px}
.pb-live-badge{margin-top:4px;padding:4px 7px;border:1px solid var(--ui-accent-border);border-radius:20px;background:var(--ui-accent-soft);color:var(--ui-accent);font:700 12px/1.5 var(--sans);white-space:nowrap}
.pb-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:300px;padding:16px 12px;border:1px solid var(--ui-border);border-radius:12px;overflow:hidden;background:radial-gradient(circle at 20% 0%,var(--ui-accent-soft),transparent 60%),var(--ui-soft)}
.pb-stage canvas{display:block;max-width:100%;width:auto;height:auto;max-height:510px;box-shadow:0 12px 25px #0003;touch-action:pan-y;cursor:grab}
.pb-stage>img{display:block;max-width:100%;width:auto;height:auto;max-height:510px;object-fit:contain;opacity:.65}
.pb-stage.is-loading::after{content:"";position:absolute;width:28px;height:28px;border:3px solid var(--ui-accent-soft);border-top-color:var(--ui-accent);border-radius:50%;animation:pb-loading .8s linear infinite}
@keyframes pb-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.pb-stage.is-loading::after{animation:none}}
.pb-stage canvas:active{cursor:grabbing}
.pb-stage canvas.has-stickers{touch-action:none}
.pb-text-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:end}
.pb-text-add{min-height:44px;color:var(--ui-accent);background:var(--ui-accent-soft)}
.pb-text-select{font-size:13px}
.pb-text-edit{display:grid;gap:12px;margin-top:12px;padding:12px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}
.pb-text-edit textarea{display:block;width:100%;min-width:0;resize:vertical;min-height:78px;max-height:200px;padding:10px 12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-panel);color:var(--ui-text);font:500 14px/1.7 var(--sans)}
.pb-text-font-row{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:12px;align-items:end}
.pb-text-color input[type=color]{padding:5px;cursor:pointer;min-height:44px}
.pb-text-sample{margin:0;padding:12px 6px;min-width:0;text-align:center;overflow-wrap:anywhere;color:var(--ui-text);border-bottom:1px solid var(--ui-border);font-size:22px;line-height:1.6}
.pb-text-style-row{display:flex;flex-wrap:wrap;gap:12px 16px}
.pb-text-tool .pb-range-grid{margin-top:0}
.pb-text-tool .pb-text-size input[type=range],.pb-caption-style input[type=range]{display:block;width:100%;min-width:0;height:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:0;background:transparent;accent-color:var(--ui-accent);cursor:pointer}
.pb-text-size output{font-size:13px;color:var(--ui-muted);font-weight:600}
.pb-text-edit .pb-photo-actions{margin-top:0}
.pb-font-status{margin:12px 0 0;color:var(--ui-accent);font:600 14px/1.7 var(--sans);overflow-wrap:anywhere}
.pb-font-status:empty{display:none}
.pb-font-status.is-error{color:var(--ui-danger-text)}
.pb-caption-style{display:grid;gap:10px;margin-top:10px;padding:12px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}
.pb-caption-style .pb-field{font-size:13px}
.pb-adjust-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:none}
#pbAdjustPhotoPanel{display:grid;gap:16px}
.pb-adjust-dialog .pb-text-toolbar{grid-template-columns:minmax(0,1fr)}
.pb-adjust-dialog .pb-text-edit{padding:12px;gap:12px}
.pb-adjust-dialog .pb-text-font-row{grid-template-columns:minmax(0,1fr) 58px;gap:8px}
.pb-adjust-dialog .pb-text-font-row select,.pb-adjust-dialog .pb-text-select select{font-size:14px;padding:9px 8px}
.pb-adjust-dialog .pb-text-style-row{gap:10px}
.pb-adjust-dialog .pb-text-style-row .pb-check{font-size:13px}
.pb-adjust-dialog .pb-text-sample{font-size:22px;padding:7px 2px}
.pb-adjust-dialog .pb-text-tool .pb-photo-actions{margin-top:0}
.pb-workspace textarea:focus-visible,.pb-adjust-dialog :is(textarea,select):focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
@media(max-width:600px){.pb-text-toolbar{grid-template-columns:minmax(0,1fr)}.pb-text-edit{padding:12px}.pb-text-edit textarea{font-size:16px}.pb-text-font-row{gap:9px}.pb-caption-style{padding:12px}.pb-adjust-dialog .pb-text-font-row select,.pb-adjust-dialog .pb-text-select select{font-size:16px}}
.pb-preview-summary{margin:12px 0 10px;color:var(--ui-muted);font-size:14px;line-height:1.6}
.pb-export-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}
body.tool-page #photoboothToolHost .pb-export-actions .button{flex:0 1 auto;justify-content:center;gap:6px;min-height:36px;padding:7px 10px;border-radius:8px;font-size:12px;font-weight:600;line-height:20px;white-space:nowrap;box-shadow:none;margin:0}
.pb-export-actions .button svg{width:15px;height:15px;stroke-width:1.6}
@media(max-width:360px){.pb-export-actions{gap:6px}body.tool-page #photoboothToolHost .pb-export-actions .button{gap:5px;padding-inline:6px}}
@media(pointer:coarse){body.tool-page #photoboothToolHost .pb-export-actions .button{min-height:44px}}
.pb-print-hint{padding:10px 8px;border:1px solid var(--ui-accent-border);border-radius:9px;background:var(--ui-accent-soft);color:var(--ui-accent)}
.pb-workspace svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pb-hint{margin:9px 0 0;color:var(--ui-muted);font:500 13px/1.6 var(--sans)}
.pb-privacy{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--ui-border);color:var(--ui-faint);font:500 13px/1.6 var(--sans)}
.pb-text-button{min-height:44px;padding:8px 3px;border:0;background:transparent;color:var(--ui-accent);font:700 14px/1.5 var(--sans);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.pb-source-actions,.pb-camera-actions{display:flex;flex-wrap:wrap;gap:10px}
.pb-source-actions .button,.pb-camera-actions .button{justify-content:center;gap:9px;font-size:14px!important;min-height:44px!important}
.pb-source-actions .button{flex:1}
.pb-source-actions .pb-phone-capture,.pb-phone-capture-hint{display:none}
.pb-status{margin:12px 0 0;color:var(--ui-muted);font:600 14px/1.7 var(--sans);overflow-wrap:anywhere}
.pb-status:empty{display:none}
.pb-status.is-error{color:var(--ui-danger-text)}
.pb-photo-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:14px}
.pb-photo-slot{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;aspect-ratio:1;padding:4px;border:1px dashed var(--ui-border);border-radius:9px;background:var(--ui-field);color:var(--ui-faint);cursor:pointer;overflow:hidden}
.pb-photo-slot.is-selected{border:2px solid var(--ui-accent);background:var(--ui-accent-soft)}
.pb-photo-slot img{width:100%;height:100%;object-fit:cover;border-radius:5px}
.pb-photo-slot>span:last-child{position:absolute;bottom:4px;right:4px;width:22px;height:22px;border-radius:50%;background:var(--ui-panel);color:var(--ui-text);font:800 12px/22px var(--sans)}
.pb-slot-plus{font-size:27px;font-weight:400;line-height:1}
.pb-photo-edit,.pb-sticker-edit{margin-top:12px;padding:12px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}
.pb-edit-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:14px}
.pb-small-actions{display:flex;gap:10px}
.pb-small-actions button{min-height:40px;border:0;background:transparent;color:var(--ui-accent);font:700 13px/1.5 var(--sans);cursor:pointer;padding:4px}
.pb-range-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin-top:12px}
.pb-range-grid label{min-width:0;font-size:13px;font-weight:700;color:var(--ui-muted)}
.pb-range-grid input{display:block;width:100%;margin:4px 0 0;accent-color:var(--ui-accent);cursor:pointer;min-height:40px}
.pb-photo-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.pb-choice{min-height:40px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-field);color:var(--ui-muted);font:700 13px/1.5 var(--sans);cursor:pointer;padding:8px 10px;min-width:0;overflow-wrap:anywhere}
.pb-choice:hover{background:var(--ui-soft);border-color:var(--ui-accent-border);color:var(--ui-text)}
.pb-choice[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}
.pb-fieldset{min-width:0;margin:16px 0 0;padding:0;border:0}
.pb-fieldset:first-of-type{margin-top:0}
.pb-fieldset legend{padding:0;margin-bottom:10px;font:800 14px/1.5 var(--sans);color:var(--ui-text)}
.pb-layouts,.pb-filters,.pb-frames{display:flex;flex-wrap:nowrap;gap:6px;min-width:0;overflow-x:auto;padding:6px;scroll-padding-inline:6px;scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent}
.pb-layout-choice{display:flex;flex:1 0 94px;flex-direction:column;align-items:center;gap:5px;padding:7px 5px;text-align:center}
.pb-layout-choice canvas{display:block;flex:none;width:auto;height:48px;max-width:100%;object-fit:contain}
.pb-layout-choice strong{font-size:12px;line-height:16px;min-height:32px;display:flex;align-items:center;justify-content:center;font-weight:600}
.pb-layout-choice>span{display:none}
.pb-template-badge{display:inline-block;margin-left:7px;padding:3px 8px;border-radius:20px;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:12px;vertical-align:middle}
.pb-template-search{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;margin-bottom:12px}
.pb-template-search .pb-field{font-size:13px;gap:6px}
.pb-template-search .pb-field input{font-size:14px}
.pb-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:370px;overflow-y:auto;overscroll-behavior:contain;padding:3px 6px 5px 3px;scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent}
.pb-template-choice{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 6px;text-align:center}
.pb-template-thumb{display:flex;align-items:center;justify-content:center;flex:none;width:100%;height:102px;padding:8px;border-radius:6px;background:#b9b5b0}
.pb-template-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.pb-template-choice strong{display:flex;align-items:center;justify-content:center;min-height:35px;font-size:12px;line-height:1.45;font-weight:700}
.pb-template-choice>span:last-child{font-size:12px;color:var(--ui-faint)}
.pb-template-state{margin:12px 0 0;color:var(--ui-accent);font:600 14px/1.7 var(--sans);overflow-wrap:anywhere}
.pb-template-state.is-error{color:var(--ui-danger-text)}
.pb-autofill{margin-top:12px}
.pb-template-note{margin:0 0 15px}
.pb-basic-layouts{margin-top:16px;padding-top:10px;border-top:1px solid var(--ui-border)}
.pb-basic-layouts>summary{min-height:40px;padding:8px 0;color:var(--ui-text);font:800 14px/1.5 var(--sans);cursor:pointer}
.pb-sr-only{position:absolute!important;width:1px;height:1px;margin:-1px!important;padding:0!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pb-filter-choice{display:flex;flex:1 0 auto;align-items:center;justify-content:center;gap:6px;padding:7px 8px;text-align:left;white-space:nowrap;font-size:12px;font-weight:600}
.pb-filter-sample{display:block;flex:none;width:20px;height:24px;border-radius:4px;background:linear-gradient(160deg,#d7ba93 0 26%,#a57165 27% 55%,#507d65 56% 78%,#e0c5a6 79%)}
@media(pointer:coarse){.pb-filter-choice,.pb-frame-choice{min-height:44px}}
.pb-frames{gap:4px}
.pb-frame-choice{display:flex;flex:1 0 auto;align-items:center;justify-content:center;gap:5px;padding:6px 4px;font-size:12px;font-weight:600;white-space:nowrap}
.pb-frame-choice>span{display:block;width:12px;height:12px;flex:none;border-radius:50%;border:1px solid #8886;box-shadow:0 0 0 2px var(--ui-panel)}
.pb-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:800;color:var(--ui-text);min-width:0}
.pb-field :is(input,select),.pb-camera-settings select{width:100%;min-height:44px;min-width:0;padding:9px 10px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-field);color:var(--ui-text);font:600 15px/1.5 var(--sans)}
.pb-field input::placeholder{color:var(--ui-faint);font-weight:500}
.pb-check{display:flex;align-items:center;min-height:40px;gap:8px;color:var(--ui-muted);font-size:14px;font-weight:600;cursor:pointer}
.pb-check input{width:18px;height:18px;accent-color:var(--ui-accent);flex:none}
.pb-date-check{margin:10px 0 14px;flex-wrap:wrap;gap:7px}
.pb-date-check span{font-size:13px;color:var(--ui-faint)}
.pb-sticker-tray{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}
.pb-sticker-add{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:6px 2px;font-size:12px;line-height:1.4;text-align:center}
.pb-sticker-add canvas{width:34px;height:34px;max-width:100%}
.pb-sticker-add span{min-height:26px}
.pb-camera-panel{margin-top:12px;padding:12px;border:1px solid var(--ui-accent-border);border-radius:11px;background:var(--ui-field)}
.pb-camera-stage{position:relative;aspect-ratio:4/3;border-radius:8px;background:#080a0f;overflow:hidden}
.pb-camera-stage video{display:block;width:100%;height:100%;object-fit:cover}
.pb-camera-stage video.is-mirrored{transform:scaleX(-1)}
.pb-countdown{position:absolute;inset:0;display:grid;place-items:center;font:800 80px/1 var(--sans);color:#fff;text-shadow:0 2px 15px #0008;pointer-events:none}
.pb-camera-settings{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0}
.pb-camera-settings>label:first-child{display:flex;gap:8px;align-items:center;color:var(--ui-muted);font:600 14px/1.5 var(--sans)}
.pb-camera-settings select{width:100px;min-height:44px;padding:6px 8px}
.pb-camera-actions .button{flex:1;min-height:44px!important;font-size:14px!important;padding:8px!important}
.pb-workspace [hidden]{display:none!important}
.pb-workspace :is(button,input,select,summary):focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
.pb-workspace button:disabled{opacity:.45;cursor:not-allowed}
.pb-reset-dialog{width:min(440px,calc(100vw - 32px));padding:20px;border:1px solid var(--ui-border);border-radius:13px;background:var(--ui-panel);color:var(--ui-text);font-family:var(--sans)}
.pb-reset-dialog::backdrop{background:#0009}
.pb-reset-dialog h3{margin:0;font-size:19px;font-weight:800}
.pb-reset-dialog p{margin:12px 0 20px;color:var(--ui-muted);font-size:15px;line-height:1.8}
.pb-reset-dialog>div{display:flex;justify-content:flex-end;gap:10px}
.pb-reset-dialog>div .button{min-height:44px!important;font-size:14px!important}
@media(max-width:1200px){.pb-workspace{grid-template-columns:minmax(260px,310px) minmax(0,1fr);gap:18px}.pb-panel,.pb-preview-panel{padding:16px}.pb-sticker-tray{grid-template-columns:repeat(4,minmax(0,1fr))}.pb-sticker-add{font-size:12px}.pb-stage{padding:14px 10px}}
@media(max-width:980px){.pb-workspace{grid-template-columns:minmax(0,1fr);max-width:740px}.pb-editor{display:contents}.pb-editor>.pb-panel:first-child{grid-row:1}.pb-preview-panel{position:static;grid-row:2}.pb-editor>.pb-panel:nth-child(2){grid-row:3}.pb-editor>.pb-panel:nth-child(3){grid-row:4}.pb-stage{min-height:240px}.pb-stage canvas{max-height:410px}.pb-download{max-width:400px;margin:0 auto}.pb-sticker-tray{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:600px){.pb-workspace{gap:16px}.pb-editor{gap:16px}.pb-panel,.pb-preview-panel{padding:14px 12px;border-radius:11px}.pb-panel-heading h3{font-size:19px}.pb-kicker{font-size:11px}.pb-stage{padding:12px 8px}.pb-stage canvas{max-height:350px}.pb-source-actions .button{font-size:14px!important;padding:9px!important}.pb-photo-slots{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}.pb-photo-slot{aspect-ratio:1.25}.pb-sticker-tray{grid-template-columns:repeat(4,minmax(0,1fr))}.pb-sticker-add canvas{width:38px;height:38px}.pb-sticker-add span{min-height:14px}.pb-field :is(input,select),.pb-camera-settings select{font-size:16px}.pb-photo-edit,.pb-sticker-edit{padding:12px}.pb-edit-heading{flex-wrap:wrap}.pb-camera-actions{gap:7px}.pb-camera-actions .button{flex:1 1 40%}.pb-camera-settings{gap:12px}.pb-live-badge{font-size:11px}.pb-range-grid{gap:12px}.pb-photo-actions .pb-choice{font-size:13px}.pb-reset-dialog>div .button{font-size:14px!important}}
@media(max-width:767px){.pb-source-actions .pb-phone-capture{display:flex;flex:1 1 100%;border-color:var(--ui-accent-border);color:var(--ui-accent)}.pb-phone-capture-hint{display:block}}
@media(max-width:600px){.pb-template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:340px}.pb-template-thumb{height:90px;padding:6px}.pb-template-search{grid-template-columns:minmax(0,1fr) 95px;gap:9px}.pb-template-search .pb-field :is(input,select){font-size:16px;padding:9px 8px}.pb-stage>img{max-height:350px}}
@media(max-width:360px){.pb-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pb-template-search{grid-template-columns:minmax(0,1fr)}.pb-template-thumb{height:100px}}

/* The enlarged editor is a native modal so focus stays with the photo tools. */
.pb-expand{display:flex;width:100%;min-height:44px!important;justify-content:center;gap:8px;margin:10px 0 0;font-size:14px!important;white-space:normal}
.pb-adjust-dialog{display:none;box-sizing:border-box;width:min(1200px,calc(100vw - 24px));height:min(900px,calc(100vh - 24px));height:min(900px,calc(100dvh - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);min-width:0;min-height:0;margin:auto;padding:0;border:1px solid var(--ui-border);border-radius:16px;overflow:hidden;background:var(--ui-panel);color:var(--ui-text);box-shadow:0 24px 90px #0005;font:500 15px/1.6 var(--sans)}
.pb-adjust-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.pb-adjust-dialog::backdrop{background:#060914b8;backdrop-filter:blur(3px)}
.pb-adjust-dialog *{box-sizing:border-box}
.pb-adjust-dialog [hidden]{display:none!important}
.pb-adjust-dialog svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pb-adjust-dialog :is(button,input,canvas):focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
.pb-adjust-dialog button:disabled{opacity:.45;cursor:not-allowed}
.pb-adjust-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid var(--ui-border);background:var(--ui-panel)}
.pb-adjust-header>div{min-width:0}
.pb-adjust-header h3{margin:3px 0 0;color:var(--ui-text);font:800 21px/1.4 var(--sans);letter-spacing:-.4px}
.pb-adjust-header p{margin:6px 0 0;color:var(--ui-muted);font:500 14px/1.65 var(--sans);overflow-wrap:anywhere}
.pb-adjust-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field);color:var(--ui-muted);cursor:pointer}
.pb-adjust-close:hover{background:var(--ui-accent-soft);border-color:var(--ui-accent-border);color:var(--ui-accent)}
.pb-adjust-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-width:0;min-height:0;overflow:hidden}
.pb-adjust-stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-width:0;min-height:0;padding:16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent;background:radial-gradient(circle at 15% 5%,var(--ui-accent-soft),transparent 65%),var(--ui-soft)}
.pb-adjust-stage:focus-visible{outline:2px solid var(--ui-focus);outline-offset:-4px}
.pb-adjust-stage canvas{display:block;max-width:none;max-height:none;flex:none;align-self:start;justify-self:start;margin:auto;box-shadow:0 12px 36px #0004;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.pb-adjust-stage canvas:active,.pb-adjust-stage canvas.is-dragging{cursor:grabbing}
.pb-adjust-controls{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;padding:14px;overflow-y:auto;overscroll-behavior:contain;border-left:1px solid var(--ui-border);background:var(--ui-panel);scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent}
.pb-adjust-selected{margin:0;color:var(--ui-text);font:800 15px/1.6 var(--sans);overflow-wrap:anywhere}
.pb-adjust-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;flex:none}
.pb-adjust-slots .pb-photo-slot{aspect-ratio:1;min-height:0}
.pb-adjust-photo-controls{padding:10px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}
.pb-adjust-dialog .pb-field{gap:7px;font-size:14px}
.pb-adjust-dialog input[type=range]{display:block;width:100%;min-width:0;min-height:40px;height:40px;margin:0;padding:0;border:0;border-radius:0;background:transparent;accent-color:var(--ui-accent);cursor:pointer}
.pb-adjust-dialog input[type=range]:disabled{opacity:.45;cursor:not-allowed}
.pb-adjust-dialog output{color:var(--ui-muted);font:600 13px/1.4 var(--sans)}
.pb-adjust-dialog .pb-range-grid{gap:10px;margin-top:12px}
.pb-adjust-dialog .pb-range-grid label{font:700 12px/1.5 var(--sans)}
.pb-adjust-dialog .pb-range-grid input{margin-top:5px}
.pb-adjust-dialog .pb-photo-actions{gap:6px;margin-top:12px}
.pb-adjust-dialog .pb-photo-actions .pb-choice{flex:1;padding:8px 7px;font-size:12px;white-space:normal}
.pb-adjust-controls>.pb-hint{margin:0}
.pb-adjust-controls>.button{flex:none;width:100%;min-height:44px!important;justify-content:center;font-size:14px!important}
@media(max-width:700px){
  .pb-adjust-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}
  .pb-adjust-header{gap:12px;padding:13px 14px 12px}
  .pb-adjust-header h3{font-size:18px}
  .pb-adjust-header p{font-size:13px;line-height:1.6}
  .pb-adjust-header .pb-kicker{font-size:11px}
  .pb-adjust-close{width:44px;height:44px;border-radius:8px}
  .pb-adjust-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,250px)}
  .pb-adjust-controls{gap:12px;padding:12px 14px;border-left:0;border-top:1px solid var(--ui-border)}
  .pb-adjust-slots{gap:8px}
  .pb-adjust-slots .pb-photo-slot{aspect-ratio:1.2}
  .pb-adjust-photo-controls{padding:12px}
  .pb-adjust-dialog .pb-range-grid{gap:12px;margin-top:9px}
}
@media(max-width:700px) and (max-height:540px){
  .pb-adjust-header{padding:9px 12px}
  .pb-adjust-header .pb-kicker{display:none}
  .pb-adjust-header p{margin-top:3px}
  .pb-adjust-body{grid-template-rows:minmax(0,1fr) minmax(0,40%)}
}
@media(prefers-reduced-motion:reduce){
  .pb-adjust-dialog,.pb-adjust-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .pb-adjust-dialog::backdrop{backdrop-filter:none}
}

/* Native LEMY.love palette and controls; source layout/slot coordinates are preserved. */
body.photobooth-page{--sans:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;--ui-border:rgba(255,182,210,.19);--ui-panel:#17121b;--ui-field:#100e16;--ui-soft:#211622;--ui-text:#f5e9f0;--ui-muted:#c9b4c1;--ui-faint:#ad96a5;--ui-accent:#ff98c1;--ui-accent-border:rgba(255,152,193,.4);--ui-accent-soft:rgba(225,29,116,.13);--ui-focus:#ffb0d0;--ui-danger-text:#ffb3ba;color-scheme:dark}
.photobooth-page .pb-workspace{max-width:none;width:100%;margin:0 auto 38px;grid-template-columns:minmax(270px,345px) minmax(0,1fr);gap:24px}
.photobooth-page .pb-panel,.photobooth-page .pb-preview-panel{padding:22px;border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.025),transparent 60%),var(--ui-panel);box-shadow:0 14px 40px #0002}
.photobooth-page .pb-preview-panel{top:24px;background:linear-gradient(160deg,#291523,#15121c 65%)}
.photobooth-page .pb-panel-heading h3{font-size:20px;letter-spacing:-.45px}
.photobooth-page .pb-preview-panel h3{font-family:"Cormorant Garamond",Georgia,serif;font-size:29px;font-weight:600;line-height:1.2}
.photobooth-page .pb-step{font-size:10px;letter-spacing:1.8px;color:#ec92b5}
.photobooth-page .pb-stage{border-radius:14px;min-height:300px;background:radial-gradient(ellipse at 30% 0%,#3a2134,transparent 80%),#0e0c13}
.photobooth-page .pb-choice{border-radius:10px;min-height:44px;transition:background .18s,border-color .18s,color .18s}
.photobooth-page .pb-template-thumb{background:#d8d0cb;border-radius:7px}
.photobooth-page .pb-template-grid{max-height:410px}
.photobooth-page .pb-photo-slot{min-height:44px}
.photobooth-page .pb-small-actions button{min-height:44px}
.photobooth-page .pb-field :is(input,select),.photobooth-page .pb-text-edit textarea{border-radius:10px;font-weight:500}
.photobooth-page .pb-field input::placeholder{color:#ac91a2}
.photobooth-page .button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 16px;border:1px solid var(--ui-accent-border);border-radius:999px;font:700 13px/1.5 var(--sans);text-decoration:none;cursor:pointer;white-space:normal;transition:background .18s,box-shadow .18s}
.photobooth-page .button-rose{background:linear-gradient(135deg,#e11d74,#b51c69);border-color:#ed609d;color:#fff;box-shadow:0 7px 20px #e11d7420}
.photobooth-page .button-rose:hover{background:linear-gradient(135deg,#ed3988,#ce277a);box-shadow:0 9px 24px #e11d7433}
.photobooth-page .button-ghost{background:rgba(225,29,116,.065);color:#f4bed5}
.photobooth-page .button-ghost:hover{background:rgba(225,29,116,.17)}
body.photobooth-page #photoboothToolHost .pb-export-actions .button{min-height:44px;padding:11px 17px;border-radius:999px;font-size:13px;white-space:normal}
.photobooth-page .pb-expand{border-radius:999px}
.photobooth-page .pb-reset-dialog,.photobooth-page .pb-adjust-dialog{border-radius:20px}
.photobooth-page .pb-check{font-size:13px;min-height:44px}
.photobooth-page .pb-date-check{gap:8px}
.photobooth-page .pb-privacy{font-size:12px;line-height:1.8}
.photobooth-page .pb-template-choice strong{font-weight:600}
.photobooth-page .pb-source-actions{gap:9px}
.photobooth-page .pb-source-actions .pb-phone-capture{display:none}
@media(max-width:767px){.photobooth-page .pb-source-actions .pb-phone-capture{display:inline-flex}}
@media(max-width:1080px){.photobooth-page .pb-workspace{grid-template-columns:minmax(250px,300px) minmax(0,1fr);gap:18px}.photobooth-page .pb-panel,.photobooth-page .pb-preview-panel{padding:17px}}
@media(max-width:980px){.photobooth-page .pb-workspace{grid-template-columns:minmax(0,1fr);max-width:740px}.photobooth-page .pb-preview-panel{position:static}.photobooth-page .pb-template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.photobooth-page .pb-workspace{gap:16px}.photobooth-page .pb-panel,.photobooth-page .pb-preview-panel{padding:17px 13px;border-radius:18px}.photobooth-page .pb-template-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:365px}.photobooth-page .pb-panel-heading h3{font-size:19px}.photobooth-page .pb-preview-panel h3{font-size:27px}.photobooth-page .pb-source-actions .button{flex:1 1 40%}.photobooth-page .pb-source-actions .pb-phone-capture{flex:1 1 100%}.photobooth-page .pb-template-thumb{height:90px}.photobooth-page .pb-field :is(input,select),.photobooth-page .pb-text-edit textarea{font-size:16px}}
@media(max-width:360px){.photobooth-page .pb-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.photobooth-page .pb-choice,.photobooth-page .button{transition:none}}
