#photo-open{color:#efdcb2}
#photo-open:disabled{opacity:.5}
.photo-active .chrome,.photo-active #restore,.photo-active #diagnostic{display:none!important}
#photo-dock[hidden],#photo-frame[hidden],#photo-stand[hidden]{display:none!important}
#photo-frame{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:5}
#photo-frame .photo-guide{position:absolute;top:50%;left:50%;width:var(--photo-width);height:var(--photo-height);transform:translate(-50%,-50%);
  border:1px solid #fff6d690;box-shadow:0 0 0 100vmax #071c30bd}
#photo-stand{position:absolute;transform:translate(-50%,10px);border:1px solid #ffde8ea8;border-radius:20px;padding:3px 8px;
  background:#122631db;color:#ffeac0;font-size:10px;line-height:1.3;white-space:nowrap}
#photo-dock{position:fixed;z-index:8;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);
  width:min(750px,calc(100% - 24px));border:1px solid #e2c79452;border-radius:18px;background:#102d38ef;color:#f8edd7;
  box-shadow:0 10px 52px #06121d58;display:grid;gap:9px;padding:12px 14px;font-size:13px}
.photo-head,.photo-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.photo-head h2{font-weight:550;font-size:16px;margin:0;letter-spacing:.045em}
.photo-head p{font-size:11px;margin:3px 0 0;color:#d9d8c8}
#photo-dock button{font:inherit;color:#f8edd7;min-height:40px;border:1px solid #e4cfaa45;border-radius:11px;background:#284652;
  padding:7px 11px;cursor:pointer}
#photo-dock button:hover{background:#3e5661}
#photo-dock button:focus-visible{outline:2px solid #ffdf9d;outline-offset:2px}
#photo-dock button[aria-pressed=true],#photo-dock #photo-save{background:#dfc488;border-color:#dfc488;color:#173138}
#photo-dock #photo-save:disabled{opacity:.65;cursor:wait}
#photo-spots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
#photo-format,.photo-output{display:flex;gap:4px}
#photo-close{flex:0 0 auto}
@media(max-width:760px){
  #photo-dock{width:calc(100% - 18px);gap:6px;padding:8px;border-radius:15px;bottom:max(9px,env(safe-area-inset-bottom))}
  .photo-head h2{font-size:13px}
  .photo-head p{display:none}
  #photo-spots{grid-template-columns:repeat(3,minmax(0,1fr))}
  #photo-dock button{min-height:36px;padding:5px 6px;font-size:11px;white-space:nowrap}
  #photo-dock #photo-save{min-width:66px}
}
@media(max-height:490px) and (min-width:500px){
  #photo-dock{gap:4px;max-width:min(675px,calc(100% - 18px));bottom:7px;padding:7px 9px}
  #photo-dock button{min-height:31px;padding:3px 7px}
  .photo-head p{display:none}
}

