#pickerDialog{width:min(1400px,96vw);max-width:96vw;height:min(900px,94dvh);max-height:94dvh;overflow:hidden}#pickerDialog[open]{display:flex;flex-direction:column;gap:10px}#pickerDialog h2,#pickerDialog p{margin:0}.folder-picker-body{display:flex;gap:16px;flex:1;min-height:180px;overflow:hidden}.folder-picker-main{flex:1;min-width:0;overflow:auto}.folder-tree{display:flex;flex-direction:column;gap:4px;overflow:auto;max-height:260px;padding:8px 0}.folder-tree>strong{font-size:11px;color:var(--muted);margin-bottom:8px}.folder-tree button{display:flex;justify-content:space-between;gap:8px;align-items:center;text-align:left;flex-shrink:0;background:transparent;border:0;color:var(--green);border-radius:5px;padding:9px 8px 9px calc(8px + var(--depth,0)*13px);font-size:11px}.folder-tree button.active{background:#e7ecdf}.folder-tree button small{color:var(--muted)}#pickerFolders{width:220px;max-height:none;flex:0 0 220px;border-right:1px solid var(--line);padding-right:10px}.picker-tools{flex-wrap:wrap}#pickerGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px;max-height:none;overflow:visible;padding:4px}.picker-photo-item{min-width:0}.natural-photo{width:100%;height:auto!important;aspect-ratio:auto!important;border:1px solid var(--line);padding:5px!important;background:#fbfaf5}.natural-photo-image{display:flex;align-items:center;justify-content:center;min-height:90px;height:140px}.natural-photo img{object-fit:contain!important;width:auto!important;height:auto!important;max-width:100%;max-height:100%;display:block}.natural-photo small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;padding:3px}.natural-photo .photo-date{color:var(--muted);font-size:8px}#photoGrid .natural-photo-image{height:95px}.photo-use-toggle{font-size:9px}#libraryPhotoSort{width:100%;margin:8px 0}
#pickerUsage{flex-shrink:0;margin:0}
#pickerGrid img[data-picker-thumb]:not([data-thumb-ready]){visibility:hidden}
#pickerUsage button{min-width:62px;padding:9px 12px}
.frame-reference-dialog{width:min(1440px,96vw);max-width:96vw;height:min(900px,94dvh);max-height:94dvh;overflow:hidden}
.frame-reference-dialog[open]{display:flex;flex-direction:column}
.frame-reference-dialog .dialog-heading{gap:12px;margin-bottom:8px}
.frame-reference-dialog>p{margin:0}
.frame-reference-dialog label{max-width:360px}
.frame-reference-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr));gap:12px}
.frame-reference-options .frame-reference-option{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;text-align:left;min-width:0}
.frame-reference-option img{display:block;width:100%;height:clamp(130px,26vh,240px);object-fit:contain;border-radius:3px;background:#edf0e8}
.frame-reference-option span{min-width:0;display:grid;gap:3px}
.frame-reference-option small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.frame-reference-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:2px}.frame-reference-list h3{margin:12px 0 4px;font:18px Georgia,serif}#frameIdentity{display:block;color:var(--muted);padding:8px 0}.context-menu{background:#fffefa!important;border:1px solid var(--line)!important;border-radius:8px!important;box-shadow:0 10px 35px #344c3f22!important;color:var(--green)!important;min-width:250px;max-height:90vh;overflow:auto;padding:6px!important}.context-menu-item{color:var(--green)!important;border:0;background:transparent;display:flex;width:100%;text-align:left;padding:10px 12px!important;font:11px 'Segoe UI',sans-serif!important;border-radius:5px}.context-menu-item:hover{background:#e7ecdf!important}.context-menu-item[hidden]{display:none!important}.context-menu-separator{background:var(--line)!important}.layer-item{background:#fffefa!important;border:1px solid var(--line)!important;border-radius:5px!important;color:var(--green)!important;margin-bottom:6px}.layer-item.active{background:#e7ecdf!important;border-color:#8b987d!important}.layer-item-name{font-size:10px!important}.color-options,.color-tabs,.color-tab{background:#fffefa!important;color:var(--green)!important;border-color:var(--line)!important}.color-tab.active{background:#e7ecdf!important}#uploadPhotoFolder{width:100%;margin:8px 0}@media(max-width:650px){.frame-reference-options{grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr))}#pickerUsage button{min-width:50px;padding:7px 8px}#pickerFolders{width:140px;flex-basis:140px}.folder-picker-body{gap:8px}#pickerGrid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.picker-tools>*{font-size:10px}#pickerDialog{padding:14px}.natural-photo-image{height:115px}}
.panel-tabs{background:#fffefa!important;border-color:var(--line)!important}.panel-tab{font:11px 'Segoe UI',sans-serif!important;color:var(--muted)!important;padding:12px!important}.panel-tab.active{color:var(--green)!important;background:#e7ecdf!important;border-bottom-color:var(--green)!important}#color-panel{background:#fffefa;color:var(--green)}#color-panel h3{font:16px Georgia,serif;color:var(--green);letter-spacing:0}#color-panel .effect-control{border-bottom:1px solid var(--line);padding:12px 0}#color-panel label{font-size:11px;color:var(--muted)}#color-panel input[type=number]{background:#fbfaf5;border:1px solid var(--line);border-radius:5px;color:var(--green);width:65px;padding:8px}#color-panel input[type=range]{accent-color:var(--green)}.context-menu{position:fixed!important}.context-menu-item:focus-visible,.folder-tree button:focus-visible{outline:2px solid #8b987d}
