:root{--bg:#f8f7f3;--paper:#fff;--line:#e9e5dd;--ink:#26231e;--muted:#686259;--terracotta:#ac482f;--deep:#8b3321;--soft:#f9eee8;--outline:#c05b3c;--shadow:0 2px 5px #26190b05;color-scheme:light;font:15px/1.5 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0}
button,input,select{font:inherit;color:inherit}
button,select,input[type=checkbox],input[type=range]{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45}
button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--outline);outline-offset:3px}
button{border:0}
h1,h2,p{margin:0}
svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.defs{position:absolute;width:0;height:0;overflow:hidden}
.container{width:min(1296px,calc(100% - 96px));margin:0 auto}
.topbar{height:72px;background:#fcfbf8;border-bottom:1px solid var(--line)}
.topbar-inner,.top-actions,.brand{display:flex;align-items:center}
.topbar-inner{justify-content:space-between;height:100%}
.brand{gap:11px;font:700 27px/1 Georgia,serif;letter-spacing:-.045em}
.brand-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:8px;background:var(--terracotta);color:white}
.brand-icon svg{width:22px;height:22px;stroke-width:1.5}
.brand-rule{height:23px;width:1px;background:#e0dbd2;margin:0 3px 0 7px}
.brand-caption{font:500 12px/1.3 Inter,system-ui,sans-serif;letter-spacing:0;color:var(--muted)}
.top-actions{gap:12px}
.language{display:flex;align-items:center;gap:7px;position:relative;border:1px solid var(--line);border-radius:9px;background:var(--paper);min-height:40px;padding:0 10px;color:#4c463e}
.language select{appearance:none;background:none;border:0;padding:0 18px 0 0;font-size:13px;font-weight:600;z-index:1}
.language svg{width:16px;height:16px}
.language-down{position:absolute;right:9px;pointer-events:none}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:8px;padding:0 14px;font-size:13px;font-weight:650;white-space:nowrap;transition:background .15s,border-color .15s}
.button svg{width:17px;height:17px}
.primary{background:var(--terracotta);color:white;border:1px solid var(--terracotta);box-shadow:0 2px 3px #9b3d2022}
.primary:hover:enabled{background:var(--deep);border-color:var(--deep)}
.secondary,.guide-button{background:var(--paper);border:1px solid #e4dfd5;color:#3e3830}
.secondary:hover:enabled,.guide-button:hover:enabled{background:#f9f5ef;border-color:#d9d1c5}
.text-button{background:none;color:var(--deep)}
.text-button:hover:enabled{background:var(--soft)}
.intro{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:41px 0 29px}
.intro h1{font:500 clamp(42px,5vw,68px)/.99 Georgia,"Times New Roman",serif;letter-spacing:-.057em}
.intro p{color:var(--muted);margin-top:13px;font-size:15px}
.guide-button{margin-bottom:2px}
.layout{display:grid;grid-template-columns:250px minmax(0,1fr);align-items:start;gap:23px}
.sidebar,.workspace{display:grid;gap:16px;min-width:0}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}
.workflow,.settings{padding:16px 13px}
.workflow h2,.settings h2{font-size:14px;font-weight:700;margin:0 5px 12px}
.workflow ol{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.step{background:transparent;border:1px solid transparent;border-radius:10px;width:100%;display:flex;gap:10px;align-items:center;text-align:left;padding:10px 8px;min-width:0}
.step:hover{background:#f8f6f2}
.step.active{background:#fbefe9;border-color:#f2dcd1}
.step-icon{height:34px;width:34px;display:grid;place-items:center;border-radius:8px;background:#f2f0eb;color:#5b5448;flex:none}
.active .step-icon{background:#f3ded3;color:#9f3e27}
.step-copy{display:grid;gap:2px;min-width:0;flex:1}
.step-copy strong,.setting-row strong{font-size:13px;font-weight:660}
.step-copy small,.setting-row small{font-size:11px;color:var(--muted);line-height:1.35}
.step-arrow{width:13px;height:13px;color:#9e9688}
.step.active .step-arrow{color:var(--terracotta)}
.settings{padding-bottom:14px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 5px 12px}
.setting-row:has(strong) span{display:grid;gap:2px}
.setting-language{border-top:1px solid #f0ede7;padding:11px 5px 1px;flex-wrap:wrap;font-size:12px}
.setting-language select{border:1px solid var(--line);border-radius:6px;background:#fbfaf8;font-size:11px;padding:5px 3px;max-width:100%}
.toggle{appearance:none;width:34px;height:20px;border:1px solid #c3b9ab;background:#d9d3ca;border-radius:100px;margin:0;flex:none;position:relative}
.toggle::after{content:"";position:absolute;background:white;border-radius:50%;width:14px;height:14px;left:2px;top:2px;transition:transform .15s}
.toggle:checked{background:var(--terracotta);border-color:var(--terracotta)}
.toggle:checked::after{transform:translateX(14px)}
.tip{display:flex;align-items:flex-start;gap:9px;padding:13px 12px;background:#f4efe5;border:1px solid #ebe1cf;border-radius:11px;color:#5f4b32}
.tip svg{width:17px;height:17px;margin-top:2px;color:#a86b39}
.tip strong{font-size:12px}
.tip p{font-size:12px;color:#6e614f;margin-top:4px;line-height:1.45}
.camera-panel{padding:17px}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}
.panel-heading h2,.dialog-head h2{font-size:17px;letter-spacing:-.017em;font-weight:700}
.panel-heading p,.dialog-head p{font-size:13px;color:var(--muted);margin-top:2px}
.camera-state{display:flex;align-items:center;gap:7px;background:#f5f3ee;border:1px solid var(--line);border-radius:30px;padding:4px 9px;font-size:11px;color:#625b51;white-space:nowrap}
.camera-state i{width:6px;height:6px;border-radius:9px;background:#a7a090}
.camera-state.live{background:#ebf2e9;color:#365139;border-color:#e1ebde}
.camera-state.live i{background:#5c895c}
.view{position:relative;min-height:260px;aspect-ratio:2.21;max-height:620px;border-radius:9px;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at center,#33271f,#211c18 76%,#151312)}
.demo-picture,#video,#photo{position:absolute;width:100%;height:100%;inset:0;display:block;object-fit:contain}
.demo-picture{object-fit:cover}
.view-shadow{position:absolute;inset:0;background:linear-gradient(#130e0e44,transparent 23% 81%,#18121177);pointer-events:none}
.view-tag{position:absolute;top:13px;left:13px;display:flex;align-items:center;gap:6px;color:#fff7ee;border:1px solid #ffffff30;background:#3a312cc7;border-radius:6px;padding:5px 8px;font-size:11px;font-weight:540}
.view-tag svg{width:13px;height:13px;color:#e4a388}
.frame{position:absolute;inset:11% 18% 16%;pointer-events:none;--corner:#e9a487}
.frame::before{content:"";position:absolute;inset:0;border:1px solid #e0a58645}
#gutter{height:100%;border-left:1px dashed #e9a48790;position:absolute;left:50%}
.corner,.handle{position:absolute}
.corner{width:24px;height:24px;border:solid var(--corner);border-width:0}
.tl{top:0;left:0}.tr{top:0;right:0}.bl{bottom:0;left:0}.br{bottom:0;right:0}
.corner.tl{border-width:2px 0 0 2px;border-top-left-radius:3px}
.corner.tr{border-width:2px 2px 0 0;border-top-right-radius:3px}
.corner.bl{border-width:0 0 2px 2px;border-bottom-left-radius:3px}
.corner.br{border-width:0 2px 2px 0;border-bottom-right-radius:3px}
.handle{pointer-events:auto;touch-action:none;border:2px solid #ffe4d5;border-radius:50%;background:var(--terracotta);width:19px;height:19px;padding:0;cursor:grab}
.handle.tl{transform:translate(-50%,-50%)}.handle.tr{transform:translate(50%,-50%)}.handle.bl{transform:translate(-50%,50%)}.handle.br{transform:translate(50%,50%)}
.gutter-handle{bottom:0;left:50%;transform:translate(-50%,50%);cursor:ew-resize}
.view-hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);text-align:center;padding:5px 11px;font-size:11px;border-radius:6px;background:#211b18dd;color:#fff6ec;max-width:calc(100% - 24px);min-width:max-content}
#capture-meter{height:2px;background:#efa486;width:0;margin-top:3px;transition:width .15s linear;border-radius:3px}
.camera-actions,.action-group,.page-actions,.page-actions>div{display:flex;align-items:center;gap:8px}
.camera-actions{justify-content:space-between;margin-top:13px;flex-wrap:wrap}
.action-group{flex-wrap:wrap}
.photo-nav{position:absolute;inset:auto 10px 10px;display:flex;gap:7px;justify-content:flex-end}
.photo-nav button{background:#241e1bd9;color:white;border-color:#ffffff38}
.pages-panel,.cleanup{padding:15px 17px}
.page-heading{display:flex;align-items:center;gap:9px}
.counter{font-size:11px;font-weight:660;border:1px solid #ece6da;border-radius:100px;background:#f6f3eb;color:#655b49;min-width:23px;text-align:center;padding:1px 6px}
.cleanup-button{min-height:34px;color:var(--deep)}
.empty{display:flex;align-items:center;gap:12px;border:1px dashed #e7e0d5;border-radius:9px;background:#fbfaf7;padding:13px 14px}
.empty-icon{width:34px;height:34px;display:grid;place-items:center;background:#f2eee5;border-radius:8px;color:#847761;flex:none}
.empty strong,.empty p{font-size:12px}
.empty p{color:var(--muted);margin-top:2px}
.film{display:flex;gap:9px;overflow:auto;padding:3px 2px 7px;scrollbar-color:#ded4c6 transparent}
.thumbnail{flex:0 0 86px;background:#f7f3ec;border:1px solid #e7ded2;border-radius:8px;position:relative;overflow:hidden;padding:4px;text-align:center}
.thumbnail:hover,.thumbnail[aria-pressed=true]{border-color:var(--terracotta);background:var(--soft)}
.thumbnail img{display:block;width:100%;height:82px;object-fit:contain;background:#e8e1d6;border-radius:4px}
.thumbnail small{font-size:11px;font-weight:650}
.thumbnail .warning{position:absolute;right:6px;top:6px;background:#fff1d2;color:#854b09;border-radius:3px;padding:2px;display:grid;place-items:center}
.thumbnail .warning svg{width:14px;height:14px}
.page-notice,.alert{border:1px solid #ead4a8;background:#fff6df;color:#674719;border-radius:7px;margin-bottom:10px;padding:7px 9px;font-size:12px}
.inline-alert{margin:9px 0 0;display:flex;align-items:center;gap:7px}
.inline-alert>span{flex:1}
.inline-alert>svg{width:16px;height:16px}
.page-actions{justify-content:space-between;padding-top:6px;font-size:12px;color:var(--muted)}
.page-actions .button{min-height:33px;padding:0 7px;font-size:12px}
.page-actions .icon-only{padding:0 7px}
.cleanup h2{display:flex;align-items:center;gap:6px}
.cleanup h2 svg{color:var(--terracotta)}
.cleanup-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.cleanup-controls label{font-size:12px;display:grid;grid-template-columns:1fr auto;align-content:start;gap:5px}
.cleanup-controls input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--terracotta);margin:3px 0}
.cleanup-controls output{font-variant-numeric:tabular-nums;color:var(--muted)}
.cleanup-footer{margin-top:8px}
.cleanup-footer button{min-height:32px}
footer{display:flex;justify-content:space-between;align-items:center;color:#6d6559;font-size:12px;padding:22px 0 20px}
footer span:first-child{display:flex;align-items:center;gap:6px}
footer svg{width:14px;height:14px}
.icon-button{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;border:1px solid var(--line);background:white;color:#50473c;padding:0}
.icon-button:hover{background:#f4eee4}
.icon-button svg{width:15px;height:15px}
dialog{width:min(480px,calc(100% - 28px));max-height:calc(100% - 28px);padding:19px;border:1px solid var(--line);border-radius:15px;color:var(--ink);box-shadow:0 18px 65px #2a1b164d}
dialog::backdrop{background:#1f191468}
.dialog-head,.dialog-actions{display:flex;align-items:start;justify-content:space-between;gap:10px}
.dialog-actions{justify-content:flex-end;margin-top:14px}
.help-list{padding-left:22px;margin:14px 0 0;font-size:14px;color:var(--muted)}
.help-list li+li{margin-top:11px}
.export-options{display:grid;gap:7px;margin:14px 0}
.export-options label{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:8px;cursor:pointer}
.export-options label:has(:checked){border-color:#e9c6b9;background:var(--soft)}
.export-options input{accent-color:var(--terracotta)}
.export-options svg{color:var(--deep)}
.export-options span{display:grid;gap:2px}
.export-options strong{font-size:13px}
.export-options small,.export-progress,.start-number{color:var(--muted);font-size:12px}
.start-number{display:flex;align-items:center;justify-content:space-between;gap:10px}
.start-number input{width:82px;border:1px solid var(--line);border-radius:6px;padding:5px}
.export-alert{margin-top:11px;border:1px solid #ead4a8;background:#fff6df;color:#674719;border-radius:8px;padding:8px 10px;font-size:12px}
.export-alert ul{display:grid;gap:4px;padding:0;list-style:none;margin:5px 0 0;max-height:145px;overflow:auto}
.export-alert li{display:flex;gap:8px;align-items:center;justify-content:space-between}
.export-alert button{background:#fbecd0;border-radius:5px;color:#614016;padding:4px 7px;flex:none;font-weight:650;font-size:11px}
.export-progress{margin-top:8px}
.toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:#302820;color:white;max-width:calc(100% - 22px);padding:8px 13px;border-radius:8px;z-index:5;font-size:13px;box-shadow:0 3px 12px #0002}
@media(max-width:1050px){.container{width:calc(100% - 56px)}.layout{grid-template-columns:220px minmax(0,1fr);gap:17px}.view{aspect-ratio:1.87}}
@media(max-width:750px){.container{width:calc(100% - 28px)}.topbar{height:59px}.intro{padding:27px 0 18px;align-items:start}.intro p{font-size:13px}.intro h1{font-size:44px}.layout{grid-template-columns:1fr;gap:10px}.sidebar{grid-template-columns:1fr;gap:7px}.workflow{padding:6px}.workflow h2,.settings h2,.step-copy small,.step-arrow,.tip{display:none}.workflow ol{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.step{justify-content:center;gap:4px;padding:5px 3px;text-align:left;height:40px}.step-icon{height:25px;width:25px;border-radius:6px}.step-icon svg{height:15px;width:15px}.step-copy{flex:0 1 auto}.step-copy strong{font-size:11px;line-height:1.16}.settings{padding:5px 8px;display:flex;justify-content:space-between;align-items:center;gap:8px}.setting-row{padding:1px 0;gap:7px}.setting-row small{display:none}.setting-row strong{font-size:11px}.setting-language{border:0;font-size:11px;flex-wrap:nowrap}.setting-language select{max-width:115px}.workspace{gap:10px}.camera-panel,.pages-panel,.cleanup{padding:10px}.view{aspect-ratio:4/3;min-height:210px}.guide-button{font-size:0;padding:0 8px;min-height:35px}.guide-button svg{width:18px;height:18px}.camera-actions{margin-top:9px}.button{min-height:37px;padding:0 9px;font-size:12px}.cleanup-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.page-actions{align-items:flex-start}.page-actions>div{flex-wrap:wrap;justify-content:flex-end}.brand-caption,.brand-rule{display:none}.top-actions{gap:6px}.language{min-height:37px}.view-hint{font-size:10px;min-width:0;width:max-content}.demo-picture{object-fit:cover}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.retake-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px;background:var(--soft);color:var(--deep);border-radius:7px;font-size:12px;margin-top:8px}
.retake-banner .button{min-height:27px}
.view.reviewing .view-shadow{display:none}
@media(max-width:480px){.settings{display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:4px}.setting-row:first-of-type{grid-column:1/-1;justify-content:space-between}.setting-language:nth-of-type(3){justify-content:flex-end}.setting-language select{max-width:106px}.guide-button span{display:none}}
.view:not(.reviewing) .demo-picture{object-position:center}
.frame{inset:10% 28.5% 13%}
@media(max-width:1050px){.view:has(.demo-picture:not([hidden])) .frame{inset:10% 24.5% 13%}}
@media(max-width:750px){.view:has(.demo-picture:not([hidden])) .frame{inset:10% 15% 13%}}
#retake-layout{display:flex;align-items:center;gap:6px;white-space:nowrap}
#retake-layout select{background:white;border:1px solid #e4d3c7;border-radius:5px;padding:3px}
.retake-banner{flex-wrap:wrap}

.intro-actions{display:flex;gap:6px;align-items:center}
#mobile-settings,#mobile-camera-top,#mobile-camera-bottom{display:none}
#rotate-page{margin-right:auto;transform:scaleX(-1)}
.camera-panel{min-width:0}
.view.camera-view #video{object-fit:contain}
@media (max-width:850px), (hover:none) and (pointer:coarse), (orientation:landscape) and (max-height:600px) and (max-width:1100px){
  .container{width:calc(100% - 24px)}
  .topbar{height:56px}
  .brand-caption,.brand-rule,.intro p,.sidebar .workflow,.sidebar .tip{display:none}
  .intro{padding:17px 0 12px;align-items:center}
  .intro h1{font-size:clamp(32px,9vw,44px)}
  .intro-actions .button{min-width:38px;min-height:38px;padding:0 8px}
  .intro-actions .button span{display:none}
  #mobile-settings{display:inline-flex}
  .layout{grid-template-columns:1fr;gap:8px}
  .sidebar:not(.settings-visible){display:none}
  .sidebar .settings{display:flex;padding:8px 10px;justify-content:space-between;gap:8px;flex-wrap:wrap}
  .sidebar .settings h2,.setting-row small{display:none}
  .sidebar .setting-row{border:0;padding:3px 0;font-size:12px}
  .workspace{gap:9px}
  .camera-panel,.pages-panel,.cleanup{padding:9px}
  .camera-panel > .panel-heading{display:none}
  .camera-panel .view{height:clamp(240px,53dvh,530px);max-height:none;min-height:0;aspect-ratio:auto}
  .camera-panel .view:not(.reviewing) .demo-picture{object-fit:contain}
  .camera-panel .view:has(.demo-picture:not([hidden])) .frame,
  .camera-panel .view:has(.demo-picture:not([hidden])) .view-tag{display:none}
  .camera-panel .view:has(.demo-picture:not([hidden])) .view-hint{display:none}
  .camera-actions{gap:3px}
  .camera-actions .button{min-height:42px}
  #sample{padding-inline:5px}
  #sample svg{display:none}
  .photo-nav .icon-button{height:42px;width:42px}
  body.live-camera{overflow:hidden;overscroll-behavior:none;background:#101010}
  .camera-panel.mobile-live{
    position:fixed;inset:0;z-index:10;
    width:100vw;height:100dvh;padding:0;margin:0;
    background:#101010;color:#fff;border:0;border-radius:0;
    --camera-top:max(58px,calc(env(safe-area-inset-top) + 50px));
    --camera-bottom:max(102px,calc(env(safe-area-inset-bottom) + 91px))
  }
  .camera-panel.mobile-live .view{
    position:absolute;inset:var(--camera-top) 0 var(--camera-bottom);
    height:auto;width:auto;max-height:none;border-radius:0;background:#101010
  }
  .camera-panel.mobile-live .view-shadow,.camera-panel.mobile-live .view-tag,.camera-panel.mobile-live .camera-actions{display:none}
  .camera-panel.mobile-live .frame{--corner:#f4c9b3}
  .camera-panel.mobile-live .frame::before{border-color:#ffe4d540}
  .camera-panel.mobile-live .view-hint{bottom:8px;background:#161514d9;min-width:0;width:max-content;max-width:calc(100% - 24px);font-size:13px;padding:5px 11px;line-height:1.3}
  #mobile-camera-top,#mobile-camera-bottom{position:absolute;display:flex;align-items:center;justify-content:space-between;z-index:2}
  #mobile-camera-top{
    top:env(safe-area-inset-top);left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));height:54px;
  }
  #mobile-camera-bottom{
    bottom:env(safe-area-inset-bottom);left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));height:91px;
  }
  #mobile-camera-top button,#mobile-camera-bottom button{
    min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;gap:6px;
    padding:0 11px;border-radius:23px;background:#282624;color:#fff;font-size:13px;font-weight:650;border:1px solid #57514b;
  }
  #mobile-camera-bottom #mobile-auto[aria-pressed=true]{background:#42291f;border-color:#a97359;color:#ffe3d1}
  #mobile-camera-bottom #mobile-shutter{position:absolute;left:50%;transform:translateX(-50%);padding:5px;width:68px;height:68px;border:2px solid #f1e9e1;background:#161514;border-radius:50%}
  #mobile-shutter span{display:block;width:100%;height:100%;background:#f8f3ec;border-radius:50%}
  #mobile-shutter:active span,.mobile-live.is-framing #mobile-shutter span{background:#dc805e}
  #mobile-count{min-width:13px;font-variant-numeric:tabular-nums}
  .mobile-live #retake-banner{position:absolute;top:var(--camera-top);left:8px;right:8px;z-index:2;margin:0;background:#27211fe8;color:#ffe3d1}
  .mobile-live #retake-banner .button{color:#ffe3d1}
  .mobile-live #retake-side{background:#282624;border-color:#57514b}
  .mobile-live .inline-alert{position:absolute;bottom:var(--camera-bottom);left:8px;right:8px;z-index:2;box-shadow:0 2px 5px #0004}
  .toast{z-index:12}
  .live-camera .toast{bottom:calc(env(safe-area-inset-bottom) + 4px);pointer-events:none}
  .mobile-live .handle{width:26px;height:26px}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:1100px){
  .camera-panel.mobile-live .view{inset:0 max(96px,calc(env(safe-area-inset-right) + 90px)) 0 0}
  #mobile-camera-top{top:max(8px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:auto;gap:6px;height:44px}
  #mobile-camera-bottom{top:max(8px,env(safe-area-inset-top));right:env(safe-area-inset-right);bottom:max(8px,env(safe-area-inset-bottom));left:auto;width:90px;height:auto;flex-direction:column;}
  #mobile-camera-bottom #mobile-shutter{top:50%;left:50%;transform:translate(-50%,-50%)}
  .mobile-live #retake-banner{top:54px;right:max(98px,calc(env(safe-area-inset-right) + 92px))}
  .mobile-live .inline-alert{bottom:8px;right:max(98px,calc(env(safe-area-inset-right) + 92px))}
}
.view.flash::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:#ffffff69}
.shutter-burst .frame{--corner:#fff3e6}
.shutter-burst .view-hint,#camera-panel.mobile-live .shutter-burst .view-hint{
  background:#191512;color:#fff;box-shadow:0 0 0 1px #f9ceae66;font-weight:700
}
.shutter-burst #capture-meter{height:3px;background:#ffd1b7}
.camera-panel:has(.shutter-burst) #mobile-shutter{opacity:1;border-color:#f5ae89!important}
.camera-panel:has(.shutter-burst) #mobile-shutter span{background:#f5ae89}
@media(prefers-reduced-motion:no-preference){
  .view.flash::after{animation:shutter-flash .19s ease-out both}
  @keyframes shutter-flash{from{opacity:.8}to{opacity:0}}
}

.danger{background:#963925;color:#fff;border:1px solid #963925}
.danger:hover:enabled{background:#762b1b}
#clear-scans{color:var(--deep)}
#clear-scans svg{width:16px;height:16px}
#clear-dialog #clear-info{margin-top:6px}
.native-camera-first #native-camera:not([hidden]){background:var(--terracotta);color:#fff;border-color:var(--terracotta)}
.native-camera-first #main-action:not([hidden]){background:var(--paper);color:var(--ink);border:1px solid #e4dfd5;box-shadow:none}
#shutter-control{display:flex;flex-direction:column;align-items:center;gap:3px}
#shutter-label{color:#f8f3ec;font-size:11px;line-height:15px;white-space:nowrap}
@media (max-width:850px), (hover:none) and (pointer:coarse), (orientation:landscape) and (max-height:600px) and (max-width:1100px){
  .intro{gap:6px}
  .intro h1{font-size:clamp(27px,8vw,40px)}
  .intro-actions{gap:4px}
  .intro-actions #clear-scans{min-height:40px;gap:4px;padding-inline:6px}
  .intro-actions #clear-scans span{display:inline;font-size:11px}
  .intro-actions #help-open{display:none}
  #help-open.is-visible{display:inline-flex}
  .native-camera-first #sample{display:none}
  #shutter-control{position:absolute;left:50%;transform:translateX(-50%);top:3px}
  #mobile-camera-bottom #mobile-shutter{position:relative;inset:auto;transform:none;width:65px;height:65px}
  .mobile-live #capture-alert,.live-camera .toast{display:none}
  .camera-panel.mobile-live .view-hint{bottom:7px;pointer-events:none}
  .camera-panel.mobile-live .view-hint:not(.has-progress) #capture-meter{display:none}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:1100px){
  #shutter-control{top:50%;transform:translate(-50%,-50%)}
}
