.practice-camera{margin-top:24px;padding-top:23px;border-top:1px solid var(--line,#dce5d3)}
.practice-camera-title{margin:0 0 9px;color:var(--ink,#214d41);font-size:18px;font-weight:650;line-height:1.6}
.practice-camera-instruction{margin:0 0 17px;color:#435b47;font-size:14px;line-height:2;overflow-wrap:anywhere}
.practice-camera-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border:1px solid #dce5d3;border-radius:9px;background:#17241f}
.practice-camera-image{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}
.practice-camera-loading{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:#17241f;color:#e1e9db;font-size:13px;text-align:center}
.practice-camera [hidden]{display:none!important}
.practice-camera-button{position:absolute;right:16px;bottom:16px;z-index:2;display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:74px;min-height:42px;margin:0;padding:9px 11px;border:1px solid #ffffffb3;border-radius:7px;background:#fffdf2eb;color:#284638;font-family:inherit;font-size:12px;font-weight:550;line-height:1.4;box-shadow:0 2px 10px #152c2933;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.practice-camera-button svg{display:block;flex-shrink:0;width:20px;height:20px}
.practice-camera-button span{white-space:nowrap}
.practice-camera-button:hover:not(:disabled){background:#fffef8;border-color:#fffef8}
.practice-camera-button:active:not(:disabled){background:#e5eddd;transform:translateY(1px)}
.practice-camera-button:disabled{opacity:.45;cursor:default;box-shadow:none}
.practice-camera-button:focus-visible,.practice-camera-thumbnail:focus-visible,.practice-camera-retry:focus-visible{outline:3px solid #bca25c;outline-offset:3px}
.practice-camera-flash{position:absolute;inset:0;z-index:3;background:#fff;opacity:0;pointer-events:none}
.practice-camera-flash.is-flashing{animation:practice-camera-shutter .18s ease-out}
.practice-camera-status{min-height:1.8em;margin:10px 0 0;color:#6d8064;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.practice-camera-retry{margin:8px 0 0;padding:8px 13px;border:1px solid #c3d2b9;border-radius:6px;background:#f4f7ef;color:#315642;font:inherit;font-size:12px;cursor:pointer}
.practice-camera-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.practice-camera-gallery:empty{display:none}
.practice-camera-thumbnail{position:relative;display:block;width:100%;min-width:0;aspect-ratio:16/9;overflow:hidden;padding:0;border:1px solid #dce5d3;border-radius:6px;background:#eaf0e2;cursor:pointer}
.practice-camera-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.practice-camera-thumbnail span{position:absolute;right:4px;bottom:4px;padding:1px 5px;border-radius:3px;background:#243f36a8;color:white;font-size:10px;line-height:1.6}
@keyframes practice-camera-shutter{from{opacity:.3}to{opacity:0}}
@media(max-width:640px){
  .practice-camera{margin-top:22px;padding-top:19px}
  .practice-camera-title{font-size:16px}
  .practice-camera-instruction{font-size:13px;line-height:1.95;margin-bottom:14px}
  .practice-camera-frame{border-radius:7px}
  .practice-camera-button{right:10px;bottom:10px;gap:5px;min-width:64px;min-height:38px;padding:7px 9px;border-radius:6px;font-size:11px}
  .practice-camera-button svg{width:18px;height:18px}
  .practice-camera-status{font-size:11px}
  .practice-camera-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .practice-camera-thumbnail span{font-size:9px;right:3px;bottom:3px}
}
@media(prefers-reduced-motion:reduce){.practice-camera-flash.is-flashing{animation:none}}
