/*
 Orbit — Account + Dating Preferences Midnight Glass
 and uncropped personal profile gallery.
 Scoped styles, no data or form logic changes.
*/
:root{
 --orbit-settings-glass:rgba(23,12,42,.24);
 --orbit-settings-subglass:rgba(24,13,45,.18);
 --orbit-settings-line:rgba(243,207,169,.19);
 --orbit-settings-gold:#f4d8ac;
 --orbit-settings-text:#f7eaf9;
 --orbit-settings-muted:#e2d1e9;
 --orbit-settings-cta:rgba(239,196,129,.23);
}
/* The current cropped profile photo used object-fit:cover and a short,
   landscape aspect ratio. Give it a portrait gallery viewport and contain
   each entire uploaded picture, regardless of orientation. */
html body #my-preview #myPreviewBody .orbit-preview-gallery{
 align-items:stretch;
 background:rgba(15,8,29,.35)!important;
}
html body #my-preview #myPreviewBody .orbit-preview-gallery>.preview-photo{
 aspect-ratio:4/4.5!important;
 max-height:650px!important;
 height:auto!important;
 background:rgba(17,8,32,.48)!important;
 background-color:rgba(17,8,32,.48)!important;
}
html body #my-preview #myPreviewBody .orbit-preview-gallery .preview-photo img{
 display:block!important;
 width:100%!important;
 height:100%!important;
 object-fit:contain!important;
 object-position:center center!important;
 background:transparent!important;
}
html body #my-preview #myPreviewBody .preview-image-number{
 background:rgba(17,9,33,.7)!important;
}
@media(max-width:650px){
 html body #my-preview #myPreviewBody .orbit-preview-gallery>.preview-photo{
  aspect-ratio:4/4.8!important;
  max-height:min(76svh,620px)!important;
 }
}
/* Apply the same restrained layout language as Profile Edit. */
html body #account,
html body #preferences{
 max-width:780px!important;
 padding:22px clamp(14px,3vw,28px) 95px!important;
}
html body #account>.heading,
html body #preferences>.heading{
 font-size:clamp(29px,3.8vw,37px)!important;
 line-height:1.2!important;
 margin:8px 0 9px!important;
 color:var(--orbit-settings-gold)!important;
}
html body #account>.intro,
html body #preferences>.intro{
 font:400 13px/1.65 Inter,system-ui,sans-serif!important;
 color:var(--orbit-settings-muted)!important;
 max-width:600px!important;
 margin:6px 0 22px!important;
}
html body #account>.eyebrow,
html body #preferences>.eyebrow{
 color:var(--orbit-settings-gold)!important;
 font:600 11px/1.4 'IBM Plex Mono',ui-monospace,monospace!important;
 letter-spacing:.13em!important;
}
/* Legacy account colors force white boxes and dark labels with !important.
   Override explicitly and keep sensitive sign-in information legible. */
html body #account .account-panel,
html body #preferences .dating-preferences-panel{
 display:block;
 width:100%;
 max-width:720px!important;
 margin:0 auto!important;
 padding:clamp(20px,3.3vw,30px)!important;
 background:var(--orbit-settings-glass)!important;
 background-color:var(--orbit-settings-glass)!important;
 background-image:none!important;
 border:1px solid var(--orbit-settings-line)!important;
 border-radius:23px!important;
 box-shadow:0 17px 46px rgba(9,4,24,.13),inset 0 1px rgba(255,255,255,.035)!important;
 backdrop-filter:blur(6px) saturate(110%)!important;
 -webkit-backdrop-filter:blur(6px) saturate(110%)!important;
 color:var(--orbit-settings-text)!important;
 -webkit-text-fill-color:var(--orbit-settings-text)!important;
}
html body #account .account-panel *:not(.btn),
html body #preferences .dating-preferences-panel *:not(.btn){
 text-shadow:none!important;
}
html body #account .account-panel h2,
html body #preferences .dating-preferences-panel h2{
 font:500 clamp(22px,3.2vw,27px)/1.25 'Bodoni Moda',Palatino,Georgia,serif!important;
 color:var(--orbit-settings-gold)!important;
 -webkit-text-fill-color:var(--orbit-settings-gold)!important;
 margin:22px 0 13px!important;
 letter-spacing:0;
}
html body #account .account-panel>h2:first-child,
html body #preferences .dating-preferences-panel>h2:first-child{
 margin-top:0!important;
}
html body #account .account-panel .field label,
html body #preferences .dating-preferences-panel label,
html body #preferences .dating-preferences-panel>p,
html body #account .account-panel .small{
 color:var(--orbit-settings-muted)!important;
 -webkit-text-fill-color:var(--orbit-settings-muted)!important;
 font-size:13px!important;
 line-height:1.6!important;
 font-weight:500!important;
}
html body #account .account-panel .account-detail{
 margin:10px 0 20px!important;
 padding:16px 18px!important;
 background:var(--orbit-settings-subglass)!important;
 background-color:var(--orbit-settings-subglass)!important;
 border:1px solid rgba(242,209,165,.18)!important;
 border-radius:15px!important;
 box-shadow:none!important;
}
html body #account .account-panel .account-detail strong{
 display:block;
 color:#f1d5aa!important;-webkit-text-fill-color:#f1d5aa!important;
 font:600 12px/1.4 'IBM Plex Mono',ui-monospace,monospace!important;
}
html body #account .account-panel .account-detail p{
 color:#f8eafa!important;-webkit-text-fill-color:#f8eafa!important;
 font:400 14px/1.65 Inter,system-ui,sans-serif!important;
 overflow-wrap:anywhere;
 margin:9px 0 0!important;
}
html body #account .account-panel form{
 padding:0 0 18px;
 margin:0 0 7px;
 border-bottom:1px solid rgba(243,207,169,.13);
}
html body #account .account-panel .field{margin:10px 0 12px!important}
html body #account .account-panel input,
html body #preferences .dating-preferences-panel input[type=number],
html body #preferences .dating-preferences-panel select{
 display:block;
 width:100%;
 min-height:46px;
 padding:12px 14px!important;
 border:1px solid rgba(239,207,245,.26)!important;
 background:rgba(29,16,50,.35)!important;
 background-color:rgba(29,16,50,.35)!important;
 border-radius:13px!important;
 box-shadow:none!important;
 color:#f8eff9!important;-webkit-text-fill-color:#f8eff9!important;
 font:400 14px/1.35 Inter,system-ui,sans-serif!important;
}
html body #account .account-panel input::placeholder{
 color:rgba(233,216,238,.62)!important;
 -webkit-text-fill-color:rgba(233,216,238,.62)!important;
}
html body #account .account-panel input:focus-visible,
html body #preferences .dating-preferences-panel input:focus-visible,
html body #preferences .dating-preferences-panel select:focus-visible{
 outline:2px solid rgba(250,219,172,.92)!important;
 outline-offset:2px!important;
}
html body #account .account-panel .status,
html body #preferences #datingFeedback{
 min-height:0;
 margin:8px 0!important;
 padding:0!important;
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
 color:#f5d9b2!important;-webkit-text-fill-color:#f5d9b2!important;
 font-size:12px!important;
 line-height:1.6!important;
}
html body #account .account-panel .status:empty,
html body #preferences #datingFeedback:empty{display:none!important}
html body #account .account-panel .actions{gap:9px;flex-wrap:wrap!important}
html body #account .account-panel .btn,
html body #preferences .dating-preferences-panel .btn{
 font:600 13px/1.3 Inter,system-ui,sans-serif!important;
 min-height:44px!important;
 border-radius:13px!important;
 padding:10px 15px!important;
 box-shadow:none!important;
}
html body #account .account-panel button.btn:not(.secondary),
html body #preferences .dating-preferences-panel button.btn:not(.secondary){
 background:var(--orbit-settings-cta)!important;
 background-color:var(--orbit-settings-cta)!important;
 background-image:none!important;
 border:1px solid rgba(250,214,158,.48)!important;
 color:#ffe4b7!important;-webkit-text-fill-color:#ffe4b7!important;
 backdrop-filter:blur(4px);
}
html body #account .account-panel button.btn.secondary,
html body #preferences .dating-preferences-panel button.btn.secondary{
 background:rgba(135,90,160,.15)!important;
 background-color:rgba(135,90,160,.15)!important;
 border:1px solid rgba(238,207,166,.22)!important;
 color:#f8eaf8!important;-webkit-text-fill-color:#f8eaf8!important;
}
html body #account .account-panel button.btn:hover,
html body #preferences .dating-preferences-panel button.btn:hover{
 border-color:rgba(250,218,170,.65)!important;
 background-color:rgba(156,99,182,.3)!important;
}
html body #account .account-panel button.btn:disabled,
html body #preferences .dating-preferences-panel button.btn:disabled{opacity:.5!important}
/* Preferences: light plum nested controls and finer borders. */
html body #preferences .dating-preferences-panel .orbit-slider-block{
 margin:10px 0 21px!important;
 padding:16px 17px!important;
 background:var(--orbit-settings-subglass)!important;
 background-color:var(--orbit-settings-subglass)!important;
 background-image:none!important;
 border:1px solid rgba(243,207,169,.16)!important;
 box-shadow:none!important;
 border-radius:17px!important;
 backdrop-filter:none!important;
}
html body #preferences .orbit-slider-head strong{
 color:#f5e6f7!important;-webkit-text-fill-color:#f5e6f7!important;
 font-size:13px!important;font-weight:600!important;
}
html body #preferences .orbit-slider-head .orbit-slider-value{
 color:var(--orbit-settings-gold)!important;
 -webkit-text-fill-color:var(--orbit-settings-gold)!important;
 font-size:14px!important;
}
html body #preferences .orbit-range-ends,
html body #preferences .orbit-range-ends span{
 color:#d9c8e2!important;-webkit-text-fill-color:#d9c8e2!important;
 font-size:11px!important;
}
html body #preferences .orbit-range-track{
 background:rgba(224,207,232,.30)!important;
}
html body #preferences .orbit-range-track .orbit-range-fill{
 background:linear-gradient(90deg,#b68cdd,#dbb7f1)!important;
}
html body #preferences .orbit-range-track input[type=range]{
 background:transparent!important;
}
html body #preferences .orbit-range-track input[type=range]::-webkit-slider-thumb{
 background:#f2e8f8!important;border:3px solid #ac83d6!important;
 box-shadow:0 0 0 3px rgba(102,59,129,.16)!important;
}
html body #preferences .orbit-range-track input[type=range]::-moz-range-thumb{
 background:#f2e8f8!important;border:3px solid #ac83d6!important;
}
html body #preferences .dating-genders{
 display:flex;flex-wrap:wrap;gap:9px!important;
 margin:12px 0 21px!important;
}
html body #preferences .dating-genders label{
 display:inline-flex!important;
 align-items:center;
 gap:9px;
 min-height:43px;
 padding:8px 13px!important;
 background:rgba(116,72,147,.17)!important;
 background-color:rgba(116,72,147,.17)!important;
 border:1px solid rgba(241,207,171,.19)!important;
 border-radius:999px!important;
 font-size:12px!important;
 color:#f7eafa!important;-webkit-text-fill-color:#f7eafa!important;
}
html body #preferences .dating-genders input[type=checkbox]{
 flex:0 0 auto;width:16px!important;height:16px!important;
 accent-color:#b38ad6!important;
}
html body #preferences .dating-preferences-panel p.dating-hint{
 padding:12px 0!important;
 margin:7px 0 16px!important;
 background:transparent!important;
 background-color:transparent!important;
 border-top:1px solid rgba(242,209,164,.13)!important;
 border-radius:0!important;
 font:400 12px/1.6 Inter,system-ui,sans-serif!important;
 color:#d9c8e1!important;-webkit-text-fill-color:#d9c8e1!important;
}
html body #preferences .dating-preferences-panel .actions{gap:9px!important;flex-wrap:wrap!important}
/* Keep small screens usable rather than squeezing settings. */
@media(max-width:650px){
 html body #account,html body #preferences{padding:17px 12px 105px!important}
 html body #account .account-panel,
 html body #preferences .dating-preferences-panel{padding:18px 15px!important;border-radius:19px!important}
 html body #preferences .dating-preferences-panel .orbit-slider-block{padding:14px 12px!important}
 html body #account .account-panel .account-detail{padding:13px 12px!important}
}
@media(prefers-reduced-transparency:reduce){
 html body #account .account-panel,
 html body #preferences .dating-preferences-panel{
  background:#291839!important;
  background-color:#291839!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
}
