html.web-ui body .workspace.photo-sync-room{position:relative}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-card-editor{position:absolute;inset:12px;z-index:4;display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid #c6dcec;border-radius:18px;background:#f5faff;box-shadow:0 4px 24px #204c6e30;box-sizing:border-box;min-height:0}
html.web-ui body .ps-card-editor>header,html.web-ui body .ps-card-editor>footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}
html.web-ui body .ps-card-editor>header{border-bottom:1px solid #d0e1ed;padding-bottom:10px}
html.web-ui body .ps-card-editor>header button{border-radius:50%;width:32px;height:32px;padding:0}
html.web-ui body .ps-card-editor-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:24px;overflow:auto;scrollbar-width:thin}
html.web-ui body .ps-card-stage{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:12px}
html.web-ui body .ps-card-stage .ps-card-preview{width:100%;max-width:480px;height:auto!important;flex:none;min-height:240px;aspect-ratio:4/3;border:2px solid #90c4a3;box-shadow:0 4px 12px #25485c10}
html.web-ui body .ps-card-controls{align-self:center;min-width:0;background:#fff;border:1px solid #cbddec;border-radius:16px;padding:18px}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-card-controls label{margin:18px 0!important;font-size:13px;font-weight:600}
html.web-ui body .ps-card-controls output{float:right;font-size:14px;font-weight:700;color:#204c6e}
html.web-ui body .ps-card-color>span{display:flex;align-items:center;justify-content:space-between;gap:12px}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-card-controls input[type=color]{width:70px;height:38px!important;min-height:38px!important;padding:3px!important;border-radius:10px;cursor:pointer}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-card-controls input[type=range]{appearance:none;width:100%;height:8px!important;min-height:8px!important;margin:18px 0 10px!important;padding:0!important;border:1px solid #c6d8e7;border-radius:99px;background:linear-gradient(to right,#ffdc27 0 var(--range-fill),#edf4f9 var(--range-fill) 100%);cursor:pointer;touch-action:pan-y}
html.web-ui body .ps-card-controls input[type=range]::-webkit-slider-thumb{appearance:none;width:24px;height:24px;border:2px solid #c6a400;border-radius:50%;background:#ffdc27;box-shadow:0 2px 5px #204c6e25}
html.web-ui body .ps-card-controls input[type=range]::-moz-range-thumb{width:22px;height:22px;border:2px solid #c6a400;border-radius:50%;background:#ffdc27}
html.web-ui body .ps-range-ends{display:flex;justify-content:space-between;gap:8px;color:#58758c}
html.web-ui body .ps-card-editor>footer{border-top:1px solid #d0e1ed;padding-top:10px}
html.web-ui body .ps-card-editor>footer>div{display:flex;gap:8px;flex-wrap:wrap}
html.web-ui body .ps-editor-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){html.web-ui body .ps-card-editor-body{grid-template-columns:1fr;grid-template-rows:160px minmax(0,1fr);gap:8px;overflow:hidden}html.web-ui body .ps-card-stage{padding:0;gap:0}html.web-ui body .ps-card-stage>p{display:none}html.web-ui body .ps-card-stage .ps-card-preview{height:100%!important;min-height:0;max-width:350px;aspect-ratio:auto;padding:10px!important;gap:5px}html.web-ui body .ps-card-editor .ps-card-preview strong,html.web-ui body .ps-card-editor .ps-card-preview .folder-count{font-size:18px!important}html.web-ui body .ps-card-editor>footer{align-items:flex-start;flex-direction:column}html.web-ui body .ps-card-controls{padding:12px;align-self:stretch;overflow:auto;scrollbar-width:thin}}
html.web-ui body .photo-sync-underlay{visibility:hidden;pointer-events:none}
html.web-ui body dialog.photo-sync-panel{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:14px!important;border:1px solid #cbddec!important;border-radius:20px!important;background:#fff!important;color:#204c6e;box-shadow:none!important;overflow:hidden!important}
html.web-ui body dialog.photo-sync-panel[open]{display:flex!important;flex-direction:column;gap:12px}
html.web-ui body .photo-sync-panel>header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:none;padding-bottom:10px;border-bottom:1px solid #d8e6ef}
html.web-ui body .photo-sync-panel h2{margin:0;font-size:20px;line-height:1.2}
html.web-ui body .photo-sync-panel h3{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;line-height:1.3}
html.web-ui body .photo-sync-panel p,html.web-ui body .photo-sync-panel small{margin:4px 0;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
html.web-ui body .photo-sync-panel small{display:block}
html.web-ui body .photo-sync-panel svg{width:23px;height:23px;flex:none}
html.web-ui body .photo-sync-panel button{min-height:30px;height:auto;min-width:0;width:auto;padding:6px 10px;font-size:12px;border-radius:10px;line-height:1.3}
html.web-ui body .photo-sync-panel .ps-close{border-radius:50%;width:32px;height:32px;padding:0;flex:none}
html.web-ui body .photo-sync-panel form{display:flex;flex-direction:column;min-height:0;flex:1;gap:10px;margin:0}
html.web-ui body .photo-sync-panel .ps-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.3fr) minmax(0,.85fr);gap:12px;flex:1;min-height:0}
html.web-ui body .photo-sync-panel .ps-block{position:relative;min-width:0;border:1px solid #cbdeec;border-radius:17px;padding:13px;background:#f5faff;overflow:auto;scrollbar-width:thin;scrollbar-color:#c4d8e7 transparent}
html.web-ui body .photo-sync-panel .ps-destination{background:#fffbed;border-color:#e8d681}
html.web-ui body .photo-sync-panel .ps-computer{background:#f0faf5;border-color:#badccb}
html.web-ui body .photo-sync-panel .ps-download{display:block;padding:8px 10px;border:1px solid #d6b000;border-radius:10px;background:#ffdc27;color:#183e59;font-weight:700;text-decoration:none;text-align:center}
html.web-ui body .photo-sync-panel [data-sync-pair-status]{font-size:11px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}
html.web-ui body .photo-sync-panel [data-sync-pair-approve][hidden]{display:none!important}
html.web-ui body .photo-sync-panel label{display:block;font-size:11px;font-weight:500;line-height:1.35;margin:8px 0}
html.web-ui body .photo-sync-panel input:not([type=checkbox]),html.web-ui body .photo-sync-panel select{width:100%;min-width:0;height:32px;min-height:32px;font-size:12px;margin:4px 0 0;padding:6px 8px;border:1px solid #bbd1e4;border-radius:9px;box-sizing:border-box;background:#ffffffef;color:#204c6e}
html.web-ui body .photo-sync-panel input[type=file]{font-size:10px;padding:4px;height:30px}
html.web-ui body .photo-sync-panel .ps-check{display:flex;gap:7px;align-items:center;min-width:0;font-size:11px;margin:8px 0}
html.web-ui body .photo-sync-panel input[type=checkbox]{width:15px;height:15px;min-width:15px;margin:0;flex:none;accent-color:#b59700}
html.web-ui body .photo-sync-panel .ps-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
html.web-ui body .photo-sync-panel .ps-help{color:#527793;font-size:10px}
html.web-ui body .photo-sync-panel .ps-example{background:#fff;border:1px solid #ecdfa8;border-radius:12px;padding:7px 9px;margin:8px 0}
html.web-ui body .photo-sync-panel .ps-example label{margin:0}
html.web-ui body .photo-sync-panel .ps-preview{font-size:11px;padding:7px 0 0;color:#765f08;word-break:break-word}
html.web-ui body .photo-sync-panel .ps-section-head{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:6px}
html.web-ui body .photo-sync-panel .ps-folder-list{margin:9px 0}
html.web-ui body .photo-sync-panel .ps-folder-row{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(65px,.45fr) 29px;align-items:center;gap:5px;background:#fff;border:1px solid #cfdeeb;border-radius:11px;padding:5px 6px;margin:5px 0;min-width:0}
html.web-ui body .photo-sync-panel .ps-folder-row .ps-check{margin:0;line-height:1.3}
html.web-ui body .photo-sync-panel .ps-folder-row input[data-disk-name]{margin:0;height:28px;min-height:28px;font-weight:600}
html.web-ui body .photo-sync-panel .ps-folder-row .ps-edit{padding:0;width:27px;height:27px;min-height:27px}
html.web-ui body .photo-sync-panel [data-sync-folder-editor]{border-top:1px solid #cbdeec;margin-top:12px;padding-top:10px}
html.web-ui body .photo-sync-panel .ps-editor-checks{display:flex;justify-content:space-between;gap:5px}
html.web-ui body .photo-sync-panel .ps-reference{display:flex;flex-wrap:wrap;align-items:end;gap:7px;margin-bottom:8px}
html.web-ui body .photo-sync-panel .ps-reference label{flex:1;min-width:120px;margin:0}
html.web-ui body .photo-sync-panel .ps-reference img{width:40px;height:40px;object-fit:cover;border-radius:7px}
html.web-ui body .photo-sync-panel .ps-reference button{font-size:10px;padding:5px}
html.web-ui body .photo-sync-panel .ps-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:10px 0}
html.web-ui body .photo-sync-panel .ps-stats span{background:#fff;border:1px solid #c9dece;border-radius:11px;padding:8px 4px;text-align:center;font-size:10px}
html.web-ui body .photo-sync-panel .ps-stats b{display:block;font-size:22px;line-height:1.2}
html.web-ui body .photo-sync-panel .ps-state{color:#276848;font-weight:600}
html.web-ui body .photo-sync-panel .ps-warning{color:#a43244}
html.web-ui body .photo-sync-panel .ps-devices article{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #d3e4da;padding:8px 0;font-size:12px}
html.web-ui body .photo-sync-panel .ps-connect{border-top:1px solid #c7dfd1;margin-top:12px;padding-top:12px}
html.web-ui body .photo-sync-panel ol{padding-left:18px;font-size:11px;line-height:1.45;margin:10px 0}
html.web-ui body .photo-sync-panel li{margin:6px 0}
html.web-ui body .photo-sync-panel .ps-save{flex:none;display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:7px;border-top:1px solid #d8e6ef}
html.web-ui body .photo-sync-panel .ps-save button{padding:9px 17px;white-space:nowrap}
html.web-ui body .photo-sync-panel .ps-browser{position:absolute;inset:8px;z-index:2;display:flex;flex-direction:column;border:1px solid #bcd3e6;border-radius:13px;background:#fff;padding:10px;box-shadow:0 5px 18px #204c6e22;overflow:auto}
html.web-ui body .photo-sync-panel .ps-breadcrumb{display:flex;flex-wrap:wrap;gap:3px;border-bottom:1px solid #e0eaf2;padding:6px 0}
html.web-ui body .photo-sync-panel .ps-directory-list{flex:1;min-height:80px;overflow:auto;padding:6px 0}
html.web-ui body .photo-sync-panel .ps-directory-list button{display:flex;align-items:center;gap:7px;width:100%;justify-content:flex-start;margin:4px 0;text-align:left}
html.web-ui body .photo-sync-panel .ps-directory-list button span{flex:1;overflow-wrap:anywhere}
html.web-ui body .photo-sync-panel [hidden]{display:none!important}
/* Override the portal's generic large-dialog and touch checkbox rules. */
html.web-ui body dialog.photo-sync-panel :is(p,small,ol,li){font-size:11px!important;line-height:1.35!important}
html.web-ui body dialog.photo-sync-panel button{font-size:12px!important;min-height:28px!important}
html.web-ui body dialog.photo-sync-panel label{min-height:0!important;margin:5px 0!important;padding:0!important}
html.web-ui body dialog.photo-sync-panel .ps-check{min-height:18px!important;height:auto!important;margin:5px 0!important;padding:0!important}
html.web-ui body dialog.photo-sync-panel input[type=checkbox]{min-width:15px!important;min-height:15px!important;width:15px!important;height:15px!important;padding:0!important;flex:none!important}
html.web-ui body dialog.photo-sync-panel .ps-help{font-size:10px!important;margin:4px 0!important}
html.web-ui body dialog.photo-sync-panel .ps-example{padding:6px 8px;margin:6px 0}
html.web-ui body dialog.photo-sync-panel .ps-preview{font-size:11px!important;margin:3px 0!important;padding-top:3px}
html.web-ui body dialog.photo-sync-panel .ps-folder-row .ps-check{margin:0!important}
html.web-ui body .photo-sync-panel .ps-root-row{display:flex;align-items:end;gap:6px;margin:5px 0}
html.web-ui body .photo-sync-panel .ps-root-row label{flex:1;min-width:0}
html.web-ui body .photo-sync-panel .ps-root-row button{width:32px;min-height:32px!important;padding:4px;flex:none;margin-bottom:5px}
html.web-ui body dialog.photo-sync-panel .ps-destination>.ps-help{margin:1px 0!important}
html.web-ui body .photo-sync-panel .ps-rule-guide{margin-top:17px;padding:12px;border:1px solid #c9ddec;border-radius:13px;background:#ffffffb8}
html.web-ui body .photo-sync-panel .ps-rule-guide>div{display:flex;align-items:center;gap:5px;margin:10px 0}
html.web-ui body .photo-sync-panel .ps-rule-guide span{flex:1;min-width:0;padding:8px 5px;border:1px solid #cbdfea;border-radius:10px;background:#edf7ff;text-align:center;font-size:10px}
html.web-ui body .photo-sync-panel .ps-rule-guide b{display:block;margin-top:5px;font-size:13px;overflow-wrap:anywhere}
html.web-ui body .photo-sync-panel .ps-rule-guide i{font-style:normal;color:#7599b4}
/* Live desktop adapters load after this asset and contain generic ID-scoped dialog rules. */
html.web-ui body #app .workspace dialog.photo-sync-panel{padding:12px!important}
html.web-ui body #app .workspace dialog.photo-sync-panel h2{font-size:20px!important;line-height:1.2!important;margin:0!important}
html.web-ui body #app .workspace dialog.photo-sync-panel h3{font-size:15px!important;line-height:1.3!important;margin:0!important}
html.web-ui body #app .workspace dialog.photo-sync-panel :is(input:not([type=checkbox]),select){height:30px!important;min-height:30px!important;font-size:12px!important;padding:5px 7px!important;margin-top:3px!important}
html.web-ui body #app .workspace dialog.photo-sync-panel input[data-disk-name]{height:28px!important;min-height:28px!important;margin:0!important}
html.web-ui body #app .workspace dialog.photo-sync-panel button{font-size:12px!important;min-height:28px!important}
html.web-ui body #app .workspace dialog.photo-sync-panel label{font-size:11px!important;min-height:0!important;margin:4px 0!important}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-folder-row .ps-check{margin:0!important}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-rule-guide{margin-top:10px;padding:9px}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-rule-guide>div{margin:7px 0}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-rule-guide span{padding:6px 4px}
html.web-ui body #app .workspace dialog.photo-sync-panel .ps-rule-guide p{font-size:10px!important;line-height:1.3!important}
@media(max-height:780px){html.web-ui body .photo-sync-panel .ps-block{padding:10px}html.web-ui body dialog.photo-sync-panel label{margin:4px 0!important}html.web-ui body dialog.photo-sync-panel .ps-check{margin:4px 0!important}html.web-ui body .photo-sync-panel .ps-example{margin:4px 0;padding:5px 7px}html.web-ui body .photo-sync-panel .ps-connect{margin-top:9px;padding-top:9px}html.web-ui body .photo-sync-panel li{margin:4px 0}}
@media(max-width:1100px){html.web-ui body .photo-sync-panel .ps-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);overflow:auto;grid-auto-rows:min-content}html.web-ui body .photo-sync-panel .ps-grid>.ps-block{overflow:visible}html.web-ui body .photo-sync-panel .ps-computer{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}html.web-ui body .photo-sync-panel .ps-computer>.ps-section-head{grid-column:1/-1}html.web-ui body .photo-sync-panel .ps-computer .ps-connect{border-top:0;margin:0;padding:0}}
@media(max-width:650px){html.web-ui body .photo-sync-panel .ps-grid,html.web-ui body .photo-sync-panel .ps-computer{grid-template-columns:minmax(0,1fr)}html.web-ui body .photo-sync-panel .ps-computer>.ps-section-head{grid-column:auto}html.web-ui body .photo-sync-panel h2{font-size:17px}}

html.web-ui body .ps-card-controls{align-self:stretch;overflow:auto;box-sizing:border-box;scrollbar-width:thin}
html.web-ui body .ps-card-parts{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
html.web-ui body .ps-card-parts button[aria-pressed=true]{background:#ffdc27;border-color:#dfbd00;color:#173e58}
html.web-ui body .ps-card-editor .ps-card-preview{touch-action:none;user-select:none}
html.web-ui body .ps-card-editor .ps-card-preview>[data-card-part]{pointer-events:auto;cursor:move;touch-action:none}
html.web-ui body .ps-card-editor .ps-card-preview>[data-card-selected]{outline:2px dashed #2184ba;outline-offset:-2px}
html.web-ui body .ps-card-editor .ps-card-preview>[data-card-part]:focus-visible{outline:3px solid #2184ba;outline-offset:-3px}
html.web-ui body .ps-card-editor .ps-card-preview>.ps-card-handle{position:absolute;z-index:10;display:grid;place-items:center;width:24px;height:24px;box-sizing:border-box;border:2px solid #ac9100;border-radius:6px;background:#ffdc27;color:#173e58;font-size:19px;font-weight:700;cursor:nwse-resize;touch-action:none}
html.web-ui body .ps-card-editor .ps-card-preview>.ps-card-handle:focus-visible{outline:3px solid #2184ba}
html.web-ui body .ps-card-dragging,html.web-ui body .ps-card-dragging>[data-card-part]{cursor:grabbing!important}

/* Image selection belongs to the live card editor; native file picker remains accessible. */
html.web-ui body .ps-card-upload{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
html.web-ui body .ps-card-upload .ps-card-load{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:34px!important;padding:7px 14px;border:1px solid #e0bf06;border-radius:12px;background:#ffdc27;cursor:pointer;overflow:hidden;font-weight:700}
html.web-ui body .ps-card-upload .ps-card-load input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%!important;margin:0!important;cursor:pointer}
html.web-ui body .ps-card-load:focus-within{outline:3px solid #2184ba;outline-offset:2px}
html.web-ui body .ps-card-upload p{flex-basis:100%;font-size:12px;line-height:1.4;margin:0;color:#416885;overflow-wrap:anywhere}

html.web-ui body #app .workspace dialog.photo-sync-panel .ps-card-upload label.ps-card-load{min-height:36px!important;font-size:13px!important;padding:7px 14px!important;border-radius:12px;min-width:140px;box-sizing:border-box}
