/* PRG-DEC-019 media panel styles. Local fonts only; scoped rm- classes. */
/* PRG029 Claude v2 PhotoBooth tokens and responsive comparison. No remote runtime/fonts. */
.rm-panel{--rm-ai:#5B3FB0;--rm-ai-surface:#F7F4FE;--rm-ai-border:#D9CEF7}
.rm-pb{padding:16px;margin:16px 0;border:1px solid #E1E4EA;border-radius:12px;background:#fff}
.rm-pb-note{font-size:13px;line-height:1.5;color:#4A5263;margin:8px 0;overflow-wrap:anywhere}
.rm-pb-warning{font-size:14px;line-height:1.5;color:#5C3800;background:#FFF6E6;border:1px solid #B07200;border-radius:8px;padding:12px}
.rm-pb-card{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--rm-ai-border);border-radius:10px;background:var(--rm-ai-surface)}
.rm-pb-badge{font-size:12px;color:var(--rm-ai);font-weight:600}.rm-pb-job{font-size:14px;font-weight:600;margin:0}
.rm-pb-dialog{font-family:"IBM Plex Sans",system-ui,sans-serif;color:#161B26;background:#fff;border:1px solid #C9CED8;border-radius:14px;padding:24px;width:calc(100% - 32px);max-width:1400px;max-height:calc(100dvh - 32px);overflow:auto}
.rm-pb-dialog::backdrop{background:rgba(22,27,38,.6)}
.rm-pb-dialog button{font:inherit;min-height:44px;padding:12px;border:1px solid #C9CED8;border-radius:8px;background:#fff;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.rm-pb-dialog button:disabled{background:#E1E4EA;color:#4A5263;cursor:not-allowed}
.rm-pb-dialog :where(button,input,section):focus-visible{outline:2px solid #1F45B8;outline-offset:2px}
.rm-pb-dialog [hidden]{display:none!important}
.rm-pb-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rm-pb-pane{min-width:0}.rm-pb-pane h4{margin:12px 0}
.rm-pb-image-region{overflow:auto;max-height:55dvh;border:1px solid #C9CED8;background:#F6F7F9;border-radius:10px}
.rm-pb-image{display:block;width:100%;max-width:none;height:auto;object-fit:contain}
.rm-pb-check{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 0;font-size:14px}
.rm-pb-check input{width:24px;min-width:24px;min-height:24px;flex:0 0 24px;margin:0;accent-color:#5B3FB0}
.rm-pb-check span{flex:1;min-width:0;overflow-wrap:anywhere}
.rm-pb-decisions{display:flex;flex-direction:column;gap:8px;margin-top:16px;max-width:380px}
.rm-pb-zoom{display:flex;align-items:center;gap:12px;margin:16px 0}.rm-pb-zoom input{width:100%;min-height:44px}
.rm-pb-switch{display:none}
@media(min-width:1120px){.rm-pb-dialog[open]:has(.rm-pb-panels){display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px}.rm-pb-dialog[open]:has(.rm-pb-panels)>h3,.rm-pb-dialog[open]:has(.rm-pb-panels)>p{grid-column:1/-1}.rm-pb-dialog .rm-pb-panels{grid-column:1;grid-row:3}.rm-pb-dialog .rm-pb-zoom{grid-column:1;grid-row:4}.rm-pb-dialog .rm-pb-decisions{grid-column:2;grid-row:3 / span 2;max-width:none;margin-top:0}}
@media(max-width:1119px){.rm-pb-decisions{max-width:none}}
@media(max-width:759px){.rm-pb-dialog{padding:16px;width:100%;max-width:none;max-height:95dvh;border-radius:14px 14px 0 0;margin-bottom:0}.rm-pb-panels{grid-template-columns:1fr}.rm-pb-pane[data-mobile-hidden=true]{display:none}.rm-pb-switch{display:flex;gap:8px}.rm-pb-switch button{flex:1}.rm-pb{padding:12px}.rm-pb-dialog button{width:100%}}
@media(max-width:359px){.rm-pb-dialog{padding:8px}.rm-pb-zoom{flex-direction:column;align-items:stretch}}
.rm-panel{--rm-bg:#F6F7F9;--rm-surface:#fff;--rm-text:#161B26;--rm-secondary:#4A5263;--rm-muted:#6B7385;--rm-border:#E1E4EA;--rm-strong:#C9CED8;--rm-action:#1F45B8;--rm-hover:#183A9C;--rm-selected:#E8EEFC;font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--rm-text);background:var(--rm-bg);box-sizing:border-box;width:100%;max-width:1240px;margin:0 auto;padding:16px;border:1px solid var(--rm-border);border-radius:14px}
.rm-panel *,.rm-panel *::before,.rm-panel *::after{box-sizing:border-box}
.rm-panel[hidden]{display:none!important}
.rm-panel [hidden]{display:none!important}
.rm-panel :where(button,input,select){font:inherit;color:inherit}
.rm-panel :where(button){min-height:44px;cursor:pointer;border-radius:8px;border:1px solid var(--rm-strong);background:var(--rm-surface);padding:8px 12px;font-weight:600;font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;text-align:left}
.rm-panel :where(button):hover:not(:disabled){border-color:var(--rm-action)}
.rm-panel :where(button):disabled{opacity:.55;cursor:not-allowed}
.rm-panel :where(a,button,input,select,[tabindex]):focus-visible{outline:2px solid var(--rm-action);outline-offset:2px}
.rm-panel .rm-primary{background:var(--rm-action);border-color:var(--rm-action);color:#fff}
.rm-panel .rm-primary:hover:not(:disabled){background:var(--rm-hover);border-color:var(--rm-hover)}
.rm-panel .rm-secondary{background:var(--rm-surface);border-color:var(--rm-strong);color:var(--rm-text)}
.rm-panel .rm-mono{font-family:ui-monospace,"IBM Plex Mono",monospace;font-size:12px;color:var(--rm-muted);overflow-wrap:anywhere}
.rm-header{display:flex;flex-direction:column;gap:8px;min-height:56px;justify-content:center;padding:12px 16px;margin:-16px -16px 16px;background:var(--rm-surface);border-bottom:1px solid var(--rm-border);border-radius:14px 14px 0 0}
.rm-brand{font-weight:800;letter-spacing:.14em;font-size:14px;color:var(--rm-text)}
.rm-dealer{font-size:12px;color:var(--rm-secondary);overflow-wrap:anywhere}
.rm-title{font-size:20px;line-height:1.2;margin:0;color:var(--rm-text);overflow-wrap:anywhere}
.rm-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.rm-toolbar .rm-upload{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:1 1 auto;min-width:0}
.rm-toolbar .rm-upload input[type=file]{min-width:0;max-width:100%;font-size:13px;color:var(--rm-secondary)}
.rm-toolbar .rm-upload button{flex:1 1 auto}
.rm-status{min-height:20px;font-size:13px;color:var(--rm-secondary);margin:0 0 8px;overflow-wrap:anywhere}
.rm-status[data-state=error]{color:#B42318}
.rm-status[data-state=warning]{color:#8A5A00}
.rm-status[data-state=offline]{color:var(--rm-muted)}
.rm-counts{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--rm-secondary);margin:0 0 16px}
.rm-counts span{font-variant-numeric:tabular-nums}
.rm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.rm-card{display:flex;flex-direction:column;gap:12px;background:var(--rm-surface);border:1px solid var(--rm-border);border-radius:10px;padding:12px;overflow:visible;min-width:0}
.rm-card[data-selected=true]{border-color:var(--rm-action);background:var(--rm-selected)}
.rm-panel .rm-thumbnail{padding:0;width:100%;overflow:hidden}
.rm-image{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:10px;border:1px solid var(--rm-border);background:var(--rm-bg)}
.rm-meta{display:flex;flex-direction:column;gap:8px;min-width:0}
.rm-state{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--rm-secondary);overflow-wrap:anywhere}
.rm-state[data-state=pending]{color:#8A5A00}
.rm-state[data-state=approved]{color:#0B6B3A}
.rm-state[data-state=rejected]{color:#B42318}
.rm-cover{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--rm-action);background:var(--rm-selected);border:1px solid var(--rm-action);border-radius:6px;padding:2px 8px;align-self:flex-start}
.rm-actions{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.rm-actions :where(button){width:100%}
.rm-savebar{display:flex;flex-direction:column;gap:8px;margin-top:16px;padding:12px;background:var(--rm-surface);border:1px solid var(--rm-border);border-radius:10px;position:static;z-index:auto;box-shadow:none}
.rm-savebar :where(button){width:100%}
.rm-save-feedback{margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.rm-workspace{display:block}.rm-next-step{padding:16px;border:1px solid var(--rm-border);border-radius:12px;background:#fff;margin-bottom:16px;min-width:0;overflow-wrap:anywhere}
.rm-card[data-dirty=true]{border-color:var(--rm-action)}
@media(min-width:1120px){.rm-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.rm-workspace>.rm-next-step{grid-column:2;grid-row:1;margin:0}.rm-workspace>.rm-grid{grid-column:1;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr))}}
.rm-v3-chips{display:flex;flex-wrap:wrap;gap:8px}.rm-v3-chip{display:inline-flex;padding:4px 8px;border:1px solid #C9CED8;border-radius:6px;font-size:12px;align-self:flex-start}
.rm-pb-generation{font-size:13px;color:#4A5263}.rm-pb-generation summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.rm-pb-dialog button[aria-pressed=true]{border-color:#1F45B8;background:#E8EEFC;color:#142F7A}
.rm-pb-dialog .rm-pb-decisions>button[aria-pressed]{min-height:64px}
.rm-pb-dialog .rm-pb-decisions>label.rm-pb-check{border-top:1px solid #E1E4EA}
.rm-pb-dialog .rm-pb-pane:only-child{grid-column:1/-1}
.rm-dialog{border:1px solid var(--rm-strong);border-radius:14px;padding:20px;max-width:420px;width:calc(100% - 32px);background:var(--rm-surface);color:var(--rm-text);font-family:"IBM Plex Sans",system-ui,sans-serif}
.rm-dialog::backdrop{background:rgba(22,27,38,.45)}
.rm-dialog:modal,.rm-viewer:modal,.rm-pb-dialog:modal{overscroll-behavior:contain}
.rm-dialog::backdrop,.rm-viewer::backdrop,.rm-pb-dialog::backdrop{overflow:hidden;overscroll-behavior:contain}
.rm-conflict-current{padding:12px;border:1px solid #83929f;border-radius:10px;background:#f1f5f5}
.rm-conflict-current h4{margin:0 0 8px}
.rm-dialog .rm-danger{background:#fff;color:#8c1d18;border-color:#b42318}
.rm-dialog .rm-actions{margin-top:16px}
.rm-dialog :where(button){width:100%}
.rm-viewer{max-width:900px;width:calc(100% - 32px);padding:16px;border-radius:14px;border:1px solid var(--rm-strong);background:var(--rm-surface);color:var(--rm-text)}
.rm-viewer::backdrop{background:rgba(22,27,38,.6)}
.rm-viewer .rm-image{aspect-ratio:auto;object-fit:contain;max-height:70vh;height:auto;width:100%}
.rm-future{margin-top:16px;padding:12px;border:1px dashed var(--rm-strong);border-radius:10px;font-size:13px;color:var(--rm-muted);background:var(--rm-surface)}
@media (prefers-reduced-motion:reduce){.rm-panel *,.rm-panel *::before,.rm-panel *::after{transition:none!important;animation:none!important}}
@media (max-width:1024px){.rm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.rm-panel{padding:12px;border-radius:10px}.rm-header{margin:-12px -12px 12px;padding:12px;min-height:56px;border-radius:10px 10px 0 0}.rm-grid{grid-template-columns:1fr}.rm-toolbar .rm-upload,.rm-toolbar .rm-upload input[type=file],.rm-toolbar .rm-upload button,.rm-toolbar :where(button){width:100%;flex:1 1 100%}.rm-savebar :where(button),.rm-actions :where(button){width:100%}}
@media (max-width:390px){.rm-panel{padding:8px}.rm-header{margin:-8px -8px 12px;padding:8px}.rm-card,.rm-dialog,.rm-viewer{padding:8px}.rm-title{font-size:18px}}
@supports selector(:has(*)){main:has(#media-panel:not([hidden])){display:block;max-width:1240px}main:has(#media-panel:not([hidden]))>section:not(#media-panel):not(.ws-main){display:none!important}main:has(#media-panel:not([hidden]))>#media-panel{display:block;grid-column:1/-1}}

/* Gallery: DeepSeek candidate, Codex integrated scope overrides. */
.rm-workspace-gallery{color:#142c43;background:#fff;font-family:inherit;display:block}
.rm-workspace-gallery .rm-gallery{display:grid;grid-template-columns:minmax(0,1fr) 250px;grid-template-rows:auto auto auto auto;gap:12px;padding:12px;box-sizing:border-box;min-width:0}
.rm-workspace-gallery .rm-gallery-toolbar{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;align-items:center;border:1px solid #d8e0e6;border-radius:4px;padding:8px}
.rm-workspace-gallery .rm-gallery-mode{min-height:44px;min-width:44px;padding:0 12px;border:1px solid #142c43;border-radius:4px;background:#fff;color:#142c43;font:inherit;cursor:pointer}
.rm-workspace-gallery .rm-gallery-mode[aria-pressed="true"]{background:#00766c;color:#fff;border-color:#00766c}
.rm-workspace-gallery .rm-gallery-mode:disabled{opacity:.45;cursor:not-allowed}
.rm-workspace-gallery .rm-gallery-mode:focus-visible,.rm-workspace-gallery .rm-gallery-retry:focus-visible,.rm-workspace-gallery .rm-thumbnail:focus-visible{outline:3px solid #00766c;outline-offset:2px}
.rm-workspace-gallery .rm-gallery-status,.rm-workspace-gallery .rm-gallery-photolabel{margin:0;font-size:14px}
.rm-workspace-gallery .rm-gallery-status{flex:1 1 100%}
.rm-workspace-gallery .rm-gallery-stage{grid-column:1;grid-row:2;min-width:0;display:flex;flex-direction:column;gap:8px;border:1px solid #d8e0e6;border-radius:4px;padding:8px;box-sizing:border-box}
.rm-workspace-gallery .rm-gallery-stage img.rm-gallery-img{display:block;width:100%;max-width:100%;aspect-ratio:4/3;object-fit:contain;background:#f5f7f8;border-radius:4px}
.rm-workspace-gallery .rm-gallery-compare{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.rm-workspace-gallery .rm-gallery-viewer-note{margin:0;font-size:13px;color:#142c43}
.rm-workspace-gallery .rm-gallery-retry{min-height:44px;padding:0 16px;border:1px solid #142c43;border-radius:4px;background:#fff;color:#142c43;font:inherit;cursor:pointer;align-self:flex-start}
.rm-workspace-gallery .rm-gallery-contactheading{grid-column:1;grid-row:3;margin:0;font-size:15px;font-weight:600}
.rm-workspace-gallery .rm-gallery-gridwrap{grid-column:1;grid-row:4;min-width:0;overflow:visible}
.rm-workspace-gallery .rm-gallery-gridwrap ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.rm-workspace-gallery .rm-gallery-gridwrap li{min-width:0}
.rm-workspace-gallery .rm-thumbnail{min-height:44px;width:100%;padding:2px;border:1px solid #d8e0e6;border-radius:4px;background:#fff;cursor:pointer}
.rm-workspace-gallery .rm-thumbnail[aria-pressed="true"]{border-color:#00766c;box-shadow:inset 0 0 0 2px #00766c}
.rm-workspace-gallery .rm-thumbnail img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.rm-workspace-gallery .rm-gallery-side{grid-column:2;grid-row:2/span 3;min-width:0;display:flex;flex-direction:column;gap:12px;border:1px solid #d8e0e6;border-radius:4px;padding:8px;box-sizing:border-box}
.rm-workspace-gallery .rm-gallery-review{min-width:0}
@media (max-width:760px){
.rm-workspace-gallery .rm-gallery{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;padding:8px;gap:10px}
.rm-workspace-gallery .rm-gallery-toolbar,.rm-workspace-gallery .rm-gallery-stage,.rm-workspace-gallery .rm-gallery-contactheading,.rm-workspace-gallery .rm-gallery-gridwrap,.rm-workspace-gallery .rm-gallery-side{grid-column:1;grid-row:auto}
.rm-workspace-gallery .rm-gallery-compare{grid-template-columns:1fr}
.rm-workspace-gallery .rm-gallery-gridwrap ul{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.rm-gallery-enabled{--rm-text:#142c43;--rm-action:#00766c;--rm-selected:#eef7f6;background:white;max-width:1440px;border:0;border-radius:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
.rm-gallery-enabled .rm-header{border-radius:0;background:white}
.rm-gallery-enabled .rm-toolbar{display:flex;flex-wrap:wrap;gap:12px}
.rm-gallery-enabled .rm-toolbar>button{width:auto}
.rm-gallery-enabled .rm-savebar{display:flex;flex-wrap:wrap;gap:8px;border-radius:4px;box-shadow:none}
.rm-gallery-enabled .rm-save-feedback{flex-basis:100%}
.rm-workspace-gallery .rm-gallery-toolbar{grid-column:1;border:0;padding:0}
.rm-workspace-gallery .rm-gallery-status{font-size:13px;color:#4a5263}
.rm-workspace-gallery .rm-gallery-stage{padding:0;border:0;min-height:180px}
.rm-workspace-gallery .rm-gallery-side{grid-row:1 / span 4;border:0;border-left:1px solid #d8e0e6;border-radius:0;padding:0 0 0 16px}
.rm-workspace-gallery .rm-next-step{position:static;border:0;padding:0;box-shadow:none;background:white;max-width:100%}
.rm-workspace-gallery .rm-gallery-gridwrap .rm-card{padding:0;min-width:0;max-width:none;border:0;background:none;display:flex;flex-direction:column;gap:4px;border-radius:0}
.rm-gallery-caption{font-size:12px;color:#4a5263}
.rm-workspace-gallery .rm-gallery-review .rm-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.rm-workspace-gallery .rm-gallery-review .rm-actions{display:flex;flex-direction:column;gap:8px}
.rm-workspace-gallery .rm-gallery-review .rm-pb-card{background:white;border:0;border-top:1px solid #d8e0e6;border-radius:0;padding:12px 0;margin-top:12px}
.rm-workspace-gallery .rm-gallery-review .rm-pb-badge{color:#00766c}
.rm-gallery-stage figure{margin:0;min-width:0}
.rm-gallery-stage figcaption{font-size:12px;color:#4a5263;margin-top:6px}
.rm-workspace-gallery .rm-gallery-stage .rm-gallery-img{max-height:520px;object-fit:contain}
.rm-gallery-enabled .rm-pb{border:0;border-bottom:1px solid #d8e0e6;border-radius:0;padding:8px 0;margin:8px 0}
.rm-gallery-enabled [hidden]{display:none!important}
@media(max-width:760px){.rm-workspace-gallery .rm-gallery-side{grid-row:auto;grid-column:1;border-left:0;border-top:1px solid #d8e0e6;padding:16px 0 0}.rm-gallery-enabled .rm-toolbar .rm-upload{width:100%}.rm-gallery-enabled .rm-savebar>button{flex:1 1 100%}.rm-workspace-gallery .rm-gallery-toolbar{grid-column:1}}
.rm-workspace-gallery .rm-grid .rm-card-details{display:none}

/* Spec182: progressive disclosure, same native controls and state machines. */
.rm-panel summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:600;overflow-wrap:anywhere}
.rm-panel summary:focus-visible{outline:2px solid var(--rm-action);outline-offset:2px}
.rm-tools{flex:1;min-width:0}.rm-tools[open]>.rm-upload{margin:8px 0}
.rm-tools>button,.rm-save-options>button,.rm-photo-options>button{display:block;margin:8px 0;width:100%}
.rm-save-options{flex-basis:100%;border-top:1px solid var(--rm-border)}
.rm-save-title{flex-basis:100%;font-size:15px;margin:0}
.rm-workspace-gallery .rm-gallery-side .rm-savebar{display:block;width:100%;min-width:0}
.rm-workspace-gallery .rm-gallery-side .rm-savebar>*+*{margin-top:8px}
.rm-photo-options{margin-top:12px;border-top:1px solid var(--rm-border)}
.rm-photo-options>.rm-mono{display:block;overflow-wrap:anywhere;font-size:12px}
.rm-pb-step{font-size:14px;font-weight:600;margin:0}
.rm-workspace-gallery .rm-gallery-review .rm-meta{margin-bottom:8px}
.rm-workspace-gallery .rm-gallery-review .rm-pb-card{border-top:0;padding-top:0;margin-top:0}
.rm-workspace-gallery .rm-gallery-review .rm-pb-review-action{width:100%;text-align:center;min-height:48px}
@media(max-width:760px){.rm-workspace-gallery .rm-gallery-side{grid-row:auto}.rm-tools{flex-basis:100%}.rm-gallery-enabled .rm-toolbar>button{width:100%}}

.rb-backdrops{border:0;padding:0;margin:18px 0}.rb-backdrop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rb-backdrop-grid>label{position:relative;border:1px solid #ced8df;border-radius:12px;padding:10px;cursor:pointer;background:white}.rb-backdrop-grid>label:has(input:checked){border:2px solid #148f94;padding:9px}.rb-backdrop-grid>label img,.rb-gray-swatch{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.rb-gray-swatch{background:linear-gradient(175deg,#b6b7b8 0%,#dddedd 63%,#c7c8c7 64%,#a8aaa9 100%);border:1px solid #d6dadd}.rb-backdrop-grid>label span,.rb-backdrop-grid>label small{display:block;margin-top:7px}.rb-backdrop-grid>label small{color:#55616a;font-size:.8rem}.rb-backdrop-grid>label:focus-within{outline:2px solid #148f94;outline-offset:3px}@media(max-width:360px){.rb-backdrop-grid{grid-template-columns:1fr}}

/* M248 capture owns its Shadow DOM; no standalone camera selectors escape. */
body.rgc248-camera-open{overflow:hidden}
.rm-panel .rm-capture-primary{margin-left:auto;flex:0 0 auto;min-height:44px;background:#087f79;border-color:#087f79;color:#fff}
.rm-panel .rgc248-host{display:block;min-width:0}
.rm-panel .rgc248-host[hidden]{display:none!important}

/* Vehicle photo workspace, based on the approved ROBATO prototype. */
.rm-gallery-enabled {
  --rm-text: #142735;
  --rm-action: #0c6960;
  --rm-hover: #09554e;
  --rm-selected: #e4f1ed;
  --rm-border: #d5ddda;
  background: #f5f4f0;
  padding: clamp(12px, 2vw, 24px);
}
.rm-gallery-enabled .rm-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 12px;
  padding: 8px 0 12px;
  background: transparent;
}
.rm-gallery-enabled .rm-header .rm-brand { display: none; }
.rm-gallery-enabled .rm-header button { grid-row: 1 / span 2; }
.rm-gallery-enabled .rm-header .rm-title { grid-column: 2; grid-row: 1; }
.rm-gallery-enabled .rm-header .rm-mono { color: var(--rm-secondary); }
.rm-gallery-enabled > .rm-status:empty,
.rm-workspace-gallery .rm-gallery-status:empty,
.rm-workspace-gallery .rm-gallery-review:empty,
.rm-workspace-gallery .rm-counts:empty { display: none; }
.rm-workspace-gallery { background: transparent; }
.rm-workspace-gallery .rm-gallery {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  grid-template-rows: auto;
  gap: 8px 24px;
  padding: 0;
  align-items: start;
}
.rm-gallery-visual { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rm-gallery-frame { position: relative; min-width: 0; }
.rm-workspace-gallery .rm-gallery-stage { min-height: 0; }
.robato-icon { display:block;width:20px;height:20px;flex:0 0 auto; }
.rm-gallery-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 5px 9px;
  background: white;
  border: 1px solid #c9d8d3;
  border-radius: 6px;
  color: #23443e;
  font-size: 13px;
  font-weight: 650;
  pointer-events: none;
}
.rm-gallery-badges { position:absolute;inset:auto 12px 15px;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none; }
.rm-gallery-badge .robato-icon { width:16px;height:16px; }
.rm-gallery-badge.rm-gallery-cover-badge { background:#16212b;border-color:#16212b;color:white; }
.rm-gallery-badge[data-decision=pending] { color: #694100; }
.rm-gallery-badge[data-decision=reject] { color: #94291b; }
.rm-workspace-gallery .rm-gallery-stage .rm-gallery-img { background: #e8ece9; border-radius: 12px; }
.rm-workspace-gallery .rm-gallery-contactheading { font-size: 13px; }
.rm-workspace-gallery .rm-gallery-gridwrap ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px;
  margin: -4px;
}
.rm-workspace-gallery .rm-gallery-gridwrap li { flex: 0 0 clamp(76px, 19vw, 116px); }
.rm-workspace-gallery .rm-thumbnail { border-radius: 8px; aspect-ratio: 4 / 3; }
.rm-workspace-gallery .rm-thumbnail img { border-radius: 6px; }
.rm-workspace-gallery .rm-gallery-mode { border-color: var(--rm-border); border-radius: 7px; }
.rm-workspace-gallery .rm-gallery-side {
  grid-row: 1;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  padding: 14px;
  background: white;
}
.rm-workspace-gallery .rm-counts { margin: 0; gap: 6px 10px; }
.rm-workspace-gallery .rm-gallery-side .rm-toolbar { align-items: start; gap: 8px; margin: 0; }
.rm-workspace-gallery .rm-tools { flex: 1 1 130px; }
.rm-workspace-gallery .rm-tools summary { padding-inline: 8px; }
.rm-workspace-gallery .rm-capture-primary { flex: 0 0 auto; margin: 0; }
.rm-gallery-enabled[data-media-task=review] .rm-capture-primary,
.rm-gallery-enabled[data-media-task=save] .rm-capture-primary,
.rm-gallery-enabled[data-media-task=save] .rm-pb-review-action {
  background: white;
  border-color: var(--rm-border);
  color: var(--rm-text);
}
.rm-gallery-enabled .rm-pb { margin: 0; padding: 0; }
.rm-workspace-gallery .rm-next-step { margin: 0; }
.rm-workspace-gallery .rm-next-step .rm-title { font-size: 15px; }
.rm-workspace-gallery .rm-next-step p { margin: 4px 0; }
.rm-workspace-gallery .rm-gallery-side .rm-savebar { margin: 0; }
.rm-pb-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e1e4ea;
}
.rm-pb-dialog .rm-pb-zone button { width: auto; }
.rm-pb-dialog .rm-pb-approve:not(:disabled) { color: white; background: #0c6960; border-color: #0c6960; }
@media (max-width: 760px) {
  .rm-workspace-gallery .rm-gallery { display: flex; flex-direction: column; gap: 9px; }
  .rm-workspace-gallery .rm-gallery > :not([hidden]) { width: 100%; }
  .rm-workspace-gallery .rm-gallery-side { padding: 10px; }
  .rm-workspace-gallery .rm-gallery-toolbar { gap: 5px; }
  .rm-workspace-gallery .rm-gallery-mode { padding: 0 8px; }
  .rm-workspace-gallery .rm-gallery-photolabel { font-size: 12px; }
  .rm-gallery-enabled .rm-header .rm-back { width: 44px; padding: 0; text-align: center; font-size: 0; }
  .rm-gallery-enabled .rm-header .rm-back::before { content: "←"; font-size: 21px; }
  .rm-gallery-enabled .rm-gallery-side .rm-toolbar > button { width: auto; }
}

.rm-gallery-enabled { --rm-border:#c6c5bd; --rm-text:#16212b; background:#f3f2ee; }
.rm-gallery-enabled .rm-header {
  grid-template-columns:44px minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  column-gap:10px;
  padding:10px 0 14px;
  border-bottom:1px solid var(--rm-border);
}
.rm-gallery-enabled .rm-header .rm-title { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(17px,3vw,22px); }
.rm-gallery-enabled .rm-header .rm-tools { grid-area:1/3/3/4;position:relative; }
.rm-gallery-enabled .rm-header .rm-tools > summary { list-style:none;width:44px;font-size:0;text-align:center; }
.rm-gallery-enabled .rm-header .rm-tools > summary::before { content:"⋮";font-size:25px; }
.rm-gallery-enabled .rm-header .rm-tools[open] {
  z-index:3;
}
.rm-gallery-enabled .rm-header .rm-tools-body { position:absolute;right:0;top:42px;width:min(310px,85vw);background:white;padding:12px;box-shadow:0 3px 18px #0002;border:1px solid var(--rm-border);border-radius:10px;max-height:65dvh;overflow:auto; }
.rm-gallery-enabled .rm-header .rm-tools-body>.rm-upload { display:grid;gap:8px; }
.rm-gallery-enabled .rm-header .rm-tools-body>button { margin-top:10px;width:100%; }
.rm-gallery-enabled .rm-header .rm-tools input[type=file] { width:100%; }
.rm-gallery-enabled .rm-header .rm-tools .rm-upload button { width:100%; }
.rm-gallery-enabled .rm-header .rm-back { width:44px;padding:0;font-size:0;border:0;background:transparent; }
.rm-gallery-enabled .rm-header .rm-back::before { content:"←";font-size:22px; }
.rm-gallery-enabled .rm-header .rm-mono { font-size:13px;overflow-wrap:anywhere; }
.rm-gallery-enabled .rm-gallery-photolabel {
  position:absolute;top:12px;right:12px;padding:5px 10px;border-radius:6px;
  background:#16212bd9;color:white;font-weight:700;pointer-events:none;
}
.rm-gallery-enabled .rm-gallery-stage figcaption { display:none; }
.rm-gallery-enabled .rm-gallery-side { background:transparent;border:0;padding:0;gap:12px; }
.rm-gallery-enabled .rm-gallery-side .rm-open-review { min-height:52px; }
.rm-photo-entry-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.rm-gallery-enabled .rm-photo-entry-actions button { width:100%;margin:0; }
.rm-gallery-enabled .rm-photo-entry-actions button,
.rm-gallery-enabled .rm-open-background { display:flex;align-items:center;justify-content:center;gap:8px; }
.rm-gallery-enabled .rm-photo-entry-actions button { min-height:54px;font-weight:750; }
.rm-gallery-enabled .rm-photo-entry-actions button span { min-width:0;overflow-wrap:break-word; }
.rm-photo-steps { padding:0;margin:4px 0;display:flex;flex-wrap:wrap;gap:5px;align-items:center;list-style:none;font-size:13px; }
.rm-photo-step { display:flex;align-items:center;gap:5px; }
.rm-photo-step+.rm-photo-step::before { content:"";width:clamp(8px,3vw,20px);height:2px;background:#bdbab2;margin-right:2px; }
.rm-photo-step-number { display:grid;place-items:center;width:29px;height:29px;border:1px solid #919aa1;border-radius:50%;background:#fff; }
.rm-photo-step[aria-current=step] { font-weight:750; }
.rm-photo-step[aria-current=step] .rm-photo-step-number { background:#16212b;border-color:#16212b;color:#fff; }
.rm-photo-step:has(~[aria-current=step]) .rm-photo-step-number { background:#0c6960;border-color:#0c6960;color:white; }
.rm-gallery-enabled .rm-gallery-side .rm-gallery-review { border-top:1px solid var(--rm-border);padding-top:12px; }
.rm-gallery-enabled .rm-gallery-side:has(.rm-open-review:not([hidden])) .rm-gallery-review .rm-pb-review-action { display:none; }
.rm-gallery-enabled .rm-gallery-side .rm-next-step[data-kind=pending],
.rm-gallery-enabled .rm-gallery-side .rm-next-step[data-kind=done] { display:none; }
.rm-gallery-enabled[data-media-task=review] .rm-savebar:has(.rm-primary:disabled):not(:has(.rm-save-options[open])) { border-top:1px solid var(--rm-border); }
.rm-upload-warning { background:#fff4de;color:#674000;padding:12px;border:1px solid #b47622;border-radius:12px; }
.rm-upload-warning p { margin:0 0 10px; }
.rm-upload-warning button { width:100%; }
.rm-upload-sheet { max-width:min(490px,100vw);border-radius:20px 20px 0 0; }
.rm-upload-sheet .rm-actions { display:flex;flex-direction:column-reverse; }
.rm-upload-files { list-style:none;margin:12px 0;padding:0; }
.rm-upload-files li { border-top:1px solid var(--rm-border);padding:10px 0;overflow-wrap:anywhere; }
@media(max-width:760px){
  .rm-upload-sheet { position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:85dvh;margin:0;padding-bottom:max(14px,env(safe-area-inset-bottom)); }
}

.rm-panel .rm-review-screen {
  width:min(820px,100vw);max-width:100vw;height:min(850px,100dvh);max-height:100dvh;
  padding:0;background:#f3f2ee;color:#16212b;border:0;border-radius:14px;overflow:hidden;
}
.rm-panel .rm-review-screen[open] { display:flex;flex-direction:column; }
.rm-review-heading,.rm-review-footer { flex:none;background:white;padding:12px 16px;border-bottom:1px solid #c6c5bd; }
.rm-review-heading { display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center; }
.rm-review-title { min-width:0; }
.rm-review-title h3,.rm-review-title p { margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.rm-review-title p { font-size:13px;margin-top:4px; }
.rm-review-screen .rm-review-back { padding:0;width:44px;font-size:22px;border:0; }
.rm-review-body { min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px; }
.rm-review-body .rm-pb-switch { display:flex;gap:0;margin:0 0 10px; }
.rm-review-body .rm-pb-switch button { flex:1 1 auto;width:auto;border-radius:0; }
.rm-review-body .rm-pb-switch button:first-child { border-radius:8px 0 0 8px; }
.rm-review-body .rm-pb-switch button:last-child { border-radius:0 8px 8px 0; }
.rm-review-body .rm-pb-switch [aria-pressed=true] { color:white;background:#16212b;border-color:#16212b; }
.rm-review-body .rm-pb-panels { position:relative;display:grid;grid-template-columns:minmax(0,1fr);margin:0;background:#e9e8e2;border-radius:9px;overflow:hidden; }
.rm-review-body .rm-pb-pane { position:relative;grid-area:1/1;margin:0;padding:0;min-width:0; }
.rm-review-body .rm-pb-pane[data-mobile-hidden=true] { display:none; }
.rm-review-body .rm-pb-pane h4 { position:absolute;z-index:1;top:8px;left:8px;margin:0;padding:5px 8px;background:#16212bd9;color:white;border-radius:5px; }
.rm-review-body .rm-pb-pane[data-kind=result] h4 { left:auto;right:8px; }
.rm-review-body .rm-pb-image-region { aspect-ratio:4/3;max-height:430px;min-height:0;background:#e9e8e2; }
.rm-review-body .rm-pb-image { width:100%;max-width:none;height:auto;min-height:100%;object-fit:contain;margin:0; }
.rm-review-body [data-mode=compare] .rm-pb-pane[data-kind=result] { clip-path:inset(0 0 0 var(--rm-split,50%)); }
.rm-review-body [data-mode=compare] .rm-pb-pane[data-kind=original] { clip-path:inset(0 calc(100% - var(--rm-split,50%)) 0 0); }
.rm-review-divider { display:none; }
.rm-review-body [data-mode=compare] .rm-review-divider { display:block;position:absolute;bottom:6px;left:7%;width:86%;accent-color:#0c6960; }
.rm-review-body .rm-v3-chips { display:flex;flex-wrap:wrap;gap:6px 12px;margin:10px 0;font-size:13px;align-items:center; }
.rm-review-rail { display:flex;gap:7px;overflow:auto;padding:3px 2px;margin:0 0 12px; }
.rm-review-rail .rm-review-thumb { min-width:82px;width:82px;min-height:58px;padding:3px;font-size:12px;background:#fff;border:1px solid #a7afb1;border-radius:7px;color:#16212b; }
.rm-review-rail .rm-review-thumb[aria-pressed=true] { outline:2px solid #16212b; }
.rm-review-thumb img { width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px; }
.rm-review-body .rm-pb-decisions { display:flex;flex-direction:column;gap:9px; }
.rm-review-body .rm-pb-decisions h4,.rm-review-background h4 { margin:12px 0 0;padding-top:12px;border-top:1px solid #d4d1c8; }
.rm-review-versions,.rm-review-decision,.rm-review-footer-actions { display:flex;gap:8px;flex-wrap:wrap; }
.rm-review-versions>button,.rm-review-decision>button,.rm-review-footer-actions>button { flex:1 1 120px;min-height:48px; }
.rm-review-versions>[aria-pressed=true] { border:2px solid #0c6960;background:#e4f1ed; }
.rm-review-screen .rm-review-footer { border-bottom:0;border-top:1px solid #c6c5bd;padding-bottom:max(12px,env(safe-area-inset-bottom)); }
.rm-review-feedback { margin:0 0 8px;font-size:14px;font-weight:700; }
.rm-review-background .rm-pb-card { background:transparent;border:0;padding:8px 0; }
@media(max-width:760px){.rm-panel .rm-review-screen { width:100vw;height:100dvh;margin:0;border-radius:0; }}
.rm-review-screen .rm-review-footer { width:100%;margin:0;color:#16212b; }
.rm-review-screen .rm-review-footer-actions { display:grid;grid-template-columns:minmax(0,4fr) minmax(0,5fr); }
.rm-review-screen .rm-review-footer-actions button { width:100%;font-size:15px;font-weight:750; }
.rm-review-screen .rm-review-footer-actions [data-action=make-cover] { grid-column:1/-1; }
.rm-pb-process { margin:0;padding-left:22px;display:grid;gap:5px; }
.rm-pb-process li[data-complete=true] { color:#0c6960;font-weight:700; }
.rm-review-screen .rm-review-footer-actions .rm-secondary:not(.rm-primary){background:#fff;border-color:#83929f;color:#16212b}
.rm-review-screen .rm-review-footer-actions .rm-primary{background:#0c6960;border-color:#0c6960;color:#fff}
.rm-review-screen .rm-review-footer-actions .rm-primary:hover:not(:disabled){background:#09564f;border-color:#09564f}
.rm-review-screen .rm-review-versions button[aria-pressed=true] { border:2px solid #0c6960;background:#e4f1ed;color:#124943; }
.rm-review-screen .rm-review-heading { min-height:65px; }
.rm-gallery-enabled .rm-header .rm-dealer { display:none; }
.rm-gallery-enabled .rm-photo-summary { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);margin:0 0 10px;font-size:14px; }
.rm-gallery-enabled .rm-photo-summary :is(dt,dd) { margin:0;padding:10px 0;border-bottom:1px solid #d4d1c8; }
.rm-gallery-enabled .rm-photo-summary dd { display:flex;align-items:center;justify-content:flex-end;gap:7px;text-align:right;font-weight:700;color:#16212b; }
.rm-gallery-enabled .rm-photo-summary dd .robato-icon { width:18px;height:18px; }
.rm-gallery-enabled .rm-photo-summary dd:is([data-icon=uploaded],[data-icon=approved],[data-icon=photoBooth]) { color:#0c6960; }
.rm-gallery-enabled .rm-photo-summary dd[data-icon=pending] { color:#765016; }
.rm-gallery-enabled .rm-photo-summary dd[data-icon=rejected] { color:#94291b; }
.rm-gallery-enabled .rm-photo-summary dd[data-icon=minus] { color:#405464; }
.rm-photo-detail-heading { margin:0 0 5px; }
.rm-gallery-side>.rm-pb,
.rm-gallery-side .rm-gallery-review .rm-meta { display:none; }
.rm-gallery-side:has(.rm-open-review:not([hidden])) .rm-gallery-review .rm-pb-review-action { display:none; }
.rm-gallery-side .rm-gallery-review>.rm-actions { margin-top:10px; }
.rm-gallery-enabled[data-save-controls=false] .rm-savebar { display:none; }
.rm-gallery-enabled .rm-open-background { width:100%;min-height:58px;margin:16px 0 10px;padding:14px 16px;border:2px solid #0b6e63;border-radius:12px;color:#fff;background:#15202b;font-size:18px;font-weight:750;box-shadow:0 3px 0 #0b6e63;text-align:center; }
.rm-gallery-enabled .rm-open-background:not(:disabled):hover { background:#0b6e63; }
.rm-gallery-enabled .rm-open-background:focus-visible { outline:3px solid #0b6e63;outline-offset:4px; }
.rm-gallery-enabled .rm-open-background:disabled { opacity:.55;box-shadow:none; }
.rm-gallery-enabled > .rm-status[data-state=loaded] { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.rm-gallery-enabled .rm-thumbnail { position:relative; }
.rm-gallery-enabled .rm-thumbnail[data-decision]::after,.rm-gallery-enabled .rm-thumbnail[data-cover=true]::before {
  position:absolute;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:13px;font-weight:800;pointer-events:none;
}
.rm-gallery-enabled .rm-thumbnail[data-decision=approve]::after { content:"✓";bottom:4px;right:4px;color:#0c6960;background:white; }
.rm-gallery-enabled .rm-thumbnail[data-decision=pending]::after { content:"◷";bottom:4px;right:4px;color:#765016;background:white; }
.rm-gallery-enabled .rm-thumbnail[data-decision=reject]::after { content:"×";bottom:4px;right:4px;color:#94291b;background:white; }
.rm-gallery-enabled .rm-thumbnail[data-cover=true]::before { content:"★";top:4px;left:4px;color:white;background:#16212b; }
.rm-review-body [data-mode=compare]::after { content:"";position:absolute;inset:0 auto 0 var(--rm-split,50%);width:2px;background:white;box-shadow:0 0 3px #0007;pointer-events:none; }
.rm-review-body [data-mode=compare]::before { content:"↔";position:absolute;left:var(--rm-split,50%);top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:white;color:#16212b;font-size:22px;font-weight:750;box-shadow:0 1px 5px #0006;z-index:3;pointer-events:none; }
.rm-review-body [data-mode=compare] .rm-review-divider { left:0;top:50%;transform:translateY(-50%);bottom:auto;width:100%;height:44px;padding:0;margin:0;background:transparent;border:0;appearance:none;z-index:2;cursor:ew-resize; }
.rm-review-divider::-webkit-slider-runnable-track { background:transparent; }
.rm-review-divider::-webkit-slider-thumb { appearance:none;width:1px;height:33px;background:transparent; }
.rm-review-divider::-moz-range-thumb { width:1px;height:33px;border:0;background:transparent; }

/* Final approved visual treatment: fonts, touch spacing and contextual review action. */
.rm-gallery-enabled,.rm-gallery-enabled .rm-pb-dialog,.rm-gallery-enabled .rm-dialog{font-family:"Atkinson Hyperlegible Next",system-ui,-apple-system,"Segoe UI",sans-serif}
.rm-gallery-enabled .rm-mono,.rm-review-title p,.rm-gallery-enabled .rm-photo-options>.rm-mono{font-family:"Atkinson Hyperlegible Mono",ui-monospace,monospace}
.rm-review-screen .rm-review-footer-actions[data-primary=save]:not(:has([data-action=next-photo]:not([hidden]))) .rm-review-save{grid-column:1/-1}
.rm-review-screen .rm-review-footer-actions button{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.2;min-height:48px}
.rm-gallery-enabled .rm-photo-entry-actions>button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;line-height:1.2}
.rm-gallery-enabled :is(.rm-photo-entry-actions,.rm-review-decision) .robato-icon{flex:none;width:20px;height:20px}
.rm-review-screen .rm-review-body{scroll-padding-block:12px}
.rm-review-screen .rm-review-heading{padding-top:max(12px,env(safe-area-inset-top))}
.rm-review-screen .rm-review-footer{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.rm-gallery-enabled .rm-gallery-badges{gap:8px;flex-wrap:wrap}
@media(max-width:359px){.rm-review-screen .rm-review-footer-actions{gap:8px}.rm-review-screen .rm-review-footer-actions button{font-size:14px;padding-inline:8px}.rm-review-body{padding:12px}}

/* Claude v2v review flow. Native controls, current controller and locally bundled fonts. */
.rm-panel .rm-wizard{width:min(640px,100vw);background:#f4f2ed;color:#15202b}
.rm-wizard h2,.rm-wizard h3,.rm-wizard h4{line-height:1.25}
.rm-wizard .rm-review-heading{padding:14px 20px}
.rm-wizard .rm-review-heading{grid-template-columns:44px minmax(0,1fr);min-height:0;height:auto}
.rm-wizard-form{margin:0;padding:0;border:0}
.rm-wizard-title{margin:0;font-size:20px}
.rm-wizard-subtitle{margin:4px 0 0;color:#496178;font-size:14px;overflow-wrap:anywhere}
.rm-wizard .rm-review-body{flex:1;padding:0 20px 24px}
.rm-wizard-progress{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;list-style:none;margin:0;padding:14px 20px;background:#fff}
.rm-wizard-progress li{border-top:5px solid #d5d2cc;padding-top:6px;min-width:0;font-size:13px}
.rm-wizard-progress li[data-current=true],.rm-wizard-progress li[data-complete=true]{border-color:#0b6e63}
.rm-wizard-progress strong,.rm-wizard-progress span{display:block}.rm-wizard-progress span{font-size:12px;color:#496178}
.rm-wizard-photo-nav{display:flex;justify-content:space-between;gap:8px;margin:10px 0}
.rm-wizard-photo-nav button{min-height:44px}
.rm-wizard-viewer{margin:0 -20px 18px}
.rm-wizard-panes{display:flex;min-width:0;background:#deded8;overflow:hidden}
.rm-wizard .rm-wizard-panes[data-mode=compare]::before,.rm-wizard .rm-wizard-panes[data-mode=compare]::after{display:none}
.rm-wizard-pane{position:relative;min-width:0;flex:1;background:#e4e2dd;min-height:150px}
.rm-wizard-image-region{height:260px;overflow:auto;overscroll-behavior:contain}
.rm-wizard-image-region img{display:block;width:100%;min-height:100%;object-fit:contain}
.rm-wizard-image-label{position:absolute;z-index:1;left:8px;top:8px;background:#15202be6;color:#fff;padding:5px 9px;border-radius:6px;font-size:13px;font-weight:700}
.rm-wizard-image-note{padding:20px 12px;color:#263c4c}
.rm-wizard-viewbar{display:flex;align-items:center;gap:5px;padding:8px 10px;background:#15202b;color:#fff}
.rm-wizard-viewbar>span{font-size:13px;margin-right:4px}
.rm-wizard .rm-wizard-viewbar button{flex:1;min-width:0;min-height:48px;padding:8px 6px;border-radius:9px;border:1px solid #83929f;background:transparent;color:#fff;font-size:14px;text-align:center}
.rm-wizard .rm-wizard-viewbar button[aria-pressed=true]{background:#fff;color:#15202b;border-color:#fff}
.rm-wizard .rm-wizard-viewbar button:disabled{opacity:.55}
.rm-wizard-view-note{font-size:14px;color:#496178;margin:10px 20px}
.rm-wizard-step h3{font-size:21px;margin:20px 0 12px}
.rm-wizard fieldset{border:0;padding:0;margin:0 0 22px;min-width:0}
.rm-wizard legend{font-size:17px;font-weight:700;margin-bottom:10px;padding:0}
.rm-wizard-choice{display:flex;gap:14px;align-items:center;padding:16px;margin-bottom:10px;border:1.5px solid #83929f;border-radius:14px;background:#fff;min-height:80px;cursor:pointer}
.rm-wizard-choice:has(input:checked){background:#e2f0ed;border:2.5px solid #0b6e63;padding:15px}
.rm-wizard-choice:has(input:disabled){cursor:default}
.rm-wizard input[type=radio],.rm-wizard input[type=checkbox]{appearance:auto;width:25px;height:25px;flex:none;accent-color:#0b6e63;margin:0}
.rm-wizard-choice strong,.rm-wizard-choice-note{display:block}.rm-wizard-choice strong{font-size:19px}
.rm-wizard-used{background:#15202b;color:#fff;border-radius:6px;padding:5px;font-size:12px;font-weight:700;margin-left:auto;flex:none}
.rm-wizard-choice-note,.rm-wizard-help{font-size:14px;color:#496178;line-height:1.45;margin-top:5px}
.rm-wizard .rm-wizard-current-photo{display:inline-flex;align-items:center;background:#15202b;color:#fff;border-radius:6px;padding:4px 9px;margin-top:8px;font-size:14px;font-weight:750;line-height:1.4}
.rb-backdrop-grid>label{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0}
.rb-backdrop-grid>label>input{align-self:flex-start;margin:0}
.rm-panel .rb-backdrop-grid>label>img,.rb-backdrop-grid>label>.rb-gray-swatch{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:4/3;object-fit:cover;box-sizing:border-box;flex:none;margin:0}
.rb-backdrop-grid>label>span{margin:0;line-height:1.4}
.rb-gray-swatch{position:relative}
.rb-backdrop-grid .rb-gray-swatch>small{position:absolute;left:7px;right:7px;bottom:7px;margin:0;padding:4px 6px;border-radius:4px;background:#fff;color:#243746;font-size:11px;line-height:1.35}
.rm-wizard-decisions .rm-wizard-choice{min-height:54px;padding:10px 12px;border-radius:10px;margin-bottom:8px}
.rm-wizard-decisions .rm-wizard-choice strong{font-size:16px}.rm-wizard-decisions .rm-wizard-choice-note:empty{display:none}
.rm-wizard-decisions .rm-wizard-choice:has(input:checked){padding:9px 11px}
.rm-wizard-decisions .rm-wizard-choice:has(input[value=pending]:checked){background:#fff5df;border-color:#9c6800}
.rm-wizard-decisions .rm-wizard-choice:has(input[value=reject]:checked){background:#fce8e6;border-color:#b42318}
.rm-wizard-saved-status{padding:14px;border-radius:12px;background:#e2f0ed;color:#075d54;font-weight:700}
.rm-wizard-saved-list{list-style:none;padding:0}.rm-wizard-saved-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #c9c5be;border-radius:12px;background:#fff;padding:14px;margin-bottom:12px}
.rm-wizard-saved-list p{margin:6px 0;font-size:15px}.rm-wizard-saved .rm-wizard-help{margin-block:18px}
.rm-wizard-zone{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid #dfdcd6}
.rm-wizard-zone label{display:flex;align-items:center;gap:12px;flex:1;min-height:48px}
.rm-wizard-zone button{font-size:14px;padding:8px;min-height:48px;flex:none}
.rm-wizard .rm-wizard-zone{min-width:0;gap:10px}
.rm-wizard .rm-wizard-zone label{min-width:0;flex:1 1 0;margin:0;font-size:15px}
.rm-wizard .rm-wizard-zone label span{overflow-wrap:anywhere}
.rm-wizard .rm-wizard-zone button{width:auto;max-width:110px;min-width:84px;min-height:44px;flex:0 0 auto;padding:8px 10px;text-align:center}
.rm-wizard .rm-review-body{overflow-x:hidden}
.rm-wizard .rm-wizard-image-region img{max-width:none}
.rm-wizard .rm-wizard-image-region img.rm-detail-zoom{min-height:0;height:auto;object-fit:fill}
.rm-wizard-image-label{pointer-events:none}
.rm-wizard-image-region[data-pick-detail=true]{cursor:crosshair}
.rm-detail-guide{padding:12px 16px;background:#e2f0ed;border-bottom:1px solid #9dbfba}
.rm-detail-guide p{font-size:14px;line-height:1.4;margin:8px 0}
.rm-wizard .rm-detail-guide button{width:auto;min-height:44px}
.rm-wizard-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;background:#e2f0ed;border-radius:12px;margin-bottom:22px}
.rm-wizard-summary button{font-size:14px;min-height:48px}
.rm-wizard-optional{border-top:1px solid #d5d2cc;padding:16px 0}
.rm-wizard-optional>summary{min-height:48px;cursor:pointer;font-weight:700}
.rm-wizard-footer .rm-review-feedback{margin:0 0 10px;font-size:14px;font-weight:600}
.rm-wizard-footer-actions{display:flex;gap:10px}.rm-wizard-footer-actions button{flex:1;min-width:0;min-height:56px;font-size:16px;font-weight:700;white-space:normal;text-align:center}
.rm-wizard-footer-actions .rm-primary{background:#0b6e63;color:#fff;border-color:#0b6e63}
.rm-wizard-footer-actions .rm-primary:disabled{background:#9dbfba;border-color:#9dbfba;color:#fff;opacity:1}
.rm-wizard :focus-visible{outline:3px solid #1f45b8;outline-offset:3px}
@media(max-width:640px){.rm-panel .rm-wizard{width:100vw;height:100dvh;border-radius:0}.rm-wizard .rm-review-heading{padding-inline:16px}.rm-wizard .rm-review-body{padding-inline:16px}.rm-wizard-viewer{margin-inline:-16px}.rm-wizard-image-region{height:230px}.rm-wizard-title{font-size:18px}}
@media(max-width:359px){.rm-wizard-viewbar button{font-size:12px}.rm-wizard-progress{padding-inline:12px}.rm-wizard-progress li{font-size:12px}.rm-wizard-choice strong{font-size:17px}}
.rm-panel .rm-photobooth-screen{width:min(640px,100vw);background:#f4f2ed;color:#15202b}
.rm-photobooth-screen .rm-review-heading{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;min-height:0;height:auto;position:static;width:100%;max-width:none;margin:0;padding:12px 16px}
.rm-photobooth-screen .rm-review-heading h2{font-size:21px;margin:0;line-height:1.25}
.rm-photobooth-screen .rm-review-heading button{width:44px;min-height:44px;margin:0;padding:8px}
.rm-photobooth-body{display:block;flex:1;min-width:0;min-height:0;width:100%;max-width:none;margin:0;gap:0;overflow-x:hidden;padding:16px}
.rm-photobooth-source{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:10px;border:1px solid #d5d2cc;border-radius:10px;background:#fff}
.rm-panel .rm-photobooth-source img{width:96px;height:72px;min-height:0;object-fit:contain;margin:0;background:#eceae4;border-radius:6px;flex:none}
.rm-photobooth-source figcaption{font-size:14px;margin:0}
.rm-photobooth-body>.rm-pb{padding:0;margin:0}
.rm-photobooth-body .rm-pb-generation{border:0;padding:0;background:transparent}
.rm-photobooth-screen .rb-backdrops fieldset{border:0;padding:0;margin:0;min-width:0}
.rm-photobooth-screen .rb-backdrops legend{font-size:18px;font-weight:750;margin:0 0 12px;padding:0}
.rm-photobooth-screen .rb-backdrop-grid input[type=radio]{appearance:auto;width:24px;height:24px;min-height:0;padding:0;flex:none;accent-color:#0b6e63}
.rm-photobooth-progress{margin:18px 0 10px;padding-top:12px;border-top:1px solid #d5d2cc}
.rm-photobooth-progress:empty{display:none}
.rm-photobooth-progress h3{font-size:16px;margin:0 0 8px}
.rm-photobooth-footer{width:100%;max-width:none;margin:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #c6c5bd}
.rm-photobooth-footer .rm-review-feedback{margin:0 0 10px;font-size:14px;line-height:1.4}
.rm-photobooth-footer>button{width:100%;min-height:54px;font-size:17px;font-weight:750;text-align:center;background:#0b6e63;color:#fff;border-color:#0b6e63}
.rm-photobooth-footer>button:disabled{background:#e1e5e4;color:#496178;border-color:#d1d8d6;opacity:1}
.rm-photobooth-screen :focus-visible{outline:3px solid #1f45b8;outline-offset:3px}
@media(max-width:760px),(pointer:coarse){
 .rm-panel .rm-wizard:modal{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 .rm-wizard .rm-review-heading{padding-top:max(12px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .rm-panel .rm-photobooth-screen:modal{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 .rm-photobooth-screen .rm-review-heading{padding-top:max(12px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
}

/* Photo review information architecture: stable identity, one global cover and one private save. */
.rm-wizard-identity{display:flex;align-items:center;gap:12px;min-width:0}
.rm-wizard-identity>div{min-width:0}
.rm-wizard-identity-thumb{width:52px;height:44px;min-height:0;object-fit:cover;border-radius:7px;background:#deded8;flex:none}
.rm-wizard[data-step="3"] .rm-wizard-image-region{height:180px}
.rm-wizard-vehicle-state{padding:12px 14px;margin:0 0 18px;border:1px solid #c9c5be;border-radius:12px;background:#fff}
.rm-wizard-vehicle-state h4,.rm-wizard-vehicle-state p{margin:0 0 7px}.rm-wizard-vehicle-state p:last-child{margin-bottom:0}
.rm-wizard-saved-thumb{width:72px;height:54px;min-height:0;object-fit:cover;border-radius:7px;background:#deded8;flex:none}
.rm-save-sheet{width:min(640px,calc(100% - 24px));max-width:640px;max-height:90dvh;overflow:auto}
.rm-save-summary{display:grid;gap:18px;margin-top:16px}
.rm-save-summary h4{margin:0 0 10px}
.rm-save-summary .rm-draft-change-list{margin:0;padding-left:22px}
.rm-save-summary .rm-draft-change-list li{margin:0 0 8px;overflow-wrap:anywhere}
.rm-cover-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;padding:0;margin:0;min-width:0}
.rm-cover-selector legend{grid-column:1/-1;font-size:17px;font-weight:750;padding:0;margin-bottom:2px}
.rm-save-cover-state,.rm-save-summary-error,.rm-cover-selector>.rm-wizard-help{grid-column:1/-1;margin:0;line-height:1.45}
.rm-save-cover-state{color:var(--rm-secondary)}
.rm-save-summary-error{padding:10px;border:1px solid #b42318;border-radius:8px;background:#fce8e6;color:#8c1d18;font-weight:700}
.rm-cover-choice{display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border:1.5px solid var(--rm-strong);border-radius:12px;background:var(--rm-surface);cursor:pointer}
.rm-cover-choice:has(input:checked){border:2.5px solid #0b6e63;background:#e2f0ed;padding:9px}
.rm-cover-choice input{appearance:auto;width:24px;height:24px;min-height:0;margin:0;accent-color:#0b6e63;flex:none}
.rm-cover-choice-visual{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:10px;align-items:center;min-width:0;flex:1}
.rm-cover-choice-thumb{grid-row:1/3;width:64px;height:48px;min-height:0;object-fit:cover;border-radius:7px;background:#deded8}
.rm-cover-choice-visual strong,.rm-cover-choice-visual span{grid-column:2;overflow-wrap:anywhere}.rm-cover-choice-visual span{font-size:13px;color:var(--rm-secondary)}
@media(max-width:520px){.rm-cover-selector{grid-template-columns:1fr}.rm-save-sheet{width:100%;max-width:100%;margin:0 0 0;max-height:95dvh;border-radius:14px 14px 0 0}.rm-wizard-saved-list li{align-items:flex-start;flex-wrap:wrap}.rm-wizard-saved-list li button{width:100%}}
/* Native modal owns focus and inertness; containment is progressive. */
.rm-delete-dialog:modal { overscroll-behavior: contain; max-inline-size: min(32rem, calc(100vw - 2rem)); }
.rm-delete-dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }
.rm-delete-preview { display: block; inline-size: auto; max-inline-size: 100%; block-size: auto; max-block-size: 8rem; object-fit: contain; margin: .75rem auto; }
.rm-delete-dialog .rm-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.rm-delete-dialog button { min-block-size: 44px; }
.rm-delete-receipt { overflow-wrap: anywhere; }
