/* Global surface layer. Image/video content and semantic alerts retain their colors. */
html[data-photo-theme],html[data-photo-theme] body{background:var(--photo-bg)!important;color:var(--photo-text)!important}
html[data-photo-theme] :is(.device,#app,.aurora){background:var(--photo-bg)!important}
html[data-photo-theme] .aurora::after{background:none!important}
html[data-photo-theme] :is(.hdr,.nav,.ibar,.tb,.sb,#travel-input-hint){background:var(--photo-chrome)!important;color:var(--photo-text)!important;border-color:var(--photo-border)!important}
html[data-photo-theme] :is(.scr,.pg,#pg,#msgList){background-color:transparent!important}
html[data-photo-theme] :is(.oc,.fc,.ba,.sr,.mcard,.login-glass,.travel-card,dialog){background:var(--photo-card)!important;color:var(--photo-text)!important;border-color:var(--photo-border)!important}
html[data-photo-theme] :is(input,textarea,select){background:var(--photo-card)!important;color:var(--photo-text)!important;border-color:var(--photo-border)!important;caret-color:var(--photo-text)}
html[data-photo-theme] ::placeholder{color:var(--photo-muted)!important;opacity:1}
html[data-photo-theme] :is(.bu,.sbtn,.acc,.fbtn,.fprice,.login-btn,.book,#gobao-ios-voice [data-record]){background:var(--photo-accent)!important;color:var(--photo-ink)!important;border-color:var(--photo-border)!important;box-shadow:0 4px 18px var(--photo-glow)!important}
html[data-photo-theme] :is(.nl,.muted,.address,.result-note,.flight-line,.carriers,.segments summary){color:var(--photo-muted)!important}
html[data-photo-theme] :is(.nl.on,.ti.on,.rating,.price){color:var(--photo-accent)!important;text-shadow:none!important}
html[data-photo-theme] .login-pg{background:var(--photo-bg)!important}
html[data-photo-theme] :is(.onb-mask,#onbMask){background:var(--photo-bg)!important;color:var(--photo-text)!important}
html[data-photo-theme] :is(.onb-title,.onb-desc){color:var(--photo-text)!important;background:none!important;-webkit-text-fill-color:var(--photo-text)!important}
html[data-photo-theme] :is(.onb-btn-next,.onb-dot.active){background:var(--photo-accent)!important;color:var(--photo-ink)!important}
html[data-photo-theme] :is(.onb-sub,.onb-scene-text,.onb-btn-skip){color:var(--photo-muted)!important}
html[data-photo-theme].gobao-ios-simple #pg:has(#ci) .hdr>div:nth-child(2){display:none!important}
html[data-photo-theme] #gobaoBeianFooter a{color:var(--photo-muted)!important}
html[data-photo-theme] .gf-page{background:var(--photo-bg)!important;color:var(--photo-text)!important}
html[data-photo-theme] .gf-shade{background:linear-gradient(180deg,transparent 20%,var(--photo-surface) 100%)!important}
html[data-photo-theme] :is(.gf-heading,.gf-heading p,.gf-eyebrow){color:#fff!important;text-shadow:0 2px 8px #000}
html[data-photo-theme] :is(.gf-service,.gf-service-note,.gf-note,.gf-privacy,.gf-voices label,.gf-voices summary span){color:var(--photo-muted)!important}
html[data-photo-theme] .gf-page button{background:var(--photo-card)!important;color:var(--photo-text)!important;border-color:var(--photo-border)!important}
html[data-photo-theme] .gf-page .gf-primary{background:var(--photo-accent)!important;color:var(--photo-ink)!important}
html[data-photo-theme] .gf-voices{border-color:var(--photo-border)!important}
html[data-photo-theme] :is(.gobao-legal-footer,.legal-footer){background:var(--photo-chrome)!important;color:var(--photo-muted)!important}
html[data-photo-theme] :is(button,a,input,textarea,select):focus-visible{outline:3px solid var(--photo-accent)!important;outline-offset:3px}
#photo-theme-open{min-width:44px;min-height:44px;padding:6px 10px;border:1px solid var(--photo-border);border-radius:12px;background:var(--photo-card);color:var(--photo-text);font:inherit;font-size:12px;flex-shrink:0;cursor:pointer}
#photo-theme-dialog{position:fixed;margin:auto;width:min(92vw,540px);max-height:85dvh;border:1px solid var(--photo-border);border-radius:24px;padding:20px;overflow:auto;box-shadow:0 24px 80px #0006}
#photo-theme-dialog::backdrop{background:#0008;backdrop-filter:blur(8px)}
#photo-theme-dialog header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;margin-bottom:18px}
#photo-theme-dialog h2{font-size:22px;margin:0 0 6px}#photo-theme-dialog p{font-size:13px;color:var(--photo-muted)}
#photo-theme-dialog [data-close]{width:44px;height:44px;border:0;border-radius:12px;font-size:26px;background:var(--photo-card);color:var(--photo-text);cursor:pointer}
.photo-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.photo-theme-grid button{min-height:136px;border:2px solid var(--photo-border);border-radius:16px;padding:8px;text-align:left;background:var(--photo-card);color:var(--photo-text);cursor:pointer}
.photo-theme-grid button[aria-pressed=true]{border-color:var(--photo-accent);box-shadow:0 0 0 2px var(--photo-glow)}
.photo-theme-swatch{display:block;height:72px;border-radius:10px;margin-bottom:8px;border:1px solid #ffffff40}
.photo-theme-grid strong{display:block;font-size:14px}.photo-theme-grid small{display:block;min-height:18px;font-size:12px;margin-top:4px;color:var(--photo-muted)}
@media(prefers-reduced-motion:reduce){#photo-theme-dialog *{transition:none!important}}
