/* v0.13.3 – full-width notifications and one-row public profile actions */
.cc-view.km-chat-notice-view{padding:16px 20px;max-height:370px;overflow-y:auto}
.km-chat-notice-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 12px;font-size:15px}
.km-chat-notice-list{display:flex;flex-direction:column;gap:6px;width:100%;max-width:none;margin:0}
.km-chat-notice-item{width:100%;box-sizing:border-box;padding:10px 13px;gap:3px;min-height:52px;border-radius:9px}
.km-chat-notice-item strong{font-size:13px}.km-chat-notice-item span{font-size:11px}
/* The first two identity children are the avatar and name. All actions share the next row. */
.member-page .detail-profile .detail-identity{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;column-gap:6px;row-gap:9px;padding:0 12px 16px;margin-top:-20px}
.member-page .detail-profile .detail-identity>.detail-avatar{grid-column:1;grid-row:1;justify-self:start}
.member-page .detail-profile .detail-identity>div:nth-child(2){grid-column:2/-1;grid-row:1;min-width:0;margin:0}
.member-page .detail-profile .detail-identity>form,.member-page .detail-profile .detail-identity>button,.member-page .detail-profile .detail-identity>a{min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;justify-self:stretch;align-self:stretch}
.member-page .detail-profile .detail-identity>form{display:flex!important}
.member-page .detail-profile .detail-identity>form>button{width:100%!important}
.member-page .detail-profile .detail-identity .detail-edit,.member-page .detail-profile .detail-identity button{box-sizing:border-box;min-height:34px;padding:6px 3px!important;font-size:clamp(9px,.78vw,11px)!important;line-height:1.15;white-space:normal;overflow-wrap:normal;text-align:center}
.member-page .detail-profile .detail-identity>span.detail-edit{grid-column:1/-1;justify-self:start;font-size:11px}
@media(max-width:750px){.member-page .detail-profile .detail-identity{grid-template-columns:repeat(6,minmax(92px,1fr));overflow-x:auto;padding-bottom:16px}.member-page .detail-profile .detail-identity>.detail-avatar{grid-column:1}.member-page .detail-profile .detail-identity>div:nth-child(2){grid-column:2/-1}.member-page .detail-profile .detail-identity .detail-edit,.member-page .detail-profile .detail-identity button{font-size:10px!important}}


/* v0.13.6 — profile header refinement; no PHP/JS/SQL changes. */
.member-page .detail-profile .detail-cover{
  position:relative; min-height:118px; box-sizing:border-box;
  padding:22px 26px 35px; border-radius:17px;
  background:linear-gradient(112deg,#3e2049 0%,#752052 52%,#a32468 100%);
}
.member-page .detail-profile .detail-cover .eyebrow{font-size:10px;letter-spacing:.14em}
.member-page .detail-profile .detail-cover h1{font-size:clamp(25px,2.6vw,34px);margin:8px 0 4px;letter-spacing:-.025em}
.member-page .detail-profile .detail-cover p{font-size:13px}
/* Avatar + name in a neat identity band, actions remain in a single row. */
.member-page .detail-profile .detail-identity{
  grid-template-columns:repeat(6,minmax(0,1fr));
  column-gap:7px;row-gap:12px;
  padding:10px 12px 17px!important;margin-top:-19px!important;
  overflow:visible;position:relative;
}
.member-page .detail-profile .detail-identity>.detail-avatar{
  grid-column:1;grid-row:1;width:70px;height:70px;
  border:4px solid #fff;border-radius:17px;
  box-shadow:0 6px 20px rgba(66,22,57,.13);
}
.member-page .detail-profile .detail-identity>div:nth-child(2){
  grid-column:2/-1;grid-row:1;align-self:center;padding:5px 0;
}
.member-page .detail-profile .detail-identity>div:nth-child(2) strong{font-size:17px;letter-spacing:-.015em}
.member-page .detail-profile .detail-identity>div:nth-child(2) p{font-size:12px;margin:3px 0 0}
.member-page .detail-profile .detail-identity>form,
.member-page .detail-profile .detail-identity>button,
.member-page .detail-profile .detail-identity>a{grid-row:2;min-height:34px}
.member-page .detail-profile .detail-identity .detail-edit,
.member-page .detail-profile .detail-identity button{
  border-radius:9px;font-size:clamp(9px,.8vw,11px)!important;
  font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding:7px 4px!important;line-height:1.15;
}
.member-page .detail-profile .detail-identity .detail-edit:hover,
.member-page .detail-profile .detail-identity button:hover{background:#ffe6f2}
.member-page .detail-profile .km-flirt-compose{margin-top:2px!important}
@media(max-width:900px){
  .member-page .detail-profile .detail-identity{grid-template-columns:repeat(6,minmax(0,1fr));column-gap:4px}
  .member-page .detail-profile .detail-identity .detail-edit,.member-page .detail-profile .detail-identity button{font-size:9px!important}
}
@media(max-width:640px){
  .member-page .detail-profile .detail-cover{padding:20px 18px 34px;min-height:112px}
  .member-page .detail-profile .detail-identity{grid-template-columns:repeat(6,minmax(92px,1fr));overflow-x:auto;scrollbar-width:thin}
  .member-page .detail-profile .detail-identity>.detail-avatar{width:62px;height:62px}
  .member-page .detail-profile .detail-identity>div:nth-child(2){grid-column:2/-1}
}

/* v0.13.7 — Public profile content polish. Scoped, CSS-only. */
.member-page .detail-profile{--km137-ink:#39253b;--km137-muted:#796978;--km137-line:#f0e3eb;--km137-soft:#fff7fb}
.member-page .detail-profile .detail-tabs{display:flex;align-items:center;gap:7px;padding:9px;margin:8px 0 19px;border:1px solid #efdfeb;border-radius:14px;background:#fff;box-shadow:0 4px 18px rgba(69,24,58,.045);overflow-x:auto;scrollbar-width:thin}
.member-page .detail-profile .detail-tabs a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:36px;box-sizing:border-box;padding:8px 14px;border:1px solid transparent;border-radius:10px;text-decoration:none;color:#674c63;font-size:12px;font-weight:750;white-space:nowrap;transition:background .15s ease,color .15s ease}
.member-page .detail-profile .detail-tabs a:hover{background:#fff0f7;color:#9e275e}
.member-page .detail-profile .detail-tabs a.active,.member-page .detail-profile .detail-tabs a[aria-current="page"]{background:#822954;color:#fff;border-color:#822954;box-shadow:0 3px 9px rgba(130,41,84,.16)}
.member-page .detail-profile .detail-section{overflow:hidden;border:1px solid var(--km137-line);border-radius:16px;margin:0 0 17px;background:#fff;box-shadow:0 5px 22px rgba(62,29,52,.045)}
.member-page .detail-profile .detail-section>h2{display:flex;align-items:center;min-height:50px;box-sizing:border-box;padding:14px 19px;margin:0;border:0;border-bottom:1px solid #f1e5ed;background:linear-gradient(95deg,#fff0f7 0%,#fff9fc 100%);color:#5b2b4d;font-size:16px;font-weight:800;letter-spacing:-.01em}
.member-page .detail-profile .detail-bio{padding:22px 24px;line-height:1.85;font-size:14px;color:var(--km137-ink);overflow-wrap:anywhere;white-space:normal}
.member-page .detail-profile .detail-rows{margin:0;padding:4px 14px 12px;border:0;border-radius:0;background:#fff}
.member-page .detail-profile .detail-rows>div,.member-page .detail-profile .ks-profile-data .detail-rows>div{display:grid;grid-template-columns:minmax(165px,32%) minmax(0,1fr);gap:14px;align-items:start;padding:13px 12px;border:0;border-bottom:1px solid #f2eaf0;background:transparent!important}
.member-page .detail-profile .detail-rows>div:last-child{border-bottom:0}
.member-page .detail-profile .detail-rows dt{margin:0;color:var(--km137-muted);font-size:12px;font-weight:650;line-height:1.55}
.member-page .detail-profile .detail-rows dd,.member-page .detail-profile .ks-profile-data .detail-rows dd{margin:0;color:var(--km137-ink);font-size:13px;font-weight:750;line-height:1.6;overflow-wrap:anywhere}
.member-page .detail-profile .detail-rows .detail-missing{color:#a595a1;font-weight:500}
.member-page .detail-profile .ks-profile-data .ks-profile-subnav{display:flex;flex-wrap:wrap;gap:7px;margin:15px 16px 10px;padding:9px;border:1px solid #f0e3ec;border-radius:12px;background:#fcf8fb}
.member-page .detail-profile .ks-profile-data .ks-profile-subnav a{display:inline-flex;align-items:center;justify-content:center;min-height:33px;box-sizing:border-box;padding:7px 12px;border-radius:8px;color:#66465d;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap}
.member-page .detail-profile .ks-profile-data .ks-profile-subnav a:hover{background:#fce7f2;color:#98285c}
.member-page .detail-profile .ks-profile-data .ks-profile-subnav a.active,.member-page .detail-profile .ks-profile-data .ks-profile-subnav a[aria-current="page"]{background:#8a315d;color:#fff;box-shadow:0 3px 10px rgba(138,49,93,.16)}
.member-page .detail-profile .ks-profile-empty{margin:0;padding:22px 24px;color:var(--km137-muted);font-size:13px;line-height:1.7}
.member-page .detail-profile .detail-note{padding:10px 16px;color:var(--km137-muted);font-size:12px;line-height:1.65}
.member-page .detail-profile .km-public-albums .km-album-table-head{background:#fff8fb}
.member-page .detail-profile .km-public-albums .km-album-row{border-color:#f0e4ec}
.member-page .detail-profile .detail-gallery{gap:12px;padding:15px}
.member-page .detail-profile .detail-gallery figure{margin:0;overflow:hidden;border-radius:12px}
.member-page .detail-profile .detail-gallery img{display:block;max-width:100%}
@media(max-width:720px){
 .member-page .detail-profile .detail-tabs{gap:5px;padding:7px;margin-bottom:14px;border-radius:12px}
 .member-page .detail-profile .detail-tabs a{min-height:34px;padding:7px 11px;font-size:11px}
 .member-page .detail-profile .detail-section>h2{min-height:46px;padding:12px 15px;font-size:15px}
 .member-page .detail-profile .detail-bio{padding:17px 16px;font-size:13px}
 .member-page .detail-profile .detail-rows{padding:2px 10px 10px}
 .member-page .detail-profile .detail-rows>div,.member-page .detail-profile .ks-profile-data .detail-rows>div{grid-template-columns:1fr;gap:3px;padding:11px 8px}
 .member-page .detail-profile .detail-rows dt{font-size:11px}
 .member-page .detail-profile .detail-rows dd{font-size:13px}
 .member-page .detail-profile .ks-profile-data .ks-profile-subnav{flex-wrap:nowrap;overflow-x:auto;margin:12px 10px 8px;padding:7px;scrollbar-width:thin}
 .member-page .detail-profile .ks-profile-data .ks-profile-subnav a{flex:0 0 auto;padding:7px 10px;font-size:11px}
 .member-page .detail-profile .detail-gallery{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:9px}
}
@media(prefers-reduced-motion:reduce){.member-page .detail-profile .detail-tabs a{transition:none}}

/* v0.13.8 – Public photo albums and gallery polish (presentation only). */
.member-page .detail-profile .km-public-albums{--km138-accent:#963263;--km138-border:#eedce7}
.member-page .detail-profile .km-public-albums .km-album-row{border:1px solid var(--km138-border);border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(67,28,49,.045);margin:10px 0;overflow:hidden;transition:box-shadow .2s ease,border-color .2s ease}
.member-page .detail-profile .km-public-albums .km-album-row:hover{border-color:#dfb8cf;box-shadow:0 9px 24px rgba(67,28,49,.085)}
.member-page .detail-profile .km-public-albums .km-album-cover{overflow:hidden;border-radius:10px;background:linear-gradient(135deg,#f8e5f0,#eee5f4)}
.member-page .detail-profile .km-public-albums .km-album-cover img{width:100%;height:100%;object-fit:cover}
.member-page .detail-profile .km-public-albums .km-album-info{min-width:0}
.member-page .detail-profile .km-public-albums .km-album-info strong{overflow-wrap:anywhere;color:#39233a}
.member-page .detail-profile .km-public-albums .km-album-open{border-radius:10px;transition:background .18s ease,transform .18s ease}
.member-page .detail-profile .km-public-albums .km-album-open:hover{transform:translateY(-1px)}
.member-page .detail-profile .km-public-albums .km-album-gallery:not([hidden]){width:100%;border-top:1px solid #f1e6ed;background:#fffcfe}
.member-page .detail-profile .detail-gallery{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:13px;padding:17px}
.member-page .detail-profile .detail-gallery figure{position:relative;isolation:isolate;aspect-ratio:4/5;background:#f5ebf1;border-radius:13px;box-shadow:0 2px 9px rgba(44,20,36,.07);overflow:hidden}
.member-page .detail-profile .detail-gallery .ksm-gallery-thumb{display:block;width:100%;height:100%;border:0;padding:0;border-radius:inherit;overflow:hidden;cursor:zoom-in}
.member-page .detail-profile .detail-gallery .ksm-gallery-thumb img{display:block;width:100%;height:100%;aspect-ratio:4/5;object-fit:cover;transition:transform .28s ease,filter .28s ease}
.member-page .detail-profile .detail-gallery .ksm-gallery-thumb:hover img{transform:scale(1.055);filter:brightness(.9)}
.member-page .detail-profile .detail-gallery .ksm-gallery-thumb:focus-visible{outline:3px solid #a33472;outline-offset:-3px}
.member-page .detail-profile .detail-gallery figure:has(.ksm-gallery-thumb)::after{content:'⤢';position:absolute;right:9px;bottom:9px;width:28px;height:28px;display:grid;place-items:center;background:rgba(28,16,27,.64);border-radius:9px;color:white;font-size:17px;pointer-events:none;opacity:0;transition:opacity .2s}
.member-page .detail-profile .detail-gallery figure:has(.ksm-gallery-thumb):hover::after,.member-page .detail-profile .detail-gallery figure:has(.ksm-gallery-thumb:focus-visible)::after{opacity:1}
.ksm-lightbox{backdrop-filter:blur(10px)}
.ksm-lightbox .ksm-lightbox-top{border-bottom:1px solid rgba(255,255,255,.1)}
.ksm-lightbox .ksm-lightbox-close,.ksm-lightbox .ksm-lightbox-arrow{transition:background .18s ease,transform .18s ease}
.ksm-lightbox .ksm-lightbox-arrow:hover{transform:scale(1.045)}
.ksm-lightbox .ksm-lightbox-photo img{box-shadow:0 12px 48px rgba(0,0,0,.18)}
@media(max-width:720px){.member-page .detail-profile .detail-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}.member-page .detail-profile .km-public-albums .km-album-row{border-radius:12px}.member-page .detail-profile .detail-gallery figure{border-radius:10px}.member-page .detail-profile .detail-gallery figure:has(.ksm-gallery-thumb)::after{opacity:.8;width:24px;height:24px;font-size:15px}}
@media(max-width:360px){.member-page .detail-profile .detail-gallery{gap:7px;padding:8px}}
@media(prefers-reduced-motion:reduce){.member-page .detail-profile .detail-gallery img,.member-page .detail-profile .km-public-albums .km-album-row,.ksm-lightbox .ksm-lightbox-arrow{transition:none!important}}
