/* Photo file commands: separate from the editing workbench. */
#photoFileMenu{flex:none;white-space:nowrap;min-width:65px}
.photo-commands{position:fixed;z-index:150;width:min(300px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;padding:6px;border:1px solid #4b809d;border-radius:10px;background:#0d2438;color:#eaf7ff;box-shadow:0 8px 30px #0008;font-size:13px}
.photo-commands[hidden],#photoFullscreenExit[hidden]{display:none!important}
.command-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 7px 8px;color:#91e5f4;font-weight:800;border-bottom:1px solid #35546c;margin-bottom:4px}
.command-head button{background:#17394f;border:1px solid #42677e;border-radius:5px;color:#eaf7ff;padding:3px 9px;font-size:16px;cursor:pointer}
.photo-commands>button{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;padding:9px 8px;border:0;border-radius:5px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.photo-commands>button:hover,.photo-commands>button:focus-visible{background:#214a63}.photo-commands>button:disabled{opacity:.4;cursor:default}.photo-commands kbd{font:10px system-ui;color:#9cbbd0;white-space:nowrap}.photo-commands hr{border:0;border-top:1px solid #35546c;margin:4px}
.photo-command-dialog{width:min(430px,calc(100vw - 24px));max-height:85dvh;overflow:auto;background:#10283e;color:#eaf7ff;border:1px solid #4c97b4;border-radius:12px;padding:14px;box-shadow:0 12px 40px #0008}.photo-command-dialog::backdrop{background:#0005}.photo-command-dialog label{display:block;font-size:13px;margin:10px 0}.photo-command-dialog input:not([type=checkbox]){width:100%;padding:8px;border:1px solid #42677e;border-radius:5px;background:#081b2c;color:#fff}.photo-command-dialog input[type=color]{height:40px}.photo-command-dialog input[type=checkbox]{accent-color:#65d8e9}.photo-command-dialog p{font-size:13px;line-height:1.6;color:#adcde3}.photo-command-dialog .dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}.photo-command-dialog button.primary{min-height:36px}.photo-command-dialog dl{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:0;margin:8px 0;font-size:12px}.photo-command-dialog dt,.photo-command-dialog dd{padding:7px 4px;border-bottom:1px solid #35546c;margin:0;overflow-wrap:anywhere}.photo-command-dialog dt{color:#a4c8db}
.preview:fullscreen,.preview.photo-fullscreen-fallback{background:#070e17!important;display:flex!important;flex-direction:column!important;padding:16px!important;max-width:none!important;max-height:none!important;width:100%!important;height:100%!important;box-sizing:border-box}.preview.photo-fullscreen-fallback{position:fixed!important;inset:0;z-index:200}.preview:fullscreen #stage,.preview.photo-fullscreen-fallback #stage{flex:1!important;min-height:0!important;height:auto!important;max-height:none!important;display:flex!important;align-items:center!important;justify-content:center!important}.preview:fullscreen #preview,.preview.photo-fullscreen-fallback #preview{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}.preview:fullscreen .info,.preview.photo-fullscreen-fallback .info,.preview:fullscreen .preview-foot,.preview.photo-fullscreen-fallback .preview-foot{display:none!important}#photoFullscreenExit{position:absolute;z-index:3;top:12px;right:12px;background:#15354d;color:#eaf7ff;border:1px solid #5b9cb7;padding:8px 12px;border-radius:7px;cursor:pointer}.preview:fullscreen .switch,.preview.photo-fullscreen-fallback .switch{visibility:hidden}
@media(max-width:800px){#photoFileMenu{grid-column:1/-1;min-height:36px}}
