#sobatPhotoDialog{box-sizing:border-box;width:1100px;max-width:calc(100vw - 16px);max-height:94dvh;padding:0;border:1px solid #cbd5e1;border-radius:14px;background:#f1f5f9;color:#172b45;overflow:auto}
#sobatPhotoDialog::backdrop{background:#08192ccc}
#sobatPhotoDialog *{box-sizing:border-box}
#sobatPhotoDialog .sp-head{position:sticky;top:0;z-index:2;background:#fff;padding:14px 18px;border-bottom:1px solid #d3deea;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#sobatPhotoDialog h2{margin:0;font-size:20px;color:#163958}
#sobatPhotoDialog .sp-head button{margin-left:auto}
#sobatPhotoDialog .sp-tools{padding:14px 18px;display:flex;flex-wrap:wrap;gap:10px;align-items:end;background:#fff}
#sobatPhotoDialog label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600}
#sobatPhotoDialog input,#sobatPhotoDialog select,#sobatPhotoDialog textarea{background:white;color:#172b45;border:1px solid #afbed0;border-radius:6px;padding:8px;font:inherit;max-width:100%}
#sobatPhotoDialog button{border:1px solid #acc0d1;border-radius:7px;padding:9px 12px;background:#fff;color:#163958;font:inherit;cursor:pointer;min-height:38px}
#sobatPhotoDialog button.sp-primary{background:#176e55;color:#fff;border-color:#176e55}
#sobatPhotoDialog button:disabled{opacity:.5;cursor:wait}
#sobatPhotoDialog button.sp-danger{color:#b42332}
#sobatPhotoDialog .sp-status{margin:0;padding:10px 18px;font-size:13px;white-space:pre-wrap}
#sobatPhotoDialog .sp-help{padding:0 18px 10px;font-size:12px;line-height:1.6;margin:0}
#sobatPhotoDialog .sp-pages{padding:0 12px 18px}
#sobatPhotoDialog .sp-sheet{background:#fff;padding:3.8%;margin:12px auto 22px;max-width:794px;border:1px solid #d6dee7;box-shadow:0 3px 14px #182d4010;aspect-ratio:210/297;display:flex;flex-direction:column;color:#172b45}
#sobatPhotoDialog .sp-sheet-title{font-size:18px;font-weight:700;overflow-wrap:anywhere;min-height:26px;max-height:55px;overflow:hidden}
#sobatPhotoDialog .sp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:2.6%;flex:1;min-height:0;margin:12px 0}
#sobatPhotoDialog .sp-slot{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden;background:#f4f7fb}
#sobatPhotoDialog .sp-meta{background:#fff;padding:5px 7px;font-size:11px;min-height:43px;flex-shrink:0;cursor:pointer;white-space:pre-wrap;overflow-wrap:anywhere}
#sobatPhotoDialog .sp-meta small{display:block;font-size:10px;color:#51647a}
#sobatPhotoDialog .sp-image{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;color:#8393a5;font-size:13px;overflow:hidden}
#sobatPhotoDialog .sp-image img{position:absolute;width:100%;height:100%;object-fit:contain;cursor:pointer}
#sobatPhotoDialog .sp-foot{font-size:10px;color:#51647a;text-align:right}
#sobatPhotoDialog .sp-edit{padding:14px 18px;background:#fff;border-top:1px solid #cbd5e1}
#sobatPhotoDialog .sp-edit-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}
#sobatPhotoDialog .sp-edit textarea{width:100%;resize:vertical;min-height:64px}
#sobatPhotoDialog .sp-edit-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
#sobatPhotoDialog .sp-selected{outline:3px solid #168963;outline-offset:1px}
#sobatPhotoDialog [hidden]{display:none!important}
#sobatPhotoButton{background:#176e55!important;color:white!important;border:1px solid #0d5742!important}
@media(max-width:600px){#sobatPhotoDialog .sp-tools{padding:10px;gap:8px}#sobatPhotoDialog .sp-tools label{width:calc(50% - 8px)}#sobatPhotoDialog .sp-tools button{flex:1;font-size:12px}#sobatPhotoDialog .sp-head{padding:10px}#sobatPhotoDialog h2{font-size:17px}#sobatPhotoDialog .sp-edit-fields{grid-template-columns:1fr 1fr}#sobatPhotoDialog .sp-edit-fields label:first-child{grid-column:1/-1}#sobatPhotoDialog .sp-meta{font-size:9px;padding:3px;min-height:34px}#sobatPhotoDialog .sp-meta small{font-size:8px}#sobatPhotoDialog .sp-sheet-title{font-size:13px}#sobatPhotoDialog .sp-image{font-size:10px}#sobatPhotoDialog .sp-foot{font-size:8px}#sobatPhotoDialog .sp-slot{border-radius:7px}#sobatPhotoDialog .sp-pages{padding:0 4px 10px}}
@media(max-width:600px){#sobatPhotoDialog .sp-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}#sobatPhotoDialog .sp-tools label{width:auto;min-width:0}#sobatPhotoDialog .sp-tools label:has(#spTitle){grid-column:1/-1}#sobatPhotoDialog .sp-tools button{width:100%;min-width:0;min-height:40px;white-space:normal;overflow-wrap:normal;word-break:normal;padding:9px 7px}#sobatPhotoDialog .sp-tools input,#sobatPhotoDialog .sp-tools select{width:100%;min-width:0}}
/* Fix25: stable light editing surface and aligned controls in both host themes. */
html body #sobatPhotoDialog{color-scheme:light!important;background:#f1f5f9!important;color:#172b45!important}
html body #sobatPhotoDialog *{-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
html body #sobatPhotoDialog :is(h2,h3,label,p,strong,.sp-sheet-title,.sp-meta){color:#172b45!important;opacity:1!important}
html body #sobatPhotoDialog :is(.sp-meta small,.sp-foot,.sp-image){color:#51647a!important;opacity:1!important}
html body #sobatPhotoDialog :is(input,select,textarea,option){background:#fff!important;color:#172b45!important;border-color:#afbed0!important}
html body #sobatPhotoDialog :is(input,textarea)::placeholder{color:#60748a!important;opacity:1!important}
html body #sobatPhotoDialog button{background:#fff!important;color:#163958!important;border-color:#acc0d1!important}
html body #sobatPhotoDialog button.sp-primary{background:#176e55!important;color:#fff!important;border-color:#176e55!important}
html body #sobatPhotoDialog button.sp-danger{color:#aa2132!important}
html body #sobatPhotoDialog .sp-tools{align-items:end;gap:10px}
html body #sobatPhotoDialog .sp-tools :is(input,select,button){height:42px!important;min-height:42px!important;max-height:42px!important;line-height:20px!important;margin:0!important;font-size:13px!important}
html body #sobatPhotoDialog .sp-tools button{display:flex;align-items:center;justify-content:center;padding:9px 12px!important}
html body #sobatPhotoDialog .sp-tools label{gap:6px;font-size:12px;line-height:18px}
html body #sobatPhotoDialog .sp-tools label:has(#spAlbums){width:235px;min-width:0}
html body #sobatPhotoDialog #spNew{width:235px;flex:none}
html body #sobatPhotoDialog :is(button,input,select,textarea):focus-visible{outline:3px solid #2582a5!important;outline-offset:2px}
@media(max-width:600px){html body #sobatPhotoDialog .sp-tools{gap:10px 8px}html body #sobatPhotoDialog .sp-tools label:has(#spAlbums),html body #sobatPhotoDialog #spNew{width:100%;min-width:0}html body #sobatPhotoDialog #spNew{align-self:end}html body #sobatPhotoDialog .sp-tools button{padding:9px 7px!important;font-size:12px!important}html body #sobatPhotoDialog .sp-status{padding:12px 10px 6px;line-height:1.6}html body #sobatPhotoDialog .sp-help{padding:0 10px 12px;line-height:1.65}}
@media(min-width:601px){html body #sobatPhotoDialog .sp-tools{display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}html body #sobatPhotoDialog .sp-tools label:has(#spAlbums),html body #sobatPhotoDialog #spNew{grid-column:span 3;width:100%!important;min-width:0}html body #sobatPhotoDialog .sp-tools label:has(#spTitle){grid-column:span 6;min-width:0}html body #sobatPhotoDialog .sp-tools :is(input,select){width:100%;min-width:0}html body #sobatPhotoDialog .sp-tools>button:not(#spNew){grid-column:span 3;width:100%;min-width:0}html body #sobatPhotoDialog .sp-tools:has(#spDownload:not([hidden]))>button:not(#spNew){grid-column:span 2}}

html body #sobatPhotoDialog .sp-photo-sources{margin:0 18px 12px;padding:14px;background:#e9f3fa;border:1px solid #8daec4;border-radius:10px;color:#163958}
html body #sobatPhotoDialog .sp-photo-sources[hidden]{display:none!important}
html body #sobatPhotoDialog .sp-photo-sources>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
html body #sobatPhotoDialog .sp-photo-sources button{min-height:42px;padding:10px 14px;border:1px solid #acc0d1;border-radius:7px}
@media(max-width:600px){html body #sobatPhotoDialog .sp-photo-sources{margin:0 10px 10px}html body #sobatPhotoDialog .sp-photo-sources button{flex:1 1 150px}}

/* Revisi 479: identity and creator appear once, in the first-page header. */
html body #sobatPhotoDialog .sp-report-fields{background:#fff;border:1px solid #afbed0;border-radius:9px;margin:0 18px 12px;padding:12px;color:#17334c}
html body #sobatPhotoDialog .sp-report-fields summary{cursor:pointer;font-size:13px;font-weight:700}
html body #sobatPhotoDialog .sp-report-fields>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
html body #sobatPhotoDialog .sp-report-fields label{min-width:0}
html body #sobatPhotoDialog .sp-report-fields input{width:100%;min-width:0}
html body #sobatPhotoDialog .sp-report-fields p{font-size:12px;margin-bottom:0}
#sobatPhotoDialog .sp-report-header{display:grid;grid-template-columns:minmax(0,1fr) 38%;gap:14px;margin-bottom:8px;flex-shrink:0}
#sobatPhotoDialog .sp-report-identity{font:12px/1.5 Arial,sans-serif;overflow-wrap:anywhere;color:#17334c}
#sobatPhotoDialog .sp-report-identity>div:first-child{font-weight:bold}
#sobatPhotoDialog .sp-report-header .sp-sheet-title{font-size:15px;margin-top:10px}
#sobatPhotoDialog .sp-report-header .awp-footer-preview{width:100%;margin:0;font-size:10px}
@media(max-width:600px){html body #sobatPhotoDialog .sp-report-fields{margin:0 10px 10px}html body #sobatPhotoDialog .sp-report-fields>div{grid-template-columns:1fr}#sobatPhotoDialog .sp-report-header{gap:8px}#sobatPhotoDialog .sp-report-identity{font-size:8px}#sobatPhotoDialog .sp-report-header .sp-sheet-title{font-size:10px}#sobatPhotoDialog .sp-report-header .awp-footer-preview{font-size:8px}}

/* Fix70: top aligned header, fitted author block and compact photo gap. */
html body #sobatPhotoDialog .sp-report-header{align-items:start!important;column-gap:12px!important;row-gap:0!important;margin:0 0 4px!important}
html body #sobatPhotoDialog .sp-report-identity{font:10pt/13pt Arial,sans-serif!important;margin:0!important;padding:0!important}
html body #sobatPhotoDialog .sp-report-header .sp-sheet-title{min-height:0!important;margin:5px 0 0!important;font-size:12pt!important;line-height:15pt!important}
html body #sobatPhotoDialog .sp-report-header .awp-footer-preview{min-width:0!important;overflow:hidden!important;margin:0!important;padding:0!important;align-self:start!important}
html body #sobatPhotoDialog .sp-grid{margin-top:4px!important}
@media(max-width:600px){html body #sobatPhotoDialog .sp-report-identity{font-size:7px!important;line-height:1.3!important}html body #sobatPhotoDialog .sp-report-header .sp-sheet-title{font-size:9px!important;line-height:1.3!important;margin-top:3px!important}}
html body #sobatPhotoDialog .sp-report-identity{font-size:calc(10pt * var(--sp-header-scale,1))!important;line-height:calc(13pt * var(--sp-header-scale,1))!important}

/* Fix79: visible, ordered steps with a separate destructive action. */
html body #sobatPhotoDialog .sp79-tools{display:grid!important;grid-template-columns:1.25fr 1fr 1fr!important;gap:12px!important;align-items:stretch!important}
html body #sobatPhotoDialog .sp79-step{display:flex!important;flex-direction:column!important;gap:8px!important;padding:12px!important;border:1px solid #abc0d1!important;border-radius:9px!important;background:#f4f8fc!important;color:#15364d!important;min-width:0!important}
html body #sobatPhotoDialog .sp79-step h3{margin:0 0 3px!important;font:700 14px/1.3 Arial!important;color:#15364d!important;background:transparent!important;border:0!important;padding:0!important}
html body #sobatPhotoDialog .sp79-step p{margin:0!important;font:12px/1.4 Arial!important;color:#4a6477!important}
html body #sobatPhotoDialog .sp79-step label{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
html body #sobatPhotoDialog .sp79-step :is(button,input,select){box-sizing:border-box!important;width:100%!important;min-height:39px!important;margin:0!important;border-radius:6px!important;font-size:13px!important}
html body #sobatPhotoDialog .sp79-danger{grid-column:1/-1!important;display:flex!important;justify-content:flex-end!important;border-top:1px solid #d7e0e9!important;padding-top:9px!important}
html body #sobatPhotoDialog .sp79-danger button{color:#a11c26!important;background:#ffebee!important;border:1px solid #dfa2a9!important;min-height:38px!important}
html body #sobatPhotoDialog button[hidden]{display:none!important}
@media(max-width:760px){html body #sobatPhotoDialog .sp79-tools{grid-template-columns:1fr!important}}
