.s96ip-admin { margin:0; background:#f5f6f5; font:16px/1.55 system-ui,sans-serif; }
.s96ip { --ink:#17383b; --muted:#526566; --line:#dce5e3; --wash:#f6f8f7; color:var(--ink); }
.s96ip *, .s96ip *::before, .s96ip *::after { box-sizing:border-box; }
.s96ip [hidden] { display:none !important; }
.s96ip-admin > main.s96ip { box-sizing:border-box; width:min(100%, 920px); margin:auto; padding:24px clamp(14px,4vw,32px) 90px; }
.s96ip nav { margin:0 0 20px; }
.s96ip h1 { font-size:clamp(26px,5vw,42px); line-height:1.12; letter-spacing:-.035em; margin:14px 0 24px; }
.s96ip h2 { margin:0 0 15px; font-size:clamp(21px,4vw,29px); line-height:1.2; }
.s96ip h3 { font-size:17px; line-height:1.3; margin:0; }
.s96ip a { color:var(--ink); text-underline-offset:3px; }
.s96ip .s96ip-button { display:inline-flex; justify-content:center; text-align:center; align-items:center; padding:10px 17px; min-height:44px; background:#214c45; color:white; border:1px solid #214c45; border-radius:9px; font:inherit; font-weight:650; cursor:pointer; text-decoration:none; }
.s96ip .s96ip-secondary { background:white; border-color:#a8beb7; color:#214c45; }
.s96ip :focus-visible { outline:2px solid #0877bd; outline-offset:3px; }
.s96ip :disabled { opacity:.45; cursor:default; }
.s96ip-panel, .s96ip-filters { background:white; border:1px solid var(--line); border-radius:18px; padding:clamp(16px,4vw,28px); margin:0 0 14px; min-width:0; }
.s96ip-note { color:var(--muted); font-size:14px; }
.s96ip label,.s96ip legend { font-weight:600; }
.s96ip-panel>label,.s96ip-row>label { display:block; margin:0 0 13px; }
.s96ip input:not([type=checkbox]):not([type=file]),.s96ip textarea,.s96ip select { display:block; width:100%; min-width:0; max-width:100%; margin:5px 0; border:1px solid #bacdc7; border-radius:8px; color:#17383b; background:white; font:inherit; font-size:16px; padding:9px 12px; }
.s96ip-heading,.s96ip-actions,.s96ip-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; justify-content:space-between; }
.s96ip-heading { margin-bottom:15px; }
.s96ip-heading h1,.s96ip-heading h2 { margin:0; }
.s96ip-actions { justify-content:flex-start; }
.s96ip-actions p { flex-basis:100%; min-height:1.4em; margin:0; }
.s96ip-actions .s96ip-editor-links { display:flex; flex:1 1 100%; flex-wrap:wrap; gap:10px; margin:3px 0 0; padding-top:12px; border-top:1px solid var(--line); }
.s96ip-editor-links a { flex:0 1 auto; }
.s96ip-project-lists { display:flex; flex-wrap:wrap; gap:8px; }
.s96ip .s96ip-project-lists [aria-current="page"] { background:#214c45; border-color:#214c45; color:white; }
.s96ip-list-address { display:block; color:var(--muted); font-size:14px; }
.s96ip-list-state { display:block; }
.s96ip-review-note { background:#eff6f2; border:1px solid var(--line); border-radius:10px; padding:12px 16px; }
#s96ip-editor { overflow-wrap:anywhere; }
#s96ip-editor .s96ip-button, #s96ip-editor .s96ip-chips > * { max-width:100%; min-width:0; }
.s96ip .s96ip-upload { cursor:pointer; min-height:75px; border:1px dashed #76968c; background:#eff6f2; border-radius:12px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:13px 16px; }
.s96ip-upload input { margin-top:6px; max-width:100%; font-size:16px; }
.s96ip .s96ip-upload.is-drag-over { background:#dfefe6; border-color:#214c45; outline:2px solid #214c45; outline-offset:-2px; }
.s96ip-media-options { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:12px; }
.s96ip-media-options label { display:flex; align-items:center; gap:8px; margin:0; }
.s96ip-media-options input[type="checkbox"] { width:auto; margin:0; }
#s96ip-media-status:empty { display:none; }
.s96ip-upload-progress { margin:14px 0; padding:13px 16px; border:1px solid var(--line); border-radius:12px; background:var(--wash); }
.s96ip-upload-progress p { margin:0; overflow-wrap:anywhere; }
.s96ip-upload-progress progress { display:block; width:100%; height:12px; margin:8px 0; accent-color:#214c45; }
.s96ip-grid,.s96ip-photos { display:grid; gap:12px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.s96ip-grid article,.s96ip-photos article { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:white; }
.s96ip-grid a { display:block; height:100%; text-decoration:none; }
.s96ip-grid article { text-align:center; transition:box-shadow .18s ease, border-color .18s ease; }
.s96ip-grid article h3 { font-weight:700; }
.s96ip-grid article:has(a:focus-visible) { border-color:#78969d; box-shadow:0 0 0 2px #78969d; }
@media (hover:hover) {
    .s96ip-grid article:hover { border-color:#bdcbd0; box-shadow:0 0 0 1px #203b4410, 0 0 16px #203b4426; }
}
@media (prefers-reduced-motion:reduce) { .s96ip-grid article { transition:none; } }
.s96ip-grid img,.s96ip-photos img { width:100%; aspect-ratio:4/3; display:block; object-fit:cover; background:var(--wash); }
.s96ip-grid article div,.s96ip-photos article div { padding:10px; }
.s96ip-grid article p { font-size:14px; color:var(--muted); margin:5px 0; }
.s96ip-photos article div,.s96ip-chips { display:flex; flex-wrap:wrap; gap:6px; }
.s96ip-photos button,.s96ip-chips button,.s96ip-chips label,.s96ip-slider-nav button,.s96ip-lightbox button { padding:6px 10px; min-height:40px; border:1px solid var(--line); background:var(--wash); border-radius:8px; font:inherit; color:var(--ink); cursor:pointer; }
.s96ip-photos button { font-size:13px; }
.s96ip-photos button[aria-pressed=true],.s96ip-chips label:has(input:checked) { background:#dceee7; border-color:#7cac9d; }
.s96ip fieldset { border:none; padding:0; margin:0 0 16px; min-width:0; }
.s96ip legend { padding:0; margin:0 0 7px; }
.s96ip-chips label { display:inline-flex; gap:5px; align-items:center; font-weight:500; }
.s96ip-chips input { accent-color:#214c45; }
.s96ip-row,.s96ip-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; }
.s96ip details summary { cursor:pointer; }
.s96ip-list { display:flex; justify-content:space-between; background:white; border:1px solid var(--line); border-radius:10px; padding:13px 16px; margin-bottom:8px; text-decoration:none; }
.s96ip-project-row { display:flex; gap:8px; margin-bottom:8px; }
.s96ip-project-row .s96ip-list { flex:1 1 auto; min-width:0; gap:12px; margin:0; overflow-wrap:anywhere; }
.s96ip-trash-action { display:flex; margin:0; }
.s96ip-trash-action button { border:1px solid #efd0d0; border-radius:10px; padding:8px 12px; background:#fff; color:#a42930; font:inherit; font-weight:650; cursor:pointer; }
.s96ip-trash-notice { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:14px; }
@media (pointer:coarse) {
    .s96ip-project-row { --swipe-action-width:100px; display:block; position:relative; overflow:hidden; border-radius:10px; }
    .s96ip-project-row .s96ip-list { position:relative; z-index:1; touch-action:pan-y; transition:transform .18s ease; }
    .s96ip-project-row.s96ip-swipe-open .s96ip-list,
    .s96ip-project-row:has(.s96ip-trash-action button:focus-visible) .s96ip-list { transform:translateX(calc(-1 * var(--swipe-action-width))); }
    .s96ip-trash-action { position:absolute; inset:0 0 0 auto; width:var(--swipe-action-width); }
    .s96ip-trash-action button { width:100%; border:0; background:#ad2933; color:white; }
}
@media (prefers-reduced-motion:reduce) {
    .s96ip-project-row .s96ip-list { transition:none; }
}
.s96ip-collection { padding:24px 0; margin:18px auto; max-width:1280px; }
.s96ip-project { max-width:1080px; margin:0 auto 40px; }
.s96ip-slider { background:#f4f5f4; border-radius:14px; overflow:hidden; }
.s96ip-slider figure { margin:0; }
.s96ip-slider figure img { width:100%; max-height:70vh; display:block; object-fit:contain; }
.s96ip-slider-nav { display:flex; gap:18px; justify-content:center; align-items:center; padding:8px; }
.s96ip-slider-nav button { font-size:25px; background:white; min-width:47px; }
.s96ip-lightbox { border:none; border-radius:12px; padding:8px; background:white; max-width:96vw; margin:auto; }
.s96ip-lightbox::backdrop { background:#10201ee0; }
.s96ip-lightbox img { display:block; max-width:90vw; max-height:82vh; margin:auto; }
.s96ip-specs { display:grid; grid-template-columns:minmax(110px,1fr) 3fr; gap:12px; margin:20px 0; }
.s96ip-specs dd { margin:0; display:flex; flex-wrap:wrap; gap:5px 12px; }
.s96ip-palette { padding:16px; }
.s96ip-palette h3,.s96ip-palette .s96ip-grid { margin-bottom:12px; }
@media(max-width:680px) {
    .s96ip-grid,.s96ip-photos,.s96ip-row,.s96ip-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .s96ip-collection { padding:16px 0; }
}
@media(max-width:409px) {
    .s96ip-filters,.s96ip-row { grid-template-columns:minmax(0,1fr); }
    .s96ip-grid article div { padding:8px; }
    .s96ip-grid h3 { font-size:15px; overflow-wrap:anywhere; }
}
@media(max-width:430px) {
    #s96ip-editor .s96ip-row { grid-template-columns:minmax(0,1fr); }
    #s96ip-editor .s96ip-actions, #s96ip-editor .s96ip-editor-links { gap:8px; }
    #s96ip-editor .s96ip-actions .s96ip-button { padding-inline:12px; }
}
.s96ip-page { width:min(94%, 1280px); margin:32px auto 70px; }

.s96ip-project {
    width:min(94%, 1430px);
    max-width:none;
    margin:clamp(20px,3vw,44px) auto 60px;
}
.s96ip-project a.s96ip-project-back { display:inline-flex; align-items:center; min-height:38px; text-decoration:none; }
.s96ip-project-nav { display:flex; flex-wrap:wrap; align-items:center; gap:4px 24px; }
.s96ip-project-back:hover { text-decoration:underline !important; }
.s96ip-project-layout { display:grid; grid-template-columns:minmax(0,1.52fr) minmax(270px,1fr); gap:clamp(22px,4.5vw,68px); align-items:start; }
.s96ip-project-text-only { grid-template-columns:minmax(0,1fr); }
.s96ip-project-info { min-width:0; padding:clamp(20px,3vw,40px); background:#f7f7f8; border:1px solid #e5e8e8; border-radius:18px; }
.s96ip-project-info h1 { margin:0 0 18px; overflow-wrap:anywhere; }
.s96ip-project-info .s96ip-note { margin:0 0 10px; }
.s96ip-project-info .s96ip-specs { grid-template-columns:1fr; gap:5px; }
.s96ip-project-info .s96ip-specs dt { margin-top:10px; padding-top:10px; border-top:1px solid #e0e4e2; color:#526566; }
.s96ip [data-s96ip-slider] { display:flex; align-items:flex-start; gap:clamp(8px,1.3vw,16px); background:none; overflow:visible; border-radius:0; min-width:0; }
.s96ip-thumbs { display:flex; flex-direction:column; flex:none; gap:8px; width:clamp(57px,6vw,80px); max-height:min(74vh,900px); overflow:auto; padding:3px; }
.s96ip-thumbs button { display:block; flex:none; width:100%; aspect-ratio:1; border:2px solid transparent; padding:2px; background:white; border-radius:8px; cursor:pointer; }
.s96ip-thumbs button[aria-pressed=true] { border-color:#214c45; }
.s96ip-thumbs img { display:block; width:100%; height:100%; object-fit:cover; border-radius:5px; }
.s96ip-stage { flex:1; min-width:0; }
.s96ip-stage figure { position:relative; width:fit-content; max-width:100%; margin:0 auto; background:#f7f7f8; border-radius:14px; isolation:isolate; }
.s96ip-stage figure>a { display:block; cursor:zoom-in; }
.s96ip .s96ip-stage figure img { width:auto; height:auto; max-width:100%; max-height:min(74vh,900px); object-fit:contain; border-radius:14px; }
.s96ip-arrow,.s96ip-viewer-close { position:absolute; z-index:1; display:grid; place-items:center; width:44px; height:44px; min-height:0; margin:0; padding:0; border:1px solid #ffffffa0; border-radius:50%; background:#fff; color:#243637; cursor:pointer; box-shadow:0 2px 12px #14222333; }
.s96ip-arrow { top:50%; transform:translateY(-50%); }
.s96ip-arrow:hover,.s96ip-viewer-close:hover { background:#e7f1ee; color:#173835; }
.s96ip-arrow::before { content:''; width:10px; height:10px; border-right:2px solid currentColor; border-top:2px solid currentColor; transform:rotate(45deg); }
.s96ip-prev { left:10px; }
.s96ip-prev::before { transform:rotate(-135deg); }
.s96ip-next { right:10px; }
.s96ip-slide-counter,.s96ip-expand { position:absolute; bottom:10px; z-index:1; display:grid; place-items:center; padding:4px 10px; border-radius:30px; color:white; background:#182728db; font-size:13px; pointer-events:none; }
.s96ip-slide-counter { left:10px; }
.s96ip-expand { right:10px; width:44px; height:44px; font-size:25px; padding:0; }
.s96ip-project-viewer { position:fixed; inset:0; margin:0; padding:0; max-width:none; max-height:none; width:100%; height:100dvh; border:0; border-radius:0; background:#111818; overflow:hidden; }
.s96ip-project-viewer[open] { display:grid; place-items:center; }
.s96ip-project-viewer img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.s96ip-project-viewer::backdrop { background:#111818; }
.s96ip-project-viewer .s96ip-viewer-close { right:14px; top:14px; font-size:28px; line-height:1; }
.s96ip-project-viewer .s96ip-slide-counter { left:50%; transform:translateX(-50%); }
@media(max-width:740px) {
    .s96ip-project-layout { grid-template-columns:minmax(0,1fr); }
    .s96ip [data-s96ip-slider] { flex-direction:column-reverse; align-items:stretch; }
    .s96ip-thumbs { flex-direction:row; width:100%; max-height:none; padding:3px 3px 8px; }
    .s96ip-thumbs button { width:58px; }
    .s96ip .s96ip-stage figure img { max-height:66svh; }
}

.s96ip [data-s96ip-slider] { justify-content:center; }
.s96ip-stage { flex:0 1 auto; }
.s96ip-stage figure[style] { width:min(var(--photo-width), calc(var(--photo-ratio) * min(74vh, 900px))); aspect-ratio:var(--photo-ratio); }
.s96ip-stage figure[style]>a { height:100%; }
.s96ip .s96ip-stage figure[style] img { width:100%; height:100%; }
@media(max-width:740px) {
    .s96ip-stage figure[style] { width:min(var(--photo-width), calc(var(--photo-ratio) * 66svh)); }
}

html:has(.s96ip-project-viewer[open]) { overflow:hidden; }
.s96ip-project-viewer { overscroll-behavior:contain; touch-action:pinch-zoom; }
.s96ip [data-s96ip-slider] button:is(.s96ip-arrow,.s96ip-viewer-close) {
    position:absolute; display:grid; place-items:center; padding:0; margin:0;
    width:44px; height:44px; min-height:0; border:0; border-radius:50%;
    background:#fff; color:#263638; line-height:1;
}
.s96ip [data-s96ip-slider] button:is(.s96ip-arrow,.s96ip-viewer-close):is(:hover,:focus,:active) {
    background:#fff; color:#263638;
}
.s96ip [data-s96ip-slider] button.s96ip-arrow::before {
    content:''; display:block; width:8px; height:14px; margin:0; border:0;
    background:currentColor; transform:none;
    clip-path:polygon(12% 0, 100% 50%, 12% 100%, 0 89%, 69% 50%, 0 11%);
}
.s96ip [data-s96ip-slider] button.s96ip-prev::before { transform:scaleX(-1); }
.s96ip-viewer-close i { display:block; position:relative; width:18px; height:18px; }
.s96ip-viewer-close i::before,.s96ip-viewer-close i::after {
    content:''; position:absolute; left:0; top:calc(50% - .75px);
    width:100%; height:1.5px; background:currentColor; transform:rotate(45deg);
}
.s96ip-viewer-close i::after { transform:rotate(-45deg); }
@media (prefers-reduced-motion:no-preference) {
    .s96ip-viewer-close i { transition:transform .4s ease; }
    .s96ip-viewer-close:is(:hover,:focus-visible) i { transform:rotate(180deg); }
}

.s96ip-project-viewer img { user-select:none; }
.s96ip-project-viewer.s96ip-zoomed img { cursor:grab; }
.s96ip-project-viewer.s96ip-zoomed img:active { cursor:grabbing; }

.s96ip-project-viewer[open] { grid-template: minmax(0,1fr) / minmax(0,1fr); }
.s96ip-project-viewer img { max-height:100dvh; min-height:0; }

.s96ip-thumbs button,.s96ip-photos article { position:relative; }
.s96ip-play,.s96ip-thumb-play,.s96ip-editor-video { position:absolute; pointer-events:none; color:white; background:#183034df; }
.s96ip-play { top:50%; left:50%; transform:translate(-50%,-50%); width:60px; height:60px; display:grid; place-items:center; border-radius:50%; font-size:22px; }
.s96ip-inline-video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; border-radius:inherit; background:#111818; }
.s96ip-has-inline-video .s96ip-play,.s96ip-has-inline-video .s96ip-expand { display:none; }
.s96ip-has-inline-video .s96ip-slide-counter { bottom:48px; }
.s96ip-has-inline-video [data-s96ip-video]::after { content:'⛶'; position:absolute; z-index:1; top:10px; right:10px; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#182728e8; color:white; font-size:25px; }
.s96ip-has-inline-video [data-s96ip-video]:focus-visible::after { outline:2px solid #0877bd; outline-offset:2px; }
.s96ip-thumb-play,.s96ip-editor-video { bottom:6px; right:6px; padding:2px 6px; border-radius:5px; font-size:12px; }
.s96ip-editor-video { bottom:auto; top:8px; }
.s96ip-photos article .s96ip-retouch-review { border-top:1px solid var(--line); align-items:center; }
.s96ip-editor-photo-link { display:block; cursor:zoom-in; }
.s96ip-editor-photo-link:focus-visible { outline:3px solid #0873ad; outline-offset:-3px; }
.s96ip-editor-preview { touch-action:auto; }
.s96ip-editor-preview-stage { display:flex; width:100%; height:100%; overflow:hidden; }
.s96ip-editor-preview-stage img { flex:none; margin:auto; }
.s96ip-editor-preview-actual .s96ip-editor-preview-stage { overflow:auto; }
.s96ip-editor-preview-actual img { max-width:none; max-height:none; }
.s96ip-editor-preview-error,.s96ip-editor-preview-loading {
    position:absolute; z-index:1; margin:0; padding:8px 14px;
    border-radius:8px; background:#182728e8; color:white; pointer-events:none;
}
.s96ip-editor-preview-compare {
    position:absolute; z-index:1; left:14px; top:14px; display:flex; gap:3px;
    padding:3px; border-radius:22px; background:#fff; box-shadow:0 1px 8px #0004;
}
.s96ip-editor-preview-compare button {
    min-height:38px; padding:0 10px; border:0; border-radius:20px;
    background:transparent; color:#243637; font:inherit; cursor:pointer;
}
.s96ip-editor-preview-compare button[aria-pressed="true"] { background:#214c45; color:white; }
.s96ip-editor-preview .s96ip-editor-preview-zoom {
    position:absolute; z-index:1; right:68px; top:14px; min-height:44px; padding:0 12px;
    border:1px solid #ffffffa0; border-radius:22px; background:#fff; color:#243637; font:inherit; cursor:pointer;
}
.s96ip-editor-preview .s96ip-editor-preview-zoom[aria-pressed="true"] { background:#214c45; color:white; }
.s96ip-editor-preview .s96ip-editor-preview-zoom:disabled { opacity:.55; cursor:default; }
.s96ip-retouch-review p { flex-basis:100%; margin:0; overflow-wrap:anywhere; }
.s96ip-retouch-review a { padding:6px; }
.s96ip-project-viewer video { display:block; width:auto; height:auto; max-width:100%; max-height:100dvh; object-fit:contain; }
.s96ip-project-viewer:has(video:not([hidden])) .s96ip-slide-counter { bottom:58px; pointer-events:none; }
.s96ip-review-row{display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:14px;margin-bottom:10px}
.s96ip-review-row img{width:62px;height:62px;object-fit:cover;border-radius:6px}
.s96ip-review-merge-row { position:relative; }
.s96ip-review-merge-row:has([data-review-merge-button]:not([hidden])) .s96ip-review-row { padding-inline-end:142px; }
.s96ip-review-merge-row .s96ip-review-merge-button {
    position:absolute; right:13px; top:50%; transform:translateY(-50%);
    min-height:44px; padding:7px 10px; font-size:14px;
}
.s96ip-review-row[draggable="true"] { cursor:grab; }
.s96ip-review-dragging .s96ip-review-row { opacity:.55; }
.s96ip-review-drop-target .s96ip-review-row {
    background:#e1f0e9; border-color:#347767; box-shadow:0 0 0 2px #347767;
}
.s96ip-review-merge-dialog {
    width:min(520px, calc(100% - 28px)); max-height:calc(100dvh - 28px); margin:auto;
    color:var(--ink); overflow:auto;
}
.s96ip-review-merge-dialog::backdrop { background:#10201e99; }
.s96ip-review-merge-dialog label { display:block; margin-block:12px; }
.s96ip-review-merge-dialog [data-review-merge-source] { display:block; overflow-wrap:anywhere; }
.s96ip-review-merge-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.s96ip-review-error { padding:12px 16px; border:1px solid #dab1af; border-radius:10px; background:#fff2f0; color:#802e30; }
@media (max-width:540px) {
    .s96ip-review-merge-row:has([data-review-merge-button]:not([hidden])) .s96ip-review-row { padding:12px 11px 57px; }
    .s96ip-review-merge-row .s96ip-review-merge-button {
        top:auto; bottom:7px; right:10px; transform:none; min-height:42px;
        background:transparent; border-color:transparent;
    }
}
.s96ip-review-details{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;margin:0 0 16px}
.s96ip-review-details dt{font-weight:600}.s96ip-review-details dd{margin:0;overflow-wrap:anywhere}
.s96ip-review-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;margin:14px 0}
.s96ip-review-photos label{display:flex;flex-direction:column;align-items:center;gap:6px}
.s96ip-review-photos img{width:72px;height:84px;object-fit:cover;border-radius:6px}
