/* Global Photo Studio RU — isolated premium evening theme.
   Activated only by html[data-gps-theme="dark"]; original light UI is unchanged. */
.gps-theme-switch{display:flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:#f7f8fa;border:1px solid var(--line,#e6e9ee);flex:0 0 auto}
.gps-theme-switch button{display:grid;place-items:center;min-width:32px;width:32px;height:29px;border:0;border-radius:999px;padding:0;background:transparent;color:#818997;cursor:pointer;transition:background .16s,color .16s,box-shadow .16s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.gps-theme-switch button.active{background:#fff;color:#5d65cc;box-shadow:0 3px 12px rgba(25,29,38,.09)}
.gps-theme-switch button svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gps-theme-switch button:focus-visible{outline:2px solid #9988ed;outline-offset:2px}
.gps-mobile-theme-controls{position:absolute;right:2px;top:0;display:flex;align-items:center;gap:5px;z-index:4}
.gps-mobile-intro{position:relative}
.gps-mobile-theme-controls .gps-mobile-language{position:static;width:58px;height:28px;flex:0 0 58px}
.gps-mobile-theme-controls .gps-theme-switch,.gps-mobile-page-controls .gps-theme-switch{padding:2px;gap:0;border-radius:10px}
.gps-mobile-theme-controls .gps-theme-switch button,.gps-mobile-page-controls .gps-theme-switch button{width:25px;min-width:25px;height:24px;border-radius:8px}
.gps-mobile-theme-controls .gps-theme-switch button svg,.gps-mobile-page-controls .gps-theme-switch button svg{width:14px;height:14px}
.gps-mobile-page-head{grid-template-columns:42px minmax(0,1fr) 126px}
.gps-mobile-page-head>.gps-mobile-page-controls{grid-column:3;grid-row:1;justify-self:end;align-self:center;display:flex;align-items:center;gap:5px;min-width:0}
.gps-mobile-page-controls .gps-mobile-page-language{position:static;width:58px;height:28px;flex:0 0 58px;grid-column:auto;grid-row:auto}
html[dir="rtl"] .gps-mobile-theme-controls{right:auto;left:2px}
.ex-theme-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.ex-theme-actions .gps-theme-switch{padding:2px}
.ex-theme-actions .gps-theme-switch button{width:29px;min-width:29px;height:29px}
@media(max-width:390px){.gps-mobile-page-head{grid-template-columns:39px minmax(0,1fr) 121px;gap:4px}.gps-mobile-page-head h1{font-size:19px}.gps-mobile-page-head p{font-size:10px}}
@media(max-width:650px){.ex-theme-actions{gap:7px}.ex-theme-actions .gps-theme-switch button{width:26px;min-width:26px;height:26px}.ex-theme-actions .gps-theme-switch button svg{width:14px;height:14px}}
/* Premium color system */
html[data-gps-theme="dark"]{
  color-scheme:dark;
  --accent:#a895ff;--accent2:#b4a2ff;--ink:#f3f0fa;--muted:#aeb4cb;--line:#34364b;--soft:#141926;--panel:#1b2030;
  --gps-night-bg:#0b0e17;--gps-night-panel:#1b2030;--gps-night-raised:#22283a;--gps-night-border:#343b50;--gps-night-text:#f3f0fa;--gps-night-muted:#abb2c7;
  background:#0b0e17!important
}
html[data-gps-theme="dark"] body{color:#f3f0fa!important;background:linear-gradient(165deg,#090d16 0%,#11172a 49%,#10121d 100%)!important}
html[data-gps-theme="dark"] .app-shell,
html[data-gps-theme="dark"] .gps-desktop-page{background:transparent;color:var(--gps-night-text)}
html[data-gps-theme="dark"] .topbar,
html[data-gps-theme="dark"] .gps-desktop-topbar,
html[data-gps-theme="dark"] .ex-header{background:rgba(13,17,29,.94)!important;border-bottom:1px solid #34324a!important;box-shadow:0 5px 24px #05070d44}
html[data-gps-theme="dark"] .brand,
html[data-gps-theme="dark"] .ex-brand{color:#f8f2fc!important}
html[data-gps-theme="dark"] .gps-desktop-quicknav a,
html[data-gps-theme="dark"] .gps-desktop-quicknav button,
html[data-gps-theme="dark"] .desktop-nav a{color:#c8cce0}
html[data-gps-theme="dark"] .gps-desktop-quicknav a:hover,
html[data-gps-theme="dark"] .gps-desktop-quicknav button:hover{color:#edd3a6}
html[data-gps-theme="dark"] .language-switch,
html[data-gps-theme="dark"] .gps-theme-switch{background:#202438!important;border-color:#434258!important}
html[data-gps-theme="dark"] .language-switch button,
html[data-gps-theme="dark"] .gps-theme-switch button{color:#a4abc4!important}
html[data-gps-theme="dark"] .language-switch button.active,
html[data-gps-theme="dark"] .gps-theme-switch button.active{background:linear-gradient(145deg,#4a426a,#302f53)!important;color:#f7ddaa!important;box-shadow:0 2px 9px #0a081c66}
html[data-gps-theme="dark"] .gps-mobile-language,
html[data-gps-theme="dark"] .gps-mobile-page-language{background:#202438!important;color:#eeeaf6!important;border-color:#434258!important}
html[data-gps-theme="dark"] select{color-scheme:dark}
html[data-gps-theme="dark"] h1,
html[data-gps-theme="dark"] h2,
html[data-gps-theme="dark"] h3,
html[data-gps-theme="dark"] h4{color:#f7f2fc}
html[data-gps-theme="dark"] p,
html[data-gps-theme="dark"] small,
html[data-gps-theme="dark"] .gps-seo-main,
html[data-gps-theme="dark"] .gps-desktop-footer{color:#b5bdd1}
html[data-gps-theme="dark"] a{color:#cbb8ff}
html[data-gps-theme="dark"] .gps-desktop-editor,
html[data-gps-theme="dark"] .hero-editor,
html[data-gps-theme="dark"] .creator-card,
html[data-gps-theme="dark"] .gps-desktop-control-panel,
html[data-gps-theme="dark"] .gps-seo-hero,
html[data-gps-theme="dark"] .gps-seo-section,
html[data-gps-theme="dark"] .gps-seo-grid article,
html[data-gps-theme="dark"] .gps-seo-how li,
html[data-gps-theme="dark"] .faq-item,
html[data-gps-theme="dark"] .gps-desktop-footer,
html[data-gps-theme="dark"] .gps-desktop-secondary,
html[data-gps-theme="dark"] .gps-desktop-stage-column{background:#1a2030!important;border-color:#343c51!important;color:#f3f0fa!important}
html[data-gps-theme="dark"] .gps-seo-section,
html[data-gps-theme="dark"] .gps-seo-grid article,
html[data-gps-theme="dark"] .gps-desktop-control-panel{box-shadow:0 12px 36px #06091522}
html[data-gps-theme="dark"] .gps-seo-main p,
html[data-gps-theme="dark"] .gps-seo-section p,
html[data-gps-theme="dark"] .gps-seo-how p,
html[data-gps-theme="dark"] .gps-seo-grid p,
html[data-gps-theme="dark"] .gps-desktop-control-panel small{color:#b3bbd0!important}
html[data-gps-theme="dark"] .desktop-focus,
html[data-gps-theme="dark"] .desktop-focus.is-empty,
html[data-gps-theme="dark"] .desktop-focus__half,
html[data-gps-theme="dark"] .desktop-focus__upload,
html[data-gps-theme="dark"] .upload-zone,
html[data-gps-theme="dark"] .desktop-photo-thumb,
html[data-gps-theme="dark"] .desktop-photo-thumb.is-placeholder,
html[data-gps-theme="dark"] .gps-desktop-prompt,
html[data-gps-theme="dark"] .prompt-box{background:#161c2b!important;border-color:#3b4155!important;color:#eeeaf5!important}
html[data-gps-theme="dark"] .desktop-focus__upload-circle,
html[data-gps-theme="dark"] .desktop-focus__upload>span,
html[data-gps-theme="dark"] .upload-icon{background:#2b3150!important;color:#dac5ff!important}
html[data-gps-theme="dark"] textarea,
html[data-gps-theme="dark"] input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
html[data-gps-theme="dark"] .gps-desktop-prompt textarea{color:#f2effb;background:#161c2b}
html[data-gps-theme="dark"] input::placeholder,
html[data-gps-theme="dark"] textarea::placeholder{color:#8894af!important}
html[data-gps-theme="dark"] label,
html[data-gps-theme="dark"] .gps-desktop-control-head,
html[data-gps-theme="dark"] .gps-desktop-prompt span,
html[data-gps-theme="dark"] .gps-desktop-prompt label,
html[data-gps-theme="dark"] .desktop-focus__upload b,
html[data-gps-theme="dark"] .desktop-focus__upload strong{color:#efedf9!important}
html[data-gps-theme="dark"] .gps-desktop-create,
html[data-gps-theme="dark"] .create-btn{background:linear-gradient(110deg,#6955d4,#9876ed)!important;color:#fff!important;box-shadow:0 8px 25px #39287e55}
html[data-gps-theme="dark"] .gps-desktop-footer{border-top-color:#353649!important}
html[data-gps-theme="dark"] .gps-document-formats,
html[data-gps-theme="dark"] .gps-document-card{background:#20283d!important;color:#f1eef9!important;border-color:#49516b!important}
html[data-gps-theme="dark"] .gps-document-card__icon,
html[data-gps-theme="dark"] .gps-document-card__remove{background:#313958!important;color:#eeeafa!important}
/* Mobile editor, tabs and navigation */
html[data-gps-theme="dark"] .gps-mobile,
html[data-gps-theme="dark"] .gps-mobile__screen,
html[data-gps-theme="dark"] .gps-mobile__workspace,
html[data-gps-theme="dark"] .gps-mobile-view-stack,
html[data-gps-theme="dark"] .gps-mobile-view,
html[data-gps-theme="dark"] .gps-mobile__content,
html[data-gps-theme="dark"] .gps-mobile-page-scroll{background:#0c101b!important;color:#f3f0fa!important}
html[data-gps-theme="dark"] .gps-mobile-intro h1,
html[data-gps-theme="dark"] .gps-mobile-page-head h1{color:#fff7ff!important}
html[data-gps-theme="dark"] .gps-mobile-intro p,
html[data-gps-theme="dark"] .gps-mobile-page-head p{color:#adb6cf!important}
html[data-gps-theme="dark"] .gps-mobile-page-head{border-color:#333c53!important}
html[data-gps-theme="dark"] .gps-mobile-upload,
html[data-gps-theme="dark"] .gps-mobile-upload__single,
html[data-gps-theme="dark"] .gps-mobile-upload__empty,
html[data-gps-theme="dark"] .gps-mobile-compare,
html[data-gps-theme="dark"] .gps-mobile-page-placeholder,
html[data-gps-theme="dark"] .gps-mobile-balance-package,
html[data-gps-theme="dark"] .gps-mobile-tools button,
html[data-gps-theme="dark"] .gps-mobile-shortcuts button,
html[data-gps-theme="dark"] .gps-mobile-example-pair,
html[data-gps-theme="dark"] .gps-mobile-example-new-link{background:#1b2031!important;color:#f3effa!important;border-color:#3a3e55!important}
html[data-gps-theme="dark"] .gps-mobile-upload__empty,
html[data-gps-theme="dark"] .gps-mobile-upload__empty strong,
html[data-gps-theme="dark"] .gps-mobile-page-placeholder h2{color:#f0edf9!important}
html[data-gps-theme="dark"] .gps-mobile-upload__empty small,
html[data-gps-theme="dark"] .gps-mobile-tools button b,
html[data-gps-theme="dark"] .gps-mobile-balance-note{color:#a8b2c8!important}
html[data-gps-theme="dark"] .gps-mobile-upload__plus,
html[data-gps-theme="dark"] .gps-mobile-tools button span,
html[data-gps-theme="dark"] .gps-mobile-shortcuts button span,
html[data-gps-theme="dark"] .gps-mobile-back{background:#30344e!important;color:#e5d6ff!important;border-color:#45475f!important}
html[data-gps-theme="dark"] .gps-mobile-composer,
html[data-gps-theme="dark"] .gps-mobile-prompt,
html[data-gps-theme="dark"] .gps-mobile-prompt-box,
html[data-gps-theme="dark"] .gps-mobile-prompt-input,
html[data-gps-theme="dark"] .gps-mobile-prompt textarea,
html[data-gps-theme="dark"] .gps-mobile-prompt-groups button,
html[data-gps-theme="dark"] .gps-prompt-groups button,
html[data-gps-theme="dark"] .gps-mobile-bottom{background:#1a2030!important;color:#f0edf9!important;border-color:#3b435a!important}
html[data-gps-theme="dark"] .gps-mobile-balance-package span{color:#b8bfd0!important}
html[data-gps-theme="dark"] .gps-mobile-balance-package strong,
html[data-gps-theme="dark"] .gps-mobile-balance-package b{color:#f0edfb!important}
html[data-gps-theme="dark"] .gps-mobile-balance-package button{background:#6553c9;color:#fff}
html[data-gps-theme="dark"] .gps-mobile-language option,
html[data-gps-theme="dark"] .gps-mobile-page-language option{background:#202438;color:#fff}
/* Dialogs and account/payment surfaces: visual only; leave all actions untouched. */
html[data-gps-theme="dark"] dialog,
html[data-gps-theme="dark"] .modal,
html[data-gps-theme="dark"] .gps-auth-modal,
html[data-gps-theme="dark"] .gps-auth-card,
html[data-gps-theme="dark"] .gps-auth-account,
html[data-gps-theme="dark"] .gps-auth-tabs,
html[data-gps-theme="dark"] .gps-auth-balance-card,
html[data-gps-theme="dark"] .gps-credit-modal,
html[data-gps-theme="dark"] .gps-notice-dialog,
html[data-gps-theme="dark"] .gps-auth-feedback-form,
html[data-gps-theme="dark"] .gps-upload-dialog{background:#191f30!important;color:#f4f0fa!important;border-color:#41465e!important;box-shadow:0 24px 70px #0008}
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="profile"] .gps-auth-account,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="balance"] .gps-auth-account,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="profile"] .gps-auth-balance-card,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="balance"] .gps-auth-balance-card{background:#20273a!important;border-color:#444861!important;color:#f4f0fa!important}
html[data-gps-theme="dark"] .gps-auth-pricing-row,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="balance"] .gps-auth-pricing-row,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="balance"] .gps-auth-pricing-row:last-child:nth-child(odd){background:#252b3f!important;border-color:#414860!important}
html[data-gps-theme="dark"] .gps-auth-pricing-row strong,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="balance"] .gps-auth-pricing-row strong,
html[data-gps-theme="dark"] .gps-auth-balance-card strong,
html[data-gps-theme="dark"] .gps-auth-card h2,
html[data-gps-theme="dark"] .gps-auth-card h3,
html[data-gps-theme="dark"] .gps-auth-modal h2,
html[data-gps-theme="dark"] .gps-auth-modal h3,
html[data-gps-theme="dark"] .gps-credit-modal__rule{color:#f4f0fa!important}
html[data-gps-theme="dark"] .gps-auth-modal p,
html[data-gps-theme="dark"] .gps-auth-card p,
html[data-gps-theme="dark"] .gps-auth-modal small,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="balance"] .gps-auth-offer-note,
html[data-gps-theme="dark"] .gps-mobile-offer-note{color:#b9c1d4!important}
html[data-gps-theme="dark"] .gps-auth-feedback-toggle,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="profile"] .gps-auth-feedback-toggle,
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="profile"] .gps-auth-logout,
html[data-gps-theme="dark"] .gps-auth-feedback-buttons [data-auth-feedback-cancel],
html[data-gps-theme="dark"] .gps-auth-feedback-form textarea,
html[data-gps-theme="dark"] .gps-auth-change,
html[data-gps-theme="dark"] .gps-upload-dialog__option,
html[data-gps-theme="dark"] .gps-upload-dialog__back{background:#252c40!important;color:#e9e8f7!important;border-color:#434b62!important}
html[data-gps-theme="dark"] .gps-auth-modal input,
html[data-gps-theme="dark"] .gps-auth-card input{background:#131a2c!important;color:#f4f0fa!important;border-color:#495068!important}
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close,
html[data-gps-theme="dark"] .gps-credit-modal #gpsCreditClose,
html[data-gps-theme="dark"] .gps-notice-dialog .gps-notice-dismiss{color:#ded9ee!important}
html[data-gps-theme="dark"] .gps-auth-delete{background:#30202e!important;color:#ffadae!important;border-color:#694050!important}
html[data-gps-theme="dark"] .gps-auth-tabs button:not(.active){color:#abb4c8!important}
html[data-gps-theme="dark"] .gps-auth-tabs button.active{background:#39365e!important;color:#f2dcb8!important}
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="balance"] .gps-auth-pricing-row button:disabled{background:#30374c!important;color:#828ca9!important}
html[data-gps-theme="dark"] .gps-auth-modal[data-auth-view="balance"] .gps-auth-pricing-row button:not(:disabled){background:linear-gradient(110deg,#6e59cf,#9273e5)!important;color:white!important}
html[data-gps-theme="dark"] .gps-photo-viewer,
html[data-gps-theme="dark"] .gps-photo-viewer__stage{background:#0a0c15;color:#f0ecf9}
/* Independent examples page */
html[data-gps-theme="dark"] .ex-header{border-bottom-color:#393b51!important}
html[data-gps-theme="dark"] .ex-back{background:#242c40;border-color:#45465e;color:#dec6ff}
html[data-gps-theme="dark"] .ex-heading h1{color:#f9f1fb}
html[data-gps-theme="dark"] .ex-heading p,
html[data-gps-theme="dark"] .ex-eyebrow,
html[data-gps-theme="dark"] .ex-status{color:#abb5cb}
html[data-gps-theme="dark"] .ex-card{background:#171e2d;border-color:#3b4057;box-shadow:0 8px 26px #0004}
html[data-gps-theme="dark"] .ex-before,
html[data-gps-theme="dark"] .ex-after{background:#161d2a}
html[data-gps-theme="dark"] .ex-footer{background:#121723;color:#8793aa;border-top-color:#32394c}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){
 html[data-gps-theme="dark"],html[data-gps-theme="dark"] body{background:linear-gradient(165deg,#090d16,#11172a)!important}
}
/* Keep images, result comparison, document previews and logo artwork unchanged. */

/* Reserve a slim control row on compact phones so the title never overlaps the theme buttons. */
@media(max-width:780px){
  .gps-mobile-intro{padding-top:33px!important}
  .gps-mobile-theme-controls{top:0}
  .gps-mobile-page-head>.gps-mobile-page-controls{text-align:right;min-width:0}
}
html[data-gps-theme="dark"].gps-desktop-hydrating .gps-desktop-editor .desktop-focus::after{background:linear-gradient(145deg,#20263a,#171c2b)}


/* GPS Evening Theme — contrast/close-controls fix, 2026-10-27.
 * Only applied in dark mode. No light-theme or application logic changes.
 */

/* Desktop/phone desktop-mode quicknav. The site defines light-mode button
   backgrounds even under hover and phone media queries with !important. */
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > button,
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > a.gps-examples-nav {
  background:linear-gradient(145deg,#242b3d 0%,#1d2333 100%)!important;
  border:1px solid #42465e!important;
  color:#f1edfa!important;
  -webkit-text-fill-color:#f1edfa;
  box-shadow:0 3px 10px rgba(0,0,0,.20)!important;
}
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > button:hover,
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > a.gps-examples-nav:hover {
  background:linear-gradient(145deg,#30364d,#272e44)!important;
  color:#fff5dc!important;
  -webkit-text-fill-color:#fff5dc;
  border-color:#82749d!important;
  transform:none!important;
}
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > button:active,
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > a.gps-examples-nav:active{
  background:#383750!important;
  transform:scale(.985)!important;
}
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > button:focus-visible,
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > a.gps-examples-nav:focus-visible {
  outline:2px solid #d9bb95!important;
  outline-offset:2px!important;
  border-radius:12px!important;
}
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > button,
html[data-gps-theme="dark"] .gps-desktop-topbar .gps-desktop-quicknav > a.gps-examples-nav{
  -webkit-tap-highlight-color:transparent!important;
}

/* FAQ: labels inherited their original #2a3b54 light-mode ink on dark cards. */
html[data-gps-theme="dark"] .gps-seo-faq summary,
html[data-gps-theme="dark"] .gps-seo-faq details > summary{
  color:#f4f0fb!important;
  -webkit-text-fill-color:#f4f0fb;
  text-shadow:none!important;
}
html[data-gps-theme="dark"] .gps-seo-faq details{
  border-top-color:#3c455c!important;
}
html[data-gps-theme="dark"] .gps-seo-faq details > summary::after{
  color:#e9cba2!important;
  -webkit-text-fill-color:#e9cba2;
  font-weight:700!important;
}
html[data-gps-theme="dark"] .gps-seo-faq details[open] > summary{
  color:#e9cba2!important;
  -webkit-text-fill-color:#e9cba2;
}
html[data-gps-theme="dark"] .gps-seo-faq details > p{
  color:#bfc7d9!important;
  -webkit-text-fill-color:#bfc7d9;
}
html[data-gps-theme="dark"] .gps-seo-faq summary:focus-visible{
  outline:2px solid #bca7d8!important;
  outline-offset:3px!important;
  border-radius:6px;
}
html[data-gps-theme="dark"] .gps-seo-how li{
  color:#c2c9dc!important;
}
html[data-gps-theme="dark"] .gps-seo-how strong,
html[data-gps-theme="dark"] .gps-seo-grid strong{
  color:#f0ebfb!important;
}
html[data-gps-theme="dark"] .gps-seo-how li::before{
  background:#33334e!important;
  color:#e9cba2!important;
}

/* Close buttons: remove blue rectangular iOS tapping ring in dark mode;
   preserve an accessible, subtle round focus-visible indication. */
html[data-gps-theme="dark"] .gps-photo-viewer__close,
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close,
html[data-gps-theme="dark"] .gps-upload-dialog__close,
html[data-gps-theme="dark"] .gps-notice-dialog .gps-notice-dismiss,
html[data-gps-theme="dark"] .gps-credit-modal #gpsCreditClose,
html[data-gps-theme="dark"] .gps-notice-dialog #gpsNoticeClose{
  -webkit-appearance:none!important;
  appearance:none!important;
  -webkit-tap-highlight-color:transparent!important;
  outline-color:transparent;
}
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close,
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close:hover,
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close:active,
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close:focus,
html[data-gps-theme="dark"] .gps-upload-dialog__close,
html[data-gps-theme="dark"] .gps-notice-dialog .gps-notice-dismiss,
html[data-gps-theme="dark"] .gps-credit-modal #gpsCreditClose{
  background:#293045!important;
  color:#e8e2f2!important;
  border:1px solid #47485f!important;
  border-radius:50%!important;
  box-shadow:none!important;
  place-items:center!important;
}
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close{
  width:38px!important;
  height:38px!important;
  font-size:25px!important;
  line-height:1!important;
}
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close:hover,
html[data-gps-theme="dark"] .gps-upload-dialog__close:hover,
html[data-gps-theme="dark"] .gps-photo-viewer__close:hover{
  background:#3a3a55!important;
  border-color:#78718e!important;
  color:#fff2df!important;
}
html[data-gps-theme="dark"] .gps-photo-viewer__close{
  border:1px solid #646078!important;
  background:rgba(37,43,61,.9)!important;
  color:#f7f2fb!important;
  border-radius:50%!important;
  box-shadow:none!important;
}
html[data-gps-theme="dark"] .gps-photo-viewer__close:focus-visible,
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close:focus-visible,
html[data-gps-theme="dark"] .gps-upload-dialog__close:focus-visible,
html[data-gps-theme="dark"] .gps-notice-dialog .gps-notice-dismiss:focus-visible,
html[data-gps-theme="dark"] .gps-credit-modal #gpsCreditClose:focus-visible{
  outline:2px solid #d9b894!important;
  outline-offset:3px!important;
  border-radius:50%!important;
}
html[data-gps-theme="dark"] .gps-photo-viewer__close:focus:not(:focus-visible),
html[data-gps-theme="dark"] .gps-auth-modal .gps-auth-modal-close:focus:not(:focus-visible),
html[data-gps-theme="dark"] .gps-upload-dialog__close:focus:not(:focus-visible),
html[data-gps-theme="dark"] .gps-notice-dialog .gps-notice-dismiss:focus:not(:focus-visible),
html[data-gps-theme="dark"] .gps-credit-modal #gpsCreditClose:focus:not(:focus-visible){
  outline:none!important;
}

/* Other small pieces of SEO copy found during the contrast audit. */
html[data-gps-theme="dark"] .gps-seo-section a:not(.create-btn),
html[data-gps-theme="dark"] .gps-site-legal-link{
  color:#d5c1ff!important;
}
html[data-gps-theme="dark"] .gps-seo-grid h3{
  color:#f2edfa!important;
}

/* PREMIUM DARK v3 — rounded-geometry and primary action readability.
   Changes only html[data-gps-theme="dark"]. The editor logic and light theme are unchanged. */

/* These are LAYOUT WRAPPERS, not visible cards. Their old square dark
   backgrounds showed around the rounded corners of their children. */
html[data-gps-theme="dark"] .gps-desktop-editor.hero-editor,
html[data-gps-theme="dark"] .gps-desktop-editor,
html[data-gps-theme="dark"] .gps-desktop-stage-column,
html[data-gps-theme="dark"] .gps-seo-hero {
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

/* Visible editor cards alone own their rounded backgrounds. */
html[data-gps-theme="dark"] .gps-desktop-editor .desktop-focus {
  border-radius:24px!important;
  overflow:hidden!important;
  isolation:isolate;
  background-clip:padding-box;
}
html[data-gps-theme="dark"] .gps-desktop-editor .gps-desktop-control-panel {
  background:#1a2030!important;
  border:1px solid #353d51!important;
  border-radius:24px!important;
  background-clip:padding-box;
}

/* Maintain breathing room around the two main editor cards and the input. */
html[data-gps-theme="dark"] .gps-desktop-workspace .gps-desktop-editor {
  gap:clamp(18px,1.85vw,26px)!important;
}
html[data-gps-theme="dark"] .gps-desktop-editor .gps-desktop-control-panel {
  padding:clamp(17px,1.65vw,23px)!important;
}
html[data-gps-theme="dark"] .gps-desktop-editor .gps-desktop-prompt {
  background:#151b2a!important;
  border:1px solid #434a61!important;
  border-radius:17px!important;
  margin-bottom:15px!important;
  background-clip:padding-box;
}
@media(max-width:860px) {
  html[data-gps-theme="dark"] .gps-desktop-editor .gps-desktop-control-panel {
    padding:16px!important;
    border-radius:20px!important;
  }
  html[data-gps-theme="dark"] .gps-desktop-workspace .gps-desktop-editor {
    gap:18px!important;
  }
}

/* The parent card's 100%-height + top margin combination made adjacent
   SEO cards overlap and created the straight 'protruding' corners. */
html[data-gps-theme="dark"] .gps-seo-two-column {
  margin-top:22px!important;
  gap:20px!important;
  align-items:stretch!important;
}
html[data-gps-theme="dark"] .gps-seo-two-column > .gps-seo-section {
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  align-self:stretch;
}
html[data-gps-theme="dark"] .gps-seo-two-column + .gps-seo-section {
  margin-top:22px!important;
}
html[data-gps-theme="dark"] .gps-seo-section {
  border-radius:22px!important;
  overflow:hidden;
  background-clip:padding-box;
}
html[data-gps-theme="dark"] .gps-seo-grid article,
html[data-gps-theme="dark"] .gps-seo-how li {
  border-radius:16px!important;
  overflow:hidden;
  background-clip:padding-box;
}
html[data-gps-theme="dark"] .gps-seo-grid {
  gap:16px!important;
}
html[data-gps-theme="dark"] .gps-seo-how ol {
  gap:16px!important;
}
@media(max-width:860px) {
  html[data-gps-theme="dark"] .gps-seo-two-column {margin-top:18px!important;gap:15px!important}
  html[data-gps-theme="dark"] .gps-seo-grid,
  html[data-gps-theme="dark"] .gps-seo-how ol {gap:13px!important}
  html[data-gps-theme="dark"] .gps-seo-section {border-radius:18px!important}
}

/* A disabled primary action must stay legible, but still look disabled.
   The old .46 opacity dimmed *the text as well as the background*. */
html[data-gps-theme="dark"] .gps-desktop-editor .gps-desktop-create:disabled {
  opacity:1!important;
  background:linear-gradient(110deg,#494079,#6554a9)!important;
  color:#fbf7ff!important;
  -webkit-text-fill-color:#fbf7ff!important;
  border:1px solid #8072bc!important;
  box-shadow:none!important;
  cursor:not-allowed;
}
html[data-gps-theme="dark"] .gps-desktop-editor .gps-desktop-create:disabled > span,
html[data-gps-theme="dark"] .gps-desktop-editor .gps-desktop-create:not(:disabled) > span {
  color:#fbf7ff!important;
  -webkit-text-fill-color:#fbf7ff!important;
  font-weight:800!important;
}

/* One account shortcut instead of separate Profile/Balance entries. */
@media(max-width:780px){
  .gps-mobile-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gps-mobile-shortcuts .gps-mobile-account-shortcut{
    display:flex;align-items:center;justify-content:center;min-width:0;height:42px;
    padding:0 10px;text-align:center;box-sizing:border-box;
    border:1px solid rgba(31,38,50,.08);border-radius:15px;
    background:#f0f2f5;color:#343a45;
    font:750 13px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    text-decoration:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation
  }
  html[data-gps-theme="dark"] .gps-mobile-shortcuts .gps-mobile-account-shortcut {
    background:#252c40;color:#f0ecfa;border-color:#45475f
  }
  .gps-mobile-shortcuts .gps-mobile-account-shortcut:focus-visible{
    outline:2px solid #a996e4;outline-offset:2px
  }
}
