﻿/* V5.9.1A component-safe polish: no global layout overrides */
#loginModal{z-index:9999!important;background:rgba(8,10,18,.58)!important;padding:14px!important;}
#loginModal .modal-card{width:min(460px,calc(100vw - 28px))!important;max-height:82vh!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;background:#fff!important;color:#111827!important;border:1px solid rgba(15,23,42,.10)!important;border-radius:26px!important;padding:22px!important;box-shadow:0 24px 76px rgba(0,0,0,.30)!important;}
#loginModal .modal-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:14px!important;}
#loginModal h2{color:#111827!important;margin:6px 0 4px!important;line-height:1.18!important;}
#loginModal .muted,#loginModal p{color:#475467!important;line-height:1.6!important;}
#loginModal .eyebrow{background:#eef4ff!important;color:#3454d1!important;border:1px solid rgba(52,84,209,.12)!important;box-shadow:none!important;}
#loginModal .field label{color:#344054!important;font-weight:900!important;}
#loginModal .input,#loginModal select{background:#f8fafc!important;color:#111827!important;border:1px solid #d0d5dd!important;min-height:48px!important;border-radius:16px!important;}
#loginModal .btn.primary{background:linear-gradient(135deg,#7c5cff,#67d5ff)!important;color:#fff!important;border:0!important;box-shadow:0 12px 28px rgba(103,117,255,.22)!important;}
#loginModal .btn.ghost{background:#f2f4f7!important;color:#1d2939!important;border:1px solid #e4e7ec!important;box-shadow:none!important;}
.v591a-eco-pills{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:8px 1px 4px;margin:10px 0 2px}.v591a-eco-pills::-webkit-scrollbar{display:none}.v591a-eco-pills a,.v591a-eco-pills span{flex:0 0 auto;display:inline-flex;align-items:center;min-height:32px;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 6px 18px rgba(15,23,42,.055);color:#344054!important;font-size:12px;font-weight:900;text-decoration:none}.v591a-eco-pills a:first-child{background:#111827;color:#fff!important}.v591a-eco-pills span{background:#f2f4f7;color:#667085!important}.v591a-profile-service{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v591a-profile-service a{display:block;min-height:104px;padding:14px;border-radius:18px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 8px 22px rgba(15,23,42,.055);text-decoration:none;color:#17202a}.v591a-profile-service b{display:block;font-size:16px;margin-bottom:7px}.v591a-profile-service span{display:block;color:#667085;font-size:12px;line-height:1.55}@media(max-width:720px){#loginModal{align-items:flex-end!important;padding:12px 10px calc(76px + env(safe-area-inset-bottom))!important}#loginModal .modal-card{width:100%!important;max-height:74vh!important;border-radius:22px!important;padding:18px!important}.v591a-profile-service{grid-template-columns:1fr!important;gap:8px}.v591a-profile-service a{min-height:0}.site-footer .footer-links{display:none!important}.v591a-eco-pills{margin-top:12px}}
/* V5.9.1B: profile service card compatibility fix */
.member-profile-service .member-section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:12px!important;}
.member-profile-service .member-section-head h2{margin:4px 0 0!important;line-height:1.18!important;}
.member-profile-service .member-section-head .btn{flex:0 0 auto!important;white-space:nowrap!important;}
.v591a-profile-service.member-profile-status-grid,
.member-profile-status-grid.v591a-profile-service{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-top:0!important;}
.v591a-profile-service article,
.v591a-profile-service a{position:relative!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:space-between!important;min-height:118px!important;padding:14px!important;border-radius:18px!important;background:linear-gradient(145deg,#fff,#f8fbff)!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 8px 22px rgba(15,23,42,.055)!important;text-decoration:none!important;color:#17202a!important;overflow:hidden!important;}
.v591a-profile-service article:after,
.v591a-profile-service a:after{content:"";position:absolute;right:-26px;top:-30px;width:78px;height:78px;border-radius:999px;background:linear-gradient(135deg,rgba(124,92,255,.14),rgba(103,213,255,.12));pointer-events:none;}
.v591a-profile-service article b,
.v591a-profile-service a b{position:relative;z-index:1;display:block!important;font-size:16px!important;line-height:1.25!important;margin:0 0 7px!important;color:#17202a!important;}
.v591a-profile-service article span,
.v591a-profile-service a span{position:relative;z-index:1;display:block!important;color:#667085!important;font-size:12px!important;line-height:1.5!important;margin:0!important;min-height:36px!important;}
.v591a-profile-service article>a,
.v591a-profile-service a .btn{position:relative;z-index:1;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-top:10px!important;min-height:30px!important;padding:7px 11px!important;border-radius:999px!important;background:#111827!important;color:#fff!important;font-size:12px!important;font-weight:950!important;text-decoration:none!important;border:0!important;}
@media(max-width:720px){.member-profile-service .member-section-head{display:block!important}.member-profile-service .member-section-head .btn{display:inline-flex!important;margin-top:10px!important;width:auto!important}.v591a-profile-service.member-profile-status-grid,.member-profile-status-grid.v591a-profile-service{grid-template-columns:1fr!important;gap:8px!important}.v591a-profile-service article,.v591a-profile-service a{min-height:0!important;padding:13px 14px!important;border-radius:17px!important}.v591a-profile-service article span,.v591a-profile-service a span{min-height:0!important}.v591a-profile-service article>a{margin-top:9px!important}}


/* V5.9.1C: theme preview restore and duplicate profile guard */
.v591c-theme-preview{margin-top:14px!important;padding:16px!important;border-radius:24px!important;background:#fff!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 12px 30px rgba(15,23,42,.06)!important;}
.v591c-theme-head{display:flex!important;justify-content:space-between!important;gap:12px!important;margin-bottom:12px!important}.v591c-theme-head h2{margin:4px 0!important}.v591c-theme-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.v591c-theme-card{border:1px solid rgba(15,23,42,.08)!important;background:#f8fafc!important;border-radius:18px!important;padding:12px!important;text-align:left!important;color:#17202a!important;cursor:pointer!important;box-shadow:none!important}.v591c-theme-card i{display:block;width:100%;height:42px;border-radius:14px;margin-bottom:10px;background:linear-gradient(135deg,#7c5cff,#ff5f9f)}.v591c-theme-card b{display:block;font-size:14px!important}.v591c-theme-card span{display:block;margin-top:5px;color:#667085!important;font-size:12px!important;line-height:1.45!important}.v591c-theme-card.active{border-color:#7c5cff!important;box-shadow:0 0 0 3px rgba(124,92,255,.12)!important;background:#fff!important}.v591c-theme-card[data-v591c-theme="ios"] i{background:linear-gradient(135deg,#eef4ff,#ffffff)}.v591c-theme-card[data-v591c-theme="mist"] i{background:linear-gradient(135deg,#d9d6ea,#f7f4ff)}.v591c-theme-card[data-v591c-theme="luxury"] i{background:linear-gradient(135deg,#2a2118,#caa56a)}.v591c-theme-card[data-v591c-theme="club"] i{background:linear-gradient(135deg,#100b1e,#7c3aed)}.v591c-theme-card[data-v591c-theme="neon"] i{background:linear-gradient(135deg,#0f1024,#22d3ee,#fb3f9a)}.v591c-phone{margin-top:12px;border-radius:22px;padding:14px;background:linear-gradient(135deg,#fff,#f7f8ff);border:1px solid rgba(15,23,42,.08)}.v591c-phone-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.v591c-phone-top b{font-size:18px}.v591c-phone-top span{font-size:12px;color:#667085}.v591c-phone-card{margin-top:12px;border-radius:18px;padding:16px;background:#111827;color:#fff}.v591c-phone-card strong{display:block;font-size:16px}.v591c-phone-card em{display:block;margin-top:6px;color:rgba(255,255,255,.72);font-style:normal;font-size:12px}.v591c-phone-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.v591c-phone-actions span{display:grid;place-items:center;min-height:34px;border-radius:999px;background:#111827;color:#fff;font-weight:900;font-size:12px}.v591c-phone[data-theme="ios"] .v591c-phone-card{background:#eef4ff;color:#17202a}.v591c-phone[data-theme="ios"] .v591c-phone-card em{color:#667085}.v591c-phone[data-theme="club"],.v591c-phone[data-theme="neon"]{background:#101322;color:#fff}.v591c-phone[data-theme="luxury"] .v591c-phone-card{background:linear-gradient(135deg,#2a2118,#8a6a3d)}.v591c-phone[data-theme="neon"] .v591c-phone-card{background:linear-gradient(135deg,#171225,#7c3aed,#06b6d4)}
@media(max-width:720px){.v591c-theme-grid{grid-template-columns:1fr 1fr!important}.v591c-theme-card{padding:10px!important}.v591c-theme-card span{display:none!important}.v591c-phone{display:none!important}}


/* V5.9.1D: mobile bottom spacing and title contrast */
@media(max-width:720px){
  body.page,body.admin-page{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))!important;min-height:100vh!important;}
  body.page main.wrap,body.page .wrap,body.admin-page .admin-wrap{padding-bottom:8px!important;margin-bottom:0!important;}
  body.page .site-footer{margin-top:18px!important;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))!important;}
  body.page .footer-card{margin-bottom:8px!important;}
  body.page .footer-copy{margin:8px 0 0!important;line-height:1.45!important;}
  body.page .v591a-eco-pills{margin:8px 0 0!important;padding-bottom:0!important;}
  body.page .bottom-nav,body.admin-page .bottom-nav{bottom:calc(6px + env(safe-area-inset-bottom,0px))!important;}
  body.admin-page .admin-wrap{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))!important;}
  body.admin-page .admin-panel:last-child,body.admin-page .admin-tab.active,body.admin-page .admin-main{margin-bottom:0!important;padding-bottom:0!important;}
  body[data-v56-theme] .section-head,body[data-v56-theme] .admin-page-head,body[data-v56-theme] .panel-head{position:relative!important;z-index:1!important;}
  body[data-v56-theme] .section-head h1,body[data-v56-theme] .section-head h2,body[data-v56-theme] .admin-page-head h1,body[data-v56-theme] .panel-head h2{color:#f8fafc!important;text-shadow:0 2px 8px rgba(0,0,0,.45)!important;font-weight:1000!important;}
  body[data-v56-theme] .section-head p,body[data-v56-theme] .admin-page-head p,body[data-v56-theme] .panel-head p{color:rgba(248,250,252,.82)!important;text-shadow:0 1px 5px rgba(0,0,0,.35)!important;}
  body[data-v56-theme] .card .section-head h1,body[data-v56-theme] .card .section-head h2,body[data-v56-theme] .card .panel-head h2,body[data-v56-theme] .admin-panel .panel-head h2{color:#17202a!important;text-shadow:none!important;}
  body[data-v56-theme] .card .section-head p,body[data-v56-theme] .card .panel-head p,body[data-v56-theme] .admin-panel .panel-head p{color:#667085!important;text-shadow:none!important;}
}
body[data-v56-theme="ios"] .section-head h1,body[data-v56-theme="ios"] .section-head h2,body[data-v56-theme="mist"] .section-head h1,body[data-v56-theme="mist"] .section-head h2{color:#17202a!important;text-shadow:none!important;}
body[data-v56-theme="ios"] .section-head p,body[data-v56-theme="mist"] .section-head p{color:#667085!important;text-shadow:none!important;}


/* V5.9.1E: desktop dark section title contrast */
@media(min-width:721px){
  body[data-v56-theme] .v503-entry-section>.section-head,
  body[data-v56-theme] .v503-eco-section>.section-head,
  body[data-v56-theme] main.wrap>.section>.section-head{
    position:relative!important;
    z-index:2!important;
    padding:4px 0 8px!important;
  }
  body[data-v56-theme] .v503-entry-section>.section-head h1,
  body[data-v56-theme] .v503-entry-section>.section-head h2,
  body[data-v56-theme] .v503-eco-section>.section-head h1,
  body[data-v56-theme] .v503-eco-section>.section-head h2{
    color:#f8fafc!important;
    text-shadow:0 2px 10px rgba(0,0,0,.55)!important;
    font-weight:1000!important;
  }
  body[data-v56-theme] .v503-entry-section>.section-head p,
  body[data-v56-theme] .v503-eco-section>.section-head p{
    color:rgba(248,250,252,.82)!important;
    text-shadow:0 1px 6px rgba(0,0,0,.45)!important;
    font-weight:700!important;
  }
  body[data-v56-theme="ios"] .v503-entry-section>.section-head h1,
  body[data-v56-theme="ios"] .v503-entry-section>.section-head h2,
  body[data-v56-theme="ios"] .v503-eco-section>.section-head h1,
  body[data-v56-theme="ios"] .v503-eco-section>.section-head h2,
  body[data-v56-theme="mist"] .v503-entry-section>.section-head h1,
  body[data-v56-theme="mist"] .v503-entry-section>.section-head h2,
  body[data-v56-theme="mist"] .v503-eco-section>.section-head h1,
  body[data-v56-theme="mist"] .v503-eco-section>.section-head h2{
    color:#17202a!important;
    text-shadow:none!important;
  }
  body[data-v56-theme="ios"] .v503-entry-section>.section-head p,
  body[data-v56-theme="ios"] .v503-eco-section>.section-head p,
  body[data-v56-theme="mist"] .v503-entry-section>.section-head p,
  body[data-v56-theme="mist"] .v503-eco-section>.section-head p{
    color:#667085!important;
    text-shadow:none!important;
  }
}


/* V5.9.1F: global title contrast system */
body[data-v56-theme]{--title-on-dark:#f8fafc;--desc-on-dark:rgba(248,250,252,.82);--title-on-light:#17202a;--desc-on-light:#667085;}
body[data-v56-theme] .hero h1,
body[data-v56-theme] .hero-main h1,
body[data-v56-theme] .v56-hero h1,
body[data-v56-theme] main.wrap>.section-head h1,
body[data-v56-theme] main.wrap>.section-head h2,
body[data-v56-theme] main.wrap>.section>.section-head h1,
body[data-v56-theme] main.wrap>.section>.section-head h2,
body[data-v56-theme] .v503-entry-section>.section-head h1,
body[data-v56-theme] .v503-entry-section>.section-head h2,
body[data-v56-theme] .v503-eco-section>.section-head h1,
body[data-v56-theme] .v503-eco-section>.section-head h2,
body[data-v56-theme] .page-head h1,
body[data-v56-theme] .admin-page-head h1,
body[data-v56-theme] .admin-control-top h1{
  color:var(--title-on-dark)!important;
  text-shadow:0 2px 10px rgba(0,0,0,.50)!important;
  font-weight:1000!important;
}
body[data-v56-theme] .hero p,
body[data-v56-theme] .hero-main p,
body[data-v56-theme] .v56-hero p,
body[data-v56-theme] main.wrap>.section-head p,
body[data-v56-theme] main.wrap>.section>.section-head p,
body[data-v56-theme] .v503-entry-section>.section-head p,
body[data-v56-theme] .v503-eco-section>.section-head p,
body[data-v56-theme] .page-head p,
body[data-v56-theme] .admin-page-head p,
body[data-v56-theme] .admin-control-top p{
  color:var(--desc-on-dark)!important;
  text-shadow:0 1px 6px rgba(0,0,0,.38)!important;
}
body[data-v56-theme] .card h1,
body[data-v56-theme] .card h2,
body[data-v56-theme] .card h3,
body[data-v56-theme] .card .section-head h1,
body[data-v56-theme] .card .section-head h2,
body[data-v56-theme] .card .member-section-head h2,
body[data-v56-theme] .card .panel-head h2,
body[data-v56-theme] .member-panel h1,
body[data-v56-theme] .member-panel h2,
body[data-v56-theme] .member-profile-card h1,
body[data-v56-theme] .profile-form h1,
body[data-v56-theme] .profile-form h2,
body[data-v56-theme] .side-panel h1,
body[data-v56-theme] .side-panel h2,
body[data-v56-theme] .benefit-card h3,
body[data-v56-theme] .admin-panel h1,
body[data-v56-theme] .admin-panel h2,
body[data-v56-theme] .share-section-title h3,
body[data-v56-theme] .share-copy-panel h3{
  color:var(--title-on-light)!important;
  text-shadow:none!important;
}
body[data-v56-theme] .card p,
body[data-v56-theme] .card .muted,
body[data-v56-theme] .card .section-head p,
body[data-v56-theme] .card .member-section-head p,
body[data-v56-theme] .card .panel-head p,
body[data-v56-theme] .member-panel p,
body[data-v56-theme] .member-profile-card p,
body[data-v56-theme] .profile-form p,
body[data-v56-theme] .side-panel p,
body[data-v56-theme] .benefit-card p,
body[data-v56-theme] .admin-panel p,
body[data-v56-theme] .share-section-title p,
body[data-v56-theme] .share-copy-panel p{
  color:var(--desc-on-light)!important;
  text-shadow:none!important;
}
body[data-v56-theme="ios"] .hero h1,
body[data-v56-theme="ios"] .hero-main h1,
body[data-v56-theme="ios"] main.wrap>.section-head h1,
body[data-v56-theme="ios"] main.wrap>.section-head h2,
body[data-v56-theme="ios"] main.wrap>.section>.section-head h1,
body[data-v56-theme="ios"] main.wrap>.section>.section-head h2,
body[data-v56-theme="ios"] .page-head h1,
body[data-v56-theme="mist"] .hero h1,
body[data-v56-theme="mist"] .hero-main h1,
body[data-v56-theme="mist"] main.wrap>.section-head h1,
body[data-v56-theme="mist"] main.wrap>.section-head h2,
body[data-v56-theme="mist"] main.wrap>.section>.section-head h1,
body[data-v56-theme="mist"] main.wrap>.section>.section-head h2,
body[data-v56-theme="mist"] .page-head h1{
  color:var(--title-on-light)!important;
  text-shadow:none!important;
}
body[data-v56-theme="ios"] .hero p,
body[data-v56-theme="ios"] .hero-main p,
body[data-v56-theme="ios"] main.wrap>.section-head p,
body[data-v56-theme="ios"] main.wrap>.section>.section-head p,
body[data-v56-theme="ios"] .page-head p,
body[data-v56-theme="mist"] .hero p,
body[data-v56-theme="mist"] .hero-main p,
body[data-v56-theme="mist"] main.wrap>.section-head p,
body[data-v56-theme="mist"] main.wrap>.section>.section-head p,
body[data-v56-theme="mist"] .page-head p{
  color:var(--desc-on-light)!important;
  text-shadow:none!important;
}
body[data-v56-theme] .eyebrow{font-weight:1000!important;}
body[data-v56-theme] .card .eyebrow,body[data-v56-theme] .admin-panel .eyebrow{color:#3454d1!important;text-shadow:none!important;}


/* V5.9.1G/I: iOS title surface and mobile-safe guest placeholder */
body[data-v56-theme] .section-head:not(.v591g-card-head),
body[data-v56-theme] main.wrap>.section>.section-head,
body[data-v56-theme] main.wrap>.section-head{
  border-radius:24px!important;
}
@media(max-width:720px){
  body[data-v56-theme] main.wrap>.section>.section-head,
  body[data-v56-theme] main.wrap>.section-head{
    margin:12px 0 12px!important;
    padding:14px 16px!important;
    background:linear-gradient(135deg,rgba(20,16,32,.90),rgba(64,26,74,.82))!important;
    border:1px solid rgba(255,255,255,.10)!important;
    box-shadow:0 12px 36px rgba(15,12,24,.22)!important;
  }
  body[data-v56-theme="ios"] main.wrap>.section>.section-head,
  body[data-v56-theme="ios"] main.wrap>.section-head,
  body[data-v56-theme="mist"] main.wrap>.section>.section-head,
  body[data-v56-theme="mist"] main.wrap>.section-head{
    background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(244,247,255,.92))!important;
    border:1px solid rgba(15,23,42,.08)!important;
    box-shadow:0 10px 28px rgba(15,23,42,.08)!important;
  }
  body[data-v56-theme] main.wrap>.section>.section-head h1,
  body[data-v56-theme] main.wrap>.section>.section-head h2,
  body[data-v56-theme] main.wrap>.section-head h1,
  body[data-v56-theme] main.wrap>.section-head h2{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.38)!important;}
  body[data-v56-theme] main.wrap>.section>.section-head p,
  body[data-v56-theme] main.wrap>.section-head p{color:rgba(255,255,255,.82)!important;text-shadow:0 1px 5px rgba(0,0,0,.30)!important;}
  body[data-v56-theme="ios"] main.wrap>.section>.section-head h1,
  body[data-v56-theme="ios"] main.wrap>.section>.section-head h2,
  body[data-v56-theme="ios"] main.wrap>.section-head h1,
  body[data-v56-theme="ios"] main.wrap>.section-head h2,
  body[data-v56-theme="mist"] main.wrap>.section>.section-head h1,
  body[data-v56-theme="mist"] main.wrap>.section>.section-head h2,
  body[data-v56-theme="mist"] main.wrap>.section-head h1,
  body[data-v56-theme="mist"] main.wrap>.section-head h2{color:#17202a!important;text-shadow:none!important;}
  body[data-v56-theme="ios"] main.wrap>.section>.section-head p,
  body[data-v56-theme="ios"] main.wrap>.section-head p,
  body[data-v56-theme="mist"] main.wrap>.section>.section-head p,
  body[data-v56-theme="mist"] main.wrap>.section-head p{color:#667085!important;text-shadow:none!important;}
}
.guest-photo img[src*="placeholder-avatar"],.admin-thumb img[src*="placeholder-avatar"]{object-fit:cover!important;object-position:center center!important;}
.guest-photo.v591g-placeholder{background:linear-gradient(180deg,#f8faff 0%,#eef2ff 58%,#555d73 100%)!important;}
.guest-photo.v591g-placeholder img{display:block!important;width:100%!important;height:100%!important;filter:saturate(.98) contrast(1.02)!important;transform:none!important;object-fit:cover!important;object-position:center center!important;image-orientation:none!important;}
/* V5.9.1H: iOS detail modal solid surface */
body[data-v56-theme] .modal:not(#loginModal){background:rgba(5,7,14,.72)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;}
body[data-v56-theme] .modal:not(#loginModal) .modal-card,
body[data-v56-theme] .detail-card,
body[data-v56-theme] .guest-detail-card{
  background:linear-gradient(180deg,#0f1222 0%,#14182a 46%,#101322 100%)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 22px 80px rgba(0,0,0,.45)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  opacity:1!important;
}
body[data-v56-theme] .modal:not(#loginModal) .detail-info-grid>*,
body[data-v56-theme] .modal:not(#loginModal) .detail-grid>*,
body[data-v56-theme] .detail-info-grid>*,
body[data-v56-theme] .detail-grid>*{
  background:#f8fafc!important;
  color:#111827!important;
  border:1px solid rgba(15,23,42,.08)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.08)!important;
  opacity:1!important;
}
body[data-v56-theme] .modal:not(#loginModal) .detail-info-grid span,
body[data-v56-theme] .modal:not(#loginModal) .detail-grid span,
body[data-v56-theme] .detail-info-grid span,
body[data-v56-theme] .detail-grid span{color:#667085!important;text-shadow:none!important;}
body[data-v56-theme] .modal:not(#loginModal) .detail-info-grid b,
body[data-v56-theme] .modal:not(#loginModal) .detail-grid b,
body[data-v56-theme] .detail-info-grid b,
body[data-v56-theme] .detail-grid b{color:#111827!important;text-shadow:none!important;}
@media(max-width:720px){
  body[data-v56-theme] .modal:not(#loginModal){align-items:flex-end!important;padding:10px 10px calc(70px + env(safe-area-inset-bottom,0px))!important;}
  body[data-v56-theme] .modal:not(#loginModal) .modal-card{max-height:84vh!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:24px!important;}
}
.guest-photo.v591g-placeholder img{object-position:center center!important;}
.admin-thumb img[src*="miyu-guest-placeholder"],.share-pick-thumb img[src*="miyu-guest-placeholder"]{object-fit:cover!important;object-position:center center!important;}


/* V5.9.1I: Harmony/iOS no-photo compatibility, no center text overlay */
.guest-photo.v591g-placeholder:after{content:none!important;display:none!important;}
.guest-photo.v591g-placeholder img[src*='miyu-guest-placeholder']{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;transform:none!important;image-orientation:none!important;}
.guest-photo.v591g-placeholder.v591i-fallback:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#f8faff 0%,#eef2ff 56%,#555d73 100%);z-index:0;}
.guest-photo.v591g-placeholder.v591i-fallback img{opacity:0!important;}


/* V5.9.1J: P0 visual stability - logo, admin quick actions, mobile admin, bottom spacing */
.brand-logo img{content:url('../img/miyu-official-logo.png?v=591j')!important;object-fit:contain!important;background:transparent!important;}
.brand-logo{background:transparent!important;box-shadow:none!important;border:0!important;overflow:visible!important;}
.app-header .brand-logo img{width:42px!important;height:42px!important;display:block!important;}
body.admin-page .brand-logo img{width:42px!important;height:42px!important;}
body.admin-page .admin-flow{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(136px,1fr))!important;gap:10px!important;align-items:stretch!important;}
body.admin-page .admin-flow button,
body.admin-page .admin-head-actions .btn,
body.admin-page .admin-top-actions .btn,
body.admin-page .row-actions .btn{background:#111827!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:0 10px 24px rgba(15,23,42,.16)!important;text-shadow:none!important;font-weight:950!important;}
body.admin-page .admin-flow button:hover,
body.admin-page .admin-head-actions .btn:hover,
body.admin-page .admin-top-actions .btn:hover,
body.admin-page .row-actions .btn:hover{filter:brightness(1.05)!important;transform:translateY(-1px);}
body.admin-page .admin-flow button:nth-child(2n){background:linear-gradient(135deg,#172033,#27364f)!important;color:#fff!important;}
body.admin-page .admin-flow button:nth-child(3n){background:linear-gradient(135deg,#2b1f45,#4b2d72)!important;color:#fff!important;}
body.admin-page .admin-nav-group button{background:#fff!important;color:#17202a!important;border:1px solid rgba(15,23,42,.10)!important;text-shadow:none!important;}
body.admin-page .admin-nav-group button.active{background:#111827!important;color:#fff!important;border-color:#111827!important;}
@media(max-width:720px){
  body.page{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;}
  body.admin-page{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;}
  body.page main.wrap,body.page .wrap,body.admin-page .admin-wrap{padding-bottom:0!important;margin-bottom:0!important;}
  body[data-v56-theme] .site-footer{margin-top:14px!important;padding-bottom:76px!important;}
  .site-footer.wrap,body[data-v56-theme] .site-footer.wrap{width:min(100% - 24px,1180px)!important;}
  .v591a-eco-pills{margin:8px 0 0!important;gap:6px!important;}
  .v591a-eco-pills a,.v591a-eco-pills span{padding:7px 9px!important;font-size:11px!important;}
  body.admin-page .admin-mobile-tabs{display:flex!important;gap:8px!important;overflow-x:auto!important;padding:8px!important;margin:10px 0 12px!important;border-radius:18px!important;background:rgba(255,255,255,.92)!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 10px 28px rgba(15,23,42,.08)!important;}
  body.admin-page .admin-mobile-tabs button{flex:0 0 auto!important;min-height:36px!important;padding:8px 12px!important;border-radius:999px!important;background:#f3f4f6!important;color:#17202a!important;border:1px solid rgba(15,23,42,.08)!important;font-weight:950!important;text-shadow:none!important;}
  body.admin-page .admin-mobile-tabs button.active{background:#111827!important;color:#fff!important;border-color:#111827!important;}
  body.admin-page .admin-flow{grid-template-columns:1fr!important;gap:8px!important;}
  body.admin-page .admin-flow button{min-height:42px!important;border-radius:14px!important;text-align:left!important;padding:10px 12px!important;}
  body.admin-page .admin-page-head,.admin-control-top{padding:16px!important;border-radius:22px!important;}
}


/* V5.9.1K: share card logo, styles and WeChat save preview */
.share-poster-brand img{content:url('../img/miyu-official-logo.png?v=591o')!important;width:42px!important;height:42px!important;object-fit:contain!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;}
.share-style-row{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin:10px 0 0!important;}
.share-style-row .btn{min-height:36px!important;border-radius:999px!important;font-weight:950!important;}
.share-poster-card.share-style-noir{background:linear-gradient(180deg,#111827,#171225)!important;color:#fff!important;}
.share-poster-card.share-style-noir .share-poster-body{background:#111827!important;color:#fff!important;}
.share-poster-card.share-style-noir .share-poster-intro p,
.share-poster-card.share-style-noir .share-poster-footer,
.share-poster-card.share-style-noir .share-poster-service em{color:rgba(255,255,255,.72)!important;}
.share-poster-card.share-style-noir .share-poster-fields div{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.12)!important;}
.share-poster-card.share-style-noir .share-poster-fields b{color:#fff!important;}
.share-poster-card.share-style-noir .share-poster-fields span{color:rgba(255,255,255,.68)!important;}
.share-poster-card.share-style-noir .share-poster-top{background:linear-gradient(135deg,#0c1020,#2a1438)!important;color:#fff!important;}
.share-poster-card.share-style-clean{background:#fff!important;color:#111827!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 18px 60px rgba(15,23,42,.10)!important;}
.share-poster-card.share-style-clean .share-poster-top{background:#f8fafc!important;color:#111827!important;border-bottom:1px solid rgba(15,23,42,.08)!important;}
.share-save-modal{z-index:9999!important;align-items:center!important;padding:14px!important;}
.share-save-card{width:min(520px,100%)!important;max-height:92vh!important;overflow:auto!important;border-radius:24px!important;}
.share-save-image-wrap{display:grid!important;place-items:center!important;background:#0b1020!important;border-radius:18px!important;padding:10px!important;margin:12px 0!important;}
.share-save-image-wrap img{display:block!important;width:min(100%,360px)!important;height:auto!important;border-radius:16px!important;box-shadow:0 14px 40px rgba(0,0,0,.28)!important;}
@media(max-width:720px){
  .share-visual-layout.full-card-layout{grid-template-columns:1fr!important;}
  .share-style-row,.share-mode-row,.share-main-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .share-style-row .btn:last-child,.share-main-actions .btn:last-child{grid-column:1/-1!important;}
  .share-save-modal{align-items:flex-end!important;padding:10px 10px calc(72px + env(safe-area-inset-bottom,0px))!important;}
  .share-save-card{max-height:86vh!important;}
  .share-save-image-wrap img{width:min(100%,320px)!important;}
}

/* V5.9.1K: mild mobile footer tightening */
@media(max-width:720px){body[data-v56-theme] .site-footer{padding-bottom:64px!important;margin-bottom:0!important}.bottom-nav{bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}.v591a-eco-pills{margin-bottom:0!important}}


/* V5.9.1L: distinct share poster styles */
.share-poster-brand img{content:url('../img/miyu-official-logo.png?v=591o')!important;}
.share-poster-card.share-style-classic{background:linear-gradient(180deg,#ffffff 0%,#f4f8ff 100%)!important;border:1px solid rgba(64,123,255,.18)!important;box-shadow:0 22px 70px rgba(64,123,255,.16)!important;}
.share-poster-card.share-style-classic .share-poster-top{background:linear-gradient(135deg,#eef6ff,#fff5fb)!important;color:#17202a!important;}
.share-poster-card.share-style-classic .share-poster-fields div{background:#f8fbff!important;border:1px solid rgba(64,123,255,.10)!important;}
.share-poster-card.share-style-clean{background:#fff!important;color:#0f172a!important;border:1px solid rgba(15,23,42,.10)!important;box-shadow:0 12px 36px rgba(15,23,42,.08)!important;}
.share-poster-card.share-style-clean .share-poster-top{background:#fff!important;color:#0f172a!important;border-bottom:1px solid #eef2f7!important;}
.share-poster-card.share-style-clean .share-poster-photo{border-radius:0!important;margin:0!important;}
.share-poster-card.share-style-clean .share-poster-body{padding-top:18px!important;}
.share-poster-card.share-style-clean .share-poster-fields div{background:#fff!important;border:1px solid #e5e7eb!important;box-shadow:none!important;}
.share-poster-card.share-style-detail{background:#101426!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:0 28px 90px rgba(0,0,0,.42)!important;overflow:hidden!important;}
.share-poster-card.share-style-detail .share-poster-top{position:absolute!important;left:18px!important;right:18px!important;top:18px!important;z-index:5!important;background:rgba(10,14,28,.20)!important;color:#fff!important;border:0!important;padding:0!important;}
.share-poster-card.share-style-detail .share-poster-brand div{display:none!important;}
.share-poster-card.share-style-detail .share-poster-brand img{width:40px!important;height:40px!important;filter:drop-shadow(0 8px 18px rgba(0,0,0,.28))!important;}
.share-poster-card.share-style-detail .share-poster-top>span{background:rgba(255,255,255,.88)!important;color:#111827!important;border-radius:999px!important;padding:8px 12px!important;font-weight:1000!important;}
.share-poster-card.share-style-detail .share-poster-photo{height:760px!important;border-radius:34px!important;margin:16px!important;overflow:hidden!important;}
.share-poster-card.share-style-detail .share-poster-photo-mask{background:linear-gradient(180deg,rgba(8,10,22,0) 35%,rgba(8,10,22,.95) 100%)!important;padding:0 42px 48px!important;}
.share-poster-card.share-style-detail .share-poster-badges{gap:10px!important;}
.share-poster-card.share-style-detail .share-poster-badges span{background:rgba(255,255,255,.16)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22)!important;backdrop-filter:blur(12px)!important;}
.share-poster-card.share-style-detail .share-poster-photo-mask h2{font-size:44px!important;letter-spacing:.01em!important;}
.share-poster-card.share-style-detail .share-poster-body{background:#101426!important;color:#fff!important;padding:28px 38px 38px!important;}
.share-poster-card.share-style-detail .share-poster-intro b{display:inline-flex!important;padding:9px 14px!important;border-radius:999px!important;background:#f8fafc!important;color:#3454d1!important;margin-bottom:14px!important;}
.share-poster-card.share-style-detail .share-poster-intro p{color:rgba(255,255,255,.66)!important;font-weight:800!important;line-height:1.75!important;}
.share-poster-card.share-style-detail .share-poster-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;}
.share-poster-card.share-style-detail .share-poster-fields div{background:#f8fafc!important;border:0!important;border-radius:22px!important;padding:16px!important;min-height:82px!important;}
.share-poster-card.share-style-detail .share-poster-fields span{color:#667085!important;font-weight:1000!important;}
.share-poster-card.share-style-detail .share-poster-fields b{color:#111827!important;font-weight:1000!important;}
.share-poster-card.share-style-detail .share-poster-service{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;}
.share-poster-card.share-style-detail .share-poster-footer{color:rgba(255,255,255,.58)!important;}
.share-poster-card.share-style-noir .share-poster-top>span,.share-poster-card.share-style-noir .share-poster-brand span{color:rgba(255,255,255,.78)!important;}
@media(max-width:720px){.share-style-row{grid-template-columns:1fr 1fr!important}.share-poster-card.share-style-detail .share-poster-photo{height:620px!important}.share-poster-card.share-style-detail .share-poster-photo-mask h2{font-size:34px!important}.share-poster-card.share-style-detail .share-poster-body{padding:22px!important}}


/* V5.9.1M: share card spacing and readable footer */
.share-poster-card{line-height:1.45!important;}
.share-poster-top{padding:14px 18px!important;}
.share-poster-brand b{font-size:15px!important;line-height:1.2!important;}
.share-poster-brand span{font-size:11px!important;line-height:1.2!important;}
.share-poster-photo-mask h2{font-size:32px!important;line-height:1.08!important;margin-bottom:8px!important;}
.share-poster-photo-mask p{font-size:14px!important;line-height:1.35!important;}
.share-poster-badges{gap:7px!important;}
.share-poster-badges span{font-size:10px!important;line-height:1.1!important;padding:5px 8px!important;}
.share-poster-body{padding:16px 20px 18px!important;}
.share-poster-intro{margin-bottom:14px!important;}
.share-poster-intro b{font-size:15px!important;line-height:1.2!important;margin-bottom:6px!important;}
.share-poster-intro p{font-size:12px!important;line-height:1.65!important;margin:0!important;min-height:22px!important;}
.share-poster-fields{gap:9px!important;margin-top:10px!important;}
.share-poster-fields div{min-height:54px!important;padding:10px 12px!important;border-radius:12px!important;}
.share-poster-fields span{font-size:10px!important;line-height:1.2!important;margin-bottom:5px!important;}
.share-poster-fields b{font-size:13px!important;line-height:1.28!important;word-break:break-word!important;}
.share-poster-service{display:grid!important;grid-template-columns:minmax(0,1fr) 74px!important;gap:10px!important;align-items:center!important;margin-top:12px!important;padding:10px 12px!important;border-radius:14px!important;min-height:82px!important;overflow:hidden!important;}
.share-service-text{min-width:0!important;display:block!important;}
.share-service-text span{display:block!important;font-size:10px!important;line-height:1.2!important;color:#667085!important;font-weight:900!important;margin-bottom:3px!important;}
.share-service-text b{display:block!important;font-size:15px!important;line-height:1.25!important;color:#3454d1!important;font-weight:1000!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.share-service-text em{display:block!important;font-size:9px!important;line-height:1.25!important;color:#667085!important;font-style:normal!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.share-service-qr,.share-poster-service>img{width:70px!important;height:70px!important;border-radius:10px!important;object-fit:cover!important;background:#fff!important;padding:3px!important;justify-self:end!important;}
.share-poster-footer{display:flex!important;justify-content:space-between!important;gap:8px!important;align-items:center!important;margin-top:8px!important;font-size:9px!important;line-height:1.25!important;}
.share-poster-footer span:first-child{font-weight:900!important;color:#3454d1!important;white-space:nowrap!important;}
.share-poster-footer span:last-child{text-align:right!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.share-poster-card.share-style-detail .share-poster-body{padding:24px 32px 30px!important;}
.share-poster-card.share-style-detail .share-poster-fields div{min-height:74px!important;border-radius:18px!important;padding:14px!important;}
.share-poster-card.share-style-detail .share-poster-fields b{font-size:16px!important;line-height:1.3!important;}
.share-poster-card.share-style-detail .share-poster-fields span{font-size:12px!important;}
.share-poster-card.share-style-detail .share-poster-service{background:rgba(255,255,255,.10)!important;grid-template-columns:minmax(0,1fr) 82px!important;padding:12px 14px!important;}
.share-poster-card.share-style-detail .share-service-text span,.share-poster-card.share-style-detail .share-service-text em{color:rgba(255,255,255,.66)!important;}
.share-poster-card.share-style-detail .share-service-text b{color:#fff!important;font-size:17px!important;}
.share-poster-card.share-style-detail .share-poster-footer span:first-child{color:#fff!important;}
@media(max-width:720px){
  .share-poster-service{grid-template-columns:minmax(0,1fr) 62px!important;padding:9px 10px!important;}
  .share-service-qr,.share-poster-service>img{width:60px!important;height:60px!important;}
  .share-poster-fields b{font-size:12px!important;}
  .share-poster-footer{font-size:8px!important;}
}


/* V5.9.1N: share modal button grid and text contrast fixes */
.share-style-row,.share-mode-row,.share-main-actions{align-items:stretch!important;}
.share-style-row .btn,.share-mode-row .btn,.share-main-actions .btn{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-width:0!important;white-space:nowrap!important;}
@media(max-width:720px){
  .share-style-row,.share-mode-row,.share-main-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .share-style-row .btn,.share-mode-row .btn,.share-main-actions .btn{grid-column:auto!important;width:100%!important;min-height:44px!important;}
  .share-style-row .btn:last-child,.share-main-actions .btn:last-child{grid-column:auto!important;}
  .share-main-actions .btn:nth-child(3){grid-column:1/-1!important;}
}
.share-poster-card.share-style-detail .share-poster-fields div,
.share-poster-card.share-style-noir .share-poster-fields div{background:#f8fafc!important;color:#111827!important;border:1px solid rgba(255,255,255,.08)!important;}
.share-poster-card.share-style-detail .share-poster-fields span,
.share-poster-card.share-style-noir .share-poster-fields span{color:#667085!important;text-shadow:none!important;opacity:1!important;}
.share-poster-card.share-style-detail .share-poster-fields b,
.share-poster-card.share-style-noir .share-poster-fields b{color:#111827!important;text-shadow:none!important;opacity:1!important;}
.share-poster-card.share-style-detail .share-poster-intro b,
.share-poster-card.share-style-noir .share-poster-intro b{color:#3454d1!important;background:#f8fafc!important;text-shadow:none!important;}
.share-poster-card.share-style-detail .share-service-text b,
.share-poster-card.share-style-noir .share-service-text b{color:#fff!important;text-shadow:none!important;}
.share-poster-card.share-style-detail .share-service-text span,
.share-poster-card.share-style-detail .share-service-text em,
.share-poster-card.share-style-noir .share-service-text span,
.share-poster-card.share-style-noir .share-service-text em{color:rgba(255,255,255,.72)!important;text-shadow:none!important;}
.share-poster-card.share-style-clean .share-poster-fields span,
.share-poster-card.share-style-classic .share-poster-fields span{color:#64748b!important;}
.share-poster-card.share-style-clean .share-poster-fields b,
.share-poster-card.share-style-classic .share-poster-fields b{color:#111827!important;}
.share-save-card .share-style-row .btn{font-size:14px!important;}


/* V5.9.1O: saved PNG readability fallback */
.share-poster-card.share-style-detail .share-poster-photo-mask h2{margin-top:12px!important;line-height:1.05!important;}
.share-poster-card.share-style-detail .share-poster-badges{margin-bottom:16px!important;}
.share-poster-card.share-style-detail .share-poster-fields div,.share-poster-card.share-style-noir .share-poster-fields div{background:#f8fafc!important;color:#111827!important;}
.share-poster-card.share-style-detail .share-poster-fields b,.share-poster-card.share-style-noir .share-poster-fields b{color:#111827!important;opacity:1!important;}
.share-poster-card.share-style-detail .share-poster-fields span,.share-poster-card.share-style-noir .share-poster-fields span{color:#667085!important;opacity:1!important;}


/* V5.9.2: invite task management */
#invitesTab .admin-row-rich code{display:inline-block;max-width:100%;white-space:normal;word-break:break-all;background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:8px;padding:4px 6px;color:#3454d1;font-weight:900;}
#invitesTab .admin-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 160px!important;gap:10px!important;margin-bottom:12px!important;}
#invitesTab textarea{width:100%;border-radius:14px;border:1px solid rgba(15,23,42,.10);padding:10px 12px;font:inherit;}
.invite-banner .empty{border-style:solid!important;background:#f8fbff!important;color:#17202a!important;text-align:left!important;}
@media(max-width:720px){#invitesTab .admin-toolbar{grid-template-columns:1fr!important}.row-actions-ops{gap:6px!important}}

/* V5.9.2B: visible invite management override */
.invite-v592b-form textarea,
.invite-rule-box textarea{
  width:100%;
  box-sizing:border-box;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  padding:10px 12px;
  font:inherit;
  resize:vertical;
  background:#fff;
  color:#17202a;
}
.invite-rule-box textarea[readonly]{
  background:#f8fafc;
  color:#17202a;
  font-weight:800;
  line-height:1.55;
}
.invite-v592b-form .field.is-disabled{opacity:.68;}
.invite-v592b-row code{
  display:inline-block;
  max-width:100%;
  white-space:normal;
  word-break:break-all;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:8px;
  padding:4px 6px;
  color:#3454d1;
  font-weight:900;
}
#invitesTab .admin-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 160px!important;
  gap:10px!important;
  margin-bottom:12px!important;
}
.invite-v592b-row .admin-row-title{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.invite-v592b-row .admin-row-meta{line-height:1.7;}
.invite-v592b-row .admin-row-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
@media(max-width:720px){
  #invitesTab .admin-toolbar{grid-template-columns:1fr!important;}
  .invite-v592b-row .admin-row-actions{justify-content:flex-start;}
}
/* V5.9.2E: admin detail polish - safe small fixes */
body.admin-page,
body.admin-page .admin-control,
body.admin-page .admin-shell,
body.admin-page .admin-main,
body.admin-page .admin-tab.active{
  min-height:0!important;
}
body.admin-page .admin-main{
  overflow:visible!important;
}
body.admin-page .admin-list,
body.admin-page .share-pick-list,
body.admin-page #shareRows,
body.admin-page #cardRows{
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  scroll-behavior:auto!important;
}
body.admin-page .admin-row{
  opacity:1!important;
  color:#17202a!important;
}
body.admin-page .admin-row .row-title,
body.admin-page .share-pick-main b,
body.admin-page #shareRows .row-title{
  color:#101828!important;
  text-shadow:none!important;
  opacity:1!important;
  font-weight:950!important;
}
body.admin-page .admin-row .muted,
body.admin-page .share-pick-main i,
body.admin-page #shareRows .muted{
  color:#475467!important;
  text-shadow:none!important;
  opacity:1!important;
}
body.admin-page .admin-row .row-meta,
body.admin-page .share-pick-main em,
body.admin-page #shareRows .row-meta{
  color:#2563eb!important;
  text-shadow:none!important;
  opacity:1!important;
  font-weight:850!important;
}
body.admin-page #shareTab .admin-panel,
body.admin-page #shareTab .share-picker-panel,
body.admin-page #shareTab .share-preview-panel,
body.admin-page #shareTab .share-admin-empty{
  background:rgba(255,255,255,.96)!important;
  color:#17202a!important;
  text-shadow:none!important;
}
body.admin-page #shareTab .input,
body.admin-page #shareSearch{
  background:#111827!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 10px 26px rgba(15,23,42,.12)!important;
}
body.admin-page #shareTab .input::placeholder,
body.admin-page #shareSearch::placeholder{
  color:rgba(255,255,255,.72)!important;
}
body.admin-page #shareTab .eyebrow,
body.admin-page #invitesTab .eyebrow{
  background:#dbeafe!important;
  color:#1d4ed8!important;
  border:1px solid rgba(29,78,216,.16)!important;
  text-shadow:none!important;
}
body.admin-page #invitesTab .admin-page-head h2,
body.admin-page #invitesTab .admin-page-head h1,
body.admin-page #shareTab .admin-page-head h1,
body.admin-page #shareTab .admin-page-head h2{
  color:#101828!important;
  text-shadow:none!important;
}
body.admin-page #invitesTab .admin-page-head p,
body.admin-page #shareTab .admin-page-head p{
  color:#475467!important;
  text-shadow:none!important;
  opacity:1!important;
}
body.admin-page .row-actions-ops{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  max-width:440px!important;
}
body.admin-page .row-actions-ops .btn{
  white-space:nowrap!important;
  min-width:54px!important;
}
body.admin-page .row-actions-ops .admin-force-delete{
  background:#7f1d1d!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.14)!important;
}
@media(max-width:900px){
  body.admin-page .row-actions-ops{justify-content:flex-start!important;max-width:none!important;}
}
/* V5.9.3: gender default guest images */
.guest-photo img[src*="default-male"],
.guest-photo img[src*="default-female"],
.admin-thumb img[src*="default-male"],
.admin-thumb img[src*="default-female"],
.share-pick-thumb img[src*="default-male"],
.share-pick-thumb img[src*="default-female"],
.share-poster-photo img[src*="default-male"],
.share-poster-photo img[src*="default-female"],
.detail-v52-photo img[src*="default-male"],
.detail-v52-photo img[src*="default-female"]{
  object-fit:cover!important;
  object-position:center!important;
}
.admin-thumb img[src*="default-male"],
.admin-thumb img[src*="default-female"],
.share-pick-thumb img[src*="default-male"],
.share-pick-thumb img[src*="default-female"]{
  filter:saturate(.96) contrast(1.04)!important;
}
.share-poster-photo img[src*="default-female"],
.detail-v52-photo img[src*="default-female"]{
  object-position:center top!important;
}
.share-poster-photo img[src*="default-male"],
.detail-v52-photo img[src*="default-male"]{
  object-position:center center!important;
}
/* V5.9.3A: share contrast polish */
body.admin-page #shareTab .share-pick-row,
body.admin-page #shareTab #shareRows .admin-row,
body.admin-page #shareTab .v57a-share-pick{
  background:rgba(255,255,255,.98)!important;
  border:1px solid rgba(15,23,42,.08)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
  opacity:1!important;
}
body.admin-page #shareTab .share-pick-row *,
body.admin-page #shareTab #shareRows .admin-row *,
body.admin-page #shareTab .v57a-share-pick *{
  text-shadow:none!important;
  opacity:1!important;
}
body.admin-page #shareTab .share-pick-main b,
body.admin-page #shareTab #shareRows .row-title,
body.admin-page #shareTab .v57a-share-pick b{
  color:#111827!important;
  font-weight:950!important;
}
body.admin-page #shareTab .share-pick-main em,
body.admin-page #shareTab #shareRows .row-meta,
body.admin-page #shareTab .v57a-share-pick em{
  color:#0f766e!important;
  font-weight:900!important;
}
body.admin-page #shareTab .share-pick-main i,
body.admin-page #shareTab #shareRows .muted,
body.admin-page #shareTab .v57a-share-pick i{
  color:#475467!important;
  font-weight:750!important;
}
body.admin-page #shareTab .share-pick-row:hover,
body.admin-page #shareTab #shareRows .admin-row:hover,
body.admin-page #shareTab .v57a-share-pick:hover{
  background:#f8fbff!important;
  border-color:rgba(29,78,216,.20)!important;
}
.share-poster-card .share-poster-photo:after{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(180deg,rgba(2,6,23,.12) 0%,rgba(2,6,23,.28) 42%,rgba(2,6,23,.88) 100%)!important;
  pointer-events:none!important;
  z-index:1!important;
}
.share-poster-card .share-poster-photo-mask{
  position:absolute!important;
  z-index:2!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  color:#fff!important;
  text-shadow:0 2px 10px rgba(0,0,0,.55)!important;
}
.share-poster-card .share-poster-photo-mask h2{
  color:#fff!important;
  text-shadow:0 2px 12px rgba(0,0,0,.65)!important;
  opacity:1!important;
}
.share-poster-card .share-poster-photo-mask p{
  color:rgba(255,255,255,.90)!important;
  text-shadow:0 2px 10px rgba(0,0,0,.58)!important;
  opacity:1!important;
  font-weight:850!important;
}
.share-poster-card .share-poster-badges span{
  color:#fff!important;
  background:rgba(15,23,42,.58)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  text-shadow:none!important;
  opacity:1!important;
}
.share-poster-card .share-poster-badges span.hot{
  background:linear-gradient(135deg,#ff7a18,#f0064f)!important;
  color:#fff!important;
}
/* V5.9.4B: stable admin interaction/photo/invite polish */
.submit-photo-field input[type="file"]{padding:12px!important;background:#fff!important;border:1px dashed rgba(15,23,42,.20)!important;}
.submit-photo-preview{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(76px,1fr))!important;gap:10px!important;margin-top:10px!important;}
.submit-photo-preview span{display:block!important;aspect-ratio:1/1!important;border-radius:16px!important;overflow:hidden!important;background:#f2f4f7!important;border:1px solid rgba(15,23,42,.08)!important;}
.submit-photo-preview img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.submission-view-card,.admin-card-view{width:min(920px,calc(100vw - 28px))!important;}
.submission-photo-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(120px,1fr))!important;gap:12px!important;margin:14px 0!important;}
.submission-photo-grid a{display:block!important;aspect-ratio:3/4!important;border-radius:18px!important;overflow:hidden!important;background:#f2f4f7!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 10px 24px rgba(15,23,42,.08)!important;}
.submission-photo-grid img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.admin-card-view-grid{display:grid!important;grid-template-columns:220px 1fr!important;gap:16px!important;align-items:start!important;}
.admin-card-view-grid>img{width:100%!important;aspect-ratio:3/4!important;object-fit:cover!important;border-radius:20px!important;background:#f2f4f7!important;}
.invite-success-card{display:grid!important;gap:8px!important;margin-top:12px!important;padding:12px!important;border-radius:18px!important;background:#f8fbff!important;border:1px solid rgba(29,78,216,.16)!important;}
.invite-success-card code{white-space:normal!important;word-break:break-all!important;color:#111827!important;}
@media(max-width:720px){.submit-photo-preview{grid-template-columns:repeat(3,1fr)!important}.submission-view-card,.admin-card-view{width:100%!important;max-height:84vh!important;overflow:auto!important}.submission-photo-grid{grid-template-columns:repeat(2,1fr)!important}.admin-card-view-grid{grid-template-columns:1fr!important}.admin-card-view-grid>img{max-height:320px!important}}
/* V5.9.4C: mobile scroll safety for users who report page cannot scroll */
@media(max-width:760px){
  html,body{height:auto!important;min-height:100%!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;}
  body.page,body.admin-page{min-height:100dvh!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;}
  .wrap,.section,.admin-wrap,.admin-main,.admin-tab.active{overflow:visible!important;max-height:none!important;}
  .bottom-nav,.contact-dock,.service-quick-dock{touch-action:manipulation!important;}
}