/* Scoped camera UI: light buttons in both site themes, no gold gradients. */
#board-scanner-modal .board-scanner-modal-panel{--paper:#fffef9;--ink:#214f40;--ink2:#395b4b;--ink3:#526958;background:#fffef9!important;color:#214f40!important}
html[data-theme] #board-scanner-modal button:focus-visible{outline:2px solid #357454!important;outline-offset:2px}
html[data-theme] #board-scanner-modal :is(.board-scanner-status,.board-scanner-empty strong,.board-scanner-empty>span){color:#286044!important}
html[data-theme] #board-scanner-modal button{color:#214f40!important;background:#f5f8f2!important;background-image:none!important;border:1px solid #b5caba!important;box-shadow:none!important;border-radius:8px;min-height:44px;padding:9px 12px;font-size:13px;cursor:pointer}
html[data-theme] #board-scanner-modal button:hover{background:#e8f0e5!important}
html[data-theme] #board-scanner-modal button:is(.active,[aria-pressed="true"]){background:#e4efdf!important;border-color:#357454!important;box-shadow:inset 0 0 0 1px #357454!important}
html[data-theme] #board-scanner-modal button:disabled{opacity:1;color:#647669!important;background:#eef0eb!important;border-color:#d0d9ce!important;cursor:not-allowed}
#board-scanner-modal [hidden]{display:none!important}
#board-scanner-modal .board-scanner-head>button{flex:none;width:44px;font-size:24px}
#board-scanner-modal .modal-title{color:var(--ink);margin:0}
#board-scanner-modal .board-scanner-head p{font-size:12px;line-height:1.6}
#board-scanner-modal .board-scanner-empty{min-height:220px;padding:14px}
#board-scanner-canvas{width:100%;height:auto;max-height:none;box-sizing:border-box;touch-action:none;object-fit:contain}
#board-scanner-modal .board-scanner-status{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
#board-scanner-modal .board-scanner-note{font-size:12px;line-height:1.7}
#board-scanner-modal .board-scanner-actions{gap:6px}
#board-scanner-modal .board-scanner-brushes i.black{background:#171c19!important}
#board-scanner-modal .board-scanner-brushes i.white{background:#fffef9!important;border:1px solid #758076}
#board-scanner-modal .board-scanner-confirm{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.6;margin:12px 0;color:var(--ink2)}
#board-scanner-confirmed{width:18px;height:18px;flex:none;accent-color:#276947}
#board-scanner-progress{width:100%;accent-color:#276947;margin-top:8px}
#board-scanner-modal .board-scanner-modal-panel{box-sizing:border-box;overscroll-behavior:contain}
@media(max-width:760px){#board-scanner-modal .board-scanner-modal-panel{width:100%;height:100dvh;max-height:100dvh;padding:12px 12px calc(20px + env(safe-area-inset-bottom))}#board-scanner-modal .board-scanner-final-actions{position:sticky;bottom:-12px;background:var(--paper);padding:10px 0;margin-bottom:0}#board-scanner-modal .board-scanner-final-actions button{font-size:13px;min-width:0}}
