/* シワ恋 v5 UI — member cards, profile detail, favorites. One file, no inline overrides. */
:root{--sk5-ac:#e9557a;--sk5-ac2:#f27a95;--sk5-pale:#fff0f3;--sk5-ink:#2f2a2c;--sk5-sub:#7b7376;--sk5-line:#f1e4e7;--sk5-on:#35c46a;--sk5-away:#c9c3c5;--sk5-recent:#f3a73b;--sk5-nav:calc(68px + env(safe-area-inset-bottom))}

/* ---------- member card grid (discovery / favorites) ---------- */
.sk5-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 12px!important;margin:0!important;padding:4px 14px 110px!important;list-style:none}
@media(min-width:700px){.sk5-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
.sk5-card{min-width:0;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
.sk5-card a{text-decoration:none!important;color:inherit!important}
.sk5-card-photo{position:relative;display:block!important;aspect-ratio:4/5;border-radius:16px;overflow:hidden;background:#eee}
.sk5-card-photo>img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:0!important;margin:0!important}
.sk5-candy{position:absolute;left:8px;bottom:8px;display:inline-flex;align-items:center;gap:3px;padding:3px 9px 3px 6px;border-radius:999px;background:rgba(255,255,255,.88);color:var(--sk5-ac);font-size:12px;font-weight:900;line-height:1.2}
.sk5-candy-ico{width:16px!important;height:16px!important;margin:0!important;object-fit:contain}
.sk5-card-body{display:block!important;padding:8px 2px 0}
.sk5-demo{display:flex;align-items:center;gap:6px;color:var(--sk5-ac);font-size:14px;font-weight:900;line-height:1.3;white-space:nowrap}
.sk5-pct{margin-left:auto;padding:1px 8px;border-radius:999px;background:var(--sk5-pale);font-size:14px;line-height:1.35}
.sk5-dot{display:inline-block;flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:var(--sk5-away)}
.sk5-dot.is-online{background:var(--sk5-on)}.sk5-dot.is-recent{background:var(--sk5-recent)}
.sk5-intro{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px;color:var(--sk5-sub);font-size:12.5px;line-height:1.6}
.sk5-noimg{display:grid;place-items:center;width:100%;height:100%;background:#f3eef0;color:#aaa;font-size:13px}
.sk5-empty{margin:40px 20px;padding:28px 18px;border-radius:18px;background:#fff;text-align:center;color:var(--sk5-sub);font-size:14px;line-height:1.8}
.sk5-list-page{max-width:760px;margin:0 auto}
.sk5-page-head{padding:18px 16px 12px}.sk5-page-head h1{margin:0!important;font-size:24px!important;font-weight:900!important;color:var(--sk5-ink)!important}
.sk5-page-head p{margin:6px 0 0!important;color:var(--sk5-sub);font-size:13px}
.sk5-sentinel{grid-column:1/-1;height:1px}

/* compatibility filter chips */
.sk5-chips-row,.sk5-compat-filter .sk5-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sk5-chip input{position:absolute;opacity:0;pointer-events:none}
.sk5-compat-filter .sk5-chip span{display:inline-block;padding:9px 14px;border:1.5px solid var(--sk5-line);border-radius:999px;background:#fff;color:#555;font-size:13px;font-weight:800;cursor:pointer}
.sk5-compat-filter .sk5-chip input:checked+span{border-color:var(--sk5-ac);background:var(--sk5-pale);color:var(--sk5-ac)}

/* ---------- profile detail ---------- */
body:has(.sk5-detail){background:#fff!important}
body:has(.sk5-detail) :is(.l-header,#header,.c-pageTitle,.sk231-sticky,.sk435-status-bar,.sk231-toast){display:none!important}
body:has(.sk5-detail) :is(#content,.l-content,.l-container,.l-mainContent,.l-mainContent__inner,.post_content,.l-article,#main_content){max-width:none!important;margin:0!important;padding:0!important;background:#fff!important}
.sk5-detail{position:relative;max-width:640px;margin:0 auto;padding:0 0 calc(var(--sk5-nav) + 96px);background:#fff;color:var(--sk5-ink)}
.sk5-fab{position:fixed;top:calc(12px + env(safe-area-inset-top));z-index:99990;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#333!important;box-shadow:0 3px 14px rgba(0,0,0,.16);cursor:pointer}
.sk5-fab svg{width:22px;height:22px;fill:currentColor}.sk5-fab.is-left svg{fill:none}
.sk5-fab.is-left{left:max(12px,calc(50% - 308px))}.sk5-fab.is-right{right:max(12px,calc(50% - 308px))}
.sk5-hero{position:relative;aspect-ratio:1/1.08;max-height:78vh;overflow:hidden;background:#eee}
.sk5-hero-track{display:flex;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.sk5-hero-track::-webkit-scrollbar{display:none}
.sk5-hero-slide{flex:0 0 100%;height:100%;scroll-snap-align:center}
.sk5-hero-slide img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;margin:0!important}
.sk5-hero:after{content:"";position:absolute;inset:auto 0 0;height:90px;background:linear-gradient(transparent,rgba(0,0,0,.22));pointer-events:none}
.sk5-hero-dots{position:absolute;left:0;right:0;bottom:34px;z-index:2;display:flex;justify-content:center;gap:6px}
.sk5-hero-dots i{width:7px;height:7px;border-radius:9px;background:rgba(255,255,255,.55);transition:width .2s}.sk5-hero-dots i.on{width:18px;background:#fff}
.sk5-candy.is-hero{left:14px;bottom:30px;z-index:3}
.sk5-sheet{position:relative;z-index:4;margin-top:-22px;padding:20px 18px 8px;border-radius:22px 22px 0 0;background:#fff}
.sk5-name{display:flex;align-items:baseline;gap:8px}
.sk5-name h1{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:26px!important;font-weight:900!important;line-height:1.2!important;color:var(--sk5-ink)!important}
.sk5-name span{color:var(--sk5-sub);font-size:16px;font-weight:800}
.sk5-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:8px;color:#555;font-size:13px;font-weight:700}
.sk5-meta>span{display:inline-flex;align-items:center;gap:6px}
.sk5-badge{padding:3px 10px;border-radius:999px;background:var(--sk5-pale);color:var(--sk5-ac);font-size:12px;font-weight:900}
.sk5-greet{margin:16px 0 0!important;padding:14px!important;border-radius:16px;background:var(--sk5-pale);text-align:center;font-size:14px;font-weight:800;line-height:1.7}
.sk5-sec{margin-top:26px}
.sk5-sec h2{display:flex;align-items:center;gap:8px;margin:0 0 12px!important;padding:0!important;border:0!important;background:none!important;font-size:17px!important;font-weight:900!important;color:var(--sk5-ink)!important}
.sk5-sec h2:before,.sk5-sec h2:after{display:none!important}
.sk5-sec h2 small{color:var(--sk5-ac);font-size:12px;font-weight:800}
.sk5-about{margin:0!important;font-size:14px;line-height:1.9;color:#4a4346;white-space:normal}
.sk5-compat{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--sk5-line);border-radius:18px}
.sk5-compat strong{font-size:15px}.sk5-compat p{margin:3px 0 0!important;color:var(--sk5-sub);font-size:12px;line-height:1.6}
.sk5-ring{--p:0;flex:0 0 76px;width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--sk5-ac) calc(var(--p)*1%),#f6e3e8 0)}
.sk5-ring b{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#fff;color:var(--sk5-ac);font-size:19px;font-weight:900}
.sk5-link{display:inline-block;margin-top:6px;padding:0;border:0;background:none;color:var(--sk5-ac)!important;font-size:13px;font-weight:900;text-decoration:none!important;cursor:pointer}
.sk5-answers{margin-top:10px;border:1px solid var(--sk5-line);border-radius:18px;overflow:hidden}
.sk5-legend{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;padding:12px 14px;background:#fffafb;font-size:11px;font-weight:800;color:#666}
.sk5-legend span{display:flex;align-items:center;gap:6px}.sk5-legend .sk5-pin{position:static;transform:none}
.sk5-q{padding:12px 14px;border-top:1px solid #f6eef0}
.sk5-q-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:6px}.sk5-q-head b{font-size:14px}
.sk5-tag{padding:2px 8px;border-radius:999px;background:#f3eef0;color:#6b6366;font-size:10.5px;font-weight:800}.sk5-tag.is-me{background:var(--sk5-pale);color:var(--sk5-ac)}
.sk5-scale-row{margin-top:8px}
.sk5-scale-cap{display:flex;align-items:center;gap:6px;color:#8a8286;font-size:11px;font-weight:700}
.sk5-fit{font-style:normal;color:#9aa;font-weight:900}.sk5-fit.is-good{color:#35a861}.sk5-fit.is-far{color:#e0823c}
.sk5-scale{position:relative;height:22px;margin:2px 8px 0}
.sk5-scale-line{position:absolute;left:0;right:0;top:10px;height:3px;border-radius:2px;background:#f1e6e9}
.sk5-pin{position:absolute;top:3px;display:inline-block;width:16px;height:16px;margin-left:-8px;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.22)}
.sk5-pin.is-me{background:#5b8def}.sk5-pin.is-wish-me{background:#fff;border:3px solid #5b8def;box-shadow:none}
.sk5-pin.is-them{background:var(--sk5-ac)}.sk5-pin.is-wish-them{background:#fff;border:3px solid var(--sk5-ac);box-shadow:none}
.sk5-legend .sk5-pin{width:14px;height:14px;margin:0}
.sk5-scale-ends{display:flex;justify-content:space-between;margin:0 2px;color:#a39da0;font-size:10px}
.sk5-picks{display:grid;gap:10px}
.sk5-pick{display:flex;gap:12px;padding:8px;border:1px solid var(--sk5-line);border-radius:16px;background:#fff}
.sk5-pick img{flex:0 0 84px;width:84px!important;height:66px!important;border-radius:12px;object-fit:cover;margin:0!important}
.sk5-pick b{display:block;font-size:14px;line-height:1.4}.sk5-pick p{margin:5px 0 0!important;padding:6px 9px;border-radius:10px;background:#fff6f8;color:#6b6366;font-size:12.5px;line-height:1.55}
.sk5-chips{display:flex;flex-wrap:wrap;gap:7px}
.sk5-detail .sk5-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 4px;border:1px solid var(--sk5-line);border-radius:999px;background:#fff;font-size:12.5px;font-weight:800;line-height:1.3}
.sk5-detail .sk5-chip img{width:30px!important;height:30px!important;border-radius:50%;object-fit:cover;margin:0!important}
.sk5-detail .sk5-chip.is-common{border-color:#f7c9d5;background:var(--sk5-pale);color:#b83a5c}
.sk5-basic{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0!important}
.sk5-basic div{padding:10px 12px;border:1px solid var(--sk5-line);border-radius:14px}
.sk5-basic dt{margin:0!important;color:#9a9396;font-size:11px;font-weight:700}.sk5-basic dd{margin:2px 0 0!important;font-size:14px;font-weight:800}
.sk5-bar{position:fixed;left:50%;bottom:calc(var(--sk5-nav) + 8px);z-index:99994;display:flex;gap:10px;align-items:center;width:min(calc(100% - 28px),612px);transform:translateX(-50%)}
.sk5-bar form{flex:1;margin:0!important}
.sk5-main{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;flex:1;height:54px;margin:0!important;padding:0 16px!important;border:0!important;border-radius:999px!important;background:linear-gradient(90deg,var(--sk5-ac2),var(--sk5-ac))!important;color:#fff!important;font-size:16px!important;font-weight:900!important;text-decoration:none!important;box-shadow:0 8px 18px rgba(233,85,122,.3);cursor:pointer}
.sk5-main.is-sub{background:#fff!important;color:var(--sk5-ac)!important;border:1.5px solid #f7c9d5!important;box-shadow:0 4px 12px rgba(0,0,0,.06);font-size:14px!important}
.sk5-main .sk5-candy-ico{width:22px!important;height:22px!important;filter:brightness(0) invert(1)}
.sk5-fav{flex:0 0 54px;display:grid;place-items:center;width:54px;height:54px;padding:0!important;border:1.5px solid var(--sk5-line)!important;border-radius:50%!important;background:#fff!important;color:#c9b8bd!important;box-shadow:0 4px 12px rgba(0,0,0,.08);cursor:pointer}
.sk5-fav svg{width:27px;height:27px}.sk5-fav path{fill:none}
.sk5-fav.is-on{border-color:#f7c9d5!important;background:var(--sk5-pale)!important;color:var(--sk5-ac)!important}.sk5-fav.is-on path{fill:currentColor}
.sk5-fav.is-pop{animation:sk5pop .35s ease}
@keyframes sk5pop{40%{transform:scale(1.18)}}
.sk5-toast{position:fixed;left:50%;bottom:calc(var(--sk5-nav) + 80px);z-index:999999;display:flex;align-items:center;gap:8px;padding:11px 18px;border-radius:999px;background:rgba(40,34,36,.92);color:#fff;font-size:13px;font-weight:800;white-space:nowrap;transform:translate(-50%,10px);opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}
.sk5-toast.is-show{opacity:1;transform:translate(-50%,0)}.sk5-toast svg{width:18px;height:18px;color:#ff8aa6}.sk5-toast svg path{fill:currentColor}
.sk5-sheet-menu{position:fixed;inset:0;z-index:9999998;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.45)}
.sk5-sheet-menu>div{display:grid;gap:4px;width:min(100%,640px);padding:18px 16px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff}
.sk5-sheet-menu button{padding:14px;border:0;border-radius:12px;background:#fff;color:#333;font-size:16px;font-weight:800;text-align:left}
.sk5-sheet-menu button.is-danger{color:#cb3043}.sk5-sheet-menu button.is-close{margin-top:6px;background:#f4f4f5;color:#777;text-align:center}

/* sort control (server-side: 相性順 / 新着順) */
.sk362-discovery{position:relative}
.sk5-sort{position:absolute;top:50px;right:12px;z-index:99970}
.sk5-sort.is-inline{position:relative;top:auto;right:auto;margin-left:auto}
html body .sk362-discovery .sk364-controls{display:flex!important;align-items:center!important}
.sk5-sort summary{list-style:none;display:flex;align-items:center;gap:6px;padding:9px 16px;border-radius:999px;background:#f4eff0;color:#555;font-size:13px;font-weight:800;cursor:pointer}
.sk5-sort summary::-webkit-details-marker{display:none}
.sk5-sort summary:after{content:"";width:7px;height:7px;margin-top:-4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.sk5-sort div{position:absolute;right:0;top:44px;display:grid;min-width:130px;padding:6px;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.14)}
.sk5-sort a{padding:10px 12px;border-radius:10px;color:#444!important;font-size:14px;font-weight:800;text-decoration:none!important}
.sk5-sort a.is-on{background:var(--sk5-pale);color:var(--sk5-ac)!important}

/* ---------- my page: use the full phone width (12px gutters) ---------- */
body.sk5-mypage :is(#content,.l-content,.l-container,.l-mainContent,.l-mainContent__inner,.post_content,.l-article){max-width:none!important;padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}
body.sk5-mypage .sk225-wrap{max-width:720px!important;margin:0 auto!important;padding-left:12px!important;padding-right:12px!important}
body.sk5-mypage .sk311-home{max-width:none!important;padding-left:0!important;padding-right:0!important}
.sk5-collage{position:relative;display:block;flex:0 0 104px;width:104px;height:88px}
.sk5-collage img{position:absolute;width:58px!important;height:46px!important;object-fit:cover;border:2px solid #fff;border-radius:9px;box-shadow:0 3px 8px rgba(0,0,0,.14);margin:0!important}
.sk5-collage img:nth-child(1){left:0;top:0;transform:rotate(-6deg)}.sk5-collage img:nth-child(2){right:0;top:4px;transform:rotate(5deg)}
.sk5-collage img:nth-child(3){left:10px;bottom:0;transform:rotate(-3deg)}.sk5-collage img:nth-child(4){right:4px;bottom:-4px;transform:rotate(6deg)}
html body.sk5-mypage .sk449-diagnosis-home .sk449-diag-top.sk449-diag-top{display:grid!important;grid-template-columns:minmax(0,1fr) 104px!important;align-items:center!important;gap:10px!important}
html body.sk5-mypage .sk449-diagnosis-home .sk449-diag-top .sk431-diagnosis-copy{width:auto!important;max-width:none!important;min-width:0!important}
html body.sk5-mypage .sk449-diagnosis-home .sk449-diag-top h3{white-space:nowrap!important}
html body.sk5-mypage .sk449-diagnosis-home .sk449-diag-top small{white-space:nowrap!important}

/* ---------- 好みカード selection: no white circle; selected = pink frame + tint + ✓ on the label ---------- */
.sk447-card .sk447-check{display:none!important}
.sk447-card{border:1.5px solid #f1e6e9!important;background:#fff!important;box-shadow:none!important;transition:border-color .15s,background .15s}
.sk447-card.is-selected,.sk447-card:has(input:checked){border-color:var(--sk5-ac)!important;background:var(--sk5-pale)!important;box-shadow:0 0 0 1.5px var(--sk5-ac) inset!important}
.sk447-card.is-selected b,.sk447-card:has(input:checked) b{color:#b83a5c!important}
.sk447-card.is-selected b:before,.sk447-card:has(input:checked) b:before{content:"✓";display:inline-grid;place-items:center;width:15px;height:15px;margin-right:4px;border-radius:50%;background:var(--sk5-ac);color:#fff;font-size:9px;vertical-align:1px}
.sk447-card .sk447-image img{object-fit:cover!important}
/* my page menu labels: small plain headings (neutralise the theme's h2 decoration) */
html body .sk311-menu h2{margin:16px 0 4px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:var(--sk5-ac)!important;font-size:12px!important;font-weight:900!important;letter-spacing:.08em!important;line-height:1.4!important}
html body .sk311-menu h2:before,html body .sk311-menu h2:after{content:none!important;display:none!important}
html body .sk311-menu h2:first-child{margin-top:4px!important}
/* filter sheet: sort pill and bottom nav step aside so 「リセット／この条件で検索」 are reachable */
.sk362-discovery:has(.sk276-filter[open]) .sk5-sort{display:none!important}
html body:has(.sk276-filter[open]) #sk450-nav{display:none!important}
.sk5-compat-filter .sk5-chips{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.sk5-compat-filter .sk5-chip span{display:block!important;padding:9px 0!important;text-align:center;font-size:12.5px!important}

/* ---------- registration / login cards: never wider than the phone ---------- */
.sk17-auth,.sk17-auth *,.sk17-auth *:before,.sk17-auth *:after{box-sizing:border-box!important}
.sk17-auth .sk17-card{width:100%!important;max-width:520px!important;margin-left:auto!important;margin-right:auto!important}
.sk17-auth :is(input,select,textarea){max-width:100%!important}
.sk17-form :is(input:not([type=checkbox]):not([type=radio]),select){min-height:50px!important}

/* ---------- every member page may use the full phone width ---------- */
html:has(body.sk5-app),body.sk5-app{overflow-x:clip}
body.sk5-app :is(#content,.l-content,.l-container,.l-mainContent,.l-mainContent__inner,.l-article,#main_content){max-width:none!important;padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}
body.sk5-app .post_content{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
/* neutralise the theme's heading decoration inside the app (app styles marked !important still win) */
:where(body.sk5-app .post_content) :where(h1,h2,h3,h4){border:0!important;background:none!important;box-shadow:none!important}
:where(body.sk5-app .post_content) :where(h1,h2,h3,h4)::before,:where(body.sk5-app .post_content) :where(h1,h2,h3,h4)::after{content:none!important}

/* ---------- discovery: tighter header ---------- */
html body .sk362-discovery>header{margin:0 0 2px!important;padding-top:4px!important}
html body .sk362-discovery>header h1{font-size:20px!important;line-height:1.3!important;margin:0!important}
html body .sk362-discovery .sk364-sticky{padding:2px 12px 4px!important;margin:0 0 2px!important}
html body .sk362-discovery .sk357-legend{margin:0 0 6px!important;padding:0 14px!important;min-height:0!important;line-height:1.2!important}
html body .sk362-discovery .sk5-grid{padding:0 2px 110px!important}

/* ---------- own profile preview ---------- */
.sk5-own-note{position:absolute;top:calc(18px + env(safe-area-inset-top));left:50%;z-index:99991;transform:translateX(-50%);padding:7px 14px;border-radius:999px;background:rgba(40,34,36,.78);color:#fff;font-size:12px;font-weight:800;white-space:nowrap}
.sk5-detail.is-own{padding-bottom:calc(var(--sk5-nav) + 24px)}
.sk5-compat.is-own .sk5-ring{background:#f6eef1}.sk5-compat.is-own .sk5-ring b{color:#c9b8bd}

/* ---------- my page: diagnosis card without the old top-left picture ---------- */
.sk432-diag-card-img{display:none!important}
html body .sk5-collage{position:relative!important;display:block!important;width:104px!important;height:88px!important;flex:0 0 104px!important}
html body .sk5-collage img{position:absolute!important;display:block!important;width:58px!important;height:46px!important;max-width:none!important}

/* ---------- 「プロフィールに載せる3枚」: same framed selection, no ✓ circle ---------- */
html body.sk5-app .sk447-edit-card label.sk451-pick span.sk451-featured-art>i,html body.sk5-app .sk451-pick .sk451-featured-art i:not(#x){display:none!important}
html body .sk447-edit-card{border:1.5px solid #f1e6e9!important;box-shadow:none!important}
html body .sk447-edit-card.is-featured,html body .sk447-edit-card:has(.sk451-pick input:checked){border-color:var(--sk5-ac)!important;background:var(--sk5-pale)!important;box-shadow:0 0 0 1.5px var(--sk5-ac) inset!important}
html body .sk447-edit-card:has(.sk451-pick input:checked) .sk451-pick b:before{content:"✓";display:inline-grid;place-items:center;width:15px;height:15px;margin-right:4px;border-radius:50%;background:var(--sk5-ac);color:#fff;font-size:9px;vertical-align:1px}

/* ---------- modal (好みカード saved) ---------- */
body.sk5-cards-page .sk447-flash{display:none!important}
.sk5-modal{position:fixed;inset:0;z-index:9999999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(30,24,27,.5)}
.sk5-modal-card{width:min(100%,360px);padding:26px 22px 18px;border-radius:24px;background:#fff;text-align:center;animation:sk5pop .3s ease}
.sk5-modal-ico{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 10px;border-radius:50%;background:var(--sk5-pale);color:var(--sk5-ac);font-size:24px;font-weight:900}
.sk5-modal-card h2{margin:0 0 8px!important;font-size:18px!important;font-weight:900!important}
.sk5-modal-card p{margin:0 0 18px!important;color:var(--sk5-sub);font-size:13px;line-height:1.7}
.sk5-modal-later{display:block;width:100%;margin-top:8px;padding:12px;border:0;background:none;color:#8a8286;font-size:14px;font-weight:800}

/* ---------- my page header (server-rendered, design A) ---------- */
body.sk5-mypage{background:#f7f4f5!important}
body.sk5-mypage .sk311-hero{display:none!important}
.sk5-myhead{margin:0 0 12px;padding:calc(18px + env(safe-area-inset-top)) 18px 18px;border-radius:0 0 26px 26px;background:#fff}
.sk5-myhead-top{display:flex;align-items:center;gap:16px}
.sk5-myav{position:relative;flex:0 0 84px;width:84px;height:84px;text-decoration:none!important}
.sk5-myav img,.sk5-myav .sk5-noimg{display:block;width:84px!important;height:84px!important;border-radius:50%!important;object-fit:cover;margin:0!important}
.sk5-myav:after{content:"";position:absolute;inset:-4px;border:2.5px solid var(--sk5-ac);border-radius:50%}
.sk5-myav i{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:28px;height:28px;border:3px solid #fff;border-radius:50%;background:var(--sk5-ac);color:#fff;font-size:12px;font-style:normal}
.sk5-myname{min-width:0}.sk5-myname b{display:block;overflow:hidden;font-size:22px;font-weight:900;line-height:1.25;text-overflow:ellipsis;white-space:nowrap;color:var(--sk5-ink)}
.sk5-myname span{display:block;margin-top:2px;color:var(--sk5-sub);font-size:13px;font-weight:700}
.sk5-myname em{display:inline-block;margin-top:6px;padding:3px 9px;border-radius:999px;background:#eaf8ef;color:#2f9e5b;font-size:11px;font-style:normal;font-weight:900}
.sk5-mywarn{display:inline-block;margin-top:6px;color:var(--sk5-ac)!important;font-size:12px;font-weight:900;text-decoration:none!important}
.sk5-mybtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.sk5-mybtns a{display:grid;place-items:center;height:42px;border-radius:12px;font-size:13px;font-weight:900;text-decoration:none!important}
.sk5-mybtns .is-dark{background:var(--sk5-ink);color:#fff!important}.sk5-mybtns .is-light{background:#f4eff1;color:var(--sk5-ink)!important}
.sk5-mymeter{display:flex;align-items:center;gap:10px;margin-top:14px;color:var(--sk5-sub);font-size:12px;font-weight:800}
.sk5-mymeter i{position:relative;flex:1;height:6px;border-radius:9px;background:#f1e8eb;overflow:hidden}
.sk5-mymeter u{position:absolute;inset:0 auto 0 0;border-radius:9px;background:linear-gradient(90deg,var(--sk5-ac2),var(--sk5-ac))}
.sk5-mymeter b{color:var(--sk5-ac)}
html body.sk5-mypage .sk225-wrap{padding-top:0!important;margin-top:0!important}

/* ---------- pages opened from a tab: no bottom tabs ---------- */
html body.sk5-subpage #sk450-nav{display:none!important}
body.sk5-subpage{--sk5-nav:env(safe-area-inset-bottom)}
/* nothing above the app on member pages */
body.sk5-app :is(#content,.l-content,.l-mainContent,.l-mainContent__inner,.post_content){padding-top:0!important;margin-top:0!important}
.sk5-list-page .sk5-page-head{padding-top:14px}

/* ---------- one back button everywhere: 40px white circle, top-left ---------- */
.sk5-back,.sk5-fab{width:40px!important;height:40px!important}
html body :is(.sk425-panel-head,.sk447-header,.sk394-head,.sk397-own-header,.sk5-pagehead){display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px!important;align-items:center!important;gap:8px!important;min-height:56px!important;margin:0!important;padding:8px 12px!important;border:0!important;background:#fff!important;position:sticky!important;top:0!important;z-index:50!important}
html body :is(.sk425-panel-head,.sk447-header,.sk394-head,.sk397-own-header,.sk5-pagehead)>a:first-child{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;margin:0!important;padding:0!important;border:1px solid #efe7ea!important;border-radius:50%!important;background:#fff!important;color:#333!important;font-size:24px!important;line-height:1!important;text-decoration:none!important;box-shadow:0 2px 8px rgba(0,0,0,.06)!important;position:static!important}
html body :is(.sk425-panel-head,.sk447-header,.sk394-head,.sk397-own-header,.sk5-pagehead)>a:first-child svg{width:22px;height:22px}
html body :is(.sk425-panel-head,.sk447-header,.sk394-head,.sk397-own-header,.sk5-pagehead)>:not(a):not(span:empty){margin:0!important;padding:0!important;border:0!important;background:none!important;text-align:center!important;font-size:17px!important;font-weight:900!important;color:var(--sk5-ink)!important}
body.sk5-footprints-page .sk357-tabs{display:none!important}
/* the old second back arrow inside own-profile check */
.sk397-own .sk383-toolbar,.sk397-own .sk436-toolbar,.sk397-own-header{display:none!important}
.sk397-own .sk5-detail{padding-bottom:110px}

/* ---------- settings & sub pages: full width white ---------- */
html body :is(.sk425-subpage,.sk425-settings-body,.sk432-panel){max-width:none!important;margin-left:0!important;margin-right:0!important;border-radius:0!important;box-shadow:none!important}

/* ---------- compatibility detail: your wish vs their answer ---------- */
.sk5-legend{display:flex!important;gap:18px!important;grid-template-columns:none!important}
.sk5-cells{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:8px 0 4px}
.sk5-cell{position:relative;display:grid;place-items:center;height:26px;border-radius:8px;background:#f5eef1}
.sk5-cell.is-wish{background:#eef3ff;box-shadow:inset 0 0 0 2px #5b8def}
.sk5-cell.is-them b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--sk5-ac);color:#fff;font-size:11px;font-weight:900}
.sk5-legend .sk5-cell{display:inline-grid;width:26px;height:18px;margin-right:6px;vertical-align:middle}
.sk5-legend .sk5-cell.is-them{background:none}.sk5-legend .sk5-cell.is-them b{width:18px;height:18px;font-size:9px}
.sk5-verdict{margin-left:auto;padding:3px 10px;border-radius:999px;font-size:11.5px;font-style:normal;font-weight:900}
.sk5-q.is-perfect .sk5-verdict{background:#eaf8ef;color:#2f9e5b}.sk5-q.is-close .sk5-verdict{background:#eef6ea;color:#5a9a3f}
.sk5-q.is-mid .sk5-verdict{background:#fff5e6;color:#c47a17}.sk5-q.is-far .sk5-verdict{background:#fdecec;color:#d24b4b}
.sk5-q-head{align-items:center}

/* ---------- own profile helpers ---------- */
.sk5-sec h2 .sk5-edit{margin-left:auto;padding:4px 12px;border-radius:999px;background:#f4eff1;color:var(--sk5-ink)!important;font-size:12px;font-weight:800;text-decoration:none!important}
.sk5-cta{padding:16px;border:1.5px dashed #f2c7d3;border-radius:18px;background:#fffafb}
.sk5-cta b{font-size:15px}.sk5-cta p{margin:6px 0 4px!important;color:var(--sk5-sub);font-size:12.5px;line-height:1.7}

/* ---------- sheets & dialogs ---------- */
.sk5-sheet-menu h3{margin:4px 4px 6px!important;padding:0!important;border:0!important;background:none!important;font-size:17px!important;font-weight:900!important;text-align:center}
.sk5-sheet-note{margin:0 6px 10px!important;color:var(--sk5-sub);font-size:13px;line-height:1.7;text-align:center}
.sk5-sheet-menu button.is-center{text-align:center}
.sk5-sheet-menu button.is-danger.is-center{background:#fdecec}
.sk5-sheet-menu button:disabled{opacity:.45}
.sk5-reason{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;font-size:14px;font-weight:700}
.sk5-reason input{width:18px;height:18px;accent-color:var(--sk5-ac)}
.sk5-reason:has(input:checked){background:var(--sk5-pale)}
.sk5-sheet-menu textarea,.sk5-resend-form textarea{width:100%;margin:6px 0 8px;padding:10px 12px;border:1px solid #eadfe3;border-radius:12px;font-size:15px;box-sizing:border-box;resize:none}
.sk5-resend-form .sk5-modal-ico .sk5-candy-ico{width:26px!important;height:26px!important}
.sk5-main.is-sub .sk5-candy-ico{filter:none;width:20px!important;height:20px!important}
.sk5-bar .sk5-main.is-sub{height:54px}
/* prefecture multi-select */
.sk5-pref{display:block;margin:0 0 14px}
.sk5-pref>span{display:block;margin-bottom:6px;font-size:13px;font-weight:800;color:#555}.sk5-pref>span small{font-weight:600;color:#999}
.sk5-pref summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 16px;border:1px solid #e3dbde;border-radius:14px;background:#fff;font-size:15px;color:#333;cursor:pointer}
.sk5-pref summary::-webkit-details-marker{display:none}
.sk5-pref summary:after{content:"";width:8px;height:8px;margin-left:10px;border-right:2px solid #666;border-bottom:2px solid #666;transform:rotate(45deg) translateY(-3px)}
.sk5-pref details[open] summary:after{transform:rotate(225deg)}
html body .sk5-pref .sk5-pref-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-top:8px!important}
html body .sk5-pref .sk5-pref-grid label{display:block!important;margin:0!important;padding:0!important}
html body .sk5-pref .sk5-pref-grid input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none}
html body .sk5-pref .sk5-pref-grid span{display:block!important;padding:9px 2px!important;border:1.5px solid #efe6e9!important;border-radius:999px!important;background:#fff!important;text-align:center!important;font-size:12.5px!important;font-weight:800!important;color:#555!important}
html body .sk5-pref .sk5-pref-grid input:checked+span{border-color:var(--sk5-ac)!important;background:var(--sk5-pale)!important;color:var(--sk5-ac)!important}

/* ---------- swipe between profiles ---------- */
.sk5-body{touch-action:pan-y;will-change:transform;background:#fff}
.sk5-hero-track{overflow:hidden!important;touch-action:pan-y}
.sk5-peek{position:fixed;inset:0;z-index:99985;overflow:hidden;background:#fff;will-change:transform;pointer-events:none;box-shadow:0 0 30px rgba(0,0,0,.12)}
.sk5-peek .sk5-body{transform:none!important}
.sk5-peek.is-edge{background:transparent;box-shadow:none}
.sk5-peek-loading{height:60vh;background:linear-gradient(90deg,#f3eef0,#faf7f8,#f3eef0);background-size:200% 100%;animation:sk5shimmer 1s linear infinite}
@keyframes sk5shimmer{to{background-position:-200% 0}}
html.sk5-dragging .sk5-bar,html.sk5-dragging .sk5-more{opacity:0;transition:opacity .15s}
html.sk5-dragging,html.sk5-dragging body{overflow-x:hidden}

/* card demographics: long prefecture names never push the % out */
.sk5-demo{min-width:0}
.sk5-demo-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}
.sk5-pct{flex:0 0 auto;font-size:13px!important;padding:1px 6px!important}
@media(max-width:360px){.sk5-demo-text{font-size:12.5px}.sk5-pct{font-size:12px!important}}

/* いいね page header: compact like other tab roots */
html body .sk357-likes>h1{margin:0!important;padding:14px 16px 4px!important;font-size:22px!important;line-height:1.3!important;text-align:left!important}
html body .sk357-likes .sk357-tabs{margin:0 0 8px!important;padding:0 16px!important}
html body .sk357-likes .sk357-tabs a{padding:10px 4px!important}
html body .sk357-likes{padding-top:0!important;margin-top:0!important}
.sk5-basic-cta{margin-bottom:10px}.sk5-basic-cta .sk5-mymeter{margin-top:0}

/* ---------- my page status list (design ②) ---------- */
html body.sk5-mypage .sk311-home .sk311-stats{display:none!important}
.sk5-status{display:block;margin:0 12px 12px;padding:2px 14px;border-radius:18px;background:#fff}
.sk5-srow{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #f4edf0;color:var(--sk5-ink)!important;text-decoration:none!important}
.sk5-srow:first-child{border-top:0}
.sk5-srow:after{content:"›";margin-left:6px;color:#bbb;font-size:18px}
.sk5-sico{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px}
.sk5-sico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sk5-sico.is-green{background:#e8f7ee;color:#2f9e5b}.sk5-sico.is-pink{background:var(--sk5-pale);color:var(--sk5-ac)}.sk5-sico.is-yellow{background:#fff4e2;color:#d98a12}
.sk5-slabel{flex:1;font-size:14px;font-weight:800}
.sk5-srow b{font-size:13px;font-weight:900;color:var(--sk5-ink)}
.sk5-srow b.is-ok{color:#2f9e5b}.sk5-srow b.is-pinktext{color:var(--sk5-ac)}.sk5-srow b.is-wait{color:#d98a12}.sk5-srow b.is-todo{color:#d24b4b}
body.sk5-mypage .sk5-myhead{margin-bottom:12px}
html body.sk5-mypage .sk225-wrap.sk225-wrap,html body.sk5-mypage .sk311-home.sk311-home{padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;max-width:none!important;width:auto!important}
html body.sk5-mypage .sk311-home.sk311-home>*:not(.sk311-hero):not(.sk311-stats){margin-left:12px!important;margin-right:12px!important;width:auto!important;max-width:none!important}

/* ---------- candy shop ---------- */
.sk5-shop,.sk5-invite{max-width:640px;margin:0 auto;padding:0 0 130px;background:#f6f3f4;min-height:100vh}
.sk5-balance{position:relative;overflow:hidden;margin:12px;padding:18px;border-radius:22px;background:linear-gradient(135deg,#f06a8b,#f59ab0);color:#fff}
.sk5-balance small{font-size:12px;font-weight:800;opacity:.9}
.sk5-balance b{display:block;font-size:40px;font-weight:900;line-height:1.1}.sk5-balance b span{margin-left:4px;font-size:15px}
.sk5-balance img{position:absolute;right:-8px;bottom:-16px;width:118px!important;transform:rotate(-12deg);margin:0!important}
.sk5-need{margin:0 12px 8px!important;padding:10px 12px;border-radius:12px;background:#fdecec;color:#c23b4b;font-size:13px;font-weight:800}
.sk5-h{margin:16px 16px 8px!important;padding:0!important;border:0!important;background:none!important;font-size:15px!important;font-weight:900!important;color:var(--sk5-ink)!important}
.sk5-h:before,.sk5-h:after{content:none!important;display:none!important}
.sk5-pack{display:flex!important;align-items:center;gap:12px;margin:0 12px 8px!important;padding:14px!important;border:2px solid transparent;border-radius:18px;background:#fff;cursor:pointer}
.sk5-pack input{position:absolute;opacity:0;pointer-events:none}
.sk5-pack:has(input:checked){border-color:var(--sk5-ac);box-shadow:0 8px 20px rgba(233,85,122,.15)}
.sk5-pack-q{position:relative;display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:14px;background:var(--sk5-pale)}
.sk5-pack-q img{width:34px!important;margin:0!important}
.sk5-pack-q em{position:absolute;right:-6px;bottom:-6px;padding:2px 7px;border-radius:99px;background:var(--sk5-ink);color:#fff;font-size:11px;font-style:normal;font-weight:900}
.sk5-pack-t b{display:block;font-size:16px;font-weight:900}.sk5-pack-t b i{margin-left:6px;padding:2px 8px;border-radius:99px;background:var(--sk5-ac);color:#fff;font-size:10px;font-style:normal;vertical-align:2px}
.sk5-pack-t small{color:var(--sk5-sub);font-size:11.5px;font-weight:700}
.sk5-pack-p{margin-left:auto;text-align:right}.sk5-pack-p s{display:block;color:#aaa;font-size:11px}.sk5-pack-p b{font-size:19px;font-weight:900}
.sk5-uses{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 12px}
.sk5-uses div{padding:12px;border-radius:16px;background:#fff}
.sk5-uses b{display:block;font-size:13px}.sk5-uses small{color:var(--sk5-sub);font-size:11px}.sk5-uses em{float:right;color:var(--sk5-ac);font-size:13px;font-style:normal;font-weight:900}
.sk5-shopnote{margin:12px 16px 0!important;color:var(--sk5-sub);font-size:11px;line-height:1.7}
.sk5-buybar{position:fixed;left:0;right:0;bottom:0;z-index:99990;padding:12px 12px calc(12px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -6px 20px rgba(0,0,0,.05)}
.sk5-buybar .sk5-main{max-width:616px;margin:0 auto!important}

/* ---------- invite ---------- */
.sk5-inv-card{margin:12px;overflow:hidden;border-radius:24px;background:#fff}
.sk5-inv-hero{display:grid;place-items:center;height:170px;text-align:center;background:radial-gradient(circle at 25% 30%,#ffd1dc,transparent 55%),radial-gradient(circle at 80% 70%,#ffe6cc,transparent 50%),linear-gradient(135deg,#fde4ec,#fff4f7)}
.sk5-inv-hero small{color:var(--sk5-ac);font-size:12px;font-weight:900;letter-spacing:.1em}
.sk5-inv-hero h2{margin:4px 0 0!important;padding:0!important;border:0!important;background:none!important;font-size:24px!important;font-weight:900!important;line-height:1.35!important}
.sk5-inv-hero h2:before,.sk5-inv-hero h2:after{content:none!important}
.sk5-inv-rw{display:grid;grid-template-columns:repeat(3,1fr);padding:14px 8px;text-align:center}
.sk5-inv-rw div{border-left:1px solid #f3ecee}.sk5-inv-rw div:first-child{border:0}
.sk5-inv-rw b{display:block;color:var(--sk5-ac);font-size:21px;font-weight:900}.sk5-inv-rw small{color:var(--sk5-sub);font-size:11px;font-weight:700}
.sk5-inv-prog,.sk5-inv-code{margin:0 12px 10px;padding:14px;border-radius:18px;background:#fff}
.sk5-inv-prog>div{display:flex;justify-content:space-between;font-size:13px;font-weight:800}.sk5-inv-prog b{color:var(--sk5-ac)}
.sk5-inv-dots{display:flex;gap:6px;margin:10px 0 6px!important}.sk5-inv-dots i{flex:1;height:8px;border-radius:9px;background:#f1e8eb}.sk5-inv-dots i.on{background:var(--sk5-ac)}
.sk5-inv-prog small,.sk5-inv-code small{color:var(--sk5-sub);font-size:11.5px;font-weight:700}
.sk5-copy{display:flex;align-items:center;width:100%;margin-top:6px;padding:12px;border:0;border-radius:12px;background:#f7f3f5;cursor:pointer}
.sk5-copy span{font-family:ui-monospace,monospace;font-size:18px;font-weight:900;letter-spacing:.08em;color:var(--sk5-ink)}
.sk5-copy em{margin-left:auto;color:var(--sk5-ac);font-size:12px;font-style:normal;font-weight:900}
.sk5-line{display:grid;place-items:center;height:52px;margin:0 12px;border-radius:99px;background:#06c755;color:#fff!important;font-size:16px;font-weight:900;text-decoration:none!important}
.sk5-inv-steps{margin:14px 16px 0!important;padding:0 0 0 18px!important;color:#555;font-size:12.5px;line-height:1.9}
