.tool-page:has(#webcam-tool) .tool-heading .privacy-badge{white-space:normal;max-width:100%}.tool-page:has(#webcam-tool) .privacy-badge svg{flex-shrink:0}#webcam-tool [hidden]{display:none!important}#webcam-tool .webcam-prompter-overlay{z-index:1;color:#fff;pointer-events:none;border-radius:.5rem;flex-direction:column;min-width:0;max-height:58%;padding:.25rem .5rem;display:flex;position:absolute}#webcam-tool #webcam-prompter-scroll{overscroll-behavior:contain;pointer-events:auto;scrollbar-width:thin;min-height:0;overflow:auto}#webcam-tool #webcam-prompter-text{white-space:pre-wrap;overflow-wrap:anywhere;padding-block:.2em 1em}#webcam-tool .webcam-creative-panel{margin-block:1rem}#webcam-tool .webcam-effect-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;display:grid}#webcam-tool .webcam-effect-options button{flex-direction:column;gap:.25rem;min-width:0;display:flex}#webcam-tool .webcam-effect-swatch{background:linear-gradient(110deg,#d94a25 0 32%,#c1e1b5 33% 66%,#3264c0 67%);border-radius:.3rem;width:100%;height:30px;display:block}#webcam-tool .webcam-creative-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:.6rem;display:grid}#webcam-tool #webcam-photo-result{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}#webcam-tool .webcam-frame-drag{z-index:1;touch-action:none;cursor:move;position:absolute;bottom:.5rem;left:.5rem}#webcam-tool [aria-pressed=true]{background:var(--green-soft);border-width:2px;font-weight:800}#webcam-tool #webcam-trim fieldset{border:1px solid var(--line);border-radius:.6rem;min-width:0}#webcam-tool #webcam-trim progress{width:100%}#webcam-tool input[type=range]{width:100%;min-height:44px}#webcam-tool #webcam-trim input[type=number]{min-height:48px}#webcam-tool #webcam-studio:focus-visible{outline:3px solid var(--green);outline-offset:4px}#webcam-tool #webcam-studio.is-expanded{z-index:1000;background:var(--cream,#fffcf5);padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));position:fixed;inset:0;overflow:auto}#webcam-tool #webcam-studio.is-expanded>.actions:first-child{z-index:5;background:var(--cream,#fffcf5);position:sticky;top:0}#webcam-tool #webcam-studio.is-expanded .webcam-controls{z-index:4;background:var(--cream,#fffcf5);padding-block:.5rem;position:sticky;bottom:0}@media (pointer:coarse),(width<=600px){#webcam-tool .webcam-shortcuts{display:none}}#webcam-tool .webcam-countdown{z-index:2;color:#fffdf4;text-align:center;background:#1b1916b3;flex-direction:column;justify-content:center;align-items:center;padding:.5rem;display:flex;position:absolute;inset:0}#webcam-tool #webcam-countdown-number{font-variant-numeric:tabular-nums;font-size:clamp(4rem,12vw,8rem);font-weight:700;line-height:1.2}#webcam-tool .webcam-flip{top:max(.5rem, env(safe-area-inset-top,0px));right:max(.5rem, env(safe-area-inset-right,0px));z-index:1;align-items:center;gap:.3rem;font-size:.8rem;display:flex;position:absolute}#webcam-tool .webcam-error{overflow-wrap:anywhere;background:#fff1e9;border:1px solid #b73535;border-left-width:4px;border-radius:.75rem;margin-top:.8rem;padding:1rem}#webcam-tool .webcam-error h3{margin:0;font-size:1.1rem}#webcam-tool .webcam-error p{margin-block:.6rem}#webcam-tool #webcam-meter{margin-top:.75rem}#webcam-tool #webcam-meter-bar{accent-color:#315d4d;width:100%;height:1.2rem;display:block}#webcam-tool .webcam-layout{grid-template-columns:minmax(0,7fr) minmax(240px,3fr);align-items:start;gap:1.5rem;display:grid}#webcam-tool .webcam-studio,#webcam-tool .webcam-settings{min-width:0}#webcam-tool .webcam-stage{aspect-ratio:16/9;color:#fffdf4;background:#221f1b;border-radius:1rem;place-items:center;display:grid;position:relative;overflow:hidden}#webcam-tool .webcam-stage video{object-fit:contain;border-radius:inherit;background:#221f1b;width:100%;height:100%;position:absolute;inset:0}#webcam-tool .webcam-empty{text-align:center;justify-items:center;gap:.65rem;padding:1.25rem;display:grid}#webcam-tool .webcam-empty p{margin:0}#webcam-tool #webcam-empty-title{color:#fffdf4;font-size:clamp(1.1rem,2vw,1.6rem);font-weight:700}#webcam-tool #webcam-empty-help{color:#dfdbd5;font-size:.9rem}#webcam-tool .webcam-processing{color:#fffdf4;text-align:center;z-index:1;background:#221f1be8;padding:1rem}#webcam-tool .webcam-status-strip{flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.8rem;display:flex}#webcam-tool #webcam-status{overflow-wrap:anywhere;flex:1;min-width:120px;margin:0;font-weight:600}#webcam-tool #webcam-clock{font-variant-numeric:tabular-nums;font-size:clamp(1.4rem,3vw,2rem);font-weight:700}#webcam-tool #webcam-rec{color:#ae302e;font-weight:700}#webcam-tool .webcam-controls{padding-bottom:env(safe-area-inset-bottom,0px);flex-wrap:wrap;gap:.65rem;margin-block:.8rem}#webcam-tool .btn,#webcam-tool select,#webcam-tool summary{min-height:48px}#webcam-tool button{min-width:48px;max-width:100%}#webcam-tool select{height:48px;font:inherit}#webcam-tool .webcam-record,#webcam-tool .webcam-stop{color:#fff;background:#b73535;border-color:#b73535}#webcam-tool .webcam-record:hover:not(:disabled),#webcam-tool .webcam-stop:hover:not(:disabled){background:#912424}#webcam-tool :is(button,select,input,summary):focus-visible{outline-offset:3px;outline:3px solid #b96b35}#webcam-tool button:disabled,#webcam-tool input:disabled{opacity:.55;cursor:not-allowed}#webcam-tool .webcam-facts{color:var(--muted);flex-wrap:wrap;gap:.5rem 1rem;font-size:.85rem;display:flex}#webcam-tool .webcam-settings{background:#f5f6ed;border:1px solid #dfd8cf;border-radius:1rem;padding:1rem}#webcam-tool .webcam-settings h2{margin-top:0;font-size:1.15rem}#webcam-tool .webcam-switch{cursor:pointer;justify-content:space-between;align-items:center;gap:.75rem;min-height:52px;margin-block:.8rem;display:flex}#webcam-tool .webcam-switch small{color:var(--muted);font-size:.8rem;font-weight:400;display:block}#webcam-tool .webcam-switch input{appearance:none;cursor:pointer;background:#cec9c2;border:1px solid #8c8378;border-radius:99px;flex:0 0 48px;width:48px;max-width:none;height:28px;position:relative}#webcam-tool .webcam-switch input:before{content:"";background:#fff;border-radius:50%;width:20px;height:20px;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0003}#webcam-tool .webcam-switch input:checked{background:var(--primary)}#webcam-tool .webcam-switch input:checked:before{left:23px}#webcam-tool .webcam-switch input:disabled{cursor:not-allowed}#webcam-tool details{border-top:1px solid #dfd8cf;margin-top:1rem;padding-top:.6rem}#webcam-tool summary{cursor:pointer;padding-block:.6rem;font-weight:700;display:list-item}#webcam-tool .webcam-warning{color:#7b3e0e;background:#fff0d7;border-radius:.6rem;padding:.75rem}#webcam-tool .webcam-result-info{overflow-wrap:anywhere;background:#eee9e2;border-radius:.6rem;padding:.75rem}#webcam-tool .webcam-memory-progress{overflow-wrap:anywhere;margin-block:.75rem;font-size:.85rem}#webcam-tool #webcam-memory-bar{width:100%;height:.85rem;accent-color:var(--green,var(--green));display:block}#webcam-tool #webcam-settings-title{scroll-margin-top:6rem}#webcam-tool #webcam-audio-state{color:var(--green,var(--ink));font-weight:700}#webcam-tool .webcam-record,#webcam-tool #webcam-download{min-height:52px}#webcam-tool .local-hint{overflow-wrap:anywhere;font-size:.8rem}@media (width<=800px){#webcam-tool .webcam-layout{grid-template-columns:minmax(0,1fr)}}@media (width<=430px){#webcam-tool .webcam-stage{aspect-ratio:4/3}#webcam-tool .webcam-empty{gap:.4rem;padding:.75rem}#webcam-tool .webcam-empty svg{width:38px;height:30px}#webcam-tool .webcam-controls .btn{flex:auto}}@media (prefers-reduced-motion:reduce){#webcam-tool *{transition:none!important;animation:none!important}}.webcam-workbench .webcam-scenes-list{gap:.75rem;padding:0;list-style:none;display:grid}.webcam-workbench .webcam-scenes-list li{border:1px solid var(--border);border-radius:12px;min-width:0;padding:.75rem}.webcam-workbench .webcam-scenes-list img{object-fit:contain;width:100px;height:auto;max-height:100px}.webcam-workbench #webcam-scenes-player{background:#111;width:100%;max-height:350px}
